Struct email::Mailbox
[−]
[src]
pub struct Mailbox { pub name: Option<String>, pub address: String, }
Represents an RFC 5322 mailbox
Fields
name: Option<String>
The given name for this address
address: String
The mailbox address
Methods
impl Mailbox
[src]
fn new(address: String) -> Mailbox
[src]
Create a new Mailbox without a display name
fn new_with_name(name: String, address: String) -> Mailbox
[src]
Create a new Mailbox with a display name
Trait Implementations
impl PartialEq for Mailbox
[src]
fn eq(&self, __arg_0: &Mailbox) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mailbox) -> bool
[src]
This method tests for !=
.
impl Eq for Mailbox
[src]
impl Debug for Mailbox
[src]
impl Clone for Mailbox
[src]
fn clone(&self) -> Mailbox
[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 Display for Mailbox
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Mailbox
[src]
type Err = ParsingError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> ParsingResult<Mailbox>
[src]
Parses a string s
to return a value of this type. Read more