#[allow(clippy::needless_question_mark)]
pub fn de_warning_detail(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::WarningDetail, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::WarningDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Type") => {
let var_1 =
Some(
Result::<crate::types::WarningType, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::types::WarningType::from(
::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1);
}
,
s if s.matches("Properties") => {
let var_2 =
Some(
crate::protocol_serde::shape_warning_properties::de_warning_properties(&mut tag)
?
)
;
builder = builder.set_properties(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}