pub struct ApplicationsApi { /* private fields */ }Implementations§
Source§impl ApplicationsApi
impl ApplicationsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn create( &self, data: CreateApplicationRequest, ) -> Result<CreateApplicationResponse, HttpError>
pub async fn list( &self, params: Option<PaginationParams>, ) -> Result<ListApplicationsResponse, HttpError>
pub async fn get(&self, id: &str) -> Result<ApplicationResponse, HttpError>
pub async fn update( &self, id: &str, data: UpdateApplicationRequest, ) -> Result<ApplicationResponse, HttpError>
pub async fn archive(&self, id: &str) -> Result<(), HttpError>
pub async fn get_oauth( &self, id: &str, ) -> Result<ApplicationOAuthResponse, HttpError>
pub async fn update_oauth( &self, id: &str, data: UpdateApplicationOAuthRequest, ) -> Result<ApplicationOAuthResponse, HttpError>
pub async fn rotate_secret( &self, id: &str, ) -> Result<RotateApplicationSecretResponse, HttpError>
pub async fn list_integrations( &self, id: &str, ) -> Result<ApplicationIntegrationsResponse, HttpError>
pub async fn replace_integrations( &self, id: &str, integration_ids: Vec<String>, ) -> Result<ApplicationIntegrationsResponse, HttpError>
pub async fn attach_integration( &self, id: &str, integration_id: &str, ) -> Result<(), HttpError>
pub async fn detach_integration( &self, id: &str, integration_id: &str, ) -> Result<(), HttpError>
Trait Implementations§
Source§impl Clone for ApplicationsApi
impl Clone for ApplicationsApi
Source§fn clone(&self) -> ApplicationsApi
fn clone(&self) -> ApplicationsApi
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 ApplicationsApi
impl !RefUnwindSafe for ApplicationsApi
impl Send for ApplicationsApi
impl Sync for ApplicationsApi
impl Unpin for ApplicationsApi
impl UnsafeUnpin for ApplicationsApi
impl !UnwindSafe for ApplicationsApi
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