[][src]Struct cosmwasm_std::FullDelegation

pub struct FullDelegation {
    pub delegator: HumanAddr,
    pub validator: HumanAddr,
    pub amount: Coin,
    pub can_redelegate: Coin,
    pub accumulated_rewards: Coin,

FullDelegation is all the info on the delegation, some (like accumulated_reward and can_redelegate) is expensive to query


delegator: HumanAddrvalidator: HumanAddramount: Coin

How much we have locked in the delegation

can_redelegate: Coin

can_redelegate captures how much can be immediately redelegated. 0 is no redelegation and can_redelegate == amount is redelegate all but there are many places between the two

accumulated_rewards: Coin

How much we can currently withdraw

Trait Implementations

impl Clone for FullDelegation[src]

impl Debug for FullDelegation[src]

impl<'de> Deserialize<'de> for FullDelegation[src]

impl From<FullDelegation> for Delegation[src]

impl JsonSchema for FullDelegation[src]

impl PartialEq<FullDelegation> for FullDelegation[src]

impl Serialize for FullDelegation[src]

impl StructuralPartialEq for FullDelegation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.