pub trait TrashApi: Send + Sync {
// Required methods
fn empty_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<EmptyTrashError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn restore_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RestoreTrashError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn empty_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<EmptyTrashError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn empty_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<EmptyTrashError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secrets/{organizationId}/trash/empty
Sourcefn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secrets/{organizationId}/trash
Sourcefn restore_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RestoreTrashError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn restore_trash<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RestoreTrashError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secrets/{organizationId}/trash/restore