pub struct QueryResult {
pub kv_results: Vec<StorageValue>,
pub block: Option<Block>,
pub height: u64,
pub revision: u64,
pub allow_kv_callbacks: bool,
}
Expand description
Contains different information about a single Interchain Query execution result. Currently, this structure is used both in query result submission via an ICQ Relayer and as a query result storage for read/write operations to interchainqueries module, but the structure fields are populated in a bit different ways. When submitting a query result, all fields are populated and provided to the interchainqueries module in order to verify the result against the IBC client’s state. But in order to lighten the chain state, the interchainqueries module removes the block field and proofs from the kv_results.
Fields§
§kv_results: Vec<StorageValue>
A list of a KV Interchain Query execution results. Each result contains query parameters, a response value and a proof.
block: Option<Block>
A TX Interchain Query execution result. Contains metainformation about the blocks of the query execution height. Only populated when submitting an Interchain Query result for verification and emptied when saving the result on chain.
height: u64
The height of the chain at the moment of the Interchain Query execution.
revision: u64
The revision number of the chain at the moment of the Interchain Query execution.
allow_kv_callbacks: bool
Whether to send the query result to the owner contract as a sudo message. Only applicable for KV type of Interchain Queries.
Implementations§
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for QueryResult
impl Debug for QueryResult
Source§impl Default for QueryResult
impl Default for QueryResult
Source§impl<'de> Deserialize<'de> for QueryResult
impl<'de> Deserialize<'de> for QueryResult
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>,
Source§impl From<QueryResult> for Binary
impl From<QueryResult> for Binary
Source§fn from(msg: QueryResult) -> Self
fn from(msg: QueryResult) -> Self
Source§impl<T> From<QueryResult> for CosmosMsg<T>
impl<T> From<QueryResult> for CosmosMsg<T>
Source§fn from(msg: QueryResult) -> Self
fn from(msg: QueryResult) -> Self
Source§impl JsonSchema for QueryResult
impl JsonSchema for QueryResult
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl Message for QueryResult
impl Message for QueryResult
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for QueryResult
impl PartialEq for QueryResult
Source§impl Serialize for QueryResult
impl Serialize for QueryResult
Source§impl TryFrom<Binary> for QueryResult
impl TryFrom<Binary> for QueryResult
Source§impl TryFrom<SubMsgResult> for QueryResult
impl TryFrom<SubMsgResult> for QueryResult
impl Eq for QueryResult
impl StructuralPartialEq for QueryResult
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more