pub struct ContactsResource<'a> { /* private fields */ }Implementations§
Source§impl<'a> ContactsResource<'a>
impl<'a> ContactsResource<'a>
pub fn new(client: &'a Sendly) -> Self
pub fn lists(&self) -> ContactListsResource<'a>
pub async fn list( &self, options: ListContactsOptions, ) -> Result<ContactListResponse>
pub async fn get(&self, id: &str) -> Result<Contact>
pub async fn create(&self, request: CreateContactRequest) -> Result<Contact>
pub async fn update( &self, id: &str, request: UpdateContactRequest, ) -> Result<Contact>
pub async fn delete(&self, id: &str) -> Result<()>
pub async fn import( &self, request: ImportContactsRequest, ) -> Result<ImportContactsResponse>
Auto Trait Implementations§
impl<'a> Freeze for ContactsResource<'a>
impl<'a> !RefUnwindSafe for ContactsResource<'a>
impl<'a> Send for ContactsResource<'a>
impl<'a> Sync for ContactsResource<'a>
impl<'a> Unpin for ContactsResource<'a>
impl<'a> UnsafeUnpin for ContactsResource<'a>
impl<'a> !UnwindSafe for ContactsResource<'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