IntoMessage

Trait IntoMessage 

Source
pub trait IntoMessage<M> {
    // Required method
    fn into_message(self) -> M;

    // Provided method
    fn try_into_bytes(self) -> ABIResult<Vec<u8>>
       where Self: Sized,
             M: TryIntoBytes { ... }
}

Required Methods§

Source

fn into_message(self) -> M

Provided Methods§

Source

fn try_into_bytes(self) -> ABIResult<Vec<u8>>
where Self: Sized, M: TryIntoBytes,

Implementors§

Source§

impl<T> IntoMessage<JsonMessage<T>> for T
where T: for<'a> Deserialize<'a> + Serialize + Debug,

Source§

impl<T: Message + Default> IntoMessage<PbMessage<T>> for T