Server Test

Server Test

rev. 8d0b0b06b5c6b3538919ea3b54d9ba4784f2f355

Files changed:

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_empty_input_and_empty_output.rs

@@ -32,32 +78,78 @@
   52     52   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   53     53   
            builder,
   54     54   
            ::http_1x::header::CONTENT_TYPE,
   55     55   
            "application/json",
   56     56   
        );
   57     57   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   58     58   
        let http_status: u16 = 200;
   59     59   
        builder = builder.status(http_status);
   60     60   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   61     61   
        let payload =
   62         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_empty_input_and_empty_output_output::ser_empty_input_and_empty_output_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_empty_input_and_empty_output_output::ser_empty_input_and_empty_output_output_output_output(&output)?
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   65     65   
        let content_length = payload.len();
   66     66   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   67     67   
            builder,
   68     68   
            ::http_1x::header::CONTENT_LENGTH,
   69     69   
            content_length,
   70     70   
        );
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   72     72   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_endpoint_operation.rs

@@ -34,34 +80,80 @@
   54     54   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "application/json",
   58     58   
        );
   59     59   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   60     60   
        let http_status: u16 = 200;
   61     61   
        builder = builder.status(http_status);
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   63     63   
        let payload =
   64         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   67     67   
        let content_length = payload.len();
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_endpoint_with_host_label_operation.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_fractional_seconds.rs

@@ -34,34 +80,80 @@
   54     54   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "application/json",
   58     58   
        );
   59     59   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   60     60   
        let http_status: u16 = 200;
   61     61   
        builder = builder.status(http_status);
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   63     63   
        let payload =
   64         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_fractional_seconds_output::ser_fractional_seconds_output_output_output(&output)?
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_fractional_seconds_output::ser_fractional_seconds_output_output_output(&output)?
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   67     67   
        let content_length = payload.len();
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_greeting_with_errors.rs

@@ -39,39 +99,99 @@
   59     59   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   60     60   
            builder,
   61     61   
            ::http_1x::header::CONTENT_TYPE,
   62     62   
            "application/json",
   63     63   
        );
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   65     65   
        let http_status: u16 = 200;
   66     66   
        builder = builder.status(http_status);
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   68     68   
        let payload =
   69         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_greeting_with_errors_output::ser_greeting_with_errors_output_output_output(&output)?
          69  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_greeting_with_errors_output::ser_greeting_with_errors_output_output_output(&output)?
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   72     72   
        let content_length = payload.len();
   73     73   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   74     74   
            builder,
   75     75   
            ::http_1x::header::CONTENT_LENGTH,
   76     76   
            content_length,
   77     77   
        );
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   79     79   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_host_with_path_operation.rs

@@ -34,34 +80,80 @@
   54     54   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "application/json",
   58     58   
        );
   59     59   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   60     60   
        let http_status: u16 = 200;
   61     61   
        builder = builder.status(http_status);
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   63     63   
        let payload =
   64         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   67     67   
        let content_length = payload.len();
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_checksum_required.rs

@@ -50,50 +110,110 @@
   70     70   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_TYPE,
   73     73   
            "application/json",
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   76     76   
        let http_status: u16 = 200;
   77     77   
        builder = builder.status(http_status);
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   79     79   
        let payload =
   80         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_http_checksum_required_output::ser_http_checksum_required_output_output_output(&output)?
          80  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_checksum_required_output::ser_http_checksum_required_output_output_output(&output)?
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   83     83   
        let content_length = payload.len();
   84     84   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http_1x::header::CONTENT_LENGTH,
   87     87   
            content_length,
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   90     90   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_empty_prefix_headers.rs

@@ -46,46 +106,106 @@
   66     66   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   67     67   
            builder,
   68     68   
            ::http_1x::header::CONTENT_TYPE,
   69     69   
            "application/json",
   70     70   
        );
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   72     72   
        let http_status: u16 = 200;
   73     73   
        builder = builder.status(http_status);
   74     74   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   75     75   
        let payload =
   76         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_http_empty_prefix_headers_output::ser_http_empty_prefix_headers_output_output_output(&output)?
          76  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_empty_prefix_headers_output::ser_http_empty_prefix_headers_output_output_output(&output)?
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   79     79   
        let content_length = payload.len();
   80     80   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   81     81   
            builder,
   82     82   
            ::http_1x::header::CONTENT_LENGTH,
   83     83   
            content_length,
   84     84   
        );
   85     85   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   86     86   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_enum_payload.rs

