Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/ec2_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/ec2_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/ec2_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/ec2_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/ec2_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::ec2_query_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.ec2#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.ec2#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/ec2_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/ec2_query/rust-client-codegen/src/protocol_serde/shape_nested_struct_with_list.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_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  +
        /* Ec2QuerySerializerGenerator.kt:43 */
   10     16   
        if !var_2.is_empty() {
          17  +
            /* QuerySerializerGenerator.kt:305 */
   11     18   
            let mut list_4 = scope_1.start_list(true, None);
          19  +
            /* QuerySerializerGenerator.kt:306 */
   12     20   
            for item_3 in var_2 {
          21  +
                /* RustType.kt:516 */
   13     22   
                #[allow(unused_mut)]
          23  +
                /* QuerySerializerGenerator.kt:309 */
   14     24   
                let mut entry_5 = list_4.entry();
          25  +
                /* QuerySerializerGenerator.kt:230 */
   15     26   
                entry_5.string(item_3);
          27  +
                /* QuerySerializerGenerator.kt:306 */
   16     28   
            }
          29  +
            /* QuerySerializerGenerator.kt:316 */
   17     30   
            list_4.finish();
          31  +
            /* Ec2QuerySerializerGenerator.kt:43 */
   18     32   
        }
          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/ec2_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/ec2_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/ec2_query/rust-client-codegen/src/protocol_serde/shape_no_input_and_output.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_no_input_and_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<crate::operation::no_input_and_output::NoInputAndOutputOutput, crate::operation::no_input_and_output::NoInputAndOutputError>
    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::no_input_and_output::NoInputAndOutputError::unhandled)?;
          16  +
    /* ProtocolParserGenerator.kt:120 */
   12     17   
    let generic = generic_builder.build();
          18  +
    /* ProtocolParserGenerator.kt:185 */
   13     19   
    Err(crate::operation::no_input_and_output::NoInputAndOutputError::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_no_input_and_output_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::no_input_and_output::NoInputAndOutputOutput, crate::operation::no_input_and_output::NoInputAndOutputError>
   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::no_input_and_output::builders::NoInputAndOutputOutputBuilder::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/ec2_query/rust-client-codegen/src/protocol_serde/shape_no_input_and_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_output_input_input_input(
    3      4   
    input: &crate::operation::no_input_and_output::NoInputAndOutputInput,
    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, "NoInputAndOutput", "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/ec2_query/rust-client-codegen/src/protocol_serde/shape_put_with_content_encoding.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_put_with_content_encoding_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::put_with_content_encoding::PutWithContentEncodingOutput,
    9     11   
    crate::operation::put_with_content_encoding::PutWithContentEncodingError,
   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::put_with_content_encoding::PutWithContentEncodingError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::put_with_content_encoding::PutWithContentEncodingError::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_put_with_content_encoding_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::put_with_content_encoding::PutWithContentEncodingOutput,
   25     34   
    crate::operation::put_with_content_encoding::PutWithContentEncodingError,
   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::put_with_content_encoding::builders::PutWithContentEncodingOutputBuilder::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/ec2_query/rust-client-codegen/src/protocol_serde/shape_put_with_content_encoding_input.rs

@@ -1,1 +20,37 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* QuerySerializerGenerator.kt:134 */
    2      3   
pub fn ser_put_with_content_encoding_input_input_input(
    3      4   
    input: &crate::operation::put_with_content_encoding::PutWithContentEncodingInput,
    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, "PutWithContentEncoding", "2020-01-08");
          12  +
    /* RustType.kt:516 */
    8     13   
    #[allow(unused_mut)]
          14  +
    /* QuerySerializerGenerator.kt:279 */
    9     15   
    let mut scope_1 = writer.prefix("Encoding");
          16  +
    /* QuerySerializerGenerator.kt:206 */
   10     17   
    if let Some(var_2) = &input.encoding {
          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("Data");
          26  +
    /* QuerySerializerGenerator.kt:206 */
   15     27   
    if let Some(var_4) = &input.data {
          28  +
        /* QuerySerializerGenerator.kt:230 */
   16     29   
        scope_3.string(var_4);
          30  +
        /* QuerySerializerGenerator.kt:206 */
   17     31   
    }
          32  +
    /* QuerySerializerGenerator.kt:151 */
   18     33   
    writer.finish();
          34  +
    /* QuerySerializerGenerator.kt:152 */
   19     35   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          36  +
    /* QuerySerializerGenerator.kt:134 */
   20     37   
}

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/protocol_serde/shape_query_idempotency_token_auto_fill.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_query_idempotency_token_auto_fill_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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
    9     11   
    crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError::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_query_idempotency_token_auto_fill_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::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillOutput,
   25     34   
    crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
   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::query_idempotency_token_auto_fill::builders::QueryIdempotencyTokenAutoFillOutputBuilder::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/ec2_query/rust-client-codegen/src/protocol_serde/shape_query_idempotency_token_auto_fill_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_query_idempotency_token_auto_fill_input_input_input(
    3      4   
    input: &crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillInput,
    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, "QueryIdempotencyTokenAutoFill", "2020-01-08");
          12  +
    /* RustType.kt:516 */
    8     13   
    #[allow(unused_mut)]
          14  +
    /* QuerySerializerGenerator.kt:279 */
    9     15   
    let mut scope_1 = writer.prefix("Token");
          16  +
    /* QuerySerializerGenerator.kt:206 */
   10     17   
    if let Some(var_2) = &input.token {
          18  +
        /* QuerySerializerGenerator.kt:230 */
   11     19   
        scope_1.string(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/ec2_query/rust-client-codegen/src/protocol_serde/shape_query_lists.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_query_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::query_lists::QueryListsOutput, crate::operation::query_lists::QueryListsError> {
          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::query_lists::QueryListsError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::query_lists::QueryListsError::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_query_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::query_lists::QueryListsOutput, crate::operation::query_lists::QueryListsError> {
          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::query_lists::builders::QueryListsOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}