Type Definition mail_headers::map::HeaderMapValidator
source · pub type HeaderMapValidator = fn(_: &HeaderMap) -> Result<(), HeaderValidationError>;
Expand description
The type of an validator used to check more complex header contraints.
An example constraint would be if a From
header field contains more than
one mailbox a Sender
header field is required to be present.