pub struct Address { /* private fields */ }
Expand description
Represents an email address, composed of name, user and host.
Implementations§
Source§impl Address
impl Address
pub fn parse<T: AsRef<str>>(string: T) -> Result<Self>
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name if any.
This is the first part of an address, which can be bare or quoted, for
example "Someone Somewhere" <someone@somewhe.re>
or Someone Somewhere <someone@somewhe.re>
.
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl !Send for Address
impl !Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more