aws_sdk_elasticloadbalancingv2/protocol_serde/
shape_security_groups.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn de_security_groups(
3    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
4) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::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("member") /* member com.amazonaws.elasticloadbalancingv2#SecurityGroups$member */ =>  {
9                out.push(
10                    Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
11                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
12                        .into()
13                    )
14                    ?
15                );
16            }
17            ,
18            _ => {}
19        }
20    }
21    Ok(out)
22}