1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | pub(crate) fn type_erase_result<O, E>(
|
3 + | result: ::std::result::Result<O, E>,
|
4 + | ) -> ::std::result::Result<
|
5 + | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
6 + | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
|
7 + | >
|
8 + | where
|
9 + | O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
10 + | E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
11 + | {
|
12 + | result
|
13 + | .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
|
14 + | .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
|
15 + | .map_err(::std::convert::Into::into)
|
16 + | }
|
17 + |
|
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_send_command;
|
27 + |
|
28 + | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
29 + | if data.is_empty() {
|
30 + | b"{}"
|
31 + | } else {
|
32 + | data
|
33 + | }
|
34 + | }
|
35 + |
|
36 + | pub(crate) mod shape_bad_request_exception;
|
37 + |
|
38 + | pub(crate) mod shape_capacity_exceeded_exception;
|
39 + |
|
40 + | pub(crate) mod shape_invalid_session_exception;
|
41 + |
|
42 + | pub(crate) mod shape_limit_exceeded_exception;
|
43 + |
|
44 + | pub(crate) mod shape_occ_conflict_exception;
|
45 + |
|
46 + | pub(crate) mod shape_rate_exceeded_exception;
|
47 + |
|
48 + | pub(crate) mod shape_send_command_input;
|
49 + |
|
50 + | pub(crate) mod shape_abort_transaction_request;
|
51 + |
|
52 + | pub(crate) mod shape_abort_transaction_result;
|
53 + |
|
54 + | pub(crate) mod shape_commit_transaction_request;
|
55 + |
|
56 + | pub(crate) mod shape_commit_transaction_result;
|
57 + |
|
58 + | pub(crate) mod shape_end_session_request;
|
59 + |
|
60 + | pub(crate) mod shape_end_session_result;
|
61 + |
|
62 + | pub(crate) mod shape_execute_statement_request;
|
63 + |
|
64 + | pub(crate) mod shape_execute_statement_result;
|
65 + |
|
66 + | pub(crate) mod shape_fetch_page_request;
|
67 + |
|
68 + | pub(crate) mod shape_fetch_page_result;
|
69 + |
|
70 + | pub(crate) mod shape_start_session_request;
|
71 + |
|
72 + | pub(crate) mod shape_start_session_result;
|
73 + |
|
74 + | pub(crate) mod shape_start_transaction_request;
|
75 + |
|
76 + | pub(crate) mod shape_start_transaction_result;
|
77 + |
|
78 + | pub(crate) mod shape_io_usage;
|
79 + |
|
80 + | pub(crate) mod shape_page;
|
81 + |
|
82 + | pub(crate) mod shape_timing_information;
|
83 + |
|
84 + | pub(crate) mod shape_value_holder;
|
85 + |
|
86 + | pub(crate) mod shape_value_holders;
|