Struct aws_sdk_s3control::model::LifecycleExpiration
source · [−]#[non_exhaustive]pub struct LifecycleExpiration {
pub date: Option<DateTime>,
pub days: i32,
pub expired_object_delete_marker: bool,
}
Expand description
The container of the Outposts bucket lifecycle 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.date: Option<DateTime>
Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.
days: 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: 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.
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 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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LifecycleExpiration) -> bool
fn ne(&self, other: &LifecycleExpiration) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more