pub trait FoldersApi: Send + Sync {
// Required methods
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn delete_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteAllError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PostError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PutError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> 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: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /folders/{id}
Sourcefn delete_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
DELETE /folders/all
Sourcefn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /folders/{id}
Sourcefn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /folders
Sourcefn post<'a, 'life0, 'async_trait>(
&'life0 self,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /folders
Sourcefn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /folders/{id}