Trait cosmos_sdk_proto::traits::MessageExt
source · pub trait MessageExt: Message {
// Required method
fn to_bytes(&self) -> Result<Vec<u8>, EncodeError>;
// Provided methods
fn from_any(any: &Any) -> Result<Self, DecodeError>
where Self: Default + Sized + TypeUrl { ... }
fn to_any(&self) -> Result<Any, EncodeError>
where Self: TypeUrl { ... }
}Expand description
Extension trait for Message.