1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 |
|
3 3 | /// The example tests how servers must support requests containing a `Content-Type` header with parameters.
|
4 4 | pub struct ContentTypeParameters;
|
5 5 |
|
6 - | impl ::aws_smithy_http_server::operation::OperationShape for ContentTypeParameters {
|
7 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
8 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
6 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for ContentTypeParameters {
|
7 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
8 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
9 9 | "aws.protocoltests.json#ContentTypeParameters",
|
10 10 | "aws.protocoltests.json",
|
11 11 | "ContentTypeParameters",
|
12 12 | );
|
13 13 |
|
14 14 | type Input = crate::input::ContentTypeParametersInput;
|
15 15 | type Output = crate::output::ContentTypeParametersOutput;
|
16 16 | type Error = crate::error::ContentTypeParametersError;
|
17 17 | }
|
18 18 |
|
19 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for ContentTypeParameters {
|
20 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
21 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
19 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
20 + | for ContentTypeParameters
|
21 + | {
|
22 + | type RequestFmt =
|
23 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
24 + | type ResponseFmt =
|
25 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
22 26 |
|
23 27 | fn request_fmt() -> Self::RequestFmt {
|
24 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
28 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
25 29 | }
|
26 30 |
|
27 31 | fn response_fmt() -> Self::ResponseFmt {
|
28 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
32 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
29 33 | }
|
30 34 | }
|
31 35 |
|
32 36 | #[allow(missing_docs)] // documentation missing in model
|
33 37 | pub struct PutWithContentEncoding;
|
34 38 |
|
35 - | impl ::aws_smithy_http_server::operation::OperationShape for PutWithContentEncoding {
|
36 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
37 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
39 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for PutWithContentEncoding {
|
40 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
41 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
38 42 | "aws.protocoltests.json#PutWithContentEncoding",
|
39 43 | "aws.protocoltests.json",
|
40 44 | "PutWithContentEncoding",
|
41 45 | );
|
42 46 |
|
43 47 | type Input = crate::input::PutWithContentEncodingInput;
|
44 48 | type Output = crate::output::PutWithContentEncodingOutput;
|
45 49 | type Error = crate::error::PutWithContentEncodingError;
|
46 50 | }
|
47 51 |
|
48 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
|
52 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
49 53 | for PutWithContentEncoding
|
50 54 | {
|
51 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
52 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
55 + | type RequestFmt =
|
56 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
57 + | type ResponseFmt =
|
58 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
53 59 |
|
54 60 | fn request_fmt() -> Self::RequestFmt {
|
55 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
61 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
56 62 | }
|
57 63 |
|
58 64 | fn response_fmt() -> Self::ResponseFmt {
|
59 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
65 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
60 66 | }
|
61 67 | }
|
62 68 |
|
63 69 | #[allow(missing_docs)] // documentation missing in model
|
64 70 | pub struct FractionalSeconds;
|
65 71 |
|
66 - | impl ::aws_smithy_http_server::operation::OperationShape for FractionalSeconds {
|
67 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
68 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
72 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for FractionalSeconds {
|
73 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
74 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
69 75 | "aws.protocoltests.json#FractionalSeconds",
|
70 76 | "aws.protocoltests.json",
|
71 77 | "FractionalSeconds",
|
72 78 | );
|
73 79 |
|
74 80 | type Input = crate::input::FractionalSecondsInput;
|
75 81 | type Output = crate::output::FractionalSecondsOutput;
|
76 82 | type Error = crate::error::FractionalSecondsError;
|
77 83 | }
|
78 84 |
|
79 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for FractionalSeconds {
|
80 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
81 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
85 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
86 + | for FractionalSeconds
|
87 + | {
|
88 + | type RequestFmt =
|
89 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
90 + | type ResponseFmt =
|
91 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
82 92 |
|
83 93 | fn request_fmt() -> Self::RequestFmt {
|
84 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
94 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
85 95 | }
|
86 96 |
|
87 97 | fn response_fmt() -> Self::ResponseFmt {
|
88 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
98 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
89 99 | }
|
90 100 | }
|
91 101 |
|
92 102 | #[allow(missing_docs)] // documentation missing in model
|
93 103 | pub struct DatetimeOffsets;
|
94 104 |
|
95 - | impl ::aws_smithy_http_server::operation::OperationShape for DatetimeOffsets {
|
96 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
97 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
105 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for DatetimeOffsets {
|
106 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
107 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
98 108 | "aws.protocoltests.json#DatetimeOffsets",
|
99 109 | "aws.protocoltests.json",
|
100 110 | "DatetimeOffsets",
|
101 111 | );
|
102 112 |
|
103 113 | type Input = crate::input::DatetimeOffsetsInput;
|
104 114 | type Output = crate::output::DatetimeOffsetsOutput;
|
105 115 | type Error = crate::error::DatetimeOffsetsError;
|
106 116 | }
|
107 117 |
|
108 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for DatetimeOffsets {
|
109 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
110 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
118 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
119 + | for DatetimeOffsets
|
120 + | {
|
121 + | type RequestFmt =
|
122 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
123 + | type ResponseFmt =
|
124 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
111 125 |
|
112 126 | fn request_fmt() -> Self::RequestFmt {
|
113 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
127 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
114 128 | }
|
115 129 |
|
116 130 | fn response_fmt() -> Self::ResponseFmt {
|
117 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
131 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
118 132 | }
|
119 133 | }
|
120 134 |
|
121 135 | #[allow(missing_docs)] // documentation missing in model
|
122 136 | pub struct HostWithPathOperation;
|
123 137 |
|
124 - | impl ::aws_smithy_http_server::operation::OperationShape for HostWithPathOperation {
|
125 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
126 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
138 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for HostWithPathOperation {
|
139 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
140 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
127 141 | "aws.protocoltests.json#HostWithPathOperation",
|
128 142 | "aws.protocoltests.json",
|
129 143 | "HostWithPathOperation",
|
130 144 | );
|
131 145 |
|
132 146 | type Input = crate::input::HostWithPathOperationInput;
|
133 147 | type Output = crate::output::HostWithPathOperationOutput;
|
134 148 | type Error = crate::error::HostWithPathOperationError;
|
135 149 | }
|
136 150 |
|
137 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for HostWithPathOperation {
|
138 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
139 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
151 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
152 + | for HostWithPathOperation
|
153 + | {
|
154 + | type RequestFmt =
|
155 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
156 + | type ResponseFmt =
|
157 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
140 158 |
|
141 159 | fn request_fmt() -> Self::RequestFmt {
|
142 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
160 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
143 161 | }
|
144 162 |
|
145 163 | fn response_fmt() -> Self::ResponseFmt {
|
146 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
164 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
147 165 | }
|
148 166 | }
|
149 167 |
|
150 168 | #[allow(missing_docs)] // documentation missing in model
|
151 169 | pub struct EndpointWithHostLabelOperation;
|
152 170 |
|
153 - | impl ::aws_smithy_http_server::operation::OperationShape for EndpointWithHostLabelOperation {
|
154 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
155 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
171 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for EndpointWithHostLabelOperation {
|
172 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
173 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
156 174 | "aws.protocoltests.json#EndpointWithHostLabelOperation",
|
157 175 | "aws.protocoltests.json",
|
158 176 | "EndpointWithHostLabelOperation",
|
159 177 | );
|
160 178 |
|
161 179 | type Input = crate::input::EndpointWithHostLabelOperationInput;
|
162 180 | type Output = crate::output::EndpointWithHostLabelOperationOutput;
|
163 181 | type Error = crate::error::EndpointWithHostLabelOperationError;
|
164 182 | }
|
165 183 |
|
166 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
|
184 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
167 185 | for EndpointWithHostLabelOperation
|
168 186 | {
|
169 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
170 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
187 + | type RequestFmt =
|
188 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
189 + | type ResponseFmt =
|
190 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
171 191 |
|
172 192 | fn request_fmt() -> Self::RequestFmt {
|
173 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
193 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
174 194 | }
|
175 195 |
|
176 196 | fn response_fmt() -> Self::ResponseFmt {
|
177 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
197 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
178 198 | }
|
179 199 | }
|
180 200 |
|
181 201 | #[allow(missing_docs)] // documentation missing in model
|
182 202 | pub struct EndpointOperation;
|
183 203 |
|
184 - | impl ::aws_smithy_http_server::operation::OperationShape for EndpointOperation {
|
185 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
186 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
204 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for EndpointOperation {
|
205 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
206 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
187 207 | "aws.protocoltests.json#EndpointOperation",
|
188 208 | "aws.protocoltests.json",
|
189 209 | "EndpointOperation",
|
190 210 | );
|
191 211 |
|
192 212 | type Input = crate::input::EndpointOperationInput;
|
193 213 | type Output = crate::output::EndpointOperationOutput;
|
194 214 | type Error = crate::error::EndpointOperationError;
|
195 215 | }
|
196 216 |
|
197 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EndpointOperation {
|
198 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
199 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
217 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
218 + | for EndpointOperation
|
219 + | {
|
220 + | type RequestFmt =
|
221 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
222 + | type ResponseFmt =
|
223 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
200 224 |
|
201 225 | fn request_fmt() -> Self::RequestFmt {
|
202 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
226 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
203 227 | }
|
204 228 |
|
205 229 | fn response_fmt() -> Self::ResponseFmt {
|
206 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
230 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
207 231 | }
|
208 232 | }
|
209 233 |
|
210 234 | /// This operation uses unions for inputs and outputs.
|
211 235 | pub struct JsonUnions;
|
212 236 |
|
213 - | impl ::aws_smithy_http_server::operation::OperationShape for JsonUnions {
|
214 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
215 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
237 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for JsonUnions {
|
238 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
239 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
216 240 | "aws.protocoltests.json#JsonUnions",
|
217 241 | "aws.protocoltests.json",
|
218 242 | "JsonUnions",
|
219 243 | );
|
220 244 |
|
221 245 | type Input = crate::input::JsonUnionsInput;
|
222 246 | type Output = crate::output::JsonUnionsOutput;
|
223 247 | type Error = crate::error::JsonUnionsError;
|
224 248 | }
|
225 249 |
|
226 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for JsonUnions {
|
227 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
228 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
250 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for JsonUnions {
|
251 + | type RequestFmt =
|
252 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
253 + | type ResponseFmt =
|
254 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
229 255 |
|
230 256 | fn request_fmt() -> Self::RequestFmt {
|
231 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
257 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
232 258 | }
|
233 259 |
|
234 260 | fn response_fmt() -> Self::ResponseFmt {
|
235 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
261 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
236 262 | }
|
237 263 | }
|
238 264 |
|
239 265 | /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses.
|
240 266 | pub struct GreetingWithErrors;
|
241 267 |
|
242 - | impl ::aws_smithy_http_server::operation::OperationShape for GreetingWithErrors {
|
243 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
244 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
268 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for GreetingWithErrors {
|
269 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
270 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
245 271 | "aws.protocoltests.json#GreetingWithErrors",
|
246 272 | "aws.protocoltests.json",
|
247 273 | "GreetingWithErrors",
|
248 274 | );
|
249 275 |
|
250 276 | type Input = crate::input::GreetingWithErrorsInput;
|
251 277 | type Output = crate::output::GreetingWithErrorsOutput;
|
252 278 | type Error = crate::error::GreetingWithErrorsError;
|
253 279 | }
|
254 280 |
|
255 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for GreetingWithErrors {
|
256 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
257 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
281 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
282 + | for GreetingWithErrors
|
283 + | {
|
284 + | type RequestFmt =
|
285 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
286 + | type ResponseFmt =
|
287 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
258 288 |
|
259 289 | fn request_fmt() -> Self::RequestFmt {
|
260 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
290 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
261 291 | }
|
262 292 |
|
263 293 | fn response_fmt() -> Self::ResponseFmt {
|
264 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
294 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
265 295 | }
|
266 296 | }
|
267 297 |
|
268 298 | #[allow(missing_docs)] // documentation missing in model
|
269 299 | pub struct SparseNullsOperation;
|
270 300 |
|
271 - | impl ::aws_smithy_http_server::operation::OperationShape for SparseNullsOperation {
|
272 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
273 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
301 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for SparseNullsOperation {
|
302 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
303 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
274 304 | "aws.protocoltests.json#SparseNullsOperation",
|
275 305 | "aws.protocoltests.json",
|
276 306 | "SparseNullsOperation",
|
277 307 | );
|
278 308 |
|
279 309 | type Input = crate::input::SparseNullsOperationInput;
|
280 310 | type Output = crate::output::SparseNullsOperationOutput;
|
281 311 | type Error = crate::error::SparseNullsOperationError;
|
282 312 | }
|
283 313 |
|
284 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for SparseNullsOperation {
|
285 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
286 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
314 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
315 + | for SparseNullsOperation
|
316 + | {
|
317 + | type RequestFmt =
|
318 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
319 + | type ResponseFmt =
|
320 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
287 321 |
|
288 322 | fn request_fmt() -> Self::RequestFmt {
|
289 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
323 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
290 324 | }
|
291 325 |
|
292 326 | fn response_fmt() -> Self::ResponseFmt {
|
293 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
327 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
294 328 | }
|
295 329 | }
|
296 330 |
|
297 331 | #[allow(missing_docs)] // documentation missing in model
|
298 332 | pub struct NullOperation;
|
299 333 |
|
300 - | impl ::aws_smithy_http_server::operation::OperationShape for NullOperation {
|
301 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
302 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
334 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for NullOperation {
|
335 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
336 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
303 337 | "aws.protocoltests.json#NullOperation",
|
304 338 | "aws.protocoltests.json",
|
305 339 | "NullOperation",
|
306 340 | );
|
307 341 |
|
308 342 | type Input = crate::input::NullOperationInput;
|
309 343 | type Output = crate::output::NullOperationOutput;
|
310 344 | type Error = crate::error::NullOperationError;
|
311 345 | }
|
312 346 |
|
313 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for NullOperation {
|
314 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
315 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
347 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for NullOperation {
|
348 + | type RequestFmt =
|
349 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
350 + | type ResponseFmt =
|
351 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
316 352 |
|
317 353 | fn request_fmt() -> Self::RequestFmt {
|
318 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
354 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
319 355 | }
|
320 356 |
|
321 357 | fn response_fmt() -> Self::ResponseFmt {
|
322 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
358 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
323 359 | }
|
324 360 | }
|
325 361 |
|
326 362 | /// This example serializes intEnums as top level properties, in lists, sets, and maps.
|
327 363 | pub struct JsonIntEnums;
|
328 364 |
|
329 - | impl ::aws_smithy_http_server::operation::OperationShape for JsonIntEnums {
|
330 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
331 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
365 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for JsonIntEnums {
|
366 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
367 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
332 368 | "aws.protocoltests.json#JsonIntEnums",
|
333 369 | "aws.protocoltests.json",
|
334 370 | "JsonIntEnums",
|
335 371 | );
|
336 372 |
|
337 373 | type Input = crate::input::JsonIntEnumsInput;
|
338 374 | type Output = crate::output::JsonIntEnumsOutput;
|
339 375 | type Error = crate::error::JsonIntEnumsError;
|
340 376 | }
|
341 377 |
|
342 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for JsonIntEnums {
|
343 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
344 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
378 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for JsonIntEnums {
|
379 + | type RequestFmt =
|
380 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
381 + | type ResponseFmt =
|
382 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
345 383 |
|
346 384 | fn request_fmt() -> Self::RequestFmt {
|
347 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
385 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
348 386 | }
|
349 387 |
|
350 388 | fn response_fmt() -> Self::ResponseFmt {
|
351 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
389 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
352 390 | }
|
353 391 | }
|
354 392 |
|
355 393 | /// This example serializes enums as top level properties, in lists, sets, and maps.
|
356 394 | pub struct JsonEnums;
|
357 395 |
|
358 - | impl ::aws_smithy_http_server::operation::OperationShape for JsonEnums {
|
359 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
360 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
396 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for JsonEnums {
|
397 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
398 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
361 399 | "aws.protocoltests.json#JsonEnums",
|
362 400 | "aws.protocoltests.json",
|
363 401 | "JsonEnums",
|
364 402 | );
|
365 403 |
|
366 404 | type Input = crate::input::JsonEnumsInput;
|
367 405 | type Output = crate::output::JsonEnumsOutput;
|
368 406 | type Error = crate::error::JsonEnumsError;
|
369 407 | }
|
370 408 |
|
371 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for JsonEnums {
|
372 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
373 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
409 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for JsonEnums {
|
410 + | type RequestFmt =
|
411 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
412 + | type ResponseFmt =
|
413 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
374 414 |
|
375 415 | fn request_fmt() -> Self::RequestFmt {
|
376 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
416 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
377 417 | }
|
378 418 |
|
379 419 | fn response_fmt() -> Self::ResponseFmt {
|
380 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
420 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
381 421 | }
|
382 422 | }
|
383 423 |
|
384 424 | /// This example serializes an inline document as part of the payload.
|
385 425 | pub struct PutAndGetInlineDocuments;
|
386 426 |
|
387 - | impl ::aws_smithy_http_server::operation::OperationShape for PutAndGetInlineDocuments {
|
388 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
389 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
427 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for PutAndGetInlineDocuments {
|
428 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
429 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
390 430 | "aws.protocoltests.json#PutAndGetInlineDocuments",
|
391 431 | "aws.protocoltests.json",
|
392 432 | "PutAndGetInlineDocuments",
|
393 433 | );
|
394 434 |
|
395 435 | type Input = crate::input::PutAndGetInlineDocumentsInput;
|
396 436 | type Output = crate::output::PutAndGetInlineDocumentsOutput;
|
397 437 | type Error = crate::error::PutAndGetInlineDocumentsError;
|
398 438 | }
|
399 439 |
|
400 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
|
440 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
401 441 | for PutAndGetInlineDocuments
|
402 442 | {
|
403 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
404 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
443 + | type RequestFmt =
|
444 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
445 + | type ResponseFmt =
|
446 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
405 447 |
|
406 448 | fn request_fmt() -> Self::RequestFmt {
|
407 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
449 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
408 450 | }
|
409 451 |
|
410 452 | fn response_fmt() -> Self::ResponseFmt {
|
411 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
453 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
412 454 | }
|
413 455 | }
|
414 456 |
|
415 457 | #[allow(missing_docs)] // documentation missing in model
|
416 458 | pub struct OperationWithOptionalInputOutput;
|
417 459 |
|
418 - | impl ::aws_smithy_http_server::operation::OperationShape for OperationWithOptionalInputOutput {
|
419 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
420 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
460 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape
|
461 + | for OperationWithOptionalInputOutput
|
462 + | {
|
463 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
464 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
421 465 | "aws.protocoltests.json#OperationWithOptionalInputOutput",
|
422 466 | "aws.protocoltests.json",
|
423 467 | "OperationWithOptionalInputOutput",
|
424 468 | );
|
425 469 |
|
426 470 | type Input = crate::input::OperationWithOptionalInputOutputInput;
|
427 471 | type Output = crate::output::OperationWithOptionalInputOutputOutput;
|
428 472 | type Error = crate::error::OperationWithOptionalInputOutputError;
|
429 473 | }
|
430 474 |
|
431 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
|
475 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
432 476 | for OperationWithOptionalInputOutput
|
433 477 | {
|
434 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
435 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
478 + | type RequestFmt =
|
479 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
480 + | type ResponseFmt =
|
481 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
436 482 |
|
437 483 | fn request_fmt() -> Self::RequestFmt {
|
438 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
484 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
439 485 | }
|
440 486 |
|
441 487 | fn response_fmt() -> Self::ResponseFmt {
|
442 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
488 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
443 489 | }
|
444 490 | }
|
445 491 |
|
446 492 | #[allow(missing_docs)] // documentation missing in model
|
447 493 | pub struct SimpleScalarProperties;
|
448 494 |
|
449 - | impl ::aws_smithy_http_server::operation::OperationShape for SimpleScalarProperties {
|
450 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
451 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
495 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for SimpleScalarProperties {
|
496 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
497 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
452 498 | "aws.protocoltests.json#SimpleScalarProperties",
|
453 499 | "aws.protocoltests.json",
|
454 500 | "SimpleScalarProperties",
|
455 501 | );
|
456 502 |
|
457 503 | type Input = crate::input::SimpleScalarPropertiesInput;
|
458 504 | type Output = crate::output::SimpleScalarPropertiesOutput;
|
459 505 | type Error = crate::error::SimpleScalarPropertiesError;
|
460 506 | }
|
461 507 |
|
462 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
|
508 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
463 509 | for SimpleScalarProperties
|
464 510 | {
|
465 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
466 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
511 + | type RequestFmt =
|
512 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
513 + | type ResponseFmt =
|
514 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
467 515 |
|
468 516 | fn request_fmt() -> Self::RequestFmt {
|
469 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
517 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
470 518 | }
|
471 519 |
|
472 520 | fn response_fmt() -> Self::ResponseFmt {
|
473 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
521 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
474 522 | }
|
475 523 | }
|
476 524 |
|
477 525 | #[allow(missing_docs)] // documentation missing in model
|
478 526 | pub struct KitchenSinkOperation;
|
479 527 |
|
480 - | impl ::aws_smithy_http_server::operation::OperationShape for KitchenSinkOperation {
|
481 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
482 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
528 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for KitchenSinkOperation {
|
529 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
530 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
483 531 | "aws.protocoltests.json#KitchenSinkOperation",
|
484 532 | "aws.protocoltests.json",
|
485 533 | "KitchenSinkOperation",
|
486 534 | );
|
487 535 |
|
488 536 | type Input = crate::input::KitchenSinkOperationInput;
|
489 537 | type Output = crate::output::KitchenSinkOperationOutput;
|
490 538 | type Error = crate::error::KitchenSinkOperationError;
|
491 539 | }
|
492 540 |
|
493 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for KitchenSinkOperation {
|
494 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
495 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
541 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
|
542 + | for KitchenSinkOperation
|
543 + | {
|
544 + | type RequestFmt =
|
545 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
546 + | type ResponseFmt =
|
547 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
496 548 |
|
497 549 | fn request_fmt() -> Self::RequestFmt {
|
498 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
550 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
499 551 | }
|
500 552 |
|
501 553 | fn response_fmt() -> Self::ResponseFmt {
|
502 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
554 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
503 555 | }
|
504 556 | }
|
505 557 |
|
506 558 | #[allow(missing_docs)] // documentation missing in model
|
507 559 | pub struct EmptyOperation;
|
508 560 |
|
509 - | impl ::aws_smithy_http_server::operation::OperationShape for EmptyOperation {
|
510 - | const ID: ::aws_smithy_http_server::shape_id::ShapeId =
|
511 - | ::aws_smithy_http_server::shape_id::ShapeId::new(
|
561 + | impl ::aws_smithy_legacy_http_server::operation::OperationShape for EmptyOperation {
|
562 + | const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
|
563 + | ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
|
512 564 | "aws.protocoltests.json#EmptyOperation",
|
513 565 | "aws.protocoltests.json",
|
514 566 | "EmptyOperation",
|
515 567 | );
|
516 568 |
|
517 569 | type Input = crate::input::EmptyOperationInput;
|
518 570 | type Output = crate::output::EmptyOperationOutput;
|
519 571 | type Error = crate::error::EmptyOperationError;
|
520 572 | }
|
521 573 |
|
522 - | impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EmptyOperation {
|
523 - | type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
524 - | type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
574 + | impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for EmptyOperation {
|
575 + | type RequestFmt =
|
576 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultRequestFmt;
|
577 + | type ResponseFmt =
|
578 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::DefaultResponseFmt;
|
525 579 |
|
526 580 | fn request_fmt() -> Self::RequestFmt {
|
527 - | ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
581 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
|
528 582 | }
|
529 583 |
|
530 584 | fn response_fmt() -> Self::ResponseFmt {
|
531 - | ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
585 + | ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
|
532 586 | }
|
533 587 | }
|