aws_sdk_support/
protocol_serde.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(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>
8where
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
18pub 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
26pub(crate) mod shape_add_attachments_to_set;
27
28pub(crate) mod shape_add_communication_to_case;
29
30pub(crate) mod shape_create_case;
31
32pub(crate) mod shape_describe_attachment;
33
34pub(crate) mod shape_describe_cases;
35
36pub(crate) mod shape_describe_communications;
37
38pub(crate) mod shape_describe_create_case_options;
39
40pub(crate) mod shape_describe_services;
41
42pub(crate) mod shape_describe_severity_levels;
43
44pub(crate) mod shape_describe_supported_languages;
45
46pub(crate) mod shape_describe_trusted_advisor_check_refresh_statuses;
47
48pub(crate) mod shape_describe_trusted_advisor_check_result;
49
50pub(crate) mod shape_describe_trusted_advisor_check_summaries;
51
52pub(crate) mod shape_describe_trusted_advisor_checks;
53
54pub(crate) mod shape_refresh_trusted_advisor_check;
55
56pub(crate) mod shape_resolve_case;
57
58pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
59    if data.is_empty() {
60        b"{}"
61    } else {
62        data
63    }
64}
65
66pub(crate) mod shape_add_attachments_to_set_input;
67
68pub(crate) mod shape_add_communication_to_case_input;
69
70pub(crate) mod shape_attachment_id_not_found;
71
72pub(crate) mod shape_attachment_limit_exceeded;
73
74pub(crate) mod shape_attachment_set_expired;
75
76pub(crate) mod shape_attachment_set_id_not_found;
77
78pub(crate) mod shape_attachment_set_size_limit_exceeded;
79
80pub(crate) mod shape_case_creation_limit_exceeded;
81
82pub(crate) mod shape_case_id_not_found;
83
84pub(crate) mod shape_create_case_input;
85
86pub(crate) mod shape_describe_attachment_input;
87
88pub(crate) mod shape_describe_attachment_limit_exceeded;
89
90pub(crate) mod shape_describe_cases_input;
91
92pub(crate) mod shape_describe_communications_input;
93
94pub(crate) mod shape_describe_create_case_options_input;
95
96pub(crate) mod shape_describe_services_input;
97
98pub(crate) mod shape_describe_severity_levels_input;
99
100pub(crate) mod shape_describe_supported_languages_input;
101
102pub(crate) mod shape_describe_trusted_advisor_check_refresh_statuses_input;
103
104pub(crate) mod shape_describe_trusted_advisor_check_result_input;
105
106pub(crate) mod shape_describe_trusted_advisor_check_summaries_input;
107
108pub(crate) mod shape_describe_trusted_advisor_checks_input;
109
110pub(crate) mod shape_internal_server_error;
111
112pub(crate) mod shape_refresh_trusted_advisor_check_input;
113
114pub(crate) mod shape_resolve_case_input;
115
116pub(crate) mod shape_throttling_exception;
117
118pub(crate) mod shape_attachment;
119
120pub(crate) mod shape_case_list;
121
122pub(crate) mod shape_communication_list;
123
124pub(crate) mod shape_communication_type_options_list;
125
126pub(crate) mod shape_service_list;
127
128pub(crate) mod shape_severity_levels_list;
129
130pub(crate) mod shape_supported_languages_list;
131
132pub(crate) mod shape_trusted_advisor_check_list;
133
134pub(crate) mod shape_trusted_advisor_check_refresh_status;
135
136pub(crate) mod shape_trusted_advisor_check_refresh_status_list;
137
138pub(crate) mod shape_trusted_advisor_check_result;
139
140pub(crate) mod shape_trusted_advisor_check_summary_list;
141
142pub(crate) mod shape_case_details;
143
144pub(crate) mod shape_communication;
145
146pub(crate) mod shape_communication_type_options;
147
148pub(crate) mod shape_service;
149
150pub(crate) mod shape_severity_level;
151
152pub(crate) mod shape_supported_language;
153
154pub(crate) mod shape_trusted_advisor_category_specific_summary;
155
156pub(crate) mod shape_trusted_advisor_check_description;
157
158pub(crate) mod shape_trusted_advisor_check_summary;
159
160pub(crate) mod shape_trusted_advisor_resource_detail_list;
161
162pub(crate) mod shape_trusted_advisor_resources_summary;
163
164pub(crate) mod shape_attachment_set;
165
166pub(crate) mod shape_category_list;
167
168pub(crate) mod shape_cc_email_address_list;
169
170pub(crate) mod shape_dates_without_support_list;
171
172pub(crate) mod shape_recent_case_communications;
173
174pub(crate) mod shape_string_list;
175
176pub(crate) mod shape_supported_hours_list;
177
178pub(crate) mod shape_trusted_advisor_cost_optimizing_summary;
179
180pub(crate) mod shape_trusted_advisor_resource_detail;
181
182pub(crate) mod shape_attachment_details;
183
184pub(crate) mod shape_category;
185
186pub(crate) mod shape_date_interval;
187
188pub(crate) mod shape_supported_hour;