pub struct Bs721Contract<Q: CustomMsg, E: CustomMsg>(pub Addr, pub PhantomData<Q>, pub PhantomData<E>);Tuple Fields§
§0: Addr§1: PhantomData<Q>§2: PhantomData<E>Implementations§
Source§impl<Q: CustomMsg, E: CustomMsg> Bs721Contract<Q, E>
impl<Q: CustomMsg, E: CustomMsg> Bs721Contract<Q, E>
pub fn addr(&self) -> Addr
pub fn call<T: Serialize>(&self, msg: ExecuteMsg<T, E>) -> StdResult<CosmosMsg>
pub fn query<T: DeserializeOwned>( &self, querier: &QuerierWrapper<'_>, req: QueryMsg<Q>, ) -> StdResult<T>
pub fn owner_of<T: Into<String>>( &self, querier: &QuerierWrapper<'_>, token_id: T, include_expired: bool, ) -> StdResult<OwnerOfResponse>
pub fn approval<T: Into<String>>( &self, querier: &QuerierWrapper<'_>, token_id: T, spender: T, include_expired: Option<bool>, ) -> StdResult<ApprovalResponse>
pub fn approvals<T: Into<String>>( &self, querier: &QuerierWrapper<'_>, token_id: T, include_expired: Option<bool>, ) -> StdResult<ApprovalsResponse>
pub fn all_operators<T: Into<String>>( &self, querier: &QuerierWrapper<'_>, owner: T, include_expired: bool, start_after: Option<String>, limit: Option<u32>, ) -> StdResult<Vec<Approval>>
pub fn num_tokens(&self, querier: &QuerierWrapper<'_>) -> StdResult<u64>
Sourcepub fn contract_info(
&self,
querier: &QuerierWrapper<'_>,
) -> StdResult<ContractInfoResponse>
pub fn contract_info( &self, querier: &QuerierWrapper<'_>, ) -> StdResult<ContractInfoResponse>
With metadata extension
Sourcepub fn nft_info<T: Into<String>, U: DeserializeOwned>(
&self,
querier: &QuerierWrapper<'_>,
token_id: T,
) -> StdResult<NftInfoResponse<U>>
pub fn nft_info<T: Into<String>, U: DeserializeOwned>( &self, querier: &QuerierWrapper<'_>, token_id: T, ) -> StdResult<NftInfoResponse<U>>
With metadata extension
Sourcepub fn all_nft_info<T: Into<String>, U: DeserializeOwned>(
&self,
querier: &QuerierWrapper<'_>,
token_id: T,
include_expired: bool,
) -> StdResult<AllNftInfoResponse<U>>
pub fn all_nft_info<T: Into<String>, U: DeserializeOwned>( &self, querier: &QuerierWrapper<'_>, token_id: T, include_expired: bool, ) -> StdResult<AllNftInfoResponse<U>>
With metadata extension
Sourcepub fn tokens<T: Into<String>>(
&self,
querier: &QuerierWrapper<'_>,
owner: T,
start_after: Option<String>,
limit: Option<u32>,
) -> StdResult<TokensResponse>
pub fn tokens<T: Into<String>>( &self, querier: &QuerierWrapper<'_>, owner: T, start_after: Option<String>, limit: Option<u32>, ) -> StdResult<TokensResponse>
With enumerable extension
Sourcepub fn all_tokens(
&self,
querier: &QuerierWrapper<'_>,
start_after: Option<String>,
limit: Option<u32>,
) -> StdResult<TokensResponse>
pub fn all_tokens( &self, querier: &QuerierWrapper<'_>, start_after: Option<String>, limit: Option<u32>, ) -> StdResult<TokensResponse>
With enumerable extension
Sourcepub fn has_metadata(&self, querier: &QuerierWrapper<'_>) -> bool
pub fn has_metadata(&self, querier: &QuerierWrapper<'_>) -> bool
returns true if the contract supports the metadata extension
Sourcepub fn has_enumerable(&self, querier: &QuerierWrapper<'_>) -> bool
pub fn has_enumerable(&self, querier: &QuerierWrapper<'_>) -> bool
returns true if the contract supports the enumerable extension
Trait Implementations§
Source§impl<Q: Clone + CustomMsg, E: Clone + CustomMsg> Clone for Bs721Contract<Q, E>
impl<Q: Clone + CustomMsg, E: Clone + CustomMsg> Clone for Bs721Contract<Q, E>
Source§fn clone(&self) -> Bs721Contract<Q, E>
fn clone(&self) -> Bs721Contract<Q, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, Q: CustomMsg, E: CustomMsg> Deserialize<'de> for Bs721Contract<Q, E>
impl<'de, Q: CustomMsg, E: CustomMsg> Deserialize<'de> for Bs721Contract<Q, E>
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Q: CustomMsg + JsonSchema, E: CustomMsg + JsonSchema> JsonSchema for Bs721Contract<Q, E>
impl<Q: CustomMsg + JsonSchema, E: CustomMsg + JsonSchema> JsonSchema for Bs721Contract<Q, E>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn 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 moreimpl<Q: CustomMsg, E: CustomMsg> StructuralPartialEq for Bs721Contract<Q, E>
Auto Trait Implementations§
impl<Q, E> Freeze for Bs721Contract<Q, E>
impl<Q, E> RefUnwindSafe for Bs721Contract<Q, E>where
Q: RefUnwindSafe,
E: RefUnwindSafe,
impl<Q, E> Send for Bs721Contract<Q, E>
impl<Q, E> Sync for Bs721Contract<Q, E>
impl<Q, E> Unpin for Bs721Contract<Q, E>
impl<Q, E> UnwindSafe for Bs721Contract<Q, E>where
Q: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more