pub struct SnapshotConfig {
pub snapshot_dir: PathBuf,
pub compression: bool,
pub compression_level: i32,
pub incremental: bool,
pub max_age_seconds: u64,
pub verify_checksum: bool,
}Expand description
Snapshot configuration
Fields§
§snapshot_dir: PathBufSnapshot directory
compression: boolEnable compression
compression_level: i32Compression level (1-22 for zstd)
incremental: boolEnable incremental snapshots
max_age_seconds: u64Maximum snapshot age in seconds
verify_checksum: boolEnable checksum verification
Trait Implementations§
Source§impl Clone for SnapshotConfig
impl Clone for SnapshotConfig
Source§fn clone(&self) -> SnapshotConfig
fn clone(&self) -> SnapshotConfig
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 SnapshotConfig
impl Debug for SnapshotConfig
Source§impl Default for SnapshotConfig
impl Default for SnapshotConfig
Source§impl<'de> Deserialize<'de> for SnapshotConfig
impl<'de> Deserialize<'de> for SnapshotConfig
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 SnapshotConfig
impl RefUnwindSafe for SnapshotConfig
impl Send for SnapshotConfig
impl Sync for SnapshotConfig
impl Unpin for SnapshotConfig
impl UnwindSafe for SnapshotConfig
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