[][src]Struct cw1::helpers::Cw1Contract

pub struct Cw1Contract(pub HumanAddr);

Cw1Contract is a wrapper around HumanAddr that provides a lot of helpers for working with this.

If you wish to persist this, convert to Cw1CanonicalContract via .canonical()

Implementations

impl Cw1Contract[src]

pub fn addr(&self) -> HumanAddr[src]

pub fn canonical<A: Api>(&self, api: &A) -> StdResult<Cw1CanonicalContract>[src]

Convert this address to a form fit for storage

pub fn execute<T: Into<Vec<CosmosMsg>>>(&self, msgs: T) -> StdResult<CosmosMsg>[src]

Trait Implementations

impl Clone for Cw1Contract[src]

impl Debug for Cw1Contract[src]

impl<'de> Deserialize<'de> for Cw1Contract[src]

impl JsonSchema for Cw1Contract[src]

impl PartialEq<Cw1Contract> for Cw1Contract[src]

impl Serialize for Cw1Contract[src]

impl StructuralPartialEq for Cw1Contract[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.