pub struct ContactsSvc(/* private fields */);Implementations§
Source§impl ContactsSvc
impl ContactsSvc
pub async fn list( &self, contact_book_id: &str, params: &ListContactsParams, ) -> ApiResult<Vec<Contact>>
pub async fn create( &self, contact_book_id: &str, body: &CreateContactRequest, ) -> ApiResult<ContactIdResponse>
pub async fn get( &self, contact_book_id: &str, contact_id: &str, ) -> ApiResult<Contact>
pub async fn update( &self, contact_book_id: &str, contact_id: &str, body: &UpdateContactRequest, ) -> ApiResult<ContactIdResponse>
pub async fn upsert( &self, contact_book_id: &str, contact_id: &str, body: &CreateContactRequest, ) -> ApiResult<ContactIdResponse>
pub async fn delete( &self, contact_book_id: &str, contact_id: &str, ) -> ApiResult<SuccessResponse>
Trait Implementations§
Source§impl Clone for ContactsSvc
impl Clone for ContactsSvc
Source§fn clone(&self) -> ContactsSvc
fn clone(&self) -> ContactsSvc
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 moreAuto Trait Implementations§
impl Freeze for ContactsSvc
impl !RefUnwindSafe for ContactsSvc
impl Send for ContactsSvc
impl Sync for ContactsSvc
impl Unpin for ContactsSvc
impl UnsafeUnpin for ContactsSvc
impl !UnwindSafe for ContactsSvc
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