pub struct SnapshotHeader {
pub id: SnapshotId,
pub schema_version: u32,
pub covers: u64,
pub counts: [u64; 11],
}Expand description
Snapshot metadata assembled from its plaintext header and sealed prefix.
Fields§
§id: SnapshotIdWriting device, snapshot number and audience.
schema_version: u32The app schema version.
covers: u64Last included slot from the signed sealed prefix.
counts: [u64; 11]Counts: applied writes, columns, merged rows, losses, authored changes, creations, write evidence, three original-slot sections and per-device last included claims.
Implementations§
Source§impl SnapshotHeader
impl SnapshotHeader
Sourcepub fn merge_rows(&self) -> u64
pub fn merge_rows(&self) -> u64
The merge rows the snapshot holds.
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 PartialEq for SnapshotHeader
impl PartialEq for SnapshotHeader
impl Eq for SnapshotHeader
impl StructuralPartialEq for SnapshotHeader
Auto Trait Implementations§
impl Freeze for SnapshotHeader
impl RefUnwindSafe for SnapshotHeader
impl Send for SnapshotHeader
impl Sync for SnapshotHeader
impl Unpin for SnapshotHeader
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more