aws_sdk_ec2/protocol_serde/
shape_through_resources_statement.rs1#[allow(clippy::needless_question_mark)]
3pub fn de_through_resources_statement(
4 decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
5) -> ::std::result::Result<crate::types::ThroughResourcesStatement, ::aws_smithy_xml::decode::XmlDecodeError> {
6 #[allow(unused_mut)]
7 let mut builder = crate::types::ThroughResourcesStatement::builder();
8 while let Some(mut tag) = decoder.next_tag() {
9 match tag.start_el() {
10 s if s.matches("resourceStatement") => {
11 let var_1 =
12 Some(
13 crate::protocol_serde::shape_resource_statement::de_resource_statement(&mut tag)
14 ?
15 )
16 ;
17 builder = builder.set_resource_statement(var_1);
18 }
19 ,
20 _ => {}
21 }
22 }
23 Ok(builder.build())
24}