Server Test

Server Test

rev. 03e6e47f15dfd569240d570d98975ebba692c405

Files changed:

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

@@ -0,1 +0,574 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub(crate) mod shape_all_query_string_types;
           3  +
           4  +
pub(crate) mod shape_constant_and_variable_query_string;
           5  +
           6  +
pub(crate) mod shape_constant_query_string;
           7  +
           8  +
pub(crate) mod shape_content_type_parameters;
           9  +
          10  +
pub(crate) mod shape_datetime_offsets;
          11  +
          12  +
pub(crate) mod shape_document_type;
          13  +
          14  +
pub(crate) mod shape_document_type_as_map_value;
          15  +
          16  +
pub(crate) mod shape_document_type_as_payload;
          17  +
          18  +
pub(crate) mod shape_empty_input_and_empty_output;
          19  +
          20  +
pub(crate) mod shape_endpoint_operation;
          21  +
          22  +
pub(crate) mod shape_endpoint_with_host_label_operation;
          23  +
          24  +
pub(crate) mod shape_fractional_seconds;
          25  +
          26  +
pub(crate) mod shape_greeting_with_errors;
          27  +
          28  +
pub(crate) mod shape_host_with_path_operation;
          29  +
          30  +
pub(crate) mod shape_http_checksum_required;
          31  +
          32  +
pub(crate) mod shape_http_empty_prefix_headers;
          33  +
          34  +
pub(crate) mod shape_http_enum_payload;
          35  +
          36  +
pub(crate) mod shape_http_payload_traits;
          37  +
          38  +
pub(crate) mod shape_http_payload_traits_with_media_type;
          39  +
          40  +
pub(crate) mod shape_http_payload_with_structure;
          41  +
          42  +
pub(crate) mod shape_http_payload_with_union;
          43  +
          44  +
pub(crate) mod shape_http_prefix_headers;
          45  +
          46  +
pub(crate) mod shape_http_prefix_headers_in_response;
          47  +
          48  +
pub(crate) mod shape_http_request_with_float_labels;
          49  +
          50  +
pub(crate) mod shape_http_request_with_greedy_label_in_path;
          51  +
          52  +
pub(crate) mod shape_http_request_with_labels;
          53  +
          54  +
pub(crate) mod shape_http_request_with_labels_and_timestamp_format;
          55  +
          56  +
pub(crate) mod shape_http_request_with_regex_literal;
          57  +
          58  +
pub(crate) mod shape_http_response_code;
          59  +
          60  +
pub(crate) mod shape_http_string_payload;
          61  +
          62  +
pub(crate) mod shape_ignore_query_params_in_response;
          63  +
          64  +
pub(crate) mod shape_input_and_output_with_headers;
          65  +
          66  +
pub(crate) mod shape_json_blobs;
          67  +
          68  +
pub(crate) mod shape_json_enums;
          69  +
          70  +
pub(crate) mod shape_json_int_enums;
          71  +
          72  +
pub(crate) mod shape_json_lists;
          73  +
          74  +
pub(crate) mod shape_json_maps;
          75  +
          76  +
pub(crate) mod shape_json_timestamps;
          77  +
          78  +
pub(crate) mod shape_json_unions;
          79  +
          80  +
pub(crate) mod shape_malformed_accept_with_body;
          81  +
          82  +
pub(crate) mod shape_malformed_accept_with_generic_string;
          83  +
          84  +
pub(crate) mod shape_malformed_accept_with_payload;
          85  +
          86  +
pub(crate) mod shape_malformed_blob;
          87  +
          88  +
pub(crate) mod shape_malformed_boolean;
          89  +
          90  +
pub(crate) mod shape_malformed_byte;
          91  +
          92  +
pub(crate) mod shape_malformed_content_type_with_body;
          93  +
          94  +
pub(crate) mod shape_malformed_content_type_with_generic_string;
          95  +
          96  +
pub(crate) mod shape_malformed_content_type_with_payload;
          97  +
          98  +
pub(crate) mod shape_malformed_content_type_without_body;
          99  +
         100  +
pub(crate) mod shape_malformed_content_type_without_body_empty_input;
         101  +
         102  +
pub(crate) mod shape_malformed_double;
         103  +
         104  +
pub(crate) mod shape_malformed_float;
         105  +
         106  +
pub(crate) mod shape_malformed_integer;
         107  +
         108  +
pub(crate) mod shape_malformed_list;
         109  +
         110  +
pub(crate) mod shape_malformed_long;
         111  +
         112  +
pub(crate) mod shape_malformed_map;
         113  +
         114  +
pub(crate) mod shape_malformed_request_body;
         115  +
         116  +
pub(crate) mod shape_malformed_short;
         117  +
         118  +
pub(crate) mod shape_malformed_string;
         119  +
         120  +
pub(crate) mod shape_malformed_timestamp_body_date_time;
         121  +
         122  +
pub(crate) mod shape_malformed_timestamp_body_default;
         123  +
         124  +
pub(crate) mod shape_malformed_timestamp_body_http_date;
         125  +
         126  +
pub(crate) mod shape_malformed_timestamp_header_date_time;
         127  +
         128  +
pub(crate) mod shape_malformed_timestamp_header_default;
         129  +
         130  +
pub(crate) mod shape_malformed_timestamp_header_epoch;
         131  +
         132  +
