[−][src]Struct mail::header_components::Email
an email of the form local-part@domain
corresponds to RFC5322 addr-spec, so <
, >
padding is not
part of this Email type (but of the Mailbox type instead)
Fields
local_part: LocalPart
domain: Domain
Implementations
impl Email
[src]
pub fn check_if_internationalized(&self) -> bool
[src]
pub fn new<T>(email: T) -> Result<Email, ComponentCreationError> where
T: HeaderTryInto<Input>,
[src]
T: HeaderTryInto<Input>,
Trait Implementations
impl Clone for Email
[src]
impl Debug for Email
[src]
impl EncodableInHeader for Email
[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader + 'static>
[src]
impl Eq for Email
[src]
impl From<Email> for Mailbox
[src]
impl Hash for Email
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> HeaderTryFrom<&'a str> for Email
[src]
impl HeaderTryFrom<Input> for Email
[src]
impl HeaderTryFrom<String> for Email
[src]
impl PartialEq<Email> for Email
[src]
impl StructuralEq for Email
[src]
impl StructuralPartialEq for Email
[src]
Auto Trait Implementations
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnwindSafe for Email
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,