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_change_set_hook_target_details(
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::ChangeSetHookTargetDetails, ::aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::types::ChangeSetHookTargetDetails::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("TargetType") /* TargetType com.amazonaws.cloudformation#ChangeSetHookTargetDetails$TargetType */ =>  {
                let var_1 =
                    Some(
                        Result::<crate::types::HookTargetType, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::types::HookTargetType::from(
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_target_type(var_1);
            }
            ,
            s if s.matches("ResourceTargetDetails") /* ResourceTargetDetails com.amazonaws.cloudformation#ChangeSetHookTargetDetails$ResourceTargetDetails */ =>  {
                let var_2 =
                    Some(
                        crate::protocol_serde::shape_change_set_hook_resource_target_details::de_change_set_hook_resource_target_details(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_resource_target_details(var_2);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}