pub struct Client<H: HttpClient> { /* private fields */ }Implementations§
Source§impl<H: HttpClient> Client<H>
impl<H: HttpClient> Client<H>
pub async fn list_buckets(&self) -> Result<ListBucketsOutput, Error>
pub async fn create_bucket( &self, bucket: &str, location_constraint: Option<&str>, ) -> Result<(), Error>
pub async fn head_bucket(&self, bucket: &str) -> Result<(), Error>
pub async fn delete_bucket(&self, bucket: &str) -> Result<(), Error>
pub async fn list_objects( &self, bucket: &str, prefix: Option<&str>, continuation_token: Option<&str>, max_keys: Option<u32>, ) -> Result<ListObjectsOutput, Error>
pub async fn get_bucket_location( &self, bucket: &str, ) -> Result<GetBucketLocationOutput, Error>
Source§impl<H: HttpClient> Client<H>
impl<H: HttpClient> Client<H>
pub fn with_http_client( config: &ClientConfig<'_>, http: H, ) -> Result<Self, Error>
Source§impl Client<ReqwestHttpClient>
impl Client<ReqwestHttpClient>
pub fn new(config: &ClientConfig<'_>) -> Result<Self, Error>
Source§impl<H: HttpClient> Client<H>
impl<H: HttpClient> Client<H>
pub async fn put_object( &self, bucket: &str, key: &str, body: &[u8], ) -> Result<(), Error>
pub async fn get_object( &self, bucket: &str, key: &str, ) -> Result<GetObjectOutput, Error>
pub async fn head_object( &self, bucket: &str, key: &str, ) -> Result<HeadObjectOutput, Error>
pub async fn delete_object(&self, bucket: &str, key: &str) -> Result<(), Error>
pub async fn delete_objects( &self, bucket: &str, keys: &[&str], ) -> Result<DeleteObjectsOutput, Error>
pub async fn create_multipart_upload( &self, bucket: &str, key: &str, ) -> Result<String, Error>
pub async fn upload_part( &self, bucket: &str, key: &str, upload_id: &str, part_number: u32, body: &[u8], ) -> Result<UploadPartOutput, Error>
pub async fn complete_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, parts: &[CompletedPart], ) -> Result<CompleteMultipartUploadOutput, Error>
pub async fn abort_multipart_upload( &self, bucket: &str, key: &str, upload_id: &str, ) -> Result<(), Error>
pub async fn list_multipart_uploads( &self, bucket: &str, ) -> Result<ListMultipartUploadsOutput, Error>
pub async fn list_parts( &self, bucket: &str, key: &str, upload_id: &str, ) -> Result<ListPartsOutput, Error>
pub async fn put_object_tagging( &self, bucket: &str, key: &str, tags: &[Tag], ) -> Result<(), Error>
pub async fn get_object_tagging( &self, bucket: &str, key: &str, ) -> Result<GetObjectTaggingOutput, Error>
pub async fn delete_object_tagging( &self, bucket: &str, key: &str, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for Client<H>where
H: Freeze,
impl<H> RefUnwindSafe for Client<H>where
H: RefUnwindSafe,
impl<H> Send for Client<H>
impl<H> Sync for Client<H>
impl<H> Unpin for Client<H>where
H: Unpin,
impl<H> UnsafeUnpin for Client<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for Client<H>where
H: UnwindSafe,
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