summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2022-10-09 18:29:27 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2022-10-09 18:30:22 +0300
commitffb12c6d1ae9a774de22a25d38bc6714a435c7ad (patch)
tree47490ada0a7a03660dbbb3139554db45f9f31439
parent7e09b1807ffa9bae54da35b02c83b5aaee455819 (diff)
downloadmeli-ffb12c6d1ae9a774de22a25d38bc6714a435c7ad.zip
conf.rs: make all public struct fields public
-rw-r--r--src/conf.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/conf.rs b/src/conf.rs
index 985865ca..dcf88e46 100644
--- a/src/conf.rs
+++ b/src/conf.rs
@@ -155,24 +155,24 @@ impl FileMailboxConf {
use crate::conf::deserializers::extra_settings;
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FileAccount {
- root_mailbox: String,
- format: String,
- identity: String,
+ pub root_mailbox: String,
+ pub format: String,
+ pub identity: String,
#[serde(default)]
- extra_identities: Vec<String>,
+ pub extra_identities: Vec<String>,
#[serde(default = "none")]
- display_name: Option<String>,
+ pub display_name: Option<String>,
#[serde(default = "false_val")]
- read_only: bool,
+ pub read_only: bool,
#[serde(default)]
- subscribed_mailboxes: Vec<String>,
+ pub subscribed_mailboxes: Vec<String>,
#[serde(default)]
- mailboxes: IndexMap<String, FileMailboxConf>,
+ pub mailboxes: IndexMap<String, FileMailboxConf>,
#[serde(default)]
- search_backend: SearchBackend,
+ pub search_backend: SearchBackend,
#[serde(default)]
- order: (SortField, SortOrder),
+ pub order: (SortField, SortOrder),
#[serde(default = "false_val")]
pub manual_refresh: bool,
#[serde(default = "none")]
@@ -920,9 +920,9 @@ mod pp {
#[serde(deny_unknown_fields)]
pub struct LogSettings {
#[serde(default)]
- log_file: Option<PathBuf>,
+ pub log_file: Option<PathBuf>,
#[serde(default)]
- maximum_level: melib::LoggingLevel,
+ pub maximum_level: melib::LoggingLevel,
}
pub use dotaddressable::*;