pub enum ExecuteMsg {
Transfer {
recipient: String,
amount: Uint128,
},
Burn {
amount: Uint128,
},
Send {
contract: String,
amount: Uint128,
msg: Binary,
},
IncreaseAllowance {
spender: String,
amount: Uint128,
expires: Option<Expiration>,
},
DecreaseAllowance {
spender: String,
amount: Uint128,
expires: Option<Expiration>,
},
TransferFrom {
owner: String,
recipient: String,
amount: Uint128,
},
SendFrom {
owner: String,
contract: String,
amount: Uint128,
msg: Binary,
},
BurnFrom {
owner: String,
amount: Uint128,
},
Mint {
recipient: String,
amount: Uint128,
},
UpdateMinter {
new_minter: Option<String>,
},
UpdateMarketing {
project: Option<String>,
description: Option<String>,
marketing: Option<String>,
},
UploadLogo(Logo),
}Variants§
Transfer
Transfer is a base message to move tokens to another account without triggering actions
Burn
Burn is a base message to destroy tokens forever
Send
Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.
IncreaseAllowance
Only with “approval” extension. Allows spender to access an additional amount tokens from the owner’s (env.sender) account. If expires is Some(), overwrites current allowance expiration with this one.
DecreaseAllowance
Only with “approval” extension. Lowers the spender’s access of tokens from the owner’s (env.sender) account by amount. If expires is Some(), overwrites current allowance expiration with this one.
TransferFrom
Only with “approval” extension. Transfers amount tokens from owner -> recipient
if env.sender has sufficient pre-approval.
SendFrom
Only with “approval” extension. Sends amount tokens from owner -> contract
if env.sender has sufficient pre-approval.
BurnFrom
Only with “approval” extension. Destroys tokens forever
Mint
Only with the “mintable” extension. If authorized, creates amount new tokens and adds to the recipient balance.
UpdateMinter
Only with the “mintable” extension. The current minter may set a new minter. Setting the minter to None will remove the token’s minter forever.
UpdateMarketing
Fields
Only with the “marketing” extension. If authorized, updates marketing metadata. Setting None/null for any of these will leave it unchanged. Setting Some(“”) will clear this field on the contract storage
UploadLogo(Logo)
If set as the “marketing” role on the contract, upload a new URL, SVG, or PNG for the token
Trait Implementations§
§impl Clone for Cw20ExecuteMsg
impl Clone for Cw20ExecuteMsg
§fn clone(&self) -> Cw20ExecuteMsg
fn clone(&self) -> Cw20ExecuteMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for Cw20ExecuteMsg
impl Debug for Cw20ExecuteMsg
§impl<'de> Deserialize<'de> for Cw20ExecuteMsg
impl<'de> Deserialize<'de> for Cw20ExecuteMsg
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Cw20ExecuteMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Cw20ExecuteMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl JsonSchema for Cw20ExecuteMsg
impl JsonSchema for Cw20ExecuteMsg
§fn schema_name() -> String
fn schema_name() -> String
§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more§impl PartialEq for Cw20ExecuteMsg
impl PartialEq for Cw20ExecuteMsg
§fn eq(&self, other: &Cw20ExecuteMsg) -> bool
fn eq(&self, other: &Cw20ExecuteMsg) -> bool
self and other values to be equal, and is used
by ==.§impl Serialize for Cw20ExecuteMsg
impl Serialize for Cw20ExecuteMsg
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Cw20ExecuteMsg
Auto Trait Implementations§
impl RefUnwindSafe for Cw20ExecuteMsg
impl Send for Cw20ExecuteMsg
impl Sync for Cw20ExecuteMsg
impl Unpin for Cw20ExecuteMsg
impl UnwindSafe for Cw20ExecuteMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more