pub trait SerializeMessage {
// Required method
fn serialize_message(input: Self) -> Result<Message, Error>;
}Expand description
Helper trait for message serialization
Required Methods§
Sourcefn serialize_message(input: Self) -> Result<Message, Error>
fn serialize_message(input: Self) -> Result<Message, Error>
serialize method that will be called by the producer
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".