Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_list.rs

@@ -1,1 +36,58 @@
    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_malformed_list_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::malformed_list::MalformedListOutput, crate::operation::malformed_list::MalformedListError> {
          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::malformed_list::MalformedListError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::malformed_list::MalformedListError::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_malformed_list_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::malformed_list::MalformedListOutput, crate::operation::malformed_list::MalformedListError> {
          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::malformed_list::builders::MalformedListOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}
   27     42   
          43  +
/* JsonSerializerGenerator.kt:287 */
   28     44   
pub fn ser_malformed_list_input(
   29     45   
    input: &crate::operation::malformed_list::MalformedListInput,
   30     46   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          47  +
    /* JsonSerializerGenerator.kt:291 */
   31     48   
    let mut out = String::new();
          49  +
    /* JsonSerializerGenerator.kt:292 */
   32     50   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          51  +
    /* JsonSerializerGenerator.kt:375 */
   33     52   
    crate::protocol_serde::shape_malformed_list_input::ser_malformed_list_input_input(&mut object, input)?;
          53  +
    /* JsonSerializerGenerator.kt:295 */
   34     54   
    object.finish();
          55  +
    /* JsonSerializerGenerator.kt:296 */
   35     56   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          57  +
    /* JsonSerializerGenerator.kt:287 */
   36     58   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_list_input.rs

@@ -1,1 +16,28 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_list_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_list::MalformedListInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.body_list {
           9  +
        /* JsonSerializerGenerator.kt:484 */
    7     10   
        let mut array_2 = object.key("bodyList").start_array();
          11  +
        /* JsonSerializerGenerator.kt:524 */
    8     12   
        for item_3 in var_1 {
          13  +
            /* SerializerUtil.kt:42 */
    9     14   
            {
          15  +
                /* JsonSerializerGenerator.kt:423 */
   10     16   
                array_2.value().string(item_3.as_str());
          17  +
                /* SerializerUtil.kt:42 */
   11     18   
            }
          19  +
            /* JsonSerializerGenerator.kt:524 */
   12     20   
        }
          21  +
        /* JsonSerializerGenerator.kt:486 */
   13     22   
        array_2.finish();
          23  +
        /* JsonSerializerGenerator.kt:382 */
   14     24   
    }
          25  +
    /* JsonSerializerGenerator.kt:372 */
   15     26   
    Ok(())
          27  +
    /* JsonSerializerGenerator.kt:358 */
   16     28   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_long.rs

@@ -1,1 +55,85 @@
    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_malformed_long_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::malformed_long::MalformedLongOutput, crate::operation::malformed_long::MalformedLongError> {
          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::malformed_long::MalformedLongError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::malformed_long::MalformedLongError::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_malformed_long_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::malformed_long::MalformedLongOutput, crate::operation::malformed_long::MalformedLongError> {
          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::malformed_long::builders::MalformedLongOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}
   27     42   
          43  +
/* HttpBindingGenerator.kt:542 */
   28     44   
pub fn ser_malformed_long_headers(
   29     45   
    input: &crate::operation::malformed_long::MalformedLongInput,
   30     46   
    mut builder: ::http::request::Builder,
   31     47   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          48  +
    /* HttpBindingGenerator.kt:592 */
   32     49   
    if let ::std::option::Option::Some(inner_1) = &input.long_in_header {
          50  +
        /* HttpBindingGenerator.kt:690 */
   33     51   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_1);
          52  +
        /* HttpBindingGenerator.kt:704 */
   34     53   
        let formatted_2 = encoder.encode();
          54  +
        /* HttpBindingGenerator.kt:706 */
   35     55   
        let header_value = formatted_2;
   36     56   
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   37     57   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   38     58   
                "long_in_header",
   39     59   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   40     60   
            )
   41     61   
        })?;
   42     62   
        builder = builder.header("longInHeader", header_value);
          63  +
        /* HttpBindingGenerator.kt:592 */
   43     64   
    }
          65  +
    /* HttpBindingGenerator.kt:555 */
   44     66   
    Ok(builder)
          67  +
    /* HttpBindingGenerator.kt:542 */
   45     68   
}
   46     69   
          70  +
/* JsonSerializerGenerator.kt:287 */
   47     71   