pub(crate) mod shape_malformed_timestamp_path_default;
         133  +
         134  +
pub(crate) mod shape_malformed_timestamp_path_epoch;
         135  +
         136  +
pub(crate) mod shape_malformed_timestamp_path_http_date;
         137  +
         138  +
pub(crate) mod shape_malformed_timestamp_query_default;
         139  +
         140  +
pub(crate) mod shape_malformed_timestamp_query_epoch;
         141  +
         142  +
pub(crate) mod shape_malformed_timestamp_query_http_date;
         143  +
         144  +
pub(crate) mod shape_malformed_union;
         145  +
         146  +
pub(crate) mod shape_media_type_header;
         147  +
         148  +
pub(crate) mod shape_no_input_and_no_output;
         149  +
         150  +
pub(crate) mod shape_no_input_and_output;
         151  +
         152  +
pub(crate) mod shape_null_and_empty_headers_client;
         153  +
         154  +
pub(crate) mod shape_null_and_empty_headers_server;
         155  +
         156  +
pub(crate) mod shape_omits_null_serializes_empty_string;
         157  +
         158  +
pub(crate) mod shape_omits_serializing_empty_lists;
         159  +
         160  +
pub(crate) mod shape_operation_with_defaults;
         161  +
         162  +
pub(crate) mod shape_operation_with_nested_structure;
         163  +
         164  +
pub(crate) mod shape_post_player_action;
         165  +
         166  +
pub(crate) mod shape_post_union_with_json_name;
         167  +
         168  +
pub(crate) mod shape_put_with_content_encoding;
         169  +
         170  +
pub(crate) mod shape_query_idempotency_token_auto_fill;
         171  +
         172  +
pub(crate) mod shape_query_params_as_string_list_map;
         173  +
         174  +
pub(crate) mod shape_query_precedence;
         175  +
         176  +
pub(crate) mod shape_recursive_shapes;
         177  +
         178  +
pub(crate) mod shape_response_code_http_fallback;
         179  +
         180  +
pub(crate) mod shape_response_code_required;
         181  +
         182  +
pub(crate) mod shape_simple_scalar_properties;
         183  +
         184  +
pub(crate) mod shape_sparse_json_lists;
         185  +
         186  +
pub(crate) mod shape_sparse_json_maps;
         187  +
         188  +
pub(crate) mod shape_streaming_traits;
         189  +
         190  +
pub(crate) mod shape_streaming_traits_require_length;
         191  +
         192  +
pub(crate) mod shape_streaming_traits_with_media_type;
         193  +
         194  +
pub(crate) mod shape_test_body_structure;
         195  +
         196  +
pub(crate) mod shape_test_get_no_input_no_payload;
         197  +
         198  +
pub(crate) mod shape_test_get_no_payload;
         199  +
         200  +
pub(crate) mod shape_test_payload_blob;
         201  +
         202  +
pub(crate) mod shape_test_payload_structure;
         203  +
         204  +
pub(crate) mod shape_test_post_no_input_no_payload;
         205  +
         206  +
pub(crate) mod shape_test_post_no_payload;
         207  +
         208  +
pub(crate) mod shape_timestamp_format_headers;
         209  +
         210  +
pub(crate) mod shape_unit_input_and_output;
         211  +
         212  +
pub(crate) mod shape_all_query_string_types_input;
         213  +
         214  +
pub(crate) mod shape_complex_error;
         215  +
         216  +
pub(crate) mod shape_constant_and_variable_query_string_input;
         217  +
         218  +
pub(crate) mod shape_constant_query_string_input;
         219  +
         220  +
/* JsonParserGenerator.kt:227 */
         221  +
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
         222  +
    if data.is_empty() {
         223  +
        b"{}"
         224  +
    } else {
         225  +
        data
         226  +
    }
         227  +
}
         228  +
         229  +
pub(crate) mod shape_content_type_parameters_output;
         230  +
         231  +
pub(crate) mod shape_datetime_offsets_output;
         232  +
         233  +
pub(crate) mod shape_document_type_as_map_value_output;
         234  +
         235  +
pub(crate) mod shape_document_type_as_payload_input;
         236  +
         237  +
/* JsonSerializerGenerator.kt:303 */
         238  +
pub fn serialize_document(input: &::aws_smithy_types::Document) -> ::std::vec::Vec<u8> {
         239  +
    let mut out = String::new();
         240  +
    ::aws_smithy_json::serialize::JsonValueWriter::new(&mut out).document(input);
         241  +
    out.into_bytes()
         242  +
}
         243  +
         244  +
pub(crate) mod shape_document_type_as_payload_output;
         245  +
         246  +
pub(crate) mod shape_document_type_output;
         247  +
         248  +
pub(crate) mod shape_empty_input_and_empty_output_output;
         249  +
         250  +
pub(crate) mod shape_foo_error;
         251  +
         252  +
pub(crate) mod shape_fractional_seconds_output;
         253  +
         254  +
pub(crate) mod shape_greeting_with_errors_output;
         255  +
         256  +
pub(crate) mod shape_http_checksum_required_output;
         257  +
         258  +
pub(crate) mod shape_http_empty_prefix_headers_input;
         259  +
         260  +
pub(crate) mod shape_http_empty_prefix_headers_output;
         261  +
         262  +
pub(crate) mod shape_http_enum_payload_input;
         263  +
         264  +
