pub struct SnapshotConfig {
pub event_threshold: usize,
pub time_threshold_seconds: i64,
pub max_snapshots_per_entity: usize,
pub auto_snapshot: bool,
}Expand description
Configuration for snapshot creation
Fields§
§event_threshold: usizeCreate snapshot after this many events for an entity
time_threshold_seconds: i64Maximum age before creating a new snapshot
max_snapshots_per_entity: usizeMaximum number of snapshots to keep per entity
auto_snapshot: boolEnable automatic snapshot creation
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
Auto Trait Implementations§
impl Freeze for SnapshotConfig
impl RefUnwindSafe for SnapshotConfig
impl Send for SnapshotConfig
impl Sync for SnapshotConfig
impl Unpin for SnapshotConfig
impl UnsafeUnpin 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