pub struct ContactChanges { /* private fields */ }Expand description
List of changes to apply to a Contact.
Implementations§
Source§impl ContactChanges
impl ContactChanges
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ContactChanges.
Sourcepub fn with_first_name(self, name: &str) -> Self
pub fn with_first_name(self, name: &str) -> Self
Updates the first name of the contact.
Sourcepub fn with_last_name(self, name: &str) -> Self
pub fn with_last_name(self, name: &str) -> Self
Updates the last name of the contact.
Sourcepub const fn with_unsubscribed(self, unsubscribed: bool) -> Self
pub const fn with_unsubscribed(self, unsubscribed: bool) -> Self
Updates the unsubscribe status of the contact.
Trait Implementations§
Source§impl Clone for ContactChanges
impl Clone for ContactChanges
Source§fn clone(&self) -> ContactChanges
fn clone(&self) -> ContactChanges
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContactChanges
impl Debug for ContactChanges
Source§impl Default for ContactChanges
impl Default for ContactChanges
Source§fn default() -> ContactChanges
fn default() -> ContactChanges
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContactChanges
impl RefUnwindSafe for ContactChanges
impl Send for ContactChanges
impl Sync for ContactChanges
impl Unpin for ContactChanges
impl UnsafeUnpin for ContactChanges
impl UnwindSafe for ContactChanges
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