pub struct Contacts { /* private fields */ }
Implementations§
Source§impl Contacts
impl Contacts
pub fn new(client: Client) -> Self
pub fn request(&self, method: &str, action: &str) -> Request
pub fn read(&self, params: ContactsReadParams) -> Result<String, Error>
pub fn read_json( &self, params: ContactsReadParams, ) -> Result<Vec<Contact>, Error>
pub fn create(&self) -> Result<String, Error>
pub fn create_json(&self) -> Result<ContactWriteResponse, Error>
pub fn edit(&self, params: ContactEditParams) -> Result<String, Error>
pub fn edit_json( &self, params: ContactEditParams, ) -> Result<ContactEditResponse, Error>
pub fn delete(&self, params: ContactDeleteParams) -> Result<u8, Error>
Auto Trait Implementations§
impl Freeze for Contacts
impl RefUnwindSafe for Contacts
impl Send for Contacts
impl Sync for Contacts
impl Unpin for Contacts
impl UnwindSafe for Contacts
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