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.