Enum cosmwasm_std::StakingQuery 
source · #[non_exhaustive]pub enum StakingQuery {
    BondedDenom {},
    AllDelegations {
        delegator: String,
    },
    Delegation {
        delegator: String,
        validator: String,
    },
    AllValidators {},
    Validator {
        address: String,
    },
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BondedDenom
Returns the denomination that can be bonded (if there are multiple native tokens on the chain)
AllDelegations
AllDelegations will return all delegations by the delegator
Delegation
Delegation will return more detailed info on a particular delegation, defined by delegator/validator pair
AllValidators
Returns all validators in the currently active validator set.
The query response type is AllValidatorsResponse.
Validator
Returns the validator at the given address. Returns None if the validator is not part of the currently active validator set.
The query response type is ValidatorResponse.
Trait Implementations§
source§impl Clone for StakingQuery
 
impl Clone for StakingQuery
source§fn clone(&self) -> StakingQuery
 
fn clone(&self) -> StakingQuery
Returns a copy 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 StakingQuery
 
impl Debug for StakingQuery
source§impl<'de> Deserialize<'de> for StakingQuery
 
impl<'de> Deserialize<'de> for StakingQuery
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
source§impl<C: CustomQuery> From<StakingQuery> for QueryRequest<C>
 
impl<C: CustomQuery> From<StakingQuery> for QueryRequest<C>
source§fn from(msg: StakingQuery) -> Self
 
fn from(msg: StakingQuery) -> Self
Converts to this type from the input type.
source§impl JsonSchema for StakingQuery
 
impl JsonSchema for StakingQuery
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(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &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 StakingQuery
 
impl PartialEq for StakingQuery
source§fn eq(&self, other: &StakingQuery) -> bool
 
fn eq(&self, other: &StakingQuery) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for StakingQuery
 
impl Serialize for StakingQuery
impl Eq for StakingQuery
impl StructuralPartialEq for StakingQuery
Auto Trait Implementations§
impl Freeze for StakingQuery
impl RefUnwindSafe for StakingQuery
impl Send for StakingQuery
impl Sync for StakingQuery
impl Unpin for StakingQuery
impl UnwindSafe for StakingQuery
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