pub fn ser_malformed_long_input(
   48     72   
    input: &crate::operation::malformed_long::MalformedLongInput,
   49     73   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          74  +
    /* JsonSerializerGenerator.kt:291 */
   50     75   
    let mut out = String::new();
          76  +
    /* JsonSerializerGenerator.kt:292 */
   51     77   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          78  +
    /* JsonSerializerGenerator.kt:375 */
   52     79   
    crate::protocol_serde::shape_malformed_long_input::ser_malformed_long_input_input(&mut object, input)?;
          80  +
    /* JsonSerializerGenerator.kt:295 */
   53     81   
    object.finish();
          82  +
    /* JsonSerializerGenerator.kt:296 */
   54     83   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          84  +
    /* JsonSerializerGenerator.kt:287 */
   55     85   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_long_input.rs

@@ -1,1 +13,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_long_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_long::MalformedLongInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.long_in_body {
           9  +
        /* JsonSerializerGenerator.kt:432 */
    7     10   
        object.key("longInBody").number(
    8     11   
            #[allow(clippy::useless_conversion)]
    9     12   
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   10     13   
        );
          14  +
        /* JsonSerializerGenerator.kt:382 */
   11     15   
    }
          16  +
    /* JsonSerializerGenerator.kt:372 */
   12     17   
    Ok(())
          18  +
    /* JsonSerializerGenerator.kt:358 */
   13     19   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_map.rs

@@ -1,1 +36,58 @@
    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_malformed_map_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::malformed_map::MalformedMapOutput, crate::operation::malformed_map::MalformedMapError> {
          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::malformed_map::MalformedMapError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::malformed_map::MalformedMapError::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_malformed_map_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::malformed_map::MalformedMapOutput, crate::operation::malformed_map::MalformedMapError> {
          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::malformed_map::builders::MalformedMapOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}
   27     42   
          43  +
/* JsonSerializerGenerator.kt:287 */
   28     44   
pub fn ser_malformed_map_input(
   29     45   
    input: &crate::operation::malformed_map::MalformedMapInput,
   30     46   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          47  +
    /* JsonSerializerGenerator.kt:291 */
   31     48   
    let mut out = String::new();
          49  +
    /* JsonSerializerGenerator.kt:292 */
   32     50   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          51  +
    /* JsonSerializerGenerator.kt:375 */
   33     52   
    crate::protocol_serde::shape_malformed_map_input::ser_malformed_map_input_input(&mut object, input)?;
          53  +
    /* JsonSerializerGenerator.kt:295 */
   34     54   
    object.finish();
          55  +
    /* JsonSerializerGenerator.kt:296 */
   35     56   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          57  +
    /* JsonSerializerGenerator.kt:287 */
   36     58   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_map_input.rs

@@ -1,1 +17,30 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_map_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_map::MalformedMapInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.body_map {
           9  +
        /* JsonSerializerGenerator.kt:495 */
    7     10   
        #[allow(unused_mut)]
          11  +
        /* JsonSerializerGenerator.kt:496 */
    8     12   
        let mut object_2 = object.key("bodyMap").start_object();
          13  +
        /* JsonSerializerGenerator.kt:537 */
    9     14   
        for (key_3, value_4) in var_1 {
          15  +
            /* SerializerUtil.kt:42 */
   10     16   
            {
          17  +
                /* JsonSerializerGenerator.kt:423 */
   11     18   
                object_2.key(key_3.as_str()).string(value_4.as_str());
          19  +
                /* SerializerUtil.kt:42 */
   12     20   
            }
          21  +
            /* JsonSerializerGenerator.kt:537 */
   13     22   
        }
          23  +
        /* JsonSerializerGenerator.kt:515 */
   14     24   
        object_2.finish();
          25  +
        /* JsonSerializerGenerator.kt:382 */
   15     26   
    }
          27  +
    /* JsonSerializerGenerator.kt:372 */
   16     28   
    Ok(())
          29  +
    /* JsonSerializerGenerator.kt:358 */
   17     30   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_request_body.rs

@@ -1,1 +42,64 @@
    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_malformed_request_body_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::malformed_request_body::MalformedRequestBodyOutput,
    9     11   
    crate::operation::malformed_request_body::MalformedRequestBodyError,
   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::malformed_request_body::MalformedRequestBodyError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::malformed_request_body::MalformedRequestBodyError::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_malformed_request_body_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::malformed_request_body::MalformedRequestBodyOutput,
   25     34   
    crate::operation::malformed_request_body::MalformedRequestBodyError,
   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::malformed_request_body::builders::MalformedRequestBodyOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}
   33     48   
          49  +
/* JsonSerializerGenerator.kt:287 */
   34     50   
pub fn ser_malformed_request_body_input(
   35     51   
    input: &crate::operation::malformed_request_body::MalformedRequestBodyInput,
   36     52   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          53  +
    /* JsonSerializerGenerator.kt:291 */
   37     54   
    let mut out = String::new();
          55  +
    /* JsonSerializerGenerator.kt:292 */
   38     56   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          57  +
    /* JsonSerializerGenerator.kt:375 */
   39     58   
    crate::protocol_serde::shape_malformed_request_body_input::ser_malformed_request_body_input_input(&mut object, input)?;
          59  +
    /* JsonSerializerGenerator.kt:295 */
   40     60   
    object.finish();
          61  +
    /* JsonSerializerGenerator.kt:296 */
   41     62   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          63  +
    /* JsonSerializerGenerator.kt:287 */
   42     64   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_request_body_input.rs

@@ -1,1 +19,28 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_request_body_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_request_body::MalformedRequestBodyInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.float {
           9  +
        /* JsonSerializerGenerator.kt:432 */
    7     10   
        object.key("float").number(
    8     11   
            #[allow(clippy::useless_conversion)]
    9     12   
            ::aws_smithy_types::Number::Float((*var_1).into()),
   10     13   
        );
          14  +
        /* JsonSerializerGenerator.kt:382 */
   11     15   
    }
          16  +
    /* JsonSerializerGenerator.kt:382 */
   12     17   
    if let Some(var_2) = &input.int {
          18  +
        /* JsonSerializerGenerator.kt:432 */
   13     19   
        object.key("int").number(
   14     20   
            #[allow(clippy::useless_conversion)]
   15     21   
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
   16     22   
        );
          23  +
        /* JsonSerializerGenerator.kt:382 */
   17     24   
    }
          25  +
    /* JsonSerializerGenerator.kt:372 */
   18     26   
    Ok(())
          27  +
    /* JsonSerializerGenerator.kt:358 */
   19     28   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_short.rs

@@ -1,1 +55,85 @@
    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_malformed_short_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::malformed_short::MalformedShortOutput, crate::operation::malformed_short::MalformedShortError> {
          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::malformed_short::MalformedShortError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::malformed_short::MalformedShortError::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_malformed_short_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::malformed_short::MalformedShortOutput, crate::operation::malformed_short::MalformedShortError> {
          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::malformed_short::builders::MalformedShortOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}
   27     42   
          43  +
/* HttpBindingGenerator.kt:542 */
   28     44   
pub fn ser_malformed_short_headers(
   29     45   
    input: &crate::operation::malformed_short::MalformedShortInput,
   30     46   
    mut builder: ::http::request::Builder,
   31     47   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          48  +
    /* HttpBindingGenerator.kt:592 */
   32     49   
    if let ::std::option::Option::Some(inner_1) = &input.short_in_header {
          50  +
        /* HttpBindingGenerator.kt:690 */
   33     51   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_1);
          52  +
        /* HttpBindingGenerator.kt:704 */
   34     53   
        let formatted_2 = encoder.encode();
          54  +
        /* HttpBindingGenerator.kt:706 */
   35     55   
        let header_value = formatted_2;
   36     56   
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   37     57   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   38     58   
                "short_in_header",
   39     59   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   40     60   
            )
   41     61   
        })?;
   42     62   
        builder = builder.header("shortInHeader", header_value);
          63  +
        /* HttpBindingGenerator.kt:592 */
   43     64   
    }
          65  +
    /* HttpBindingGenerator.kt:555 */
   44     66   
    Ok(builder)
          67  +
    /* HttpBindingGenerator.kt:542 */
   45     68   
}
   46     69   
          70  +
