[][src]Enum cosmwasm_std::StakingMsg

pub enum StakingMsg {
    Delegate {
        validator: HumanAddr,
        amount: Coin,
    },
    Undelegate {
        validator: HumanAddr,
        amount: Coin,
    },
    Withdraw {
        validator: HumanAddr,
        recipient: Option<HumanAddr>,
    },
    Redelegate {
        src_validator: HumanAddr,
        dst_validator: HumanAddr,
        amount: Coin,
    },
}

Variants

Delegate

Fields of Delegate

validator: HumanAddramount: Coin
Undelegate

Fields of Undelegate

validator: HumanAddramount: Coin
Withdraw

Fields of Withdraw

validator: HumanAddrrecipient: Option<HumanAddr>

this is the "withdraw address", the one that should receive the rewards if None, then use delegator address

Redelegate

Fields of Redelegate

src_validator: HumanAddrdst_validator: HumanAddramount: Coin

Trait Implementations

impl Clone for StakingMsg[src]

impl Debug for StakingMsg[src]

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

impl JsonSchema for StakingMsg[src]

impl PartialEq<StakingMsg> for StakingMsg[src]

impl Serialize for StakingMsg[src]

impl StructuralPartialEq for StakingMsg[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.