[−][src]Struct cosmwasm_std::testing::MockQuerier
MockQuerier holds an immutable table of bank balances TODO: also allow querying contracts
Implementations
impl MockQuerier
[src]
pub fn new(balances: &[(&HumanAddr, &[Coin])]) -> Self
[src]
pub fn update_balance<U: Into<HumanAddr>>(
&mut self,
addr: U,
balance: Vec<Coin>
) -> Option<Vec<Coin>>
[src]
&mut self,
addr: U,
balance: Vec<Coin>
) -> Option<Vec<Coin>>
impl MockQuerier
[src]
pub fn handle_query<T>(&self, request: &QueryRequest<T>) -> QuerierResult
[src]
Trait Implementations
impl Clone for MockQuerier
[src]
fn clone(&self) -> MockQuerier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for MockQuerier
[src]
fn default() -> MockQuerier
[src]
impl Querier for MockQuerier
[src]
fn raw_query(&self, bin_request: &[u8]) -> QuerierResult
[src]
fn query<T: DeserializeOwned>(
&self,
request: &QueryRequest<Never>
) -> StdResult<T>
[src]
&self,
request: &QueryRequest<Never>
) -> StdResult<T>
fn custom_query<T: Serialize, U: DeserializeOwned>(
&self,
request: &QueryRequest<T>
) -> StdResult<U>
[src]
&self,
request: &QueryRequest<T>
) -> StdResult<U>
fn query_balance<U: Into<HumanAddr>>(
&self,
address: U,
denom: &str
) -> StdResult<Coin>
[src]
&self,
address: U,
denom: &str
) -> StdResult<Coin>
fn query_all_balances<U: Into<HumanAddr>>(
&self,
address: U
) -> StdResult<Vec<Coin>>
[src]
&self,
address: U
) -> StdResult<Vec<Coin>>
Auto Trait Implementations
impl RefUnwindSafe for MockQuerier
impl Send for MockQuerier
impl Sync for MockQuerier
impl Unpin for MockQuerier
impl UnwindSafe for MockQuerier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,