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_parameter_constraints(
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::ParameterConstraints, ::aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::types::ParameterConstraints::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("AllowedValues") /* AllowedValues com.amazonaws.cloudformation#ParameterConstraints$AllowedValues */ =>  {
                let var_1 =
                    Some(
                        crate::protocol_serde::shape_allowed_values::de_allowed_values(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_allowed_values(var_1);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}