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