#[repr(C)]pub struct EmailAddress {
pub address: AzString,
}Expand description
An email address, e.g. a support mailbox problem reports go to.
Deliberately a thin wrapper (no RFC 5322 validation): the address is app-configured, not user input, and the SMTP layer reports a bad one loudly at send time.
Fields§
§address: AzStringThe address, e.g. support@myapp.example.
Implementations§
Trait Implementations§
Source§impl Clone for EmailAddress
impl Clone for EmailAddress
Source§fn clone(&self) -> EmailAddress
fn clone(&self) -> EmailAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailAddress
impl Debug for EmailAddress
impl Eq for EmailAddress
Source§impl Hash for EmailAddress
impl Hash for EmailAddress
Source§impl Ord for EmailAddress
impl Ord for EmailAddress
Source§fn cmp(&self, other: &EmailAddress) -> Ordering
fn cmp(&self, other: &EmailAddress) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EmailAddress
impl PartialEq for EmailAddress
Source§impl PartialOrd for EmailAddress
impl PartialOrd for EmailAddress
impl StructuralPartialEq for EmailAddress
Auto Trait Implementations§
impl Freeze for EmailAddress
impl RefUnwindSafe for EmailAddress
impl Send for EmailAddress
impl Sync for EmailAddress
impl Unpin for EmailAddress
impl UnsafeUnpin for EmailAddress
impl UnwindSafe for EmailAddress
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