Struct aws_sdk_s3::model::LifecycleExpiration
source · [−]#[non_exhaustive]pub struct LifecycleExpiration { /* private fields */ }
Expand description
Container for the expiration for the lifecycle of the object.
Implementations
sourceimpl 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. Should be in GMT ISO 8601 Format.
sourcepub fn days(&self) -> i32
pub fn days(&self) -> 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) -> bool
pub fn expired_object_delete_marker(&self) -> 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.
sourceimpl LifecycleExpiration
impl LifecycleExpiration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LifecycleExpiration
.
Trait Implementations
sourceimpl Clone for LifecycleExpiration
impl Clone for LifecycleExpiration
sourcefn clone(&self) -> LifecycleExpiration
fn clone(&self) -> LifecycleExpiration
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 LifecycleExpiration
impl Debug for LifecycleExpiration
sourceimpl PartialEq<LifecycleExpiration> for LifecycleExpiration
impl PartialEq<LifecycleExpiration> for LifecycleExpiration
sourcefn eq(&self, other: &LifecycleExpiration) -> bool
fn eq(&self, other: &LifecycleExpiration) -> bool
impl StructuralPartialEq for LifecycleExpiration
Auto Trait Implementations
impl RefUnwindSafe for LifecycleExpiration
impl Send for LifecycleExpiration
impl Sync for LifecycleExpiration
impl Unpin for LifecycleExpiration
impl UnwindSafe for LifecycleExpiration
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