pub struct BucketLifecycleRuleCondition {
pub is_live: Option<bool>,
pub matches_storage_class: Option<Vec<String>>,
pub age: Option<i32>,
pub num_newer_versions: Option<i32>,
pub created_before: Option<String>,
}Expand description
The condition(s) under which the action will be taken.
This type is not used in any activity, and only used as part of another schema.
Fields§
§is_live: Option<bool>Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
matches_storage_class: Option<Vec<String>>Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
age: Option<i32>Age of an object (in days). This condition is satisfied when an object reaches the specified age.
num_newer_versions: Option<i32>Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
created_before: Option<String>A date in RFC 3339 format with only the date part (for instance, “2013-01-15”). This condition is satisfied when an object is created before midnight of the specified date in UTC.
Trait Implementations§
source§impl Clone for BucketLifecycleRuleCondition
impl Clone for BucketLifecycleRuleCondition
source§fn clone(&self) -> BucketLifecycleRuleCondition
fn clone(&self) -> BucketLifecycleRuleCondition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BucketLifecycleRuleCondition
impl Debug for BucketLifecycleRuleCondition
source§impl Default for BucketLifecycleRuleCondition
impl Default for BucketLifecycleRuleCondition
source§fn default() -> BucketLifecycleRuleCondition
fn default() -> BucketLifecycleRuleCondition
source§impl Deserialize for BucketLifecycleRuleCondition
impl Deserialize for BucketLifecycleRuleCondition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
impl NestedType for BucketLifecycleRuleCondition
impl Part for BucketLifecycleRuleCondition
Auto Trait Implementations§
impl Freeze for BucketLifecycleRuleCondition
impl RefUnwindSafe for BucketLifecycleRuleCondition
impl Send for BucketLifecycleRuleCondition
impl Sync for BucketLifecycleRuleCondition
impl Unpin for BucketLifecycleRuleCondition
impl UnwindSafe for BucketLifecycleRuleCondition
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more