Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943

Files changed:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_renamed_list_members.rs

@@ -1,1 +22,29 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_renamed_list_members(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:551 */
    5      7   
    let mut out = std::vec::Vec::new();
           8  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    6      9   
    while let Some(mut tag) = decoder.next_tag() {
          10  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    7     11   
        match tag.start_el() {
    8         -
            s if s.matches("item") /* member aws.protocoltests.query#RenamedListMembers$member */ =>  {
    9         -
                out.push(
   10         -
                    Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   11         -
                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   12         -
                        .into()
   13         -
                    )
   14         -
                    ?
   15         -
                );
   16         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("item") /* member aws.protocoltests.query#RenamedListMembers$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          15  +
                        /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          16  +
                        /* XmlBindingTraitParserGenerator.kt:748 */.into()
          17  +
                    /* XmlBindingTraitParserGenerator.kt:729 */)
          18  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          19  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          20  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   17     21   
            ,
   18         -
            _ => {}
   19         -
        }
          22  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          23  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          24  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   20     25   
    }
          26  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   21     27   
    Ok(out)
          28  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   22     29   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_simple_input_params.rs

@@ -1,1 +28,43 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_simple_input_params_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<crate::operation::simple_input_params::SimpleInputParamsOutput, crate::operation::simple_input_params::SimpleInputParamsError>
    8     10   
{
          11  +
    /* RustType.kt:516 */
    9     12   
    #[allow(unused_mut)]
          13  +
    /* ProtocolParserGenerator.kt:106 */
   10     14   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   11     15   
        .map_err(crate::operation::simple_input_params::SimpleInputParamsError::unhandled)?;
          16  +
    /* ProtocolParserGenerator.kt:120 */
   12     17   
    let generic = generic_builder.build();
          18  +
    /* ProtocolParserGenerator.kt:185 */
   13     19   
    Err(crate::operation::simple_input_params::SimpleInputParamsError::generic(generic))
          20  +
    /* ProtocolParserGenerator.kt:99 */
   14     21   
}
   15     22   
          23  +
/* RustType.kt:516 */
   16     24   
#[allow(clippy::unnecessary_wraps)]
          25  +
/* ProtocolParserGenerator.kt:71 */
   17     26   