/* JsonSerializerGenerator.kt:287 */
   47     71   
pub fn ser_malformed_short_input(
   48     72   
    input: &crate::operation::malformed_short::MalformedShortInput,
   49     73   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          74  +
    /* JsonSerializerGenerator.kt:291 */
   50     75   
    let mut out = String::new();
          76  +
    /* JsonSerializerGenerator.kt:292 */
   51     77   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          78  +
    /* JsonSerializerGenerator.kt:375 */
   52     79   
    crate::protocol_serde::shape_malformed_short_input::ser_malformed_short_input_input(&mut object, input)?;
          80  +
    /* JsonSerializerGenerator.kt:295 */
   53     81   
    object.finish();
          82  +
    /* JsonSerializerGenerator.kt:296 */
   54     83   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          84  +
    /* JsonSerializerGenerator.kt:287 */
   55     85   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_short_input.rs

@@ -1,1 +13,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_short_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_short::MalformedShortInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.short_in_body {
           9  +
        /* JsonSerializerGenerator.kt:432 */
    7     10   
        object.key("shortInBody").number(
    8     11   
            #[allow(clippy::useless_conversion)]
    9     12   
            ::aws_smithy_types::Number::NegInt((*var_1).into()),
   10     13   
        );
          14  +
        /* JsonSerializerGenerator.kt:382 */
   11     15   
    }
          16  +
    /* JsonSerializerGenerator.kt:372 */
   12     17   
    Ok(())
          18  +
    /* JsonSerializerGenerator.kt:358 */
   13     19   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_string.rs

@@ -1,1 +44,66 @@
    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_malformed_string_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::malformed_string::MalformedStringOutput, crate::operation::malformed_string::MalformedStringError> {
          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::malformed_string::MalformedStringError::unhandled)?;
          15  +
    /* ProtocolParserGenerator.kt:120 */
   11     16   
    let generic = generic_builder.build();
          17  +
    /* ProtocolParserGenerator.kt:185 */
   12     18   
    Err(crate::operation::malformed_string::MalformedStringError::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_malformed_string_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::malformed_string::MalformedStringOutput, crate::operation::malformed_string::MalformedStringError> {
          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::malformed_string::builders::MalformedStringOutputBuilder::default();
          36  +
        /* ClientBuilderInstantiator.kt:56 */
   24     37   
        output.build()
          38  +
        /* ProtocolParserGenerator.kt:77 */
   25     39   
    })
          40  +
    /* ProtocolParserGenerator.kt:71 */
   26     41   
}
   27     42   
          43  +
