[][src]Struct mail::header_components::Email

pub struct Email {
    pub local_part: LocalPart,
    pub domain: Domain,
}

an email of the form local-part@domain corresponds to RFC5322 addr-spec, so <, > padding is not part of this Email type (but of the Mailbox type instead)

Fields

local_part: LocalPartdomain: Domain

Implementations

impl Email[src]

pub fn check_if_internationalized(&self) -> bool[src]

pub fn new<T>(email: T) -> Result<Email, ComponentCreationError> where
    T: HeaderTryInto<Input>, 
[src]

Trait Implementations

impl Clone for Email[src]

impl Debug for Email[src]

impl EncodableInHeader for Email[src]

impl Eq for Email[src]

impl From<Email> for Mailbox[src]

impl Hash for Email[src]

impl<'a> HeaderTryFrom<&'a str> for Email[src]

impl HeaderTryFrom<Input> for Email[src]

impl HeaderTryFrom<String> for Email[src]

impl PartialEq<Email> for Email[src]

impl StructuralEq for Email[src]

impl StructuralPartialEq for Email[src]

Auto Trait Implementations

impl RefUnwindSafe for Email

impl Send for Email

impl Sync for Email

impl Unpin for Email

impl UnwindSafe for Email

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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

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

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

impl<F, T> HeaderTryInto<T> for F where
    T: HeaderTryFrom<F>, 
[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, 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.