pub trait Encode<V> { // Required method fn encode(&self, any_message: AnyMessage) -> Result<V, AnyError>; }