pub struct MessageId;Expand description
(rfc5322)
Trait Implementations§
source§impl HeaderKind for MessageId
impl HeaderKind for MessageId
§type Component = MessageId
type Component = MessageId
the component representing the header-field, e.g.
Unstructured for Subjectsource§fn name() -> HeaderName
fn name() -> HeaderName
a method returning the header name Read more
source§const MAX_ONE: bool = true
const MAX_ONE: bool = true
I true this will assure that the header is at most one time in a header map. Read more
source§const VALIDATOR: Option<fn(_: &HeaderMap) -> Result<(), HeaderValidationError>> = { None }
const VALIDATOR: Option<fn(_: &HeaderMap) -> Result<(), HeaderValidationError>> = { None }
A function which is meant to be called with a reference
to the final header map before encoding the headers. It is
meant to be used do some of the contextual validations,
like e.g. a
From header might return a function which
checks if the From header has multiple mailboxes and
if so checks if there is a Sender header Read moresource§fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
Creates a
Header instance automatically converting given body to the right type. Read more