Struct aws_sdk_s3control::types::KeyNameConstraint
source · #[non_exhaustive]pub struct KeyNameConstraint {
pub match_any_prefix: Option<Vec<String>>,
pub match_any_suffix: Option<Vec<String>>,
pub match_any_substring: Option<Vec<String>>,
}
Expand description
If provided, the generated manifest includes only source bucket objects whose object keys match the string constraints specified for MatchAnyPrefix
, MatchAnySuffix
, and MatchAnySubstring
.
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.match_any_prefix: Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
match_any_suffix: Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
match_any_substring: Option<Vec<String>>
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
Implementations§
source§impl KeyNameConstraint
impl KeyNameConstraint
sourcepub fn match_any_prefix(&self) -> &[String]
pub fn match_any_prefix(&self) -> &[String]
If provided, the generated manifest includes objects where the specified string appears at the start of the object key string.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .match_any_prefix.is_none()
.
sourcepub fn match_any_suffix(&self) -> &[String]
pub fn match_any_suffix(&self) -> &[String]
If provided, the generated manifest includes objects where the specified string appears at the end of the object key string.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .match_any_suffix.is_none()
.
sourcepub fn match_any_substring(&self) -> &[String]
pub fn match_any_substring(&self) -> &[String]
If provided, the generated manifest includes objects where the specified string appears anywhere within the object key string.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .match_any_substring.is_none()
.
source§impl KeyNameConstraint
impl KeyNameConstraint
sourcepub fn builder() -> KeyNameConstraintBuilder
pub fn builder() -> KeyNameConstraintBuilder
Creates a new builder-style object to manufacture KeyNameConstraint
.
Trait Implementations§
source§impl Clone for KeyNameConstraint
impl Clone for KeyNameConstraint
source§fn clone(&self) -> KeyNameConstraint
fn clone(&self) -> KeyNameConstraint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyNameConstraint
impl Debug for KeyNameConstraint
source§impl PartialEq for KeyNameConstraint
impl PartialEq for KeyNameConstraint
source§fn eq(&self, other: &KeyNameConstraint) -> bool
fn eq(&self, other: &KeyNameConstraint) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyNameConstraint
Auto Trait Implementations§
impl Freeze for KeyNameConstraint
impl RefUnwindSafe for KeyNameConstraint
impl Send for KeyNameConstraint
impl Sync for KeyNameConstraint
impl Unpin for KeyNameConstraint
impl UnwindSafe for KeyNameConstraint
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