Enum cosmwasm_std::StakingMsg [−][src]
#[non_exhaustive] pub enum StakingMsg { Delegate { validator: String, amount: Coin, }, Undelegate { validator: String, amount: Coin, }, Redelegate { src_validator: String, dst_validator: String, amount: Coin, }, }
Expand description
The message types of the staking module.
See https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
This is translated to a MsgDelegate.
delegator_address
is automatically filled with the current contract’s address.
This is translated to a MsgUndelegate.
delegator_address
is automatically filled with the current contract’s address.
This is translated to a MsgBeginRedelegate.
delegator_address
is automatically filled with the current contract’s address.
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 StakingMsg
impl Send for StakingMsg
impl Sync for StakingMsg
impl Unpin for StakingMsg
impl UnwindSafe for StakingMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self