/* HttpBindingGenerator.kt:542 */
   28     44   
pub fn ser_malformed_string_headers(
   29     45   
    input: &crate::operation::malformed_string::MalformedStringInput,
   30     46   
    mut builder: ::http::request::Builder,
   31     47   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          48  +
    /* HttpBindingGenerator.kt:592 */
   32     49   
    if let ::std::option::Option::Some(inner_1) = &input.blob {
          50  +
        /* HttpBindingGenerator.kt:704 */
   33     51   
        let formatted_2 = ::aws_smithy_types::base64::encode(inner_1);
          52  +
        /* HttpBindingGenerator.kt:706 */
   34     53   
        let header_value = formatted_2;
   35     54   
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   36     55   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   37     56   
                "blob",
   38     57   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   39     58   
            )
   40     59   
        })?;
   41     60   
        builder = builder.header("amz-media-typed-header", header_value);
          61  +
        /* HttpBindingGenerator.kt:592 */
   42     62   
    }
          63  +
    /* HttpBindingGenerator.kt:555 */
   43     64   
    Ok(builder)
          65  +
    /* HttpBindingGenerator.kt:542 */
   44     66   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_timestamp_body_date_time.rs

@@ -1,1 +42,64 @@
    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_malformed_timestamp_body_date_time_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::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeOutput,
    9     11   
    crate::operation::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeError,
   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::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeError::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_malformed_timestamp_body_date_time_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::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeOutput,
   25     34   
    crate::operation::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeError,
   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::malformed_timestamp_body_date_time::builders::MalformedTimestampBodyDateTimeOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}
   33     48   
          49  +
/* JsonSerializerGenerator.kt:287 */
   34     50   
pub fn ser_malformed_timestamp_body_date_time_input(
   35     51   
    input: &crate::operation::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeInput,
   36     52   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          53  +
    /* JsonSerializerGenerator.kt:291 */
   37     54   
    let mut out = String::new();
          55  +
    /* JsonSerializerGenerator.kt:292 */
   38     56   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          57  +
    /* JsonSerializerGenerator.kt:375 */
   39     58   
    crate::protocol_serde::shape_malformed_timestamp_body_date_time_input::ser_malformed_timestamp_body_date_time_input_input(&mut object, input)?;
          59  +
    /* JsonSerializerGenerator.kt:295 */
   40     60   
    object.finish();
          61  +
    /* JsonSerializerGenerator.kt:296 */
   41     62   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          63  +
    /* JsonSerializerGenerator.kt:287 */
   42     64   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_timestamp_body_date_time_input.rs

@@ -1,1 +12,18 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_timestamp_body_date_time_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_timestamp_body_date_time::MalformedTimestampBodyDateTimeInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.timestamp {
           9  +
        /* JsonSerializerGenerator.kt:448 */
    7     10   
        object
    8     11   
            .key("timestamp")
    9     12   
            .date_time(var_1, ::aws_smithy_types::date_time::Format::DateTime)?;
          13  +
        /* JsonSerializerGenerator.kt:382 */
   10     14   
    }
          15  +
    /* JsonSerializerGenerator.kt:372 */
   11     16   
    Ok(())
          17  +
    /* JsonSerializerGenerator.kt:358 */
   12     18   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_timestamp_body_default.rs

@@ -1,1 +42,64 @@
    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_malformed_timestamp_body_default_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::malformed_timestamp_body_default::MalformedTimestampBodyDefaultOutput,
    9     11   
    crate::operation::malformed_timestamp_body_default::MalformedTimestampBodyDefaultError,
   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::malformed_timestamp_body_default::MalformedTimestampBodyDefaultError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::malformed_timestamp_body_default::MalformedTimestampBodyDefaultError::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_malformed_timestamp_body_default_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::malformed_timestamp_body_default::MalformedTimestampBodyDefaultOutput,
   25     34   
    crate::operation::malformed_timestamp_body_default::MalformedTimestampBodyDefaultError,
   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::malformed_timestamp_body_default::builders::MalformedTimestampBodyDefaultOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}
   33     48   
          49  +
