pub struct PinIntegrity {
pub reference: Reference,
pub total: u64,
pub missing: u64,
pub invalid: u64,
}Expand description
One entry of the ApiService::check_pins result. Mirrors
bee-go’s PinIntegrityResponse.
Fields§
§reference: ReferenceRoot reference of the pin that was checked.
total: u64Total chunks reachable from the pin.
missing: u64Chunks that should be reachable but are missing locally.
invalid: u64Chunks that are present but failed integrity validation.
Implementations§
Source§impl PinIntegrity
impl PinIntegrity
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
True when no chunks are missing or invalid — the pin is fully retrievable from local storage.
Trait Implementations§
Source§impl Clone for PinIntegrity
impl Clone for PinIntegrity
Source§fn clone(&self) -> PinIntegrity
fn clone(&self) -> PinIntegrity
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 PinIntegrity
impl Debug for PinIntegrity
Source§impl<'de> Deserialize<'de> for PinIntegrity
impl<'de> Deserialize<'de> for PinIntegrity
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 PinIntegrity
impl PartialEq for PinIntegrity
Source§fn eq(&self, other: &PinIntegrity) -> bool
fn eq(&self, other: &PinIntegrity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PinIntegrity
impl StructuralPartialEq for PinIntegrity
Auto Trait Implementations§
impl Freeze for PinIntegrity
impl RefUnwindSafe for PinIntegrity
impl Send for PinIntegrity
impl Sync for PinIntegrity
impl Unpin for PinIntegrity
impl UnsafeUnpin for PinIntegrity
impl UnwindSafe for PinIntegrity
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