Trait mail::HeaderObjTrait

source ·
pub trait HeaderObjTrait: Sync + Send + Any + Debug {
    fn name(&self) -> HeaderName;
    fn is_max_one(&self) -> bool;
    fn validator(
        &self
    ) -> Option<fn(_: &HeaderMap) -> Result<(), HeaderValidationError>>; fn encode(
        &self,
        encoder: &mut EncodingWriter<'_>
    ) -> Result<(), EncodingError>; fn boxed_clone(&self) -> Box<dyn HeaderObjTrait + 'static, Global>; }
Expand description

Re-export of headers from mail-headers.

Required Methods

Implementations

Trait Implementations

Implementors