pub enum LifecycleAction {
Expire,
Transition {
storage_class: String,
},
}Expand description
The action a single rule wants to take right now for a candidate object.
Variants§
Expire
Delete the object (Expiration / NoncurrentVersionExpiration).
Transition
Move the object to a different storage class (Transition). The
inner string is the AWS wire form (e.g. "GLACIER_IR").
Implementations§
Source§impl LifecycleAction
impl LifecycleAction
Sourcepub fn metric_label(&self) -> &'static str
pub fn metric_label(&self) -> &'static str
Stable label suitable for a metric counter
(s4_lifecycle_actions_total{action="..."}).
Trait Implementations§
Source§impl Clone for LifecycleAction
impl Clone for LifecycleAction
Source§fn clone(&self) -> LifecycleAction
fn clone(&self) -> LifecycleAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleAction
impl Debug for LifecycleAction
Source§impl PartialEq for LifecycleAction
impl PartialEq for LifecycleAction
Source§fn eq(&self, other: &LifecycleAction) -> bool
fn eq(&self, other: &LifecycleAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LifecycleAction
impl StructuralPartialEq for LifecycleAction
Auto Trait Implementations§
impl Freeze for LifecycleAction
impl RefUnwindSafe for LifecycleAction
impl Send for LifecycleAction
impl Sync for LifecycleAction
impl Unpin for LifecycleAction
impl UnsafeUnpin for LifecycleAction
impl UnwindSafe for LifecycleAction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.