Struct aws_sdk_s3control::types::ReplicationRuleFilter
source · #[non_exhaustive]pub struct ReplicationRuleFilter {
pub prefix: Option<String>,
pub tag: Option<S3Tag>,
pub and: Option<ReplicationRuleAndOperator>,
}
Expand description
A filter that identifies the subset of objects to which the replication rule applies. A Filter
element must specify exactly one Prefix
, Tag
, or And
child element.
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>
An object key name prefix that identifies the subset of objects that the rule applies to.
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<ReplicationRuleAndOperator>
A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. This element is required only if you specify more than one filter. For example:
-
If you specify both a
Prefix
and aTag
filter, wrap these filters in anAnd
element. -
If you specify a filter based on multiple tags, wrap the
Tag
elements in anAnd
element.
Implementations§
source§impl ReplicationRuleFilter
impl ReplicationRuleFilter
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
An object key name prefix that identifies the subset of objects that the rule applies to.
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<&ReplicationRuleAndOperator>
pub fn and(&self) -> Option<&ReplicationRuleAndOperator>
A container for specifying rule filters. The filters determine the subset of objects that the rule applies to. This element is required only if you specify more than one filter. For example:
-
If you specify both a
Prefix
and aTag
filter, wrap these filters in anAnd
element. -
If you specify a filter based on multiple tags, wrap the
Tag
elements in anAnd
element.
source§impl ReplicationRuleFilter
impl ReplicationRuleFilter
sourcepub fn builder() -> ReplicationRuleFilterBuilder
pub fn builder() -> ReplicationRuleFilterBuilder
Creates a new builder-style object to manufacture ReplicationRuleFilter
.
Trait Implementations§
source§impl Clone for ReplicationRuleFilter
impl Clone for ReplicationRuleFilter
source§fn clone(&self) -> ReplicationRuleFilter
fn clone(&self) -> ReplicationRuleFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplicationRuleFilter
impl Debug for ReplicationRuleFilter
source§impl PartialEq for ReplicationRuleFilter
impl PartialEq for ReplicationRuleFilter
source§fn eq(&self, other: &ReplicationRuleFilter) -> bool
fn eq(&self, other: &ReplicationRuleFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicationRuleFilter
Auto Trait Implementations§
impl Freeze for ReplicationRuleFilter
impl RefUnwindSafe for ReplicationRuleFilter
impl Send for ReplicationRuleFilter
impl Sync for ReplicationRuleFilter
impl Unpin for ReplicationRuleFilter
impl UnwindSafe for ReplicationRuleFilter
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