Struct aws_sdk_s3control::types::LifecycleRuleFilter
source · #[non_exhaustive]pub struct LifecycleRuleFilter {
pub prefix: Option<String>,
pub tag: Option<S3Tag>,
pub and: Option<LifecycleRuleAndOperator>,
pub object_size_greater_than: Option<i64>,
pub object_size_less_than: Option<i64>,
}
Expand description
The container for the filter of the lifecycle rule.
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.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
tag: Option<S3Tag>
A container for a key-value name pair.
and: Option<LifecycleRuleAndOperator>
The container for the AND
condition for the lifecycle rule.
object_size_greater_than: Option<i64>
Minimum object size to which the rule applies.
object_size_less_than: Option<i64>
Maximum object size to which the rule applies.
Implementations§
source§impl LifecycleRuleFilter
impl LifecycleRuleFilter
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
sourcepub fn and(&self) -> Option<&LifecycleRuleAndOperator>
pub fn and(&self) -> Option<&LifecycleRuleAndOperator>
The container for the AND
condition for the lifecycle rule.
sourcepub fn object_size_greater_than(&self) -> Option<i64>
pub fn object_size_greater_than(&self) -> Option<i64>
Minimum object size to which the rule applies.
sourcepub fn object_size_less_than(&self) -> Option<i64>
pub fn object_size_less_than(&self) -> Option<i64>
Maximum object size to which the rule applies.
source§impl LifecycleRuleFilter
impl LifecycleRuleFilter
sourcepub fn builder() -> LifecycleRuleFilterBuilder
pub fn builder() -> LifecycleRuleFilterBuilder
Creates a new builder-style object to manufacture LifecycleRuleFilter
.
Trait Implementations§
source§impl Clone for LifecycleRuleFilter
impl Clone for LifecycleRuleFilter
source§fn clone(&self) -> LifecycleRuleFilter
fn clone(&self) -> LifecycleRuleFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecycleRuleFilter
impl Debug for LifecycleRuleFilter
source§impl PartialEq for LifecycleRuleFilter
impl PartialEq for LifecycleRuleFilter
source§fn eq(&self, other: &LifecycleRuleFilter) -> bool
fn eq(&self, other: &LifecycleRuleFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecycleRuleFilter
Auto Trait Implementations§
impl Freeze for LifecycleRuleFilter
impl RefUnwindSafe for LifecycleRuleFilter
impl Send for LifecycleRuleFilter
impl Sync for LifecycleRuleFilter
impl Unpin for LifecycleRuleFilter
impl UnwindSafe for LifecycleRuleFilter
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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