[−][src]Struct cloud_storage::bucket::Condition
A rule that might induce an Action if met.
Fields
age: i32Age of an object (in days). This condition is satisfied when an object reaches the specified age.
created_before: DateTime<Utc>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.
is_live: boolRelevant only for versioned objects. If the value is true, this condition matches the live
version of objects; if the value is false, it matches noncurrent versions of objects.
matches_storage_class: Vec<String>Objects having any of the storage classes specified by this condition will be matched. Values include STANDARD, NEARLINE, COLDLINE, MULTI_REGIONAL, REGIONAL, and DURABLE_REDUCED_AVAILABILITY.
num_newer_versions: i32Relevant 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.
Trait Implementations
impl Debug for Condition[src]
impl<'de> Deserialize<'de> for Condition[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<Condition> for Condition[src]
impl Serialize for Condition[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Condition[src]
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,