[][src]Struct cosmwasm_std::FullDelegation

pub struct FullDelegation {
    pub delegator: HumanAddr,
    pub validator: HumanAddr,
    pub amount: Coin,
    pub can_redelegate: Coin,
    pub accumulated_rewards: Vec<Coin>,
}

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

Fields

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: Vec<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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.