pub struct UpdateContactRequest<'a> {
pub contact_id: String,
pub client_id: Option<i64>,
pub title: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub phone_office: Option<String>,
pub phone_mobile: Option<String>,
pub fax: Option<String>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§contact_id: String§client_id: Option<i64>§title: Option<String>§first_name: Option<String>§last_name: Option<String>§email: Option<String>§phone_office: Option<String>§phone_mobile: Option<String>§fax: Option<String>Implementations§
Source§impl<'a> UpdateContactRequest<'a>
impl<'a> UpdateContactRequest<'a>
pub async fn send(self) -> Result<Contact>
pub fn client_id(self, client_id: i64) -> Self
pub fn title(self, title: &str) -> Self
pub fn first_name(self, first_name: &str) -> Self
pub fn last_name(self, last_name: &str) -> Self
pub fn email(self, email: &str) -> Self
pub fn phone_office(self, phone_office: &str) -> Self
pub fn phone_mobile(self, phone_mobile: &str) -> Self
pub fn fax(self, fax: &str) -> Self
Auto Trait Implementations§
impl<'a> Freeze for UpdateContactRequest<'a>
impl<'a> !RefUnwindSafe for UpdateContactRequest<'a>
impl<'a> Send for UpdateContactRequest<'a>
impl<'a> Sync for UpdateContactRequest<'a>
impl<'a> Unpin for UpdateContactRequest<'a>
impl<'a> !UnwindSafe for UpdateContactRequest<'a>
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