pub struct Msg { /* private fields */ }
Expand description
Implementations
sourceimpl Msg
impl Msg
sourcepub fn from_json_value(schema: &Schema, json_value: Value) -> Result<Self>
pub fn from_json_value(schema: &Schema, json_value: Value) -> Result<Self>
Parse a Msg
from a serde_json::Value
following the provided
Schema
for field definitions.
sourcepub fn to_json_value(&self, schema: &Schema) -> Value
pub fn to_json_value(&self, schema: &Schema) -> Value
Compute serde_json::Value
representing a sdk.Msg
sourcepub fn to_amino_bytes(&self) -> Vec<u8>
pub fn to_amino_bytes(&self) -> Vec<u8>
Encode this message in the Amino wire format
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more