Trait mail_internals::encoder::EncodableInHeader
source · pub trait EncodableInHeader: Send + Sync + Any + Debug {
fn encode(
&self,
encoder: &mut EncodingWriter<'_>
) -> Result<(), EncodingError>;
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>;
}Expand description
Trait Implemented by “components” used in header field bodies
This trait can be turned into a trait object allowing runtime genericallity over the “components” if needed.