pub enum Inventory {
ForStore {
store_id: HexId,
roots: Vec<HexId>,
},
AllStores {
stores: Vec<HexId>,
},
}Expand description
Result for dig.listInventory.
With a store_id the node returns the roots it holds for that store; without
one it returns the stores it serves. #[serde(untagged)] keeps the wire flat
({"roots": …} or {"stores": …}).
Variants§
ForStore
The roots held for a specific store.
Fields
AllStores
The stores this node serves (no store_id given).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inventory
impl<'de> Deserialize<'de> for Inventory
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
impl Eq for Inventory
impl StructuralPartialEq for Inventory
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnsafeUnpin for Inventory
impl UnwindSafe for Inventory
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