pub struct EmailAddress {
pub display_name: Option<String>,
pub local_part: String,
pub domain: String,
}Expand description
This type represents an Email Address in a way that is simpler and more directly useful than the ABNF-based rfc5322 types. It is not used by the main parser, but may be useful to consumers of this library.
Fields§
§display_name: Option<String>§local_part: String§domain: StringImplementations§
Source§impl EmailAddress
impl EmailAddress
pub fn from_addresses(addr: &AddressList) -> Vec<EmailAddress>
pub fn from_address(addr: &Address) -> Vec<EmailAddress>
pub fn from_mailbox(mbox: &Mailbox) -> EmailAddress
pub fn from_name_addr(name_addr: &NameAddr) -> EmailAddress
pub fn from_addr_spec(addr_spec: &AddrSpec) -> EmailAddress
pub fn from_group(group: &Group) -> Vec<EmailAddress>
pub fn from_group_list(group_list: &GroupList) -> Vec<EmailAddress>
pub fn from_mailbox_list(mbl: &MailboxList) -> Vec<EmailAddress>
Auto Trait Implementations§
impl Freeze for EmailAddress
impl RefUnwindSafe for EmailAddress
impl Send for EmailAddress
impl Sync for EmailAddress
impl Unpin for EmailAddress
impl UnwindSafe for EmailAddress
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