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,
},
}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: StringRemove previously granted ApproveAll permission
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 more
sourceimpl 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 more
sourceimpl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
impl PartialEq<Cw721ExecuteMsg> for Cw721ExecuteMsg
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &Cw721ExecuteMsg) -> bool
fn ne(&self, other: &Cw721ExecuteMsg) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more