Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

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

@@ -1,1 +32,47 @@
    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_host_with_path_operation_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::host_with_path_operation::HostWithPathOperationOutput,
    9     11   
    crate::operation::host_with_path_operation::HostWithPathOperationError,
   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::host_with_path_operation::HostWithPathOperationError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::host_with_path_operation::HostWithPathOperationError::generic(generic))
          22  +
    /* ProtocolParserGenerator.kt:99 */
   16     23   
}
   17     24   
          25  +
/* RustType.kt:516 */
   18     26   
#[allow(clippy::unnecessary_wraps)]
          27  +
/* ProtocolParserGenerator.kt:71 */
   19     28   
pub fn de_host_with_path_operation_http_response(
   20     29   
    _response_status: u16,
   21     30   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   22     31   
    _response_body: &[u8],
   23     32   
) -> std::result::Result<
   24     33   
    crate::operation::host_with_path_operation::HostWithPathOperationOutput,
   25     34   
    crate::operation::host_with_path_operation::HostWithPathOperationError,
   26     35   
> {
          36  +
    /* ProtocolParserGenerator.kt:77 */
   27     37   
    Ok({
          38  +
        /* RustType.kt:516 */
   28     39   
        #[allow(unused_mut)]
          40  +
        /* ProtocolParserGenerator.kt:240 */
   29     41   
        let mut output = crate::operation::host_with_path_operation::builders::HostWithPathOperationOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_host_with_path_operation_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_host_with_path_operation_input_input_input(
    3      4   
    input: &crate::operation::host_with_path_operation::HostWithPathOperationInput,
    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, "HostWithPathOperation", "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_ignores_wrapping_xml_name.rs

@@ -1,1 +88,114 @@
    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_ignores_wrapping_xml_name_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::ignores_wrapping_xml_name::IgnoresWrappingXmlNameOutput,
    9     11   
    crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError,
   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::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError::generic(generic))
          22  +
    /* ProtocolParserGenerator.kt:99 */
   16     23   
}
   17     24   
          25  +
/* RustType.kt:516 */
   18     26   
#[allow(clippy::unnecessary_wraps)]
          27  +
/* ProtocolParserGenerator.kt:71 */
   19     28   
pub fn de_ignores_wrapping_xml_name_http_response(
   20     29   
    _response_status: u16,
   21     30   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   22     31   
    _response_body: &[u8],
   23     32   
) -> std::result::Result<
   24     33   
    crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameOutput,
   25     34   
    crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError,
   26     35   
> {
          36  +
    /* ProtocolParserGenerator.kt:77 */
   27     37   
    Ok({
          38  +
        /* RustType.kt:516 */
   28     39   
        #[allow(unused_mut)]
          40  +
        /* ProtocolParserGenerator.kt:240 */
   29     41   
        let mut output = crate::operation::ignores_wrapping_xml_name::builders::IgnoresWrappingXmlNameOutputBuilder::default();
          42  +
        /* ProtocolParserGenerator.kt:247 */
   30     43   
        output = crate::protocol_serde::shape_ignores_wrapping_xml_name::de_ignores_wrapping_xml_name(_response_body, output)
   31     44   
            .map_err(crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError::unhandled)?;
          45  +
        /* ClientBuilderInstantiator.kt:56 */
   32     46   
        output.build()
          47  +
        /* ProtocolParserGenerator.kt:77 */
   33     48   
    })
          49  +
    /* ProtocolParserGenerator.kt:71 */
   34     50   
}
   35     51   
          52  +
/* RustType.kt:516 */
   36     53   
#[allow(unused_mut)]
          54  +
/* XmlBindingTraitParserGenerator.kt:189 */
   37     55   
pub fn de_ignores_wrapping_xml_name(
   38     56   
    inp: &[u8],
   39     57   
    mut builder: crate::operation::ignores_wrapping_xml_name::builders::IgnoresWrappingXmlNameOutputBuilder,
   40     58   
) -> std::result::Result<
   41     59   
    crate::operation::ignores_wrapping_xml_name::builders::IgnoresWrappingXmlNameOutputBuilder,
   42     60   
    ::aws_smithy_xml::decode::XmlDecodeError,
   43     61   
> {
          62  +
    /* XmlBindingTraitParserGenerator.kt:194 */
   44     63   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   45     64   
   46     65   
    #[allow(unused_mut)]
   47     66   
    let mut decoder = doc.root_element()?;
   48     67   
    #[allow(unused_variables)]
   49     68   
    let start_el = decoder.start_el();
          69  +
    /* AwsQueryParserGenerator.kt:38 */
   50     70   
    if !(start_el.matches("IgnoresWrappingXmlNameResponse")) {
   51     71   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   52     72   
            "invalid root, expected IgnoresWrappingXmlNameResponse got {:?}",
   53     73   
            start_el
   54     74   
        )));
   55     75   
    }
   56     76   
    if let Some(mut result_tag) = decoder.next_tag() {
   57     77   
        let start_el = result_tag.start_el();
   58     78   
        if !(start_el.matches("IgnoresWrappingXmlNameResult")) {
   59     79   
            return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
   60     80   
                "invalid result, expected IgnoresWrappingXmlNameResult got {:?}",
   61     81   
                start_el
   62     82   
            )));
   63     83   
        }
          84  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   64     85   
        while let Some(mut tag) = result_tag.next_tag() {
          86  +
            /* XmlBindingTraitParserGenerator.kt:353 */
   65     87   
            match tag.start_el() {
   66         -
            s if s.matches("foo") /* foo aws.protocoltests.query.synthetic#IgnoresWrappingXmlNameOutput$foo */ =>  {
   67         -
                let var_1 =
   68         -
                    Some(
   69         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   70         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   71         -
                            .into()
   72         -
                        )
   73         -
                        ?
   74         -
                    )
   75         -
                ;
   76         -
                builder = builder.set_foo(var_1);
   77         -
            }
          88  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("foo") /* foo aws.protocoltests.query.synthetic#IgnoresWrappingXmlNameOutput$foo */ =>  {
          89  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          90  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          91  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          92  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          93  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
          94  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
          95  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          96  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          97  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          98  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_foo(var_1);
          99  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   78    100   
            ,
   79         -
            _ => {}
   80         -
        }
         101  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
         102  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
         103  +
            /* XmlBindingTraitParserGenerator.kt:352 */
   81    104   
        }
         105  +
    /* AwsQueryParserGenerator.kt:52 */
   82    106   
    } else {
   83    107   
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(
   84    108   
            "expected IgnoresWrappingXmlNameResult tag",
   85    109   
        ));
   86    110   
    };
         111  +
    /* XmlBindingTraitParserGenerator.kt:213 */
   87    112   
    Ok(builder)
         113  +
    /* XmlBindingTraitParserGenerator.kt:189 */
   88    114   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_ignores_wrapping_xml_name_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_ignores_wrapping_xml_name_input_input_input(
    3      4   
    input: &crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameInput,
    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, "IgnoresWrappingXmlName", "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_integer_enum_list.rs

@@ -1,1 +24,31 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_integer_enum_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<i32>, ::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#IntegerEnumList$member */ =>  {
    9         -
                out.push(
   10         -
                     {
   11         -
                        <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   12         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   13         -
                        )
   14         -
                        .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
   15         -
                    }
   16         -
                    ?
   17         -
                );
   18         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#IntegerEnumList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:676 */ {
          15  +
                        /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
          16  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          17  +
                        /* XmlBindingTraitParserGenerator.kt:677 */)
          18  +
                        /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
          19  +
                    /* XmlBindingTraitParserGenerator.kt:676 */}
          20  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          21  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          22  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   19     23   
            ,
   20         -
            _ => {}
   21         -
        }
          24  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          25  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          26  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   22     27   
    }
          28  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   23     29   
    Ok(out)
          30  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   24     31   
}

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

