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>,
},
Operator {
owner: String,
operator: 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
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
Operator
Return approval of a given operator for all tokens of an owner, error if not set
Return type: OperatorResponse
AllOperators
Fields
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
With MetaData Extension.
Returns metadata about one particular token, based on ERC721 Metadata JSON Schema
but directly from the contract: NftInfoResponse
AllNftInfo
Fields
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§
source§impl Clone for Cw721QueryMsg
impl Clone for Cw721QueryMsg
source§fn clone(&self) -> Cw721QueryMsg
fn clone(&self) -> Cw721QueryMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Cw721QueryMsg
impl Debug for Cw721QueryMsg
source§impl<'de> Deserialize<'de> for Cw721QueryMsg
impl<'de> Deserialize<'de> for Cw721QueryMsg
source§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>,
source§impl JsonSchema for Cw721QueryMsg
impl JsonSchema for Cw721QueryMsg
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq<Cw721QueryMsg> for Cw721QueryMsg
impl PartialEq<Cw721QueryMsg> for Cw721QueryMsg
source§fn eq(&self, other: &Cw721QueryMsg) -> bool
fn eq(&self, other: &Cw721QueryMsg) -> bool
self
and other
values to be equal, and is used
by ==
.