[−][src]Struct mail_headers::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
Methods
impl Email
[src]
pub fn check_if_internationalized(&self) -> bool
[src]
pub fn new<T: HeaderTryInto<Input>>(
email: T
) -> Result<Self, ComponentCreationError>
[src]
email: T
) -> Result<Self, ComponentCreationError>
Trait Implementations
impl<'a> HeaderTryFrom<&'a str> for Email
[src]
fn try_from(email: &str) -> Result<Self, ComponentCreationError>
[src]
impl HeaderTryFrom<String> for Email
[src]
fn try_from(email: String) -> Result<Self, ComponentCreationError>
[src]
impl HeaderTryFrom<Input> for Email
[src]
fn try_from(email: Input) -> Result<Self, ComponentCreationError>
[src]
impl From<Email> for Mailbox
[src]
impl Eq for Email
[src]
impl PartialEq<Email> for Email
[src]
impl Clone for Email
[src]
fn clone(&self) -> Email
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Email
[src]
impl Hash for Email
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EncodableInHeader for Email
[src]
fn encode(&self, handle: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.