pub struct OSSClient { /* private fields */ }Expand description
The main entry point for the Alibaba Cloud OSS SDK.
OSSClient is cheaply cloneable (wraps an Arc internally) and provides
access to bucket-level and service-level operations.
§Examples
use aliyun_oss::client::OSSClient;
use aliyun_oss::types::region::Region;
let client = OSSClient::builder()
.region(Region::CnHangzhou)
.credentials("your-ak", "your-sk")
.build()?;
let bucket = client.bucket("my-bucket")?;Implementations§
Source§impl OSSClient
impl OSSClient
pub fn list_buckets(&self) -> ListBucketsBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OSSClient
impl !RefUnwindSafe for OSSClient
impl Send for OSSClient
impl Sync for OSSClient
impl Unpin for OSSClient
impl UnsafeUnpin for OSSClient
impl !UnwindSafe for OSSClient
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