pub struct TransitionRule {
pub days: u32,
pub storage_class: String,
}Expand description
A single transition step (object age threshold + target storage class).
days is days since the object was created. AWS S3 also accepts Date
for transitions but Lifecycle deployments overwhelmingly use Days; the
Date form is omitted here on purpose to keep the evaluator narrow
(operators wanting calendar transitions can synthesise a one-shot rule
at the cadence of their scanner).
Fields§
§days: u32§storage_class: StringTarget storage class ("STANDARD_IA" / "GLACIER_IR" /
"GLACIER" / "DEEP_ARCHIVE" / "INTELLIGENT_TIERING" /
"ONEZONE_IA"). Stored as the AWS wire string so PutBucket /
GetBucket round-trip is a no-op.
Trait Implementations§
Source§impl Clone for TransitionRule
impl Clone for TransitionRule
Source§fn clone(&self) -> TransitionRule
fn clone(&self) -> TransitionRule
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 TransitionRule
impl Debug for TransitionRule
Source§impl<'de> Deserialize<'de> for TransitionRule
impl<'de> Deserialize<'de> for TransitionRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TransitionRule
impl PartialEq for TransitionRule
Source§fn eq(&self, other: &TransitionRule) -> bool
fn eq(&self, other: &TransitionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransitionRule
impl Serialize for TransitionRule
impl Eq for TransitionRule
impl StructuralPartialEq for TransitionRule
Auto Trait Implementations§
impl Freeze for TransitionRule
impl RefUnwindSafe for TransitionRule
impl Send for TransitionRule
impl Sync for TransitionRule
impl Unpin for TransitionRule
impl UnsafeUnpin for TransitionRule
impl UnwindSafe for TransitionRule
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.