pub struct Email {
pub local_part: LocalPart,
pub domain: Domain,
}
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§
Source§impl Email
impl Email
pub fn check_if_internationalized(&self) -> bool
pub fn new<T>(email: T) -> Result<Email, ComponentCreationError>where
T: HeaderTryInto<Input>,
Trait Implementations§
Source§impl EncodableInHeader for Email
impl EncodableInHeader for Email
fn encode(&self, handle: &mut EncodingWriter<'_>) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
Source§impl<'a> HeaderTryFrom<&'a str> for Email
impl<'a> HeaderTryFrom<&'a str> for Email
Source§impl HeaderTryFrom<Input> for Email
impl HeaderTryFrom<Input> for Email
Source§impl HeaderTryFrom<String> for Email
impl HeaderTryFrom<String> for Email
impl Eq for Email
impl StructuralPartialEq for Email
Auto Trait Implementations§
impl Freeze for Email
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnwindSafe for Email
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