pub fn de_simple_input_params_http_response(
   18     27   
    _response_status: u16,
   19     28   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   20     29   
    _response_body: &[u8],
   21     30   
) -> std::result::Result<crate::operation::simple_input_params::SimpleInputParamsOutput, crate::operation::simple_input_params::SimpleInputParamsError>
   22     31   
{
          32  +
    /* ProtocolParserGenerator.kt:77 */
   23     33   
    Ok({
          34  +
        /* RustType.kt:516 */
   24     35   
        #[allow(unused_mut)]
          36  +
        /* ProtocolParserGenerator.kt:240 */
   25     37   
        let mut output = crate::operation::simple_input_params::builders::SimpleInputParamsOutputBuilder::default();
          38  +
        /* ClientBuilderInstantiator.kt:56 */
   26     39   
        output.build()
          40  +
        /* ProtocolParserGenerator.kt:77 */
   27     41   
    })
          42  +
    /* ProtocolParserGenerator.kt:71 */
   28     43   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_simple_input_params_input.rs

@@ -1,1 +67,119 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_simple_input_params_input_input_input(
    3      4   
    input: &crate::operation::simple_input_params::SimpleInputParamsInput,
    4      5   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* QuerySerializerGenerator.kt:144 */
    5      7   
    let mut out = String::new();
           8  +
    /* RustType.kt:516 */
    6      9   
    #[allow(unused_mut)]
          10  +
    /* QuerySerializerGenerator.kt:146 */
    7     11   
    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "SimpleInputParams", "2020-01-08");
          12  +
    /* RustType.kt:516 */
    8     13   
    #[allow(unused_mut)]
          14  +
    /* QuerySerializerGenerator.kt:279 */
    9     15   
    let mut scope_1 = writer.prefix("Foo");
          16  +
    /* QuerySerializerGenerator.kt:206 */
   10     17   
    if let Some(var_2) = &input.foo {
          18  +
        /* QuerySerializerGenerator.kt:230 */
   11     19   
        scope_1.string(var_2);
          20  +
        /* QuerySerializerGenerator.kt:206 */
   12     21   
    }
          22  +
    /* RustType.kt:516 */
   13     23   
    #[allow(unused_mut)]
          24  +
    /* QuerySerializerGenerator.kt:279 */
   14     25   
    let mut scope_3 = writer.prefix("Bar");
          26  +
    /* QuerySerializerGenerator.kt:206 */
   15     27   
    if let Some(var_4) = &input.bar {
          28  +
        /* QuerySerializerGenerator.kt:230 */
   16     29   
        scope_3.string(var_4);
          30  +
        /* QuerySerializerGenerator.kt:206 */
   17     31   
    }
          32  +
    /* RustType.kt:516 */
   18     33   
    #[allow(unused_mut)]
          34  +
    /* QuerySerializerGenerator.kt:279 */
   19     35   
    let mut scope_5 = writer.prefix("Baz");
          36  +
    /* QuerySerializerGenerator.kt:206 */
   20     37   
    if let Some(var_6) = &input.baz {
          38  +
        /* QuerySerializerGenerator.kt:233 */
   21     39   
        scope_5.boolean(*var_6);
          40  +
        /* QuerySerializerGenerator.kt:206 */
   22     41   
    }
          42  +
    /* RustType.kt:516 */
   23     43   
    #[allow(unused_mut)]
          44  +
    /* QuerySerializerGenerator.kt:279 */
   24     45   
    let mut scope_7 = writer.prefix("Bam");
          46  +
    /* QuerySerializerGenerator.kt:206 */
   25     47   
    if let Some(var_8) = &input.bam {
          48  +
        /* QuerySerializerGenerator.kt:242 */
   26     49   
        scope_7.number(
   27     50   
            #[allow(clippy::useless_conversion)]
   28     51   
            ::aws_smithy_types::Number::NegInt((*var_8).into()),
   29     52   
        );
          53  +
        /* QuerySerializerGenerator.kt:206 */
   30     54   
    }
          55  +
    /* RustType.kt:516 */
   31     56   
    #[allow(unused_mut)]
          57  +
    /* QuerySerializerGenerator.kt:279 */
   32     58   
    let mut scope_9 = writer.prefix("FloatValue");
          59  +
    /* QuerySerializerGenerator.kt:206 */
   33     60   
    if let Some(var_10) = &input.float_value {
          61  +
        /* QuerySerializerGenerator.kt:242 */
   34     62   
        scope_9.number(
   35     63   
            #[allow(clippy::useless_conversion)]
   36     64   
            ::aws_smithy_types::Number::Float((*var_10).into()),
   37     65   
        );
          66  +
        /* QuerySerializerGenerator.kt:206 */
   38     67   
    }
          68  +
    /* RustType.kt:516 */
   39     69   
    #[allow(unused_mut)]
          70  +
    /* QuerySerializerGenerator.kt:279 */
   40     71   
    let mut scope_11 = writer.prefix("Boo");
          72  +
    /* QuerySerializerGenerator.kt:206 */
   41     73   
    if let Some(var_12) = &input.boo {
          74  +
        /* QuerySerializerGenerator.kt:242 */
   42     75   
        scope_11.number(
   43     76   
            #[allow(clippy::useless_conversion)]
   44     77   
            ::aws_smithy_types::Number::Float((*var_12).into()),
   45     78   
        );
          79  +
        /* QuerySerializerGenerator.kt:206 */
   46     80   
    }
          81  +
    /* RustType.kt:516 */
   47     82   
    #[allow(unused_mut)]
          83  +
    /* QuerySerializerGenerator.kt:279 */
   48     84   
    let mut scope_13 = writer.prefix("Qux");
          85  +
    /* QuerySerializerGenerator.kt:206 */
   49     86   
    if let Some(var_14) = &input.qux {
          87  +
        /* QuerySerializerGenerator.kt:248 */
   50     88   
        scope_13.string(&::aws_smithy_types::base64::encode(var_14));
          89  +
        /* QuerySerializerGenerator.kt:206 */
   51     90   
    }
          91  +
    /* RustType.kt:516 */
   52     92   
    #[allow(unused_mut)]
          93  +
    /* QuerySerializerGenerator.kt:279 */
   53     94   
    let mut scope_15 = writer.prefix("FooEnum");
          95  +
    /* QuerySerializerGenerator.kt:206 */
   54     96   
    if let Some(var_16) = &input.foo_enum {
          97  +
        /* QuerySerializerGenerator.kt:229 */
   55     98   
        scope_15.string(var_16.as_str());
          99  +
        /* QuerySerializerGenerator.kt:206 */
   56    100   
    }
         101  +
    /* RustType.kt:516 */
   57    102   
    #[allow(unused_mut)]
         103  +
    /* QuerySerializerGenerator.kt:279 */
   58    104   
    let mut scope_17 = writer.prefix("IntegerEnum");
         105  +
    /* QuerySerializerGenerator.kt:206 */
   59    106   
    if let Some(var_18) = &input.integer_enum {
         107  +
        /* QuerySerializerGenerator.kt:242 */
   60    108   
        scope_17.number(
   61    109   
            #[allow(clippy::useless_conversion)]
   62    110   
            ::aws_smithy_types::Number::NegInt((*var_18).into()),
   63    111   
        );
         112  +
        /* QuerySerializerGenerator.kt:206 */
   64    113   
    }
         114  +
    /* QuerySerializerGenerator.kt:151 */
   65    115   
    writer.finish();
         116  +
    /* QuerySerializerGenerator.kt:152 */
   66    117   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
         118  +
    /* QuerySerializerGenerator.kt:134 */
   67    119   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_simple_scalar_xml_properties.rs

@@ -1,1 +223,249 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_simple_scalar_xml_properties_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<
    8     10   
    crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesOutput,
    9     11   
    crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
   10     12   
> {
          13  +
    /* RustType.kt:516 */
   11     14   
    #[allow(unused_mut)]
          15  +
    /* ProtocolParserGenerator.kt:106 */
   12     16   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   13     17   
        .map_err(crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::generic(
   16     22   
        generic,
   17     23   
    ))
          24  +
    /* ProtocolParserGenerator.kt:99 */
   18     25   
}
   19     26   
          27  +
/* RustType.kt:516 */
   20     28   
#[allow(clippy::unnecessary_wraps)]
          29  +
/* ProtocolParserGenerator.kt:71 */
   21     30   
pub fn de_simple_scalar_xml_properties_http_response(
   22     31   
    _response_status: u16,
   23     32   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   24     33   
    _response_body: &[u8],
   25     34   
) -> std::result::Result<
   26     35   
    crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesOutput,
   27     36   
    crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
   28     37   
> {
          38  +
    /* ProtocolParserGenerator.kt:77 */
   29     39   
    Ok({
          40  +
        /* RustType.kt:516 */
   30     41   
        #[allow(unused_mut)]
          42  +
        /* ProtocolParserGenerator.kt:240 */
   31     43   
        let mut output = crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder::default();
          44  +
        /* ProtocolParserGenerator.kt:247 */
   32     45   
        output = crate::protocol_serde::shape_simple_scalar_xml_properties::de_simple_scalar_xml_properties(_response_body, output)
   33     46   
            .map_err(crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::unhandled)?;
          47  +
        /* ClientBuilderInstantiator.kt:56 */
   34     48   
        output.build()
          49  +
        /* ProtocolParserGenerator.kt:77 */
   35     50   
    })
          51  +
    /* ProtocolParserGenerator.kt:71 */
   36     52   
}
   37     53   
          54  +
/* RustType.kt:516 */
   38     55   
#[allow(unused_mut)]
          56  +
/* XmlBindingTraitParserGenerator.kt:189 */
   39     57   
pub fn de_simple_scalar_xml_properties(
   40     58   
    inp: &[u8],
   41     59   
    mut builder: crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder,
   42     60   
) -> std::result::Result<
   43     61   
    crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder,
   44     62   
    ::aws_smithy_xml::decode::XmlDecodeError,
   45     63   
> {
          64  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   46     65   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   47     66   
   48     67   
    #[allow(unused_mut)]
   49     68   
    let mut decoder = doc.root_element()?;
   50     69   
    #[allow(unused_variables)]
   51     70   
    let start_el = decoder.start_el();
          71  +
    /* AwsQueryParserGenerator.kt:38 */
   52     72   
    if !(start_el.matches("SimpleScalarXmlPropertiesResponse")) {
   53     73   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   54     74   
            "invalid root, expected SimpleScalarXmlPropertiesResponse got {:?}",
   55     75   
            start_el
   56     76   
        )));
   57     77   
    }
   58     78   
    if let Some(mut result_tag) = decoder.next_tag() {
   59     79   
        let start_el = result_tag.start_el();
   60     80   
        if !(start_el.matches("SimpleScalarXmlPropertiesResult")) {
   61     81   
            return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   62     82   
                "invalid result, expected SimpleScalarXmlPropertiesResult got {:?}",
   63     83   
                start_el
   64     84   
            )));
   65     85   
        }
          86  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   66     87   
        while let Some(mut tag) = result_tag.next_tag() {
          88  +
            /* XmlBindingTraitParserGenerator.kt:353 */
   67     89   
            match tag.start_el() {
   68         -
            s if s.matches("stringValue") /* stringValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$stringValue */ =>  {
   69         -
                let var_1 =
   70         -
                    Some(
   71         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   72         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   73         -
                            .into()
   74         -
                        )
   75         -
                        ?
   76         -
                    )
   77         -
                ;
   78         -
                builder = builder.set_string_value(var_1);
   79         -
            }
          90  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringValue") /* stringValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$stringValue */ =>  {
          91  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          92  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          93  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          94  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          95  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
          96  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
          97  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          98  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          99  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         100  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_value(var_1);
         101  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   80    102   
            ,
   81         -
            s if s.matches("emptyStringValue") /* emptyStringValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$emptyStringValue */ =>  {
   82         -
                let var_2 =
   83         -
                    Some(
   84         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   85         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   86         -
                            .into()
   87         -
                        )
   88         -
                        ?
   89         -
                    )
   90         -
                ;
   91         -
                builder = builder.set_empty_string_value(var_2);
   92         -
            }
         103  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("emptyStringValue") /* emptyStringValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$emptyStringValue */ =>  {
         104  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_2 =
         105  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         106  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         107  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         108  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
         109  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
         110  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         111  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         112  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         113  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_empty_string_value(var_2);
         114  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   93    115   
            ,
   94         -
            s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$trueBooleanValue */ =>  {
   95         -
                let var_3 =
   96         -
                    Some(
   97         -
                         {
   98         -
                            <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   99         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  100         -
                            )
  101         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
  102         -
                        }
  103         -
                        ?
  104         -
                    )
  105         -
                ;
  106         -
                builder = builder.set_true_boolean_value(var_3);
  107         -
            }
         116  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$trueBooleanValue */ =>  {
         117  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_3 =
         118  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         119  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         120  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         121  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         122  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         123  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
         124  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         125  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         126  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         127  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         128  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_true_boolean_value(var_3);
         129  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  108    130   
            ,
  109         -
            s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$falseBooleanValue */ =>  {
  110         -
                let var_4 =
  111         -
                    Some(
  112         -
                         {
  113         -
                            <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  114         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  115         -
                            )
  116         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
  117         -
                        }
  118         -
                        ?
  119         -
                    )
  120         -
                ;
  121         -
                builder = builder.set_false_boolean_value(var_4);
  122         -
            }
         131  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$falseBooleanValue */ =>  {
         132  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_4 =
         133  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         134  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         135  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         136  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         137  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         138  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
         139  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         140  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         141  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         142  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         143  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_false_boolean_value(var_4);
         144  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  123    145   
            ,
  124         -
            s if s.matches("byteValue") /* byteValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$byteValue */ =>  {
  125         -
                let var_5 =
  126         -
                    Some(
  127         -
                         {
  128         -
                            <i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  129         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  130         -
                            )
  131         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
  132         -
                        }
  133         -
                        ?
  134         -
                    )
  135         -
                ;
  136         -
                builder = builder.set_byte_value(var_5);
  137         -
            }
         146  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("byteValue") /* byteValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$byteValue */ =>  {
         147  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_5 =
         148  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         149  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         150  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         151  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         152  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         153  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
         154  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         155  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         156  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         157  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         158  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_byte_value(var_5);
         159  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  138    160   
            ,
  139         -
            s if s.matches("shortValue") /* shortValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$shortValue */ =>  {
  140         -
                let var_6 =
  141         -
                    Some(
  142         -
                         {
  143         -
                            <i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  144         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  145         -
                            )
  146         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
  147         -
                        }
  148         -
                        ?
  149         -
                    )
  150         -
                ;
  151         -
                builder = builder.set_short_value(var_6);
  152         -
            }
         161  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("shortValue") /* shortValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$shortValue */ =>  {
         162  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_6 =
         163  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         164  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         165  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         166  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         167  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         168  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
         169  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         170  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         171  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         172  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         173  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_short_value(var_6);
         174  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  153    175   
            ,
  154         -
            s if s.matches("integerValue") /* integerValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$integerValue */ =>  {
  155         -
                let var_7 =
  156         -
                    Some(
  157         -
                         {
  158         -
                            <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  159         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  160         -
                            )
  161         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
  162         -
                        }
  163         -
                        ?
  164         -
                    )
  165         -
                ;
  166         -
                builder = builder.set_integer_value(var_7);
  167         -
            }
         176  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerValue") /* integerValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$integerValue */ =>  {
         177  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_7 =
         178  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         179  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         180  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         181  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         182  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         183  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
         184  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         185  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         186  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         187  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         188  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_integer_value(var_7);
         189  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  168    190   
            ,
  169         -
            s if s.matches("longValue") /* longValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$longValue */ =>  {
  170         -
                let var_8 =
  171         -
                    Some(
  172         -
                         {
  173         -
                            <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  174         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  175         -
                            )
  176         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
  177         -
                        }
  178         -
                        ?
  179         -
                    )
  180         -
                ;
  181         -
                builder = builder.set_long_value(var_8);
  182         -
            }
         191  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("longValue") /* longValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$longValue */ =>  {
         192  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_8 =
         193  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         194  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         195  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         196  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         197  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         198  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
         199  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         200  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         201  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         202  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         203  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_long_value(var_8);
         204  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  183    205   
            ,
  184         -
            s if s.matches("floatValue") /* floatValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$floatValue */ =>  {
  185         -
                let var_9 =
  186         -
                    Some(
  187         -
                         {
  188         -
                            <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  189         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  190         -
                            )
  191         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
  192         -
                        }
  193         -
                        ?
  194         -
                    )
  195         -
                ;
  196         -
                builder = builder.set_float_value(var_9);
  197         -
            }
         206  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("floatValue") /* floatValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$floatValue */ =>  {
         207  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_9 =
         208  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         209  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         210  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         211  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         212  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         213  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
         214  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         215  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         216  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         217  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         218  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_float_value(var_9);
         219  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  198    220   
            ,
  199         -
            s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$doubleValue */ =>  {
  200         -
                let var_10 =
  201         -
                    Some(
  202         -
                         {
  203         -
                            <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
  204         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  205         -
                            )
  206         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
  207         -
                        }
  208         -
                        ?
  209         -
                    )
  210         -
                ;
  211         -
                builder = builder.set_double_value(var_10);
  212         -
            }
         221  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.query.synthetic#SimpleScalarXmlPropertiesOutput$doubleValue */ =>  {
         222  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_10 =
         223  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         224  +
                        /* XmlBindingTraitParserGenerator.kt:676 */ {
         225  +
                            /* XmlBindingTraitParserGenerator.kt:677 */<f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
         226  +
                                /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         227  +
                            /* XmlBindingTraitParserGenerator.kt:677 */)
         228  +
                            /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
         229  +
                        /* XmlBindingTraitParserGenerator.kt:676 */}
         230  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         231  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         232  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         233  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_double_value(var_10);
         234  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  213    235   
            ,
  214         -
            _ => {}
  215         -
        }
         236  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
         237  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
         238  +
            /* XmlBindingTraitParserGenerator.kt:352 */
  216    239   
        }
         240  +
    /* AwsQueryParserGenerator.kt:52 */
  217    241   
    } else {
  218    242   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(
  219    243   
            "expected SimpleScalarXmlPropertiesResult tag",
  220    244   
        ));
  221    245   
    };
         246  +
    /* XmlBindingTraitParserGenerator.kt:213 */
  222    247   
    Ok(builder)
         248  +
    /* XmlBindingTraitParserGenerator.kt:189 */
  223    249   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_simple_scalar_xml_properties_input.rs

