aws-sdk-cloudformation 1.111.0

AWS SDK for AWS CloudFormation
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[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") /* Type com.amazonaws.cloudformation#WarningDetail$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") /* Properties com.amazonaws.cloudformation#WarningDetail$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())
}