Struct aws_sdk_s3::model::AnalyticsAndOperator
source · #[non_exhaustive]pub struct AnalyticsAndOperator { /* private fields */ }
Expand description
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates in any combination, and an object must match all of the predicates for the filter to apply.
Implementations§
source§impl AnalyticsAndOperator
impl AnalyticsAndOperator
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AnalyticsAndOperator
.
Examples found in repository?
src/xml_deser.rs (line 6880)
6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917
pub fn deser_structure_crate_model_analytics_and_operator(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AnalyticsAndOperator, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AnalyticsAndOperator::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Prefix") /* Prefix com.amazonaws.s3#AnalyticsAndOperator$Prefix */ => {
let var_377 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_prefix(var_377);
}
,
s if s.matches("Tag") /* Tags com.amazonaws.s3#AnalyticsAndOperator$Tags */ => {
let var_378 =
Some(
Result::<std::vec::Vec<crate::model::Tag>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_379 = builder.tags.take().unwrap_or_default();
list_379.push(
crate::xml_deser::deser_structure_crate_model_tag(&mut tag)
?
);
list_379
})
?
)
;
builder = builder.set_tags(var_378);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AnalyticsAndOperator
impl Clone for AnalyticsAndOperator
source§fn clone(&self) -> AnalyticsAndOperator
fn clone(&self) -> AnalyticsAndOperator
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