@@ -1,1 +11,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_simple_scalar_xml_properties_input_input_input(
    3      4   
    input: &crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesInput,
    4      5   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* QuerySerializerGenerator.kt:142 */
    5      7   
    let _ = input;
           8  +
    /* QuerySerializerGenerator.kt:144 */
    6      9   
    let mut out = String::new();
          10  +
    /* RustType.kt:516 */
    7     11   
    #[allow(unused_mut)]
          12  +
    /* QuerySerializerGenerator.kt:146 */
    8     13   
    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "SimpleScalarXmlProperties", "2020-01-08");
          14  +
    /* QuerySerializerGenerator.kt:151 */
    9     15   
    writer.finish();
          16  +
    /* QuerySerializerGenerator.kt:152 */
   10     17   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          18  +
    /* QuerySerializerGenerator.kt:134 */
   11     19   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_string_list.rs

@@ -1,1 +22,29 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_string_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:551 */
    5      7   
    let mut out = std::vec::Vec::new();
           8  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    6      9   
    while let Some(mut tag) = decoder.next_tag() {
          10  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    7     11   
        match tag.start_el() {
    8         -
            s if s.matches("member") /* member aws.protocoltests.shared#StringList$member */ =>  {
    9         -
                out.push(
   10         -
                    Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   11         -
                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   12         -
                        .into()
   13         -
                    )
   14         -
                    ?
   15         -
                );
   16         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#StringList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          15  +
                        /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          16  +
                        /* XmlBindingTraitParserGenerator.kt:748 */.into()
          17  +
                    /* XmlBindingTraitParserGenerator.kt:729 */)
          18  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          19  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          20  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   17     21   
            ,
   18         -
            _ => {}
   19         -
        }
          22  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          23  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          24  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   20     25   
    }
          26  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   21     27   
    Ok(out)
          28  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   22     29   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_string_set.rs

@@ -1,1 +22,29 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_string_set(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:551 */
    5      7   
    let mut out = std::vec::Vec::new();
           8  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    6      9   
    while let Some(mut tag) = decoder.next_tag() {
          10  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    7     11   
        match tag.start_el() {
    8         -
            s if s.matches("member") /* member aws.protocoltests.shared#StringSet$member */ =>  {
    9         -
                out.push(
   10         -
                    Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   11         -
                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   12         -
                        .into()
   13         -
                    )
   14         -
                    ?
   15         -
                );
   16         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#StringSet$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          15  +
                        /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          16  +
                        /* XmlBindingTraitParserGenerator.kt:748 */.into()
          17  +
                    /* XmlBindingTraitParserGenerator.kt:729 */)
          18  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          19  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          20  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   17     21   
            ,
   18         -
            _ => {}
   19         -
        }
          22  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          23  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          24  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   20     25   
    }
          26  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   21     27   
    Ok(out)
          28  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   22     29   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_struct_arg.rs

