Commit 2c1282f5 authored by Ian Jackson's avatar Ian Jackson
Browse files

Make LogRotation Serialize

We want to be able to serialise as well as deserialise configurations.
parent 08eba63a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ pub struct LogfileConfig {
}

/// How often to rotate a log file
#[derive(Deserialize, Debug, Clone, Copy, Eq, PartialEq)]
#[derive(Debug, Clone, Serialize, Deserialize, Copy, Eq, PartialEq)]
#[non_exhaustive]
#[serde(rename_all = "lowercase")]
pub enum LogRotation {