pub struct CreateContactRequestBuilder { /* private fields */ }Expand description
Builder for CreateContactRequest.
Implementations§
Source§impl CreateContactRequestBuilder
impl CreateContactRequestBuilder
Sourcepub fn given_name(self, name: impl Into<String>) -> Self
pub fn given_name(self, name: impl Into<String>) -> Self
Set given name.
Sourcepub fn middle_name(self, name: impl Into<String>) -> Self
pub fn middle_name(self, name: impl Into<String>) -> Self
Set middle name.
Sourcepub fn family_name(self, name: impl Into<String>) -> Self
pub fn family_name(self, name: impl Into<String>) -> Self
Set family name.
Sourcepub fn company_name(self, name: impl Into<String>) -> Self
pub fn company_name(self, name: impl Into<String>) -> Self
Set company name.
Sourcepub fn manager_name(self, name: impl Into<String>) -> Self
pub fn manager_name(self, name: impl Into<String>) -> Self
Set manager name.
Sourcepub fn office_location(self, location: impl Into<String>) -> Self
pub fn office_location(self, location: impl Into<String>) -> Self
Set office location.
Sourcepub fn picture_url(self, url: impl Into<String>) -> Self
pub fn picture_url(self, url: impl Into<String>) -> Self
Set picture URL.
Sourcepub fn emails(self, emails: Vec<ContactEmail>) -> Self
pub fn emails(self, emails: Vec<ContactEmail>) -> Self
Set email addresses.
Sourcepub fn phone_numbers(self, phones: Vec<ContactPhone>) -> Self
pub fn phone_numbers(self, phones: Vec<ContactPhone>) -> Self
Set phone numbers.
Sourcepub fn physical_addresses(self, addresses: Vec<ContactAddress>) -> Self
pub fn physical_addresses(self, addresses: Vec<ContactAddress>) -> Self
Set physical addresses.
Sourcepub fn web_pages(self, pages: Vec<ContactWebPage>) -> Self
pub fn web_pages(self, pages: Vec<ContactWebPage>) -> Self
Set web pages.
Sourcepub fn groups(self, groups: Vec<ContactGroup>) -> Self
pub fn groups(self, groups: Vec<ContactGroup>) -> Self
Set groups.
Sourcepub fn build(self) -> CreateContactRequest
pub fn build(self) -> CreateContactRequest
Build the CreateContactRequest.
Trait Implementations§
Source§impl Clone for CreateContactRequestBuilder
impl Clone for CreateContactRequestBuilder
Source§fn clone(&self) -> CreateContactRequestBuilder
fn clone(&self) -> CreateContactRequestBuilder
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 CreateContactRequestBuilder
impl Debug for CreateContactRequestBuilder
Source§impl Default for CreateContactRequestBuilder
impl Default for CreateContactRequestBuilder
Source§fn default() -> CreateContactRequestBuilder
fn default() -> CreateContactRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateContactRequestBuilder
impl RefUnwindSafe for CreateContactRequestBuilder
impl Send for CreateContactRequestBuilder
impl Sync for CreateContactRequestBuilder
impl Unpin for CreateContactRequestBuilder
impl UnsafeUnpin for CreateContactRequestBuilder
impl UnwindSafe for CreateContactRequestBuilder
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