Struct aws_sdk_s3::model::S3KeyFilter
source · #[non_exhaustive]pub struct S3KeyFilter { /* private fields */ }
Expand description
A container for object key name prefix and suffix filtering rules.
Implementations§
source§impl S3KeyFilter
impl S3KeyFilter
sourcepub fn filter_rules(&self) -> Option<&[FilterRule]>
pub fn filter_rules(&self) -> Option<&[FilterRule]>
A list of containers for the key-value pair that defines the criteria for the filter rule.
source§impl S3KeyFilter
impl S3KeyFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3KeyFilter
.
Examples found in repository?
src/xml_deser.rs (line 6732)
6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756
pub fn deser_structure_crate_model_s3_key_filter(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::S3KeyFilter, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::S3KeyFilter::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("FilterRule") /* FilterRules com.amazonaws.s3#S3KeyFilter$FilterRules */ => {
let var_368 =
Some(
Result::<std::vec::Vec<crate::model::FilterRule>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_369 = builder.filter_rules.take().unwrap_or_default();
list_369.push(
crate::xml_deser::deser_structure_crate_model_filter_rule(&mut tag)
?
);
list_369
})
?
)
;
builder = builder.set_filter_rules(var_368);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for S3KeyFilter
impl Clone for S3KeyFilter
source§fn clone(&self) -> S3KeyFilter
fn clone(&self) -> S3KeyFilter
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 more