Enum cw721::Cw721QueryMsg
source · [−]pub enum Cw721QueryMsg {
OwnerOf {
token_id: String,
include_expired: Option<bool>,
},
Approval {
token_id: String,
spender: String,
include_expired: Option<bool>,
},
Approvals {
token_id: String,
include_expired: Option<bool>,
},
AllOperators {
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
OwnerOf
Fields
token_id: String
Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse
Approval
Return operator that can access all of the owner’s tokens.
Return type: ApprovalResponse
Approvals
Return approvals that a token has
Return type: ApprovalsResponse
AllOperators
Fields
owner: String
List all operators that can access all of the owner’s tokens
Return type: OperatorsResponse
NumTokens
Fields
Total number of tokens issued
ContractInfo
Fields
With MetaData Extension.
Returns top-level metadata about the contract: ContractInfoResponse
NftInfo
Fields
token_id: String
With MetaData Extension.
Returns metadata about one particular token, based on ERC721 Metadata JSON Schema
but directly from the contract: NftInfoResponse
AllNftInfo
Fields
token_id: String
With MetaData Extension.
Returns the result of both NftInfo
and OwnerOf
as one query as an optimization
for clients: AllNftInfo
Tokens
With Enumerable extension. Returns all tokens owned by the given address, [] if unset. Return type: TokensResponse.
AllTokens
With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract. Return type: TokensResponse.
Trait Implementations
sourceimpl Clone for Cw721QueryMsg
impl Clone for Cw721QueryMsg
sourcefn clone(&self) -> Cw721QueryMsg
fn clone(&self) -> Cw721QueryMsg
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for Cw721QueryMsg
impl Debug for Cw721QueryMsg
sourceimpl<'de> Deserialize<'de> for Cw721QueryMsg
impl<'de> Deserialize<'de> for Cw721QueryMsg
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>,
sourceimpl JsonSchema for Cw721QueryMsg
impl JsonSchema for Cw721QueryMsg
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more