pub struct SnapshotBundleVerification {
pub valid: bool,
pub summary: SnapshotBundleSummary,
pub reachable_nodes: usize,
pub reachable_bytes: usize,
pub missing_cids: Vec<Cid>,
pub extra_cids: Vec<Cid>,
}Expand description
Result of verifying a snapshot bundle as a self-contained tree.
Fields§
§valid: boolTrue when the bundle has exactly the reachable node set for its tree.
summary: SnapshotBundleSummaryValidated bundle metadata.
reachable_nodes: usizeNumber of reachable CIDs discovered from the tree root.
reachable_bytes: usizeSerialized bytes for reachable bundled nodes.
missing_cids: Vec<Cid>Reachable CIDs absent from the bundle.
extra_cids: Vec<Cid>Bundled CIDs not reachable from the tree root.
Trait Implementations§
Source§impl Clone for SnapshotBundleVerification
impl Clone for SnapshotBundleVerification
Source§fn clone(&self) -> SnapshotBundleVerification
fn clone(&self) -> SnapshotBundleVerification
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 SnapshotBundleVerification
impl Debug for SnapshotBundleVerification
impl Eq for SnapshotBundleVerification
impl StructuralPartialEq for SnapshotBundleVerification
Auto Trait Implementations§
impl Freeze for SnapshotBundleVerification
impl RefUnwindSafe for SnapshotBundleVerification
impl Send for SnapshotBundleVerification
impl Sync for SnapshotBundleVerification
impl Unpin for SnapshotBundleVerification
impl UnsafeUnpin for SnapshotBundleVerification
impl UnwindSafe for SnapshotBundleVerification
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