@@ -1,1 +54,72 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:586 */
    2      3   
pub fn de_integer_enum_map(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, i32>, ::aws_smithy_xml::decode::XmlDecodeError> {
           6  +
    /* XmlBindingTraitParserGenerator.kt:591 */
    5      7   
    let mut out = ::std::collections::HashMap::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() {
          12  +
            /* XmlBindingTraitParserGenerator.kt:593 */
    8     13   
            s if s.matches("entry") => {
          14  +
                /* XmlBindingTraitParserGenerator.kt:594 */
    9     15   
                crate::protocol_serde::shape_integer_enum_map::de_integer_enum_map_entry(&mut tag, &mut out)?;
          16  +
                /* XmlBindingTraitParserGenerator.kt:593 */
   10     17   
            }
   11         -
            _ => {}
          18  +
            /* XmlBindingTraitParserGenerator.kt:356 */ _ => {} /* XmlBindingTraitParserGenerator.kt:353 */
   12     19   
        }
          20  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   13     21   
    }
          22  +
    /* XmlBindingTraitParserGenerator.kt:597 */
   14     23   
    Ok(out)
          24  +
    /* XmlBindingTraitParserGenerator.kt:586 */
   15     25   
}
   16     26   
          27  +
/* XmlBindingTraitParserGenerator.kt:628 */
   17     28   