@@ -1,1 +23,42 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(unused_mut)]
           4  +
/* QuerySerializerGenerator.kt:177 */
    3      5   
pub fn ser_struct_arg(
    4      6   
    mut writer: ::aws_smithy_query::QueryValueWriter,
    5      7   
    input: &crate::types::StructArg,
    6      8   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           9  +
    /* RustType.kt:516 */
    7     10   
    #[allow(unused_mut)]
          11  +
    /* QuerySerializerGenerator.kt:279 */
    8     12   
    let mut scope_1 = writer.prefix("StringArg");
          13  +
    /* QuerySerializerGenerator.kt:206 */
    9     14   
    if let Some(var_2) = &input.string_arg {
          15  +
        /* QuerySerializerGenerator.kt:230 */
   10     16   
        scope_1.string(var_2);
          17  +
        /* QuerySerializerGenerator.kt:206 */
   11     18   
    }
          19  +
    /* RustType.kt:516 */
   12     20   
    #[allow(unused_mut)]
          21  +
    /* QuerySerializerGenerator.kt:279 */
   13     22   
    let mut scope_3 = writer.prefix("OtherArg");
          23  +
    /* QuerySerializerGenerator.kt:206 */
   14     24   
    if let Some(var_4) = &input.other_arg {
          25  +
        /* QuerySerializerGenerator.kt:233 */
   15     26   
        scope_3.boolean(*var_4);
          27  +
        /* QuerySerializerGenerator.kt:206 */
   16     28   
    }
          29  +
    /* RustType.kt:516 */
   17     30   
    #[allow(unused_mut)]
          31  +
    /* QuerySerializerGenerator.kt:279 */
   18     32   
    let mut scope_5 = writer.prefix("RecursiveArg");
          33  +
    /* QuerySerializerGenerator.kt:206 */
   19     34   
    if let Some(var_6) = &input.recursive_arg {
          35  +
        /* QuerySerializerGenerator.kt:187 */
   20     36   
        crate::protocol_serde::shape_struct_arg::ser_struct_arg(scope_5, var_6)?;
          37  +
        /* QuerySerializerGenerator.kt:206 */
   21     38   
    }
          39  +
    /* QuerySerializerGenerator.kt:183 */
   22     40   
    Ok(())
          41  +
    /* QuerySerializerGenerator.kt:177 */
   23     42   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_structure_list.rs

@@ -1,1 +19,26 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_structure_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<crate::types::StructureListMember>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:551 */
    5      7   
    let mut out = std::vec::Vec::new();
           8  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    6      9   
    while let Some(mut tag) = decoder.next_tag() {
          10  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    7     11   
        match tag.start_el() {
    8         -
            s if s.matches("item") /* member aws.protocoltests.query#StructureList$member */ =>  {
    9         -
                out.push(
   10         -
                    crate::protocol_serde::shape_structure_list_member::de_structure_list_member(&mut tag)
   11         -
                    ?
   12         -
                );
   13         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("item") /* member aws.protocoltests.query#StructureList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:536 */crate::protocol_serde::shape_structure_list_member::de_structure_list_member(&mut tag)
          15  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          16  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          17  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   14     18   
            ,
   15         -
            _ => {}
   16         -
        }
          19  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          20  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          21  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   17     22   
    }
          23  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   18     24   
    Ok(out)
          25  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   19     26   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_structure_list_member.rs

@@ -1,1 +40,49 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::needless_question_mark)]
           4  +
/* XmlBindingTraitParserGenerator.kt:510 */
    3      5   
pub fn de_structure_list_member(
    4      6   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5      7   
) -> ::std::result::Result<crate::types::StructureListMember, ::aws_smithy_xml::decode::XmlDecodeError> {
           8  +
    /* RustType.kt:516 */
    6      9   
    #[allow(unused_mut)]
          10  +
    /* XmlBindingTraitParserGenerator.kt:515 */
    7     11   
    let mut builder = crate::types::StructureListMember::builder();
          12  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    8     13   
    while let Some(mut tag) = decoder.next_tag() {
          14  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    9     15   
        match tag.start_el() {
   10         -
            s if s.matches("value") /* a aws.protocoltests.query#StructureListMember$a */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   14         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   15         -
                            .into()
   16         -
                        )
   17         -
                        ?
   18         -
                    )
   19         -
                ;
   20         -
                builder = builder.set_a(var_1);
   21         -
            }
          16  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("value") /* a aws.protocoltests.query#StructureListMember$a */ =>  {
          17  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          18  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          19  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          20  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          21  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
          22  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
          23  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          24  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          25  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          26  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_a(var_1);
          27  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   22     28   
            ,
   23         -
            s if s.matches("other") /* b aws.protocoltests.query#StructureListMember$b */ =>  {
   24         -
                let var_2 =
   25         -
                    Some(
   26         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   27         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   28         -
                            .into()
   29         -
                        )
   30         -
                        ?
   31         -
                    )
   32         -
                ;
   33         -
                builder = builder.set_b(var_2);
   34         -
            }
          29  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("other") /* b aws.protocoltests.query#StructureListMember$b */ =>  {
          30  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_2 =
          31  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          32  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          33  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          34  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
          35  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
          36  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          37  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          38  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          39  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_b(var_2);
          40  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   35     41   
            ,
   36         -
            _ => {}
   37         -
        }
          42  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          43  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          44  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   38     45   
    }
          46  +
    /* XmlBindingTraitParserGenerator.kt:533 */
   39     47   
    Ok(builder.build())
          48  +
    /* XmlBindingTraitParserGenerator.kt:510 */
   40     49   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_timestamp_list.rs

@@ -1,1 +23,30 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_timestamp_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::DateTime>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:551 */
    5      7   
    let mut out = std::vec::Vec::new();
           8  +
    /* XmlBindingTraitParserGenerator.kt:352 */
    6      9   
    while let Some(mut tag) = decoder.next_tag() {
          10  +
        /* XmlBindingTraitParserGenerator.kt:353 */
    7     11   
        match tag.start_el() {
    8         -
            s if s.matches("member") /* member aws.protocoltests.shared#TimestampList$member */ =>  {
    9         -
                out.push(
   10         -
                    ::aws_smithy_types::DateTime::from_str(
   11         -
                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   12         -
                        , ::aws_smithy_types::date_time::Format::DateTimeWithOffset
   13         -
                    )
   14         -
                    .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `smithy.api#Timestamp`)"))
   15         -
                    ?
   16         -
                );
   17         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#TimestampList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:701 */::aws_smithy_types::DateTime::from_str(
          15  +
                        /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          16  +
                        /* XmlBindingTraitParserGenerator.kt:703 */, ::aws_smithy_types::date_time::Format::DateTimeWithOffset
          17  +
                    /* XmlBindingTraitParserGenerator.kt:701 */)
          18  +
                    /* XmlBindingTraitParserGenerator.kt:705 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `smithy.api#Timestamp`)"))
          19  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          20  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          21  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   18     22   
            ,
   19         -
            _ => {}
   20         -
        }
          23  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          24  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          25  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   21     26   
    }
          27  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   22     28   
    Ok(out)
          29  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   23     30   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_xml_blobs.rs

@@ -1,1 +77,103 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_xml_blobs_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<crate::operation::xml_blobs::XmlBlobsOutput, crate::operation::xml_blobs::XmlBlobsError> {
          10  +
    /* RustType.kt:516 */
    8     11   
    #[allow(unused_mut)]
          12  +
    /* ProtocolParserGenerator.kt:106 */
    9     13   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10     14   
        .map_err(crate::operation::xml_blobs::XmlBlobsError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::xml_blobs::XmlBlobsError::generic(generic))
          19  +
    /* ProtocolParserGenerator.kt:99 */
   13     20   
}
   14     21   
          22  +
/* RustType.kt:516 */
   15     23   
#[allow(clippy::unnecessary_wraps)]
          24  +
