pub struct RegisteredQuery {
pub id: u64,
pub owner: String,
pub keys: Vec<KVKey>,
pub query_type: QueryType,
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: Height,
pub deposit: Vec<Coin>,
pub submit_timeout: u64,
pub registered_at_height: u64,
}Fields§
§id: u64The unique id of the registered query.
owner: StringThe address that registered the query.
keys: Vec<KVKey>The KV-storage keys for which we want to get values from remote chain
query_type: QueryTypeThe query type identifier (i.e. ‘kv’ or ‘tx’ for now)
transactions_filter: StringThe filter for transaction search ICQ
connection_id: StringThe IBC connection ID for getting ConsensusState to verify proofs.
update_period: u64Parameter that defines how often the query must be updated.
last_submitted_result_local_height: u64The local chain last block height when the query result was updated.
last_submitted_result_remote_height: HeightThe remote chain last block height when the query result was updated.
deposit: Vec<Coin>Amount of coins deposited for the query.
submit_timeout: u64Timeout before query becomes available for everybody to remove.
registered_at_height: u64The local chain height when the query was registered.
Trait Implementations§
Source§impl Clone for RegisteredQuery
impl Clone for RegisteredQuery
Source§fn clone(&self) -> RegisteredQuery
fn clone(&self) -> RegisteredQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegisteredQuery
impl Debug 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RegisteredQuery
Source§impl JsonSchema for RegisteredQuery
impl JsonSchema for RegisteredQuery
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RegisteredQuery
impl PartialEq for RegisteredQuery
Source§impl Serialize for RegisteredQuery
impl Serialize 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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