1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | pub(crate) fn de_validation_exception_field_list(
|
3 3 | decoder: &mut ::aws_smithy_cbor::Decoder,
|
4 4 | ) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::aws_smithy_cbor::decode::DeserializeError> {
|
5 5 | fn member(
|
6 6 | mut list: ::std::vec::Vec<crate::types::ValidationExceptionField>,
|
7 7 | decoder: &mut ::aws_smithy_cbor::Decoder,
|
8 8 | ) -> ::std::result::Result<::std::vec::Vec<crate::types::ValidationExceptionField>, ::aws_smithy_cbor::decode::DeserializeError> {
|
9 9 | let value = match decoder.datatype()? {
|
10 10 | ::aws_smithy_cbor::data::Type::Null => {
|
11 - | decoder.null()?;
|
12 - | return ::std::result::Result::Ok(list);
|
11 + | return ::std::result::Result::Err(::aws_smithy_cbor::decode::DeserializeError::custom(
|
12 + | "dense list cannot contain null values",
|
13 + | decoder.position(),
|
14 + | ))
|
13 15 | }
|
14 16 | _ => crate::protocol_serde::shape_validation_exception_field::de_validation_exception_field(decoder)?,
|
15 17 | };
|
16 18 | list.push(value);
|
17 19 | Ok(list)
|
18 20 | }
|
19 21 |
|
20 22 | let mut list = ::std::vec::Vec::new();
|
21 23 |
|
22 24 | match decoder.list()? {
|