pub struct Client<'a> {
pub ssl_cert_file: String,
pub ignore_cert_check: bool,
pub user_agent: String,
/* private fields */
}Fields
ssl_cert_file: Stringignore_cert_check: booluser_agent: StringImplementations
sourceimpl<'a> Client<'a>
impl<'a> Client<'a>
pub fn new(
base_url: BaseUrl,
provider: Option<&(dyn Provider + Send + Sync)>
) -> Client<'_>
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>
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>
pub async fn get_region(
&self,
bucket_name: &str,
region: Option<&str>
) -> Result<String, Error>
pub async fn abort_multipart_upload(
&self,
args: &AbortMultipartUploadArgs<'_>
) -> Result<AbortMultipartUploadResponse, Error>
pub async fn bucket_exists(
&self,
args: &BucketExistsArgs<'_>
) -> Result<bool, Error>
pub async fn complete_multipart_upload(
&self,
args: &CompleteMultipartUploadArgs<'_>
) -> Result<CompleteMultipartUploadResponse, Error>
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,
pub async fn compose_object(
&self,
args: &mut ComposeObjectArgs<'_>
) -> Result<ComposeObjectResponse, Error>
pub async fn copy_object(
&self,
args: &CopyObjectArgs<'_>
) -> Result<CopyObjectResponse, Error>
pub async fn create_multipart_upload(
&self,
args: &CreateMultipartUploadArgs<'_>
) -> Result<CreateMultipartUploadResponse, Error>
pub async fn get_object(
&self,
args: &GetObjectArgs<'_>
) -> Result<Response, Error>
pub async fn list_buckets(
&self,
args: &ListBucketsArgs<'_>
) -> Result<ListBucketsResponse, Error>
pub async fn listen_bucket_notification(
&self,
args: &ListenBucketNotificationArgs<'_>
) -> Result<ListenBucketNotificationResponse, Error>
pub async fn list_objects_v1(
&self,
args: &ListObjectsV1Args<'_>
) -> Result<ListObjectsV1Response, Error>
pub async fn list_objects_v2(
&self,
args: &ListObjectsV2Args<'_>
) -> Result<ListObjectsV2Response, Error>
pub async fn list_object_versions(
&self,
args: &ListObjectVersionsArgs<'_>
) -> Result<ListObjectVersionsResponse, Error>
pub async fn list_objects(
&self,
args: &ListObjectsArgs<'_>
) -> Result<(), Error>
pub async fn make_bucket(
&self,
args: &MakeBucketArgs<'_>
) -> Result<MakeBucketResponse, Error>
pub async fn put_object(
&self,
args: &mut PutObjectArgs<'_>
) -> Result<PutObjectResponse, Error>
pub async fn put_object_api(
&self,
args: &PutObjectApiArgs<'_>
) -> Result<PutObjectApiResponse, Error>
pub async fn remove_bucket(
&self,
args: &RemoveBucketArgs<'_>
) -> Result<RemoveBucketResponse, Error>
pub async fn remove_object(
&self,
args: &RemoveObjectArgs<'_>
) -> Result<RemoveObjectResponse, Error>
pub async fn remove_objects_api(
&self,
args: &RemoveObjectsApiArgs<'_>
) -> Result<RemoveObjectsApiResponse, Error>
pub async fn remove_objects(
&self,
args: &mut RemoveObjectsArgs<'_>
) -> Result<RemoveObjectsResponse, Error>
pub async fn select_object_content(
&self,
args: &SelectObjectContentArgs<'_>
) -> Result<SelectObjectContentResponse, Error>
pub async fn stat_object(
&self,
args: &StatObjectArgs<'_>
) -> Result<StatObjectResponse, Error>
pub async fn upload_part(
&self,
args: &UploadPartArgs<'_>
) -> Result<UploadPartResponse, Error>
pub async fn upload_part_copy(
&self,
args: &UploadPartCopyArgs<'_>
) -> Result<UploadPartCopyResponse, Error>
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more