pub enum MailAddr {
Group(GroupInfo),
Single(SingleInfo),
}
Expand description
An abstraction over the two different kinds of top-level addresses allowed in email headers. Group addresses have a name and a list of mailboxes. Single addresses are just a mailbox. Each mailbox consists of what you would consider an email address (e.g. foo@bar.com) and optionally a display name (“Foo Bar”). Groups are represented in email headers with colons and semicolons, e.g. To: my-peeps: foo@peeps.org, bar@peeps.org;
Variants§
Group(GroupInfo)
Single(SingleInfo)
Trait Implementations§
source§impl PartialEq for MailAddr
impl PartialEq for MailAddr
impl Eq for MailAddr
impl StructuralPartialEq for MailAddr
Auto Trait Implementations§
impl Freeze for MailAddr
impl RefUnwindSafe for MailAddr
impl Send for MailAddr
impl Sync for MailAddr
impl Unpin for MailAddr
impl UnwindSafe for MailAddr
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