pub(crate) mod shape_http_enum_payload_output;
         265  +
         266  +
pub(crate) mod shape_http_payload_traits_input;
         267  +
         268  +
pub(crate) mod shape_http_payload_traits_output;
         269  +
         270  +
pub(crate) mod shape_http_payload_traits_with_media_type_input;
         271  +
         272  +
pub(crate) mod shape_http_payload_traits_with_media_type_output;
         273  +
         274  +
pub(crate) mod shape_http_payload_with_structure_input;
         275  +
         276  +
/* JsonSerializerGenerator.kt:260 */
         277  +
pub fn rest_json_unset_struct_payload() -> ::std::vec::Vec<u8> {
         278  +
    b"{}"[..].into()
         279  +
}
         280  +
         281  +
pub(crate) mod shape_http_payload_with_structure_output;
         282  +
         283  +
pub(crate) mod shape_http_payload_with_union_input;
         284  +
         285  +
/* JsonSerializerGenerator.kt:272 */
         286  +
pub fn rest_json_unset_union_payload() -> ::std::vec::Vec<u8> {
         287  +
    ::std::vec::Vec::new()
         288  +
}
         289  +
         290  +
pub(crate) mod shape_http_payload_with_union_output;
         291  +
         292  +
pub(crate) mod shape_http_prefix_headers_in_response_output;
         293  +
         294  +
pub(crate) mod shape_http_prefix_headers_input;
         295  +
         296  +
pub(crate) mod shape_http_prefix_headers_output;
         297  +
         298  +
pub(crate) mod shape_http_request_with_float_labels_input;
         299  +
         300  +
pub(crate) mod shape_http_request_with_greedy_label_in_path_input;
         301  +
         302  +
pub(crate) mod shape_http_request_with_labels_and_timestamp_format_input;
         303  +
         304  +
pub(crate) mod shape_http_request_with_labels_input;
         305  +
         306  +
pub(crate) mod shape_http_request_with_regex_literal_input;
         307  +
         308  +
pub(crate) mod shape_http_response_code_output;
         309  +
         310  +
pub(crate) mod shape_http_string_payload_input;
         311  +
         312  +
pub(crate) mod shape_http_string_payload_output;
         313  +
         314  +
pub(crate) mod shape_ignore_query_params_in_response_output;
         315  +
         316  +
pub(crate) mod shape_input_and_output_with_headers_input;
         317  +
         318  +
pub(crate) mod shape_input_and_output_with_headers_output;
         319  +
         320  +
pub(crate) mod shape_invalid_greeting;
         321  +
         322  +
pub(crate) mod shape_json_blobs_output;
         323  +
         324  +
pub(crate) mod shape_json_enums_output;
         325  +
         326  +
pub(crate) mod shape_json_int_enums_output;
         327  +
         328  +
pub(crate) mod shape_json_lists_output;
         329  +
         330  +
pub(crate) mod shape_json_maps_output;
         331  +
         332  +
pub(crate) mod shape_json_timestamps_output;
         333  +
         334  +
pub(crate) mod shape_json_unions_output;
         335  +
         336  +
pub(crate) mod shape_malformed_accept_with_body_output;
         337  +
         338  +
pub(crate) mod shape_malformed_accept_with_generic_string_output;
         339  +
         340  +
pub(crate) mod shape_malformed_accept_with_payload_output;
         341  +
         342  +
pub(crate) mod shape_malformed_boolean_input;
         343  +
         344  +
pub(crate) mod shape_malformed_byte_input;
         345  +
         346  +
pub(crate) mod shape_malformed_content_type_with_generic_string_input;
         347  +
         348  +
pub(crate) mod shape_malformed_content_type_with_payload_input;
         349  +
         350  +
pub(crate) mod shape_malformed_content_type_without_body_empty_input_input;
         351  +
         352  +
pub(crate) mod shape_malformed_double_input;
         353  +
         354  +
pub(crate) mod shape_malformed_float_input;
         355  +
         356  +
pub(crate) mod shape_malformed_integer_input;
         357  +
         358  +
pub(crate) mod shape_malformed_long_input;
         359  +
         360  +
pub(crate) mod shape_malformed_short_input;
         361  +
         362  +
pub(crate) mod shape_malformed_string_input;
         363  +
         364  +
pub(crate) mod shape_malformed_timestamp_header_date_time_input;
         365  +
         366  +
pub(crate) mod shape_malformed_timestamp_header_default_input;
         367  +
         368  +
pub(crate) mod shape_malformed_timestamp_header_epoch_input;
         369  +
         370  +
pub(crate) mod shape_malformed_timestamp_path_default_input;
         371  +
         372  +
pub(crate) mod shape_malformed_timestamp_path_epoch_input;
         373  +
         374  +
pub(crate) mod shape_malformed_timestamp_path_http_date_input;
         375  +
         376  +
pub(crate) mod shape_malformed_timestamp_query_default_input;
         377  +
         378  +
pub(crate) mod shape_malformed_timestamp_query_epoch_input;
         379  +
         380  +
pub(crate) mod shape_malformed_timestamp_query_http_date_input;
         381  +
         382  +
pub(crate) mod shape_media_type_header_input;
         383  +
         384  +
pub(crate) mod shape_media_type_header_output;
         385  +
         386  +
