[][src]Enum mail_headers::error::BuildInValidationError

pub enum BuildInValidationError {
    MaxOneInconsistency {
        header_name: &'static str,
    },
    MoreThenOne {
        header_name: &'static str,
    },
    MultiMailboxFromWithoutSender,
    ResentDateFieldMissing,
    MultiMailboxResentFromWithoutResentSender,
}

The build-in error variants (error kinds) which can be returned when running a header map validator.

Variants

MaxOneInconsistency

This error is returned by use_contextual_validators if there is a "max one" inconsistency.

I.e. if multiple implementations of the same header are used in the same map but the implementations do not agree on wether or not the header can appear at most one time in a header section.

Fields of MaxOneInconsistency

header_name: &'static str
MoreThenOne

Fields of MoreThenOne

header_name: &'static str
MultiMailboxFromWithoutSender
ResentDateFieldMissing
MultiMailboxResentFromWithoutResentSender

Trait Implementations

impl Clone for BuildInValidationError[src]

impl Copy for BuildInValidationError[src]

impl Debug for BuildInValidationError[src]

impl Display for BuildInValidationError[src]

impl Eq for BuildInValidationError[src]

impl Fail for BuildInValidationError[src]

impl From<BuildInValidationError> for HeaderValidationError[src]

impl Hash for BuildInValidationError[src]

impl PartialEq<BuildInValidationError> for BuildInValidationError[src]

impl StructuralEq for BuildInValidationError[src]

impl StructuralPartialEq for BuildInValidationError[src]

Auto Trait Implementations

impl RefUnwindSafe for BuildInValidationError

impl Send for BuildInValidationError

impl Sync for BuildInValidationError

impl Unpin for BuildInValidationError

impl UnwindSafe for BuildInValidationError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.