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 duplicate 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 Header for EmailAddress<'_>
impl Header for EmailAddress<'_>
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 for EmailAddress<'x>
impl<'x> PartialEq for EmailAddress<'x>
Source§impl<'x> PartialOrd for EmailAddress<'x>
impl<'x> PartialOrd for EmailAddress<'x>
impl<'x> Eq for EmailAddress<'x>
impl<'x> StructuralPartialEq for EmailAddress<'x>
Auto Trait Implementations§
impl<'x> Freeze for EmailAddress<'x>
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