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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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,
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".