[][src]Enum cw721::Cw721HandleMsg

pub enum Cw721HandleMsg {
    TransferNft {
        recipient: HumanAddr,
        token_id: String,
    },
    SendNft {
        contract: HumanAddr,
        token_id: String,
        msg: Option<Binary>,
    },
    Approve {
        spender: HumanAddr,
        token_id: String,
        expires: Option<Expiration>,
    },
    Revoke {
        spender: HumanAddr,
        token_id: String,
    },
    ApproveAll {
        operator: HumanAddr,
        expires: Option<Expiration>,
    },
    RevokeAll {
        operator: HumanAddr,
    },
}

Variants

TransferNft

Transfer is a base message to move a token to another account without triggering actions

Fields of TransferNft

recipient: HumanAddrtoken_id: String
SendNft

Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.

Fields of SendNft

contract: HumanAddrtoken_id: Stringmsg: Option<Binary>
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

Fields of Approve

spender: HumanAddrtoken_id: Stringexpires: Option<Expiration>
Revoke

Remove previously granted Approval

Fields of Revoke

spender: HumanAddrtoken_id: String
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

Fields of ApproveAll

operator: HumanAddrexpires: Option<Expiration>
RevokeAll

Remove previously granted ApproveAll permission

Fields of RevokeAll

operator: HumanAddr

Trait Implementations

impl Clone for Cw721HandleMsg[src]

impl Debug for Cw721HandleMsg[src]

impl<'de> Deserialize<'de> for Cw721HandleMsg[src]

impl JsonSchema for Cw721HandleMsg[src]

impl PartialEq<Cw721HandleMsg> for Cw721HandleMsg[src]

impl Serialize for Cw721HandleMsg[src]

impl StructuralPartialEq for Cw721HandleMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.