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