#[non_exhaustive]pub struct NoncurrentVersionExpiration {
pub noncurrent_days: i32,
pub newer_noncurrent_versions: Option<i32>,
}
Expand description
The container of the noncurrent version expiration.
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.noncurrent_days: i32
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.
newer_noncurrent_versions: Option<i32>
Specifies how many noncurrent versions S3 on Outposts will retain. If there are this many more recent noncurrent versions, S3 on Outposts will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.
Implementations§
source§impl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn noncurrent_days(&self) -> i32
pub fn noncurrent_days(&self) -> i32
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.
sourcepub fn newer_noncurrent_versions(&self) -> Option<i32>
pub fn newer_noncurrent_versions(&self) -> Option<i32>
Specifies how many noncurrent versions S3 on Outposts will retain. If there are this many more recent noncurrent versions, S3 on Outposts will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.
source§impl NoncurrentVersionExpiration
impl NoncurrentVersionExpiration
sourcepub fn builder() -> NoncurrentVersionExpirationBuilder
pub fn builder() -> NoncurrentVersionExpirationBuilder
Creates a new builder-style object to manufacture NoncurrentVersionExpiration
.
Trait Implementations§
source§impl Clone for NoncurrentVersionExpiration
impl Clone for NoncurrentVersionExpiration
source§fn clone(&self) -> NoncurrentVersionExpiration
fn clone(&self) -> NoncurrentVersionExpiration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NoncurrentVersionExpiration
impl Debug for NoncurrentVersionExpiration
source§impl PartialEq for NoncurrentVersionExpiration
impl PartialEq for NoncurrentVersionExpiration
source§fn eq(&self, other: &NoncurrentVersionExpiration) -> bool
fn eq(&self, other: &NoncurrentVersionExpiration) -> bool
self
and other
values to be equal, and is used
by ==
.