[][src]Enum cosmwasm_std::WasmQuery

pub enum WasmQuery {
    Smart {
        contract_addr: HumanAddr,
        msg: Binary,
    Raw {
        contract_addr: HumanAddr,
        key: Binary,



this queries the public API of another contract at a known address (with known ABI) return value is whatever the contract returns (caller should know)

Fields of Smart

contract_addr: HumanAddrmsg: Binary

msg is the json-encoded QueryMsg struct


this queries the raw kv-store of the contract. returns the raw, unparsed data stored at that key (or Ok(Err(StdError:NotFound{})) if missing)

Fields of Raw

contract_addr: HumanAddrkey: Binary

Key is the raw key used in the contracts Storage

Trait Implementations

impl Clone for WasmQuery[src]

impl Debug for WasmQuery[src]

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

impl<T: Clone + Debug + PartialEq + JsonSchema> From<WasmQuery> for QueryRequest<T>[src]

impl JsonSchema for WasmQuery[src]

impl PartialEq<WasmQuery> for WasmQuery[src]

impl Serialize for WasmQuery[src]

impl StructuralPartialEq for WasmQuery[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.