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 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 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
Check if all fields are the same (PartialEq only checks if email is the
same)
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
Check if the email field is the same
impl PartialEq for EmailContact
Check if the email field is the same
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