Enum cosmwasm_std::StakingQuery [−][src]
#[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
Returns the denomination that can be bonded (if there are multiple native tokens on the chain)
Fields of BondedDenom
AllDelegations will return all delegations by the delegator
Fields of AllDelegations
delegator: String
Delegation will return more detailed info on a particular delegation, defined by delegator/validator pair
Returns all validators in the currently active validator set.
The query response type is AllValidatorsResponse
.
Fields of AllValidators
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
.
Fields of Validator
address: String
The validator’s address (e.g. (e.g. cosmosvaloper1…))
Trait Implementations
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self