pub struct SnapshotBundleSummary {
pub format_version: u32,
pub root: Option<Cid>,
pub node_count: usize,
pub byte_count: usize,
pub min_node_bytes: usize,
pub max_node_bytes: usize,
}Expand description
Compact metadata for a validated snapshot bundle.
Fields§
§format_version: u32Bundle schema version.
root: Option<Cid>Tree root CID, or None for an empty tree.
node_count: usizeNumber of unique node CIDs included in the bundle.
byte_count: usizeTotal serialized bytes across unique bundled nodes.
min_node_bytes: usizeSmallest serialized node payload in the bundle.
max_node_bytes: usizeLargest serialized node payload in the bundle.
Trait Implementations§
Source§impl Clone for SnapshotBundleSummary
impl Clone for SnapshotBundleSummary
Source§fn clone(&self) -> SnapshotBundleSummary
fn clone(&self) -> SnapshotBundleSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SnapshotBundleSummary
impl Debug for SnapshotBundleSummary
impl Eq for SnapshotBundleSummary
Source§impl PartialEq for SnapshotBundleSummary
impl PartialEq for SnapshotBundleSummary
impl StructuralPartialEq for SnapshotBundleSummary
Auto Trait Implementations§
impl Freeze for SnapshotBundleSummary
impl RefUnwindSafe for SnapshotBundleSummary
impl Send for SnapshotBundleSummary
impl Sync for SnapshotBundleSummary
impl Unpin for SnapshotBundleSummary
impl UnsafeUnpin for SnapshotBundleSummary
impl UnwindSafe for SnapshotBundleSummary
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more