pub enum QueryStateReadsOutput {
Reads(BTreeMap<ContentAddress, BTreeMap<Key, Value>>),
Slots(Slots),
All(BTreeMap<ContentAddress, BTreeMap<Key, Value>>, Slots),
Failure(String),
}
Expand description
The output of a state read query.
Variants§
Reads(BTreeMap<ContentAddress, BTreeMap<Key, Value>>)
The keys and values that were read.
Slots(Slots)
The slots that were read into.
All(BTreeMap<ContentAddress, BTreeMap<Key, Value>>, Slots)
The keys and values that were read and the slots that were read into.
Failure(String)
The state reads failed.
Trait Implementations§
Source§impl Clone for QueryStateReadsOutput
impl Clone for QueryStateReadsOutput
Source§fn clone(&self) -> QueryStateReadsOutput
fn clone(&self) -> QueryStateReadsOutput
Returns a copy of the value. Read more
1.0.0 · 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 QueryStateReadsOutput
impl Debug for QueryStateReadsOutput
Source§impl<'de> Deserialize<'de> for QueryStateReadsOutput
impl<'de> Deserialize<'de> for QueryStateReadsOutput
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 QueryStateReadsOutput
impl PartialEq for QueryStateReadsOutput
Source§impl Serialize for QueryStateReadsOutput
impl Serialize for QueryStateReadsOutput
impl StructuralPartialEq for QueryStateReadsOutput
Auto Trait Implementations§
impl Freeze for QueryStateReadsOutput
impl RefUnwindSafe for QueryStateReadsOutput
impl Send for QueryStateReadsOutput
impl Sync for QueryStateReadsOutput
impl Unpin for QueryStateReadsOutput
impl UnwindSafe for QueryStateReadsOutput
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