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
Fields
operator: String
Remove previously granted ApproveAll permission
Burn
Fields
token_id: String
Burn an NFT the sender has access to
Trait Implementations
sourceimpl Clone for Cw721ExecuteMsg
impl Clone for Cw721ExecuteMsg
sourcefn clone(&self) -> Cw721ExecuteMsg
fn clone(&self) -> Cw721ExecuteMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Cw721ExecuteMsg
impl Debug for Cw721ExecuteMsg
sourceimpl<'de> Deserialize<'de> for Cw721ExecuteMsg
impl<'de> Deserialize<'de> for Cw721ExecuteMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for Cw721ExecuteMsg
impl JsonSchema for Cw721ExecuteMsg
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
impl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
sourcefn eq(&self, other: &Cw721ExecuteMsg) -> bool
fn eq(&self, other: &Cw721ExecuteMsg) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more