pub struct IntegrationsApi { /* private fields */ }Implementations§
Source§impl IntegrationsApi
impl IntegrationsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn create( &self, data: CreateIntegrationRequest, ) -> Result<IntegrationResponse, HttpError>
pub async fn list( &self, params: Option<PaginationParams>, ) -> Result<ListIntegrationsResponse, HttpError>
pub async fn get(&self, id: &str) -> Result<IntegrationResponse, HttpError>
pub async fn update( &self, id: &str, data: UpdateIntegrationRequest, ) -> Result<IntegrationResponse, HttpError>
pub async fn archive(&self, id: &str) -> Result<(), HttpError>
pub async fn validate(&self, id: &str) -> Result<IntegrationResponse, HttpError>
Trait Implementations§
Source§impl Clone for IntegrationsApi
impl Clone for IntegrationsApi
Source§fn clone(&self) -> IntegrationsApi
fn clone(&self) -> IntegrationsApi
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 IntegrationsApi
impl !RefUnwindSafe for IntegrationsApi
impl Send for IntegrationsApi
impl Sync for IntegrationsApi
impl Unpin for IntegrationsApi
impl UnsafeUnpin for IntegrationsApi
impl !UnwindSafe for IntegrationsApi
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