Struct mail_builder::headers::address::EmailAddress
source · pub struct EmailAddress<'x> {
pub name: Option<Cow<'x, str>>,
pub email: Cow<'x, str>,
}Expand description
RFC5322 e-mail address
Fields§
§name: Option<Cow<'x, str>>§email: Cow<'x, str>Trait Implementations§
source§impl<'x> Clone for EmailAddress<'x>
impl<'x> Clone for EmailAddress<'x>
source§fn clone(&self) -> EmailAddress<'x>
fn clone(&self) -> EmailAddress<'x>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'x> Debug for EmailAddress<'x>
impl<'x> Debug for EmailAddress<'x>
source§impl<'x> Header for EmailAddress<'x>
impl<'x> Header for EmailAddress<'x>
source§impl<'x> Ord for EmailAddress<'x>
impl<'x> Ord for EmailAddress<'x>
source§fn cmp(&self, other: &EmailAddress<'x>) -> Ordering
fn cmp(&self, other: &EmailAddress<'x>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'x> PartialEq<EmailAddress<'x>> for EmailAddress<'x>
impl<'x> PartialEq<EmailAddress<'x>> for EmailAddress<'x>
source§fn eq(&self, other: &EmailAddress<'x>) -> bool
fn eq(&self, other: &EmailAddress<'x>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'x> PartialOrd<EmailAddress<'x>> for EmailAddress<'x>
impl<'x> PartialOrd<EmailAddress<'x>> for EmailAddress<'x>
source§fn partial_cmp(&self, other: &EmailAddress<'x>) -> Option<Ordering>
fn partial_cmp(&self, other: &EmailAddress<'x>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'x> Eq for EmailAddress<'x>
impl<'x> StructuralEq for EmailAddress<'x>
impl<'x> StructuralPartialEq for EmailAddress<'x>
Auto Trait Implementations§
impl<'x> RefUnwindSafe for EmailAddress<'x>
impl<'x> Send for EmailAddress<'x>
impl<'x> Sync for EmailAddress<'x>
impl<'x> Unpin for EmailAddress<'x>
impl<'x> UnwindSafe for EmailAddress<'x>
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