[][src]Struct cosmwasm_std::MessageInfo

pub struct MessageInfo {
    pub sender: CanonicalAddr,
    pub sent_funds: Vec<Coin>,


sender: CanonicalAddr

The sender field from the wasm/store-code, wasm/instantiate or wasm/execute message. You can think of this as the address that initiated the action (i.e. the message). What that means exactly heavily depends on the application.

The x/wasm module ensures that the sender address signed the transaction. Additional signers of the transaction that are either needed for other messages or contain unnecessary signatures are not propagated into the contract.

There is a discussion to open up this field to multiple initiators, which you're welcome to join if you have a specific need for that feature: https://github.com/CosmWasm/cosmwasm/issues/293

sent_funds: Vec<Coin>

Trait Implementations

impl Clone for MessageInfo[src]

impl Debug for MessageInfo[src]

impl Default for MessageInfo[src]

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

impl JsonSchema for MessageInfo[src]

impl PartialEq<MessageInfo> for MessageInfo[src]

impl Serialize for MessageInfo[src]

impl StructuralPartialEq for MessageInfo[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.