Struct aws_sdk_s3::model::ObjectLockRule
source · [−]#[non_exhaustive]pub struct ObjectLockRule { /* private fields */ }
Expand description
The container element for an Object Lock rule.
Implementations
sourceimpl 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.
sourceimpl ObjectLockRule
impl ObjectLockRule
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ObjectLockRule
.
Trait Implementations
sourceimpl Clone for ObjectLockRule
impl Clone for ObjectLockRule
sourcefn clone(&self) -> ObjectLockRule
fn clone(&self) -> ObjectLockRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ObjectLockRule
impl Debug for ObjectLockRule
sourceimpl PartialEq<ObjectLockRule> for ObjectLockRule
impl PartialEq<ObjectLockRule> for ObjectLockRule
sourcefn eq(&self, other: &ObjectLockRule) -> bool
fn eq(&self, other: &ObjectLockRule) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more