aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 6b9a89d..805a2c3 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -14,6 +14,9 @@ pub struct Config {
/// How often the upload to dps.report should be retried.
#[serde(default)]
pub retries: u32,
+ /// Whether ezau should zip non-zipped logs.
+ #[serde(default = "default_zip")]
+ pub zip: bool,
/// Option Discord information for bot postings.
pub discord: Option<Discord>,
}
@@ -32,3 +35,7 @@ pub fn load<P: AsRef<Path>>(path: P) -> Result<Config> {
let content = fs::read(path)?;
Ok(toml::from_slice(&content)?)
}
+
+fn default_zip() -> bool {
+ true
+}