pub struct SnapshotMetadata {
pub last_included_index: LogIndex,
pub last_included_term: Term,
pub created_at: DateTime<Utc>,
pub size_bytes: u64,
pub checksum: u32,
}Expand description
Snapshot metadata describing the state captured in a snapshot
Fields§
§last_included_index: LogIndexIndex of the last log entry included in the snapshot
last_included_term: TermTerm of the last log entry included in the snapshot
created_at: DateTime<Utc>Timestamp when the snapshot was created
size_bytes: u64Size of the snapshot data in bytes
checksum: u32CRC32 checksum of the snapshot data for integrity verification
Implementations§
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