Trait FilesApi

Source
pub trait FilesApi: Send + Sync {
    // Required methods
    fn file_controller_create<'file, 'life0, 'async_trait>(
        &'life0 self,
        file: PathBuf,
    ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerCreateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'file: 'async_trait,
             'life0: 'async_trait;
    fn file_controller_find_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<File>, Error<FileControllerFindAllError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn file_controller_find_one<'id, 'life0, 'async_trait>(
        &'life0 self,
        id: &'id str,
    ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerFindOneError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'id: 'async_trait,
             'life0: 'async_trait;
    fn file_controller_remove<'id, 'life0, 'async_trait>(
        &'life0 self,
        id: &'id str,
    ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerRemoveError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'id: 'async_trait,
             'life0: 'async_trait;
    fn file_controller_update<'id, 'life0, 'async_trait>(
        &'life0 self,
        id: &'id str,
        update_file_dto: UpdateFileDto,
    ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerUpdateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'id: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn file_controller_create<'file, 'life0, 'async_trait>( &'life0 self, file: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerCreateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'file: 'async_trait, 'life0: 'async_trait,

POST /file

Source

fn file_controller_find_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<File>, Error<FileControllerFindAllError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /file

Source

fn file_controller_find_one<'id, 'life0, 'async_trait>( &'life0 self, id: &'id str, ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerFindOneError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'id: 'async_trait, 'life0: 'async_trait,

GET /file/{id}

Source

fn file_controller_remove<'id, 'life0, 'async_trait>( &'life0 self, id: &'id str, ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerRemoveError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'id: 'async_trait, 'life0: 'async_trait,

DELETE /file/{id}

Source

fn file_controller_update<'id, 'life0, 'async_trait>( &'life0 self, id: &'id str, update_file_dto: UpdateFileDto, ) -> Pin<Box<dyn Future<Output = Result<File, Error<FileControllerUpdateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'id: 'async_trait, 'life0: 'async_trait,

PATCH /file/{id}

Implementors§