[][src]Struct stdtx::msg::Msg

pub struct Msg { /* fields omitted */ }

Transaction message type i.e. sdk.Msg. These serve as the payload for StdTx transactions.

Implementations

impl Msg[src]

pub fn from_json_value(
    schema: &Schema,
    json_value: Value
) -> Result<Self, Error>
[src]

Parse a Msg from a serde_json::Value following the provided Schema for field definitions.

pub fn type_name(&self) -> &TypeName[src]

Get the type name for this Msg

pub fn fields(&self) -> &[Field][src]

Get the Field entries in this Msg

pub fn to_json_value(&self, schema: &Schema) -> Value[src]

Compute serde_json::Value representing a sdk.Msg

pub fn to_amino_bytes(&self) -> Vec<u8>[src]

Encode this message in the Amino wire format

Trait Implementations

impl Clone for Msg[src]

impl Debug for Msg[src]

Auto Trait Implementations

impl RefUnwindSafe for Msg

impl Send for Msg

impl Sync for Msg

impl Unpin for Msg

impl UnwindSafe for Msg

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.