Enum cw721::Cw721QueryMsg
source · [−]pub enum Cw721QueryMsg {
OwnerOf {
token_id: String,
include_expired: Option<bool>,
},
Approved {
owner: String,
operator: String,
},
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
OwnerOf
Fields
token_id: StringReturn the owner of the given token, error if token does not exist Return type: OwnerOfResponse
Approved
Return operator that can access all of the owner’s tokens.
Return type: ApprovedResponse
ApprovedForAll
Fields
owner: StringList all operators that can access all of the owner’s tokens.
Return type: ApprovedForAllResponse
NumTokens
Fields
Total number of tokens issued
ContractInfo
Fields
With MetaData Extension.
Returns top-level metadata about the contract: ContractInfoResponse
NftInfo
Fields
token_id: StringWith MetaData Extension.
Returns metadata about one particular token, based on ERC721 Metadata JSON Schema
but directly from the contract: NftInfoResponse
AllNftInfo
Fields
token_id: StringWith 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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for Cw721QueryMsg
impl JsonSchema for Cw721QueryMsg
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
sourceimpl PartialEq<Cw721QueryMsg> for Cw721QueryMsg
impl PartialEq<Cw721QueryMsg> for Cw721QueryMsg
sourcefn eq(&self, other: &Cw721QueryMsg) -> bool
fn eq(&self, other: &Cw721QueryMsg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Cw721QueryMsg) -> bool
fn ne(&self, other: &Cw721QueryMsg) -> bool
This method tests for !=.
sourceimpl Serialize for Cw721QueryMsg
impl Serialize for Cw721QueryMsg
impl StructuralPartialEq for Cw721QueryMsg
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more