pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn list_buckets(&self) -> Result<Vec<Bucket>>
pub async fn put_bucket(&self) -> Result<Bucket>
pub async fn get_bucket_info(&self) -> Result<Option<Bucket>>
pub async fn get_bucket_location(&self) -> Result<BucketLocation>
pub async fn get_bucket_stat(&self) -> Result<BucketStat>
pub async fn delete_bucket(&self) -> Result<()>
Source§impl Client
impl Client
pub async fn list_objects( &self, prefix: Option<&str>, delimiter: Option<&str>, ) -> Result<(Vec<Folder>, Vec<File>)>
pub async fn list_folders(&self, prefix: Option<&str>) -> Result<Vec<Folder>>
pub async fn list_files(&self, prefix: Option<&str>) -> Result<Vec<File>>
pub async fn put_object<T: Into<Bytes>>( &self, object_name: &str, bytes: T, ) -> Result<HeaderMap>
pub async fn put_object_stream<S>( &self, object_name: &str, stream: S, ) -> Result<HeaderMap>
pub async fn get_object(&self, object_name: &str) -> Result<(Bytes, HeaderMap)>
pub async fn delete_object(&self, object_name: &str) -> Result<()>
pub async fn delete_multiple_objects( &self, object_names: Vec<&str>, ) -> Result<()>
pub async fn copy_object( &self, dest_object_name: &str, source_object_name: &str, ) -> Result<HeaderMap>
pub async fn append_object<T: Into<Bytes>>( &self, object_name: &str, bytes: T, position: usize, ) -> Result<HeaderMap>
pub async fn head_object(&self, object_name: &str) -> Result<HeaderMap>
pub async fn get_object_meta(&self, object_name: &str) -> Result<HeaderMap>
pub async fn is_object_exist(&self, object_name: &str) -> Result<bool>
pub async fn sign_object( &self, object_name: &str, expires_duration: Duration, ) -> Result<String>
Trait Implementations§
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> 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