Enum cw721::Cw721ExecuteMsg
source · pub enum Cw721ExecuteMsg {
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,
},
Burn {
token_id: String,
},
}
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
Remove previously granted ApproveAll permission
Burn
Burn an NFT the sender has access to
Trait Implementations§
source§impl Clone for Cw721ExecuteMsg
impl Clone for Cw721ExecuteMsg
source§fn clone(&self) -> Cw721ExecuteMsg
fn clone(&self) -> Cw721ExecuteMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Cw721ExecuteMsg
impl Debug for Cw721ExecuteMsg
source§impl<'de> Deserialize<'de> for Cw721ExecuteMsg
impl<'de> Deserialize<'de> for Cw721ExecuteMsg
source§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
source§impl JsonSchema for Cw721ExecuteMsg
impl JsonSchema for Cw721ExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
impl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
source§fn eq(&self, other: &Cw721ExecuteMsg) -> bool
fn eq(&self, other: &Cw721ExecuteMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Cw721ExecuteMsg
impl Serialize for Cw721ExecuteMsg
impl StructuralPartialEq for Cw721ExecuteMsg
Auto Trait Implementations§
impl RefUnwindSafe for Cw721ExecuteMsg
impl Send for Cw721ExecuteMsg
impl Sync for Cw721ExecuteMsg
impl Unpin for Cw721ExecuteMsg
impl UnwindSafe for Cw721ExecuteMsg
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more