Skip to main content

WorkflowApi

Trait WorkflowApi 

Source
pub trait WorkflowApi {
    // Required methods
    fn create_archive<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 ArchiveWorkflowService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn extract_archive<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 ArchiveWorkflowService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn relocate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 RelocateWorkflowService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remote_download<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 DownloadWorkflowService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn import<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 ImportWorkflowService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_tasks<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: &'life1 ListTaskService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskListResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_task<'life0, 'life1, 'async_trait>(
        &'life0 self,
        task_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel_task<'life0, 'life1, 'async_trait>(
        &'life0 self,
        task_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_task<'life0, 'life1, 'async_trait>(
        &'life0 self,
        task_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn set_download_files<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        task_id: &'life1 str,
        request: &'life2 SetDownloadFilesService,
    ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Workflow and task API methods

Required Methods§

Source

fn create_archive<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ArchiveWorkflowService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create archive task

Source

fn extract_archive<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ArchiveWorkflowService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Extract archive task

Source

fn relocate<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 RelocateWorkflowService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Relocate files task

Source

fn remote_download<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 DownloadWorkflowService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Remote download task

Source

fn import<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ImportWorkflowService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Import files task

Source

fn list_tasks<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 ListTaskService, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskListResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List tasks

Source

fn get_task<'life0, 'life1, 'async_trait>( &'life0 self, task_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ApiResult<TaskResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get task by ID

Source

fn cancel_task<'life0, 'life1, 'async_trait>( &'life0 self, task_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Cancel task

Source

fn delete_task<'life0, 'life1, 'async_trait>( &'life0 self, task_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete task

Source

fn set_download_files<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, task_id: &'life1 str, request: &'life2 SetDownloadFilesService, ) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Set download files for a task

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§