pub fn de_integer_enum_map_entry(
   18     29   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
   19     30   
    out: &mut ::std::collections::HashMap<::std::string::String, i32>,
   20     31   
) -> ::std::result::Result<(), ::aws_smithy_xml::decode::XmlDecodeError> {
          32  +
    /* XmlBindingTraitParserGenerator.kt:634 */
   21     33   
    let mut k: Option<::std::string::String> = None;
          34  +
    /* XmlBindingTraitParserGenerator.kt:635 */
   22     35   
    let mut v: Option<i32> = None;
          36  +
    /* XmlBindingTraitParserGenerator.kt:352 */
   23     37   
    while let Some(mut tag) = decoder.next_tag() {
          38  +
        /* XmlBindingTraitParserGenerator.kt:353 */
   24     39   
        match tag.start_el() {
   25         -
            s if s.matches("key") /* key aws.protocoltests.shared#IntegerEnumMap$key */ =>  {
   26         -
                k = Some(
   27         -
                    Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   28         -
                        ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   29         -
                        .into()
   30         -
                    )
   31         -
                    ?
   32         -
                )
   33         -
            }
          40  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("key") /* key aws.protocoltests.shared#IntegerEnumMap$key */ =>  {
          41  +
                /* XmlBindingTraitParserGenerator.kt:641 */k = Some(
          42  +
                    /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          43  +
                        /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          44  +
                        /* XmlBindingTraitParserGenerator.kt:748 */.into()
          45  +
                    /* XmlBindingTraitParserGenerator.kt:729 */)
          46  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          47  +
                /* XmlBindingTraitParserGenerator.kt:641 */)
          48  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   34     49   
            ,
   35         -
            s if s.matches("value") /* value aws.protocoltests.shared#IntegerEnumMap$value */ =>  {
   36         -
                v = Some(
   37         -
                     {
   38         -
                        <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   39         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   40         -
                        )
   41         -
                        .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
   42         -
                    }
   43         -
                    ?
   44         -
                )
   45         -
            }
          50  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("value") /* value aws.protocoltests.shared#IntegerEnumMap$value */ =>  {
          51  +
                /* XmlBindingTraitParserGenerator.kt:646 */v = Some(
          52  +
                    /* XmlBindingTraitParserGenerator.kt:676 */ {
          53  +
                        /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
          54  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          55  +
                        /* XmlBindingTraitParserGenerator.kt:677 */)
          56  +
                        /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
          57  +
                    /* XmlBindingTraitParserGenerator.kt:676 */}
          58  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          59  +
                /* XmlBindingTraitParserGenerator.kt:646 */)
          60  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   46     61   
            ,
   47         -
            _ => {}
   48         -
        }
          62  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          63  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          64  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   49     65   
    }
          66  +
    /* XmlBindingTraitParserGenerator.kt:652 */
   50     67   
    let k = k.ok_or_else(|| ::aws_smithy_xml::decode::XmlDecodeError::custom("missing key map entry"))?;
   51     68   
    let v = v.ok_or_else(|| ::aws_smithy_xml::decode::XmlDecodeError::custom("missing value map entry"))?;
   52     69   
    out.insert(k, v);
   53     70   
    Ok(())
          71  +
    /* XmlBindingTraitParserGenerator.kt:628 */
   54     72   
}

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

