Struct emailaddress::EmailAddress [] [src]

pub struct EmailAddress {
    pub local: String,
    pub domain: String,
}

Fields

local: String domain: String

Methods

impl EmailAddress
[src]

fn new(string: &str) -> EmailAddress

Trait Implementations

impl Debug for EmailAddress
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for EmailAddress
[src]

fn eq(&self, __arg_0: &EmailAddress) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &EmailAddress) -> bool

This method tests for !=.

impl Clone for EmailAddress
[src]

fn clone(&self) -> EmailAddress

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Display for EmailAddress
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for EmailAddress
[src]

type Err = AddrError

The associated error which can be returned from parsing.

fn from_str(string: &str) -> Result<EmailAddressAddrError>

Parses a string s to return a value of this type. Read more