pub struct SnapshotMetadata {
pub schema_version: u32,
pub wal_sequence: u64,
pub task_count: u64,
pub run_count: u64,
}Expand description
Metadata about a snapshot for versioning and compatibility.
This structure provides extensibility for future snapshot versions while maintaining backward compatibility with existing data.
Fields§
§schema_version: u32The schema version of the snapshot format.
This version is incremented when breaking changes are made to the snapshot format. The snapshot loader uses this to determine compatibility.
wal_sequence: u64The WAL sequence number at the time of the snapshot.
This is the last sequence number that was applied to the state captured in this snapshot. WAL replay should start from sequence number + 1.
task_count: u64The number of tasks included in this snapshot.
run_count: u64The number of runs included in this snapshot.
Trait Implementations§
Source§impl Clone for SnapshotMetadata
impl Clone for SnapshotMetadata
Source§fn clone(&self) -> SnapshotMetadata
fn clone(&self) -> SnapshotMetadata
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 SnapshotMetadata
impl Debug for SnapshotMetadata
Source§impl<'de> Deserialize<'de> for SnapshotMetadata
impl<'de> Deserialize<'de> for SnapshotMetadata
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 SnapshotMetadata
impl PartialEq for SnapshotMetadata
Source§impl Serialize for SnapshotMetadata
impl Serialize for SnapshotMetadata
impl Eq for SnapshotMetadata
impl StructuralPartialEq for SnapshotMetadata
Auto Trait Implementations§
impl Freeze for SnapshotMetadata
impl RefUnwindSafe for SnapshotMetadata
impl Send for SnapshotMetadata
impl Sync for SnapshotMetadata
impl Unpin for SnapshotMetadata
impl UnsafeUnpin for SnapshotMetadata
impl UnwindSafe for SnapshotMetadata
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