[][src]Enum cosmwasm_std::WasmMsg

pub enum WasmMsg {
    Execute {
        contract_addr: HumanAddr,
        msg: Binary,
        send: Vec<Coin>,
    },
    Instantiate {
        code_id: u64,
        msg: Binary,
        send: Vec<Coin>,
        label: Option<String>,
    },
}

Variants

Execute

this dispatches a call to another contract at a known address (with known ABI)

Fields of Execute

contract_addr: HumanAddrmsg: Binary

msg is the json-encoded HandleMsg struct (as raw Binary)

send: Vec<Coin>
Instantiate

this instantiates a new contracts from previously uploaded wasm code

Fields of Instantiate

code_id: u64msg: Binary

msg is the json-encoded InitMsg struct (as raw Binary)

send: Vec<Coin>label: Option<String>

optional human-readbale label for the contract

Trait Implementations

impl Clone for WasmMsg[src]

impl Debug for WasmMsg[src]

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

impl<T: Clone + Debug + PartialEq + JsonSchema> From<WasmMsg> for CosmosMsg<T>[src]

impl JsonSchema for WasmMsg[src]

impl PartialEq<WasmMsg> for WasmMsg[src]

impl Serialize for WasmMsg[src]

impl StructuralPartialEq for WasmMsg[src]

Auto Trait Implementations

impl RefUnwindSafe for WasmMsg

impl Send for WasmMsg

impl Sync for WasmMsg

impl Unpin for WasmMsg

impl UnwindSafe for WasmMsg

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.