pub struct AvailabilityAnswer {
pub available: bool,
pub roots: Option<Vec<HexId>>,
pub total_length: Option<u64>,
pub chunk_count: Option<u64>,
pub complete: Option<bool>,
pub providers: Option<Vec<Provider>>,
}Expand description
One availability answer. Only the fields relevant to the query’s granularity are populated.
Fields§
§available: boolWhether this node holds the queried item.
roots: Option<Vec<HexId>>The roots held (store-granularity queries only).
total_length: Option<u64>The full resource ciphertext length (resource-granularity only).
chunk_count: Option<u64>The chunk count (resource-granularity only).
complete: Option<bool>Whether the whole item is held (root/resource-granularity only).
providers: Option<Vec<Provider>>Providers that hold the item — present on a miss when holders were located (enriched answer).
Trait Implementations§
Source§impl Clone for AvailabilityAnswer
impl Clone for AvailabilityAnswer
Source§fn clone(&self) -> AvailabilityAnswer
fn clone(&self) -> AvailabilityAnswer
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 AvailabilityAnswer
impl Debug for AvailabilityAnswer
Source§impl Default for AvailabilityAnswer
impl Default for AvailabilityAnswer
Source§fn default() -> AvailabilityAnswer
fn default() -> AvailabilityAnswer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailabilityAnswer
impl<'de> Deserialize<'de> for AvailabilityAnswer
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 AvailabilityAnswer
impl PartialEq for AvailabilityAnswer
Source§impl Serialize for AvailabilityAnswer
impl Serialize for AvailabilityAnswer
impl StructuralPartialEq for AvailabilityAnswer
Auto Trait Implementations§
impl Freeze for AvailabilityAnswer
impl RefUnwindSafe for AvailabilityAnswer
impl Send for AvailabilityAnswer
impl Sync for AvailabilityAnswer
impl Unpin for AvailabilityAnswer
impl UnsafeUnpin for AvailabilityAnswer
impl UnwindSafe for AvailabilityAnswer
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