Struct email_address_list::EmailContact
source · pub struct EmailContact { /* private fields */ }
Expand description
A contact with at least an email address
Trait Implementations
sourceimpl Clone for EmailContact
impl Clone for EmailContact
sourcefn clone(&self) -> EmailContact
fn clone(&self) -> EmailContact
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 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) -> Selfwhere
T: AsRef<str>,
fn set_name<T>(self, name: T) -> Selfwhere
T: AsRef<str>,
fn set_email<T>(self, email: T) -> Selfwhere
T: AsRef<str>,
fn set_comment<T>(self, comment: T) -> Selfwhere
T: AsRef<str>,
sourceimpl Debug for EmailContact
impl Debug for EmailContact
sourceimpl DeepEq<EmailContact> for EmailContact
impl DeepEq<EmailContact> for EmailContact
Check if all fields are the same (PartialEq only checks if email is the same)
sourceimpl Default for EmailContact
impl Default for EmailContact
sourcefn default() -> EmailContact
fn default() -> EmailContact
Returns the “default value” for a type. Read more
sourceimpl From<EmailContact> for Contact
impl From<EmailContact> for Contact
sourcefn from(contact: EmailContact) -> Contact
fn from(contact: EmailContact) -> Contact
Converts to this type from the input type.
sourceimpl PartialEq<EmailContact> for EmailContact
impl PartialEq<EmailContact> for EmailContact
Check if the email field is the same
sourcefn eq(&self, other: &EmailContact) -> bool
fn eq(&self, other: &EmailContact) -> bool
Auto Trait Implementations
impl RefUnwindSafe for EmailContact
impl Send for EmailContact
impl Sync for EmailContact
impl Unpin for EmailContact
impl UnwindSafe for EmailContact
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