pub struct AssociationsApi { /* private fields */ }Implementations§
Source§impl AssociationsApi
impl AssociationsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn list(&self) -> Result<ListAssociationsResponse>
pub async fn get(&self, association_id: &str) -> Result<GetAssociationResponse>
pub async fn create( &self, params: &CreateAssociationParams, ) -> Result<GetAssociationResponse>
pub async fn delete(&self, association_id: &str) -> Result<Value>
Sourcepub async fn create_relation(
&self,
params: &CreateRelationParams,
) -> Result<GetRelationResponse>
pub async fn create_relation( &self, params: &CreateRelationParams, ) -> Result<GetRelationResponse>
Create a relation between two records using an existing association type. No batching — call this per record pair.
pub async fn list_relations( &self, association_id: &str, ) -> Result<ListRelationsResponse>
pub async fn delete_relation(&self, relation_id: &str) -> Result<Value>
Auto Trait Implementations§
impl !RefUnwindSafe for AssociationsApi
impl !UnwindSafe for AssociationsApi
impl Freeze for AssociationsApi
impl Send for AssociationsApi
impl Sync for AssociationsApi
impl Unpin for AssociationsApi
impl UnsafeUnpin for AssociationsApi
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