pub enum QueryMode {
Compact,
Standard,
Full,
}
Expand description
A QueryMode specifies how much information to return in response to an RPC query
Variants§
Compact
Returns the parent struct but no details about its children.
For example, a Compact
“get_slots” response would simply state the range of batch
numbers which occurred in the slot, but not the hashes of the batches themselves.
Standard
Returns the parent struct and the hashes of all its children.
Full
Returns the parent struct and all its children, recursively fetching its children
in Full
mode. For example, a Full
“get_batch” response would include the Full
details of all the transactions in the batch, and those would in turn return the event bodies
which had occurred in those transactions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMode
impl<'de> Deserialize<'de> for QueryMode
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 Copy for QueryMode
impl Eq for QueryMode
impl StructuralPartialEq for QueryMode
Auto Trait Implementations§
impl Freeze for QueryMode
impl RefUnwindSafe for QueryMode
impl Send for QueryMode
impl Sync for QueryMode
impl Unpin for QueryMode
impl UnwindSafe for QueryMode
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