Enum cw1155::Cw1155QueryMsg[][src]

pub enum Cw1155QueryMsg {
    Balance {
        owner: String,
        token_id: TokenId,
    },
    BatchBalance {
        owner: String,
        token_ids: Vec<TokenId>,
    },
    ApprovedForAll {
        owner: String,
        include_expired: Option<bool>,
        start_after: Option<String>,
        limit: Option<u32>,
    },
    IsApprovedForAll {
        owner: String,
        operator: String,
    },
    TokenInfo {
        token_id: TokenId,
    },
    Tokens {
        owner: String,
        start_after: Option<String>,
        limit: Option<u32>,
    },
    AllTokens {
        start_after: Option<String>,
        limit: Option<u32>,
    },
}

Variants

Balance

Returns the current balance of the given address, 0 if unset. Return type: BalanceResponse.

Show fields

Fields of Balance

owner: Stringtoken_id: TokenId
BatchBalance

Returns the current balance of the given address for a batch of tokens, 0 if unset. Return type: BatchBalanceResponse.

Show fields

Fields of BatchBalance

owner: Stringtoken_ids: Vec<TokenId>
ApprovedForAll

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

Show fields

Fields of ApprovedForAll

owner: Stringinclude_expired: Option<bool>

unset or false will filter out expired approvals, you must set to true to see them

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

Query approved status owner granted to operator. Return type: IsApprovedForAllResponse

Show fields

Fields of IsApprovedForAll

owner: Stringoperator: String
TokenInfo

With MetaData Extension. Query metadata of token Return type: TokenInfoResponse.

Show fields

Fields of TokenInfo

token_id: TokenId
Tokens

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

Show fields

Fields of Tokens

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

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

Show fields

Fields of AllTokens

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

Trait Implementations

impl Clone for Cw1155QueryMsg[src]

impl Debug for Cw1155QueryMsg[src]

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

impl JsonSchema for Cw1155QueryMsg[src]

impl PartialEq<Cw1155QueryMsg> for Cw1155QueryMsg[src]

impl Serialize for Cw1155QueryMsg[src]

impl StructuralPartialEq for Cw1155QueryMsg[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> Conv for T

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

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

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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.