pub trait ProvidersApi: Send + Sync {
// Required methods
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn post_delete_recover_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_verify_delete_recover_request_model: Option<ProviderVerifyDeleteRecoverRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_update_request_model: Option<ProviderUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<PutError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn setup<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_setup_request_model: Option<ProviderSetupRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<SetupError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /providers/{id}
Sourcefn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{id}
Sourcefn post_delete_recover_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_verify_delete_recover_request_model: Option<ProviderVerifyDeleteRecoverRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_delete_recover_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_verify_delete_recover_request_model: Option<ProviderVerifyDeleteRecoverRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{id}/delete-recover-token
Sourcefn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_update_request_model: Option<ProviderUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_update_request_model: Option<ProviderUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /providers/{id}
Sourcefn setup<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_setup_request_model: Option<ProviderSetupRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<SetupError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn setup<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
provider_setup_request_model: Option<ProviderSetupRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ProviderResponseModel, Error<SetupError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /providers/{id}/setup