[][src]Struct addr::Email

pub struct Email { /* fields omitted */ }

Implementations

impl Email[src]

pub fn user(&self) -> &str[src]

pub fn host(&self) -> &Host[src]

Trait Implementations

impl Debug for Email[src]

impl Display for Email[src]

impl Eq for Email[src]

impl FromStr for Email[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(address: &str) -> Result<Email>[src]

Extracts Host from an email address

This method can also be used, simply to validate an email address. If it returns an error, the email address is not valid.

impl Hash for Email[src]

impl Ord for Email[src]

impl PartialEq<Email> for Email[src]

impl PartialOrd<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> From<T> for T[src]

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

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.