[][src]Enum cw721::Cw721QueryMsg

pub enum Cw721QueryMsg {
    OwnerOf {
        token_id: String,
    },
    ApprovedForAll {
        owner: HumanAddr,
    },
    NumTokens {},
    ContractInfo {},
    NftInfo {
        token_id: String,
    },
    AllNftInfo {
        token_id: String,
    },
    Tokens {
        owner: HumanAddr,
        start_after: Option<String>,
        limit: Option<u32>,
    },
    AllTokens {
        start_after: Option<String>,
        limit: Option<u32>,
    },
}

Variants

OwnerOf

Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse

Fields of OwnerOf

token_id: String
ApprovedForAll

List all operators that can access all of the owner's tokens Return type: ApprovedForAllResponse

Fields of ApprovedForAll

owner: HumanAddr
NumTokens

Total number of tokens issued

Fields of NumTokens

ContractInfo

With MetaData Extension. Returns top-level metadata about the contract: ContractInfoResponse

Fields of ContractInfo

NftInfo

With MetaData Extension. Returns metadata about one particular token, based on ERC721 Metadata JSON Schema but directly from the contract: NftInfoResponse

Fields of NftInfo

token_id: String
AllNftInfo

With MetaData Extension. Returns the result of both NftInfo and OwnerOf as one query as an optimization for clients: AllNftInfo

Fields of AllNftInfo

token_id: String
Tokens

With Enumerable extension. Returns all tokens owned by the given address, [] if unset. Return type: TokensResponse.

Fields of Tokens

owner: HumanAddrstart_after: Option<String>limit: Option<u32>
AllTokens

With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract. Return type: TokensResponse.

Fields of AllTokens

start_after: Option<String>limit: Option<u32>

Trait Implementations

impl Clone for Cw721QueryMsg[src]

impl Debug for Cw721QueryMsg[src]

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

impl JsonSchema for Cw721QueryMsg[src]

impl PartialEq<Cw721QueryMsg> for Cw721QueryMsg[src]

impl Serialize for Cw721QueryMsg[src]

impl StructuralPartialEq for Cw721QueryMsg[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.