Enum cosmwasm_std::DistributionMsg [−][src]
#[non_exhaustive] pub enum DistributionMsg { SetWithdrawAddress { address: String, }, WithdrawDelegatorReward { validator: String, }, }
Expand description
The message types of the distribution module.
See https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
This is translated to a MsgSetWithdrawAddress.
delegator_address
is automatically filled with the current contract’s address.
Fields of SetWithdrawAddress
address: String
The withdraw_address
This is translated to a [MsgWithdrawDelegatorReward.
delegator_address
is automatically filled with the current contract’s address.
Fields of WithdrawDelegatorReward
validator: String
The validator_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
impl<T> From<DistributionMsg> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
impl<T> From<DistributionMsg> for CosmosMsg<T> where
T: Clone + Debug + PartialEq + JsonSchema,
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 DistributionMsg
impl Send for DistributionMsg
impl Sync for DistributionMsg
impl Unpin for DistributionMsg
impl UnwindSafe for DistributionMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self