Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_nulls_operation_input.rs

@@ -1,1 +31,62 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborSerializerGenerator.kt:369 */
    2      3   
pub fn ser_sparse_nulls_operation_input_input(
    3      4   
    encoder: &mut ::aws_smithy_cbor::Encoder,
    4      5   
    #[allow(unused)] input: &crate::operation::sparse_nulls_operation::SparseNullsOperationInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* CborSerializerGenerator.kt:377 */
    6      8   
    encoder.begin_map();
           9  +
    /* CborSerializerGenerator.kt:414 */
    7     10   
    if let Some(var_1) = &input.sparse_string_list {
          11  +
        /* CborSerializerGenerator.kt:486 */
    8     12   
        encoder.str("sparseStringList");
          13  +
        /* CborSerializerGenerator.kt:504 */
    9     14   
        encoder.array((*var_1).len());
          15  +
        /* CborSerializerGenerator.kt:506 */
   10     16   
        for item_2 in var_1 {
          17  +
            /* CborSerializerGenerator.kt:414 */
   11     18   
            if let Some(var_3) = item_2 {
          19  +
                /* CborSerializerGenerator.kt:462 */
   12     20   
                encoder.str(var_3.as_str());
   13         -
            } else {
          21  +
            /* CborSerializerGenerator.kt:414 */
          22  +
            }
          23  +
            /* CborSerializerGenerator.kt:420 */
          24  +
            else {
          25  +
                /* CborSerializerGenerator.kt:421 */
   14     26   
                encoder.null();
          27  +
                /* CborSerializerGenerator.kt:420 */
   15     28   
            }
          29  +
            /* CborSerializerGenerator.kt:506 */
   16     30   
        }
          31  +
        /* CborSerializerGenerator.kt:414 */
   17     32   
    }
          33  +
    /* CborSerializerGenerator.kt:414 */
   18     34   
    if let Some(var_4) = &input.sparse_string_map {
          35  +
        /* CborSerializerGenerator.kt:486 */
   19     36   
        encoder.str("sparseStringMap");
          37  +
        /* CborSerializerGenerator.kt:517 */
   20     38   
        encoder.map((*var_4).len());
          39  +
        /* CborSerializerGenerator.kt:518 */
   21     40   
        for (key_5, value_6) in var_4 {
          41  +
            /* CborSerializerGenerator.kt:414 */
   22     42   
            if let Some(var_7) = value_6 {
          43  +
                /* CborSerializerGenerator.kt:462 */
   23     44   
                encoder.str(key_5.as_str()).str(var_7.as_str());
   24         -
            } else {
          45  +
            /* CborSerializerGenerator.kt:414 */
          46  +
            }
          47  +
            /* CborSerializerGenerator.kt:420 */
          48  +
            else {
          49  +
                /* CborSerializerGenerator.kt:421 */
   25     50   
                encoder.str(key_5.as_str()).null();
          51  +
                /* CborSerializerGenerator.kt:420 */
   26     52   
            }
          53  +
            /* CborSerializerGenerator.kt:518 */
   27     54   
        }
          55  +
        /* CborSerializerGenerator.kt:414 */
   28     56   
    }
          57  +
    /* CborSerializerGenerator.kt:393 */
   29     58   
    encoder.end();
          59  +
    /* CborSerializerGenerator.kt:394 */
   30     60   
    Ok(())
          61  +
    /* CborSerializerGenerator.kt:369 */
   31     62   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_number_map.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:659 */
    2      3   
pub(crate) fn de_sparse_number_map(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>, ::aws_smithy_cbor::decode::DeserializeError>
    5      6   
{
    6      7   
    fn pair(
    7      8   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
    8      9   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    9     10   
    ) -> ::std::result::Result<
   10     11   
        ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
   11     12   
        ::aws_smithy_cbor::decode::DeserializeError,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_set_map.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:659 */
    2      3   
pub(crate) fn de_sparse_set_map(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<
    5      6   
    ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>,
    6      7   
    ::aws_smithy_cbor::decode::DeserializeError,
    7      8   
> {
    8      9   
    fn pair(
    9     10   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::vec::Vec<::std::string::String>>>,
   10     11   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   11     12   
    ) -> ::std::result::Result<

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_string_list.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_sparse_string_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::option::Option<::std::string::String>>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<::std::option::Option<::std::string::String>>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<::std::option::Option<::std::string::String>>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_string_map.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:659 */
    2      3   
pub(crate) fn de_sparse_string_map(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<
    5      6   
    ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>,
    6      7   
    ::aws_smithy_cbor::decode::DeserializeError,
    7      8   
> {
    8      9   
    fn pair(
    9     10   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::option::Option<::std::string::String>>,
   10     11   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   11     12   
    ) -> ::std::result::Result<

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_sparse_struct_map.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:659 */
    2      3   
pub(crate) fn de_sparse_struct_map(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<
    5      6   
    ::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>,
    6      7   
    ::aws_smithy_cbor::decode::DeserializeError,
    7      8   
> {
    8      9   
    fn pair(
    9     10   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::option::Option<crate::types::GreetingStruct>>,
   10     11   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   11     12   
    ) -> ::std::result::Result<

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_string_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_string_set(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_structure_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<crate::types::StructureListMember>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<crate::types::StructureListMember>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<crate::types::StructureListMember>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

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

@@ -1,1 +60,78 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborSerializerGenerator.kt:369 */
    2      3   
pub fn ser_structure_list_member(
    3      4   
    encoder: &mut ::aws_smithy_cbor::Encoder,
    4      5   
    #[allow(unused)] input: &crate::types::StructureListMember,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* CborSerializerGenerator.kt:377 */
    6      8   
    encoder.begin_map();
           9  +
    /* CborSerializerGenerator.kt:414 */
    7     10   
    if let Some(var_1) = &input.a {
          11  +
        /* CborSerializerGenerator.kt:462 */
    8     12   
        encoder.str("a").str(var_1.as_str());
          13  +
        /* CborSerializerGenerator.kt:414 */
    9     14   
    }
          15  +
    /* CborSerializerGenerator.kt:414 */
   10     16   
    if let Some(var_2) = &input.b {
          17  +
        /* CborSerializerGenerator.kt:462 */
   11     18   
        encoder.str("b").str(var_2.as_str());
          19  +
        /* CborSerializerGenerator.kt:414 */
   12     20   
    }
          21  +
    /* CborSerializerGenerator.kt:393 */
   13     22   
    encoder.end();
          23  +
    /* CborSerializerGenerator.kt:394 */
   14     24   
    Ok(())
          25  +
    /* CborSerializerGenerator.kt:369 */
   15     26   
}
   16     27   
          28  +
/* CborParserGenerator.kt:692 */
   17     29   
pub(crate) fn de_structure_list_member(
   18     30   
    decoder: &mut ::aws_smithy_cbor::Decoder,
   19     31   
) -> ::std::result::Result<crate::types::StructureListMember, ::aws_smithy_cbor::decode::DeserializeError> {
          32  +
    /* CborParserGenerator.kt:700 */
   20     33   
    #[allow(clippy::match_single_binding)]
   21     34   
    fn pair(
   22     35   
        mut builder: crate::types::builders::StructureListMemberBuilder,
   23     36   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   24     37   
    ) -> ::std::result::Result<crate::types::builders::StructureListMemberBuilder, ::aws_smithy_cbor::decode::DeserializeError> {
   25     38   
        builder = match decoder.str()?.as_ref() {
   26     39   
            "a" => ::aws_smithy_cbor::decode::set_optional(builder, decoder, |builder, decoder| Ok(builder.set_a(Some(decoder.string()?))))?,
   27     40   
            "b" => ::aws_smithy_cbor::decode::set_optional(builder, decoder, |builder, decoder| Ok(builder.set_b(Some(decoder.string()?))))?,
   28     41   
            _ => {
   29     42   
                decoder.skip()?;
   30     43   
                builder
   31     44   
            }
   32     45   
        };
   33     46   
        Ok(builder)
   34     47   
    }
   35     48   
   36     49   
    let mut builder = crate::types::builders::StructureListMemberBuilder::default();
   37     50   
   38     51   
    match decoder.map()? {
   39     52   
        None => loop {
   40     53   
            match decoder.datatype()? {
   41     54   
                ::aws_smithy_cbor::data::Type::Break => {
   42     55   
                    decoder.skip()?;
   43     56   
                    break;
   44     57   
                }
   45     58   
                _ => {
   46     59   
                    builder = pair(builder, decoder)?;
   47     60   
                }
   48     61   
            };
   49     62   
        },
   50     63   
        Some(n) => {
   51     64   
            for _ in 0..n {
   52     65   
                builder = pair(builder, decoder)?;
   53     66   
            }
   54     67   
        }
   55     68   
    };
          69  +
    /* CborParserGenerator.kt:726 */
   56     70   
    #[allow(clippy::needless_question_mark)]
          71  +
    /* CborParserGenerator.kt:727 */
   57     72   
    {
          73  +
        /* CborParserGenerator.kt:728 */
   58     74   
        return Ok(builder.build());
          75  +
        /* CborParserGenerator.kt:727 */
   59     76   
    }
          77  +
    /* CborParserGenerator.kt:692 */
   60     78   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_test_string_list.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_test_string_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<::std::string::String>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_test_string_map.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:659 */
    2      3   
pub(crate) fn de_test_string_map(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, ::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn pair(
    6      7   
        mut map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::collections::HashMap<::std::string::String, ::std::string::String>, ::aws_smithy_cbor::decode::DeserializeError>
    9     10   
    {
   10     11   
        let key = decoder.string()?;
   11     12   
        let value = match decoder.datatype()? {

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

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_timestamp_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::DateTime>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<::aws_smithy_types::DateTime>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<::aws_smithy_types::DateTime>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_validation_exception.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:482 */
    2      3   
pub(crate) fn de_validation_exception_cbor_err(
    3      4   
    value: &[u8],
    4      5   
    mut builder: crate::types::error::builders::ValidationErrorBuilder,
    5      6   
) -> ::std::result::Result<crate::types::error::builders::ValidationErrorBuilder, ::aws_smithy_cbor::decode::DeserializeError> {
    6      7   
    #[allow(clippy::match_single_binding)]
    7      8   
    fn pair(
    8      9   
        mut builder: crate::types::error::builders::ValidationErrorBuilder,
    9     10   
        decoder: &mut ::aws_smithy_cbor::Decoder,
   10     11   
    ) -> ::std::result::Result<crate::types::error::builders::ValidationErrorBuilder, ::aws_smithy_cbor::decode::DeserializeError> {
   11     12   
        builder = match decoder.str()?.as_ref() {

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_validation_exception_field.rs

@@ -1,1 +47,54 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:692 */
    2      3   
pub(crate) fn de_validation_exception_field(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<crate::types::ValidationExceptionField, ::aws_smithy_cbor::decode::DeserializeError> {
           6  +
    /* CborParserGenerator.kt:700 */
    5      7   
    #[allow(clippy::match_single_binding)]
    6      8   
    fn pair(
    7      9   
        mut builder: crate::types::builders::ValidationExceptionFieldBuilder,
    8     10   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    9     11   
    ) -> ::std::result::Result<crate::types::builders::ValidationExceptionFieldBuilder, ::aws_smithy_cbor::decode::DeserializeError> {
   10     12   
        builder = match decoder.str()?.as_ref() {
   11     13   
            "path" => builder.set_path(Some(decoder.string()?)),
   12     14   
            "message" => builder.set_message(Some(decoder.string()?)),
   13     15   
            _ => {
   14     16   
                decoder.skip()?;
   15     17   
                builder
   16     18   
            }
   17     19   
        };
   18     20   
        Ok(builder)
   19     21   
    }
   20     22   
   21     23   
    let mut builder = crate::types::builders::ValidationExceptionFieldBuilder::default();
   22     24   
   23     25   
    match decoder.map()? {
   24     26   
        None => loop {
   25     27   
            match decoder.datatype()? {
   26     28   
                ::aws_smithy_cbor::data::Type::Break => {
   27     29   
                    decoder.skip()?;
   28     30   
                    break;
   29     31   
                }
   30     32   
                _ => {
   31     33   
                    builder = pair(builder, decoder)?;
   32     34   
                }
   33     35   
            };
   34     36   
        },
   35     37   
        Some(n) => {
   36     38   
            for _ in 0..n {
   37     39   
                builder = pair(builder, decoder)?;
   38     40   
            }
   39     41   
        }
   40     42   
    };
          43  +
    /* CborParserGenerator.kt:726 */
   41     44   
    #[allow(clippy::needless_question_mark)]
          45  +
    /* CborParserGenerator.kt:727 */
   42     46   
    {
          47  +
        /* CborParserGenerator.kt:728 */
   43     48   
        return Ok(crate::serde_util::validation_exception_field_correct_errors(builder)
   44     49   
            .build()
   45     50   
            .map_err(|err| ::aws_smithy_cbor::decode::DeserializeError::custom(err.to_string(), decoder.position()))?);
          51  +
        /* CborParserGenerator.kt:727 */
   46     52   
    }
          53  +
    /* CborParserGenerator.kt:692 */
   47     54   
}

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/protocol_serde/shape_validation_exception_field_list.rs

@@ -1,1 +31,32 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* CborParserGenerator.kt:616 */
    2      3   
pub(crate) fn de_validation_exception_field_list(
    3      4   
    decoder: &mut ::aws_smithy_cbor::Decoder,
    4      5   
) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::aws_smithy_cbor::decode::DeserializeError> {
    5      6   
    fn member(
    6      7   
        mut list: ::std::vec::Vec<crate::types::ValidationExceptionField>,
    7      8   
        decoder: &mut ::aws_smithy_cbor::Decoder,
    8      9   
    ) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::aws_smithy_cbor::decode::DeserializeError> {
    9     10   
        let value = match decoder.datatype()? {
   10     11   
            ::aws_smithy_cbor::data::Type::Null => {
   11     12   
                decoder.null()?;