Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::LifecycleRuleAndOperator
pub struct LifecycleRuleAndOperator {
pub prefix: Option<String>,
pub tags: Option<Vec<Tag, Global>>,
pub object_size_greater_than: i64,
pub object_size_less_than: i64,
}
Expand description
This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.
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.prefix: Option<String>
Prefix identifying one or more objects to which the rule applies.
All of these tags must exist in the object's tag set in order for the rule to apply.
object_size_greater_than: i64
Minimum object size to which the rule applies.
object_size_less_than: i64
Maximum object size to which the rule applies.
Implementations§
§impl LifecycleRuleAndOperator
impl LifecycleRuleAndOperator
pub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
Prefix identifying one or more objects to which the rule applies.
All of these tags must exist in the object's tag set in order for the rule to apply.
pub fn object_size_greater_than(&self) -> i64
pub fn object_size_greater_than(&self) -> i64
Minimum object size to which the rule applies.
pub fn object_size_less_than(&self) -> i64
pub fn object_size_less_than(&self) -> i64
Maximum object size to which the rule applies.
§impl LifecycleRuleAndOperator
impl LifecycleRuleAndOperator
pub fn builder() -> LifecycleRuleAndOperatorBuilder
pub fn builder() -> LifecycleRuleAndOperatorBuilder
Creates a new builder-style object to manufacture LifecycleRuleAndOperator
.
Trait Implementations§
§impl Clone for LifecycleRuleAndOperator
impl Clone for LifecycleRuleAndOperator
§fn clone(&self) -> LifecycleRuleAndOperator
fn clone(&self) -> LifecycleRuleAndOperator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for LifecycleRuleAndOperator
impl Debug for LifecycleRuleAndOperator
§impl PartialEq<LifecycleRuleAndOperator> for LifecycleRuleAndOperator
impl PartialEq<LifecycleRuleAndOperator> for LifecycleRuleAndOperator
§fn eq(&self, other: &LifecycleRuleAndOperator) -> bool
fn eq(&self, other: &LifecycleRuleAndOperator) -> bool
self
and other
values to be equal, and is used
by ==
.