Struct aws_sdk_s3::types::ObjectLockRule
source · #[non_exhaustive]pub struct ObjectLockRule { /* private fields */ }
Expand description
The container element for an Object Lock rule.
Implementations§
source§impl ObjectLockRule
impl ObjectLockRule
sourcepub fn default_retention(&self) -> Option<&DefaultRetention>
pub fn default_retention(&self) -> Option<&DefaultRetention>
The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days
or Years
but you must select one. You cannot specify Days
and Years
at the same time.
source§impl ObjectLockRule
impl ObjectLockRule
sourcepub fn builder() -> ObjectLockRuleBuilder
pub fn builder() -> ObjectLockRuleBuilder
Creates a new builder-style object to manufacture ObjectLockRule
.
Trait Implementations§
source§impl Clone for ObjectLockRule
impl Clone for ObjectLockRule
source§fn clone(&self) -> ObjectLockRule
fn clone(&self) -> ObjectLockRule
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 Debug for ObjectLockRule
impl Debug for ObjectLockRule
source§impl PartialEq<ObjectLockRule> for ObjectLockRule
impl PartialEq<ObjectLockRule> for ObjectLockRule
source§fn eq(&self, other: &ObjectLockRule) -> bool
fn eq(&self, other: &ObjectLockRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectLockRule
Auto Trait Implementations§
impl RefUnwindSafe for ObjectLockRule
impl Send for ObjectLockRule
impl Sync for ObjectLockRule
impl Unpin for ObjectLockRule
impl UnwindSafe for ObjectLockRule
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