pub(crate) mod shape_no_input_and_output_output;
         387  +
         388  +
pub(crate) mod shape_null_and_empty_headers_client_input;
         389  +
         390  +
pub(crate) mod shape_null_and_empty_headers_client_output;
         391  +
         392  +
pub(crate) mod shape_null_and_empty_headers_server_input;
         393  +
         394  +
pub(crate) mod shape_null_and_empty_headers_server_output;
         395  +
         396  +
pub(crate) mod shape_omits_null_serializes_empty_string_input;
         397  +
         398  +
pub(crate) mod shape_operation_with_defaults_output;
         399  +
         400  +
pub(crate) mod shape_operation_with_nested_structure_output;
         401  +
         402  +
pub(crate) mod shape_post_player_action_output;
         403  +
         404  +
pub(crate) mod shape_post_union_with_json_name_output;
         405  +
         406  +
pub(crate) mod shape_put_with_content_encoding_input;
         407  +
         408  +
pub(crate) mod shape_query_idempotency_token_auto_fill_input;
         409  +
         410  +
pub(crate) mod shape_query_params_as_string_list_map_input;
         411  +
         412  +
pub(crate) mod shape_query_precedence_input;
         413  +
         414  +
pub(crate) mod shape_recursive_shapes_output;
         415  +
         416  +
pub(crate) mod shape_response_code_http_fallback_output;
         417  +
         418  +
pub(crate) mod shape_response_code_required_output;
         419  +
         420  +
pub(crate) mod shape_simple_scalar_properties_input;
         421  +
         422  +
pub(crate) mod shape_simple_scalar_properties_output;
         423  +
         424  +
pub(crate) mod shape_sparse_json_lists_output;
         425  +
         426  +
pub(crate) mod shape_sparse_json_maps_output;
         427  +
         428  +
pub(crate) mod shape_streaming_traits_input;
         429  +
         430  +
pub(crate) mod shape_streaming_traits_output;
         431  +
         432  +
pub(crate) mod shape_streaming_traits_require_length_input;
         433  +
         434  +
pub(crate) mod shape_streaming_traits_with_media_type_input;
         435  +
         436  +
pub(crate) mod shape_streaming_traits_with_media_type_output;
         437  +
         438  +
pub(crate) mod shape_test_body_structure_input;
         439  +
         440  +
pub(crate) mod shape_test_body_structure_output;
         441  +
         442  +
pub(crate) mod shape_test_get_no_input_no_payload_output;
         443  +
         444  +
pub(crate) mod shape_test_get_no_payload_input;
         445  +
         446  +
pub(crate) mod shape_test_get_no_payload_output;
         447  +
         448  +
pub(crate) mod shape_test_payload_blob_input;
         449  +
         450  +
pub(crate) mod shape_test_payload_blob_output;
         451  +
         452  +
pub(crate) mod shape_test_payload_structure_input;
         453  +
         454  +
pub(crate) mod shape_test_payload_structure_output;
         455  +
         456  +
pub(crate) mod shape_test_post_no_input_no_payload_output;
         457  +
         458  +
pub(crate) mod shape_test_post_no_payload_input;
         459  +
         460  +
pub(crate) mod shape_test_post_no_payload_output;
         461  +
         462  +
pub(crate) mod shape_timestamp_format_headers_input;
         463  +
         464  +
pub(crate) mod shape_timestamp_format_headers_output;
         465  +
         466  +
pub(crate) mod shape_validation_exception;
         467  +
         468  +
pub(crate) mod shape_boolean_list;
         469  +
         470  +
pub(crate) mod shape_client_optional_defaults;
         471  +
         472  +
pub(crate) mod shape_defaults;
         473  +
         474  +
pub(crate) mod shape_dense_boolean_map;
         475  +
         476  +
pub(crate) mod shape_dense_number_map;
         477  +
         478  +
pub(crate) mod shape_dense_set_map;
         479  +
         480  +
pub(crate) mod shape_dense_string_map;
         481  +
         482  +
pub(crate) mod shape_dense_struct_map;
         483  +
         484  +
pub(crate) mod shape_document;
         485  +
         486  +
pub(crate) mod shape_document_valued_map;
         487  +
         488  +
pub(crate) mod shape_foo_enum_list;
         489  +
         490  +
pub(crate) mod shape_foo_enum_map;
         491  +
         492  +
pub(crate) mod shape_foo_enum_set;
         493  +
         494  +
pub(crate) mod shape_integer_enum_list;
         495  +
         496  +
pub(crate) mod shape_integer_enum_map;
         497  +
         498  +
pub(crate) mod shape_integer_enum_set;
         499  +
         500  +
pub(crate) mod shape_integer_list;
         501  +
         502  +
pub(crate) mod shape_my_union;
         503  +
         504  +
pub(crate) mod shape_nested_payload;
         505  +
         506  +
pub(crate) mod shape_nested_string_list;
         507  +
         508  +
pub(crate) mod shape_payload_config;
         509  +
         510  +
pub(crate) mod shape_player_action;
         511  +
         512  +
pub(crate) mod shape_recursive_shapes_input_output_nested1;
         513  +
         514  +
pub(crate) mod shape_simple_list;
         515  +
         516  +
pub(crate) mod shape_simple_map;
         517  +
         518  +
pub(crate) mod shape_simple_union;
         519  +
         520  +
