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 ==
.