@@ -1,1 +24,31 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_integer_enum_set(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<i32>, ::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#IntegerEnumSet$member */ =>  {
    9         -
                out.push(
   10         -
                     {
   11         -
                        <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   12         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   13         -
                        )
   14         -
                        .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
   15         -
                    }
   16         -
                    ?
   17         -
                );
   18         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#IntegerEnumSet$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:676 */ {
          15  +
                        /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
          16  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          17  +
                        /* XmlBindingTraitParserGenerator.kt:677 */)
          18  +
                        /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (intEnum: `aws.protocoltests.shared#IntegerEnum`)"))
          19  +
                    /* XmlBindingTraitParserGenerator.kt:676 */}
          20  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          21  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          22  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   19     23   
            ,
   20         -
            _ => {}
   21         -
        }
          24  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          25  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          26  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   22     27   
    }
          28  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   23     29   
    Ok(out)
          30  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   24     31   
}

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

@@ -1,1 +24,31 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* XmlBindingTraitParserGenerator.kt:546 */
    2      3   
pub fn de_integer_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<i32>, ::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#IntegerList$member */ =>  {
    9         -
                out.push(
   10         -
                     {
   11         -
                        <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   12         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   13         -
                        )
   14         -
                        .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
   15         -
                    }
   16         -
                    ?
   17         -
                );
   18         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#IntegerList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:676 */ {
          15  +
                        /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
          16  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          17  +
                        /* XmlBindingTraitParserGenerator.kt:677 */)
          18  +
                        /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
          19  +
                    /* XmlBindingTraitParserGenerator.kt:676 */}
          20  +
                    /* XmlBindingTraitParserGenerator.kt:402 */?
          21  +
                /* XmlBindingTraitParserGenerator.kt:554 */);
          22  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   19     23   
            ,
   20         -
            _ => {}
   21         -
        }
          24  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          25  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          26  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   22     27   
    }
          28  +
    /* XmlBindingTraitParserGenerator.kt:559 */
   23     29   
    Ok(out)
          30  +
    /* XmlBindingTraitParserGenerator.kt:546 */
   24     31   
}

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

@@ -1,1 +32,41 @@
    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  +
/* XmlBindingTraitParserGenerator.kt:221 */
    3      5   
