Enum cw721::Cw721QueryMsg [−][src]
pub enum Cw721QueryMsg {
OwnerOf {
token_id: String,
include_expired: Option<bool>,
},
ApprovedForAll {
owner: String,
include_expired: Option<bool>,
start_after: Option<String>,
limit: Option<u32>,
},
NumTokens {},
ContractInfo {},
NftInfo {
token_id: String,
},
AllNftInfo {
token_id: String,
include_expired: Option<bool>,
},
Tokens {
owner: String,
start_after: Option<String>,
limit: Option<u32>,
},
AllTokens {
start_after: Option<String>,
limit: Option<u32>,
},
}Variants
Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse
Fields of OwnerOf
List all operators that can access all of the owner’s tokens.
Return type: ApprovedForAllResponse
Fields of ApprovedForAll
Total number of tokens issued
Fields of NumTokens
With MetaData Extension.
Returns top-level metadata about the contract: ContractInfoResponse
Fields of ContractInfo
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: StringWith MetaData Extension.
Returns the result of both NftInfo and OwnerOf as one query as an optimization
for clients: AllNftInfo
Fields of AllNftInfo
With Enumerable extension. Returns all tokens owned by the given address, [] if unset. Return type: TokensResponse.
With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract. Return type: TokensResponse.
Trait Implementations
fn 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Cw721QueryMsg
impl Send for Cw721QueryMsg
impl Sync for Cw721QueryMsg
impl Unpin for Cw721QueryMsg
impl UnwindSafe for Cw721QueryMsg
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self