[][src]Enum cosmwasm_std::WasmQuery

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

Variants

Smart

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

Raw

this queries the raw kv-store of the contract. returns the raw, unparsed data stored at that key, which may be an empty vector if not present

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<C: CustomQuery> From<WasmQuery> for QueryRequest<C>[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
[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.