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
BondedDenom
Fields
Returns the denomination that can be bonded (if there are multiple native tokens on the chain)
AllDelegations
Fields
delegator: StringAllDelegations will return all delegations by the delegator
Delegation
Delegation will return more detailed info on a particular delegation, defined by delegator/validator pair
AllValidators
Fields
Returns all validators in the currently active validator set.
The query response type is AllValidatorsResponse.
Validator
Fields
address: StringThe validator’s address (e.g. (e.g. cosmosvaloper1…))
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
sourceimpl Clone for StakingQuery
 
impl Clone for StakingQuery
sourcefn clone(&self) -> StakingQuery
 
fn clone(&self) -> StakingQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StakingQuery
 
impl Debug for StakingQuery
sourceimpl<'de> Deserialize<'de> for StakingQuery
 
impl<'de> Deserialize<'de> for StakingQuery
sourcefn 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
sourceimpl<C: CustomQuery> From<StakingQuery> for QueryRequest<C>
 
impl<C: CustomQuery> From<StakingQuery> for QueryRequest<C>
sourcefn from(msg: StakingQuery) -> Self
 
fn from(msg: StakingQuery) -> Self
Converts to this type from the input type.
sourceimpl JsonSchema for StakingQuery
 
impl JsonSchema for StakingQuery
sourcefn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<StakingQuery> for StakingQuery
 
impl PartialEq<StakingQuery> for StakingQuery
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &StakingQuery) -> bool
 
fn ne(&self, other: &StakingQuery) -> bool
This method tests for !=.
sourceimpl Serialize for StakingQuery
 
impl Serialize for StakingQuery
impl StructuralPartialEq for StakingQuery
Auto Trait Implementations
impl RefUnwindSafe for StakingQuery
impl Send for StakingQuery
impl Sync for StakingQuery
impl Unpin for StakingQuery
impl UnwindSafe for StakingQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more