Struct aws_sdk_s3::types::ObjectLockRetention
source · #[non_exhaustive]pub struct ObjectLockRetention { /* private fields */ }
Expand description
A Retention configuration for an object.
Implementations§
source§impl ObjectLockRetention
impl ObjectLockRetention
sourcepub fn mode(&self) -> Option<&ObjectLockRetentionMode>
pub fn mode(&self) -> Option<&ObjectLockRetentionMode>
Indicates the Retention mode for the specified object.
sourcepub fn retain_until_date(&self) -> Option<&DateTime>
pub fn retain_until_date(&self) -> Option<&DateTime>
The date on which this Object Lock Retention will expire.
source§impl ObjectLockRetention
impl ObjectLockRetention
sourcepub fn builder() -> ObjectLockRetentionBuilder
pub fn builder() -> ObjectLockRetentionBuilder
Creates a new builder-style object to manufacture ObjectLockRetention
.
Trait Implementations§
source§impl Clone for ObjectLockRetention
impl Clone for ObjectLockRetention
source§fn clone(&self) -> ObjectLockRetention
fn clone(&self) -> ObjectLockRetention
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 ObjectLockRetention
impl Debug for ObjectLockRetention
source§impl PartialEq<ObjectLockRetention> for ObjectLockRetention
impl PartialEq<ObjectLockRetention> for ObjectLockRetention
source§fn eq(&self, other: &ObjectLockRetention) -> bool
fn eq(&self, other: &ObjectLockRetention) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectLockRetention
Auto Trait Implementations§
impl RefUnwindSafe for ObjectLockRetention
impl Send for ObjectLockRetention
impl Sync for ObjectLockRetention
impl Unpin for ObjectLockRetention
impl UnwindSafe for ObjectLockRetention
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