Struct aws_sdk_s3::model::DefaultRetention
source · [−]#[non_exhaustive]pub struct DefaultRetention { /* private fields */ }
Expand description
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
-
The
DefaultRetention
settings require both a mode and a period. -
The
DefaultRetention
period can be eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.
Implementations
sourceimpl DefaultRetention
impl DefaultRetention
sourcepub fn mode(&self) -> Option<&ObjectLockRetentionMode>
pub fn mode(&self) -> Option<&ObjectLockRetentionMode>
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days
or Years
.
sourceimpl DefaultRetention
impl DefaultRetention
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DefaultRetention
.
Trait Implementations
sourceimpl Clone for DefaultRetention
impl Clone for DefaultRetention
sourcefn clone(&self) -> DefaultRetention
fn clone(&self) -> DefaultRetention
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 DefaultRetention
impl Debug for DefaultRetention
sourceimpl PartialEq<DefaultRetention> for DefaultRetention
impl PartialEq<DefaultRetention> for DefaultRetention
sourcefn eq(&self, other: &DefaultRetention) -> bool
fn eq(&self, other: &DefaultRetention) -> bool
impl StructuralPartialEq for DefaultRetention
Auto Trait Implementations
impl RefUnwindSafe for DefaultRetention
impl Send for DefaultRetention
impl Sync for DefaultRetention
impl Unpin for DefaultRetention
impl UnwindSafe for DefaultRetention
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