Struct aws_sdk_s3::types::ReplicationRuleAndOperator
source · #[non_exhaustive]pub struct ReplicationRuleAndOperator {
pub prefix: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. 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
tag. -
If you specify a filter based on multiple tags, wrap the
Tag
elements in anAnd
tag.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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 to which the rule applies.
An array of tags containing key and value pairs.
Implementations§
source§impl ReplicationRuleAndOperator
impl ReplicationRuleAndOperator
sourcepub fn builder() -> ReplicationRuleAndOperatorBuilder
pub fn builder() -> ReplicationRuleAndOperatorBuilder
Creates a new builder-style object to manufacture ReplicationRuleAndOperator
.
Trait Implementations§
source§impl Clone for ReplicationRuleAndOperator
impl Clone for ReplicationRuleAndOperator
source§fn clone(&self) -> ReplicationRuleAndOperator
fn clone(&self) -> ReplicationRuleAndOperator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReplicationRuleAndOperator
impl Debug for ReplicationRuleAndOperator
source§impl PartialEq for ReplicationRuleAndOperator
impl PartialEq for ReplicationRuleAndOperator
source§fn eq(&self, other: &ReplicationRuleAndOperator) -> bool
fn eq(&self, other: &ReplicationRuleAndOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicationRuleAndOperator
Auto Trait Implementations§
impl RefUnwindSafe for ReplicationRuleAndOperator
impl Send for ReplicationRuleAndOperator
impl Sync for ReplicationRuleAndOperator
impl Unpin for ReplicationRuleAndOperator
impl UnwindSafe for ReplicationRuleAndOperator
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
Mutably borrows from an owned value. Read more