[][src]Struct terra_cosmwasm::TerraQuerier

pub struct TerraQuerier<'a, Q: Querier> { /* fields omitted */ }

This is a helper wrapper to easily use our custom queries

Implementations

impl<'a, Q: Querier> TerraQuerier<'a, Q>[src]

pub fn new(querier: &'a Q) -> Self[src]

pub fn query_swap<T: Into<String>>(
    &self,
    offer_coin: Coin,
    ask_denom: T
) -> StdResult<Coin>
[src]

pub fn query_tax_cap<T: Into<String>>(&self, denom: T) -> StdResult<Uint128>[src]

pub fn query_tax_rate(&self) -> StdResult<Decimal>[src]

Auto Trait Implementations

impl<'a, Q> RefUnwindSafe for TerraQuerier<'a, Q> where
    Q: RefUnwindSafe

impl<'a, Q> Send for TerraQuerier<'a, Q> where
    Q: Sync

impl<'a, Q> Sync for TerraQuerier<'a, Q> where
    Q: Sync

impl<'a, Q> Unpin for TerraQuerier<'a, Q>

impl<'a, Q> UnwindSafe for TerraQuerier<'a, Q> where
    Q: RefUnwindSafe

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> From<T> for T[src]

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

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.