pub struct BucketArgs { /* private fields */ }Expand description
Custom request parameters for bucket operations.
§parmas
bucket_name: The bucket name.region: Optional, The bucket region.expected_bucket_owner: Optional, The account ID of the expected bucket owner.extra_headers: Optional, Extra headers for advanced usage.
Note: Some parameters are only valid in specific methods
Implementations§
Source§impl BucketArgs
impl BucketArgs
pub fn new<S: Into<String>>(bucket_name: S) -> Self
Sourcepub fn expected_bucket_owner(
self,
expected_bucket_owner: Option<String>,
) -> Self
pub fn expected_bucket_owner( self, expected_bucket_owner: Option<String>, ) -> Self
Set the account ID of the expected bucket owner.
Sourcepub fn extra_headers(self, extra_headers: Option<HeaderMap>) -> Self
pub fn extra_headers(self, extra_headers: Option<HeaderMap>) -> Self
Set extra headers for advanced usage.
Trait Implementations§
Source§impl Clone for BucketArgs
impl Clone for BucketArgs
Source§fn clone(&self) -> BucketArgs
fn clone(&self) -> BucketArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BucketArgs
impl Debug for BucketArgs
Source§impl<S> From<S> for BucketArgs
impl<S> From<S> for BucketArgs
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 BucketArgs
impl RefUnwindSafe for BucketArgs
impl Send for BucketArgs
impl Sync for BucketArgs
impl Unpin for BucketArgs
impl UnwindSafe for BucketArgs
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