Struct cosmwasm_std::MessageInfo[][src]

pub struct MessageInfo {
    pub sender: Addr,
    pub funds: Vec<Coin>,
}

Additional information from MsgInstantiateContract and MsgExecuteContract, which is passed along with the contract execution message into the instantiate and execute entry points.

It contains the essential info for authorization - identity of the call, and payment.

Fields

sender: Addr

The sender field from MsgInstantiateContract and MsgExecuteContract. 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 or is otherwise authorized to send the message.

Additional signers of the transaction that are either needed for other messages or contain unnecessary signatures are not propagated into the contract.

funds: Vec<Coin>

The funds that are sent to the contract as part of MsgInstantiateContract or MsgExecuteContract. The transfer is processed in bank before the contract is executed such that the new balance is visible during contract execution.

Trait Implementations

impl Clone for MessageInfo[src]

impl Debug for MessageInfo[src]

impl<'de> Deserialize<'de> 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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

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

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> FmtForward for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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.