Struct cw721::Cw721Contract [−][src]
pub struct Cw721Contract(pub Addr);Expand description
Cw721Contract is a wrapper around Addr that provides a lot of helpers for working with this.
If you wish to persist this, convert to Cw721CanonicalContract via .canonical()
Tuple Fields
0: AddrImplementations
pub fn query<Q: Querier, T: DeserializeOwned>(
&self,
querier: &Q,
req: Cw721QueryMsg
) -> StdResult<T>
pub fn owner_of<Q: Querier, T: Into<String>>(
&self,
querier: &Q,
token_id: T,
include_expired: bool
) -> StdResult<OwnerOfResponse>
pub fn approved_for_all<Q: Querier, T: Into<String>>(
&self,
querier: &Q,
owner: T,
include_expired: bool,
start_after: Option<String>,
limit: Option<u32>
) -> StdResult<Vec<Approval>>
With metadata extension
With metadata extension
pub fn all_nft_info<Q: Querier, T: Into<String>>(
&self,
querier: &Q,
token_id: T,
include_expired: bool
) -> StdResult<AllNftInfoResponse>
pub fn all_nft_info<Q: Querier, T: Into<String>>(
&self,
querier: &Q,
token_id: T,
include_expired: bool
) -> StdResult<AllNftInfoResponse>
With metadata extension
With enumerable extension
pub fn all_tokens<Q: Querier>(
&self,
querier: &Q,
start_after: Option<String>,
limit: Option<u32>
) -> StdResult<TokensResponse>
pub fn all_tokens<Q: Querier>(
&self,
querier: &Q,
start_after: Option<String>,
limit: Option<u32>
) -> StdResult<TokensResponse>
With enumerable extension
returns true if the contract supports the metadata extension
returns true if the contract supports the enumerable extension
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Cw721Contract
impl Send for Cw721Contract
impl Sync for Cw721Contract
impl Unpin for Cw721Contract
impl UnwindSafe for Cw721Contract
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self