Trait hedwig::EncodableMessage
source · pub trait EncodableMessage {
type Error;
type Validator;
// Required methods
fn topic(&self) -> Topic;
fn encode(
&self,
validator: &Self::Validator
) -> Result<ValidatedMessage, Self::Error>;
}Expand description
Types that can be encoded and published.
Required Associated Types§
sourcetype Error
type Error
The errors that can occur when calling the EncodableMessage::encode method.
Will typically match the errors returned by the EncodableMessage::Validator.