pub struct PutBucketEncryption { /* private fields */ }Expand description
Configure default server-side encryption for the bucket.
See the Alibaba Cloud documentation for details.
Implementations§
Source§impl PutBucketEncryption
impl PutBucketEncryption
Sourcepub fn set_algorithm(self, algorithm: impl ToString) -> Self
pub fn set_algorithm(self, algorithm: impl ToString) -> Self
Set the encryption algorithm (for example, AES256, KMS).
Sourcepub fn set_kms_master_key_id(self, key_id: impl ToString) -> Self
pub fn set_kms_master_key_id(self, key_id: impl ToString) -> Self
Set the KMS master key ID. Only valid when the algorithm is KMS.
Sourcepub fn set_encryption(self, encryption: BucketEncryption) -> Self
pub fn set_encryption(self, encryption: BucketEncryption) -> Self
Replace the entire encryption document.
Auto Trait Implementations§
impl Freeze for PutBucketEncryption
impl !RefUnwindSafe for PutBucketEncryption
impl Send for PutBucketEncryption
impl Sync for PutBucketEncryption
impl Unpin for PutBucketEncryption
impl !UnwindSafe for PutBucketEncryption
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