Struct addr::Email [−][src]
pub struct Email { /* fields omitted */ }
Methods
impl Email
[src]
impl Email
Trait Implementations
impl Debug for Email
[src]
impl Debug for Email
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Email
[src]
impl FromStr for Email
type Err = Error
The associated error which can be returned from parsing.
fn from_str(address: &str) -> Result<Email>
[src]
fn from_str(address: &str) -> Result<Email>
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 Display for Email
[src]
impl Display for Email