Enum email_address_list::AddressList
source · Expand description
All forms which email headers like To
, From
, Cc
, etc. can take
Examples
let latvian: AddressList = vec![Contact::new("piemērs@example.org")].into();
assert!(latvian.contacts()[0].email().unwrap() == "piemērs@example.org");
let sudanese: AddressList = Group::new("Conto").into();
assert!(sudanese.group_name().unwrap() == &"Conto".to_string());
Variants
Implementations
Trait Implementations
sourceimpl Clone for AddressList
impl Clone for AddressList
sourcefn clone(&self) -> AddressList
fn clone(&self) -> AddressList
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AddressList
impl Debug for AddressList
sourceimpl DeepEq<AddressList> for AddressList
impl DeepEq<AddressList> for AddressList
sourceimpl From<Group> for AddressList
impl From<Group> for AddressList
sourcefn from(group: Group) -> AddressList
fn from(group: Group) -> AddressList
Converts to this type from the input type.
sourceimpl From<Vec<Contact, Global>> for AddressList
impl From<Vec<Contact, Global>> for AddressList
sourcefn from(contacts: Vec<Contact>) -> AddressList
fn from(contacts: Vec<Contact>) -> AddressList
Converts to this type from the input type.
sourceimpl PartialEq<AddressList> for AddressList
impl PartialEq<AddressList> for AddressList
sourcefn eq(&self, other: &AddressList) -> bool
fn eq(&self, other: &AddressList) -> bool
Auto Trait Implementations
impl RefUnwindSafe for AddressList
impl Send for AddressList
impl Sync for AddressList
impl Unpin for AddressList
impl UnwindSafe for AddressList
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