aws_sdk_ec2/protocol_serde/
shape_path_component_list.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn de_path_component_list(
3    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
4) -> ::std::result::Result<::std::vec::Vec<crate::types::PathComponent>, ::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#PathComponentList$member */ =>  {
9                out.push(
10                    crate::protocol_serde::shape_path_component::de_path_component(&mut tag)
11                    ?
12                );
13            }
14            ,
15            _ => {}
16        }
17    }
18    Ok(out)
19}