pub struct ContactsApi { /* private fields */ }Implementations§
Source§impl ContactsApi
impl ContactsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn search( &self, params: &SearchContactsParams, ) -> Result<SearchContactsResponse>
pub async fn get(&self, contact_id: &str) -> Result<GetContactResponse>
pub async fn create( &self, params: &CreateContactParams, ) -> Result<GetContactResponse>
pub async fn update( &self, contact_id: &str, params: &UpdateContactParams, ) -> Result<GetContactResponse>
pub async fn delete(&self, contact_id: &str) -> Result<DeleteContactResponse>
Sourcepub async fn upsert(
&self,
params: &CreateContactParams,
) -> Result<UpsertContactResponse>
pub async fn upsert( &self, params: &CreateContactParams, ) -> Result<UpsertContactResponse>
Create or update a contact by email / phone (upsert).
pub async fn get_notes(&self, contact_id: &str) -> Result<NotesResponse>
pub async fn create_note( &self, contact_id: &str, params: &CreateNoteParams, ) -> Result<NoteResponse>
pub async fn update_note( &self, contact_id: &str, note_id: &str, params: &CreateNoteParams, ) -> Result<NoteResponse>
pub async fn delete_note( &self, contact_id: &str, note_id: &str, ) -> Result<NoteResponse>
pub async fn get_tasks(&self, contact_id: &str) -> Result<TasksResponse>
pub async fn create_task( &self, contact_id: &str, params: &CreateTaskParams, ) -> Result<TaskResponse>
pub async fn update_task( &self, contact_id: &str, task_id: &str, params: &CreateTaskParams, ) -> Result<TaskResponse>
pub async fn delete_task( &self, contact_id: &str, task_id: &str, ) -> Result<TaskResponse>
pub async fn complete_task( &self, contact_id: &str, task_id: &str, completed: bool, ) -> Result<TaskResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for ContactsApi
impl !UnwindSafe for ContactsApi
impl Freeze for ContactsApi
impl Send for ContactsApi
impl Sync for ContactsApi
impl Unpin for ContactsApi
impl UnsafeUnpin for ContactsApi
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