pub enum AddressList {
Contacts(Contacts),
Group(Group),
}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() == Some(&"Conto".to_string()));Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AddressList
impl Clone for AddressList
Source§fn clone(&self) -> AddressList
fn clone(&self) -> AddressList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Contactsish for AddressList
impl Contactsish for AddressList
Source§impl Debug for AddressList
impl Debug for AddressList
Source§impl DeepEq for AddressList
impl DeepEq for AddressList
Source§impl Display for AddressList
impl Display for AddressList
Source§impl From<Contacts> for AddressList
impl From<Contacts> for AddressList
Source§impl From<Group> for AddressList
impl From<Group> for AddressList
Source§fn from(group: Group) -> AddressList
fn from(group: Group) -> AddressList
Converts to this type from the input type.
Source§impl PartialEq for AddressList
impl PartialEq for AddressList
Auto Trait Implementations§
impl Freeze for AddressList
impl RefUnwindSafe for AddressList
impl Send for AddressList
impl Sync for AddressList
impl Unpin for AddressList
impl UnwindSafe for AddressList
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