Struct lettre::EmailAddress
[−]
[src]
pub struct EmailAddress(_);
Email address
Methods
impl EmailAddress
[src]
pub fn new(address: String) -> EmailResult<EmailAddress>
[src]
Creates a new EmailAddress
. For now it makes no validation.
Trait Implementations
impl PartialEq for EmailAddress
[src]
fn eq(&self, __arg_0: &EmailAddress) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EmailAddress) -> bool
[src]
This method tests for !=
.
impl Eq for EmailAddress
[src]
impl Clone for EmailAddress
[src]
fn clone(&self) -> EmailAddress
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EmailAddress
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for EmailAddress
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more