pub struct Client { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BucketOperations for Client
impl BucketOperations for Client
Source§async fn put_bucket(
&self,
config: PutBucketConfiguration,
options: Option<PutBucketOptions>,
) -> Result<()>
async fn put_bucket( &self, config: PutBucketConfiguration, options: Option<PutBucketOptions>, ) -> Result<()>
Create a new bucket Read more
Source§async fn get_bucket_info(&self) -> Result<BucketDetail>
async fn get_bucket_info(&self) -> Result<BucketDetail>
Get bucket information Read more
Source§async fn get_bucket_stat(&self) -> Result<BucketStat>
async fn get_bucket_stat(&self) -> Result<BucketStat>
Get bucket statistics data Read more
Source§async fn list_objects(
&self,
params: Option<ListObjectsV2Params>,
) -> Result<ListObjectsResult>
async fn list_objects( &self, params: Option<ListObjectsV2Params>, ) -> Result<ListObjectsResult>
List objects in a bucket (V2) Read more
Source§impl CompleteMultipartUploadOperations for Client
impl CompleteMultipartUploadOperations for Client
Source§async fn complete_multipart_upload(
&self,
object_key: impl Into<String>,
upload_id: impl Into<String>,
parts: Vec<Part>,
options: Option<CompleteMultipartUploadOptions>,
) -> Result<CompleteMultipartUploadResult>
async fn complete_multipart_upload( &self, object_key: impl Into<String>, upload_id: impl Into<String>, parts: Vec<Part>, options: Option<CompleteMultipartUploadOptions>, ) -> Result<CompleteMultipartUploadResult>
Complete multipart upload Read more
Source§async fn complete_multipart_upload_auto(
&self,
object_key: impl Into<String>,
upload_id: impl Into<String>,
options: Option<CompleteMultipartUploadOptions>,
) -> Result<CompleteMultipartUploadResult>
async fn complete_multipart_upload_auto( &self, object_key: impl Into<String>, upload_id: impl Into<String>, options: Option<CompleteMultipartUploadOptions>, ) -> Result<CompleteMultipartUploadResult>
Automatically complete multipart upload (server lists and sorts all parts)
Source§impl CopyObjectOperations for Client
impl CopyObjectOperations for Client
Source§async fn copy_object(
&self,
source_bucket: impl Into<String>,
source_key: impl Into<String>,
target_key: impl Into<String>,
options: Option<CopyObjectOptions>,
) -> Result<CopyObjectResult>
async fn copy_object( &self, source_bucket: impl Into<String>, source_key: impl Into<String>, target_key: impl Into<String>, options: Option<CopyObjectOptions>, ) -> Result<CopyObjectResult>
Copy an object within a bucket or between buckets in the same region Read more
Source§async fn copy_object_with_version_id(
&self,
source_bucket: impl Into<String>,
source_key: impl Into<String>,
source_version_id: impl Into<String>,
target_key: impl Into<String>,
options: Option<CopyObjectOptions>,
) -> Result<CopyObjectResult>
async fn copy_object_with_version_id( &self, source_bucket: impl Into<String>, source_key: impl Into<String>, source_version_id: impl Into<String>, target_key: impl Into<String>, options: Option<CopyObjectOptions>, ) -> Result<CopyObjectResult>
Copy an object within a bucket or between buckets in the same region Read more
Source§impl DataIndexingOperations for Client
impl DataIndexingOperations for Client
Source§async fn do_meta_query(
&self,
mode: DoMetaQueryMode,
body: MetaQueryBody,
query: DoMetaQueryParams,
) -> Result<MetaQueryResponse>
async fn do_meta_query( &self, mode: DoMetaQueryMode, body: MetaQueryBody, query: DoMetaQueryParams, ) -> Result<MetaQueryResponse>
Query files (objects) that meet the specified conditions Read more
Source§impl DeleteBucketOps for Client
impl DeleteBucketOps for Client
Source§impl DeleteObjectOperations for Client
impl DeleteObjectOperations for Client
Source§async fn delete_object(
&self,
object_key: impl Into<String>,
params: Option<DeleteObjectParams>,
) -> Result<()>
async fn delete_object( &self, object_key: impl Into<String>, params: Option<DeleteObjectParams>, ) -> Result<()>
Delete an object Read more
Source§impl GetBucketInfoOps for Client
impl GetBucketInfoOps for Client
Source§async fn get_bucket_info(&self) -> Result<BucketDetail>
async fn get_bucket_info(&self) -> Result<BucketDetail>
Get bucket information Read more
Source§impl GetBucketLocationOps for Client
impl GetBucketLocationOps for Client
Source§impl GetBucketStatOps for Client
impl GetBucketStatOps for Client
Source§async fn get_bucket_stat(&self) -> Result<BucketStat>
async fn get_bucket_stat(&self) -> Result<BucketStat>
Get bucket statistics data Read more
Source§impl GetObjectOperations for Client
impl GetObjectOperations for Client
Source§async fn get_object(
&self,
object_key: impl Into<String>,
params: GetObjectParams,
options: Option<GetObjectOptions>,
) -> Result<Bytes>
async fn get_object( &self, object_key: impl Into<String>, params: GetObjectParams, options: Option<GetObjectOptions>, ) -> Result<Bytes>
Get an object (file) Read more
async fn presign_get_object( &self, object_key: impl Into<String>, public: bool, params: GetObjectParams, options: Option<GetObjectOptions>, query_auth_options: QueryAuthOptions, ) -> Result<String>
Source§impl GetSymlinkOperations for Client
impl GetSymlinkOperations for Client
Source§async fn get_symlink(
&self,
object_key: impl Into<String>,
params: GetSymlinkParams,
) -> Result<GetSymlinkResponse>
async fn get_symlink( &self, object_key: impl Into<String>, params: GetSymlinkParams, ) -> Result<GetSymlinkResponse>
Get a symbolic link information Read more
Source§impl HeadObjectOperations for Client
impl HeadObjectOperations for Client
Source§async fn head_object(
&self,
object_name: impl Into<String>,
params: HeadObjectParams,
options: Option<HeadObjectOptions>,
) -> Result<HeadObjectResponse>
async fn head_object( &self, object_name: impl Into<String>, params: HeadObjectParams, options: Option<HeadObjectOptions>, ) -> Result<HeadObjectResponse>
Get metadata for an object (file) Read more
Source§impl InitiateMultipartUploadOperations for Client
impl InitiateMultipartUploadOperations for Client
Source§async fn initiate_multipart_upload(
&self,
object_key: impl Into<String>,
options: Option<InitiateMultipartUploadOptions>,
) -> Result<InitiateMultipartUploadResult>
async fn initiate_multipart_upload( &self, object_key: impl Into<String>, options: Option<InitiateMultipartUploadOptions>, ) -> Result<InitiateMultipartUploadResult>
Initialize multipart upload Read more
Source§impl ListMultipartUploadsOperations for Client
impl ListMultipartUploadsOperations for Client
Source§async fn list_multipart_uploads(
&self,
params: Option<ListMultipartUploadsParams>,
) -> Result<ListMultipartUploadsResult>
async fn list_multipart_uploads( &self, params: Option<ListMultipartUploadsParams>, ) -> Result<ListMultipartUploadsResult>
List multipart upload events Read more
Source§impl ListObjectsOps for Client
impl ListObjectsOps for Client
Source§async fn list_objects(
&self,
params: Option<ListObjectsV2Params>,
) -> Result<ListObjectsResult>
async fn list_objects( &self, params: Option<ListObjectsV2Params>, ) -> Result<ListObjectsResult>
List objects in a bucket (V2) Read more
Source§async fn presign_list_objects(
&self,
public: bool,
params: Option<ListObjectsV2Params>,
query_auth_options: QueryAuthOptions,
) -> Result<String>
async fn presign_list_objects( &self, public: bool, params: Option<ListObjectsV2Params>, query_auth_options: QueryAuthOptions, ) -> Result<String>
Presign list objects operation
Source§impl ListPartsOperations for Client
impl ListPartsOperations for Client
Source§async fn list_parts(
&self,
object_key: impl Into<String>,
upload_id: impl Into<String>,
params: Option<ListPartsParams>,
) -> Result<ListPartsResult>
async fn list_parts( &self, object_key: impl Into<String>, upload_id: impl Into<String>, params: Option<ListPartsParams>, ) -> Result<ListPartsResult>
List uploaded parts Read more
Source§impl PutBucketOps for Client
impl PutBucketOps for Client
Source§async fn put_bucket(
&self,
config: PutBucketConfiguration,
options: Option<PutBucketOptions>,
) -> Result<()>
async fn put_bucket( &self, config: PutBucketConfiguration, options: Option<PutBucketOptions>, ) -> Result<()>
Create a new bucket Read more
Source§impl PutObjectOperations for Client
impl PutObjectOperations for Client
Source§async fn put_object<T>(
&self,
object_key: impl Into<String>,
body: T,
options: Option<PutObjectOptions>,
) -> Result<PutObjectResponse>
async fn put_object<T>( &self, object_key: impl Into<String>, body: T, options: Option<PutObjectOptions>, ) -> Result<PutObjectResponse>
Upload an object to OSS Read more
Source§impl PutSymlinkOperations for Client
impl PutSymlinkOperations for Client
Source§async fn put_symlink(
&self,
symlink_key: impl Into<String>,
target_object: impl Into<String>,
options: Option<PutSymlinkOptions>,
) -> Result<PutSymlinkResponse>
async fn put_symlink( &self, symlink_key: impl Into<String>, target_object: impl Into<String>, options: Option<PutSymlinkOptions>, ) -> Result<PutSymlinkResponse>
Create a symbolic link that points to a destination object Read more
Source§impl ServiceOperations for Client
impl ServiceOperations for Client
Source§async fn list_buckets(
&self,
params: Option<ListBucketsParams>,
) -> Result<ListAllMyBucketsResult>
async fn list_buckets( &self, params: Option<ListBucketsParams>, ) -> Result<ListAllMyBucketsResult>
Lists all buckets that belong to your Alibaba Cloud account.
You can specify the prefix, marker, or max-keys parameter to list buckets that meet specific conditions. Read more
Source§impl UploadPartCopyOperations for Client
impl UploadPartCopyOperations for Client
Source§async fn upload_part_copy(
&self,
object_key: impl Into<String>,
upload_id: impl Into<String>,
part_number: u32,
source_bucket: impl Into<String>,
source_key: impl Into<String>,
options: Option<UploadPartCopyOptions>,
) -> Result<UploadPartCopyResult>
async fn upload_part_copy( &self, object_key: impl Into<String>, upload_id: impl Into<String>, part_number: u32, source_bucket: impl Into<String>, source_key: impl Into<String>, options: Option<UploadPartCopyOptions>, ) -> Result<UploadPartCopyResult>
Upload part copy Read more
Source§async fn upload_part_copy_with_version_id(
&self,
object_key: impl Into<String>,
upload_id: impl Into<String>,
part_number: u32,
source_bucket: impl Into<String>,
source_key: impl Into<String>,
source_version_id: impl Into<String>,
options: Option<UploadPartCopyOptions>,
) -> Result<UploadPartCopyResult>
async fn upload_part_copy_with_version_id( &self, object_key: impl Into<String>, upload_id: impl Into<String>, part_number: u32, source_bucket: impl Into<String>, source_key: impl Into<String>, source_version_id: impl Into<String>, options: Option<UploadPartCopyOptions>, ) -> Result<UploadPartCopyResult>
Upload part copy Read more
Source§impl UploadPartOperations for Client
impl UploadPartOperations for Client
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more