pub(crate) mod shape_sparse_boolean_map;
         521  +
         522  +
pub(crate) mod shape_sparse_number_map;
         523  +
         524  +
pub(crate) mod shape_sparse_set_map;
         525  +
         526  +
pub(crate) mod shape_sparse_short_list;
         527  +
         528  +
pub(crate) mod shape_sparse_string_list;
         529  +
         530  +
pub(crate) mod shape_sparse_string_map;
         531  +
         532  +
pub(crate) mod shape_sparse_struct_map;
         533  +
         534  +
pub(crate) mod shape_string_list;
         535  +
         536  +
pub(crate) mod shape_string_set;
         537  +
         538  +
pub(crate) mod shape_structure_list;
         539  +
         540  +
pub(crate) mod shape_test_config;
         541  +
         542  +
pub(crate) mod shape_timestamp_list;
         543  +
         544  +
pub(crate) mod shape_top_level;
         545  +
         546  +
pub(crate) mod shape_union_payload;
         547  +
         548  +
pub(crate) mod shape_union_with_json_name;
         549  +
         550  +
pub(crate) mod shape_complex_nested_error_data;
         551  +
         552  +
pub(crate) mod shape_dialog;
         553  +
         554  +
pub(crate) mod shape_dialog_list;
         555  +
         556  +
pub(crate) mod shape_dialog_map;
         557  +
         558  +
pub(crate) mod shape_greeting_struct;
         559  +
         560  +
pub(crate) mod shape_recursive_shapes_input_output_nested2;
         561  +
         562  +
pub(crate) mod shape_renamed_greeting;
         563  +
         564  +
pub(crate) mod shape_string_map;
         565  +
         566  +
pub(crate) mod shape_structure_list_member;
         567  +
         568  +
pub(crate) mod shape_test_string_list;
         569  +
         570  +
pub(crate) mod shape_test_string_map;
         571  +
         572  +
pub(crate) mod shape_validation_exception_field;
         573  +
         574  +
pub(crate) mod shape_farewell;

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

@@ -0,1 +0,465 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* RustType.kt:534 */
           3  +
#[allow(clippy::unnecessary_wraps)]
           4  +
/* ServerHttpBoundProtocolGenerator.kt:408 */
           5  +
pub async fn de_all_query_string_types_http_request<B>(
           6  +
    #[allow(unused_variables)] request: ::http::Request<B>,
           7  +
) -> std::result::Result<
           8  +
    crate::input::AllQueryStringTypesInput,
           9  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
          10  +
>
          11  +
