# Struct minio::s3::client::Client

source · [−]

    pub struct Client<'a> {
        pub ssl_cert_file: String,
        pub ignore_cert_check: bool,
        pub user_agent: String,
        /* private fields */
    }

## Fields

`ssl_cert_file: String` `ignore_cert_check: bool` `user_agent: String`

## Implementations

source

### impl<'a> Client<'a>

source

#### pub fn new(
base_url: BaseUrl,
provider: Option<&(dyn Provider + Send + Sync)>
) -> Client<'_>

source

#### pub async fn do_execute(
&self,
method: Method,
region: &String,
headers: &mut Multimap,
query_params: &Multimap,
bucket_name: Option<&str>,
object_name: Option<&str>,
data: Option<&[u8]>,
retry: bool
) -> Result<Response, Error>

source

#### pub async fn execute(
&self,
method: Method,
region: &String,
headers: &mut Multimap,
query_params: &Multimap,
bucket_name: Option<&str>,
object_name: Option<&str>,
data: Option<&[u8]>
) -> Result<Response, Error>

source

#### pub async fn get_region(
&self,
bucket_name: &str,
region: Option<&str>
) -> Result<String, Error>

source

#### pub async fn abort_multipart_upload(
&self,
args: &AbortMultipartUploadArgs<'_>
) -> Result<AbortMultipartUploadResponse, Error>

source

#### pub async fn bucket_exists(
&self,
args: &BucketExistsArgs<'_>
) -> Result<bool, Error>

source

#### pub async fn complete_multipart_upload(
&self,
args: &CompleteMultipartUploadArgs<'_>
) -> Result<CompleteMultipartUploadResponse, Error>

source

#### pub fn do_compose_object<'life0, 'life1, 'life_self, 'async_recursion>(
&'life_self self,
args: &'life0 mut ComposeObjectArgs<'_>,
upload_id: &'life1 mut String
) -> Pin<Box<dyn Future<Output = Result<ComposeObjectResponse, Error>> + 'async_recursion>> where
'life0: 'async_recursion,
'life1: 'async_recursion,
'life_self: 'async_recursion,

source

#### pub async fn compose_object(
&self,
args: &mut ComposeObjectArgs<'_>
) -> Result<ComposeObjectResponse, Error>

source

#### pub async fn copy_object(
&self,
args: &CopyObjectArgs<'_>
) -> Result<CopyObjectResponse, Error>

source

#### pub async fn create_multipart_upload(
&self,
args: &CreateMultipartUploadArgs<'_>
) -> Result<CreateMultipartUploadResponse, Error>

source

#### pub async fn get_object(
&self,
args: &GetObjectArgs<'_>
) -> Result<Response, Error>

source

#### pub async fn list_buckets(
&self,
args: &ListBucketsArgs<'_>
) -> Result<ListBucketsResponse, Error>

source

#### pub async fn listen_bucket_notification(
&self,
args: &ListenBucketNotificationArgs<'_>
) -> Result<ListenBucketNotificationResponse, Error>

source

#### pub async fn list_objects_v1(
&self,
args: &ListObjectsV1Args<'_>
) -> Result<ListObjectsV1Response, Error>

source

#### pub async fn list_objects_v2(
&self,
args: &ListObjectsV2Args<'_>
) -> Result<ListObjectsV2Response, Error>

source

#### pub async fn list_object_versions(
&self,
args: &ListObjectVersionsArgs<'_>
) -> Result<ListObjectVersionsResponse, Error>

source

#### pub async fn list_objects(
&self,
args: &ListObjectsArgs<'_>
) -> Result<(), Error>

source

#### pub async fn make_bucket(
&self,
args: &MakeBucketArgs<'_>
) -> Result<MakeBucketResponse, Error>

source

#### pub async fn put_object(
&self,
args: &mut PutObjectArgs<'_>
) -> Result<PutObjectResponse, Error>

source

#### pub async fn put_object_api(
&self,
args: &PutObjectApiArgs<'_>
) -> Result<PutObjectApiResponse, Error>

source

#### pub async fn remove_bucket(
&self,
args: &RemoveBucketArgs<'_>
) -> Result<RemoveBucketResponse, Error>

source

#### pub async fn remove_object(
&self,
args: &RemoveObjectArgs<'_>
) -> Result<RemoveObjectResponse, Error>

source

#### pub async fn remove_objects_api(
&self,
args: &RemoveObjectsApiArgs<'_>
) -> Result<RemoveObjectsApiResponse, Error>

source

#### pub async fn remove_objects(
&self,
args: &mut RemoveObjectsArgs<'_>
) -> Result<RemoveObjectsResponse, Error>

source

#### pub async fn select_object_content(
&self,
args: &SelectObjectContentArgs<'_>
) -> Result<SelectObjectContentResponse, Error>

source

#### pub async fn stat_object(
&self,
args: &StatObjectArgs<'_>
) -> Result<StatObjectResponse, Error>

source

#### pub async fn upload_part(
&self,
args: &UploadPartArgs<'_>
) -> Result<UploadPartResponse, Error>

source

#### pub async fn upload_part_copy(
&self,
args: &UploadPartCopyArgs<'_>
) -> Result<UploadPartCopyResponse, Error>

## Trait Implementations

source

### impl<'a> Clone for Client<'a>

source

#### fn clone(&self) -> Client<'a>

Returns a copy 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<'a> Debug for Client<'a>

source

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

Formats the value using the given formatter. Read more

source

### impl<'a> Default for Client<'a>

source

#### fn default() -> Client<'a>

Returns the “default value” for a type. Read more

## Auto Trait Implementations

### impl<'a> !RefUnwindSafe for Client<'a>

### impl<'a> Send for Client<'a>

### impl<'a> Sync for Client<'a>

### impl<'a> Unpin for Client<'a>

### impl<'a> !UnwindSafe for Client<'a>

## 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,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

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

const: unstable · source

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

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · 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>,

const: unstable · 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> Same<T> for T

#### type Output = T

Should always be `Self`

source

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

#### 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

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

The type returned in the event of a conversion error.

const: unstable · 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