pub struct QueryResponse {
pub data: Vec<u8>,
pub proof: Option<Vec<u8>>,
pub height: u64,
}Expand description
Response from an application query, optionally containing a Merkle proof.
Fields§
§data: Vec<u8>The result data (opaque application bytes).
proof: Option<Vec<u8>>Optional Merkle proof (application-defined format). Applications using IAVL/SMT trees can populate this to enable trustless verification by light clients.
height: u64Height at which the query was evaluated.
Trait Implementations§
Source§impl Clone for QueryResponse
impl Clone for QueryResponse
Source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
Returns a duplicate 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 QueryResponse
impl Debug for QueryResponse
Source§impl Default for QueryResponse
impl Default for QueryResponse
Source§fn default() -> QueryResponse
fn default() -> QueryResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryResponse
impl<'de> Deserialize<'de> for QueryResponse
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
Auto Trait Implementations§
impl Freeze for QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnsafeUnpin for QueryResponse
impl UnwindSafe for QueryResponse
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