/* JsonSerializerGenerator.kt:287 */
   34     50   
pub fn ser_malformed_timestamp_body_default_input(
   35     51   
    input: &crate::operation::malformed_timestamp_body_default::MalformedTimestampBodyDefaultInput,
   36     52   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          53  +
    /* JsonSerializerGenerator.kt:291 */
   37     54   
    let mut out = String::new();
          55  +
    /* JsonSerializerGenerator.kt:292 */
   38     56   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          57  +
    /* JsonSerializerGenerator.kt:375 */
   39     58   
    crate::protocol_serde::shape_malformed_timestamp_body_default_input::ser_malformed_timestamp_body_default_input_input(&mut object, input)?;
          59  +
    /* JsonSerializerGenerator.kt:295 */
   40     60   
    object.finish();
          61  +
    /* JsonSerializerGenerator.kt:296 */
   41     62   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          63  +
    /* JsonSerializerGenerator.kt:287 */
   42     64   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_timestamp_body_default_input.rs

@@ -1,1 +12,18 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* JsonSerializerGenerator.kt:358 */
    2      3   
pub fn ser_malformed_timestamp_body_default_input_input(
    3      4   
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      5   
    input: &crate::operation::malformed_timestamp_body_default::MalformedTimestampBodyDefaultInput,
    5      6   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
           7  +
    /* JsonSerializerGenerator.kt:382 */
    6      8   
    if let Some(var_1) = &input.timestamp {
           9  +
        /* JsonSerializerGenerator.kt:448 */
    7     10   
        object
    8     11   
            .key("timestamp")
    9     12   
            .date_time(var_1, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
          13  +
        /* JsonSerializerGenerator.kt:382 */
   10     14   
    }
          15  +
    /* JsonSerializerGenerator.kt:372 */
   11     16   
    Ok(())
          17  +
    /* JsonSerializerGenerator.kt:358 */
   12     18   
}

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/protocol_serde/shape_malformed_timestamp_body_http_date.rs

@@ -1,1 +42,64 @@
    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_malformed_timestamp_body_http_date_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::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateOutput,
    9     11   
    crate::operation::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateError,
   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::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateError::unhandled)?;
          18  +
    /* ProtocolParserGenerator.kt:120 */
   14     19   
    let generic = generic_builder.build();
          20  +
    /* ProtocolParserGenerator.kt:185 */
   15     21   
    Err(crate::operation::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateError::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_malformed_timestamp_body_http_date_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::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateOutput,
   25     34   
    crate::operation::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateError,
   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::malformed_timestamp_body_http_date::builders::MalformedTimestampBodyHttpDateOutputBuilder::default();
          42  +
        /* ClientBuilderInstantiator.kt:56 */
   30     43   
        output.build()
          44  +
        /* ProtocolParserGenerator.kt:77 */
   31     45   
    })
          46  +
    /* ProtocolParserGenerator.kt:71 */
   32     47   
}
   33     48   
          49  +
/* JsonSerializerGenerator.kt:287 */
   34     50   
pub fn ser_malformed_timestamp_body_http_date_input(
   35     51   
    input: &crate::operation::malformed_timestamp_body_http_date::MalformedTimestampBodyHttpDateInput,
   36     52   
) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
          53  +
    /* JsonSerializerGenerator.kt:291 */
   37     54   
    let mut out = String::new();
          55  +
    /* JsonSerializerGenerator.kt:292 */
   38     56   
    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
          57  +
    /* JsonSerializerGenerator.kt:375 */
   39     58   
    crate::protocol_serde::shape_malformed_timestamp_body_http_date_input::ser_malformed_timestamp_body_http_date_input_input(&mut object, input)?;
          59  +
    /* JsonSerializerGenerator.kt:295 */
   40     60   
    object.finish();
          61  +
    /* JsonSerializerGenerator.kt:296 */
   41     62   
    Ok(::aws_smithy_types::body::SdkBody::from(out))
          63  +
    /* JsonSerializerGenerator.kt:287 */
   42     64   
}