pub trait Msg: Clone + Sized + TryFrom<Self::Proto, Error = Self::Err> + TryInto<Self::Proto, Error = Self::Err> {
type Proto: Default + MessageExt + Sized + TypeUrl;
type Err: From<ChainError> + Debug + Display;
// Provided methods
fn from_any(any: &Any) -> Result<Self, Self::Err> { ... }
fn to_any(&self) -> Result<Any, Self::Err> { ... }
fn into_any(self) -> Result<Any, Self::Err> { ... }
}
Protobuf conversion error type
Parse this message proto from Any.
Serialize this message proto as Any.
Convert this message proto into Any.