/* ProtocolParserGenerator.kt:71 */
   16     25   
pub fn de_xml_blobs_http_response(
   17     26   
    _response_status: u16,
   18     27   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   19     28   
    _response_body: &[u8],
   20     29   
) -> std::result::Result<crate::operation::xml_blobs::XmlBlobsOutput, crate::operation::xml_blobs::XmlBlobsError> {
          30  +
    /* ProtocolParserGenerator.kt:77 */
   21     31   
    Ok({
          32  +
        /* RustType.kt:516 */
   22     33   
        #[allow(unused_mut)]
          34  +
        /* ProtocolParserGenerator.kt:240 */
   23     35   
        let mut output = crate::operation::xml_blobs::builders::XmlBlobsOutputBuilder::default();
          36  +
        /* ProtocolParserGenerator.kt:247 */
   24     37   
        output = crate::protocol_serde::shape_xml_blobs::de_xml_blobs(_response_body, output)
   25     38   
            .map_err(crate::operation::xml_blobs::XmlBlobsError::unhandled)?;
          39  +
        /* ClientBuilderInstantiator.kt:56 */
   26     40   
        output.build()
          41  +
        /* ProtocolParserGenerator.kt:77 */
   27     42   
    })
          43  +
    /* ProtocolParserGenerator.kt:71 */
   28     44   
}
   29     45   
          46  +
/* RustType.kt:516 */
   30     47   
#[allow(unused_mut)]
          48  +
/* XmlBindingTraitParserGenerator.kt:189 */
   31     49   
pub fn de_xml_blobs(
   32     50   
    inp: &[u8],
   33     51   
    mut builder: crate::operation::xml_blobs::builders::XmlBlobsOutputBuilder,
   34     52   
) -> std::result::Result<crate::operation::xml_blobs::builders::XmlBlobsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
          53  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   35     54   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   36     55   
   37     56   
    #[allow(unused_mut)]
   38     57   
    let mut decoder = doc.root_element()?;
   39     58   
    #[allow(unused_variables)]
   40     59   
    let start_el = decoder.start_el();
          60  +
    /* AwsQueryParserGenerator.kt:38 */
   41     61   
    if !(start_el.matches("XmlBlobsResponse")) {
   42     62   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   43     63   
            "invalid root, expected XmlBlobsResponse got {:?}",
   44     64   
            start_el
   45     65   
        )));
   46     66   
    }
   47     67   
    if let Some(mut result_tag) = decoder.next_tag() {
   48     68   
        let start_el = result_tag.start_el();
   49     69   
        if !(start_el.matches("XmlBlobsResult")) {
   50     70   
            return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   51     71   
                "invalid result, expected XmlBlobsResult got {:?}",
   52     72   
                start_el
   53     73   
            )));
   54     74   
        }
          75  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   55     76   
        while let Some(mut tag) = result_tag.next_tag() {
          77  +
            /* XmlBindingTraitParserGenerator.kt:353 */
   56     78   
            match tag.start_el() {
   57         -
            s if s.matches("data") /* data aws.protocoltests.query.synthetic#XmlBlobsOutput$data */ =>  {
   58         -
                let var_1 =
   59         -
                    Some(
   60         -
                        ::aws_smithy_types::base64::decode(
   61         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   62         -
                        )
   63         -
                        .map_err(|err|::aws_smithy_xml::decode::XmlDecodeError::custom(format!("invalid base64: {:?}", err))).map(::aws_smithy_types::Blob::new)
   64         -
                        ?
   65         -
                    )
   66         -
                ;
   67         -
                builder = builder.set_data(var_1);
   68         -
            }
          79  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("data") /* data aws.protocoltests.query.synthetic#XmlBlobsOutput$data */ =>  {
          80  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          81  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          82  +
                        /* XmlBindingTraitParserGenerator.kt:712 */::aws_smithy_types::base64::decode(
          83  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          84  +
                        /* XmlBindingTraitParserGenerator.kt:712 */)
          85  +
                        /* XmlBindingTraitParserGenerator.kt:715 */.map_err(|err|::aws_smithy_xml::decode::XmlDecodeError::custom(format!("invalid base64: {:?}", err))).map(::aws_smithy_types::Blob::new)
          86  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          87  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          88  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          89  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_data(var_1);
          90  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   69     91   
            ,
   70         -
            _ => {}
   71         -
        }
          92  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          93  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          94  +
            /* XmlBindingTraitParserGenerator.kt:352 */
   72     95   
        }
          96  +
    /* AwsQueryParserGenerator.kt:52 */
   73     97   
    } else {
   74     98   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("expected XmlBlobsResult tag"));
   75     99   
    };
         100  +
    /* XmlBindingTraitParserGenerator.kt:213 */
   76    101   
    Ok(builder)
         102  +
    /* XmlBindingTraitParserGenerator.kt:189 */
   77    103   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_xml_blobs_input.rs

@@ -1,1 +11,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_xml_blobs_input_input_input(
    3      4   
    input: &crate::operation::xml_blobs::XmlBlobsInput,
    4      5   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* QuerySerializerGenerator.kt:142 */
    5      7   
    let _ = input;
           8  +
    /* QuerySerializerGenerator.kt:144 */
    6      9   
    let mut out = String::new();
          10  +
    /* RustType.kt:516 */
    7     11   
    #[allow(unused_mut)]
          12  +
    /* QuerySerializerGenerator.kt:146 */
    8     13   
    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "XmlBlobs", "2020-01-08");
          14  +
    /* QuerySerializerGenerator.kt:151 */
    9     15   
    writer.finish();
          16  +
    /* QuerySerializerGenerator.kt:152 */
   10     17   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          18  +
    /* QuerySerializerGenerator.kt:134 */
   11     19   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_xml_empty_blobs.rs

@@ -1,1 +77,103 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_xml_empty_blobs_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<crate::operation::xml_empty_blobs::XmlEmptyBlobsOutput, crate::operation::xml_empty_blobs::XmlEmptyBlobsError> {
          10  +
    /* RustType.kt:516 */
    8     11   
    #[allow(unused_mut)]
          12  +
    /* ProtocolParserGenerator.kt:106 */
    9     13   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10     14   
        .map_err(crate::operation::xml_empty_blobs::XmlEmptyBlobsError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::xml_empty_blobs::XmlEmptyBlobsError::generic(generic))
          19  +
    /* ProtocolParserGenerator.kt:99 */
   13     20   
}
   14     21   
          22  +
/* RustType.kt:516 */
   15     23   
#[allow(clippy::unnecessary_wraps)]
          24  +
/* ProtocolParserGenerator.kt:71 */
   16     25   
pub fn de_xml_empty_blobs_http_response(
   17     26   
    _response_status: u16,
   18     27   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   19     28   
    _response_body: &[u8],
   20     29   
) -> std::result::Result<crate::operation::xml_empty_blobs::XmlEmptyBlobsOutput, crate::operation::xml_empty_blobs::XmlEmptyBlobsError> {
          30  +
    /* ProtocolParserGenerator.kt:77 */
   21     31   
    Ok({
          32  +
        /* RustType.kt:516 */
   22     33   
        #[allow(unused_mut)]
          34  +
        /* ProtocolParserGenerator.kt:240 */
   23     35   
        let mut output = crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsOutputBuilder::default();
          36  +
        /* ProtocolParserGenerator.kt:247 */
   24     37   
        output = crate::protocol_serde::shape_xml_empty_blobs::de_xml_empty_blobs(_response_body, output)
   25     38   
            .map_err(crate::operation::xml_empty_blobs::XmlEmptyBlobsError::unhandled)?;
          39  +
        /* ClientBuilderInstantiator.kt:56 */
   26     40   
        output.build()
          41  +
        /* ProtocolParserGenerator.kt:77 */
   27     42   
    })
          43  +
    /* ProtocolParserGenerator.kt:71 */
   28     44   
}
   29     45   
          46  +
/* RustType.kt:516 */
   30     47   
