Enum cw721_base::msg::ExecuteMsg
source · [−]pub enum ExecuteMsg<T, E> {
TransferNft {
recipient: String,
token_id: String,
},
SendNft {
contract: String,
token_id: String,
msg: Binary,
},
Approve {
spender: String,
token_id: String,
expires: Option<Expiration>,
},
Revoke {
spender: String,
token_id: String,
},
ApproveAll {
operator: String,
expires: Option<Expiration>,
},
RevokeAll {
operator: String,
},
Mint(MintMsg<T>),
Burn {
token_id: String,
},
Extension {
msg: E,
},
}
Expand description
This is like Cw721ExecuteMsg but we add a Mint command for an owner to make this stand-alone. You will likely want to remove mint and use other control logic in any contract that inherits this.
Variants
TransferNft
Transfer is a base message to move a token to another account without triggering actions
SendNft
Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.
Approve
Allows operator to transfer / send the token from the owner’s account. If expiration is set, then this allowance has a time/height limit
Revoke
Remove previously granted Approval
ApproveAll
Allows operator to transfer / send any token from the owner’s account. If expiration is set, then this allowance has a time/height limit
RevokeAll
Fields
operator: String
Remove previously granted ApproveAll permission
Mint(MintMsg<T>)
Mint a new NFT, can only be called by the contract minter
Burn
Fields
token_id: String
Burn an NFT the sender has access to
Extension
Extension msg
Trait Implementations
sourceimpl<T: Clone, E: Clone> Clone for ExecuteMsg<T, E>
impl<T: Clone, E: Clone> Clone for ExecuteMsg<T, E>
sourcefn clone(&self) -> ExecuteMsg<T, E>
fn clone(&self) -> ExecuteMsg<T, E>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<T: Debug, E: Debug> Debug for ExecuteMsg<T, E>
impl<T: Debug, E: Debug> Debug for ExecuteMsg<T, E>
sourceimpl<'de, T, E> Deserialize<'de> for ExecuteMsg<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, T, E> Deserialize<'de> for ExecuteMsg<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
sourcefn 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>,
sourceimpl<T: JsonSchema, E: JsonSchema> JsonSchema for ExecuteMsg<T, E>
impl<T: JsonSchema, E: JsonSchema> JsonSchema for ExecuteMsg<T, E>
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more