pub struct RetentionFileConfig {
pub keep_last: Option<usize>,
pub keep_hourly: Option<u32>,
pub keep_daily: Option<u32>,
pub keep_weekly: Option<u32>,
pub keep_monthly: Option<u32>,
pub keep_yearly: Option<u32>,
}Expand description
Configuration read from a .retention file in TOML format.
All fields are optional; missing fields will use CLI args or defaults.
Fields§
§keep_last: Option<usize>§keep_hourly: Option<u32>§keep_daily: Option<u32>§keep_weekly: Option<u32>§keep_monthly: Option<u32>§keep_yearly: Option<u32>Trait Implementations§
Source§impl Clone for RetentionFileConfig
impl Clone for RetentionFileConfig
Source§fn clone(&self) -> RetentionFileConfig
fn clone(&self) -> RetentionFileConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetentionFileConfig
impl Debug for RetentionFileConfig
Source§impl Default for RetentionFileConfig
impl Default for RetentionFileConfig
Source§fn default() -> RetentionFileConfig
fn default() -> RetentionFileConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetentionFileConfig
impl<'de> Deserialize<'de> for RetentionFileConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RetentionFileConfig
impl RefUnwindSafe for RetentionFileConfig
impl Send for RetentionFileConfig
impl Sync for RetentionFileConfig
impl Unpin for RetentionFileConfig
impl UnwindSafe for RetentionFileConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more