Struct mail_headers::header_components::Email
source · Expand description
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
sourceimpl Email
impl Email
pub fn check_if_internationalized(&self) -> bool
pub fn new<T: HeaderTryInto<Input>>(
email: T
) -> Result<Self, ComponentCreationError>
Trait Implementations
sourceimpl EncodableInHeader for Email
impl EncodableInHeader for Email
fn encode(&self, handle: &mut EncodingWriter<'_>) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
sourceimpl<'a> HeaderTryFrom<&'a str> for Email
impl<'a> HeaderTryFrom<&'a str> for Email
fn try_from(email: &str) -> Result<Self, ComponentCreationError>
sourceimpl HeaderTryFrom<Input> for Email
impl HeaderTryFrom<Input> for Email
fn try_from(email: Input) -> Result<Self, ComponentCreationError>
sourceimpl HeaderTryFrom<String> for Email
impl HeaderTryFrom<String> for Email
fn try_from(email: String) -> Result<Self, ComponentCreationError>
impl Eq for Email
impl StructuralEq for Email
impl StructuralPartialEq for Email
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
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