aws_sdk_ec2/protocol_serde/
shape_occurrence_day_set.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn de_occurrence_day_set(
3    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
4) -> ::std::result::Result<::std::vec::Vec<i32>, ::aws_smithy_xml::decode::XmlDecodeError> {
5    let mut out = std::vec::Vec::new();
6    while let Some(mut tag) = decoder.next_tag() {
7        match tag.start_el() {
8            s if s.matches("item") /* member com.amazonaws.ec2#OccurrenceDaySet$member */ =>  {
9                out.push(
10                     {
11                        <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
12                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
13                        )
14                        .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
15                    }
16                    ?
17                );
18            }
19            ,
20            _ => {}
21        }
22    }
23    Ok(out)
24}