pub fn de_invalid_greeting_xml_err(
    4      6   
    inp: &[u8],
    5      7   
    mut builder: crate::types::error::builders::InvalidGreetingBuilder,
    6      8   
) -> std::result::Result<crate::types::error::builders::InvalidGreetingBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
           9  +
    /* XmlBindingTraitParserGenerator.kt:227 */
    7     10   
    if inp.is_empty() {
    8     11   
        return Ok(builder);
    9     12   
    }
          13  +
    /* XmlBindingTraitParserGenerator.kt:229 */
   10     14   
    let mut document = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   11     15   
    #[allow(unused_mut)]
   12     16   
    let mut error_decoder = crate::rest_xml_wrapped_errors::error_scope(&mut document)?;
          17  +
    /* XmlBindingTraitParserGenerator.kt:352 */
   13     18   
    while let Some(mut tag) = error_decoder.next_tag() {
          19  +
        /* XmlBindingTraitParserGenerator.kt:353 */
   14     20   
        match tag.start_el() {
   15         -
            s if s.matches("Message") /* Message aws.protocoltests.query#InvalidGreeting$Message */ =>  {
   16         -
                let var_1 =
   17         -
                    Some(
   18         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   19         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   20         -
                            .into()
   21         -
                        )
   22         -
                        ?
   23         -
                    )
   24         -
                ;
   25         -
                builder = builder.set_message(var_1);
   26         -
            }
          21  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("Message") /* Message aws.protocoltests.query#InvalidGreeting$Message */ =>  {
          22  +
                /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
          23  +
                    /* XmlBindingTraitParserGenerator.kt:372 */Some(
          24  +
                        /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
          25  +
                            /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
          26  +
                            /* XmlBindingTraitParserGenerator.kt:748 */.into()
          27  +
                        /* XmlBindingTraitParserGenerator.kt:729 */)
          28  +
                        /* XmlBindingTraitParserGenerator.kt:402 */?
          29  +
                    /* XmlBindingTraitParserGenerator.kt:372 */)
          30  +
                /* XmlBindingTraitParserGenerator.kt:329 */;
          31  +
                /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_message(var_1);
          32  +
            /* XmlBindingTraitParserGenerator.kt:492 */}
   27     33   
            ,
   28         -
            _ => {}
   29         -
        }
          34  +
            /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
          35  +
        /* XmlBindingTraitParserGenerator.kt:353 */}
          36  +
        /* XmlBindingTraitParserGenerator.kt:352 */
   30     37   
    }
          38  +
    /* XmlBindingTraitParserGenerator.kt:240 */
   31     39   
    Ok(builder)
          40  +
    /* XmlBindingTraitParserGenerator.kt:221 */
   32     41   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_nested_string_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_nested_string_list(
    3      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::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#NestedStringList$member */ =>  {
    9         -
                out.push(
   10         -
                    crate::protocol_serde::shape_string_list::de_string_list(&mut tag)
   11         -
                    ?
   12         -
                );
   13         -
            }
          12  +
            /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("member") /* member aws.protocoltests.shared#NestedStringList$member */ =>  {
          13  +
                /* XmlBindingTraitParserGenerator.kt:554 */out.push(
          14  +
                    /* XmlBindingTraitParserGenerator.kt:562 */crate::protocol_serde::shape_string_list::de_string_list(&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_nested_struct_with_list.rs

@@ -1,1 +19,34 @@
    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_nested_struct_with_list(
    4      6   
    mut writer: ::aws_smithy_query::QueryValueWriter,
    5      7   
    input: &crate::types::NestedStructWithList,
    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("ListArg");
          13  +
    /* QuerySerializerGenerator.kt:206 */
    9     14   
    if let Some(var_2) = &input.list_arg {
          15  +
        /* QuerySerializerGenerator.kt:305 */
   10     16   
        let mut list_4 = scope_1.start_list(false, None);
          17  +
        /* QuerySerializerGenerator.kt:306 */
   11     18   
        for item_3 in var_2 {
          19  +
            /* RustType.kt:516 */
   12     20   
            #[allow(unused_mut)]
          21  +
            /* QuerySerializerGenerator.kt:309 */
   13     22   
            let mut entry_5 = list_4.entry();
          23  +
            /* QuerySerializerGenerator.kt:230 */
   14     24   
            entry_5.string(item_3);
          25  +
            /* QuerySerializerGenerator.kt:306 */
   15     26   
        }
          27  +
        /* QuerySerializerGenerator.kt:316 */
   16     28   
        list_4.finish();
          29  +
        /* QuerySerializerGenerator.kt:206 */
   17     30   
    }
          31  +
    /* QuerySerializerGenerator.kt:183 */
   18     32   
    Ok(())
          33  +
    /* QuerySerializerGenerator.kt:177 */
   19     34   
}

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

@@ -1,1 +21,38 @@
    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_nested_struct_with_map(
    4      6   
    mut writer: ::aws_smithy_query::QueryValueWriter,
    5      7   
    input: &crate::types::NestedStructWithMap,
    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("MapArg");
          13  +
    /* QuerySerializerGenerator.kt:206 */
    9     14   
    if let Some(var_2) = &input.map_arg {
          15  +
        /* QuerySerializerGenerator.kt:331 */
   10     16   
        let mut map_3 = scope_1.start_map(false, "key", "value");
          17  +
        /* QuerySerializerGenerator.kt:332 */
   11     18   
        for (key_4, value_5) in var_2 {
          19  +
            /* RustType.kt:516 */
   12     20   
            #[allow(unused_mut)]
          21  +
            /* QuerySerializerGenerator.kt:341 */
   13     22   
            let mut entry_6 = map_3.entry(key_4);
          23  +
            /* SerializerUtil.kt:42 */
   14     24   
            {
          25  +
                /* QuerySerializerGenerator.kt:230 */
   15     26   
                entry_6.string(value_5);
          27  +
                /* SerializerUtil.kt:42 */
   16     28   
            }
          29  +
            /* QuerySerializerGenerator.kt:332 */
   17     30   
        }
          31  +
        /* QuerySerializerGenerator.kt:344 */
   18     32   
        map_3.finish();
          33  +
        /* QuerySerializerGenerator.kt:206 */
   19     34   
    }
          35  +
    /* QuerySerializerGenerator.kt:183 */
   20     36   
    Ok(())
          37  +
    /* QuerySerializerGenerator.kt:177 */
   21     38   
}

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

@@ -1,1 +26,41 @@
    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_nested_structures_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::nested_structures::NestedStructuresOutput, crate::operation::nested_structures::NestedStructuresError> {
          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::nested_structures::NestedStructuresError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::nested_structures::NestedStructuresError::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_nested_structures_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::nested_structures::NestedStructuresOutput, crate::operation::nested_structures::NestedStructuresError> {
          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::nested_structures::builders::NestedStructuresOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}

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

@@ -1,1 +15,27 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_nested_structures_input_input_input(
    3      4   
    input: &crate::operation::nested_structures::NestedStructuresInput,
    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, "NestedStructures", "2020-01-08");
          12  +
    /* RustType.kt:516 */
    8     13   
    #[allow(unused_mut)]
          14  +
    /* QuerySerializerGenerator.kt:279 */
    9     15   
    let mut scope_1 = writer.prefix("Nested");
          16  +
    /* QuerySerializerGenerator.kt:206 */
   10     17   
    if let Some(var_2) = &input.nested {
          18  +
        /* QuerySerializerGenerator.kt:187 */
   11     19   
        crate::protocol_serde::shape_struct_arg::ser_struct_arg(scope_1, var_2)?;
          20  +
        /* QuerySerializerGenerator.kt:206 */
   12     21   
    }
          22  +
    /* QuerySerializerGenerator.kt:151 */
   13     23   
    writer.finish();
          24  +
    /* QuerySerializerGenerator.kt:152 */
   14     25   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          26  +
    /* QuerySerializerGenerator.kt:134 */
   15     27   
}

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

@@ -1,1 +32,47 @@
    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_no_input_and_no_output_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::no_input_and_no_output::NoInputAndNoOutputOutput,
    9     11   
    crate::operation::no_input_and_no_output::NoInputAndNoOutputError,
   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::no_input_and_no_output::NoInputAndNoOutputError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::no_input_and_no_output::NoInputAndNoOutputError::generic(generic))
          22  +
    /* ProtocolParserGenerator.kt:99 */
   16     23   
}
   17     24   
          25  +
/* RustType.kt:516 */
   18     26   
#[allow(clippy::unnecessary_wraps)]
          27  +
/* ProtocolParserGenerator.kt:71 */
   19     28   
pub fn de_no_input_and_no_output_http_response(
   20     29   
    _response_status: u16,
   21     30   
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   22     31   
    _response_body: &[u8],
   23     32   
) -> std::result::Result<
   24     33   
    crate::operation::no_input_and_no_output::NoInputAndNoOutputOutput,
   25     34   
    crate::operation::no_input_and_no_output::NoInputAndNoOutputError,
   26     35   
> {
          36  +
    /* ProtocolParserGenerator.kt:77 */
   27     37   
    Ok({
          38  +
        /* RustType.kt:516 */
   28     39   
        #[allow(unused_mut)]
          40  +
        /* ProtocolParserGenerator.kt:240 */
   29     41   
        let mut output = crate::operation::no_input_and_no_output::builders::NoInputAndNoOutputOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/protocol_serde/shape_no_input_and_no_output_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_no_input_and_no_output_input_input_input(
    3      4   
    input: &crate::operation::no_input_and_no_output::NoInputAndNoOutputInput,
    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, "NoInputAndNoOutput", "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   
}