#[allow(unused_mut)]
          48  +
/* XmlBindingTraitParserGenerator.kt:189 */
   31     49   
pub fn de_xml_empty_blobs(
   32     50   
    inp: &[u8],
   33     51   
    mut builder: crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsOutputBuilder,
   34     52   
) -> std::result::Result<crate::operation::xml_empty_blobs::builders::XmlEmptyBlobsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
          53  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   35     54   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   36     55   
   37     56   
    #[allow(unused_mut)]
   38     57   
    let mut decoder = doc.root_element()?;
   39     58   
    #[allow(unused_variables)]
   40     59   
    let start_el = decoder.start_el();
          60  +
    /* AwsQueryParserGenerator.kt:38 */
   41     61   
    if !(start_el.matches("XmlEmptyBlobsResponse")) {
   42     62   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   43     63   
            "invalid root, expected XmlEmptyBlobsResponse got {:?}",
   44     64   
            start_el
   45     65   
        )));
   46     66   
    }
   47     67   
    if let Some(mut result_tag) = decoder.next_tag() {
   48     68   
        let start_el = result_tag.start_el();
   49     69   
        if !(start_el.matches("XmlEmptyBlobsResult")) {
   50     70   
            return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   51     71   
                "invalid result, expected XmlEmptyBlobsResult got {:?}",
   52     72   
                start_el
   53     73   
            )));
   54     74   
        }
          75  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   55     76   
        while let Some(mut tag) = result_tag.next_tag() {
          77  +
            /* XmlBindingTraitParserGenerator.kt:353 */
   56     78   
            match tag.start_el() {
   57         -
            s if s.matches("data") /* data aws.protocoltests.query.synthetic#XmlEmptyBlobsOutput$data */ =>  {
   58         -
                let var_1 =
   59         -
                    Some(
   60         -
                        ::aws_smithy_types::base64::decode(
   61         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   62         -
                        )
   63         -
                        .map_err(|err|::aws_smithy_xml::decode::XmlDecodeError::custom(format!("invalid base64: {:?}", err))).map(::aws_smithy_types::Blob::new)
   64         -
                        ?
   65         -
                    )
   66         -
                ;
   67         -
                builder = builder.set_data(var_1);
   68         -
            }
          79  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("data") /* data aws.protocoltests.query.synthetic#XmlEmptyBlobsOutput$data */ =>  {
          80  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          81  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          82  +
                        /* XmlBindingTraitParserGenerator.kt:712 */::aws_smithy_types::base64::decode(
          83  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          84  +
                        /* XmlBindingTraitParserGenerator.kt:712 */)
          85  +
                        /* XmlBindingTraitParserGenerator.kt:715 */.map_err(|err|::aws_smithy_xml::decode::XmlDecodeError::custom(format!("invalid base64: {:?}", err))).map(::aws_smithy_types::Blob::new)
          86  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          87  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          88  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          89  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_data(var_1);
          90  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   69     91   
            ,
   70         -
            _ => {}
   71         -
        }
          92  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          93  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          94  +
            /* XmlBindingTraitParserGenerator.kt:352 */
   72     95   
        }
          96  +
    /* AwsQueryParserGenerator.kt:52 */
   73     97   
    } else {
   74     98   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("expected XmlEmptyBlobsResult tag"));
   75     99   
    };
         100  +
    /* XmlBindingTraitParserGenerator.kt:213 */
   76    101   
    Ok(builder)
         102  +
    /* XmlBindingTraitParserGenerator.kt:189 */
   77    103   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_xml_empty_blobs_input.rs

