#[non_exhaustive]pub struct ObjectLockRetention {
pub mode: Option<ObjectLockRetentionMode>,
pub retain_until_date: Option<DateTime>,
pub event_hold: Option<ObjectLockEventHold>,
pub event_hold_duration: Option<EventHoldDuration>,
}Expand description
A Retention configuration for an object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: Option<ObjectLockRetentionMode>Indicates the Retention mode for the specified object.
retain_until_date: Option<DateTime>The date on which this Object Lock Retention will expire.
event_hold: Option<ObjectLockEventHold>The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.
event_hold_duration: Option<EventHoldDuration>The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
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.
Sourcepub fn event_hold(&self) -> Option<&ObjectLockEventHold>
pub fn event_hold(&self) -> Option<&ObjectLockEventHold>
The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.
Sourcepub fn event_hold_duration(&self) -> Option<&EventHoldDuration>
pub fn event_hold_duration(&self) -> Option<&EventHoldDuration>
The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectLockRetention
impl Debug for ObjectLockRetention
Source§impl PartialEq for ObjectLockRetention
impl PartialEq for ObjectLockRetention
impl StructuralPartialEq for ObjectLockRetention
Auto Trait Implementations§
impl Freeze for ObjectLockRetention
impl RefUnwindSafe for ObjectLockRetention
impl Send for ObjectLockRetention
impl Sync for ObjectLockRetention
impl Unpin for ObjectLockRetention
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more