Struct mail_builder::headers::address::EmailAddress
source · [−]Expand description
RFC5322 e-mail address
Fields
name: Option<Cow<'x, str>>email: Cow<'x, str>Trait Implementations
sourceimpl<'x> Clone for EmailAddress<'x>
impl<'x> Clone for EmailAddress<'x>
sourcefn clone(&self) -> EmailAddress<'x>
fn clone(&self) -> EmailAddress<'x>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'x> Debug for EmailAddress<'x>
impl<'x> Debug for EmailAddress<'x>
sourceimpl<'x> Header for EmailAddress<'x>
impl<'x> Header for EmailAddress<'x>
sourceimpl<'x> Ord for EmailAddress<'x>
impl<'x> Ord for EmailAddress<'x>
sourcefn cmp(&self, other: &EmailAddress<'x>) -> Ordering
fn cmp(&self, other: &EmailAddress<'x>) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'x> PartialEq<EmailAddress<'x>> for EmailAddress<'x>
impl<'x> PartialEq<EmailAddress<'x>> for EmailAddress<'x>
sourcefn eq(&self, other: &EmailAddress<'x>) -> bool
fn eq(&self, other: &EmailAddress<'x>) -> bool
sourceimpl<'x> PartialOrd<EmailAddress<'x>> for EmailAddress<'x>
impl<'x> PartialOrd<EmailAddress<'x>> for EmailAddress<'x>
sourcefn partial_cmp(&self, other: &EmailAddress<'x>) -> Option<Ordering>
fn partial_cmp(&self, other: &EmailAddress<'x>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more