pub struct ContactProperties(/* private fields */);Expand description
Typed definitions for the keys of contact.properties
(/contact-properties).
Implementations§
Source§impl ContactProperties
impl ContactProperties
Sourcepub async fn create(
&self,
property: &CreateContactPropertyOptions,
) -> Result<ContactProperty>
pub async fn create( &self, property: &CreateContactPropertyOptions, ) -> Result<ContactProperty>
POST /contact-properties
Sourcepub async fn get(&self, id: &str) -> Result<ContactProperty>
pub async fn get(&self, id: &str) -> Result<ContactProperty>
GET /contact-properties/:id
Sourcepub async fn list(
&self,
options: Option<&ListOptions>,
) -> Result<List<ContactProperty>>
pub async fn list( &self, options: Option<&ListOptions>, ) -> Result<List<ContactProperty>>
GET /contact-properties
Sourcepub async fn update(
&self,
id: &str,
changes: &UpdateContactPropertyOptions,
) -> Result<ContactPropertyId>
pub async fn update( &self, id: &str, changes: &UpdateContactPropertyOptions, ) -> Result<ContactPropertyId>
PATCH /contact-properties/:id
Sourcepub async fn delete(&self, id: &str) -> Result<DeleteContactPropertyResponse>
pub async fn delete(&self, id: &str) -> Result<DeleteContactPropertyResponse>
DELETE /contact-properties/:id
Trait Implementations§
Source§impl Clone for ContactProperties
impl Clone for ContactProperties
Source§fn clone(&self) -> ContactProperties
fn clone(&self) -> ContactProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for ContactProperties
impl !UnwindSafe for ContactProperties
impl Freeze for ContactProperties
impl Send for ContactProperties
impl Sync for ContactProperties
impl Unpin for ContactProperties
impl UnsafeUnpin for ContactProperties
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