Struct email_address_list::EmailContact
source · pub struct EmailContact { /* private fields */ }
Expand description
A contact with at least an email address
Trait Implementations§
source§impl Clone for EmailContact
impl Clone for EmailContact
source§fn clone(&self) -> EmailContact
fn clone(&self) -> EmailContact
Returns a copy 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 Contactish for EmailContact
impl Contactish for EmailContact
fn email(&self) -> Option<&String>
fn name(&self) -> Option<&String>
fn comment(&self) -> Option<&String>
fn new<T>(email: T) -> Self
fn set_name<T>(self, name: T) -> Self
fn set_email<T>(self, email: T) -> Self
fn set_comment<T>(self, comment: T) -> Self
fn to_contact(self) -> Contact
source§impl Debug for EmailContact
impl Debug for EmailContact
source§impl DeepEq for EmailContact
impl DeepEq for EmailContact
Check if all fields are the same (PartialEq only checks if email is the same)
source§impl Default for EmailContact
impl Default for EmailContact
source§fn default() -> EmailContact
fn default() -> EmailContact
Returns the “default value” for a type. Read more
source§impl Display for EmailContact
impl Display for EmailContact
source§impl From<EmailContact> for Contact
impl From<EmailContact> for Contact
source§fn from(contact: EmailContact) -> Contact
fn from(contact: EmailContact) -> Contact
Converts to this type from the input type.
source§impl PartialEq for EmailContact
impl PartialEq for EmailContact
Check if the email field is the same
source§fn eq(&self, other: &EmailContact) -> bool
fn eq(&self, other: &EmailContact) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
impl Freeze for EmailContact
impl RefUnwindSafe for EmailContact
impl Send for EmailContact
impl Sync for EmailContact
impl Unpin for EmailContact
impl UnwindSafe for EmailContact
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