Trait FoldersApi

Source
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§

Source

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}

Source

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

Source

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}

Source

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

Source

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

Source

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}

Implementors§