where
          12  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
          13  +
    B::Data: Send,
          14  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          15  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
          16  +
{
          17  +
    /* ServerHttpBoundProtocolGenerator.kt:424 */
          18  +
    Ok({
          19  +
        /* RustType.kt:534 */
          20  +
        #[allow(unused_mut)]
          21  +
        /* ServerHttpBoundProtocolGenerator.kt:759 */
          22  +
        let mut input = crate::input::all_query_string_types_input::Builder::default();
          23  +
        /* RustType.kt:534 */
          24  +
        #[allow(unused_variables)]
          25  +
        /* ServerHttpBoundProtocolGenerator.kt:764 */
          26  +
        let ::aws_smithy_runtime_api::http::RequestParts {
          27  +
            uri, headers, body, ..
          28  +
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
          29  +
        /* ServerHttpBoundProtocolGenerator.kt:1221 */
          30  +
        let query_string = uri.query().unwrap_or("");
          31  +
        let pairs = ::form_urlencoded::parse(query_string.as_bytes());
          32  +
        /* ServerHttpBoundProtocolGenerator.kt:1236 */
          33  +
        let mut query_params: ::std::collections::HashMap::<::std::string::String, ::std::vec::Vec::<::std::string::String>> =
          34  +
            /* ServerHttpBoundProtocolGenerator.kt:1238 */::std::collections::HashMap::new()
          35  +
        /* ServerHttpBoundProtocolGenerator.kt:1236 */;
          36  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          37  +
        let mut query_boolean_seen = false;
          38  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          39  +
        let mut query_byte_seen = false;
          40  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          41  +
        let mut query_double_seen = false;
          42  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          43  +
        let mut query_enum_seen = false;
          44  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          45  +
        let mut query_float_seen = false;
          46  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          47  +
        let mut query_integer_seen = false;
          48  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          49  +
        let mut query_integer_enum_seen = false;
          50  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          51  +
        let mut query_long_seen = false;
          52  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          53  +
        let mut query_short_seen = false;
          54  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          55  +
        let mut query_string_seen = false;
          56  +
        /* ServerHttpBoundProtocolGenerator.kt:1247 */
          57  +
        let mut query_timestamp_seen = false;
          58  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          59  +
        let mut query_boolean_list = Vec::new();
          60  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          61  +
        let mut query_double_list = Vec::new();
          62  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          63  +
        let mut query_enum_list = Vec::new();
          64  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          65  +
        let mut query_integer_enum_list = Vec::new();
          66  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          67  +
        let mut query_integer_list = Vec::new();
          68  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          69  +
        let mut query_integer_set = Vec::new();
          70  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          71  +
        let mut query_string_list = Vec::new();
          72  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          73  +
        let mut query_string_set = Vec::new();
          74  +
        /* ServerHttpBoundProtocolGenerator.kt:1250 */
          75  +
        let mut query_timestamp_list = Vec::new();
          76  +
        /* ServerHttpBoundProtocolGenerator.kt:1253 */
          77  +
        for (k, v) in pairs {
          78  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
          79  +
            if !query_boolean_seen && k == "Boolean" {
          80  +
                input = input.set_query_boolean(
          81  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_boolean(
          82  +
                        &v,
          83  +
                    )?,
          84  +
                );
          85  +
                query_boolean_seen = true;
          86  +
            }
          87  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
          88  +
            if !query_byte_seen && k == "Byte" {
          89  +
                input = input.set_query_byte(
          90  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_byte(&v)?,
          91  +
                );
          92  +
                query_byte_seen = true;
          93  +
            }
          94  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
          95  +
            if !query_double_seen && k == "Double" {
          96  +
                input = input.set_query_double(
          97  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_double(&v)?,
          98  +
                );
          99  +
                query_double_seen = true;
         100  +
            }
         101  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         102  +
            if !query_enum_seen && k == "Enum" {
         103  +
                input = input.set_query_enum(
         104  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_enum(&v)?,
         105  +
                );
         106  +
                query_enum_seen = true;
         107  +
            }
         108  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         109  +
            if !query_float_seen && k == "Float" {
         110  +
                input = input.set_query_float(
         111  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_float(&v)?,
         112  +
                );
         113  +
                query_float_seen = true;
         114  +
            }
         115  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         116  +
            if !query_integer_seen && k == "Integer" {
         117  +
                input = input.set_query_integer(
         118  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_integer(
         119  +
                        &v,
         120  +
                    )?,
         121  +
                );
         122  +
                query_integer_seen = true;
         123  +
            }
         124  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         125  +
            if !query_integer_enum_seen && k == "IntegerEnum" {
         126  +
                input = input.set_query_integer_enum(
         127  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_integer_enum(&v)?
         128  +
                );
         129  +
                query_integer_enum_seen = true;
         130  +
            }
         131  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         132  +
            if !query_long_seen && k == "Long" {
         133  +
                input = input.set_query_long(
         134  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_long(&v)?,
         135  +
                );
         136  +
                query_long_seen = true;
         137  +
            }
         138  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         139  +
            if !query_short_seen && k == "Short" {
         140  +
                input = input.set_query_short(
         141  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_short(&v)?,
         142  +
                );
         143  +
                query_short_seen = true;
         144  +
            }
         145  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         146  +
            if !query_string_seen && k == "String" {
         147  +
                input = input.set_query_string(
         148  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_string(&v)?,
         149  +
                );
         150  +
                query_string_seen = true;
         151  +
            }
         152  +
            /* ServerHttpBoundProtocolGenerator.kt:1257 */
         153  +
            if !query_timestamp_seen && k == "Timestamp" {
         154  +
                input = input.set_query_timestamp(
         155  +
                    crate::protocol_serde::shape_all_query_string_types_input::de_query_timestamp(
         156  +
                        &v,
         157  +
                    )?,
         158  +
                );
         159  +
                query_timestamp_seen = true;
         160  +
            }
         161  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         162  +
            if k == "BooleanList" {
         163  +
                /* ServerHttpBoundProtocolGenerator.kt:1318 */
         164  +
                let v = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(&v)?;
         165  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         166  +
                query_boolean_list.push(v);
         167  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         168  +
            }
         169  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         170  +
            else if k == "DoubleList" {
         171  +
                /* ServerHttpBoundProtocolGenerator.kt:1318 */
         172  +
                let v = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(&v)?;
         173  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         174  +
                query_double_list.push(v);
         175  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         176  +
            }
         177  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         178  +
            else if k == "EnumList" {
         179  +
                /* ServerHttpBoundProtocolGenerator.kt:1280 */
         180  +
                let v = v.clone().into_owned();
         181  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         182  +
                query_enum_list.push(v);
         183  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         184  +
            }
         185  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         186  +
            else if k == "IntegerEnumList" {
         187  +
                /* ServerHttpBoundProtocolGenerator.kt:1318 */
         188  +
                let v = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(&v)?;
         189  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         190  +
                query_integer_enum_list.push(v);
         191  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         192  +
            }
         193  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         194  +
            else if k == "IntegerList" {
         195  +
                /* ServerHttpBoundProtocolGenerator.kt:1318 */
         196  +
                let v = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(&v)?;
         197  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         198  +
                query_integer_list.push(v);
         199  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         200  +
            }
         201  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         202  +
            else if k == "IntegerSet" {
         203  +
                /* ServerHttpBoundProtocolGenerator.kt:1318 */
         204  +
                let v = <_ as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(&v)?;
         205  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         206  +
                query_integer_set.push(v);
         207  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         208  +
            }
         209  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         210  +
            else if k == "StringList" {
         211  +
                /* ServerHttpBoundProtocolGenerator.kt:1280 */
         212  +
                let v = v.clone().into_owned();
         213  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         214  +
                query_string_list.push(v);
         215  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         216  +
            }
         217  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         218  +
            else if k == "StringSet" {
         219  +
                /* ServerHttpBoundProtocolGenerator.kt:1280 */
         220  +
                let v = v.clone().into_owned();
         221  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         222  +
                query_string_set.push(v);
         223  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         224  +
            }
         225  +
            /* ServerHttpBoundProtocolGenerator.kt:1270 */
         226  +
            else if k == "TimestampList" {
         227  +
                /* ServerHttpBoundProtocolGenerator.kt:1300 */
         228  +
                let v = ::aws_smithy_types::DateTime::from_str(&v, ::aws_smithy_types::date_time::Format::DateTime)?
         229  +
                /* ServerHttpBoundProtocolGenerator.kt:1314 */;
         230  +
                /* ServerHttpBoundProtocolGenerator.kt:1327 */
         231  +
                query_timestamp_list.push(v);
         232  +
                /* ServerHttpBoundProtocolGenerator.kt:1270 */
         233  +
            }
         234  +
            /* ServerHttpBoundProtocolGenerator.kt:1358 */
         235  +
            let entry = query_params.entry(String::from(k)).or_default();
         236  +
            entry.push(String::from(v));
         237  +
            /* ServerHttpBoundProtocolGenerator.kt:1253 */
         238  +
        }
         239  +
        /* ServerHttpBoundProtocolGenerator.kt:1374 */
         240  +
        input = input.set_query_params_map_of_string_list(
         241  +
            /* ServerHttpBoundProtocolGenerator.kt:1375 */
         242  +
            Some(
         243  +
                /* ServerHttpBoundProtocolGenerator.kt:1376 */
         244  +
                query_params, /* ServerHttpBoundProtocolGenerator.kt:1375 */
         245  +
            ), /* ServerHttpBoundProtocolGenerator.kt:1374 */
         246  +
        );
         247  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         248  +
        if !query_boolean_list.is_empty() {
         249  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         250  +
            input = input.set_query_boolean_list(
         251  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         252  +
                Some(
         253  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         254  +
                    query_boolean_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         255  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         256  +
            );
         257  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         258  +
        }
         259  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         260  +
        if !query_double_list.is_empty() {
         261  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         262  +
            input = input.set_query_double_list(
         263  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         264  +
                Some(
         265  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         266  +
                    query_double_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         267  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         268  +
            );
         269  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         270  +
        }
         271  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         272  +
        if !query_enum_list.is_empty() {
         273  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         274  +
            input = input.set_query_enum_list(
         275  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         276  +
                Some(
         277  +
                    /* ServerHttpBoundProtocolGenerator.kt:1397 */
         278  +
                    crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained(
         279  +
                        /* ServerHttpBoundProtocolGenerator.kt:1405 */
         280  +
                        query_enum_list, /* ServerHttpBoundProtocolGenerator.kt:1397 */
         281  +
                    ), /* ServerHttpBoundProtocolGenerator.kt:1396 */
         282  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         283  +
            );
         284  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         285  +
        }
         286  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         287  +
        if !query_integer_enum_list.is_empty() {
         288  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         289  +
            input = input.set_query_integer_enum_list(
         290  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         291  +
                Some(
         292  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         293  +
                    query_integer_enum_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         294  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         295  +
            );
         296  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         297  +
        }
         298  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         299  +
        if !query_integer_list.is_empty() {
         300  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         301  +
            input = input.set_query_integer_list(
         302  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         303  +
                Some(
         304  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         305  +
                    query_integer_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         306  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         307  +
            );
         308  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         309  +
        }
         310  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         311  +
        if !query_integer_set.is_empty() {
         312  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         313  +
            input = input.set_query_integer_set(
         314  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         315  +
                Some(
         316  +
                    /* ServerHttpBoundProtocolGenerator.kt:1397 */
         317  +
                    crate::unconstrained::integer_set_unconstrained::IntegerSetUnconstrained(
         318  +
                        /* ServerHttpBoundProtocolGenerator.kt:1405 */
         319  +
                        query_integer_set, /* ServerHttpBoundProtocolGenerator.kt:1397 */
         320  +
                    ), /* ServerHttpBoundProtocolGenerator.kt:1396 */
         321  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         322  +
            );
         323  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         324  +
        }
         325  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         326  +
        if !query_string_list.is_empty() {
         327  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         328  +
            input = input.set_query_string_list(
         329  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         330  +
                Some(
         331  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         332  +
                    query_string_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         333  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         334  +
            );
         335  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         336  +
        }
         337  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         338  +
        if !query_string_set.is_empty() {
         339  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         340  +
            input = input.set_query_string_set(
         341  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         342  +
                Some(
         343  +
                    /* ServerHttpBoundProtocolGenerator.kt:1397 */
         344  +
                    crate::unconstrained::string_set_unconstrained::StringSetUnconstrained(
         345  +
                        /* ServerHttpBoundProtocolGenerator.kt:1405 */
         346  +
                        query_string_set, /* ServerHttpBoundProtocolGenerator.kt:1397 */
         347  +
                    ), /* ServerHttpBoundProtocolGenerator.kt:1396 */
         348  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         349  +
            );
         350  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         351  +
        }
         352  +
        /* ServerHttpBoundProtocolGenerator.kt:1389 */
         353  +
        if !query_timestamp_list.is_empty() {
         354  +
            /* ServerHttpBoundProtocolGenerator.kt:1390 */
         355  +
            input = input.set_query_timestamp_list(
         356  +
                /* ServerHttpBoundProtocolGenerator.kt:1396 */
         357  +
                Some(
         358  +
                    /* ServerHttpBoundProtocolGenerator.kt:1405 */
         359  +
                    query_timestamp_list, /* ServerHttpBoundProtocolGenerator.kt:1396 */
         360  +
                ), /* ServerHttpBoundProtocolGenerator.kt:1390 */
         361  +
            );
         362  +
            /* ServerHttpBoundProtocolGenerator.kt:1389 */
         363  +
        }
         364  +
        /* ServerHttpBoundProtocolGenerator.kt:896 */
         365  +
        input.build()?
         366  +
        /* ServerHttpBoundProtocolGenerator.kt:424 */
         367  +
    })
         368  +
    /* ServerHttpBoundProtocolGenerator.kt:408 */
         369  +
}
         370  +
         371  +
/* RustType.kt:534 */
         372  +
#[allow(clippy::unnecessary_wraps)]
         373  +
/* ServerHttpBoundProtocolGenerator.kt:445 */
         374  +
pub fn ser_all_query_string_types_http_response(
         375  +
    #[allow(unused_variables)] output: crate::output::AllQueryStringTypesOutput,
         376  +
) -> std::result::Result<
         377  +
    ::aws_smithy_legacy_http_server::response::Response,
         378  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
         379  +
> {
         380  +
    /* ServerHttpBoundProtocolGenerator.kt:457 */
         381  +
    Ok({
         382  +
        /* RustType.kt:534 */
         383  +
        #[allow(unused_mut)]
         384  +
        /* ServerHttpBoundProtocolGenerator.kt:547 */
         385  +
        let mut builder = ::http::Response::builder();
         386  +
        /* ServerHttpBoundProtocolGenerator.kt:633 */
         387  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
         388  +
            builder,
         389  +
            ::http::header::CONTENT_TYPE,
         390  +
            "application/json",
         391  +
        );
         392  +
        /* ServerHttpBoundProtocolGenerator.kt:718 */
         393  +
        let http_status: u16 = 200;
         394  +
        builder = builder.status(http_status);
         395  +
        /* ServerHttpBoundProtocolGenerator.kt:597 */
         396  +
        let payload =
         397  +
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         398  +
        /* ServerHttpBoundProtocolGenerator.kt:597 */;
         399  +
        /* ServerHttpBoundProtocolGenerator.kt:699 */
         400  +
        let content_length = payload.len();
         401  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
         402  +
            builder,
         403  +
            ::http::header::CONTENT_LENGTH,
         404  +
            content_length,
         405  +
        );
         406  +
        /* ServerHttpBoundProtocolGenerator.kt:603 */
         407  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
         408  +
        /* ServerHttpBoundProtocolGenerator.kt:611 */
         409  +
        builder.body(body)?
         410  +
        /* ServerHttpBoundProtocolGenerator.kt:457 */
         411  +
    })
         412  +
    /* ServerHttpBoundProtocolGenerator.kt:445 */
         413  +
}
         414  +
         415  +
/* RustType.kt:534 */
         416  +
#[allow(clippy::unnecessary_wraps)]
         417  +
/* ServerHttpBoundProtocolGenerator.kt:471 */
         418  +
pub fn ser_all_query_string_types_http_error(
         419  +
    error: &crate::error::AllQueryStringTypesError,
         420  +
) -> std::result::Result<
         421  +
    ::aws_smithy_legacy_http_server::response::Response,
         422  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
         423  +
> {
         424  +
    /* ServerHttpBoundProtocolGenerator.kt:476 */
         425  +
    Ok({
         426  +
        /* ServerHttpBoundProtocolGenerator.kt:492 */
         427  +
        match error {
         428  +
            /* ServerHttpBoundProtocolGenerator.kt:500 */
         429  +
            crate::error::AllQueryStringTypesError::ValidationException(output) => {
         430  +
                /* ServerHttpBoundProtocolGenerator.kt:501 */
         431  +
                let payload = crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(output)?;
         432  +
                /* RustType.kt:534 */
         433  +
                #[allow(unused_mut)]
         434  +
                /* ServerHttpBoundProtocolGenerator.kt:511 */
         435  +
                let mut builder = ::http::Response::builder();
         436  +
                /* ServerHttpBoundProtocolGenerator.kt:633 */
         437  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
         438  +
                    builder,
         439  +
                    ::http::header::CONTENT_TYPE,
         440  +
                    "application/json",
         441  +
                );
         442  +
                /* ServerHttpBoundProtocolGenerator.kt:633 */
         443  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
         444  +
                    builder,
         445  +
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
         446  +
                    "ValidationException",
         447  +
                );
         448  +
                /* ServerHttpBoundProtocolGenerator.kt:699 */
         449  +
                let content_length = payload.len();
         450  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
         451  +
                    builder,
         452  +
                    ::http::header::CONTENT_LENGTH,
         453  +
                    content_length,
         454  +
                );
         455  +
                /* ServerHttpBoundProtocolGenerator.kt:528 */
         456  +
                builder
         457  +
                    .status(400)
         458  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
         459  +
                /* ServerHttpBoundProtocolGenerator.kt:500 */
         460  +
            } /* ServerHttpBoundProtocolGenerator.kt:492 */
         461  +
        }
         462  +
        /* ServerHttpBoundProtocolGenerator.kt:476 */
         463  +
    })
         464  +
    /* ServerHttpBoundProtocolGenerator.kt:471 */
         465  +
}