pub enum HeaderValidationError {
BuildIn(Context<BuildInValidationError>),
Custom(Error),
}
Expand description
A validator specified in a header definition failed.
Common validators are e.g. to make sure that if a From header has multiple mailboxes that there is a Sender header etc.
Variants§
BuildIn(Context<BuildInValidationError>)
Custom(Error)
Trait Implementations§
Source§impl Debug for HeaderValidationError
impl Debug for HeaderValidationError
Source§impl Display for HeaderValidationError
impl Display for HeaderValidationError
Source§impl Fail for HeaderValidationError
impl Fail for HeaderValidationError
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<BuildInValidationError> for HeaderValidationError
impl From<BuildInValidationError> for HeaderValidationError
Source§fn from(err: BuildInValidationError) -> HeaderValidationError
fn from(err: BuildInValidationError) -> HeaderValidationError
Converts to this type from the input type.
Source§impl From<Context<BuildInValidationError>> for HeaderValidationError
impl From<Context<BuildInValidationError>> for HeaderValidationError
Source§fn from(err: Context<BuildInValidationError>) -> HeaderValidationError
fn from(err: Context<BuildInValidationError>) -> HeaderValidationError
Converts to this type from the input type.
Source§impl From<HeaderValidationError> for MailError
impl From<HeaderValidationError> for MailError
Source§fn from(err: HeaderValidationError) -> MailError
fn from(err: HeaderValidationError) -> MailError
Converts to this type from the input type.
Source§impl From<OtherValidationError> for HeaderValidationError
impl From<OtherValidationError> for HeaderValidationError
Source§fn from(oe: OtherValidationError) -> HeaderValidationError
fn from(oe: OtherValidationError) -> HeaderValidationError
Converts to this type from the input type.
Source§impl From<OtherValidationError> for HeaderValidationError
impl From<OtherValidationError> for HeaderValidationError
Source§fn from(ove: OtherValidationError) -> HeaderValidationError
fn from(ove: OtherValidationError) -> HeaderValidationError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for HeaderValidationError
impl !RefUnwindSafe for HeaderValidationError
impl Send for HeaderValidationError
impl Sync for HeaderValidationError
impl Unpin for HeaderValidationError
impl !UnwindSafe for HeaderValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more