[][src]Struct addr::Email

pub struct Email { /* fields omitted */ }

Methods

impl Email[src]

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

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

Trait Implementations

impl Display for Email[src]

impl Debug 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.

Auto Trait Implementations

impl Send for Email

impl Sync for Email

Blanket Implementations

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

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

impl<T> From for T[src]

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

type Error = Infallible

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

The type returned in the event of a conversion error.