pub struct Bucket { /* private fields */ }Expand description
Instantiate an Bucket which wrap Minio and BucketArgs. Provides operations on objects.
Implementations§
Source§impl Bucket
impl Bucket
pub fn bucket_args(&self) -> BucketArgs
Sourcepub async fn exists(&self) -> Result<bool>
pub async fn exists(&self) -> Result<bool>
Check if exists. If exists and you have permission to access it, return [Ok(true)], otherwise [Ok(false)]
pub async fn list_objects( &self, args: ListObjectsArgs, ) -> Result<ListBucketResult>
pub async fn get_acl(&self) -> Result<AccessControlPolicy>
pub async fn get_region(&self) -> Result<String>
pub async fn get_cors(&self) -> Result<CORSConfiguration>
pub async fn set_cors(&self, args: CORSConfiguration) -> Result<()>
pub async fn del_cors(&self) -> Result<()>
pub async fn get_encryption(&self) -> Result<ServerSideEncryptionConfiguration>
pub async fn set_encryption( &self, args: ServerSideEncryptionConfiguration, ) -> Result<()>
pub async fn del_encryption(&self) -> Result<()>
pub async fn get_public_access_block( &self, ) -> Result<PublicAccessBlockConfiguration>
pub async fn set_public_access_block( &self, args: PublicAccessBlockConfiguration, ) -> Result<()>
pub async fn del_public_access_block(&self) -> Result<()>
pub async fn del_object_lock_config(&self) -> Result<()>
pub async fn get_object_lock_config(&self) -> Result<ObjectLockConfig>
pub async fn set_object_lock_config(&self, args: ObjectLockConfig) -> Result<()>
pub async fn get_object<K>(&self, key: K) -> Result<Response>
pub async fn get_object_torrent<K>(&self, key: K) -> Result<Response>
pub async fn put_object<K>(&self, key: K, data: Bytes) -> Result<()>
pub async fn put_object_stream<K>( &self, key: K, stream: Pin<Box<dyn Stream<Item = Result<Bytes>> + Sync + Send>>, len: Option<usize>, ) -> Result<()>
pub async fn copy_object<K>(&self, key: K, cp: CopySource) -> Result<()>
pub async fn remove_object<K>(&self, key: K) -> Result<()>
pub async fn stat_object<K>(&self, key: K) -> Result<Option<ObjectStat>>
pub async fn is_object_legal_hold_enabled<K>(&self, key: K) -> Result<bool>
pub async fn enable_object_legal_hold_enabled<K>(&self, key: K) -> Result<()>
pub async fn disable_object_legal_hold_enabled<K>(&self, key: K) -> Result<()>
pub async fn get_object_retention<K>(&self, key: K) -> Result<Retention>
pub async fn set_object_retention<K>( &self, key: K, retention: Retention, ) -> Result<()>
pub async fn select_object_content<K>( &self, key: K, request: SelectRequest, ) -> Result<SelectObjectReader>
pub async fn get_object_acl<K>(&self, key: K) -> Result<AccessControlPolicy>
Trait Implementations§
Source§impl Into<BucketArgs> for &Bucket
impl Into<BucketArgs> for &Bucket
Source§fn into(self) -> BucketArgs
fn into(self) -> BucketArgs
Converts this type into the (usually inferred) input type.
Source§impl Into<BucketArgs> for Bucket
impl Into<BucketArgs> for Bucket
Source§fn into(self) -> BucketArgs
fn into(self) -> BucketArgs
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Bucket
impl !RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl !UnwindSafe for Bucket
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