pub enum QueryMsg {
OwnerOf {
token_id: String,
include_expired: Option<bool>,
},
Approval {
token_id: String,
spender: RawAddr,
include_expired: Option<bool>,
},
Approvals {
token_id: String,
include_expired: Option<bool>,
},
AllOperators {
owner: RawAddr,
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: RawAddr,
start_after: Option<String>,
limit: Option<u32>,
},
AllTokens {
start_after: Option<String>,
limit: Option<u32>,
},
Version {},
}
Expand description
Query messages for a position token proxy
Matches the CW721 standard.
Variants§
OwnerOf
Fields
- returns OwnerOfResponse
Return the owner of the given token, error if token does not exist
Approval
Fields
- returns ApprovalResponse
Return operator that can access all of the owner’s tokens.
Approvals
Fields
- returns ApprovalsResponse
Return approvals that a token has
AllOperators
Fields
- returns OperatorsResponse
List all operators that can access all of the owner’s tokens
NumTokens
Fields
- returns NumTokensResponse
Total number of tokens issued
ContractInfo
Fields
- returns NftContractInfo
Returns top-level metadata about the contract: ContractInfoResponse
NftInfo
- returns NftInfoResponse
Returns metadata for a given token/position
the format is based on the ERC721 Metadata JSON Schema
but directly from the contract: NftInfoResponse
AllNftInfo
Fields
- returns AllNftInfoResponse
Returns the result of both NftInfo
and OwnerOf
as one query as an optimization
for clients: AllNftInfo
Tokens
Fields
- returns TokensResponse
Returns all tokens owned by the given address, [] if unset.
AllTokens
Fields
- returns TokensResponse
Requires pagination. Lists all token_ids controlled by the contract.
Version
Fields
- returns [cw2::ContractVersion]
Trait Implementations§
source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
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 QueryMsg
impl JsonSchema for QueryMsg
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for QueryMsg
impl PartialEq for QueryMsg
source§impl QueryResponses for QueryMsg
impl QueryResponses for QueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnwindSafe for QueryMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read more