[][src]Struct mail::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

Methods

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl HeaderTryFrom<String> for Email[src]

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

impl HeaderTryFrom<Input> for Email[src]

impl Hash for Email[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Email[src]

impl From<Email> for Mailbox[src]

impl EncodableInHeader for Email[src]

impl PartialEq<Email> for Email[src]

impl Debug for Email[src]

Auto Trait Implementations

impl Send for Email

impl Sync for Email

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> HeaderTryFrom for T[src]

impl<T> Erased for T