pub struct BackupConfig {
pub enable_backups: bool,
pub retention_period: Duration,
pub max_backups: usize,
pub strategy: BackupStrategy,
}Expand description
Backup configuration
Fields§
§enable_backups: boolEnable backups
retention_period: DurationBackup retention period
max_backups: usizeMaximum number of backups
strategy: BackupStrategyBackup strategy
Trait Implementations§
Source§impl Clone for BackupConfig
impl Clone for BackupConfig
Source§fn clone(&self) -> BackupConfig
fn clone(&self) -> BackupConfig
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 BackupConfig
impl Debug for BackupConfig
Source§impl Default for BackupConfig
impl Default for BackupConfig
Source§impl<'de> Deserialize<'de> for BackupConfig
impl<'de> Deserialize<'de> for BackupConfig
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
Source§impl PartialEq for BackupConfig
impl PartialEq for BackupConfig
Source§impl Serialize for BackupConfig
impl Serialize for BackupConfig
impl StructuralPartialEq for BackupConfig
Auto Trait Implementations§
impl Freeze for BackupConfig
impl RefUnwindSafe for BackupConfig
impl Send for BackupConfig
impl Sync for BackupConfig
impl Unpin for BackupConfig
impl UnwindSafe for BackupConfig
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