diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-26 12:10:36 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-26 14:09:01 +0300 |
commit | ef338f353dc64783fcf0c30ce9e5b380c29ad701 (patch) | |
tree | e068f7c59d1aecf2d6fdf493101853c62f9be2d9 /ui/src/conf.rs | |
parent | c44056a9ff33bec9aa2b74b656c6ebefcd73aaeb (diff) |
ui: add PGP settings in configuration
Diffstat (limited to 'ui/src/conf.rs')
-rw-r--r-- | ui/src/conf.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/conf.rs b/ui/src/conf.rs index 223c737f..b4ca7967 100644 --- a/ui/src/conf.rs +++ b/ui/src/conf.rs @@ -27,11 +27,13 @@ extern crate xdg; pub mod mailer; pub mod notifications; pub mod pager; +pub mod pgp; pub mod shortcuts; pub mod accounts; pub use self::accounts::Account; pub use self::mailer::*; +pub use self::pgp::*; pub use self::shortcuts::*; use self::default_vals::*; @@ -272,6 +274,8 @@ struct FileSettings { #[serde(default)] shortcuts: Shortcuts, mailer: MailerSettings, + #[serde(default)] + pgp: PGPSettings, } #[derive(Debug, Clone, Default)] @@ -300,6 +304,7 @@ pub struct Settings { pub notifications: NotificationsSettings, pub shortcuts: Shortcuts, pub mailer: MailerSettings, + pub pgp: PGPSettings, } impl FileSettings { @@ -387,6 +392,7 @@ impl Settings { notifications: fs.notifications, shortcuts: fs.shortcuts, mailer: fs.mailer, + pgp: fs.pgp, } } } |