pub struct BackupsConfig {
pub max_count: usize,
pub max_age_days: u32,
}Fields§
§max_count: usizeMaximum number of config backups to retain. Default: 10. Set to 0 to disable count-based pruning (only age-based).
max_age_days: u32Maximum age of backups in days. Backups older than this are pruned. Default: 30. Set to 0 to disable age-based pruning (only count-based).
Trait Implementations§
Source§impl Clone for BackupsConfig
impl Clone for BackupsConfig
Source§fn clone(&self) -> BackupsConfig
fn clone(&self) -> BackupsConfig
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 BackupsConfig
impl Debug for BackupsConfig
Source§impl Default for BackupsConfig
impl Default for BackupsConfig
Source§impl<'de> Deserialize<'de> for BackupsConfig
impl<'de> Deserialize<'de> for BackupsConfig
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 BackupsConfig
impl RefUnwindSafe for BackupsConfig
impl Send for BackupsConfig
impl Sync for BackupsConfig
impl Unpin for BackupsConfig
impl UnsafeUnpin for BackupsConfig
impl UnwindSafe for BackupsConfig
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