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