pub trait ObjectAPI {
Show 27 methods
// Required methods
fn copy_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CopyObjectInput,
) -> Pin<Box<dyn Future<Output = Result<CopyObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteObjectInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_multi_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteMultiObjectsInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteMultiObjectsOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_object<'life0, 'life1, 'async_trait, B>(
&'life0 self,
input: &'life1 PutObjectInput<B>,
) -> Pin<Box<dyn Future<Output = Result<PutObjectOutput, TosError>> + Send + 'async_trait>>
where B: Stream<Item = Result<Bytes, CommonError>> + Send + Sync + Unpin + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_object_from_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectFromBufferInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn append_object<'life0, 'life1, 'async_trait, B>(
&'life0 self,
input: &'life1 AppendObjectInput<B>,
) -> Pin<Box<dyn Future<Output = Result<AppendObjectOutput, TosError>> + Send + 'async_trait>>
where B: Stream<Item = Result<Bytes, CommonError>> + Send + Sync + Unpin + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn append_object_from_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 AppendObjectFromBufferInput,
) -> Pin<Box<dyn Future<Output = Result<AppendObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_object_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectACLInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectACLOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn head_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 HeadObjectInput,
) -> Pin<Box<dyn Future<Output = Result<HeadObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_objects_type2<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ListObjectsType2Input,
) -> Pin<Box<dyn Future<Output = Result<ListObjectsType2Output, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_object_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ListObjectVersionsInput,
) -> Pin<Box<dyn Future<Output = Result<ListObjectVersionsOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_object_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectACLInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectACLOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_object_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 SetObjectMetaInput,
) -> Pin<Box<dyn Future<Output = Result<SetObjectMetaOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fetch_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 FetchObjectInput,
) -> Pin<Box<dyn Future<Output = Result<FetchObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_fetch_task<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutFetchTaskInput,
) -> Pin<Box<dyn Future<Output = Result<PutFetchTaskOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_fetch_task<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetFetchTaskInput,
) -> Pin<Box<dyn Future<Output = Result<GetFetchTaskOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectTaggingOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectTaggingOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteObjectTaggingOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn rename_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 RenameObjectInput,
) -> Pin<Box<dyn Future<Output = Result<RenameObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn restore_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 RestoreObjectInput,
) -> Pin<Box<dyn Future<Output = Result<RestoreObjectOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_symlink<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutSymlinkInput,
) -> Pin<Box<dyn Future<Output = Result<PutSymlinkOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_symlink<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetSymlinkInput,
) -> Pin<Box<dyn Future<Output = Result<GetSymlinkOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_file_status<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetFileStatusInput,
) -> Pin<Box<dyn Future<Output = Result<GetFileStatusOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn does_object_exist<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DoesObjectExistInput,
) -> Pin<Box<dyn Future<Output = Result<bool, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_object_time<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 SetObjectTimeInput,
) -> Pin<Box<dyn Future<Output = Result<SetObjectTimeOutput, TosError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn copy_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 CopyObjectInput,
) -> Pin<Box<dyn Future<Output = Result<CopyObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteObjectInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_multi_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteMultiObjectsInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteMultiObjectsOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_object<'life0, 'life1, 'async_trait, B>( &'life0 self, input: &'life1 PutObjectInput<B>, ) -> Pin<Box<dyn Future<Output = Result<PutObjectOutput, TosError>> + Send + 'async_trait>>
fn put_object_from_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectFromBufferInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append_object<'life0, 'life1, 'async_trait, B>( &'life0 self, input: &'life1 AppendObjectInput<B>, ) -> Pin<Box<dyn Future<Output = Result<AppendObjectOutput, TosError>> + Send + 'async_trait>>
fn append_object_from_buffer<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 AppendObjectFromBufferInput,
) -> Pin<Box<dyn Future<Output = Result<AppendObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectACLInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectACLOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn head_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 HeadObjectInput,
) -> Pin<Box<dyn Future<Output = Result<HeadObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_objects_type2<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ListObjectsType2Input,
) -> Pin<Box<dyn Future<Output = Result<ListObjectsType2Output, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_object_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ListObjectVersionsInput,
) -> Pin<Box<dyn Future<Output = Result<ListObjectVersionsOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_object_acl<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectACLInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectACLOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_object_meta<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 SetObjectMetaInput,
) -> Pin<Box<dyn Future<Output = Result<SetObjectMetaOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 FetchObjectInput,
) -> Pin<Box<dyn Future<Output = Result<FetchObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_fetch_task<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutFetchTaskInput,
) -> Pin<Box<dyn Future<Output = Result<PutFetchTaskOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_fetch_task<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetFetchTaskInput,
) -> Pin<Box<dyn Future<Output = Result<GetFetchTaskOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<PutObjectTaggingOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<GetObjectTaggingOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_object_tagging<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DeleteObjectTaggingInput,
) -> Pin<Box<dyn Future<Output = Result<DeleteObjectTaggingOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rename_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 RenameObjectInput,
) -> Pin<Box<dyn Future<Output = Result<RenameObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn restore_object<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 RestoreObjectInput,
) -> Pin<Box<dyn Future<Output = Result<RestoreObjectOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_symlink<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 PutSymlinkInput,
) -> Pin<Box<dyn Future<Output = Result<PutSymlinkOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_symlink<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetSymlinkInput,
) -> Pin<Box<dyn Future<Output = Result<GetSymlinkOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_file_status<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 GetFileStatusInput,
) -> Pin<Box<dyn Future<Output = Result<GetFileStatusOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn does_object_exist<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 DoesObjectExistInput,
) -> Pin<Box<dyn Future<Output = Result<bool, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_object_time<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 SetObjectTimeInput,
) -> Pin<Box<dyn Future<Output = Result<SetObjectTimeOutput, TosError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.