pub struct SnapshotHeader {
pub version: u8,
pub created_at: u64,
pub last_transaction_id: u64,
pub entry_count: u64,
pub total_size: u64,
pub checksum: [u8; 32],
}Expand description
State snapshot header
Fields§
§version: u8Snapshot version
created_at: u64Creation timestamp
last_transaction_id: u64Last transaction ID included
entry_count: u64Number of entries
total_size: u64Total size in bytes
checksum: [u8; 32]Checksum of snapshot data
Trait Implementations§
Source§impl Clone for SnapshotHeader
impl Clone for SnapshotHeader
Source§fn clone(&self) -> SnapshotHeader
fn clone(&self) -> SnapshotHeader
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 SnapshotHeader
impl Debug for SnapshotHeader
Source§impl<'de> Deserialize<'de> for SnapshotHeader
impl<'de> Deserialize<'de> for SnapshotHeader
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 SnapshotHeader
impl RefUnwindSafe for SnapshotHeader
impl Send for SnapshotHeader
impl Sync for SnapshotHeader
impl Unpin for SnapshotHeader
impl UnwindSafe for SnapshotHeader
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