@@ -1,1 +11,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_xml_empty_blobs_input_input_input(
    3      4   
    input: &crate::operation::xml_empty_blobs::XmlEmptyBlobsInput,
    4      5   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
           6  +
    /* QuerySerializerGenerator.kt:142 */
    5      7   
    let _ = input;
           8  +
    /* QuerySerializerGenerator.kt:144 */
    6      9   
    let mut out = String::new();
          10  +
    /* RustType.kt:516 */
    7     11   
    #[allow(unused_mut)]
          12  +
    /* QuerySerializerGenerator.kt:146 */
    8     13   
    let mut writer = ::aws_smithy_query::QueryWriter::new(&mut out, "XmlEmptyBlobs", "2020-01-08");
          14  +
    /* QuerySerializerGenerator.kt:151 */
    9     15   
    writer.finish();
          16  +
    /* QuerySerializerGenerator.kt:152 */
   10     17   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          18  +
    /* QuerySerializerGenerator.kt:134 */
   11     19   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_xml_empty_lists.rs

@@ -1,1 +244,270 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:516 */
    2      3   
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ProtocolParserGenerator.kt:99 */
    3      5   
pub fn de_xml_empty_lists_http_error(
    4      6   
    _response_status: u16,
    5      7   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6      8   
    _response_body: &[u8],
    7      9   
) -> std::result::Result<crate::operation::xml_empty_lists::XmlEmptyListsOutput, crate::operation::xml_empty_lists::XmlEmptyListsError> {
          10  +
    /* RustType.kt:516 */
    8     11   
    #[allow(unused_mut)]
          12  +
    /* ProtocolParserGenerator.kt:106 */
    9     13   
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   10     14   
        .map_err(crate::operation::xml_empty_lists::XmlEmptyListsError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::xml_empty_lists::XmlEmptyListsError::generic(generic))
          19  +
    /* ProtocolParserGenerator.kt:99 */
   13     20   
}
   14     21   
          22  +
/* RustType.kt:516 */
   15     23   
#[allow(clippy::unnecessary_wraps)]
          24  +
/* ProtocolParserGenerator.kt:71 */
   16     25   
pub fn de_xml_empty_lists_http_response(
   17     26   
    _response_status: u16,
   18     27   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   19     28   
    _response_body: &[u8],
   20     29   
) -> std::result::Result<crate::operation::xml_empty_lists::XmlEmptyListsOutput, crate::operation::xml_empty_lists::XmlEmptyListsError> {
          30  +
    /* ProtocolParserGenerator.kt:77 */
   21     31   
    Ok({
          32  +
        /* RustType.kt:516 */
   22     33   
        #[allow(unused_mut)]
          34  +
        /* ProtocolParserGenerator.kt:240 */
   23     35   
        let mut output = crate::operation::xml_empty_lists::builders::XmlEmptyListsOutputBuilder::default();
          36  +
        /* ProtocolParserGenerator.kt:247 */
   24     37   
        output = crate::protocol_serde::shape_xml_empty_lists::de_xml_empty_lists(_response_body, output)
   25     38   
            .map_err(crate::operation::xml_empty_lists::XmlEmptyListsError::unhandled)?;
          39  +
        /* ClientBuilderInstantiator.kt:56 */
   26     40   
        output.build()
          41  +
        /* ProtocolParserGenerator.kt:77 */
   27     42   
    })
          43  +
    /* ProtocolParserGenerator.kt:71 */
   28     44   
}
   29     45   
          46  +
/* RustType.kt:516 */
   30     47   
#[allow(unused_mut)]
          48  +
/* XmlBindingTraitParserGenerator.kt:189 */
   31     49   
pub fn de_xml_empty_lists(
   32     50   
    inp: &[u8],
   33     51   
    mut builder: crate::operation::xml_empty_lists::builders::XmlEmptyListsOutputBuilder,
   34     52   
) -> std::result::Result<crate::operation::xml_empty_lists::builders::XmlEmptyListsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
          53  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   35     54   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   36     55   
   37     56   
    #[allow(unused_mut)]
   38     57   
    let mut decoder = doc.root_element()?;
   39     58   
    #[allow(unused_variables)]
   40     59   
    let start_el = decoder.start_el();
          60  +
    /* AwsQueryParserGenerator.kt:38 */
   41     61   
    if !(start_el.matches("XmlEmptyListsResponse")) {
   42     62   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   43     63   
            "invalid root, expected XmlEmptyListsResponse got {:?}",
   44     64   
            start_el
   45     65   
        )));
   46     66   
    }
   47     67   
    if let Some(mut result_tag) = decoder.next_tag() {
   48     68   
        let start_el = result_tag.start_el();
   49     69   
        if !(start_el.matches("XmlEmptyListsResult")) {
   50     70   
            return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   51     71   
                "invalid result, expected XmlEmptyListsResult got {:?}",
   52     72   
                start_el
   53     73   
            )));
   54     74   
        }
          75  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   55     76   
        while let Some(mut tag) = result_tag.next_tag() {
          77  +
            /* XmlBindingTraitParserGenerator.kt:353 */
   56     78   
            match tag.start_el() {
   57         -
            s if s.matches("stringList") /* stringList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$stringList */ =>  {
   58         -
                let var_1 =
   59         -
                    Some(
   60         -
                        crate::protocol_serde::shape_string_list::de_string_list(&mut tag)
   61         -
                        ?
   62         -
                    )
   63         -
                ;
   64         -
                builder = builder.set_string_list(var_1);
   65         -
            }
          79  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringList") /* stringList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$stringList */ =>  {
          80  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          81  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          82  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_string_list::de_string_list(&mut tag)
          83  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          84  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          85  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          86  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_list(var_1);
          87  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   66     88   
            ,
   67         -
            s if s.matches("stringSet") /* stringSet aws.protocoltests.query.synthetic#XmlEmptyListsOutput$stringSet */ =>  {
   68         -
                let var_2 =
   69         -
                    Some(
   70         -
                        crate::protocol_serde::shape_string_set::de_string_set(&mut tag)
   71         -
                        ?
   72         -
                    )
   73         -
                ;
   74         -
                builder = builder.set_string_set(var_2);
   75         -
            }
          89  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringSet") /* stringSet aws.protocoltests.query.synthetic#XmlEmptyListsOutput$stringSet */ =>  {
          90  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_2 =
          91  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          92  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_string_set::de_string_set(&mut tag)
          93  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          94  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          95  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          96  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_set(var_2);
          97  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   76     98   
            ,
   77         -
            s if s.matches("integerList") /* integerList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$integerList */ =>  {
   78         -
                let var_3 =
   79         -
                    Some(
   80         -
                        crate::protocol_serde::shape_integer_list::de_integer_list(&mut tag)
   81         -
                        ?
   82         -
                    )
   83         -
                ;
   84         -
                builder = builder.set_integer_list(var_3);
   85         -
            }
          99  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerList") /* integerList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$integerList */ =>  {
         100  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_3 =
         101  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         102  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_integer_list::de_integer_list(&mut tag)
         103  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         104  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         105  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         106  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_integer_list(var_3);
         107  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   86    108   
            ,
   87         -
            s if s.matches("booleanList") /* booleanList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$booleanList */ =>  {
   88         -
                let var_4 =
   89         -
                    Some(
   90         -
                        crate::protocol_serde::shape_boolean_list::de_boolean_list(&mut tag)
   91         -
                        ?
   92         -
                    )
   93         -
                ;
   94         -
                builder = builder.set_boolean_list(var_4);
   95         -
            }
         109  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("booleanList") /* booleanList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$booleanList */ =>  {
         110  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_4 =
         111  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         112  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_boolean_list::de_boolean_list(&mut tag)
         113  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         114  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         115  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         116  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_boolean_list(var_4);
         117  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   96    118   
            ,
   97         -
            s if s.matches("timestampList") /* timestampList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$timestampList */ =>  {
   98         -
                let var_5 =
   99         -
                    Some(
  100         -
                        crate::protocol_serde::shape_timestamp_list::de_timestamp_list(&mut tag)
  101         -
                        ?
  102         -
                    )
  103         -
                ;
  104         -
                builder = builder.set_timestamp_list(var_5);
  105         -
            }
         119  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("timestampList") /* timestampList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$timestampList */ =>  {
         120  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_5 =
         121  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         122  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_timestamp_list::de_timestamp_list(&mut tag)
         123  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         124  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         125  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         126  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_timestamp_list(var_5);
         127  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  106    128   
            ,
  107         -
            s if s.matches("enumList") /* enumList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$enumList */ =>  {
  108         -
                let var_6 =
  109         -
                    Some(
  110         -
                        crate::protocol_serde::shape_foo_enum_list::de_foo_enum_list(&mut tag)
  111         -
                        ?
  112         -
                    )
  113         -
                ;
  114         -
                builder = builder.set_enum_list(var_6);
  115         -
            }
         129  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("enumList") /* enumList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$enumList */ =>  {
         130  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_6 =
         131  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         132  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_foo_enum_list::de_foo_enum_list(&mut tag)
         133  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         134  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         135  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         136  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_enum_list(var_6);
         137  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  116    138   
            ,
  117         -
            s if s.matches("intEnumList") /* intEnumList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$intEnumList */ =>  {
  118         -
                let var_7 =
  119         -
                    Some(
  120         -
                        crate::protocol_serde::shape_integer_enum_list::de_integer_enum_list(&mut tag)
  121         -
                        ?
  122         -
                    )
  123         -
                ;
  124         -
                builder = builder.set_int_enum_list(var_7);
  125         -
            }
         139  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("intEnumList") /* intEnumList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$intEnumList */ =>  {
         140  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_7 =
         141  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         142  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_integer_enum_list::de_integer_enum_list(&mut tag)
         143  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         144  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         145  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         146  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_int_enum_list(var_7);
         147  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  126    148   
            ,
  127         -
            s if s.matches("nestedStringList") /* nestedStringList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$nestedStringList */ =>  {
  128         -
                let var_8 =
  129         -
                    Some(
  130         -
                        crate::protocol_serde::shape_nested_string_list::de_nested_string_list(&mut tag)
  131         -
                        ?
  132         -
                    )
  133         -
                ;
  134         -
                builder = builder.set_nested_string_list(var_8);
  135         -
            }
         149  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("nestedStringList") /* nestedStringList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$nestedStringList */ =>  {
         150  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_8 =
         151  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         152  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_nested_string_list::de_nested_string_list(&mut tag)
         153  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         154  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         155  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         156  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_nested_string_list(var_8);
         157  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  136    158   
            ,
  137         -
            s if s.matches("renamed") /* renamedListMembers aws.protocoltests.query.synthetic#XmlEmptyListsOutput$renamedListMembers */ =>  {
  138         -
                let var_9 =
  139         -
                    Some(
  140         -
                        crate::protocol_serde::shape_renamed_list_members::de_renamed_list_members(&mut tag)
  141         -
                        ?
  142         -
                    )
  143         -
                ;
  144         -
                builder = builder.set_renamed_list_members(var_9);
  145         -
            }
         159  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("renamed") /* renamedListMembers aws.protocoltests.query.synthetic#XmlEmptyListsOutput$renamedListMembers */ =>  {
         160  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_9 =
         161  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         162  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_renamed_list_members::de_renamed_list_members(&mut tag)
         163  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         164  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         165  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         166  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_renamed_list_members(var_9);
         167  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  146    168   
            ,
  147         -
            s if s.matches("flattenedList") /* flattenedList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedList */ =>  {
  148         -
                let var_10 =
  149         -
                    Some(
  150         -
                        Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
  151         -
                            let mut list_11 = builder.flattened_list.take().unwrap_or_default();
  152         -
                            list_11.push(
  153         -
                                Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
  154         -
                                    ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  155         -
                                    .into()
  156         -
                                )
  157         -
                                ?
  158         -
                            );
  159         -
                            list_11
  160         -
                        })
  161         -
                        ?
  162         -
                    )
  163         -
                ;
  164         -
                builder = builder.set_flattened_list(var_10);
  165         -
            }
         169  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("flattenedList") /* flattenedList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedList */ =>  {
         170  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_10 =
         171  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         172  +
                        /* XmlBindingTraitParserGenerator.kt:570 */Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
         173  +
                            /* XmlBindingTraitParserGenerator.kt:572 */let mut list_11 = builder.flattened_list.take().unwrap_or_default();
         174  +
                            /* XmlBindingTraitParserGenerator.kt:573 */list_11.push(
         175  +
                                /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         176  +
                                    /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         177  +
                                    /* XmlBindingTraitParserGenerator.kt:748 */.into()
         178  +
                                /* XmlBindingTraitParserGenerator.kt:729 */)
         179  +
                                /* XmlBindingTraitParserGenerator.kt:402 */?
         180  +
                            /* XmlBindingTraitParserGenerator.kt:573 */);
         181  +
                            /* XmlBindingTraitParserGenerator.kt:576 */list_11
         182  +
                        /* XmlBindingTraitParserGenerator.kt:570 */})
         183  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         184  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         185  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         186  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_flattened_list(var_10);
         187  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  166    188   
            ,
  167         -
            s if s.matches("customName") /* flattenedList2 aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedList2 */ =>  {
  168         -
                let var_12 =
  169         -
                    Some(
  170         -
                        Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
  171         -
                            let mut list_13 = builder.flattened_list2.take().unwrap_or_default();
  172         -
                            list_13.push(
  173         -
                                Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
  174         -
                                    ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  175         -
                                    .into()
  176         -
                                )
  177         -
                                ?
  178         -
                            );
  179         -
                            list_13
  180         -
                        })
  181         -
                        ?
  182         -
                    )
  183         -
                ;
  184         -
                builder = builder.set_flattened_list2(var_12);
  185         -
            }
         189  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("customName") /* flattenedList2 aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedList2 */ =>  {
         190  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_12 =
         191  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         192  +
                        /* XmlBindingTraitParserGenerator.kt:570 */Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
         193  +
                            /* XmlBindingTraitParserGenerator.kt:572 */let mut list_13 = builder.flattened_list2.take().unwrap_or_default();
         194  +
                            /* XmlBindingTraitParserGenerator.kt:573 */list_13.push(
         195  +
                                /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         196  +
                                    /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         197  +
                                    /* XmlBindingTraitParserGenerator.kt:748 */.into()
         198  +
                                /* XmlBindingTraitParserGenerator.kt:729 */)
         199  +
                                /* XmlBindingTraitParserGenerator.kt:402 */?
         200  +
                            /* XmlBindingTraitParserGenerator.kt:573 */);
         201  +
                            /* XmlBindingTraitParserGenerator.kt:576 */list_13
         202  +
                        /* XmlBindingTraitParserGenerator.kt:570 */})
         203  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         204  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         205  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         206  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_flattened_list2(var_12);
         207  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  186    208   
            ,
  187         -
            s if s.matches("flattenedListWithMemberNamespace") /* flattenedListWithMemberNamespace aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedListWithMemberNamespace */ =>  {
  188         -
                let var_14 =
  189         -
                    Some(
  190         -
                        Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
  191         -
                            let mut list_15 = builder.flattened_list_with_member_namespace.take().unwrap_or_default();
  192         -
                            list_15.push(
  193         -
                                Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
  194         -
                                    ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  195         -
                                    .into()
  196         -
                                )
  197         -
                                ?
  198         -
                            );
  199         -
                            list_15
  200         -
                        })
  201         -
                        ?
  202         -
                    )
  203         -
                ;
  204         -
                builder = builder.set_flattened_list_with_member_namespace(var_14);
  205         -
            }
         209  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("flattenedListWithMemberNamespace") /* flattenedListWithMemberNamespace aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedListWithMemberNamespace */ =>  {
         210  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_14 =
         211  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         212  +
                        /* XmlBindingTraitParserGenerator.kt:570 */Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
         213  +
                            /* XmlBindingTraitParserGenerator.kt:572 */let mut list_15 = builder.flattened_list_with_member_namespace.take().unwrap_or_default();
         214  +
                            /* XmlBindingTraitParserGenerator.kt:573 */list_15.push(
         215  +
                                /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         216  +
                                    /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         217  +
                                    /* XmlBindingTraitParserGenerator.kt:748 */.into()
         218  +
                                /* XmlBindingTraitParserGenerator.kt:729 */)
         219  +
                                /* XmlBindingTraitParserGenerator.kt:402 */?
         220  +
                            /* XmlBindingTraitParserGenerator.kt:573 */);
         221  +
                            /* XmlBindingTraitParserGenerator.kt:576 */list_15
         222  +
                        /* XmlBindingTraitParserGenerator.kt:570 */})
         223  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         224  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         225  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         226  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_flattened_list_with_member_namespace(var_14);
         227  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  206    228   
            ,
  207         -
            s if s.matches("flattenedListWithNamespace") /* flattenedListWithNamespace aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedListWithNamespace */ =>  {
  208         -
                let var_16 =
  209         -
                    Some(
  210         -
                        Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
  211         -
                            let mut list_17 = builder.flattened_list_with_namespace.take().unwrap_or_default();
  212         -
                            list_17.push(
  213         -
                                Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
  214         -
                                    ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
  215         -
                                    .into()
  216         -
                                )
  217         -
                                ?
  218         -
                            );
  219         -
                            list_17
  220         -
                        })
  221         -
                        ?
  222         -
                    )
  223         -
                ;
  224         -
                builder = builder.set_flattened_list_with_namespace(var_16);
  225         -
            }
         229  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("flattenedListWithNamespace") /* flattenedListWithNamespace aws.protocoltests.query.synthetic#XmlEmptyListsOutput$flattenedListWithNamespace */ =>  {
         230  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_16 =
         231  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         232  +
                        /* XmlBindingTraitParserGenerator.kt:570 */Result::<::std::vec::Vec::<::std::string::String>, ::aws_smithy_xml::decode::XmlDecodeError>::Ok({
         233  +
                            /* XmlBindingTraitParserGenerator.kt:572 */let mut list_17 = builder.flattened_list_with_namespace.take().unwrap_or_default();
         234  +
                            /* XmlBindingTraitParserGenerator.kt:573 */list_17.push(
         235  +
                                /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
         236  +
                                    /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
         237  +
                                    /* XmlBindingTraitParserGenerator.kt:748 */.into()
         238  +
                                /* XmlBindingTraitParserGenerator.kt:729 */)
         239  +
                                /* XmlBindingTraitParserGenerator.kt:402 */?
         240  +
                            /* XmlBindingTraitParserGenerator.kt:573 */);
         241  +
                            /* XmlBindingTraitParserGenerator.kt:576 */list_17
         242  +
                        /* XmlBindingTraitParserGenerator.kt:570 */})
         243  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         244  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         245  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         246  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_flattened_list_with_namespace(var_16);
         247  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  226    248   
            ,
  227         -
            s if s.matches("myStructureList") /* structureList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$structureList */ =>  {
  228         -
                let var_18 =
  229         -
                    Some(
  230         -
                        crate::protocol_serde::shape_structure_list::de_structure_list(&mut tag)
  231         -
                        ?
  232         -
                    )
  233         -
                ;
  234         -
                builder = builder.set_structure_list(var_18);
  235         -
            }
         249  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("myStructureList") /* structureList aws.protocoltests.query.synthetic#XmlEmptyListsOutput$structureList */ =>  {
         250  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_18 =
         251  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
         252  +
                        /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_structure_list::de_structure_list(&mut tag)
         253  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
         254  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
         255  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
         256  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_structure_list(var_18);
         257  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
  236    258   
            ,
  237         -
            _ => {}
  238         -
        }
         259  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
         260  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
         261  +
            /* XmlBindingTraitParserGenerator.kt:352 */
  239    262   
        }
         263  +
    /* AwsQueryParserGenerator.kt:52 */
  240    264   
    } else {
  241    265   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("expected XmlEmptyListsResult tag"));
  242    266   
    };
         267  +
    /* XmlBindingTraitParserGenerator.kt:213 */
  243    268   
    Ok(builder)
         269  +
    /* XmlBindingTraitParserGenerator.kt:189 */
  244    270   
}