pub trait ExplorerApi {
Show 23 methods
// Required methods
fn list_files<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<ListResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_file_thumb<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
context_hint: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ApiResult<FileThumbResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_file_info<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 GetFileInfoService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn rename_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RenameFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn move_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MoveFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn restore_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn patch_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PatchMetadataService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_file_url<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 FileURLService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileURLResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn unlock_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UnlockFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_current_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_file<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 FileUpdateService,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_storage_policy_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn mount_storage_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MountPolicyService,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_permissions<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SetPermissionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UploadSessionRequest,
) -> Pin<Box<dyn Future<Output = ApiResult<UploadCredential>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn upload_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn upload_chunk_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
content_length: u64,
body: Body,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteUploadSessionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn complete_s3_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
policy_type: &'life1 str,
session_id: &'life2 str,
session_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn complete_onedrive_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
session_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
File explorer API methods
Required Methods§
Sourcefn list_files<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<ListResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_files<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 ListFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<ListResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List files in a directory
Sourcefn get_file_thumb<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
context_hint: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ApiResult<FileThumbResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_file_thumb<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 str,
context_hint: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ApiResult<FileThumbResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get file thumbnail
Sourcefn get_file_info<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 GetFileInfoService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_file_info<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 GetFileInfoService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get file information
Sourcefn create_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CreateFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new file or folder
Sourcefn delete_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete files
Sourcefn rename_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RenameFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rename_file<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RenameFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Rename a file
Sourcefn move_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MoveFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn move_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MoveFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Move files
Sourcefn restore_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn restore_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Restore files from trash
Sourcefn patch_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PatchMetadataService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn patch_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PatchMetadataService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Patch file metadata
Sourcefn get_file_url<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 FileURLService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileURLResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_file_url<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 FileURLService,
) -> Pin<Box<dyn Future<Output = ApiResult<FileURLResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get file entity URL
Sourcefn unlock_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UnlockFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unlock_files<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UnlockFileService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unlock files
Sourcefn set_current_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_current_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Set current version
Sourcefn delete_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_version<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 VersionControlService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete version
Sourcefn update_file<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 FileUpdateService,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_file<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 FileUpdateService,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<FileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update file content
Sourcefn get_storage_policy_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_storage_policy_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get storage policy options
Sourcefn mount_storage_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MountPolicyService,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mount_storage_policy<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MountPolicyService,
) -> Pin<Box<dyn Future<Output = ApiResult<Vec<StoragePolicy>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Mount storage policy
Sourcefn set_permissions<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SetPermissionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_permissions<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SetPermissionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Set file permissions
Sourcefn create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UploadSessionRequest,
) -> Pin<Box<dyn Future<Output = ApiResult<UploadCredential>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 UploadSessionRequest,
) -> Pin<Box<dyn Future<Output = ApiResult<UploadCredential>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create upload session
Sourcefn upload_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upload_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
data: Bytes,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Upload chunk
Sourcefn upload_chunk_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
content_length: u64,
body: Body,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upload_chunk_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
chunk_index: usize,
content_length: u64,
body: Body,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Upload chunk using streaming body (for large chunks)
Sourcefn delete_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteUploadSessionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DeleteUploadSessionService,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete upload session
Sourcefn complete_s3_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
policy_type: &'life1 str,
session_id: &'life2 str,
session_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn complete_s3_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
policy_type: &'life1 str,
session_id: &'life2 str,
session_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Complete S3-like upload
Sourcefn complete_onedrive_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
session_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn complete_onedrive_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
session_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = ApiResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Complete OneDrive upload
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".