[−][src]Struct email_format::rfc5322::email_address::EmailAddress
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: String
Methods
impl EmailAddress
[src]
pub fn from_addresses(addr: &AddressList) -> Vec<EmailAddress>
[src]
pub fn from_address(addr: &Address) -> Vec<EmailAddress>
[src]
pub fn from_mailbox(mbox: &Mailbox) -> EmailAddress
[src]
pub fn from_name_addr(name_addr: &NameAddr) -> EmailAddress
[src]
pub fn from_addr_spec(addr_spec: &AddrSpec) -> EmailAddress
[src]
pub fn from_group(group: &Group) -> Vec<EmailAddress>
[src]
pub fn from_group_list(group_list: &GroupList) -> Vec<EmailAddress>
[src]
pub fn from_mailbox_list(mbl: &MailboxList) -> Vec<EmailAddress>
[src]
Auto Trait Implementations
impl RefUnwindSafe for EmailAddress
impl Send for EmailAddress
impl Sync for EmailAddress
impl Unpin for EmailAddress
impl UnwindSafe for EmailAddress
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> TryFrom<T> for T
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(T) -> Result<T, <T as TryFrom<T>>::Error>
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,