Enum cw1155::Cw1155QueryMsg
source · [−]pub enum Cw1155QueryMsg {
Balance {
owner: String,
token_id: TokenId,
},
BatchBalance {
owner: String,
token_ids: Vec<TokenId>,
},
ApprovedForAll {
owner: String,
include_expired: Option<bool>,
start_after: Option<String>,
limit: Option<u32>,
},
IsApprovedForAll {
owner: String,
operator: String,
},
TokenInfo {
token_id: TokenId,
},
Tokens {
owner: String,
start_after: Option<String>,
limit: Option<u32>,
},
AllTokens {
start_after: Option<String>,
limit: Option<u32>,
},
}
Variants
Balance
Returns the current balance of the given address, 0 if unset.
BatchBalance
Returns the current balance of the given address for a batch of tokens, 0 if unset.
ApprovedForAll
Fields
owner: String
List all operators that can access all of the owner’s tokens.
IsApprovedForAll
Query approved status owner
granted to operator
.
TokenInfo
Fields
token_id: TokenId
With MetaData Extension. Query metadata of token
Tokens
With Enumerable extension. Returns all tokens owned by the given address, [] if unset.
AllTokens
With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract.
Trait Implementations
sourceimpl Clone for Cw1155QueryMsg
impl Clone for Cw1155QueryMsg
sourcefn clone(&self) -> Cw1155QueryMsg
fn clone(&self) -> Cw1155QueryMsg
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Cw1155QueryMsg
impl Debug for Cw1155QueryMsg
sourceimpl<'de> Deserialize<'de> for Cw1155QueryMsg
impl<'de> Deserialize<'de> for Cw1155QueryMsg
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 Cw1155QueryMsg
impl JsonSchema for Cw1155QueryMsg
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 moresourceimpl PartialEq<Cw1155QueryMsg> for Cw1155QueryMsg
impl PartialEq<Cw1155QueryMsg> for Cw1155QueryMsg
sourcefn eq(&self, other: &Cw1155QueryMsg) -> bool
fn eq(&self, other: &Cw1155QueryMsg) -> bool
sourceimpl QueryResponses for Cw1155QueryMsg
impl QueryResponses for Cw1155QueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas(
) -> Result<BTreeMap<String, RootSchema, Global>, IntegrityError>
sourceimpl Serialize for Cw1155QueryMsg
impl Serialize for Cw1155QueryMsg
impl StructuralPartialEq for Cw1155QueryMsg
Auto Trait Implementations
impl RefUnwindSafe for Cw1155QueryMsg
impl Send for Cw1155QueryMsg
impl Sync for Cw1155QueryMsg
impl Unpin for Cw1155QueryMsg
impl UnwindSafe for Cw1155QueryMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more