#[non_exhaustive]pub struct AwsS3BucketObjectLockConfigurationRuleDetails {
pub default_retention: Option<AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails>,
}
Expand description
Specifies the S3 Object Lock rule for the specified object. In Amazon S3, Object Lock can help prevent objects from being deleted or overwritten for a fixed amount of time or indefinitely.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.default_retention: Option<AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails>
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.
Implementations§
source§impl AwsS3BucketObjectLockConfigurationRuleDetails
impl AwsS3BucketObjectLockConfigurationRuleDetails
sourcepub fn default_retention(
&self
) -> Option<&AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails>
pub fn default_retention( &self ) -> Option<&AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails>
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket.
source§impl AwsS3BucketObjectLockConfigurationRuleDetails
impl AwsS3BucketObjectLockConfigurationRuleDetails
sourcepub fn builder() -> AwsS3BucketObjectLockConfigurationRuleDetailsBuilder
pub fn builder() -> AwsS3BucketObjectLockConfigurationRuleDetailsBuilder
Creates a new builder-style object to manufacture AwsS3BucketObjectLockConfigurationRuleDetails
.
Trait Implementations§
source§impl Clone for AwsS3BucketObjectLockConfigurationRuleDetails
impl Clone for AwsS3BucketObjectLockConfigurationRuleDetails
source§fn clone(&self) -> AwsS3BucketObjectLockConfigurationRuleDetails
fn clone(&self) -> AwsS3BucketObjectLockConfigurationRuleDetails
Returns a copy 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 PartialEq for AwsS3BucketObjectLockConfigurationRuleDetails
impl PartialEq for AwsS3BucketObjectLockConfigurationRuleDetails
source§fn eq(&self, other: &AwsS3BucketObjectLockConfigurationRuleDetails) -> bool
fn eq(&self, other: &AwsS3BucketObjectLockConfigurationRuleDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsS3BucketObjectLockConfigurationRuleDetails
Auto Trait Implementations§
impl RefUnwindSafe for AwsS3BucketObjectLockConfigurationRuleDetails
impl Send for AwsS3BucketObjectLockConfigurationRuleDetails
impl Sync for AwsS3BucketObjectLockConfigurationRuleDetails
impl Unpin for AwsS3BucketObjectLockConfigurationRuleDetails
impl UnwindSafe for AwsS3BucketObjectLockConfigurationRuleDetails
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