Client

Struct Client 

Source
pub struct Client { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl AbortMultipartUploadOperations for Client

Source§

async fn abort_multipart_upload( &self, object_key: impl Into<String>, upload_id: impl Into<String>, ) -> Result<()>

Cancel multipart upload Read more
Source§

impl BucketOperations for Client

Source§

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>

Get bucket information Read more
Source§

async fn get_bucket_location(&self) -> Result<String>

Get bucket location Read more
Source§

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>

List objects in a bucket (V2) Read more
Source§

async fn delete_bucket(&self) -> Result<()>

Delete a bucket Read more
Source§

impl Clone for Client

Source§

fn clone(&self) -> Client

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

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>

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>

Automatically complete multipart upload (server lists and sorts all parts)
Source§

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>

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>

Copy an object within a bucket or between buckets in the same region Read more
Source§

impl DataIndexingOperations for Client

Source§

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 Debug for Client

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DeleteBucketOps for Client

Source§

async fn delete_bucket(&self) -> Result<()>

Delete a bucket Read more
Source§

impl DeleteObjectOperations for Client

Source§

async fn delete_object( &self, object_key: impl Into<String>, params: Option<DeleteObjectParams>, ) -> Result<()>

Delete an object Read more
Source§

impl GetBucketInfoOps for Client

Source§

async fn get_bucket_info(&self) -> Result<BucketDetail>

Get bucket information Read more
Source§

impl GetBucketLocationOps for Client

Source§

async fn get_bucket_location(&self) -> Result<String>

Get bucket location Read more
Source§

impl GetBucketStatOps for Client

Source§

async fn get_bucket_stat(&self) -> Result<BucketStat>

Get bucket statistics data Read more
Source§

impl GetObjectOperations for Client

Source§

async fn get_object( &self, object_key: impl Into<String>, params: GetObjectParams, options: Option<GetObjectOptions>, ) -> Result<Bytes>

Get an object (file) Read more
Source§

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

Get a symbolic link information Read more
Source§

impl HeadObjectOperations for Client

Source§

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

Source§

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

Source§

impl ListObjectsOps for Client

Source§

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>

Presign list objects operation
Source§

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>

List uploaded parts Read more
Source§

impl PutBucketOps for Client

Source§

async fn put_bucket( &self, config: PutBucketConfiguration, options: Option<PutBucketOptions>, ) -> Result<()>

Create a new bucket Read more
Source§

impl PutObjectOperations for Client

Source§

async fn put_object<T>( &self, object_key: impl Into<String>, body: T, options: Option<PutObjectOptions>, ) -> Result<PutObjectResponse>
where T: Send + 'static, Bytes: From<T>,

Upload an object to OSS Read more
Source§

async fn put_object_stream<S>( &self, object_key: impl Into<String>, stream: S, options: Option<PutObjectOptions>, ) -> Result<PutObjectResponse>
where S: TryStream + Send + 'static, S::Error: Into<BoxError>, Bytes: From<S::Ok>,

Upload an object to OSS Read more
Source§

impl PutSymlinkOperations for Client

Create a symbolic link that points to a destination object Read more
Source§

impl ServiceOperations for Client

Source§

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

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>

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>

Upload part copy Read more
Source§

impl UploadPartOperations for Client

Source§

async fn upload_part<T>( &self, object_key: impl Into<String>, upload_id: impl Into<String>, part_number: u32, body: T, ) -> Result<UploadPartResult>
where T: Send + 'static, Bytes: From<T>,

Upload part Read more
Source§

async fn upload_part_stream<S>( &self, object_key: impl Into<String>, upload_id: impl Into<String>, part_number: u32, stream: S, ) -> Result<UploadPartResult>
where S: TryStream + Send + 'static, S::Error: Into<BoxError>, Bytes: From<S::Ok>,

Upload part Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> BucketOperations for T