pub struct RegisteredQuery {
pub id: u64,
pub owner: String,
pub query_type: String,
pub keys: Vec<KvKey>,
pub transactions_filter: String,
pub connection_id: String,
pub update_period: u64,
pub last_submitted_result_local_height: u64,
pub last_submitted_result_remote_height: Option<Height>,
pub deposit: Vec<Coin>,
pub submit_timeout: u64,
pub registered_at_height: u64,
}Expand description
Information about an Interchain Query registered in the interchainqueries module.
Fields§
§id: u64The unique id of the registered query.
owner: StringThe address of the contract that registered the query.
query_type: StringThe query type identifier: kv or tx.
keys: Vec<KvKey>The KV-storage keys for which to get values from the remote chain. Only applicable for the
KV Interchain Queries. Max amount of keys is limited by the module’s max_kv_query_keys_count
parameters.
transactions_filter: StringA stringified list of filters for remote transactions search. Only applicable for the TX
Interchain Queries. Example: “[{"field":"tx.height","op":"Gte","value":2644737}]”.
Supported operators: “eq”, “lt”, “gt”, “lte”, “gte”. Max amount of filter conditions is limited
by the module’s max_transactions_filters parameters.
connection_id: StringThe IBC connection ID to the remote chain (the source of querying data). Is used for getting ConsensusState from the respective IBC client to verify query result proofs.
update_period: u64Parameter that defines the minimal delay between consecutive query executions (i.e. the minimal delay between query results update).
last_submitted_result_local_height: u64The local chain block height of the last query results update.
last_submitted_result_remote_height: Option<Height>The remote chain block height that corresponds to the last query result update.
deposit: Vec<Coin>Amount of coins paid for the Interchain Query registration. The deposit is paid back to the remover. The remover can be either the query owner (during the submit timeout) or anybody.
submit_timeout: u64The duration, measured in blocks, that must pass since the query’s registration or its last result submission before the query becomes eligible for removal by anyone.
registered_at_height: u64The local chain block height of the Interchain Query registration.
Implementations§
Trait Implementations§
Source§impl Clone for RegisteredQuery
impl Clone for RegisteredQuery
Source§fn clone(&self) -> RegisteredQuery
fn clone(&self) -> RegisteredQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegisteredQuery
impl Debug for RegisteredQuery
Source§impl Default for RegisteredQuery
impl Default for RegisteredQuery
Source§impl<'de> Deserialize<'de> for RegisteredQuery
impl<'de> Deserialize<'de> for RegisteredQuery
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<RegisteredQuery> for Binary
impl From<RegisteredQuery> for Binary
Source§fn from(msg: RegisteredQuery) -> Self
fn from(msg: RegisteredQuery) -> Self
Source§impl<T> From<RegisteredQuery> for CosmosMsg<T>
impl<T> From<RegisteredQuery> for CosmosMsg<T>
Source§fn from(msg: RegisteredQuery) -> Self
fn from(msg: RegisteredQuery) -> Self
Source§impl JsonSchema for RegisteredQuery
impl JsonSchema for RegisteredQuery
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 RegisteredQuery
impl Message for RegisteredQuery
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 RegisteredQuery
impl PartialEq for RegisteredQuery
Source§impl Serialize for RegisteredQuery
impl Serialize for RegisteredQuery
Source§impl TryFrom<Binary> for RegisteredQuery
impl TryFrom<Binary> for RegisteredQuery
Source§impl TryFrom<SubMsgResult> for RegisteredQuery
impl TryFrom<SubMsgResult> for RegisteredQuery
impl Eq for RegisteredQuery
impl StructuralPartialEq for RegisteredQuery
Auto Trait Implementations§
impl Freeze for RegisteredQuery
impl RefUnwindSafe for RegisteredQuery
impl Send for RegisteredQuery
impl Sync for RegisteredQuery
impl Unpin for RegisteredQuery
impl UnwindSafe for RegisteredQuery
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