#[non_exhaustive]pub struct LifecycleExpiration {
pub date: Option<DateTime>,
pub days: Option<i32>,
pub expired_object_delete_marker: Option<bool>,
}
Expand description
Container for the expiration for the lifecycle of the object.
For more information see, Managing your storage lifecycle in the Amazon S3 User Guide.
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.date: Option<DateTime>
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
days: Option<i32>
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
expired_object_delete_marker: Option<bool>
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
Implementations§
source§impl LifecycleExpiration
impl LifecycleExpiration
sourcepub fn date(&self) -> Option<&DateTime>
pub fn date(&self) -> Option<&DateTime>
Indicates at what date the object is to be moved or deleted. The date value must conform to the ISO 8601 format. The time is always midnight UTC.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
sourcepub fn days(&self) -> Option<i32>
pub fn days(&self) -> Option<i32>
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
sourcepub fn expired_object_delete_marker(&self) -> Option<bool>
pub fn expired_object_delete_marker(&self) -> Option<bool>
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
source§impl LifecycleExpiration
impl LifecycleExpiration
sourcepub fn builder() -> LifecycleExpirationBuilder
pub fn builder() -> LifecycleExpirationBuilder
Creates a new builder-style object to manufacture LifecycleExpiration
.
Trait Implementations§
source§impl Clone for LifecycleExpiration
impl Clone for LifecycleExpiration
source§fn clone(&self) -> LifecycleExpiration
fn clone(&self) -> LifecycleExpiration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecycleExpiration
impl Debug for LifecycleExpiration
source§impl PartialEq for LifecycleExpiration
impl PartialEq for LifecycleExpiration
impl StructuralPartialEq for LifecycleExpiration
Auto Trait Implementations§
impl Freeze for LifecycleExpiration
impl RefUnwindSafe for LifecycleExpiration
impl Send for LifecycleExpiration
impl Sync for LifecycleExpiration
impl Unpin for LifecycleExpiration
impl UnwindSafe for LifecycleExpiration
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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