Enum secret_cosmwasm_std::StakingQuery
source · [−]pub enum StakingQuery {
BondedDenom {},
AllDelegations {
delegator: HumanAddr,
},
Delegation {
delegator: HumanAddr,
validator: HumanAddr,
},
Validators {},
UnbondingDelegations {
delegator: HumanAddr,
},
}
Variants
BondedDenom
Fields
Returns the denomination that can be bonded (if there are multiple native tokens on the chain)
AllDelegations
Fields
delegator: HumanAddr
AllDelegations will return all delegations by the delegator
Delegation
Delegation will return more detailed info on a particular delegation, defined by delegator/validator pair
Validators
Fields
Returns all registered Validators on the system
UnbondingDelegations
Fields
delegator: HumanAddr
Returns all the unbonding delegations by the delegator
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<T: Clone + Debug + PartialEq + JsonSchema> From<StakingQuery> for QueryRequest<T>
impl<T: Clone + Debug + PartialEq + JsonSchema> From<StakingQuery> for QueryRequest<T>
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