Struct cw20::Cw20Contract [−][src]
pub struct Cw20Contract(pub Addr);Expand description
Cw20Contract is a wrapper around Addr that provides a lot of helpers for working with this.
If you wish to persist this, convert to Cw20CanonicalContract via .canonical()
Tuple Fields
0: AddrImplementations
Get token balance for the given address
Get metadata from the contract. This is a good check that the address is a valid Cw20 contract.
Get allowance of spender to use owner’s account
Find info on who can mint, and how much
returns true if the contract supports the allowance extension
returns true if the contract supports the mintable 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 Cw20Contract
impl Send for Cw20Contract
impl Sync for Cw20Contract
impl Unpin for Cw20Contract
impl UnwindSafe for Cw20Contract
Blanket Implementations
Mutably borrows from an owned value. Read more