@@ -48,48 +108,108 @@
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_TYPE,
   71     71   
            "text/plain",
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_enum_payload_output::ser_payload_http_payload( output.payload)?
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_enum_payload_output::ser_payload_http_payload( output.payload)?
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http_1x::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_enum_payload_output.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_payload_http_payload(
    4      4   
    payload: ::std::option::Option<crate::model::StringEnum>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:330 */
   12         -
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:335 */
          12  +
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:361 */
   19         -
        payload.as_str().as_bytes().to_vec(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:366 */
          19  +
        payload.as_str().as_bytes().to_vec(), /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_traits.rs

@@ -48,48 +108,108 @@
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:679 */
   69     69   
        builder =
   70     70   
            crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_headers(
   71     71   
                &output, builder,
   72     72   
            )?;
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_payload_traits_output::ser_blob_http_payload( output.blob)?
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_payload_traits_output::ser_blob_http_payload( output.blob)?
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http_1x::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_traits_output.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_blob_http_payload(
    4      4   
    payload: ::std::option::Option<::aws_smithy_types::Blob>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:330 */
   12         -
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:335 */
          12  +
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:375 */
   19         -
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:380 */
          19  +
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_traits_with_media_type.rs

@@ -60,60 +120,120 @@
   80     80   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   81     81   
            builder,
   82     82   
            ::http_1x::header::CONTENT_TYPE,
   83     83   
            "text/plain",
   84     84   
        );
   85     85   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   86     86   
        let http_status: u16 = 200;
   87     87   
        builder = builder.status(http_status);
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   89     89   
        let payload =
   90         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_payload_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
          90  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_payload_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
   91     91   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   92     92   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   93     93   
        let content_length = payload.len();
   94     94   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   95     95   
            builder,
   96     96   
            ::http_1x::header::CONTENT_LENGTH,
   97     97   
            content_length,
   98     98   
        );
   99     99   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  100    100   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_traits_with_media_type_output.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_blob_http_payload(
    4      4   
    payload: ::std::option::Option<::aws_smithy_types::Blob>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:330 */
   12         -
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:335 */
          12  +
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:375 */
   19         -
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:380 */
          19  +
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_with_structure.rs

@@ -50,50 +96,96 @@
   70     70   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_TYPE,
   73     73   
            "application/json",
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   76     76   
        let http_status: u16 = 200;
   77     77   
        builder = builder.status(http_status);
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   79     79   
        let payload =
   80         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_payload_with_structure_output::ser_nested_http_payload(& output.nested)?
          80  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_payload_with_structure_output::ser_nested_http_payload(& output.nested)?
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   83     83   
        let content_length = payload.len();
   84     84   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http_1x::header::CONTENT_LENGTH,
   87     87   
            content_length,
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   90     90   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_payload_with_structure_output.rs

@@ -1,1 +44,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_nested_http_payload(
    4      4   
    payload: &::std::option::Option<crate::model::NestedPayload>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload.as_ref() {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:336 */
   12         -
                crate::protocol_serde::rest_json_unset_struct_payload(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:341 */
          12  +
                crate::protocol_serde::rest_json_unset_struct_payload(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:384 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:389 */
   19     19   
        crate::protocol_serde::shape_http_payload_with_structure_output::ser_nested_payload(
   20     20   
            payload,
   21         -
        )?, /* HttpBoundProtocolPayloadGenerator.kt:343 */
          21  +
        )?, /* HttpBoundProtocolPayloadGenerator.kt:348 */
   22     22   
    )
   23         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          23  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   24     24   
}
   25     25   
   26     26   
/* JsonSerializerGenerator.kt:242 */
   27     27   
pub fn ser_nested_payload(
   28     28   
    input: &crate::model::NestedPayload,
   29     29   
) -> std::result::Result<
   30     30   
    ::std::vec::Vec<u8>,
   31     31   
    ::aws_smithy_types::error::operation::SerializationError,
   32     32   
> {
   33     33   
    /* JsonSerializerGenerator.kt:247 */