1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
2 3 | /* ServerOperationErrorGenerator.kt:63 */
|
3 - | /// Error type for the `OperationWithNestedStructure` operation.
|
4 + | /// Error type for the `InputAndOutputWithHeaders` operation.
|
4 5 | /* ServerOperationErrorGenerator.kt:64 */
|
5 - | /// Each variant represents an error that can occur for the `OperationWithNestedStructure` operation.
|
6 + | /// Each variant represents an error that can occur for the `InputAndOutputWithHeaders` operation.
|
6 7 | /* RustType.kt:534 */
|
7 8 | #[derive(::std::fmt::Debug)]
|
8 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithNestedStructureError {
|
9 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum InputAndOutputWithHeadersError {
|
9 10 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
10 11 | /* ServerOperationErrorGenerator.kt:71 */
|
11 12 | ValidationException(crate::error::ValidationException),
|
12 13 | /* ServerOperationErrorGenerator.kt:66 */
|
13 14 | }
|
14 15 | /* ServerOperationErrorGenerator.kt:75 */
|
15 - | impl ::std::fmt::Display for OperationWithNestedStructureError {
|
16 + | impl ::std::fmt::Display for InputAndOutputWithHeadersError {
|
16 17 | /* ServerOperationErrorGenerator.kt:76 */
|
17 18 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18 19 | /* ServerOperationErrorGenerator.kt:139 */
|
19 20 | match &self {
|
20 21 | /* ServerOperationErrorGenerator.kt:142 */
|
21 - | OperationWithNestedStructureError::ValidationException(_inner) =>
|
22 + | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
22 23 | /* ServerOperationErrorGenerator.kt:78 */
|
23 24 | {
|
24 25 | _inner.fmt(f)
|
25 26 | }
|
26 27 | /* ServerOperationErrorGenerator.kt:139 */
|
27 28 | }
|
28 29 | /* ServerOperationErrorGenerator.kt:76 */
|
29 30 | }
|
30 31 | /* ServerOperationErrorGenerator.kt:75 */
|
31 32 | }
|
32 33 | /* ServerOperationErrorGenerator.kt:83 */
|
33 - | impl OperationWithNestedStructureError {
|
34 + | impl InputAndOutputWithHeadersError {
|
34 35 | /* ServerOperationErrorGenerator.kt:87 */
|
35 - | /// Returns `true` if the error kind is `OperationWithNestedStructureError::ValidationException`.
|
36 + | /// Returns `true` if the error kind is `InputAndOutputWithHeadersError::ValidationException`.
|
36 37 | /* ServerOperationErrorGenerator.kt:88 */
|
37 38 | pub fn is_validation_exception(&self) -> bool {
|
38 39 | /* ServerOperationErrorGenerator.kt:89 */
|
39 40 | matches!(
|
40 41 | &self,
|
41 - | OperationWithNestedStructureError::ValidationException(_)
|
42 + | InputAndOutputWithHeadersError::ValidationException(_)
|
42 43 | )
|
43 44 | /* ServerOperationErrorGenerator.kt:88 */
|
44 45 | }
|
45 46 | /* ServerOperationErrorGenerator.kt:92 */
|
46 47 | /// Returns the error name string by matching the correct variant.
|
47 48 | /* ServerOperationErrorGenerator.kt:93 */
|
48 49 | pub fn name(&self) -> &'static str {
|
49 50 | /* ServerOperationErrorGenerator.kt:139 */
|
50 51 | match &self {
|
51 52 | /* ServerOperationErrorGenerator.kt:142 */
|
52 - | OperationWithNestedStructureError::ValidationException(_inner) =>
|
53 + | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
53 54 | /* ServerOperationErrorGenerator.kt:95 */
|
54 55 | {
|
55 56 | _inner.name()
|
56 57 | }
|
57 58 | /* ServerOperationErrorGenerator.kt:139 */
|
58 59 | }
|
59 60 | /* ServerOperationErrorGenerator.kt:93 */
|
60 61 | }
|
61 62 | /* ServerOperationErrorGenerator.kt:83 */
|
62 63 | }
|
63 64 | /* ServerOperationErrorGenerator.kt:100 */
|
64 - | impl ::std::error::Error for OperationWithNestedStructureError {
|
65 + | impl ::std::error::Error for InputAndOutputWithHeadersError {
|
65 66 | /* ServerOperationErrorGenerator.kt:101 */
|
66 67 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
67 68 | /* ServerOperationErrorGenerator.kt:139 */
|
68 69 | match &self {
|
69 70 | /* ServerOperationErrorGenerator.kt:142 */
|
70 - | OperationWithNestedStructureError::ValidationException(_inner) =>
|
71 + | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
71 72 | /* ServerOperationErrorGenerator.kt:103 */
|
72 73 | {
|
73 74 | Some(_inner)
|
74 75 | }
|
75 76 | /* ServerOperationErrorGenerator.kt:139 */
|
76 77 | }
|
77 78 | /* ServerOperationErrorGenerator.kt:101 */
|
78 79 | }
|
79 80 | /* ServerOperationErrorGenerator.kt:100 */
|
80 81 | }
|
81 82 | /* ServerOperationErrorGenerator.kt:110 */
|
82 83 | impl ::std::convert::From<crate::error::ValidationException>
|
83 - | for crate::error::OperationWithNestedStructureError
|
84 + | for crate::error::InputAndOutputWithHeadersError
|
84 85 | {
|
85 86 | /* ServerOperationErrorGenerator.kt:111 */
|
86 87 | fn from(
|
87 88 | variant: crate::error::ValidationException,
|
88 - | ) -> crate::error::OperationWithNestedStructureError {
|
89 + | ) -> crate::error::InputAndOutputWithHeadersError {
|
89 90 | /* ServerOperationErrorGenerator.kt:112 */
|
90 91 | Self::ValidationException(variant)
|
91 92 | /* ServerOperationErrorGenerator.kt:111 */
|
92 93 | }
|
93 94 | /* ServerOperationErrorGenerator.kt:110 */
|
94 95 | }
|
95 96 |
|
96 - | /// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
97 - | /* RustType.kt:534 */
|
98 - | #[derive(
|
99 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
100 - | )]
|
101 - | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
102 - | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
103 - | pub message: ::std::string::String,
|
104 - | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
105 - | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
106 - | /* StructureGenerator.kt:201 */
|
107 - | }
|
108 - | /* StructureGenerator.kt:135 */
|
109 - | impl ValidationException {
|
110 - | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
111 - | /* StructureGenerator.kt:166 */
|
112 - | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
113 - | /* StructureGenerator.kt:169 */
|
114 - | self.field_list.as_deref()
|
115 - | /* StructureGenerator.kt:166 */
|
116 - | }
|
117 - | /* StructureGenerator.kt:135 */
|
118 - | }
|
119 - | /* ErrorImplGenerator.kt:99 */
|
120 - | impl ValidationException {
|
121 - | /* ErrorImplGenerator.kt:128 */
|
122 - | /// Returns the error message.
|
123 - | pub fn message(&self) -> &str {
|
124 - | &self.message
|
125 - | }
|
126 - | /* ErrorImplGenerator.kt:141 */
|
127 - | #[doc(hidden)]
|
128 - | /// Returns the error name.
|
129 - | pub fn name(&self) -> &'static str {
|
130 - | "ValidationException"
|
131 - | }
|
132 - | /* ErrorImplGenerator.kt:99 */
|
133 - | }
|
134 - | /* ErrorImplGenerator.kt:153 */
|
135 - | impl ::std::fmt::Display for ValidationException {
|
136 - | /* ErrorImplGenerator.kt:154 */
|
137 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
138 - | /* ErrorImplGenerator.kt:161 */
|
139 - | ::std::write!(f, "ValidationException")?;
|
140 - | /* ErrorImplGenerator.kt:166 */
|
141 - | {
|
142 - | /* ErrorImplGenerator.kt:169 */
|
143 - | ::std::write!(f, ": {}", &self.message)?;
|
144 - | /* ErrorImplGenerator.kt:166 */
|
145 - | }
|
146 - | /* ErrorImplGenerator.kt:176 */
|
147 - | Ok(())
|
148 - | /* ErrorImplGenerator.kt:154 */
|
149 - | }
|
150 - | /* ErrorImplGenerator.kt:153 */
|
151 - | }
|
152 - | /* ErrorImplGenerator.kt:180 */
|
153 - | impl ::std::error::Error for ValidationException {}
|
154 - | /* ServerCodegenVisitor.kt:356 */
|
155 - | impl ValidationException {
|
156 - | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
157 - | /* ServerBuilderGenerator.kt:295 */
|
158 - | pub fn builder() -> crate::error::validation_exception::Builder {
|
159 - | /* ServerBuilderGenerator.kt:296 */
|
160 - | crate::error::validation_exception::Builder::default()
|
161 - | /* ServerBuilderGenerator.kt:295 */
|
162 - | }
|
163 - | /* ServerCodegenVisitor.kt:356 */
|
164 - | }
|
165 - |
|
166 97 | /* ServerOperationErrorGenerator.kt:63 */
|
167 - | /// Error type for the `OperationWithDefaults` operation.
|
98 + | /// Error type for the `HttpRequestWithLabels` operation.
|
168 99 | /* ServerOperationErrorGenerator.kt:64 */
|
169 - | /// Each variant represents an error that can occur for the `OperationWithDefaults` operation.
|
100 + | /// Each variant represents an error that can occur for the `HttpRequestWithLabels` operation.
|
170 101 | /* RustType.kt:534 */
|
171 102 | #[derive(::std::fmt::Debug)]
|
172 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithDefaultsError {
|
103 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsError {
|
173 104 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
174 105 | /* ServerOperationErrorGenerator.kt:71 */
|
175 106 | ValidationException(crate::error::ValidationException),
|
176 107 | /* ServerOperationErrorGenerator.kt:66 */
|
177 108 | }
|
178 109 | /* ServerOperationErrorGenerator.kt:75 */
|
179 - | impl ::std::fmt::Display for OperationWithDefaultsError {
|
110 + | impl ::std::fmt::Display for HttpRequestWithLabelsError {
|
180 111 | /* ServerOperationErrorGenerator.kt:76 */
|
181 112 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
182 113 | /* ServerOperationErrorGenerator.kt:139 */
|
183 114 | match &self {
|
184 115 | /* ServerOperationErrorGenerator.kt:142 */
|
185 - | OperationWithDefaultsError::ValidationException(_inner) =>
|
116 + | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
186 117 | /* ServerOperationErrorGenerator.kt:78 */
|
187 118 | {
|
188 119 | _inner.fmt(f)
|
189 120 | }
|
190 121 | /* ServerOperationErrorGenerator.kt:139 */
|
191 122 | }
|
192 123 | /* ServerOperationErrorGenerator.kt:76 */
|
193 124 | }
|
194 125 | /* ServerOperationErrorGenerator.kt:75 */
|
195 126 | }
|
196 127 | /* ServerOperationErrorGenerator.kt:83 */
|
197 - | impl OperationWithDefaultsError {
|
128 + | impl HttpRequestWithLabelsError {
|
198 129 | /* ServerOperationErrorGenerator.kt:87 */
|
199 - | /// Returns `true` if the error kind is `OperationWithDefaultsError::ValidationException`.
|
130 + | /// Returns `true` if the error kind is `HttpRequestWithLabelsError::ValidationException`.
|
200 131 | /* ServerOperationErrorGenerator.kt:88 */
|
201 132 | pub fn is_validation_exception(&self) -> bool {
|
202 133 | /* ServerOperationErrorGenerator.kt:89 */
|
203 - | matches!(&self, OperationWithDefaultsError::ValidationException(_))
|
134 + | matches!(&self, HttpRequestWithLabelsError::ValidationException(_))
|
204 135 | /* ServerOperationErrorGenerator.kt:88 */
|
205 136 | }
|
206 137 | /* ServerOperationErrorGenerator.kt:92 */
|
207 138 | /// Returns the error name string by matching the correct variant.
|
208 139 | /* ServerOperationErrorGenerator.kt:93 */
|
209 140 | pub fn name(&self) -> &'static str {
|
210 141 | /* ServerOperationErrorGenerator.kt:139 */
|
211 142 | match &self {
|
212 143 | /* ServerOperationErrorGenerator.kt:142 */
|
213 - | OperationWithDefaultsError::ValidationException(_inner) =>
|
144 + | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
214 145 | /* ServerOperationErrorGenerator.kt:95 */
|
215 146 | {
|
216 147 | _inner.name()
|
217 148 | }
|
218 149 | /* ServerOperationErrorGenerator.kt:139 */
|
219 150 | }
|
220 151 | /* ServerOperationErrorGenerator.kt:93 */
|
221 152 | }
|
222 153 | /* ServerOperationErrorGenerator.kt:83 */
|
223 154 | }
|
224 155 | /* ServerOperationErrorGenerator.kt:100 */
|
225 - | impl ::std::error::Error for OperationWithDefaultsError {
|
156 + | impl ::std::error::Error for HttpRequestWithLabelsError {
|
226 157 | /* ServerOperationErrorGenerator.kt:101 */
|
227 158 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
228 159 | /* ServerOperationErrorGenerator.kt:139 */
|
229 160 | match &self {
|
230 161 | /* ServerOperationErrorGenerator.kt:142 */
|
231 - | OperationWithDefaultsError::ValidationException(_inner) =>
|
162 + | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
232 163 | /* ServerOperationErrorGenerator.kt:103 */
|
233 164 | {
|
234 165 | Some(_inner)
|
235 166 | }
|
236 167 | /* ServerOperationErrorGenerator.kt:139 */
|
237 168 | }
|
238 169 | /* ServerOperationErrorGenerator.kt:101 */
|
239 170 | }
|
240 171 | /* ServerOperationErrorGenerator.kt:100 */
|
241 172 | }
|
242 173 | /* ServerOperationErrorGenerator.kt:110 */
|
243 174 | impl ::std::convert::From<crate::error::ValidationException>
|
244 - | for crate::error::OperationWithDefaultsError
|
175 + | for crate::error::HttpRequestWithLabelsError
|
245 176 | {
|
246 177 | /* ServerOperationErrorGenerator.kt:111 */
|
247 178 | fn from(
|
248 179 | variant: crate::error::ValidationException,
|
249 - | ) -> crate::error::OperationWithDefaultsError {
|
180 + | ) -> crate::error::HttpRequestWithLabelsError {
|
250 181 | /* ServerOperationErrorGenerator.kt:112 */
|
251 182 | Self::ValidationException(variant)
|
252 183 | /* ServerOperationErrorGenerator.kt:111 */
|
253 184 | }
|
254 185 | /* ServerOperationErrorGenerator.kt:110 */
|
255 186 | }
|
256 187 |
|
257 188 | /* ServerOperationErrorGenerator.kt:63 */
|
258 - | /// Error type for the `MalformedTimestampBodyHttpDate` operation.
|
189 + | /// Error type for the `HttpRequestWithLabelsAndTimestampFormat` operation.
|
259 190 | /* ServerOperationErrorGenerator.kt:64 */
|
260 - | /// Each variant represents an error that can occur for the `MalformedTimestampBodyHttpDate` operation.
|
191 + | /// Each variant represents an error that can occur for the `HttpRequestWithLabelsAndTimestampFormat` operation.
|
261 192 | /* RustType.kt:534 */
|
262 193 | #[derive(::std::fmt::Debug)]
|
263 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyHttpDateError {
|
194 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsAndTimestampFormatError {
|
264 195 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
265 196 | /* ServerOperationErrorGenerator.kt:71 */
|
266 197 | ValidationException(crate::error::ValidationException),
|
267 198 | /* ServerOperationErrorGenerator.kt:66 */
|
268 199 | }
|
269 200 | /* ServerOperationErrorGenerator.kt:75 */
|
270 - | impl ::std::fmt::Display for MalformedTimestampBodyHttpDateError {
|
201 + | impl ::std::fmt::Display for HttpRequestWithLabelsAndTimestampFormatError {
|
271 202 | /* ServerOperationErrorGenerator.kt:76 */
|
272 203 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
273 204 | /* ServerOperationErrorGenerator.kt:139 */
|
274 205 | match &self {
|
275 206 | /* ServerOperationErrorGenerator.kt:142 */
|
276 - | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
207 + | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
277 208 | /* ServerOperationErrorGenerator.kt:78 */
|
278 209 | {
|
279 210 | _inner.fmt(f)
|
280 211 | }
|
281 212 | /* ServerOperationErrorGenerator.kt:139 */
|
282 213 | }
|
283 214 | /* ServerOperationErrorGenerator.kt:76 */
|
284 215 | }
|
285 216 | /* ServerOperationErrorGenerator.kt:75 */
|
286 217 | }
|
287 218 | /* ServerOperationErrorGenerator.kt:83 */
|
288 - | impl MalformedTimestampBodyHttpDateError {
|
219 + | impl HttpRequestWithLabelsAndTimestampFormatError {
|
289 220 | /* ServerOperationErrorGenerator.kt:87 */
|
290 - | /// Returns `true` if the error kind is `MalformedTimestampBodyHttpDateError::ValidationException`.
|
221 + | /// Returns `true` if the error kind is `HttpRequestWithLabelsAndTimestampFormatError::ValidationException`.
|
291 222 | /* ServerOperationErrorGenerator.kt:88 */
|
292 223 | pub fn is_validation_exception(&self) -> bool {
|
293 224 | /* ServerOperationErrorGenerator.kt:89 */
|
294 225 | matches!(
|
295 226 | &self,
|
296 - | MalformedTimestampBodyHttpDateError::ValidationException(_)
|
227 + | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_)
|
297 228 | )
|
298 229 | /* ServerOperationErrorGenerator.kt:88 */
|
299 230 | }
|
300 231 | /* ServerOperationErrorGenerator.kt:92 */
|
301 232 | /// Returns the error name string by matching the correct variant.
|
302 233 | /* ServerOperationErrorGenerator.kt:93 */
|
303 234 | pub fn name(&self) -> &'static str {
|
304 235 | /* ServerOperationErrorGenerator.kt:139 */
|
305 236 | match &self {
|
306 237 | /* ServerOperationErrorGenerator.kt:142 */
|
307 - | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
238 + | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
308 239 | /* ServerOperationErrorGenerator.kt:95 */
|
309 240 | {
|
310 241 | _inner.name()
|
311 242 | }
|
312 243 | /* ServerOperationErrorGenerator.kt:139 */
|
313 244 | }
|
314 245 | /* ServerOperationErrorGenerator.kt:93 */
|
315 246 | }
|
316 247 | /* ServerOperationErrorGenerator.kt:83 */
|
317 248 | }
|
318 249 | /* ServerOperationErrorGenerator.kt:100 */
|
319 - | impl ::std::error::Error for MalformedTimestampBodyHttpDateError {
|
250 + | impl ::std::error::Error for HttpRequestWithLabelsAndTimestampFormatError {
|
320 251 | /* ServerOperationErrorGenerator.kt:101 */
|
321 252 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
322 253 | /* ServerOperationErrorGenerator.kt:139 */
|
323 254 | match &self {
|
324 255 | /* ServerOperationErrorGenerator.kt:142 */
|
325 - | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
256 + | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
326 257 | /* ServerOperationErrorGenerator.kt:103 */
|
327 258 | {
|
328 259 | Some(_inner)
|
329 260 | }
|
330 261 | /* ServerOperationErrorGenerator.kt:139 */
|
331 262 | }
|
332 263 | /* ServerOperationErrorGenerator.kt:101 */
|
333 264 | }
|
334 265 | /* ServerOperationErrorGenerator.kt:100 */
|
335 266 | }
|
336 267 | /* ServerOperationErrorGenerator.kt:110 */
|
337 268 | impl ::std::convert::From<crate::error::ValidationException>
|
338 - | for crate::error::MalformedTimestampBodyHttpDateError
|
269 + | for crate::error::HttpRequestWithLabelsAndTimestampFormatError
|
339 270 | {
|
340 271 | /* ServerOperationErrorGenerator.kt:111 */
|
341 272 | fn from(
|
342 273 | variant: crate::error::ValidationException,
|
343 - | ) -> crate::error::MalformedTimestampBodyHttpDateError {
|
274 + | ) -> crate::error::HttpRequestWithLabelsAndTimestampFormatError {
|
344 275 | /* ServerOperationErrorGenerator.kt:112 */
|
345 276 | Self::ValidationException(variant)
|
346 277 | /* ServerOperationErrorGenerator.kt:111 */
|
347 278 | }
|
348 279 | /* ServerOperationErrorGenerator.kt:110 */
|
349 280 | }
|
350 281 |
|
351 282 | /* ServerOperationErrorGenerator.kt:63 */
|
352 - | /// Error type for the `MalformedTimestampBodyDateTime` operation.
|
283 + | /// Error type for the `HttpRequestWithGreedyLabelInPath` operation.
|
353 284 | /* ServerOperationErrorGenerator.kt:64 */
|
354 - | /// Each variant represents an error that can occur for the `MalformedTimestampBodyDateTime` operation.
|
285 + | /// Each variant represents an error that can occur for the `HttpRequestWithGreedyLabelInPath` operation.
|
355 286 | /* RustType.kt:534 */
|
356 287 | #[derive(::std::fmt::Debug)]
|
357 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDateTimeError {
|
288 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithGreedyLabelInPathError {
|
358 289 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
359 290 | /* ServerOperationErrorGenerator.kt:71 */
|
360 291 | ValidationException(crate::error::ValidationException),
|
361 292 | /* ServerOperationErrorGenerator.kt:66 */
|
362 293 | }
|
363 294 | /* ServerOperationErrorGenerator.kt:75 */
|
364 - | impl ::std::fmt::Display for MalformedTimestampBodyDateTimeError {
|
295 + | impl ::std::fmt::Display for HttpRequestWithGreedyLabelInPathError {
|
365 296 | /* ServerOperationErrorGenerator.kt:76 */
|
366 297 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
367 298 | /* ServerOperationErrorGenerator.kt:139 */
|
368 299 | match &self {
|
369 300 | /* ServerOperationErrorGenerator.kt:142 */
|
370 - | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
301 + | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
371 302 | /* ServerOperationErrorGenerator.kt:78 */
|
372 303 | {
|
373 304 | _inner.fmt(f)
|
374 305 | }
|
375 306 | /* ServerOperationErrorGenerator.kt:139 */
|
376 307 | }
|
377 308 | /* ServerOperationErrorGenerator.kt:76 */
|
378 309 | }
|
379 310 | /* ServerOperationErrorGenerator.kt:75 */
|
380 311 | }
|
381 312 | /* ServerOperationErrorGenerator.kt:83 */
|
382 - | impl MalformedTimestampBodyDateTimeError {
|
313 + | impl HttpRequestWithGreedyLabelInPathError {
|
383 314 | /* ServerOperationErrorGenerator.kt:87 */
|
384 - | /// Returns `true` if the error kind is `MalformedTimestampBodyDateTimeError::ValidationException`.
|
315 + | /// Returns `true` if the error kind is `HttpRequestWithGreedyLabelInPathError::ValidationException`.
|
385 316 | /* ServerOperationErrorGenerator.kt:88 */
|
386 317 | pub fn is_validation_exception(&self) -> bool {
|
387 318 | /* ServerOperationErrorGenerator.kt:89 */
|
388 319 | matches!(
|
389 320 | &self,
|
390 - | MalformedTimestampBodyDateTimeError::ValidationException(_)
|
321 + | HttpRequestWithGreedyLabelInPathError::ValidationException(_)
|
391 322 | )
|
392 323 | /* ServerOperationErrorGenerator.kt:88 */
|
393 324 | }
|
394 325 | /* ServerOperationErrorGenerator.kt:92 */
|
395 326 | /// Returns the error name string by matching the correct variant.
|
396 327 | /* ServerOperationErrorGenerator.kt:93 */
|
397 328 | pub fn name(&self) -> &'static str {
|
398 329 | /* ServerOperationErrorGenerator.kt:139 */
|
399 330 | match &self {
|
400 331 | /* ServerOperationErrorGenerator.kt:142 */
|
401 - | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
332 + | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
402 333 | /* ServerOperationErrorGenerator.kt:95 */
|
403 334 | {
|
404 335 | _inner.name()
|
405 336 | }
|
406 337 | /* ServerOperationErrorGenerator.kt:139 */
|
407 338 | }
|
408 339 | /* ServerOperationErrorGenerator.kt:93 */
|
409 340 | }
|
410 341 | /* ServerOperationErrorGenerator.kt:83 */
|
411 342 | }
|
412 343 | /* ServerOperationErrorGenerator.kt:100 */
|
413 - | impl ::std::error::Error for MalformedTimestampBodyDateTimeError {
|
344 + | impl ::std::error::Error for HttpRequestWithGreedyLabelInPathError {
|
414 345 | /* ServerOperationErrorGenerator.kt:101 */
|
415 346 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
416 347 | /* ServerOperationErrorGenerator.kt:139 */
|
417 348 | match &self {
|
418 349 | /* ServerOperationErrorGenerator.kt:142 */
|
419 - | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
350 + | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
420 351 | /* ServerOperationErrorGenerator.kt:103 */
|
421 352 | {
|
422 353 | Some(_inner)
|
423 354 | }
|
424 355 | /* ServerOperationErrorGenerator.kt:139 */
|
425 356 | }
|
426 357 | /* ServerOperationErrorGenerator.kt:101 */
|
427 358 | }
|
428 359 | /* ServerOperationErrorGenerator.kt:100 */
|
429 360 | }
|
430 361 | /* ServerOperationErrorGenerator.kt:110 */
|
431 362 | impl ::std::convert::From<crate::error::ValidationException>
|
432 - | for crate::error::MalformedTimestampBodyDateTimeError
|
363 + | for crate::error::HttpRequestWithGreedyLabelInPathError
|
433 364 | {
|
434 365 | /* ServerOperationErrorGenerator.kt:111 */
|
435 366 | fn from(
|
436 367 | variant: crate::error::ValidationException,
|
437 - | ) -> crate::error::MalformedTimestampBodyDateTimeError {
|
368 + | ) -> crate::error::HttpRequestWithGreedyLabelInPathError {
|
438 369 | /* ServerOperationErrorGenerator.kt:112 */
|
439 370 | Self::ValidationException(variant)
|
440 371 | /* ServerOperationErrorGenerator.kt:111 */
|
441 372 | }
|
442 373 | /* ServerOperationErrorGenerator.kt:110 */
|
443 374 | }
|
444 375 |
|
445 376 | /* ServerOperationErrorGenerator.kt:63 */
|
446 - | /// Error type for the `MalformedTimestampBodyDefault` operation.
|
377 + | /// Error type for the `HttpRequestWithFloatLabels` operation.
|
447 378 | /* ServerOperationErrorGenerator.kt:64 */
|
448 - | /// Each variant represents an error that can occur for the `MalformedTimestampBodyDefault` operation.
|
379 + | /// Each variant represents an error that can occur for the `HttpRequestWithFloatLabels` operation.
|
449 380 | /* RustType.kt:534 */
|
450 381 | #[derive(::std::fmt::Debug)]
|
451 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDefaultError {
|
382 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithFloatLabelsError {
|
452 383 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
453 384 | /* ServerOperationErrorGenerator.kt:71 */
|
454 385 | ValidationException(crate::error::ValidationException),
|
455 386 | /* ServerOperationErrorGenerator.kt:66 */
|
456 387 | }
|
457 388 | /* ServerOperationErrorGenerator.kt:75 */
|
458 - | impl ::std::fmt::Display for MalformedTimestampBodyDefaultError {
|
389 + | impl ::std::fmt::Display for HttpRequestWithFloatLabelsError {
|
459 390 | /* ServerOperationErrorGenerator.kt:76 */
|
460 391 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
461 392 | /* ServerOperationErrorGenerator.kt:139 */
|
462 393 | match &self {
|
463 394 | /* ServerOperationErrorGenerator.kt:142 */
|
464 - | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
395 + | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
465 396 | /* ServerOperationErrorGenerator.kt:78 */
|
466 397 | {
|
467 398 | _inner.fmt(f)
|
468 399 | }
|
469 400 | /* ServerOperationErrorGenerator.kt:139 */
|
470 401 | }
|
471 402 | /* ServerOperationErrorGenerator.kt:76 */
|
472 403 | }
|
473 404 | /* ServerOperationErrorGenerator.kt:75 */
|
474 405 | }
|
475 406 | /* ServerOperationErrorGenerator.kt:83 */
|
476 - | impl MalformedTimestampBodyDefaultError {
|
407 + | impl HttpRequestWithFloatLabelsError {
|
477 408 | /* ServerOperationErrorGenerator.kt:87 */
|
478 - | /// Returns `true` if the error kind is `MalformedTimestampBodyDefaultError::ValidationException`.
|
409 + | /// Returns `true` if the error kind is `HttpRequestWithFloatLabelsError::ValidationException`.
|
479 410 | /* ServerOperationErrorGenerator.kt:88 */
|
480 411 | pub fn is_validation_exception(&self) -> bool {
|
481 412 | /* ServerOperationErrorGenerator.kt:89 */
|
482 413 | matches!(
|
483 414 | &self,
|
484 - | MalformedTimestampBodyDefaultError::ValidationException(_)
|
415 + | HttpRequestWithFloatLabelsError::ValidationException(_)
|
485 416 | )
|
486 417 | /* ServerOperationErrorGenerator.kt:88 */
|
487 418 | }
|
488 419 | /* ServerOperationErrorGenerator.kt:92 */
|
489 420 | /// Returns the error name string by matching the correct variant.
|
490 421 | /* ServerOperationErrorGenerator.kt:93 */
|
491 422 | pub fn name(&self) -> &'static str {
|
492 423 | /* ServerOperationErrorGenerator.kt:139 */
|
493 424 | match &self {
|
494 425 | /* ServerOperationErrorGenerator.kt:142 */
|
495 - | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
426 + | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
496 427 | /* ServerOperationErrorGenerator.kt:95 */
|
497 428 | {
|
498 429 | _inner.name()
|
499 430 | }
|
500 431 | /* ServerOperationErrorGenerator.kt:139 */
|
501 432 | }
|
502 433 | /* ServerOperationErrorGenerator.kt:93 */
|
503 434 | }
|
504 435 | /* ServerOperationErrorGenerator.kt:83 */
|
505 436 | }
|
506 437 | /* ServerOperationErrorGenerator.kt:100 */
|
507 - | impl ::std::error::Error for MalformedTimestampBodyDefaultError {
|
438 + | impl ::std::error::Error for HttpRequestWithFloatLabelsError {
|
508 439 | /* ServerOperationErrorGenerator.kt:101 */
|
509 440 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
510 441 | /* ServerOperationErrorGenerator.kt:139 */
|
511 442 | match &self {
|
512 443 | /* ServerOperationErrorGenerator.kt:142 */
|
513 - | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
444 + | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
514 445 | /* ServerOperationErrorGenerator.kt:103 */
|
515 446 | {
|
516 447 | Some(_inner)
|
517 448 | }
|
518 449 | /* ServerOperationErrorGenerator.kt:139 */
|
519 450 | }
|
520 451 | /* ServerOperationErrorGenerator.kt:101 */
|
521 452 | }
|
522 453 | /* ServerOperationErrorGenerator.kt:100 */
|
523 454 | }
|
524 455 | /* ServerOperationErrorGenerator.kt:110 */
|
525 456 | impl ::std::convert::From<crate::error::ValidationException>
|
526 - | for crate::error::MalformedTimestampBodyDefaultError
|
457 + | for crate::error::HttpRequestWithFloatLabelsError
|
527 458 | {
|
528 459 | /* ServerOperationErrorGenerator.kt:111 */
|
529 460 | fn from(
|
530 461 | variant: crate::error::ValidationException,
|
531 - | ) -> crate::error::MalformedTimestampBodyDefaultError {
|
462 + | ) -> crate::error::HttpRequestWithFloatLabelsError {
|
532 463 | /* ServerOperationErrorGenerator.kt:112 */
|
533 464 | Self::ValidationException(variant)
|
534 465 | /* ServerOperationErrorGenerator.kt:111 */
|
535 466 | }
|
536 467 | /* ServerOperationErrorGenerator.kt:110 */
|
537 468 | }
|
538 469 |
|
539 470 | /* ServerOperationErrorGenerator.kt:63 */
|
540 - | /// Error type for the `MalformedTimestampHeaderEpoch` operation.
|
471 + | /// Error type for the `HttpRequestWithRegexLiteral` operation.
|
541 472 | /* ServerOperationErrorGenerator.kt:64 */
|
542 - | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderEpoch` operation.
|
473 + | /// Each variant represents an error that can occur for the `HttpRequestWithRegexLiteral` operation.
|
543 474 | /* RustType.kt:534 */
|
544 475 | #[derive(::std::fmt::Debug)]
|
545 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderEpochError {
|
476 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithRegexLiteralError {
|
546 477 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
547 478 | /* ServerOperationErrorGenerator.kt:71 */
|
548 479 | ValidationException(crate::error::ValidationException),
|
549 480 | /* ServerOperationErrorGenerator.kt:66 */
|
550 481 | }
|
551 482 | /* ServerOperationErrorGenerator.kt:75 */
|
552 - | impl ::std::fmt::Display for MalformedTimestampHeaderEpochError {
|
483 + | impl ::std::fmt::Display for HttpRequestWithRegexLiteralError {
|
553 484 | /* ServerOperationErrorGenerator.kt:76 */
|
554 485 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
555 486 | /* ServerOperationErrorGenerator.kt:139 */
|
556 487 | match &self {
|
557 488 | /* ServerOperationErrorGenerator.kt:142 */
|
558 - | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
489 + | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
559 490 | /* ServerOperationErrorGenerator.kt:78 */
|
560 491 | {
|
561 492 | _inner.fmt(f)
|
562 493 | }
|
563 494 | /* ServerOperationErrorGenerator.kt:139 */
|
564 495 | }
|
565 496 | /* ServerOperationErrorGenerator.kt:76 */
|
566 497 | }
|
567 498 | /* ServerOperationErrorGenerator.kt:75 */
|
568 499 | }
|
569 500 | /* ServerOperationErrorGenerator.kt:83 */
|
570 - | impl MalformedTimestampHeaderEpochError {
|
501 + | impl HttpRequestWithRegexLiteralError {
|
571 502 | /* ServerOperationErrorGenerator.kt:87 */
|
572 - | /// Returns `true` if the error kind is `MalformedTimestampHeaderEpochError::ValidationException`.
|
503 + | /// Returns `true` if the error kind is `HttpRequestWithRegexLiteralError::ValidationException`.
|
573 504 | /* ServerOperationErrorGenerator.kt:88 */
|
574 505 | pub fn is_validation_exception(&self) -> bool {
|
575 506 | /* ServerOperationErrorGenerator.kt:89 */
|
576 507 | matches!(
|
577 508 | &self,
|
578 - | MalformedTimestampHeaderEpochError::ValidationException(_)
|
509 + | HttpRequestWithRegexLiteralError::ValidationException(_)
|
579 510 | )
|
580 511 | /* ServerOperationErrorGenerator.kt:88 */
|
581 512 | }
|
582 513 | /* ServerOperationErrorGenerator.kt:92 */
|
583 514 | /// Returns the error name string by matching the correct variant.
|
584 515 | /* ServerOperationErrorGenerator.kt:93 */
|
585 516 | pub fn name(&self) -> &'static str {
|
586 517 | /* ServerOperationErrorGenerator.kt:139 */
|
587 518 | match &self {
|
588 519 | /* ServerOperationErrorGenerator.kt:142 */
|
589 - | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
520 + | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
590 521 | /* ServerOperationErrorGenerator.kt:95 */
|
591 522 | {
|
592 523 | _inner.name()
|
593 524 | }
|
594 525 | /* ServerOperationErrorGenerator.kt:139 */
|
595 526 | }
|
596 527 | /* ServerOperationErrorGenerator.kt:93 */
|
597 528 | }
|
598 529 | /* ServerOperationErrorGenerator.kt:83 */
|
599 530 | }
|
600 531 | /* ServerOperationErrorGenerator.kt:100 */
|
601 - | impl ::std::error::Error for MalformedTimestampHeaderEpochError {
|
532 + | impl ::std::error::Error for HttpRequestWithRegexLiteralError {
|
602 533 | /* ServerOperationErrorGenerator.kt:101 */
|
603 534 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
604 535 | /* ServerOperationErrorGenerator.kt:139 */
|
605 536 | match &self {
|
606 537 | /* ServerOperationErrorGenerator.kt:142 */
|
607 - | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
538 + | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
608 539 | /* ServerOperationErrorGenerator.kt:103 */
|
609 540 | {
|
610 541 | Some(_inner)
|
611 542 | }
|
612 543 | /* ServerOperationErrorGenerator.kt:139 */
|
613 544 | }
|
614 545 | /* ServerOperationErrorGenerator.kt:101 */
|
615 546 | }
|
616 547 | /* ServerOperationErrorGenerator.kt:100 */
|
617 548 | }
|
618 549 | /* ServerOperationErrorGenerator.kt:110 */
|
619 550 | impl ::std::convert::From<crate::error::ValidationException>
|
620 - | for crate::error::MalformedTimestampHeaderEpochError
|
551 + | for crate::error::HttpRequestWithRegexLiteralError
|
621 552 | {
|
622 553 | /* ServerOperationErrorGenerator.kt:111 */
|
623 554 | fn from(
|
624 555 | variant: crate::error::ValidationException,
|
625 - | ) -> crate::error::MalformedTimestampHeaderEpochError {
|
556 + | ) -> crate::error::HttpRequestWithRegexLiteralError {
|
626 557 | /* ServerOperationErrorGenerator.kt:112 */
|
627 558 | Self::ValidationException(variant)
|
628 559 | /* ServerOperationErrorGenerator.kt:111 */
|
629 560 | }
|
630 561 | /* ServerOperationErrorGenerator.kt:110 */
|
631 562 | }
|
632 563 |
|
633 564 | /* ServerOperationErrorGenerator.kt:63 */
|
634 - | /// Error type for the `MalformedTimestampHeaderDateTime` operation.
|
565 + | /// Error type for the `AllQueryStringTypes` operation.
|
635 566 | /* ServerOperationErrorGenerator.kt:64 */
|
636 - | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderDateTime` operation.
|
567 + | /// Each variant represents an error that can occur for the `AllQueryStringTypes` operation.
|
637 568 | /* RustType.kt:534 */
|
638 569 | #[derive(::std::fmt::Debug)]
|
639 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDateTimeError {
|
570 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum AllQueryStringTypesError {
|
640 571 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
641 572 | /* ServerOperationErrorGenerator.kt:71 */
|
642 573 | ValidationException(crate::error::ValidationException),
|
643 574 | /* ServerOperationErrorGenerator.kt:66 */
|
644 575 | }
|
645 576 | /* ServerOperationErrorGenerator.kt:75 */
|
646 - | impl ::std::fmt::Display for MalformedTimestampHeaderDateTimeError {
|
577 + | impl ::std::fmt::Display for AllQueryStringTypesError {
|
647 578 | /* ServerOperationErrorGenerator.kt:76 */
|
648 579 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
649 580 | /* ServerOperationErrorGenerator.kt:139 */
|
650 581 | match &self {
|
651 582 | /* ServerOperationErrorGenerator.kt:142 */
|
652 - | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
583 + | AllQueryStringTypesError::ValidationException(_inner) =>
|
653 584 | /* ServerOperationErrorGenerator.kt:78 */
|
654 585 | {
|
655 586 | _inner.fmt(f)
|
656 587 | }
|
657 588 | /* ServerOperationErrorGenerator.kt:139 */
|
658 589 | }
|
659 590 | /* ServerOperationErrorGenerator.kt:76 */
|
660 591 | }
|
661 592 | /* ServerOperationErrorGenerator.kt:75 */
|
662 593 | }
|
663 594 | /* ServerOperationErrorGenerator.kt:83 */
|
664 - | impl MalformedTimestampHeaderDateTimeError {
|
595 + | impl AllQueryStringTypesError {
|
665 596 | /* ServerOperationErrorGenerator.kt:87 */
|
666 - | /// Returns `true` if the error kind is `MalformedTimestampHeaderDateTimeError::ValidationException`.
|
597 + | /// Returns `true` if the error kind is `AllQueryStringTypesError::ValidationException`.
|
667 598 | /* ServerOperationErrorGenerator.kt:88 */
|
668 599 | pub fn is_validation_exception(&self) -> bool {
|
669 600 | /* ServerOperationErrorGenerator.kt:89 */
|
670 - | matches!(
|
671 - | &self,
|
672 - | MalformedTimestampHeaderDateTimeError::ValidationException(_)
|
673 - | )
|
601 + | matches!(&self, AllQueryStringTypesError::ValidationException(_))
|
674 602 | /* ServerOperationErrorGenerator.kt:88 */
|
675 603 | }
|
676 604 | /* ServerOperationErrorGenerator.kt:92 */
|
677 605 | /// Returns the error name string by matching the correct variant.
|
678 606 | /* ServerOperationErrorGenerator.kt:93 */
|
679 607 | pub fn name(&self) -> &'static str {
|
680 608 | /* ServerOperationErrorGenerator.kt:139 */
|
681 609 | match &self {
|
682 610 | /* ServerOperationErrorGenerator.kt:142 */
|
683 - | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
611 + | AllQueryStringTypesError::ValidationException(_inner) =>
|
684 612 | /* ServerOperationErrorGenerator.kt:95 */
|
685 613 | {
|
686 614 | _inner.name()
|
687 615 | }
|
688 616 | /* ServerOperationErrorGenerator.kt:139 */
|
689 617 | }
|
690 618 | /* ServerOperationErrorGenerator.kt:93 */
|
691 619 | }
|
692 620 | /* ServerOperationErrorGenerator.kt:83 */
|
693 621 | }
|
694 622 | /* ServerOperationErrorGenerator.kt:100 */
|
695 - | impl ::std::error::Error for MalformedTimestampHeaderDateTimeError {
|
623 + | impl ::std::error::Error for AllQueryStringTypesError {
|
696 624 | /* ServerOperationErrorGenerator.kt:101 */
|
697 625 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
698 626 | /* ServerOperationErrorGenerator.kt:139 */
|
699 627 | match &self {
|
700 628 | /* ServerOperationErrorGenerator.kt:142 */
|
701 - | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
629 + | AllQueryStringTypesError::ValidationException(_inner) =>
|
702 630 | /* ServerOperationErrorGenerator.kt:103 */
|
703 631 | {
|
704 632 | Some(_inner)
|
705 633 | }
|
706 634 | /* ServerOperationErrorGenerator.kt:139 */
|
707 635 | }
|
708 636 | /* ServerOperationErrorGenerator.kt:101 */
|
709 637 | }
|
710 638 | /* ServerOperationErrorGenerator.kt:100 */
|
711 639 | }
|
712 640 | /* ServerOperationErrorGenerator.kt:110 */
|
713 641 | impl ::std::convert::From<crate::error::ValidationException>
|
714 - | for crate::error::MalformedTimestampHeaderDateTimeError
|
642 + | for crate::error::AllQueryStringTypesError
|
715 643 | {
|
716 644 | /* ServerOperationErrorGenerator.kt:111 */
|
717 - | fn from(
|
718 - | variant: crate::error::ValidationException,
|
719 - | ) -> crate::error::MalformedTimestampHeaderDateTimeError {
|
645 + | fn from(variant: crate::error::ValidationException) -> crate::error::AllQueryStringTypesError {
|
720 646 | /* ServerOperationErrorGenerator.kt:112 */
|
721 647 | Self::ValidationException(variant)
|
722 648 | /* ServerOperationErrorGenerator.kt:111 */
|
723 649 | }
|
724 650 | /* ServerOperationErrorGenerator.kt:110 */
|
725 651 | }
|
726 652 |
|
727 653 | /* ServerOperationErrorGenerator.kt:63 */
|
728 - | /// Error type for the `MalformedTimestampHeaderDefault` operation.
|
654 + | /// Error type for the `ConstantQueryString` operation.
|
729 655 | /* ServerOperationErrorGenerator.kt:64 */
|
730 - | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderDefault` operation.
|
656 + | /// Each variant represents an error that can occur for the `ConstantQueryString` operation.
|
731 657 | /* RustType.kt:534 */
|
732 658 | #[derive(::std::fmt::Debug)]
|
733 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDefaultError {
|
659 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstantQueryStringError {
|
734 660 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
735 661 | /* ServerOperationErrorGenerator.kt:71 */
|
736 662 | ValidationException(crate::error::ValidationException),
|
737 663 | /* ServerOperationErrorGenerator.kt:66 */
|
738 664 | }
|
739 665 | /* ServerOperationErrorGenerator.kt:75 */
|
740 - | impl ::std::fmt::Display for MalformedTimestampHeaderDefaultError {
|
666 + | impl ::std::fmt::Display for ConstantQueryStringError {
|
741 667 | /* ServerOperationErrorGenerator.kt:76 */
|
742 668 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
743 669 | /* ServerOperationErrorGenerator.kt:139 */
|
744 670 | match &self {
|
745 671 | /* ServerOperationErrorGenerator.kt:142 */
|
746 - | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
672 + | ConstantQueryStringError::ValidationException(_inner) =>
|
747 673 | /* ServerOperationErrorGenerator.kt:78 */
|
748 674 | {
|
749 675 | _inner.fmt(f)
|
750 676 | }
|
751 677 | /* ServerOperationErrorGenerator.kt:139 */
|
752 678 | }
|
753 679 | /* ServerOperationErrorGenerator.kt:76 */
|
754 680 | }
|
755 681 | /* ServerOperationErrorGenerator.kt:75 */
|
756 682 | }
|
757 683 | /* ServerOperationErrorGenerator.kt:83 */
|
758 - | impl MalformedTimestampHeaderDefaultError {
|
684 + | impl ConstantQueryStringError {
|
759 685 | /* ServerOperationErrorGenerator.kt:87 */
|
760 - | /// Returns `true` if the error kind is `MalformedTimestampHeaderDefaultError::ValidationException`.
|
686 + | /// Returns `true` if the error kind is `ConstantQueryStringError::ValidationException`.
|
761 687 | /* ServerOperationErrorGenerator.kt:88 */
|
762 688 | pub fn is_validation_exception(&self) -> bool {
|
763 689 | /* ServerOperationErrorGenerator.kt:89 */
|
764 - | matches!(
|
765 - | &self,
|
766 - | MalformedTimestampHeaderDefaultError::ValidationException(_)
|
767 - | )
|
690 + | matches!(&self, ConstantQueryStringError::ValidationException(_))
|
768 691 | /* ServerOperationErrorGenerator.kt:88 */
|
769 692 | }
|
770 693 | /* ServerOperationErrorGenerator.kt:92 */
|
771 694 | /// Returns the error name string by matching the correct variant.
|
772 695 | /* ServerOperationErrorGenerator.kt:93 */
|
773 696 | pub fn name(&self) -> &'static str {
|
774 697 | /* ServerOperationErrorGenerator.kt:139 */
|
775 698 | match &self {
|
776 699 | /* ServerOperationErrorGenerator.kt:142 */
|
777 - | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
700 + | ConstantQueryStringError::ValidationException(_inner) =>
|
778 701 | /* ServerOperationErrorGenerator.kt:95 */
|
779 702 | {
|
780 703 | _inner.name()
|
781 704 | }
|
782 705 | /* ServerOperationErrorGenerator.kt:139 */
|
783 706 | }
|
784 707 | /* ServerOperationErrorGenerator.kt:93 */
|
785 708 | }
|
786 709 | /* ServerOperationErrorGenerator.kt:83 */
|
787 710 | }
|
788 711 | /* ServerOperationErrorGenerator.kt:100 */
|
789 - | impl ::std::error::Error for MalformedTimestampHeaderDefaultError {
|
712 + | impl ::std::error::Error for ConstantQueryStringError {
|
790 713 | /* ServerOperationErrorGenerator.kt:101 */
|
791 714 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
792 715 | /* ServerOperationErrorGenerator.kt:139 */
|
793 716 | match &self {
|
794 717 | /* ServerOperationErrorGenerator.kt:142 */
|
795 - | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
718 + | ConstantQueryStringError::ValidationException(_inner) =>
|
796 719 | /* ServerOperationErrorGenerator.kt:103 */
|
797 720 | {
|
798 721 | Some(_inner)
|
799 722 | }
|
800 723 | /* ServerOperationErrorGenerator.kt:139 */
|
801 724 | }
|
802 725 | /* ServerOperationErrorGenerator.kt:101 */
|
803 726 | }
|
804 727 | /* ServerOperationErrorGenerator.kt:100 */
|
805 728 | }
|
806 729 | /* ServerOperationErrorGenerator.kt:110 */
|
807 730 | impl ::std::convert::From<crate::error::ValidationException>
|
808 - | for crate::error::MalformedTimestampHeaderDefaultError
|
731 + | for crate::error::ConstantQueryStringError
|
809 732 | {
|
810 733 | /* ServerOperationErrorGenerator.kt:111 */
|
811 - | fn from(
|
812 - | variant: crate::error::ValidationException,
|
813 - | ) -> crate::error::MalformedTimestampHeaderDefaultError {
|
734 + | fn from(variant: crate::error::ValidationException) -> crate::error::ConstantQueryStringError {
|
814 735 | /* ServerOperationErrorGenerator.kt:112 */
|
815 736 | Self::ValidationException(variant)
|
816 737 | /* ServerOperationErrorGenerator.kt:111 */
|
817 738 | }
|
818 739 | /* ServerOperationErrorGenerator.kt:110 */
|
819 740 | }
|
820 741 |
|
821 742 | /* ServerOperationErrorGenerator.kt:63 */
|
822 - | /// Error type for the `MalformedTimestampQueryEpoch` operation.
|
743 + | /// Error type for the `OmitsSerializingEmptyLists` operation.
|
823 744 | /* ServerOperationErrorGenerator.kt:64 */
|
824 - | /// Each variant represents an error that can occur for the `MalformedTimestampQueryEpoch` operation.
|
745 + | /// Each variant represents an error that can occur for the `OmitsSerializingEmptyLists` operation.
|
825 746 | /* RustType.kt:534 */
|
826 747 | #[derive(::std::fmt::Debug)]
|
827 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryEpochError {
|
748 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum OmitsSerializingEmptyListsError {
|
828 749 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
829 750 | /* ServerOperationErrorGenerator.kt:71 */
|
830 751 | ValidationException(crate::error::ValidationException),
|
831 752 | /* ServerOperationErrorGenerator.kt:66 */
|
832 753 | }
|
833 754 | /* ServerOperationErrorGenerator.kt:75 */
|
834 - | impl ::std::fmt::Display for MalformedTimestampQueryEpochError {
|
755 + | impl ::std::fmt::Display for OmitsSerializingEmptyListsError {
|
835 756 | /* ServerOperationErrorGenerator.kt:76 */
|
836 757 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
837 758 | /* ServerOperationErrorGenerator.kt:139 */
|
838 759 | match &self {
|
839 760 | /* ServerOperationErrorGenerator.kt:142 */
|
840 - | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
761 + | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
841 762 | /* ServerOperationErrorGenerator.kt:78 */
|
842 763 | {
|
843 764 | _inner.fmt(f)
|
844 765 | }
|
845 766 | /* ServerOperationErrorGenerator.kt:139 */
|
846 767 | }
|
847 768 | /* ServerOperationErrorGenerator.kt:76 */
|
848 769 | }
|
849 770 | /* ServerOperationErrorGenerator.kt:75 */
|
850 771 | }
|
851 772 | /* ServerOperationErrorGenerator.kt:83 */
|
852 - | impl MalformedTimestampQueryEpochError {
|
773 + | impl OmitsSerializingEmptyListsError {
|
853 774 | /* ServerOperationErrorGenerator.kt:87 */
|
854 - | /// Returns `true` if the error kind is `MalformedTimestampQueryEpochError::ValidationException`.
|
775 + | /// Returns `true` if the error kind is `OmitsSerializingEmptyListsError::ValidationException`.
|
855 776 | /* ServerOperationErrorGenerator.kt:88 */
|
856 777 | pub fn is_validation_exception(&self) -> bool {
|
857 778 | /* ServerOperationErrorGenerator.kt:89 */
|
858 779 | matches!(
|
859 780 | &self,
|
860 - | MalformedTimestampQueryEpochError::ValidationException(_)
|
781 + | OmitsSerializingEmptyListsError::ValidationException(_)
|
861 782 | )
|
862 783 | /* ServerOperationErrorGenerator.kt:88 */
|
863 784 | }
|
864 785 | /* ServerOperationErrorGenerator.kt:92 */
|
865 786 | /// Returns the error name string by matching the correct variant.
|
866 787 | /* ServerOperationErrorGenerator.kt:93 */
|
867 788 | pub fn name(&self) -> &'static str {
|
868 789 | /* ServerOperationErrorGenerator.kt:139 */
|
869 790 | match &self {
|
870 791 | /* ServerOperationErrorGenerator.kt:142 */
|
871 - | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
792 + | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
872 793 | /* ServerOperationErrorGenerator.kt:95 */
|
873 794 | {
|
874 795 | _inner.name()
|
875 796 | }
|
876 797 | /* ServerOperationErrorGenerator.kt:139 */
|
877 798 | }
|
878 799 | /* ServerOperationErrorGenerator.kt:93 */
|
879 800 | }
|
880 801 | /* ServerOperationErrorGenerator.kt:83 */
|
881 802 | }
|
882 803 | /* ServerOperationErrorGenerator.kt:100 */
|
883 - | impl ::std::error::Error for MalformedTimestampQueryEpochError {
|
804 + | impl ::std::error::Error for OmitsSerializingEmptyListsError {
|
884 805 | /* ServerOperationErrorGenerator.kt:101 */
|
885 806 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
886 807 | /* ServerOperationErrorGenerator.kt:139 */
|
887 808 | match &self {
|
888 809 | /* ServerOperationErrorGenerator.kt:142 */
|
889 - | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
810 + | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
890 811 | /* ServerOperationErrorGenerator.kt:103 */
|
891 812 | {
|
892 813 | Some(_inner)
|
893 814 | }
|
894 815 | /* ServerOperationErrorGenerator.kt:139 */
|
895 816 | }
|
896 817 | /* ServerOperationErrorGenerator.kt:101 */
|
897 818 | }
|
898 819 | /* ServerOperationErrorGenerator.kt:100 */
|
899 820 | }
|
900 821 | /* ServerOperationErrorGenerator.kt:110 */
|
901 822 | impl ::std::convert::From<crate::error::ValidationException>
|
902 - | for crate::error::MalformedTimestampQueryEpochError
|
823 + | for crate::error::OmitsSerializingEmptyListsError
|
903 824 | {
|
904 825 | /* ServerOperationErrorGenerator.kt:111 */
|
905 826 | fn from(
|
906 827 | variant: crate::error::ValidationException,
|
907 - | ) -> crate::error::MalformedTimestampQueryEpochError {
|
828 + | ) -> crate::error::OmitsSerializingEmptyListsError {
|
908 829 | /* ServerOperationErrorGenerator.kt:112 */
|
909 830 | Self::ValidationException(variant)
|
910 831 | /* ServerOperationErrorGenerator.kt:111 */
|
911 832 | }
|
912 833 | /* ServerOperationErrorGenerator.kt:110 */
|
913 834 | }
|
914 835 |
|
915 836 | /* ServerOperationErrorGenerator.kt:63 */
|
916 - | /// Error type for the `MalformedTimestampQueryHttpDate` operation.
|
837 + | /// Error type for the `HttpEnumPayload` operation.
|
917 838 | /* ServerOperationErrorGenerator.kt:64 */
|
918 - | /// Each variant represents an error that can occur for the `MalformedTimestampQueryHttpDate` operation.
|
839 + | /// Each variant represents an error that can occur for the `HttpEnumPayload` operation.
|
919 840 | /* RustType.kt:534 */
|
920 841 | #[derive(::std::fmt::Debug)]
|
921 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryHttpDateError {
|
842 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpEnumPayloadError {
|
922 843 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
923 844 | /* ServerOperationErrorGenerator.kt:71 */
|
924 845 | ValidationException(crate::error::ValidationException),
|
925 846 | /* ServerOperationErrorGenerator.kt:66 */
|
926 847 | }
|
927 848 | /* ServerOperationErrorGenerator.kt:75 */
|
928 - | impl ::std::fmt::Display for MalformedTimestampQueryHttpDateError {
|
849 + | impl ::std::fmt::Display for HttpEnumPayloadError {
|
929 850 | /* ServerOperationErrorGenerator.kt:76 */
|
930 851 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
931 852 | /* ServerOperationErrorGenerator.kt:139 */
|
932 853 | match &self {
|
933 854 | /* ServerOperationErrorGenerator.kt:142 */
|
934 - | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
855 + | HttpEnumPayloadError::ValidationException(_inner) =>
|
935 856 | /* ServerOperationErrorGenerator.kt:78 */
|
936 857 | {
|
937 858 | _inner.fmt(f)
|
938 859 | }
|
939 860 | /* ServerOperationErrorGenerator.kt:139 */
|
940 861 | }
|
941 862 | /* ServerOperationErrorGenerator.kt:76 */
|
942 863 | }
|
943 864 | /* ServerOperationErrorGenerator.kt:75 */
|
944 865 | }
|
945 866 | /* ServerOperationErrorGenerator.kt:83 */
|
946 - | impl MalformedTimestampQueryHttpDateError {
|
867 + | impl HttpEnumPayloadError {
|
947 868 | /* ServerOperationErrorGenerator.kt:87 */
|
948 - | /// Returns `true` if the error kind is `MalformedTimestampQueryHttpDateError::ValidationException`.
|
869 + | /// Returns `true` if the error kind is `HttpEnumPayloadError::ValidationException`.
|
949 870 | /* ServerOperationErrorGenerator.kt:88 */
|
950 871 | pub fn is_validation_exception(&self) -> bool {
|
951 872 | /* ServerOperationErrorGenerator.kt:89 */
|
952 - | matches!(
|
953 - | &self,
|
954 - | MalformedTimestampQueryHttpDateError::ValidationException(_)
|
955 - | )
|
873 + | matches!(&self, HttpEnumPayloadError::ValidationException(_))
|
956 874 | /* ServerOperationErrorGenerator.kt:88 */
|
957 875 | }
|
958 876 | /* ServerOperationErrorGenerator.kt:92 */
|
959 877 | /// Returns the error name string by matching the correct variant.
|
960 878 | /* ServerOperationErrorGenerator.kt:93 */
|
961 879 | pub fn name(&self) -> &'static str {
|
962 880 | /* ServerOperationErrorGenerator.kt:139 */
|
963 881 | match &self {
|
964 882 | /* ServerOperationErrorGenerator.kt:142 */
|
965 - | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
883 + | HttpEnumPayloadError::ValidationException(_inner) =>
|
966 884 | /* ServerOperationErrorGenerator.kt:95 */
|
967 885 | {
|
968 886 | _inner.name()
|
969 887 | }
|
970 888 | /* ServerOperationErrorGenerator.kt:139 */
|
971 889 | }
|
972 890 | /* ServerOperationErrorGenerator.kt:93 */
|
973 891 | }
|
974 892 | /* ServerOperationErrorGenerator.kt:83 */
|
975 893 | }
|
976 894 | /* ServerOperationErrorGenerator.kt:100 */
|
977 - | impl ::std::error::Error for MalformedTimestampQueryHttpDateError {
|
895 + | impl ::std::error::Error for HttpEnumPayloadError {
|
978 896 | /* ServerOperationErrorGenerator.kt:101 */
|
979 897 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
980 898 | /* ServerOperationErrorGenerator.kt:139 */
|
981 899 | match &self {
|
982 900 | /* ServerOperationErrorGenerator.kt:142 */
|
983 - | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
901 + | HttpEnumPayloadError::ValidationException(_inner) =>
|
984 902 | /* ServerOperationErrorGenerator.kt:103 */
|
985 903 | {
|
986 904 | Some(_inner)
|
987 905 | }
|
988 906 | /* ServerOperationErrorGenerator.kt:139 */
|
989 907 | }
|
990 908 | /* ServerOperationErrorGenerator.kt:101 */
|
991 909 | }
|
992 910 | /* ServerOperationErrorGenerator.kt:100 */
|
993 911 | }
|
994 912 | /* ServerOperationErrorGenerator.kt:110 */
|
995 913 | impl ::std::convert::From<crate::error::ValidationException>
|
996 - | for crate::error::MalformedTimestampQueryHttpDateError
|
914 + | for crate::error::HttpEnumPayloadError
|
997 915 | {
|
998 916 | /* ServerOperationErrorGenerator.kt:111 */
|
999 - | fn from(
|
1000 - | variant: crate::error::ValidationException,
|
1001 - | ) -> crate::error::MalformedTimestampQueryHttpDateError {
|
917 + | fn from(variant: crate::error::ValidationException) -> crate::error::HttpEnumPayloadError {
|
1002 918 | /* ServerOperationErrorGenerator.kt:112 */
|
1003 919 | Self::ValidationException(variant)
|
1004 920 | /* ServerOperationErrorGenerator.kt:111 */
|
1005 921 | }
|
1006 922 | /* ServerOperationErrorGenerator.kt:110 */
|
1007 923 | }
|
1008 924 |
|
1009 925 | /* ServerOperationErrorGenerator.kt:63 */
|
1010 - | /// Error type for the `MalformedTimestampQueryDefault` operation.
|
926 + | /// Error type for the `GreetingWithErrors` operation.
|
1011 927 | /* ServerOperationErrorGenerator.kt:64 */
|
1012 - | /// Each variant represents an error that can occur for the `MalformedTimestampQueryDefault` operation.
|
928 + | /// Each variant represents an error that can occur for the `GreetingWithErrors` operation.
|
1013 929 | /* RustType.kt:534 */
|
1014 930 | #[derive(::std::fmt::Debug)]
|
1015 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryDefaultError {
|
1016 - | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
931 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum GreetingWithErrorsError {
|
932 + | /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when an invalid greeting value is provided.
|
1017 933 | /* ServerOperationErrorGenerator.kt:71 */
|
1018 - | ValidationException(crate::error::ValidationException),
|
934 + | InvalidGreeting(crate::error::InvalidGreeting),
|
935 + | /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when a request is invalid.
|
936 + | /* ServerOperationErrorGenerator.kt:71 */
|
937 + | ComplexError(crate::error::ComplexError),
|
938 + | /// /* ServerOperationErrorGenerator.kt:68 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
939 + | /* ServerOperationErrorGenerator.kt:71 */
|
940 + | FooError(crate::error::FooError),
|
1019 941 | /* ServerOperationErrorGenerator.kt:66 */
|
1020 942 | }
|
1021 943 | /* ServerOperationErrorGenerator.kt:75 */
|
1022 - | impl ::std::fmt::Display for MalformedTimestampQueryDefaultError {
|
944 + | impl ::std::fmt::Display for GreetingWithErrorsError {
|
1023 945 | /* ServerOperationErrorGenerator.kt:76 */
|
1024 946 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1025 947 | /* ServerOperationErrorGenerator.kt:139 */
|
1026 948 | match &self {
|
1027 949 | /* ServerOperationErrorGenerator.kt:142 */
|
1028 - | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
950 + | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
951 + | /* ServerOperationErrorGenerator.kt:78 */
|
952 + | {
|
953 + | _inner.fmt(f)
|
954 + | }
|
955 + | ,
|
956 + | /* ServerOperationErrorGenerator.kt:142 */
|
957 + | GreetingWithErrorsError::ComplexError(_inner) =>
|
958 + | /* ServerOperationErrorGenerator.kt:78 */
|
959 + | {
|
960 + | _inner.fmt(f)
|
961 + | }
|
962 + | ,
|
963 + | /* ServerOperationErrorGenerator.kt:142 */
|
964 + | GreetingWithErrorsError::FooError(_inner) =>
|
1029 965 | /* ServerOperationErrorGenerator.kt:78 */
|
1030 966 | {
|
1031 967 | _inner.fmt(f)
|
1032 968 | }
|
1033 969 | /* ServerOperationErrorGenerator.kt:139 */
|
1034 970 | }
|
1035 971 | /* ServerOperationErrorGenerator.kt:76 */
|
1036 972 | }
|
1037 973 | /* ServerOperationErrorGenerator.kt:75 */
|
1038 974 | }
|
1039 975 | /* ServerOperationErrorGenerator.kt:83 */
|
1040 - | impl MalformedTimestampQueryDefaultError {
|
976 + | impl GreetingWithErrorsError {
|
1041 977 | /* ServerOperationErrorGenerator.kt:87 */
|
1042 - | /// Returns `true` if the error kind is `MalformedTimestampQueryDefaultError::ValidationException`.
|
978 + | /// Returns `true` if the error kind is `GreetingWithErrorsError::InvalidGreeting`.
|
1043 979 | /* ServerOperationErrorGenerator.kt:88 */
|
1044 - | pub fn is_validation_exception(&self) -> bool {
|
980 + | pub fn is_invalid_greeting(&self) -> bool {
|
1045 981 | /* ServerOperationErrorGenerator.kt:89 */
|
1046 - | matches!(
|
1047 - | &self,
|
1048 - | MalformedTimestampQueryDefaultError::ValidationException(_)
|
1049 - | )
|
982 + | matches!(&self, GreetingWithErrorsError::InvalidGreeting(_))
|
983 + | /* ServerOperationErrorGenerator.kt:88 */
|
984 + | }
|
985 + | /* ServerOperationErrorGenerator.kt:87 */
|
986 + | /// Returns `true` if the error kind is `GreetingWithErrorsError::ComplexError`.
|
987 + | /* ServerOperationErrorGenerator.kt:88 */
|
988 + | pub fn is_complex_error(&self) -> bool {
|
989 + | /* ServerOperationErrorGenerator.kt:89 */
|
990 + | matches!(&self, GreetingWithErrorsError::ComplexError(_))
|
991 + | /* ServerOperationErrorGenerator.kt:88 */
|
992 + | }
|
993 + | /* ServerOperationErrorGenerator.kt:87 */
|
994 + | /// Returns `true` if the error kind is `GreetingWithErrorsError::FooError`.
|
995 + | /* ServerOperationErrorGenerator.kt:88 */
|
996 + | pub fn is_foo_error(&self) -> bool {
|
997 + | /* ServerOperationErrorGenerator.kt:89 */
|
998 + | matches!(&self, GreetingWithErrorsError::FooError(_))
|
1050 999 | /* ServerOperationErrorGenerator.kt:88 */
|
1051 1000 | }
|
1052 1001 | /* ServerOperationErrorGenerator.kt:92 */
|
1053 1002 | /// Returns the error name string by matching the correct variant.
|
1054 1003 | /* ServerOperationErrorGenerator.kt:93 */
|
1055 1004 | pub fn name(&self) -> &'static str {
|
1056 1005 | /* ServerOperationErrorGenerator.kt:139 */
|
1057 1006 | match &self {
|
1058 1007 | /* ServerOperationErrorGenerator.kt:142 */
|
1059 - | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
1008 + | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
1009 + | /* ServerOperationErrorGenerator.kt:95 */
|
1010 + | {
|
1011 + | _inner.name()
|
1012 + | }
|
1013 + | ,
|
1014 + | /* ServerOperationErrorGenerator.kt:142 */
|
1015 + | GreetingWithErrorsError::ComplexError(_inner) =>
|
1016 + | /* ServerOperationErrorGenerator.kt:95 */
|
1017 + | {
|
1018 + | _inner.name()
|
1019 + | }
|
1020 + | ,
|
1021 + | /* ServerOperationErrorGenerator.kt:142 */
|
1022 + | GreetingWithErrorsError::FooError(_inner) =>
|
1060 1023 | /* ServerOperationErrorGenerator.kt:95 */
|
1061 1024 | {
|
1062 1025 | _inner.name()
|
1063 1026 | }
|
1064 1027 | /* ServerOperationErrorGenerator.kt:139 */
|
1065 1028 | }
|
1066 1029 | /* ServerOperationErrorGenerator.kt:93 */
|
1067 1030 | }
|
1068 1031 | /* ServerOperationErrorGenerator.kt:83 */
|
1069 1032 | }
|
1070 1033 | /* ServerOperationErrorGenerator.kt:100 */
|
1071 - | impl ::std::error::Error for MalformedTimestampQueryDefaultError {
|
1034 + | impl ::std::error::Error for GreetingWithErrorsError {
|
1072 1035 | /* ServerOperationErrorGenerator.kt:101 */
|
1073 1036 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1074 1037 | /* ServerOperationErrorGenerator.kt:139 */
|
1075 1038 | match &self {
|
1076 1039 | /* ServerOperationErrorGenerator.kt:142 */
|
1077 - | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
1040 + | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
1041 + | /* ServerOperationErrorGenerator.kt:103 */
|
1042 + | {
|
1043 + | Some(_inner)
|
1044 + | }
|
1045 + | ,
|
1046 + | /* ServerOperationErrorGenerator.kt:142 */
|
1047 + | GreetingWithErrorsError::ComplexError(_inner) =>
|
1048 + | /* ServerOperationErrorGenerator.kt:103 */
|
1049 + | {
|
1050 + | Some(_inner)
|
1051 + | }
|
1052 + | ,
|
1053 + | /* ServerOperationErrorGenerator.kt:142 */
|
1054 + | GreetingWithErrorsError::FooError(_inner) =>
|
1078 1055 | /* ServerOperationErrorGenerator.kt:103 */
|
1079 1056 | {
|
1080 1057 | Some(_inner)
|
1081 1058 | }
|
1082 1059 | /* ServerOperationErrorGenerator.kt:139 */
|
1083 1060 | }
|
1084 1061 | /* ServerOperationErrorGenerator.kt:101 */
|
1085 1062 | }
|
1086 1063 | /* ServerOperationErrorGenerator.kt:100 */
|
1087 1064 | }
|
1088 1065 | /* ServerOperationErrorGenerator.kt:110 */
|
1089 - | impl ::std::convert::From<crate::error::ValidationException>
|
1090 - | for crate::error::MalformedTimestampQueryDefaultError
|
1091 - | {
|
1066 + | impl ::std::convert::From<crate::error::InvalidGreeting> for crate::error::GreetingWithErrorsError {
|
1092 1067 | /* ServerOperationErrorGenerator.kt:111 */
|
1093 - | fn from(
|
1094 - | variant: crate::error::ValidationException,
|
1095 - | ) -> crate::error::MalformedTimestampQueryDefaultError {
|
1068 + | fn from(variant: crate::error::InvalidGreeting) -> crate::error::GreetingWithErrorsError {
|
1096 1069 | /* ServerOperationErrorGenerator.kt:112 */
|
1097 - | Self::ValidationException(variant)
|
1070 + | Self::InvalidGreeting(variant)
|
1071 + | /* ServerOperationErrorGenerator.kt:111 */
|
1072 + | }
|
1073 + | /* ServerOperationErrorGenerator.kt:110 */
|
1074 + | }
|
1075 + | /* ServerOperationErrorGenerator.kt:110 */
|
1076 + | impl ::std::convert::From<crate::error::ComplexError> for crate::error::GreetingWithErrorsError {
|
1077 + | /* ServerOperationErrorGenerator.kt:111 */
|
1078 + | fn from(variant: crate::error::ComplexError) -> crate::error::GreetingWithErrorsError {
|
1079 + | /* ServerOperationErrorGenerator.kt:112 */
|
1080 + | Self::ComplexError(variant)
|
1081 + | /* ServerOperationErrorGenerator.kt:111 */
|
1082 + | }
|
1083 + | /* ServerOperationErrorGenerator.kt:110 */
|
1084 + | }
|
1085 + | /* ServerOperationErrorGenerator.kt:110 */
|
1086 + | impl ::std::convert::From<crate::error::FooError> for crate::error::GreetingWithErrorsError {
|
1087 + | /* ServerOperationErrorGenerator.kt:111 */
|
1088 + | fn from(variant: crate::error::FooError) -> crate::error::GreetingWithErrorsError {
|
1089 + | /* ServerOperationErrorGenerator.kt:112 */
|
1090 + | Self::FooError(variant)
|
1098 1091 | /* ServerOperationErrorGenerator.kt:111 */
|
1099 1092 | }
|
1100 1093 | /* ServerOperationErrorGenerator.kt:110 */
|
1101 1094 | }
|
1102 1095 |
|
1103 1096 | /* ServerOperationErrorGenerator.kt:63 */
|
1104 - | /// Error type for the `MalformedTimestampPathEpoch` operation.
|
1097 + | /// Error type for the `JsonEnums` operation.
|
1105 1098 | /* ServerOperationErrorGenerator.kt:64 */
|
1106 - | /// Each variant represents an error that can occur for the `MalformedTimestampPathEpoch` operation.
|
1099 + | /// Each variant represents an error that can occur for the `JsonEnums` operation.
|
1107 1100 | /* RustType.kt:534 */
|
1108 1101 | #[derive(::std::fmt::Debug)]
|
1109 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathEpochError {
|
1102 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonEnumsError {
|
1110 1103 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1111 1104 | /* ServerOperationErrorGenerator.kt:71 */
|
1112 1105 | ValidationException(crate::error::ValidationException),
|
1113 1106 | /* ServerOperationErrorGenerator.kt:66 */
|
1114 1107 | }
|
1115 1108 | /* ServerOperationErrorGenerator.kt:75 */
|
1116 - | impl ::std::fmt::Display for MalformedTimestampPathEpochError {
|
1109 + | impl ::std::fmt::Display for JsonEnumsError {
|
1117 1110 | /* ServerOperationErrorGenerator.kt:76 */
|
1118 1111 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1119 1112 | /* ServerOperationErrorGenerator.kt:139 */
|
1120 1113 | match &self {
|
1121 1114 | /* ServerOperationErrorGenerator.kt:142 */
|
1122 - | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
1115 + | JsonEnumsError::ValidationException(_inner) =>
|
1123 1116 | /* ServerOperationErrorGenerator.kt:78 */
|
1124 1117 | {
|
1125 1118 | _inner.fmt(f)
|
1126 1119 | }
|
1127 1120 | /* ServerOperationErrorGenerator.kt:139 */
|
1128 1121 | }
|
1129 1122 | /* ServerOperationErrorGenerator.kt:76 */
|
1130 1123 | }
|
1131 1124 | /* ServerOperationErrorGenerator.kt:75 */
|
1132 1125 | }
|
1133 1126 | /* ServerOperationErrorGenerator.kt:83 */
|
1134 - | impl MalformedTimestampPathEpochError {
|
1127 + | impl JsonEnumsError {
|
1135 1128 | /* ServerOperationErrorGenerator.kt:87 */
|
1136 - | /// Returns `true` if the error kind is `MalformedTimestampPathEpochError::ValidationException`.
|
1129 + | /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
|
1137 1130 | /* ServerOperationErrorGenerator.kt:88 */
|
1138 1131 | pub fn is_validation_exception(&self) -> bool {
|
1139 1132 | /* ServerOperationErrorGenerator.kt:89 */
|
1140 - | matches!(
|
1141 - | &self,
|
1142 - | MalformedTimestampPathEpochError::ValidationException(_)
|
1143 - | )
|
1133 + | matches!(&self, JsonEnumsError::ValidationException(_))
|
1144 1134 | /* ServerOperationErrorGenerator.kt:88 */
|
1145 1135 | }
|
1146 1136 | /* ServerOperationErrorGenerator.kt:92 */
|
1147 1137 | /// Returns the error name string by matching the correct variant.
|
1148 1138 | /* ServerOperationErrorGenerator.kt:93 */
|
1149 1139 | pub fn name(&self) -> &'static str {
|
1150 1140 | /* ServerOperationErrorGenerator.kt:139 */
|
1151 1141 | match &self {
|
1152 1142 | /* ServerOperationErrorGenerator.kt:142 */
|
1153 - | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
1143 + | JsonEnumsError::ValidationException(_inner) =>
|
1154 1144 | /* ServerOperationErrorGenerator.kt:95 */
|
1155 1145 | {
|
1156 1146 | _inner.name()
|
1157 1147 | }
|
1158 1148 | /* ServerOperationErrorGenerator.kt:139 */
|
1159 1149 | }
|
1160 1150 | /* ServerOperationErrorGenerator.kt:93 */
|
1161 1151 | }
|
1162 1152 | /* ServerOperationErrorGenerator.kt:83 */
|
1163 1153 | }
|
1164 1154 | /* ServerOperationErrorGenerator.kt:100 */
|
1165 - | impl ::std::error::Error for MalformedTimestampPathEpochError {
|
1155 + | impl ::std::error::Error for JsonEnumsError {
|
1166 1156 | /* ServerOperationErrorGenerator.kt:101 */
|
1167 1157 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1168 1158 | /* ServerOperationErrorGenerator.kt:139 */
|
1169 1159 | match &self {
|
1170 1160 | /* ServerOperationErrorGenerator.kt:142 */
|
1171 - | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
1161 + | JsonEnumsError::ValidationException(_inner) =>
|
1172 1162 | /* ServerOperationErrorGenerator.kt:103 */
|
1173 1163 | {
|
1174 1164 | Some(_inner)
|
1175 1165 | }
|
1176 1166 | /* ServerOperationErrorGenerator.kt:139 */
|
1177 1167 | }
|
1178 1168 | /* ServerOperationErrorGenerator.kt:101 */
|
1179 1169 | }
|
1180 1170 | /* ServerOperationErrorGenerator.kt:100 */
|
1181 1171 | }
|
1182 1172 | /* ServerOperationErrorGenerator.kt:110 */
|
1183 - | impl ::std::convert::From<crate::error::ValidationException>
|
1184 - | for crate::error::MalformedTimestampPathEpochError
|
1185 - | {
|
1173 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
|
1186 1174 | /* ServerOperationErrorGenerator.kt:111 */
|
1187 - | fn from(
|
1188 - | variant: crate::error::ValidationException,
|
1189 - | ) -> crate::error::MalformedTimestampPathEpochError {
|
1175 + | fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
|
1190 1176 | /* ServerOperationErrorGenerator.kt:112 */
|
1191 1177 | Self::ValidationException(variant)
|
1192 1178 | /* ServerOperationErrorGenerator.kt:111 */
|
1193 1179 | }
|
1194 1180 | /* ServerOperationErrorGenerator.kt:110 */
|
1195 1181 | }
|
1196 1182 |
|
1197 1183 | /* ServerOperationErrorGenerator.kt:63 */
|
1198 - | /// Error type for the `MalformedTimestampPathHttpDate` operation.
|
1184 + | /// Error type for the `JsonIntEnums` operation.
|
1199 1185 | /* ServerOperationErrorGenerator.kt:64 */
|
1200 - | /// Each variant represents an error that can occur for the `MalformedTimestampPathHttpDate` operation.
|
1186 + | /// Each variant represents an error that can occur for the `JsonIntEnums` operation.
|
1201 1187 | /* RustType.kt:534 */
|
1202 1188 | #[derive(::std::fmt::Debug)]
|
1203 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathHttpDateError {
|
1189 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonIntEnumsError {
|
1204 1190 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1205 1191 | /* ServerOperationErrorGenerator.kt:71 */
|
1206 1192 | ValidationException(crate::error::ValidationException),
|
1207 1193 | /* ServerOperationErrorGenerator.kt:66 */
|
1208 1194 | }
|
1209 1195 | /* ServerOperationErrorGenerator.kt:75 */
|
1210 - | impl ::std::fmt::Display for MalformedTimestampPathHttpDateError {
|
1196 + | impl ::std::fmt::Display for JsonIntEnumsError {
|
1211 1197 | /* ServerOperationErrorGenerator.kt:76 */
|
1212 1198 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1213 1199 | /* ServerOperationErrorGenerator.kt:139 */
|
1214 1200 | match &self {
|
1215 1201 | /* ServerOperationErrorGenerator.kt:142 */
|
1216 - | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
1202 + | JsonIntEnumsError::ValidationException(_inner) =>
|
1217 1203 | /* ServerOperationErrorGenerator.kt:78 */
|
1218 1204 | {
|
1219 1205 | _inner.fmt(f)
|
1220 1206 | }
|
1221 1207 | /* ServerOperationErrorGenerator.kt:139 */
|
1222 1208 | }
|
1223 1209 | /* ServerOperationErrorGenerator.kt:76 */
|
1224 1210 | }
|
1225 1211 | /* ServerOperationErrorGenerator.kt:75 */
|
1226 1212 | }
|
1227 1213 | /* ServerOperationErrorGenerator.kt:83 */
|
1228 - | impl MalformedTimestampPathHttpDateError {
|
1214 + | impl JsonIntEnumsError {
|
1229 1215 | /* ServerOperationErrorGenerator.kt:87 */
|
1230 - | /// Returns `true` if the error kind is `MalformedTimestampPathHttpDateError::ValidationException`.
|
1216 + | /// Returns `true` if the error kind is `JsonIntEnumsError::ValidationException`.
|
1231 1217 | /* ServerOperationErrorGenerator.kt:88 */
|
1232 1218 | pub fn is_validation_exception(&self) -> bool {
|
1233 1219 | /* ServerOperationErrorGenerator.kt:89 */
|
1234 - | matches!(
|
1235 - | &self,
|
1236 - | MalformedTimestampPathHttpDateError::ValidationException(_)
|
1237 - | )
|
1220 + | matches!(&self, JsonIntEnumsError::ValidationException(_))
|
1238 1221 | /* ServerOperationErrorGenerator.kt:88 */
|
1239 1222 | }
|
1240 1223 | /* ServerOperationErrorGenerator.kt:92 */
|
1241 1224 | /// Returns the error name string by matching the correct variant.
|
1242 1225 | /* ServerOperationErrorGenerator.kt:93 */
|
1243 1226 | pub fn name(&self) -> &'static str {
|
1244 1227 | /* ServerOperationErrorGenerator.kt:139 */
|
1245 1228 | match &self {
|
1246 1229 | /* ServerOperationErrorGenerator.kt:142 */
|
1247 - | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
1230 + | JsonIntEnumsError::ValidationException(_inner) =>
|
1248 1231 | /* ServerOperationErrorGenerator.kt:95 */
|
1249 1232 | {
|
1250 1233 | _inner.name()
|
1251 1234 | }
|
1252 1235 | /* ServerOperationErrorGenerator.kt:139 */
|
1253 1236 | }
|
1254 1237 | /* ServerOperationErrorGenerator.kt:93 */
|
1255 1238 | }
|
1256 1239 | /* ServerOperationErrorGenerator.kt:83 */
|
1257 1240 | }
|
1258 1241 | /* ServerOperationErrorGenerator.kt:100 */
|
1259 - | impl ::std::error::Error for MalformedTimestampPathHttpDateError {
|
1242 + | impl ::std::error::Error for JsonIntEnumsError {
|
1260 1243 | /* ServerOperationErrorGenerator.kt:101 */
|
1261 1244 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1262 1245 | /* ServerOperationErrorGenerator.kt:139 */
|
1263 1246 | match &self {
|
1264 1247 | /* ServerOperationErrorGenerator.kt:142 */
|
1265 - | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
1248 + | JsonIntEnumsError::ValidationException(_inner) =>
|
1266 1249 | /* ServerOperationErrorGenerator.kt:103 */
|
1267 1250 | {
|
1268 1251 | Some(_inner)
|
1269 1252 | }
|
1270 1253 | /* ServerOperationErrorGenerator.kt:139 */
|
1271 1254 | }
|
1272 1255 | /* ServerOperationErrorGenerator.kt:101 */
|
1273 1256 | }
|
1274 1257 | /* ServerOperationErrorGenerator.kt:100 */
|
1275 1258 | }
|
1276 1259 | /* ServerOperationErrorGenerator.kt:110 */
|
1277 - | impl ::std::convert::From<crate::error::ValidationException>
|
1278 - | for crate::error::MalformedTimestampPathHttpDateError
|
1279 - | {
|
1260 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonIntEnumsError {
|
1280 1261 | /* ServerOperationErrorGenerator.kt:111 */
|
1281 - | fn from(
|
1282 - | variant: crate::error::ValidationException,
|
1283 - | ) -> crate::error::MalformedTimestampPathHttpDateError {
|
1262 + | fn from(variant: crate::error::ValidationException) -> crate::error::JsonIntEnumsError {
|
1284 1263 | /* ServerOperationErrorGenerator.kt:112 */
|
1285 1264 | Self::ValidationException(variant)
|
1286 1265 | /* ServerOperationErrorGenerator.kt:111 */
|
1287 1266 | }
|
1288 1267 | /* ServerOperationErrorGenerator.kt:110 */
|
1289 1268 | }
|
1290 1269 |
|
1291 1270 | /* ServerOperationErrorGenerator.kt:63 */
|
1292 - | /// Error type for the `MalformedTimestampPathDefault` operation.
|
1271 + | /// Error type for the `JsonLists` operation.
|
1293 1272 | /* ServerOperationErrorGenerator.kt:64 */
|
1294 - | /// Each variant represents an error that can occur for the `MalformedTimestampPathDefault` operation.
|
1273 + | /// Each variant represents an error that can occur for the `JsonLists` operation.
|
1295 1274 | /* RustType.kt:534 */
|
1296 1275 | #[derive(::std::fmt::Debug)]
|
1297 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathDefaultError {
|
1276 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonListsError {
|
1298 1277 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1299 1278 | /* ServerOperationErrorGenerator.kt:71 */
|
1300 1279 | ValidationException(crate::error::ValidationException),
|
1301 1280 | /* ServerOperationErrorGenerator.kt:66 */
|
1302 1281 | }
|
1303 1282 | /* ServerOperationErrorGenerator.kt:75 */
|
1304 - | impl ::std::fmt::Display for MalformedTimestampPathDefaultError {
|
1283 + | impl ::std::fmt::Display for JsonListsError {
|
1305 1284 | /* ServerOperationErrorGenerator.kt:76 */
|
1306 1285 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1307 1286 | /* ServerOperationErrorGenerator.kt:139 */
|
1308 1287 | match &self {
|
1309 1288 | /* ServerOperationErrorGenerator.kt:142 */
|
1310 - | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
1289 + | JsonListsError::ValidationException(_inner) =>
|
1311 1290 | /* ServerOperationErrorGenerator.kt:78 */
|
1312 1291 | {
|
1313 1292 | _inner.fmt(f)
|
1314 1293 | }
|
1315 1294 | /* ServerOperationErrorGenerator.kt:139 */
|
1316 1295 | }
|
1317 1296 | /* ServerOperationErrorGenerator.kt:76 */
|
1318 1297 | }
|
1319 1298 | /* ServerOperationErrorGenerator.kt:75 */
|
1320 1299 | }
|
1321 1300 | /* ServerOperationErrorGenerator.kt:83 */
|
1322 - | impl MalformedTimestampPathDefaultError {
|
1301 + | impl JsonListsError {
|
1323 1302 | /* ServerOperationErrorGenerator.kt:87 */
|
1324 - | /// Returns `true` if the error kind is `MalformedTimestampPathDefaultError::ValidationException`.
|
1303 + | /// Returns `true` if the error kind is `JsonListsError::ValidationException`.
|
1325 1304 | /* ServerOperationErrorGenerator.kt:88 */
|
1326 1305 | pub fn is_validation_exception(&self) -> bool {
|
1327 1306 | /* ServerOperationErrorGenerator.kt:89 */
|
1328 - | matches!(
|
1329 - | &self,
|
1330 - | MalformedTimestampPathDefaultError::ValidationException(_)
|
1331 - | )
|
1307 + | matches!(&self, JsonListsError::ValidationException(_))
|
1332 1308 | /* ServerOperationErrorGenerator.kt:88 */
|
1333 1309 | }
|
1334 1310 | /* ServerOperationErrorGenerator.kt:92 */
|
1335 1311 | /// Returns the error name string by matching the correct variant.
|
1336 1312 | /* ServerOperationErrorGenerator.kt:93 */
|
1337 1313 | pub fn name(&self) -> &'static str {
|
1338 1314 | /* ServerOperationErrorGenerator.kt:139 */
|
1339 1315 | match &self {
|
1340 1316 | /* ServerOperationErrorGenerator.kt:142 */
|
1341 - | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
1317 + | JsonListsError::ValidationException(_inner) =>
|
1342 1318 | /* ServerOperationErrorGenerator.kt:95 */
|
1343 1319 | {
|
1344 1320 | _inner.name()
|
1345 1321 | }
|
1346 1322 | /* ServerOperationErrorGenerator.kt:139 */
|
1347 1323 | }
|
1348 1324 | /* ServerOperationErrorGenerator.kt:93 */
|
1349 1325 | }
|
1350 1326 | /* ServerOperationErrorGenerator.kt:83 */
|
1351 1327 | }
|
1352 1328 | /* ServerOperationErrorGenerator.kt:100 */
|
1353 - | impl ::std::error::Error for MalformedTimestampPathDefaultError {
|
1329 + | impl ::std::error::Error for JsonListsError {
|
1354 1330 | /* ServerOperationErrorGenerator.kt:101 */
|
1355 1331 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1356 1332 | /* ServerOperationErrorGenerator.kt:139 */
|
1357 1333 | match &self {
|
1358 1334 | /* ServerOperationErrorGenerator.kt:142 */
|
1359 - | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
1335 + | JsonListsError::ValidationException(_inner) =>
|
1360 1336 | /* ServerOperationErrorGenerator.kt:103 */
|
1361 1337 | {
|
1362 1338 | Some(_inner)
|
1363 1339 | }
|
1364 1340 | /* ServerOperationErrorGenerator.kt:139 */
|
1365 1341 | }
|
1366 1342 | /* ServerOperationErrorGenerator.kt:101 */
|
1367 1343 | }
|
1368 1344 | /* ServerOperationErrorGenerator.kt:100 */
|
1369 1345 | }
|
1370 1346 | /* ServerOperationErrorGenerator.kt:110 */
|
1371 - | impl ::std::convert::From<crate::error::ValidationException>
|
1372 - | for crate::error::MalformedTimestampPathDefaultError
|
1373 - | {
|
1347 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonListsError {
|
1374 1348 | /* ServerOperationErrorGenerator.kt:111 */
|
1375 - | fn from(
|
1376 - | variant: crate::error::ValidationException,
|
1377 - | ) -> crate::error::MalformedTimestampPathDefaultError {
|
1349 + | fn from(variant: crate::error::ValidationException) -> crate::error::JsonListsError {
|
1378 1350 | /* ServerOperationErrorGenerator.kt:112 */
|
1379 1351 | Self::ValidationException(variant)
|
1380 1352 | /* ServerOperationErrorGenerator.kt:111 */
|
1381 1353 | }
|
1382 1354 | /* ServerOperationErrorGenerator.kt:110 */
|
1383 1355 | }
|
1384 1356 |
|
1385 1357 | /* ServerOperationErrorGenerator.kt:63 */
|
1386 - | /// Error type for the `MalformedDouble` operation.
|
1358 + | /// Error type for the `JsonMaps` operation.
|
1387 1359 | /* ServerOperationErrorGenerator.kt:64 */
|
1388 - | /// Each variant represents an error that can occur for the `MalformedDouble` operation.
|
1360 + | /// Each variant represents an error that can occur for the `JsonMaps` operation.
|
1389 1361 | /* RustType.kt:534 */
|
1390 1362 | #[derive(::std::fmt::Debug)]
|
1391 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedDoubleError {
|
1363 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonMapsError {
|
1392 1364 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1393 1365 | /* ServerOperationErrorGenerator.kt:71 */
|
1394 1366 | ValidationException(crate::error::ValidationException),
|
1395 1367 | /* ServerOperationErrorGenerator.kt:66 */
|
1396 1368 | }
|
1397 1369 | /* ServerOperationErrorGenerator.kt:75 */
|
1398 - | impl ::std::fmt::Display for MalformedDoubleError {
|
1370 + | impl ::std::fmt::Display for JsonMapsError {
|
1399 1371 | /* ServerOperationErrorGenerator.kt:76 */
|
1400 1372 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1401 1373 | /* ServerOperationErrorGenerator.kt:139 */
|
1402 1374 | match &self {
|
1403 1375 | /* ServerOperationErrorGenerator.kt:142 */
|
1404 - | MalformedDoubleError::ValidationException(_inner) =>
|
1376 + | JsonMapsError::ValidationException(_inner) =>
|
1405 1377 | /* ServerOperationErrorGenerator.kt:78 */
|
1406 1378 | {
|
1407 1379 | _inner.fmt(f)
|
1408 1380 | }
|
1409 1381 | /* ServerOperationErrorGenerator.kt:139 */
|
1410 1382 | }
|
1411 1383 | /* ServerOperationErrorGenerator.kt:76 */
|
1412 1384 | }
|
1413 1385 | /* ServerOperationErrorGenerator.kt:75 */
|
1414 1386 | }
|
1415 1387 | /* ServerOperationErrorGenerator.kt:83 */
|
1416 - | impl MalformedDoubleError {
|
1388 + | impl JsonMapsError {
|
1417 1389 | /* ServerOperationErrorGenerator.kt:87 */
|
1418 - | /// Returns `true` if the error kind is `MalformedDoubleError::ValidationException`.
|
1390 + | /// Returns `true` if the error kind is `JsonMapsError::ValidationException`.
|
1419 1391 | /* ServerOperationErrorGenerator.kt:88 */
|
1420 1392 | pub fn is_validation_exception(&self) -> bool {
|
1421 1393 | /* ServerOperationErrorGenerator.kt:89 */
|
1422 - | matches!(&self, MalformedDoubleError::ValidationException(_))
|
1394 + | matches!(&self, JsonMapsError::ValidationException(_))
|
1423 1395 | /* ServerOperationErrorGenerator.kt:88 */
|
1424 1396 | }
|
1425 1397 | /* ServerOperationErrorGenerator.kt:92 */
|
1426 1398 | /// Returns the error name string by matching the correct variant.
|
1427 1399 | /* ServerOperationErrorGenerator.kt:93 */
|
1428 1400 | pub fn name(&self) -> &'static str {
|
1429 1401 | /* ServerOperationErrorGenerator.kt:139 */
|
1430 1402 | match &self {
|
1431 1403 | /* ServerOperationErrorGenerator.kt:142 */
|
1432 - | MalformedDoubleError::ValidationException(_inner) =>
|
1404 + | JsonMapsError::ValidationException(_inner) =>
|
1433 1405 | /* ServerOperationErrorGenerator.kt:95 */
|
1434 1406 | {
|
1435 1407 | _inner.name()
|
1436 1408 | }
|
1437 1409 | /* ServerOperationErrorGenerator.kt:139 */
|
1438 1410 | }
|
1439 1411 | /* ServerOperationErrorGenerator.kt:93 */
|
1440 1412 | }
|
1441 1413 | /* ServerOperationErrorGenerator.kt:83 */
|
1442 1414 | }
|
1443 1415 | /* ServerOperationErrorGenerator.kt:100 */
|
1444 - | impl ::std::error::Error for MalformedDoubleError {
|
1416 + | impl ::std::error::Error for JsonMapsError {
|
1445 1417 | /* ServerOperationErrorGenerator.kt:101 */
|
1446 1418 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1447 1419 | /* ServerOperationErrorGenerator.kt:139 */
|
1448 1420 | match &self {
|
1449 1421 | /* ServerOperationErrorGenerator.kt:142 */
|
1450 - | MalformedDoubleError::ValidationException(_inner) =>
|
1422 + | JsonMapsError::ValidationException(_inner) =>
|
1451 1423 | /* ServerOperationErrorGenerator.kt:103 */
|
1452 1424 | {
|
1453 1425 | Some(_inner)
|
1454 1426 | }
|
1455 1427 | /* ServerOperationErrorGenerator.kt:139 */
|
1456 1428 | }
|
1457 1429 | /* ServerOperationErrorGenerator.kt:101 */
|
1458 1430 | }
|
1459 1431 | /* ServerOperationErrorGenerator.kt:100 */
|
1460 1432 | }
|
1461 1433 | /* ServerOperationErrorGenerator.kt:110 */
|
1462 - | impl ::std::convert::From<crate::error::ValidationException>
|
1463 - | for crate::error::MalformedDoubleError
|
1464 - | {
|
1434 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonMapsError {
|
1465 1435 | /* ServerOperationErrorGenerator.kt:111 */
|
1466 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedDoubleError {
|
1436 + | fn from(variant: crate::error::ValidationException) -> crate::error::JsonMapsError {
|
1467 1437 | /* ServerOperationErrorGenerator.kt:112 */
|
1468 1438 | Self::ValidationException(variant)
|
1469 1439 | /* ServerOperationErrorGenerator.kt:111 */
|
1470 1440 | }
|
1471 1441 | /* ServerOperationErrorGenerator.kt:110 */
|
1472 1442 | }
|
1473 1443 |
|
1474 1444 | /* ServerOperationErrorGenerator.kt:63 */
|
1475 - | /// Error type for the `MalformedFloat` operation.
|
1445 + | /// Error type for the `SparseJsonMaps` operation.
|
1476 1446 | /* ServerOperationErrorGenerator.kt:64 */
|
1477 - | /// Each variant represents an error that can occur for the `MalformedFloat` operation.
|
1447 + | /// Each variant represents an error that can occur for the `SparseJsonMaps` operation.
|
1478 1448 | /* RustType.kt:534 */
|
1479 1449 | #[derive(::std::fmt::Debug)]
|
1480 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedFloatError {
|
1450 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum SparseJsonMapsError {
|
1481 1451 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1482 1452 | /* ServerOperationErrorGenerator.kt:71 */
|
1483 1453 | ValidationException(crate::error::ValidationException),
|
1484 1454 | /* ServerOperationErrorGenerator.kt:66 */
|
1485 1455 | }
|
1486 1456 | /* ServerOperationErrorGenerator.kt:75 */
|
1487 - | impl ::std::fmt::Display for MalformedFloatError {
|
1457 + | impl ::std::fmt::Display for SparseJsonMapsError {
|
1488 1458 | /* ServerOperationErrorGenerator.kt:76 */
|
1489 1459 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1490 1460 | /* ServerOperationErrorGenerator.kt:139 */
|
1491 1461 | match &self {
|
1492 1462 | /* ServerOperationErrorGenerator.kt:142 */
|
1493 - | MalformedFloatError::ValidationException(_inner) =>
|
1463 + | SparseJsonMapsError::ValidationException(_inner) =>
|
1494 1464 | /* ServerOperationErrorGenerator.kt:78 */
|
1495 1465 | {
|
1496 1466 | _inner.fmt(f)
|
1497 1467 | }
|
1498 1468 | /* ServerOperationErrorGenerator.kt:139 */
|
1499 1469 | }
|
1500 1470 | /* ServerOperationErrorGenerator.kt:76 */
|
1501 1471 | }
|
1502 1472 | /* ServerOperationErrorGenerator.kt:75 */
|
1503 1473 | }
|
1504 1474 | /* ServerOperationErrorGenerator.kt:83 */
|
1505 - | impl MalformedFloatError {
|
1475 + | impl SparseJsonMapsError {
|
1506 1476 | /* ServerOperationErrorGenerator.kt:87 */
|
1507 - | /// Returns `true` if the error kind is `MalformedFloatError::ValidationException`.
|
1477 + | /// Returns `true` if the error kind is `SparseJsonMapsError::ValidationException`.
|
1508 1478 | /* ServerOperationErrorGenerator.kt:88 */
|
1509 1479 | pub fn is_validation_exception(&self) -> bool {
|
1510 1480 | /* ServerOperationErrorGenerator.kt:89 */
|
1511 - | matches!(&self, MalformedFloatError::ValidationException(_))
|
1481 + | matches!(&self, SparseJsonMapsError::ValidationException(_))
|
1512 1482 | /* ServerOperationErrorGenerator.kt:88 */
|
1513 1483 | }
|
1514 1484 | /* ServerOperationErrorGenerator.kt:92 */
|
1515 1485 | /// Returns the error name string by matching the correct variant.
|
1516 1486 | /* ServerOperationErrorGenerator.kt:93 */
|
1517 1487 | pub fn name(&self) -> &'static str {
|
1518 1488 | /* ServerOperationErrorGenerator.kt:139 */
|
1519 1489 | match &self {
|
1520 1490 | /* ServerOperationErrorGenerator.kt:142 */
|
1521 - | MalformedFloatError::ValidationException(_inner) =>
|
1491 + | SparseJsonMapsError::ValidationException(_inner) =>
|
1522 1492 | /* ServerOperationErrorGenerator.kt:95 */
|
1523 1493 | {
|
1524 1494 | _inner.name()
|
1525 1495 | }
|
1526 1496 | /* ServerOperationErrorGenerator.kt:139 */
|
1527 1497 | }
|
1528 1498 | /* ServerOperationErrorGenerator.kt:93 */
|
1529 1499 | }
|
1530 1500 | /* ServerOperationErrorGenerator.kt:83 */
|
1531 1501 | }
|
1532 1502 | /* ServerOperationErrorGenerator.kt:100 */
|
1533 - | impl ::std::error::Error for MalformedFloatError {
|
1503 + | impl ::std::error::Error for SparseJsonMapsError {
|
1534 1504 | /* ServerOperationErrorGenerator.kt:101 */
|
1535 1505 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1536 1506 | /* ServerOperationErrorGenerator.kt:139 */
|
1537 1507 | match &self {
|
1538 1508 | /* ServerOperationErrorGenerator.kt:142 */
|
1539 - | MalformedFloatError::ValidationException(_inner) =>
|
1509 + | SparseJsonMapsError::ValidationException(_inner) =>
|
1540 1510 | /* ServerOperationErrorGenerator.kt:103 */
|
1541 1511 | {
|
1542 1512 | Some(_inner)
|
1543 1513 | }
|
1544 1514 | /* ServerOperationErrorGenerator.kt:139 */
|
1545 1515 | }
|
1546 1516 | /* ServerOperationErrorGenerator.kt:101 */
|
1547 1517 | }
|
1548 1518 | /* ServerOperationErrorGenerator.kt:100 */
|
1549 1519 | }
|
1550 1520 | /* ServerOperationErrorGenerator.kt:110 */
|
1551 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedFloatError {
|
1521 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::SparseJsonMapsError {
|
1552 1522 | /* ServerOperationErrorGenerator.kt:111 */
|
1553 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedFloatError {
|
1523 + | fn from(variant: crate::error::ValidationException) -> crate::error::SparseJsonMapsError {
|
1554 1524 | /* ServerOperationErrorGenerator.kt:112 */
|
1555 1525 | Self::ValidationException(variant)
|
1556 1526 | /* ServerOperationErrorGenerator.kt:111 */
|
1557 1527 | }
|
1558 1528 | /* ServerOperationErrorGenerator.kt:110 */
|
1559 1529 | }
|
1560 1530 |
|
1561 1531 | /* ServerOperationErrorGenerator.kt:63 */
|
1562 - | /// Error type for the `MalformedLong` operation.
|
1532 + | /// Error type for the `JsonUnions` operation.
|
1563 1533 | /* ServerOperationErrorGenerator.kt:64 */
|
1564 - | /// Each variant represents an error that can occur for the `MalformedLong` operation.
|
1534 + | /// Each variant represents an error that can occur for the `JsonUnions` operation.
|
1565 1535 | /* RustType.kt:534 */
|
1566 1536 | #[derive(::std::fmt::Debug)]
|
1567 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedLongError {
|
1537 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonUnionsError {
|
1568 1538 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1569 1539 | /* ServerOperationErrorGenerator.kt:71 */
|
1570 1540 | ValidationException(crate::error::ValidationException),
|
1571 1541 | /* ServerOperationErrorGenerator.kt:66 */
|
1572 1542 | }
|
1573 1543 | /* ServerOperationErrorGenerator.kt:75 */
|
1574 - | impl ::std::fmt::Display for MalformedLongError {
|
1544 + | impl ::std::fmt::Display for JsonUnionsError {
|
1575 1545 | /* ServerOperationErrorGenerator.kt:76 */
|
1576 1546 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1577 1547 | /* ServerOperationErrorGenerator.kt:139 */
|
1578 1548 | match &self {
|
1579 1549 | /* ServerOperationErrorGenerator.kt:142 */
|
1580 - | MalformedLongError::ValidationException(_inner) =>
|
1550 + | JsonUnionsError::ValidationException(_inner) =>
|
1581 1551 | /* ServerOperationErrorGenerator.kt:78 */
|
1582 1552 | {
|
1583 1553 | _inner.fmt(f)
|
1584 1554 | }
|
1585 1555 | /* ServerOperationErrorGenerator.kt:139 */
|
1586 1556 | }
|
1587 1557 | /* ServerOperationErrorGenerator.kt:76 */
|
1588 1558 | }
|
1589 1559 | /* ServerOperationErrorGenerator.kt:75 */
|
1590 1560 | }
|
1591 1561 | /* ServerOperationErrorGenerator.kt:83 */
|
1592 - | impl MalformedLongError {
|
1562 + | impl JsonUnionsError {
|
1593 1563 | /* ServerOperationErrorGenerator.kt:87 */
|
1594 - | /// Returns `true` if the error kind is `MalformedLongError::ValidationException`.
|
1564 + | /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
|
1595 1565 | /* ServerOperationErrorGenerator.kt:88 */
|
1596 1566 | pub fn is_validation_exception(&self) -> bool {
|
1597 1567 | /* ServerOperationErrorGenerator.kt:89 */
|
1598 - | matches!(&self, MalformedLongError::ValidationException(_))
|
1568 + | matches!(&self, JsonUnionsError::ValidationException(_))
|
1599 1569 | /* ServerOperationErrorGenerator.kt:88 */
|
1600 1570 | }
|
1601 1571 | /* ServerOperationErrorGenerator.kt:92 */
|
1602 1572 | /// Returns the error name string by matching the correct variant.
|
1603 1573 | /* ServerOperationErrorGenerator.kt:93 */
|
1604 1574 | pub fn name(&self) -> &'static str {
|
1605 1575 | /* ServerOperationErrorGenerator.kt:139 */
|
1606 1576 | match &self {
|
1607 1577 | /* ServerOperationErrorGenerator.kt:142 */
|
1608 - | MalformedLongError::ValidationException(_inner) =>
|
1578 + | JsonUnionsError::ValidationException(_inner) =>
|
1609 1579 | /* ServerOperationErrorGenerator.kt:95 */
|
1610 1580 | {
|
1611 1581 | _inner.name()
|
1612 1582 | }
|
1613 1583 | /* ServerOperationErrorGenerator.kt:139 */
|
1614 1584 | }
|
1615 1585 | /* ServerOperationErrorGenerator.kt:93 */
|
1616 1586 | }
|
1617 1587 | /* ServerOperationErrorGenerator.kt:83 */
|
1618 1588 | }
|
1619 1589 | /* ServerOperationErrorGenerator.kt:100 */
|
1620 - | impl ::std::error::Error for MalformedLongError {
|
1590 + | impl ::std::error::Error for JsonUnionsError {
|
1621 1591 | /* ServerOperationErrorGenerator.kt:101 */
|
1622 1592 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1623 1593 | /* ServerOperationErrorGenerator.kt:139 */
|
1624 1594 | match &self {
|
1625 1595 | /* ServerOperationErrorGenerator.kt:142 */
|
1626 - | MalformedLongError::ValidationException(_inner) =>
|
1596 + | JsonUnionsError::ValidationException(_inner) =>
|
1627 1597 | /* ServerOperationErrorGenerator.kt:103 */
|
1628 1598 | {
|
1629 1599 | Some(_inner)
|
1630 1600 | }
|
1631 1601 | /* ServerOperationErrorGenerator.kt:139 */
|
1632 1602 | }
|
1633 1603 | /* ServerOperationErrorGenerator.kt:101 */
|
1634 1604 | }
|
1635 1605 | /* ServerOperationErrorGenerator.kt:100 */
|
1636 1606 | }
|
1637 1607 | /* ServerOperationErrorGenerator.kt:110 */
|
1638 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedLongError {
|
1608 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
|
1639 1609 | /* ServerOperationErrorGenerator.kt:111 */
|
1640 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedLongError {
|
1610 + | fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
|
1641 1611 | /* ServerOperationErrorGenerator.kt:112 */
|
1642 1612 | Self::ValidationException(variant)
|
1643 1613 | /* ServerOperationErrorGenerator.kt:111 */
|
1644 1614 | }
|
1645 1615 | /* ServerOperationErrorGenerator.kt:110 */
|
1646 1616 | }
|
1647 1617 |
|
1648 1618 | /* ServerOperationErrorGenerator.kt:63 */
|
1649 - | /// Error type for the `MalformedShort` operation.
|
1619 + | /// Error type for the `EndpointWithHostLabelOperation` operation.
|
1650 1620 | /* ServerOperationErrorGenerator.kt:64 */
|
1651 - | /// Each variant represents an error that can occur for the `MalformedShort` operation.
|
1621 + | /// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
|
1652 1622 | /* RustType.kt:534 */
|
1653 1623 | #[derive(::std::fmt::Debug)]
|
1654 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedShortError {
|
1624 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EndpointWithHostLabelOperationError {
|
1655 1625 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1656 1626 | /* ServerOperationErrorGenerator.kt:71 */
|
1657 1627 | ValidationException(crate::error::ValidationException),
|
1658 1628 | /* ServerOperationErrorGenerator.kt:66 */
|
1659 1629 | }
|
1660 1630 | /* ServerOperationErrorGenerator.kt:75 */
|
1661 - | impl ::std::fmt::Display for MalformedShortError {
|
1631 + | impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
|
1662 1632 | /* ServerOperationErrorGenerator.kt:76 */
|
1663 1633 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1664 1634 | /* ServerOperationErrorGenerator.kt:139 */
|
1665 1635 | match &self {
|
1666 1636 | /* ServerOperationErrorGenerator.kt:142 */
|
1667 - | MalformedShortError::ValidationException(_inner) =>
|
1637 + | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
1668 1638 | /* ServerOperationErrorGenerator.kt:78 */
|
1669 1639 | {
|
1670 1640 | _inner.fmt(f)
|
1671 1641 | }
|
1672 1642 | /* ServerOperationErrorGenerator.kt:139 */
|
1673 1643 | }
|
1674 1644 | /* ServerOperationErrorGenerator.kt:76 */
|
1675 1645 | }
|
1676 1646 | /* ServerOperationErrorGenerator.kt:75 */
|
1677 1647 | }
|
1678 1648 | /* ServerOperationErrorGenerator.kt:83 */
|
1679 - | impl MalformedShortError {
|
1649 + | impl EndpointWithHostLabelOperationError {
|
1680 1650 | /* ServerOperationErrorGenerator.kt:87 */
|
1681 - | /// Returns `true` if the error kind is `MalformedShortError::ValidationException`.
|
1651 + | /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
|
1682 1652 | /* ServerOperationErrorGenerator.kt:88 */
|
1683 1653 | pub fn is_validation_exception(&self) -> bool {
|
1684 1654 | /* ServerOperationErrorGenerator.kt:89 */
|
1685 - | matches!(&self, MalformedShortError::ValidationException(_))
|
1655 + | matches!(
|
1656 + | &self,
|
1657 + | EndpointWithHostLabelOperationError::ValidationException(_)
|
1658 + | )
|
1686 1659 | /* ServerOperationErrorGenerator.kt:88 */
|
1687 1660 | }
|
1688 1661 | /* ServerOperationErrorGenerator.kt:92 */
|
1689 1662 | /// Returns the error name string by matching the correct variant.
|
1690 1663 | /* ServerOperationErrorGenerator.kt:93 */
|
1691 1664 | pub fn name(&self) -> &'static str {
|
1692 1665 | /* ServerOperationErrorGenerator.kt:139 */
|
1693 1666 | match &self {
|
1694 1667 | /* ServerOperationErrorGenerator.kt:142 */
|
1695 - | MalformedShortError::ValidationException(_inner) =>
|
1668 + | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
1696 1669 | /* ServerOperationErrorGenerator.kt:95 */
|
1697 1670 | {
|
1698 1671 | _inner.name()
|
1699 1672 | }
|
1700 1673 | /* ServerOperationErrorGenerator.kt:139 */
|
1701 1674 | }
|
1702 1675 | /* ServerOperationErrorGenerator.kt:93 */
|
1703 1676 | }
|
1704 1677 | /* ServerOperationErrorGenerator.kt:83 */
|
1705 1678 | }
|
1706 1679 | /* ServerOperationErrorGenerator.kt:100 */
|
1707 - | impl ::std::error::Error for MalformedShortError {
|
1680 + | impl ::std::error::Error for EndpointWithHostLabelOperationError {
|
1708 1681 | /* ServerOperationErrorGenerator.kt:101 */
|
1709 1682 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1710 1683 | /* ServerOperationErrorGenerator.kt:139 */
|
1711 1684 | match &self {
|
1712 1685 | /* ServerOperationErrorGenerator.kt:142 */
|
1713 - | MalformedShortError::ValidationException(_inner) =>
|
1686 + | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
1714 1687 | /* ServerOperationErrorGenerator.kt:103 */
|
1715 1688 | {
|
1716 1689 | Some(_inner)
|
1717 1690 | }
|
1718 1691 | /* ServerOperationErrorGenerator.kt:139 */
|
1719 1692 | }
|
1720 1693 | /* ServerOperationErrorGenerator.kt:101 */
|
1721 1694 | }
|
1722 1695 | /* ServerOperationErrorGenerator.kt:100 */
|
1723 1696 | }
|
1724 1697 | /* ServerOperationErrorGenerator.kt:110 */
|
1725 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedShortError {
|
1698 + | impl ::std::convert::From<crate::error::ValidationException>
|
1699 + | for crate::error::EndpointWithHostLabelOperationError
|
1700 + | {
|
1726 1701 | /* ServerOperationErrorGenerator.kt:111 */
|
1727 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedShortError {
|
1702 + | fn from(
|
1703 + | variant: crate::error::ValidationException,
|
1704 + | ) -> crate::error::EndpointWithHostLabelOperationError {
|
1728 1705 | /* ServerOperationErrorGenerator.kt:112 */
|
1729 1706 | Self::ValidationException(variant)
|
1730 1707 | /* ServerOperationErrorGenerator.kt:111 */
|
1731 1708 | }
|
1732 1709 | /* ServerOperationErrorGenerator.kt:110 */
|
1733 1710 | }
|
1734 1711 |
|
1735 1712 | /* ServerOperationErrorGenerator.kt:63 */
|
1736 - | /// Error type for the `MalformedByte` operation.
|
1713 + | /// Error type for the `MalformedInteger` operation.
|
1737 1714 | /* ServerOperationErrorGenerator.kt:64 */
|
1738 - | /// Each variant represents an error that can occur for the `MalformedByte` operation.
|
1715 + | /// Each variant represents an error that can occur for the `MalformedInteger` operation.
|
1739 1716 | /* RustType.kt:534 */
|
1740 1717 | #[derive(::std::fmt::Debug)]
|
1741 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedByteError {
|
1718 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedIntegerError {
|
1742 1719 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1743 1720 | /* ServerOperationErrorGenerator.kt:71 */
|
1744 1721 | ValidationException(crate::error::ValidationException),
|
1745 1722 | /* ServerOperationErrorGenerator.kt:66 */
|
1746 1723 | }
|
1747 1724 | /* ServerOperationErrorGenerator.kt:75 */
|
1748 - | impl ::std::fmt::Display for MalformedByteError {
|
1725 + | impl ::std::fmt::Display for MalformedIntegerError {
|
1749 1726 | /* ServerOperationErrorGenerator.kt:76 */
|
1750 1727 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1751 1728 | /* ServerOperationErrorGenerator.kt:139 */
|
1752 1729 | match &self {
|
1753 1730 | /* ServerOperationErrorGenerator.kt:142 */
|
1754 - | MalformedByteError::ValidationException(_inner) =>
|
1731 + | MalformedIntegerError::ValidationException(_inner) =>
|
1755 1732 | /* ServerOperationErrorGenerator.kt:78 */
|
1756 1733 | {
|
1757 1734 | _inner.fmt(f)
|
1758 1735 | }
|
1759 1736 | /* ServerOperationErrorGenerator.kt:139 */
|
1760 1737 | }
|
1761 1738 | /* ServerOperationErrorGenerator.kt:76 */
|
1762 1739 | }
|
1763 1740 | /* ServerOperationErrorGenerator.kt:75 */
|
1764 1741 | }
|
1765 1742 | /* ServerOperationErrorGenerator.kt:83 */
|
1766 - | impl MalformedByteError {
|
1743 + | impl MalformedIntegerError {
|
1767 1744 | /* ServerOperationErrorGenerator.kt:87 */
|
1768 - | /// Returns `true` if the error kind is `MalformedByteError::ValidationException`.
|
1745 + | /// Returns `true` if the error kind is `MalformedIntegerError::ValidationException`.
|
1769 1746 | /* ServerOperationErrorGenerator.kt:88 */
|
1770 1747 | pub fn is_validation_exception(&self) -> bool {
|
1771 1748 | /* ServerOperationErrorGenerator.kt:89 */
|
1772 - | matches!(&self, MalformedByteError::ValidationException(_))
|
1749 + | matches!(&self, MalformedIntegerError::ValidationException(_))
|
1773 1750 | /* ServerOperationErrorGenerator.kt:88 */
|
1774 1751 | }
|
1775 1752 | /* ServerOperationErrorGenerator.kt:92 */
|
1776 1753 | /// Returns the error name string by matching the correct variant.
|
1777 1754 | /* ServerOperationErrorGenerator.kt:93 */
|
1778 1755 | pub fn name(&self) -> &'static str {
|
1779 1756 | /* ServerOperationErrorGenerator.kt:139 */
|
1780 1757 | match &self {
|
1781 1758 | /* ServerOperationErrorGenerator.kt:142 */
|
1782 - | MalformedByteError::ValidationException(_inner) =>
|
1759 + | MalformedIntegerError::ValidationException(_inner) =>
|
1783 1760 | /* ServerOperationErrorGenerator.kt:95 */
|
1784 1761 | {
|
1785 1762 | _inner.name()
|
1786 1763 | }
|
1787 1764 | /* ServerOperationErrorGenerator.kt:139 */
|
1788 1765 | }
|
1789 1766 | /* ServerOperationErrorGenerator.kt:93 */
|
1790 1767 | }
|
1791 1768 | /* ServerOperationErrorGenerator.kt:83 */
|
1792 1769 | }
|
1793 1770 | /* ServerOperationErrorGenerator.kt:100 */
|
1794 - | impl ::std::error::Error for MalformedByteError {
|
1771 + | impl ::std::error::Error for MalformedIntegerError {
|
1795 1772 | /* ServerOperationErrorGenerator.kt:101 */
|
1796 1773 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1797 1774 | /* ServerOperationErrorGenerator.kt:139 */
|
1798 1775 | match &self {
|
1799 1776 | /* ServerOperationErrorGenerator.kt:142 */
|
1800 - | MalformedByteError::ValidationException(_inner) =>
|
1777 + | MalformedIntegerError::ValidationException(_inner) =>
|
1801 1778 | /* ServerOperationErrorGenerator.kt:103 */
|
1802 1779 | {
|
1803 1780 | Some(_inner)
|
1804 1781 | }
|
1805 1782 | /* ServerOperationErrorGenerator.kt:139 */
|
1806 1783 | }
|
1807 1784 | /* ServerOperationErrorGenerator.kt:101 */
|
1808 1785 | }
|
1809 1786 | /* ServerOperationErrorGenerator.kt:100 */
|
1810 1787 | }
|
1811 1788 | /* ServerOperationErrorGenerator.kt:110 */
|
1812 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedByteError {
|
1789 + | impl ::std::convert::From<crate::error::ValidationException>
|
1790 + | for crate::error::MalformedIntegerError
|
1791 + | {
|
1813 1792 | /* ServerOperationErrorGenerator.kt:111 */
|
1814 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedByteError {
|
1793 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedIntegerError {
|
1815 1794 | /* ServerOperationErrorGenerator.kt:112 */
|
1816 1795 | Self::ValidationException(variant)
|
1817 1796 | /* ServerOperationErrorGenerator.kt:111 */
|
1818 1797 | }
|
1819 1798 | /* ServerOperationErrorGenerator.kt:110 */
|
1820 1799 | }
|
1821 1800 |
|
1822 1801 | /* ServerOperationErrorGenerator.kt:63 */
|
1823 1802 | /// Error type for the `MalformedBoolean` operation.
|
1824 1803 | /* ServerOperationErrorGenerator.kt:64 */
|
1902 1881 | /* ServerOperationErrorGenerator.kt:111 */
|
1903 1882 | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedBooleanError {
|
1904 1883 | /* ServerOperationErrorGenerator.kt:112 */
|
1905 1884 | Self::ValidationException(variant)
|
1906 1885 | /* ServerOperationErrorGenerator.kt:111 */
|
1907 1886 | }
|
1908 1887 | /* ServerOperationErrorGenerator.kt:110 */
|
1909 1888 | }
|
1910 1889 |
|
1911 1890 | /* ServerOperationErrorGenerator.kt:63 */
|
1912 - | /// Error type for the `MalformedInteger` operation.
|
1891 + | /// Error type for the `MalformedByte` operation.
|
1913 1892 | /* ServerOperationErrorGenerator.kt:64 */
|
1914 - | /// Each variant represents an error that can occur for the `MalformedInteger` operation.
|
1893 + | /// Each variant represents an error that can occur for the `MalformedByte` operation.
|
1915 1894 | /* RustType.kt:534 */
|
1916 1895 | #[derive(::std::fmt::Debug)]
|
1917 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedIntegerError {
|
1896 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedByteError {
|
1918 1897 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
1919 1898 | /* ServerOperationErrorGenerator.kt:71 */
|
1920 1899 | ValidationException(crate::error::ValidationException),
|
1921 1900 | /* ServerOperationErrorGenerator.kt:66 */
|
1922 1901 | }
|
1923 1902 | /* ServerOperationErrorGenerator.kt:75 */
|
1924 - | impl ::std::fmt::Display for MalformedIntegerError {
|
1903 + | impl ::std::fmt::Display for MalformedByteError {
|
1925 1904 | /* ServerOperationErrorGenerator.kt:76 */
|
1926 1905 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1927 1906 | /* ServerOperationErrorGenerator.kt:139 */
|
1928 1907 | match &self {
|
1929 1908 | /* ServerOperationErrorGenerator.kt:142 */
|
1930 - | MalformedIntegerError::ValidationException(_inner) =>
|
1909 + | MalformedByteError::ValidationException(_inner) =>
|
1931 1910 | /* ServerOperationErrorGenerator.kt:78 */
|
1932 1911 | {
|
1933 1912 | _inner.fmt(f)
|
1934 1913 | }
|
1935 1914 | /* ServerOperationErrorGenerator.kt:139 */
|
1936 1915 | }
|
1937 1916 | /* ServerOperationErrorGenerator.kt:76 */
|
1938 1917 | }
|
1939 1918 | /* ServerOperationErrorGenerator.kt:75 */
|
1940 1919 | }
|
1941 1920 | /* ServerOperationErrorGenerator.kt:83 */
|
1942 - | impl MalformedIntegerError {
|
1921 + | impl MalformedByteError {
|
1943 1922 | /* ServerOperationErrorGenerator.kt:87 */
|
1944 - | /// Returns `true` if the error kind is `MalformedIntegerError::ValidationException`.
|
1923 + | /// Returns `true` if the error kind is `MalformedByteError::ValidationException`.
|
1945 1924 | /* ServerOperationErrorGenerator.kt:88 */
|
1946 1925 | pub fn is_validation_exception(&self) -> bool {
|
1947 1926 | /* ServerOperationErrorGenerator.kt:89 */
|
1948 - | matches!(&self, MalformedIntegerError::ValidationException(_))
|
1927 + | matches!(&self, MalformedByteError::ValidationException(_))
|
1949 1928 | /* ServerOperationErrorGenerator.kt:88 */
|
1950 1929 | }
|
1951 1930 | /* ServerOperationErrorGenerator.kt:92 */
|
1952 1931 | /// Returns the error name string by matching the correct variant.
|
1953 1932 | /* ServerOperationErrorGenerator.kt:93 */
|
1954 1933 | pub fn name(&self) -> &'static str {
|
1955 1934 | /* ServerOperationErrorGenerator.kt:139 */
|
1956 1935 | match &self {
|
1957 1936 | /* ServerOperationErrorGenerator.kt:142 */
|
1958 - | MalformedIntegerError::ValidationException(_inner) =>
|
1937 + | MalformedByteError::ValidationException(_inner) =>
|
1959 1938 | /* ServerOperationErrorGenerator.kt:95 */
|
1960 1939 | {
|
1961 1940 | _inner.name()
|
1962 1941 | }
|
1963 1942 | /* ServerOperationErrorGenerator.kt:139 */
|
1964 1943 | }
|
1965 1944 | /* ServerOperationErrorGenerator.kt:93 */
|
1966 1945 | }
|
1967 1946 | /* ServerOperationErrorGenerator.kt:83 */
|
1968 1947 | }
|
1969 1948 | /* ServerOperationErrorGenerator.kt:100 */
|
1970 - | impl ::std::error::Error for MalformedIntegerError {
|
1949 + | impl ::std::error::Error for MalformedByteError {
|
1971 1950 | /* ServerOperationErrorGenerator.kt:101 */
|
1972 1951 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1973 1952 | /* ServerOperationErrorGenerator.kt:139 */
|
1974 1953 | match &self {
|
1975 1954 | /* ServerOperationErrorGenerator.kt:142 */
|
1976 - | MalformedIntegerError::ValidationException(_inner) =>
|
1955 + | MalformedByteError::ValidationException(_inner) =>
|
1977 1956 | /* ServerOperationErrorGenerator.kt:103 */
|
1978 1957 | {
|
1979 1958 | Some(_inner)
|
1980 1959 | }
|
1981 1960 | /* ServerOperationErrorGenerator.kt:139 */
|
1982 1961 | }
|
1983 1962 | /* ServerOperationErrorGenerator.kt:101 */
|
1984 1963 | }
|
1985 1964 | /* ServerOperationErrorGenerator.kt:100 */
|
1986 1965 | }
|
1987 1966 | /* ServerOperationErrorGenerator.kt:110 */
|
1988 - | impl ::std::convert::From<crate::error::ValidationException>
|
1989 - | for crate::error::MalformedIntegerError
|
1990 - | {
|
1967 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedByteError {
|
1991 1968 | /* ServerOperationErrorGenerator.kt:111 */
|
1992 - | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedIntegerError {
|
1969 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedByteError {
|
1993 1970 | /* ServerOperationErrorGenerator.kt:112 */
|
1994 1971 | Self::ValidationException(variant)
|
1995 1972 | /* ServerOperationErrorGenerator.kt:111 */
|
1996 1973 | }
|
1997 1974 | /* ServerOperationErrorGenerator.kt:110 */
|
1998 1975 | }
|
1999 1976 |
|
2000 1977 | /* ServerOperationErrorGenerator.kt:63 */
|
2001 - | /// Error type for the `EndpointWithHostLabelOperation` operation.
|
1978 + | /// Error type for the `MalformedShort` operation.
|
2002 1979 | /* ServerOperationErrorGenerator.kt:64 */
|
2003 - | /// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
|
1980 + | /// Each variant represents an error that can occur for the `MalformedShort` operation.
|
2004 1981 | /* RustType.kt:534 */
|
2005 1982 | #[derive(::std::fmt::Debug)]
|
2006 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum EndpointWithHostLabelOperationError {
|
1983 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedShortError {
|
2007 1984 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2008 1985 | /* ServerOperationErrorGenerator.kt:71 */
|
2009 1986 | ValidationException(crate::error::ValidationException),
|
2010 1987 | /* ServerOperationErrorGenerator.kt:66 */
|
2011 1988 | }
|
2012 1989 | /* ServerOperationErrorGenerator.kt:75 */
|
2013 - | impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
|
1990 + | impl ::std::fmt::Display for MalformedShortError {
|
2014 1991 | /* ServerOperationErrorGenerator.kt:76 */
|
2015 1992 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2016 1993 | /* ServerOperationErrorGenerator.kt:139 */
|
2017 1994 | match &self {
|
2018 1995 | /* ServerOperationErrorGenerator.kt:142 */
|
2019 - | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
1996 + | MalformedShortError::ValidationException(_inner) =>
|
2020 1997 | /* ServerOperationErrorGenerator.kt:78 */
|
2021 1998 | {
|
2022 1999 | _inner.fmt(f)
|
2023 2000 | }
|
2024 2001 | /* ServerOperationErrorGenerator.kt:139 */
|
2025 2002 | }
|
2026 2003 | /* ServerOperationErrorGenerator.kt:76 */
|
2027 2004 | }
|
2028 2005 | /* ServerOperationErrorGenerator.kt:75 */
|
2029 2006 | }
|
2030 2007 | /* ServerOperationErrorGenerator.kt:83 */
|
2031 - | impl EndpointWithHostLabelOperationError {
|
2008 + | impl MalformedShortError {
|
2032 2009 | /* ServerOperationErrorGenerator.kt:87 */
|
2033 - | /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
|
2010 + | /// Returns `true` if the error kind is `MalformedShortError::ValidationException`.
|
2034 2011 | /* ServerOperationErrorGenerator.kt:88 */
|
2035 2012 | pub fn is_validation_exception(&self) -> bool {
|
2036 2013 | /* ServerOperationErrorGenerator.kt:89 */
|
2037 - | matches!(
|
2038 - | &self,
|
2039 - | EndpointWithHostLabelOperationError::ValidationException(_)
|
2040 - | )
|
2014 + | matches!(&self, MalformedShortError::ValidationException(_))
|
2041 2015 | /* ServerOperationErrorGenerator.kt:88 */
|
2042 2016 | }
|
2043 2017 | /* ServerOperationErrorGenerator.kt:92 */
|
2044 2018 | /// Returns the error name string by matching the correct variant.
|
2045 2019 | /* ServerOperationErrorGenerator.kt:93 */
|
2046 2020 | pub fn name(&self) -> &'static str {
|
2047 2021 | /* ServerOperationErrorGenerator.kt:139 */
|
2048 2022 | match &self {
|
2049 2023 | /* ServerOperationErrorGenerator.kt:142 */
|
2050 - | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
2024 + | MalformedShortError::ValidationException(_inner) =>
|
2051 2025 | /* ServerOperationErrorGenerator.kt:95 */
|
2052 2026 | {
|
2053 2027 | _inner.name()
|
2054 2028 | }
|
2055 2029 | /* ServerOperationErrorGenerator.kt:139 */
|
2056 2030 | }
|
2057 2031 | /* ServerOperationErrorGenerator.kt:93 */
|
2058 2032 | }
|
2059 2033 | /* ServerOperationErrorGenerator.kt:83 */
|
2060 2034 | }
|
2061 2035 | /* ServerOperationErrorGenerator.kt:100 */
|
2062 - | impl ::std::error::Error for EndpointWithHostLabelOperationError {
|
2036 + | impl ::std::error::Error for MalformedShortError {
|
2063 2037 | /* ServerOperationErrorGenerator.kt:101 */
|
2064 2038 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2065 2039 | /* ServerOperationErrorGenerator.kt:139 */
|
2066 2040 | match &self {
|
2067 2041 | /* ServerOperationErrorGenerator.kt:142 */
|
2068 - | EndpointWithHostLabelOperationError::ValidationException(_inner) =>
|
2042 + | MalformedShortError::ValidationException(_inner) =>
|
2069 2043 | /* ServerOperationErrorGenerator.kt:103 */
|
2070 2044 | {
|
2071 2045 | Some(_inner)
|
2072 2046 | }
|
2073 2047 | /* ServerOperationErrorGenerator.kt:139 */
|
2074 2048 | }
|
2075 2049 | /* ServerOperationErrorGenerator.kt:101 */
|
2076 2050 | }
|
2077 2051 | /* ServerOperationErrorGenerator.kt:100 */
|
2078 2052 | }
|
2079 2053 | /* ServerOperationErrorGenerator.kt:110 */
|
2080 - | impl ::std::convert::From<crate::error::ValidationException>
|
2081 - | for crate::error::EndpointWithHostLabelOperationError
|
2082 - | {
|
2054 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedShortError {
|
2083 2055 | /* ServerOperationErrorGenerator.kt:111 */
|
2084 - | fn from(
|
2085 - | variant: crate::error::ValidationException,
|
2086 - | ) -> crate::error::EndpointWithHostLabelOperationError {
|
2056 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedShortError {
|
2087 2057 | /* ServerOperationErrorGenerator.kt:112 */
|
2088 2058 | Self::ValidationException(variant)
|
2089 2059 | /* ServerOperationErrorGenerator.kt:111 */
|
2090 2060 | }
|
2091 2061 | /* ServerOperationErrorGenerator.kt:110 */
|
2092 2062 | }
|
2093 2063 |
|
2094 2064 | /* ServerOperationErrorGenerator.kt:63 */
|
2095 - | /// Error type for the `JsonUnions` operation.
|
2065 + | /// Error type for the `MalformedLong` operation.
|
2096 2066 | /* ServerOperationErrorGenerator.kt:64 */
|
2097 - | /// Each variant represents an error that can occur for the `JsonUnions` operation.
|
2067 + | /// Each variant represents an error that can occur for the `MalformedLong` operation.
|
2098 2068 | /* RustType.kt:534 */
|
2099 2069 | #[derive(::std::fmt::Debug)]
|
2100 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonUnionsError {
|
2070 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedLongError {
|
2101 2071 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2102 2072 | /* ServerOperationErrorGenerator.kt:71 */
|
2103 2073 | ValidationException(crate::error::ValidationException),
|
2104 2074 | /* ServerOperationErrorGenerator.kt:66 */
|
2105 2075 | }
|
2106 2076 | /* ServerOperationErrorGenerator.kt:75 */
|
2107 - | impl ::std::fmt::Display for JsonUnionsError {
|
2077 + | impl ::std::fmt::Display for MalformedLongError {
|
2108 2078 | /* ServerOperationErrorGenerator.kt:76 */
|
2109 2079 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2110 2080 | /* ServerOperationErrorGenerator.kt:139 */
|
2111 2081 | match &self {
|
2112 2082 | /* ServerOperationErrorGenerator.kt:142 */
|
2113 - | JsonUnionsError::ValidationException(_inner) =>
|
2083 + | MalformedLongError::ValidationException(_inner) =>
|
2114 2084 | /* ServerOperationErrorGenerator.kt:78 */
|
2115 2085 | {
|
2116 2086 | _inner.fmt(f)
|
2117 2087 | }
|
2118 2088 | /* ServerOperationErrorGenerator.kt:139 */
|
2119 2089 | }
|
2120 2090 | /* ServerOperationErrorGenerator.kt:76 */
|
2121 2091 | }
|
2122 2092 | /* ServerOperationErrorGenerator.kt:75 */
|
2123 2093 | }
|
2124 2094 | /* ServerOperationErrorGenerator.kt:83 */
|
2125 - | impl JsonUnionsError {
|
2095 + | impl MalformedLongError {
|
2126 2096 | /* ServerOperationErrorGenerator.kt:87 */
|
2127 - | /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
|
2097 + | /// Returns `true` if the error kind is `MalformedLongError::ValidationException`.
|
2128 2098 | /* ServerOperationErrorGenerator.kt:88 */
|
2129 2099 | pub fn is_validation_exception(&self) -> bool {
|
2130 2100 | /* ServerOperationErrorGenerator.kt:89 */
|
2131 - | matches!(&self, JsonUnionsError::ValidationException(_))
|
2101 + | matches!(&self, MalformedLongError::ValidationException(_))
|
2132 2102 | /* ServerOperationErrorGenerator.kt:88 */
|
2133 2103 | }
|
2134 2104 | /* ServerOperationErrorGenerator.kt:92 */
|
2135 2105 | /// Returns the error name string by matching the correct variant.
|
2136 2106 | /* ServerOperationErrorGenerator.kt:93 */
|
2137 2107 | pub fn name(&self) -> &'static str {
|
2138 2108 | /* ServerOperationErrorGenerator.kt:139 */
|
2139 2109 | match &self {
|
2140 2110 | /* ServerOperationErrorGenerator.kt:142 */
|
2141 - | JsonUnionsError::ValidationException(_inner) =>
|
2111 + | MalformedLongError::ValidationException(_inner) =>
|
2142 2112 | /* ServerOperationErrorGenerator.kt:95 */
|
2143 2113 | {
|
2144 2114 | _inner.name()
|
2145 2115 | }
|
2146 2116 | /* ServerOperationErrorGenerator.kt:139 */
|
2147 2117 | }
|
2148 2118 | /* ServerOperationErrorGenerator.kt:93 */
|
2149 2119 | }
|
2150 2120 | /* ServerOperationErrorGenerator.kt:83 */
|
2151 2121 | }
|
2152 2122 | /* ServerOperationErrorGenerator.kt:100 */
|
2153 - | impl ::std::error::Error for JsonUnionsError {
|
2123 + | impl ::std::error::Error for MalformedLongError {
|
2154 2124 | /* ServerOperationErrorGenerator.kt:101 */
|
2155 2125 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2156 2126 | /* ServerOperationErrorGenerator.kt:139 */
|
2157 2127 | match &self {
|
2158 2128 | /* ServerOperationErrorGenerator.kt:142 */
|
2159 - | JsonUnionsError::ValidationException(_inner) =>
|
2129 + | MalformedLongError::ValidationException(_inner) =>
|
2160 2130 | /* ServerOperationErrorGenerator.kt:103 */
|
2161 2131 | {
|
2162 2132 | Some(_inner)
|
2163 2133 | }
|
2164 2134 | /* ServerOperationErrorGenerator.kt:139 */
|
2165 2135 | }
|
2166 2136 | /* ServerOperationErrorGenerator.kt:101 */
|
2167 2137 | }
|
2168 2138 | /* ServerOperationErrorGenerator.kt:100 */
|
2169 2139 | }
|
2170 2140 | /* ServerOperationErrorGenerator.kt:110 */
|
2171 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
|
2141 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedLongError {
|
2172 2142 | /* ServerOperationErrorGenerator.kt:111 */
|
2173 - | fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
|
2143 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedLongError {
|
2174 2144 | /* ServerOperationErrorGenerator.kt:112 */
|
2175 2145 | Self::ValidationException(variant)
|
2176 2146 | /* ServerOperationErrorGenerator.kt:111 */
|
2177 2147 | }
|
2178 2148 | /* ServerOperationErrorGenerator.kt:110 */
|
2179 2149 | }
|
2180 2150 |
|
2181 2151 | /* ServerOperationErrorGenerator.kt:63 */
|
2182 - | /// Error type for the `SparseJsonMaps` operation.
|
2152 + | /// Error type for the `MalformedFloat` operation.
|
2183 2153 | /* ServerOperationErrorGenerator.kt:64 */
|
2184 - | /// Each variant represents an error that can occur for the `SparseJsonMaps` operation.
|
2154 + | /// Each variant represents an error that can occur for the `MalformedFloat` operation.
|
2185 2155 | /* RustType.kt:534 */
|
2186 2156 | #[derive(::std::fmt::Debug)]
|
2187 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum SparseJsonMapsError {
|
2157 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedFloatError {
|
2188 2158 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2189 2159 | /* ServerOperationErrorGenerator.kt:71 */
|
2190 2160 | ValidationException(crate::error::ValidationException),
|
2191 2161 | /* ServerOperationErrorGenerator.kt:66 */
|
2192 2162 | }
|
2193 2163 | /* ServerOperationErrorGenerator.kt:75 */
|
2194 - | impl ::std::fmt::Display for SparseJsonMapsError {
|
2164 + | impl ::std::fmt::Display for MalformedFloatError {
|
2195 2165 | /* ServerOperationErrorGenerator.kt:76 */
|
2196 2166 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2197 2167 | /* ServerOperationErrorGenerator.kt:139 */
|
2198 2168 | match &self {
|
2199 2169 | /* ServerOperationErrorGenerator.kt:142 */
|
2200 - | SparseJsonMapsError::ValidationException(_inner) =>
|
2170 + | MalformedFloatError::ValidationException(_inner) =>
|
2201 2171 | /* ServerOperationErrorGenerator.kt:78 */
|
2202 2172 | {
|
2203 2173 | _inner.fmt(f)
|
2204 2174 | }
|
2205 2175 | /* ServerOperationErrorGenerator.kt:139 */
|
2206 2176 | }
|
2207 2177 | /* ServerOperationErrorGenerator.kt:76 */
|
2208 2178 | }
|
2209 2179 | /* ServerOperationErrorGenerator.kt:75 */
|
2210 2180 | }
|
2211 2181 | /* ServerOperationErrorGenerator.kt:83 */
|
2212 - | impl SparseJsonMapsError {
|
2182 + | impl MalformedFloatError {
|
2213 2183 | /* ServerOperationErrorGenerator.kt:87 */
|
2214 - | /// Returns `true` if the error kind is `SparseJsonMapsError::ValidationException`.
|
2184 + | /// Returns `true` if the error kind is `MalformedFloatError::ValidationException`.
|
2215 2185 | /* ServerOperationErrorGenerator.kt:88 */
|
2216 2186 | pub fn is_validation_exception(&self) -> bool {
|
2217 2187 | /* ServerOperationErrorGenerator.kt:89 */
|
2218 - | matches!(&self, SparseJsonMapsError::ValidationException(_))
|
2188 + | matches!(&self, MalformedFloatError::ValidationException(_))
|
2219 2189 | /* ServerOperationErrorGenerator.kt:88 */
|
2220 2190 | }
|
2221 2191 | /* ServerOperationErrorGenerator.kt:92 */
|
2222 2192 | /// Returns the error name string by matching the correct variant.
|
2223 2193 | /* ServerOperationErrorGenerator.kt:93 */
|
2224 2194 | pub fn name(&self) -> &'static str {
|
2225 2195 | /* ServerOperationErrorGenerator.kt:139 */
|
2226 2196 | match &self {
|
2227 2197 | /* ServerOperationErrorGenerator.kt:142 */
|
2228 - | SparseJsonMapsError::ValidationException(_inner) =>
|
2198 + | MalformedFloatError::ValidationException(_inner) =>
|
2229 2199 | /* ServerOperationErrorGenerator.kt:95 */
|
2230 2200 | {
|
2231 2201 | _inner.name()
|
2232 2202 | }
|
2233 2203 | /* ServerOperationErrorGenerator.kt:139 */
|
2234 2204 | }
|
2235 2205 | /* ServerOperationErrorGenerator.kt:93 */
|
2236 2206 | }
|
2237 2207 | /* ServerOperationErrorGenerator.kt:83 */
|
2238 2208 | }
|
2239 2209 | /* ServerOperationErrorGenerator.kt:100 */
|
2240 - | impl ::std::error::Error for SparseJsonMapsError {
|
2210 + | impl ::std::error::Error for MalformedFloatError {
|
2241 2211 | /* ServerOperationErrorGenerator.kt:101 */
|
2242 2212 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2243 2213 | /* ServerOperationErrorGenerator.kt:139 */
|
2244 2214 | match &self {
|
2245 2215 | /* ServerOperationErrorGenerator.kt:142 */
|
2246 - | SparseJsonMapsError::ValidationException(_inner) =>
|
2216 + | MalformedFloatError::ValidationException(_inner) =>
|
2247 2217 | /* ServerOperationErrorGenerator.kt:103 */
|
2248 2218 | {
|
2249 2219 | Some(_inner)
|
2250 2220 | }
|
2251 2221 | /* ServerOperationErrorGenerator.kt:139 */
|
2252 2222 | }
|
2253 2223 | /* ServerOperationErrorGenerator.kt:101 */
|
2254 2224 | }
|
2255 2225 | /* ServerOperationErrorGenerator.kt:100 */
|
2256 2226 | }
|
2257 2227 | /* ServerOperationErrorGenerator.kt:110 */
|
2258 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::SparseJsonMapsError {
|
2228 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::MalformedFloatError {
|
2259 2229 | /* ServerOperationErrorGenerator.kt:111 */
|
2260 - | fn from(variant: crate::error::ValidationException) -> crate::error::SparseJsonMapsError {
|
2230 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedFloatError {
|
2261 2231 | /* ServerOperationErrorGenerator.kt:112 */
|
2262 2232 | Self::ValidationException(variant)
|
2263 2233 | /* ServerOperationErrorGenerator.kt:111 */
|
2264 2234 | }
|
2265 2235 | /* ServerOperationErrorGenerator.kt:110 */
|
2266 2236 | }
|
2267 2237 |
|
2268 2238 | /* ServerOperationErrorGenerator.kt:63 */
|
2269 - | /// Error type for the `JsonMaps` operation.
|
2239 + | /// Error type for the `MalformedDouble` operation.
|
2270 2240 | /* ServerOperationErrorGenerator.kt:64 */
|
2271 - | /// Each variant represents an error that can occur for the `JsonMaps` operation.
|
2241 + | /// Each variant represents an error that can occur for the `MalformedDouble` operation.
|
2272 2242 | /* RustType.kt:534 */
|
2273 2243 | #[derive(::std::fmt::Debug)]
|
2274 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonMapsError {
|
2244 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedDoubleError {
|
2275 2245 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2276 2246 | /* ServerOperationErrorGenerator.kt:71 */
|
2277 2247 | ValidationException(crate::error::ValidationException),
|
2278 2248 | /* ServerOperationErrorGenerator.kt:66 */
|
2279 2249 | }
|
2280 2250 | /* ServerOperationErrorGenerator.kt:75 */
|
2281 - | impl ::std::fmt::Display for JsonMapsError {
|
2251 + | impl ::std::fmt::Display for MalformedDoubleError {
|
2282 2252 | /* ServerOperationErrorGenerator.kt:76 */
|
2283 2253 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2284 2254 | /* ServerOperationErrorGenerator.kt:139 */
|
2285 2255 | match &self {
|
2286 2256 | /* ServerOperationErrorGenerator.kt:142 */
|
2287 - | JsonMapsError::ValidationException(_inner) =>
|
2257 + | MalformedDoubleError::ValidationException(_inner) =>
|
2288 2258 | /* ServerOperationErrorGenerator.kt:78 */
|
2289 2259 | {
|
2290 2260 | _inner.fmt(f)
|
2291 2261 | }
|
2292 2262 | /* ServerOperationErrorGenerator.kt:139 */
|
2293 2263 | }
|
2294 2264 | /* ServerOperationErrorGenerator.kt:76 */
|
2295 2265 | }
|
2296 2266 | /* ServerOperationErrorGenerator.kt:75 */
|
2297 2267 | }
|
2298 2268 | /* ServerOperationErrorGenerator.kt:83 */
|
2299 - | impl JsonMapsError {
|
2269 + | impl MalformedDoubleError {
|
2300 2270 | /* ServerOperationErrorGenerator.kt:87 */
|
2301 - | /// Returns `true` if the error kind is `JsonMapsError::ValidationException`.
|
2271 + | /// Returns `true` if the error kind is `MalformedDoubleError::ValidationException`.
|
2302 2272 | /* ServerOperationErrorGenerator.kt:88 */
|
2303 2273 | pub fn is_validation_exception(&self) -> bool {
|
2304 2274 | /* ServerOperationErrorGenerator.kt:89 */
|
2305 - | matches!(&self, JsonMapsError::ValidationException(_))
|
2275 + | matches!(&self, MalformedDoubleError::ValidationException(_))
|
2306 2276 | /* ServerOperationErrorGenerator.kt:88 */
|
2307 2277 | }
|
2308 2278 | /* ServerOperationErrorGenerator.kt:92 */
|
2309 2279 | /// Returns the error name string by matching the correct variant.
|
2310 2280 | /* ServerOperationErrorGenerator.kt:93 */
|
2311 2281 | pub fn name(&self) -> &'static str {
|
2312 2282 | /* ServerOperationErrorGenerator.kt:139 */
|
2313 2283 | match &self {
|
2314 2284 | /* ServerOperationErrorGenerator.kt:142 */
|
2315 - | JsonMapsError::ValidationException(_inner) =>
|
2285 + | MalformedDoubleError::ValidationException(_inner) =>
|
2316 2286 | /* ServerOperationErrorGenerator.kt:95 */
|
2317 2287 | {
|
2318 2288 | _inner.name()
|
2319 2289 | }
|
2320 2290 | /* ServerOperationErrorGenerator.kt:139 */
|
2321 2291 | }
|
2322 2292 | /* ServerOperationErrorGenerator.kt:93 */
|
2323 2293 | }
|
2324 2294 | /* ServerOperationErrorGenerator.kt:83 */
|
2325 2295 | }
|
2326 2296 | /* ServerOperationErrorGenerator.kt:100 */
|
2327 - | impl ::std::error::Error for JsonMapsError {
|
2297 + | impl ::std::error::Error for MalformedDoubleError {
|
2328 2298 | /* ServerOperationErrorGenerator.kt:101 */
|
2329 2299 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2330 2300 | /* ServerOperationErrorGenerator.kt:139 */
|
2331 2301 | match &self {
|
2332 2302 | /* ServerOperationErrorGenerator.kt:142 */
|
2333 - | JsonMapsError::ValidationException(_inner) =>
|
2303 + | MalformedDoubleError::ValidationException(_inner) =>
|
2334 2304 | /* ServerOperationErrorGenerator.kt:103 */
|
2335 2305 | {
|
2336 2306 | Some(_inner)
|
2337 2307 | }
|
2338 2308 | /* ServerOperationErrorGenerator.kt:139 */
|
2339 2309 | }
|
2340 2310 | /* ServerOperationErrorGenerator.kt:101 */
|
2341 2311 | }
|
2342 2312 | /* ServerOperationErrorGenerator.kt:100 */
|
2343 2313 | }
|
2344 2314 | /* ServerOperationErrorGenerator.kt:110 */
|
2345 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonMapsError {
|
2315 + | impl ::std::convert::From<crate::error::ValidationException>
|
2316 + | for crate::error::MalformedDoubleError
|
2317 + | {
|
2346 2318 | /* ServerOperationErrorGenerator.kt:111 */
|
2347 - | fn from(variant: crate::error::ValidationException) -> crate::error::JsonMapsError {
|
2319 + | fn from(variant: crate::error::ValidationException) -> crate::error::MalformedDoubleError {
|
2348 2320 | /* ServerOperationErrorGenerator.kt:112 */
|
2349 2321 | Self::ValidationException(variant)
|
2350 2322 | /* ServerOperationErrorGenerator.kt:111 */
|
2351 2323 | }
|
2352 2324 | /* ServerOperationErrorGenerator.kt:110 */
|
2353 2325 | }
|
2354 2326 |
|
2355 2327 | /* ServerOperationErrorGenerator.kt:63 */
|
2356 - | /// Error type for the `JsonLists` operation.
|
2328 + | /// Error type for the `MalformedTimestampPathDefault` operation.
|
2357 2329 | /* ServerOperationErrorGenerator.kt:64 */
|
2358 - | /// Each variant represents an error that can occur for the `JsonLists` operation.
|
2330 + | /// Each variant represents an error that can occur for the `MalformedTimestampPathDefault` operation.
|
2359 2331 | /* RustType.kt:534 */
|
2360 2332 | #[derive(::std::fmt::Debug)]
|
2361 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonListsError {
|
2333 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathDefaultError {
|
2362 2334 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2363 2335 | /* ServerOperationErrorGenerator.kt:71 */
|
2364 2336 | ValidationException(crate::error::ValidationException),
|
2365 2337 | /* ServerOperationErrorGenerator.kt:66 */
|
2366 2338 | }
|
2367 2339 | /* ServerOperationErrorGenerator.kt:75 */
|
2368 - | impl ::std::fmt::Display for JsonListsError {
|
2340 + | impl ::std::fmt::Display for MalformedTimestampPathDefaultError {
|
2369 2341 | /* ServerOperationErrorGenerator.kt:76 */
|
2370 2342 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2371 2343 | /* ServerOperationErrorGenerator.kt:139 */
|
2372 2344 | match &self {
|
2373 2345 | /* ServerOperationErrorGenerator.kt:142 */
|
2374 - | JsonListsError::ValidationException(_inner) =>
|
2346 + | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
2375 2347 | /* ServerOperationErrorGenerator.kt:78 */
|
2376 2348 | {
|
2377 2349 | _inner.fmt(f)
|
2378 2350 | }
|
2379 2351 | /* ServerOperationErrorGenerator.kt:139 */
|
2380 2352 | }
|
2381 2353 | /* ServerOperationErrorGenerator.kt:76 */
|
2382 2354 | }
|
2383 2355 | /* ServerOperationErrorGenerator.kt:75 */
|
2384 2356 | }
|
2385 2357 | /* ServerOperationErrorGenerator.kt:83 */
|
2386 - | impl JsonListsError {
|
2358 + | impl MalformedTimestampPathDefaultError {
|
2387 2359 | /* ServerOperationErrorGenerator.kt:87 */
|
2388 - | /// Returns `true` if the error kind is `JsonListsError::ValidationException`.
|
2360 + | /// Returns `true` if the error kind is `MalformedTimestampPathDefaultError::ValidationException`.
|
2389 2361 | /* ServerOperationErrorGenerator.kt:88 */
|
2390 2362 | pub fn is_validation_exception(&self) -> bool {
|
2391 2363 | /* ServerOperationErrorGenerator.kt:89 */
|
2392 - | matches!(&self, JsonListsError::ValidationException(_))
|
2364 + | matches!(
|
2365 + | &self,
|
2366 + | MalformedTimestampPathDefaultError::ValidationException(_)
|
2367 + | )
|
2393 2368 | /* ServerOperationErrorGenerator.kt:88 */
|
2394 2369 | }
|
2395 2370 | /* ServerOperationErrorGenerator.kt:92 */
|
2396 2371 | /// Returns the error name string by matching the correct variant.
|
2397 2372 | /* ServerOperationErrorGenerator.kt:93 */
|
2398 2373 | pub fn name(&self) -> &'static str {
|
2399 2374 | /* ServerOperationErrorGenerator.kt:139 */
|
2400 2375 | match &self {
|
2401 2376 | /* ServerOperationErrorGenerator.kt:142 */
|
2402 - | JsonListsError::ValidationException(_inner) =>
|
2377 + | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
2403 2378 | /* ServerOperationErrorGenerator.kt:95 */
|
2404 2379 | {
|
2405 2380 | _inner.name()
|
2406 2381 | }
|
2407 2382 | /* ServerOperationErrorGenerator.kt:139 */
|
2408 2383 | }
|
2409 2384 | /* ServerOperationErrorGenerator.kt:93 */
|
2410 2385 | }
|
2411 2386 | /* ServerOperationErrorGenerator.kt:83 */
|
2412 2387 | }
|
2413 2388 | /* ServerOperationErrorGenerator.kt:100 */
|
2414 - | impl ::std::error::Error for JsonListsError {
|
2389 + | impl ::std::error::Error for MalformedTimestampPathDefaultError {
|
2415 2390 | /* ServerOperationErrorGenerator.kt:101 */
|
2416 2391 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2417 2392 | /* ServerOperationErrorGenerator.kt:139 */
|
2418 2393 | match &self {
|
2419 2394 | /* ServerOperationErrorGenerator.kt:142 */
|
2420 - | JsonListsError::ValidationException(_inner) =>
|
2395 + | MalformedTimestampPathDefaultError::ValidationException(_inner) =>
|
2421 2396 | /* ServerOperationErrorGenerator.kt:103 */
|
2422 2397 | {
|
2423 2398 | Some(_inner)
|
2424 2399 | }
|
2425 2400 | /* ServerOperationErrorGenerator.kt:139 */
|
2426 2401 | }
|
2427 2402 | /* ServerOperationErrorGenerator.kt:101 */
|
2428 2403 | }
|
2429 2404 | /* ServerOperationErrorGenerator.kt:100 */
|
2430 2405 | }
|
2431 2406 | /* ServerOperationErrorGenerator.kt:110 */
|
2432 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonListsError {
|
2407 + | impl ::std::convert::From<crate::error::ValidationException>
|
2408 + | for crate::error::MalformedTimestampPathDefaultError
|
2409 + | {
|
2433 2410 | /* ServerOperationErrorGenerator.kt:111 */
|
2434 - | fn from(variant: crate::error::ValidationException) -> crate::error::JsonListsError {
|
2411 + | fn from(
|
2412 + | variant: crate::error::ValidationException,
|
2413 + | ) -> crate::error::MalformedTimestampPathDefaultError {
|
2435 2414 | /* ServerOperationErrorGenerator.kt:112 */
|
2436 2415 | Self::ValidationException(variant)
|
2437 2416 | /* ServerOperationErrorGenerator.kt:111 */
|
2438 2417 | }
|
2439 2418 | /* ServerOperationErrorGenerator.kt:110 */
|
2440 2419 | }
|
2441 2420 |
|
2442 2421 | /* ServerOperationErrorGenerator.kt:63 */
|
2443 - | /// Error type for the `JsonIntEnums` operation.
|
2422 + | /// Error type for the `MalformedTimestampPathHttpDate` operation.
|
2444 2423 | /* ServerOperationErrorGenerator.kt:64 */
|
2445 - | /// Each variant represents an error that can occur for the `JsonIntEnums` operation.
|
2424 + | /// Each variant represents an error that can occur for the `MalformedTimestampPathHttpDate` operation.
|
2446 2425 | /* RustType.kt:534 */
|
2447 2426 | #[derive(::std::fmt::Debug)]
|
2448 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonIntEnumsError {
|
2427 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathHttpDateError {
|
2449 2428 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2450 2429 | /* ServerOperationErrorGenerator.kt:71 */
|
2451 2430 | ValidationException(crate::error::ValidationException),
|
2452 2431 | /* ServerOperationErrorGenerator.kt:66 */
|
2453 2432 | }
|
2454 2433 | /* ServerOperationErrorGenerator.kt:75 */
|
2455 - | impl ::std::fmt::Display for JsonIntEnumsError {
|
2434 + | impl ::std::fmt::Display for MalformedTimestampPathHttpDateError {
|
2456 2435 | /* ServerOperationErrorGenerator.kt:76 */
|
2457 2436 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2458 2437 | /* ServerOperationErrorGenerator.kt:139 */
|
2459 2438 | match &self {
|
2460 2439 | /* ServerOperationErrorGenerator.kt:142 */
|
2461 - | JsonIntEnumsError::ValidationException(_inner) =>
|
2440 + | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
2462 2441 | /* ServerOperationErrorGenerator.kt:78 */
|
2463 2442 | {
|
2464 2443 | _inner.fmt(f)
|
2465 2444 | }
|
2466 2445 | /* ServerOperationErrorGenerator.kt:139 */
|
2467 2446 | }
|
2468 2447 | /* ServerOperationErrorGenerator.kt:76 */
|
2469 2448 | }
|
2470 2449 | /* ServerOperationErrorGenerator.kt:75 */
|
2471 2450 | }
|
2472 2451 | /* ServerOperationErrorGenerator.kt:83 */
|
2473 - | impl JsonIntEnumsError {
|
2452 + | impl MalformedTimestampPathHttpDateError {
|
2474 2453 | /* ServerOperationErrorGenerator.kt:87 */
|
2475 - | /// Returns `true` if the error kind is `JsonIntEnumsError::ValidationException`.
|
2454 + | /// Returns `true` if the error kind is `MalformedTimestampPathHttpDateError::ValidationException`.
|
2476 2455 | /* ServerOperationErrorGenerator.kt:88 */
|
2477 2456 | pub fn is_validation_exception(&self) -> bool {
|
2478 2457 | /* ServerOperationErrorGenerator.kt:89 */
|
2479 - | matches!(&self, JsonIntEnumsError::ValidationException(_))
|
2458 + | matches!(
|
2459 + | &self,
|
2460 + | MalformedTimestampPathHttpDateError::ValidationException(_)
|
2461 + | )
|
2480 2462 | /* ServerOperationErrorGenerator.kt:88 */
|
2481 2463 | }
|
2482 2464 | /* ServerOperationErrorGenerator.kt:92 */
|
2483 2465 | /// Returns the error name string by matching the correct variant.
|
2484 2466 | /* ServerOperationErrorGenerator.kt:93 */
|
2485 2467 | pub fn name(&self) -> &'static str {
|
2486 2468 | /* ServerOperationErrorGenerator.kt:139 */
|
2487 2469 | match &self {
|
2488 2470 | /* ServerOperationErrorGenerator.kt:142 */
|
2489 - | JsonIntEnumsError::ValidationException(_inner) =>
|
2471 + | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
2490 2472 | /* ServerOperationErrorGenerator.kt:95 */
|
2491 2473 | {
|
2492 2474 | _inner.name()
|
2493 2475 | }
|
2494 2476 | /* ServerOperationErrorGenerator.kt:139 */
|
2495 2477 | }
|
2496 2478 | /* ServerOperationErrorGenerator.kt:93 */
|
2497 2479 | }
|
2498 2480 | /* ServerOperationErrorGenerator.kt:83 */
|
2499 2481 | }
|
2500 2482 | /* ServerOperationErrorGenerator.kt:100 */
|
2501 - | impl ::std::error::Error for JsonIntEnumsError {
|
2483 + | impl ::std::error::Error for MalformedTimestampPathHttpDateError {
|
2502 2484 | /* ServerOperationErrorGenerator.kt:101 */
|
2503 2485 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2504 2486 | /* ServerOperationErrorGenerator.kt:139 */
|
2505 2487 | match &self {
|
2506 2488 | /* ServerOperationErrorGenerator.kt:142 */
|
2507 - | JsonIntEnumsError::ValidationException(_inner) =>
|
2489 + | MalformedTimestampPathHttpDateError::ValidationException(_inner) =>
|
2508 2490 | /* ServerOperationErrorGenerator.kt:103 */
|
2509 2491 | {
|
2510 2492 | Some(_inner)
|
2511 2493 | }
|
2512 2494 | /* ServerOperationErrorGenerator.kt:139 */
|
2513 2495 | }
|
2514 2496 | /* ServerOperationErrorGenerator.kt:101 */
|
2515 2497 | }
|
2516 2498 | /* ServerOperationErrorGenerator.kt:100 */
|
2517 2499 | }
|
2518 2500 | /* ServerOperationErrorGenerator.kt:110 */
|
2519 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonIntEnumsError {
|
2501 + | impl ::std::convert::From<crate::error::ValidationException>
|
2502 + | for crate::error::MalformedTimestampPathHttpDateError
|
2503 + | {
|
2520 2504 | /* ServerOperationErrorGenerator.kt:111 */
|
2521 - | fn from(variant: crate::error::ValidationException) -> crate::error::JsonIntEnumsError {
|
2505 + | fn from(
|
2506 + | variant: crate::error::ValidationException,
|
2507 + | ) -> crate::error::MalformedTimestampPathHttpDateError {
|
2522 2508 | /* ServerOperationErrorGenerator.kt:112 */
|
2523 2509 | Self::ValidationException(variant)
|
2524 2510 | /* ServerOperationErrorGenerator.kt:111 */
|
2525 2511 | }
|
2526 2512 | /* ServerOperationErrorGenerator.kt:110 */
|
2527 2513 | }
|
2528 2514 |
|
2529 2515 | /* ServerOperationErrorGenerator.kt:63 */
|
2530 - | /// Error type for the `JsonEnums` operation.
|
2516 + | /// Error type for the `MalformedTimestampPathEpoch` operation.
|
2531 2517 | /* ServerOperationErrorGenerator.kt:64 */
|
2532 - | /// Each variant represents an error that can occur for the `JsonEnums` operation.
|
2518 + | /// Each variant represents an error that can occur for the `MalformedTimestampPathEpoch` operation.
|
2533 2519 | /* RustType.kt:534 */
|
2534 2520 | #[derive(::std::fmt::Debug)]
|
2535 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum JsonEnumsError {
|
2521 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampPathEpochError {
|
2536 2522 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2537 2523 | /* ServerOperationErrorGenerator.kt:71 */
|
2538 2524 | ValidationException(crate::error::ValidationException),
|
2539 2525 | /* ServerOperationErrorGenerator.kt:66 */
|
2540 2526 | }
|
2541 2527 | /* ServerOperationErrorGenerator.kt:75 */
|
2542 - | impl ::std::fmt::Display for JsonEnumsError {
|
2528 + | impl ::std::fmt::Display for MalformedTimestampPathEpochError {
|
2543 2529 | /* ServerOperationErrorGenerator.kt:76 */
|
2544 2530 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2545 2531 | /* ServerOperationErrorGenerator.kt:139 */
|
2546 2532 | match &self {
|
2547 2533 | /* ServerOperationErrorGenerator.kt:142 */
|
2548 - | JsonEnumsError::ValidationException(_inner) =>
|
2534 + | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
2549 2535 | /* ServerOperationErrorGenerator.kt:78 */
|
2550 2536 | {
|
2551 2537 | _inner.fmt(f)
|
2552 2538 | }
|
2553 2539 | /* ServerOperationErrorGenerator.kt:139 */
|
2554 2540 | }
|
2555 2541 | /* ServerOperationErrorGenerator.kt:76 */
|
2556 2542 | }
|
2557 2543 | /* ServerOperationErrorGenerator.kt:75 */
|
2558 2544 | }
|
2559 2545 | /* ServerOperationErrorGenerator.kt:83 */
|
2560 - | impl JsonEnumsError {
|
2546 + | impl MalformedTimestampPathEpochError {
|
2561 2547 | /* ServerOperationErrorGenerator.kt:87 */
|
2562 - | /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
|
2548 + | /// Returns `true` if the error kind is `MalformedTimestampPathEpochError::ValidationException`.
|
2563 2549 | /* ServerOperationErrorGenerator.kt:88 */
|
2564 2550 | pub fn is_validation_exception(&self) -> bool {
|
2565 2551 | /* ServerOperationErrorGenerator.kt:89 */
|
2566 - | matches!(&self, JsonEnumsError::ValidationException(_))
|
2552 + | matches!(
|
2553 + | &self,
|
2554 + | MalformedTimestampPathEpochError::ValidationException(_)
|
2555 + | )
|
2567 2556 | /* ServerOperationErrorGenerator.kt:88 */
|
2568 2557 | }
|
2569 2558 | /* ServerOperationErrorGenerator.kt:92 */
|
2570 2559 | /// Returns the error name string by matching the correct variant.
|
2571 2560 | /* ServerOperationErrorGenerator.kt:93 */
|
2572 2561 | pub fn name(&self) -> &'static str {
|
2573 2562 | /* ServerOperationErrorGenerator.kt:139 */
|
2574 2563 | match &self {
|
2575 2564 | /* ServerOperationErrorGenerator.kt:142 */
|
2576 - | JsonEnumsError::ValidationException(_inner) =>
|
2565 + | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
2577 2566 | /* ServerOperationErrorGenerator.kt:95 */
|
2578 2567 | {
|
2579 2568 | _inner.name()
|
2580 2569 | }
|
2581 2570 | /* ServerOperationErrorGenerator.kt:139 */
|
2582 2571 | }
|
2583 2572 | /* ServerOperationErrorGenerator.kt:93 */
|
2584 2573 | }
|
2585 2574 | /* ServerOperationErrorGenerator.kt:83 */
|
2586 2575 | }
|
2587 2576 | /* ServerOperationErrorGenerator.kt:100 */
|
2588 - | impl ::std::error::Error for JsonEnumsError {
|
2577 + | impl ::std::error::Error for MalformedTimestampPathEpochError {
|
2589 2578 | /* ServerOperationErrorGenerator.kt:101 */
|
2590 2579 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2591 2580 | /* ServerOperationErrorGenerator.kt:139 */
|
2592 2581 | match &self {
|
2593 2582 | /* ServerOperationErrorGenerator.kt:142 */
|
2594 - | JsonEnumsError::ValidationException(_inner) =>
|
2583 + | MalformedTimestampPathEpochError::ValidationException(_inner) =>
|
2595 2584 | /* ServerOperationErrorGenerator.kt:103 */
|
2596 2585 | {
|
2597 2586 | Some(_inner)
|
2598 2587 | }
|
2599 2588 | /* ServerOperationErrorGenerator.kt:139 */
|
2600 2589 | }
|
2601 2590 | /* ServerOperationErrorGenerator.kt:101 */
|
2602 2591 | }
|
2603 2592 | /* ServerOperationErrorGenerator.kt:100 */
|
2604 2593 | }
|
2605 2594 | /* ServerOperationErrorGenerator.kt:110 */
|
2606 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
|
2595 + | impl ::std::convert::From<crate::error::ValidationException>
|
2596 + | for crate::error::MalformedTimestampPathEpochError
|
2597 + | {
|
2607 2598 | /* ServerOperationErrorGenerator.kt:111 */
|
2608 - | fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
|
2599 + | fn from(
|
2600 + | variant: crate::error::ValidationException,
|
2601 + | ) -> crate::error::MalformedTimestampPathEpochError {
|
2609 2602 | /* ServerOperationErrorGenerator.kt:112 */
|
2610 2603 | Self::ValidationException(variant)
|
2611 2604 | /* ServerOperationErrorGenerator.kt:111 */
|
2612 2605 | }
|
2613 2606 | /* ServerOperationErrorGenerator.kt:110 */
|
2614 2607 | }
|
2615 2608 |
|
2616 2609 | /* ServerOperationErrorGenerator.kt:63 */
|
2617 - | /// Error type for the `GreetingWithErrors` operation.
|
2610 + | /// Error type for the `MalformedTimestampQueryDefault` operation.
|
2618 2611 | /* ServerOperationErrorGenerator.kt:64 */
|
2619 - | /// Each variant represents an error that can occur for the `GreetingWithErrors` operation.
|
2612 + | /// Each variant represents an error that can occur for the `MalformedTimestampQueryDefault` operation.
|
2620 2613 | /* RustType.kt:534 */
|
2621 2614 | #[derive(::std::fmt::Debug)]
|
2622 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum GreetingWithErrorsError {
|
2623 - | /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when an invalid greeting value is provided.
|
2624 - | /* ServerOperationErrorGenerator.kt:71 */
|
2625 - | InvalidGreeting(crate::error::InvalidGreeting),
|
2626 - | /// /* ServerOperationErrorGenerator.kt:68 */This error is thrown when a request is invalid.
|
2627 - | /* ServerOperationErrorGenerator.kt:71 */
|
2628 - | ComplexError(crate::error::ComplexError),
|
2629 - | /// /* ServerOperationErrorGenerator.kt:68 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
2615 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryDefaultError {
|
2616 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2630 2617 | /* ServerOperationErrorGenerator.kt:71 */
|
2631 - | FooError(crate::error::FooError),
|
2618 + | ValidationException(crate::error::ValidationException),
|
2632 2619 | /* ServerOperationErrorGenerator.kt:66 */
|
2633 2620 | }
|
2634 2621 | /* ServerOperationErrorGenerator.kt:75 */
|
2635 - | impl ::std::fmt::Display for GreetingWithErrorsError {
|
2622 + | impl ::std::fmt::Display for MalformedTimestampQueryDefaultError {
|
2636 2623 | /* ServerOperationErrorGenerator.kt:76 */
|
2637 2624 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2638 2625 | /* ServerOperationErrorGenerator.kt:139 */
|
2639 2626 | match &self {
|
2640 2627 | /* ServerOperationErrorGenerator.kt:142 */
|
2641 - | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
2642 - | /* ServerOperationErrorGenerator.kt:78 */
|
2643 - | {
|
2644 - | _inner.fmt(f)
|
2645 - | }
|
2646 - | ,
|
2647 - | /* ServerOperationErrorGenerator.kt:142 */
|
2648 - | GreetingWithErrorsError::ComplexError(_inner) =>
|
2649 - | /* ServerOperationErrorGenerator.kt:78 */
|
2650 - | {
|
2651 - | _inner.fmt(f)
|
2652 - | }
|
2653 - | ,
|
2654 - | /* ServerOperationErrorGenerator.kt:142 */
|
2655 - | GreetingWithErrorsError::FooError(_inner) =>
|
2628 + | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
2656 2629 | /* ServerOperationErrorGenerator.kt:78 */
|
2657 2630 | {
|
2658 2631 | _inner.fmt(f)
|
2659 2632 | }
|
2660 2633 | /* ServerOperationErrorGenerator.kt:139 */
|
2661 2634 | }
|
2662 2635 | /* ServerOperationErrorGenerator.kt:76 */
|
2663 2636 | }
|
2664 2637 | /* ServerOperationErrorGenerator.kt:75 */
|
2665 2638 | }
|
2666 2639 | /* ServerOperationErrorGenerator.kt:83 */
|
2667 - | impl GreetingWithErrorsError {
|
2668 - | /* ServerOperationErrorGenerator.kt:87 */
|
2669 - | /// Returns `true` if the error kind is `GreetingWithErrorsError::InvalidGreeting`.
|
2670 - | /* ServerOperationErrorGenerator.kt:88 */
|
2671 - | pub fn is_invalid_greeting(&self) -> bool {
|
2672 - | /* ServerOperationErrorGenerator.kt:89 */
|
2673 - | matches!(&self, GreetingWithErrorsError::InvalidGreeting(_))
|
2674 - | /* ServerOperationErrorGenerator.kt:88 */
|
2675 - | }
|
2676 - | /* ServerOperationErrorGenerator.kt:87 */
|
2677 - | /// Returns `true` if the error kind is `GreetingWithErrorsError::ComplexError`.
|
2678 - | /* ServerOperationErrorGenerator.kt:88 */
|
2679 - | pub fn is_complex_error(&self) -> bool {
|
2680 - | /* ServerOperationErrorGenerator.kt:89 */
|
2681 - | matches!(&self, GreetingWithErrorsError::ComplexError(_))
|
2682 - | /* ServerOperationErrorGenerator.kt:88 */
|
2683 - | }
|
2640 + | impl MalformedTimestampQueryDefaultError {
|
2684 2641 | /* ServerOperationErrorGenerator.kt:87 */
|
2685 - | /// Returns `true` if the error kind is `GreetingWithErrorsError::FooError`.
|
2642 + | /// Returns `true` if the error kind is `MalformedTimestampQueryDefaultError::ValidationException`.
|
2686 2643 | /* ServerOperationErrorGenerator.kt:88 */
|
2687 - | pub fn is_foo_error(&self) -> bool {
|
2644 + | pub fn is_validation_exception(&self) -> bool {
|
2688 2645 | /* ServerOperationErrorGenerator.kt:89 */
|
2689 - | matches!(&self, GreetingWithErrorsError::FooError(_))
|
2646 + | matches!(
|
2647 + | &self,
|
2648 + | MalformedTimestampQueryDefaultError::ValidationException(_)
|
2649 + | )
|
2690 2650 | /* ServerOperationErrorGenerator.kt:88 */
|
2691 2651 | }
|
2692 2652 | /* ServerOperationErrorGenerator.kt:92 */
|
2693 2653 | /// Returns the error name string by matching the correct variant.
|
2694 2654 | /* ServerOperationErrorGenerator.kt:93 */
|
2695 2655 | pub fn name(&self) -> &'static str {
|
2696 2656 | /* ServerOperationErrorGenerator.kt:139 */
|
2697 2657 | match &self {
|
2698 2658 | /* ServerOperationErrorGenerator.kt:142 */
|
2699 - | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
2700 - | /* ServerOperationErrorGenerator.kt:95 */
|
2701 - | {
|
2702 - | _inner.name()
|
2703 - | }
|
2704 - | ,
|
2705 - | /* ServerOperationErrorGenerator.kt:142 */
|
2706 - | GreetingWithErrorsError::ComplexError(_inner) =>
|
2707 - | /* ServerOperationErrorGenerator.kt:95 */
|
2708 - | {
|
2709 - | _inner.name()
|
2710 - | }
|
2711 - | ,
|
2712 - | /* ServerOperationErrorGenerator.kt:142 */
|
2713 - | GreetingWithErrorsError::FooError(_inner) =>
|
2659 + | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
2714 2660 | /* ServerOperationErrorGenerator.kt:95 */
|
2715 2661 | {
|
2716 2662 | _inner.name()
|
2717 2663 | }
|
2718 2664 | /* ServerOperationErrorGenerator.kt:139 */
|
2719 2665 | }
|
2720 2666 | /* ServerOperationErrorGenerator.kt:93 */
|
2721 2667 | }
|
2722 2668 | /* ServerOperationErrorGenerator.kt:83 */
|
2723 2669 | }
|
2724 2670 | /* ServerOperationErrorGenerator.kt:100 */
|
2725 - | impl ::std::error::Error for GreetingWithErrorsError {
|
2671 + | impl ::std::error::Error for MalformedTimestampQueryDefaultError {
|
2726 2672 | /* ServerOperationErrorGenerator.kt:101 */
|
2727 2673 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2728 2674 | /* ServerOperationErrorGenerator.kt:139 */
|
2729 2675 | match &self {
|
2730 2676 | /* ServerOperationErrorGenerator.kt:142 */
|
2731 - | GreetingWithErrorsError::InvalidGreeting(_inner) =>
|
2732 - | /* ServerOperationErrorGenerator.kt:103 */
|
2733 - | {
|
2734 - | Some(_inner)
|
2735 - | }
|
2736 - | ,
|
2737 - | /* ServerOperationErrorGenerator.kt:142 */
|
2738 - | GreetingWithErrorsError::ComplexError(_inner) =>
|
2739 - | /* ServerOperationErrorGenerator.kt:103 */
|
2740 - | {
|
2741 - | Some(_inner)
|
2742 - | }
|
2743 - | ,
|
2744 - | /* ServerOperationErrorGenerator.kt:142 */
|
2745 - | GreetingWithErrorsError::FooError(_inner) =>
|
2677 + | MalformedTimestampQueryDefaultError::ValidationException(_inner) =>
|
2746 2678 | /* ServerOperationErrorGenerator.kt:103 */
|
2747 2679 | {
|
2748 2680 | Some(_inner)
|
2749 2681 | }
|
2750 2682 | /* ServerOperationErrorGenerator.kt:139 */
|
2751 2683 | }
|
2752 2684 | /* ServerOperationErrorGenerator.kt:101 */
|
2753 2685 | }
|
2754 2686 | /* ServerOperationErrorGenerator.kt:100 */
|
2755 2687 | }
|
2756 2688 | /* ServerOperationErrorGenerator.kt:110 */
|
2757 - | impl ::std::convert::From<crate::error::InvalidGreeting> for crate::error::GreetingWithErrorsError {
|
2758 - | /* ServerOperationErrorGenerator.kt:111 */
|
2759 - | fn from(variant: crate::error::InvalidGreeting) -> crate::error::GreetingWithErrorsError {
|
2760 - | /* ServerOperationErrorGenerator.kt:112 */
|
2761 - | Self::InvalidGreeting(variant)
|
2762 - | /* ServerOperationErrorGenerator.kt:111 */
|
2763 - | }
|
2764 - | /* ServerOperationErrorGenerator.kt:110 */
|
2765 - | }
|
2766 - | /* ServerOperationErrorGenerator.kt:110 */
|
2767 - | impl ::std::convert::From<crate::error::ComplexError> for crate::error::GreetingWithErrorsError {
|
2768 - | /* ServerOperationErrorGenerator.kt:111 */
|
2769 - | fn from(variant: crate::error::ComplexError) -> crate::error::GreetingWithErrorsError {
|
2770 - | /* ServerOperationErrorGenerator.kt:112 */
|
2771 - | Self::ComplexError(variant)
|
2772 - | /* ServerOperationErrorGenerator.kt:111 */
|
2773 - | }
|
2774 - | /* ServerOperationErrorGenerator.kt:110 */
|
2775 - | }
|
2776 - | /* ServerOperationErrorGenerator.kt:110 */
|
2777 - | impl ::std::convert::From<crate::error::FooError> for crate::error::GreetingWithErrorsError {
|
2689 + | impl ::std::convert::From<crate::error::ValidationException>
|
2690 + | for crate::error::MalformedTimestampQueryDefaultError
|
2691 + | {
|
2778 2692 | /* ServerOperationErrorGenerator.kt:111 */
|
2779 - | fn from(variant: crate::error::FooError) -> crate::error::GreetingWithErrorsError {
|
2693 + | fn from(
|
2694 + | variant: crate::error::ValidationException,
|
2695 + | ) -> crate::error::MalformedTimestampQueryDefaultError {
|
2780 2696 | /* ServerOperationErrorGenerator.kt:112 */
|
2781 - | Self::FooError(variant)
|
2697 + | Self::ValidationException(variant)
|
2782 2698 | /* ServerOperationErrorGenerator.kt:111 */
|
2783 2699 | }
|
2784 2700 | /* ServerOperationErrorGenerator.kt:110 */
|
2785 2701 | }
|
2786 2702 |
|
2787 - | /// /* StructureGenerator.kt:197 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
2788 - | /* RustType.kt:534 */
|
2789 - | #[derive(
|
2790 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2791 - | )]
|
2792 - | pub /* StructureGenerator.kt:201 */ struct FooError {/* StructureGenerator.kt:201 */}
|
2793 - | /* ErrorImplGenerator.kt:99 */
|
2794 - | impl FooError {
|
2795 - | /* ErrorImplGenerator.kt:141 */
|
2796 - | #[doc(hidden)]
|
2797 - | /// Returns the error name.
|
2798 - | pub fn name(&self) -> &'static str {
|
2799 - | "FooError"
|
2800 - | }
|
2801 - | /* ErrorImplGenerator.kt:99 */
|
2802 - | }
|
2803 - | /* ErrorImplGenerator.kt:153 */
|
2804 - | impl ::std::fmt::Display for FooError {
|
2805 - | /* ErrorImplGenerator.kt:154 */
|
2806 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2807 - | /* ErrorImplGenerator.kt:161 */
|
2808 - | ::std::write!(f, "FooError")?;
|
2809 - | /* ErrorImplGenerator.kt:176 */
|
2810 - | Ok(())
|
2811 - | /* ErrorImplGenerator.kt:154 */
|
2812 - | }
|
2813 - | /* ErrorImplGenerator.kt:153 */
|
2814 - | }
|
2815 - | /* ErrorImplGenerator.kt:180 */
|
2816 - | impl ::std::error::Error for FooError {}
|
2817 - | /* ServerCodegenVisitor.kt:356 */
|
2818 - | impl FooError {
|
2819 - | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
|
2820 - | /* ServerBuilderGenerator.kt:295 */
|
2821 - | pub fn builder() -> crate::error::foo_error::Builder {
|
2822 - | /* ServerBuilderGenerator.kt:296 */
|
2823 - | crate::error::foo_error::Builder::default()
|
2824 - | /* ServerBuilderGenerator.kt:295 */
|
2825 - | }
|
2826 - | /* ServerCodegenVisitor.kt:356 */
|
2827 - | }
|
2828 - |
|
2829 - | /// /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
|
2830 - | /* RustType.kt:534 */
|
2831 - | #[derive(
|
2832 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2833 - | )]
|
2834 - | pub /* StructureGenerator.kt:201 */ struct ComplexError {
|
2835 - | /* StructureGenerator.kt:231 */
|
2836 - | #[allow(missing_docs)] // documentation missing in model
|
2837 - | pub header: ::std::option::Option<::std::string::String>,
|
2838 - | /* StructureGenerator.kt:231 */
|
2839 - | #[allow(missing_docs)] // documentation missing in model
|
2840 - | pub top_level: ::std::option::Option<::std::string::String>,
|
2841 - | /* StructureGenerator.kt:231 */
|
2842 - | #[allow(missing_docs)] // documentation missing in model
|
2843 - | pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
|
2844 - | /* StructureGenerator.kt:201 */
|
2845 - | }
|
2846 - | /* StructureGenerator.kt:135 */
|
2847 - | impl ComplexError {
|
2848 - | /* StructureGenerator.kt:231 */
|
2849 - | #[allow(missing_docs)] // documentation missing in model
|
2850 - | /* StructureGenerator.kt:166 */
|
2851 - | pub fn header(&self) -> ::std::option::Option<&str> {
|
2852 - | /* StructureGenerator.kt:169 */
|
2853 - | self.header.as_deref()
|
2854 - | /* StructureGenerator.kt:166 */
|
2855 - | }
|
2856 - | /* StructureGenerator.kt:231 */
|
2857 - | #[allow(missing_docs)] // documentation missing in model
|
2858 - | /* StructureGenerator.kt:166 */
|
2859 - | pub fn top_level(&self) -> ::std::option::Option<&str> {
|
2860 - | /* StructureGenerator.kt:169 */
|
2861 - | self.top_level.as_deref()
|
2862 - | /* StructureGenerator.kt:166 */
|
2863 - | }
|
2864 - | /* StructureGenerator.kt:231 */
|
2865 - | #[allow(missing_docs)] // documentation missing in model
|
2866 - | /* StructureGenerator.kt:166 */
|
2867 - | pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
|
2868 - | /* StructureGenerator.kt:170 */
|
2869 - | self.nested.as_ref()
|
2870 - | /* StructureGenerator.kt:166 */
|
2871 - | }
|
2872 - | /* StructureGenerator.kt:135 */
|
2873 - | }
|
2874 - | /* ErrorImplGenerator.kt:99 */
|
2875 - | impl ComplexError {
|
2876 - | /* ErrorImplGenerator.kt:141 */
|
2877 - | #[doc(hidden)]
|
2878 - | /// Returns the error name.
|
2879 - | pub fn name(&self) -> &'static str {
|
2880 - | "ComplexError"
|
2881 - | }
|
2882 - | /* ErrorImplGenerator.kt:99 */
|
2883 - | }
|
2884 - | /* ErrorImplGenerator.kt:153 */
|
2885 - | impl ::std::fmt::Display for ComplexError {
|
2886 - | /* ErrorImplGenerator.kt:154 */
|
2887 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2888 - | /* ErrorImplGenerator.kt:161 */
|
2889 - | ::std::write!(f, "ComplexError")?;
|
2890 - | /* ErrorImplGenerator.kt:176 */
|
2891 - | Ok(())
|
2892 - | /* ErrorImplGenerator.kt:154 */
|
2893 - | }
|
2894 - | /* ErrorImplGenerator.kt:153 */
|
2895 - | }
|
2896 - | /* ErrorImplGenerator.kt:180 */
|
2897 - | impl ::std::error::Error for ComplexError {}
|
2898 - | /* ServerCodegenVisitor.kt:356 */
|
2899 - | impl ComplexError {
|
2900 - | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
|
2901 - | /* ServerBuilderGenerator.kt:295 */
|
2902 - | pub fn builder() -> crate::error::complex_error::Builder {
|
2903 - | /* ServerBuilderGenerator.kt:296 */
|
2904 - | crate::error::complex_error::Builder::default()
|
2905 - | /* ServerBuilderGenerator.kt:295 */
|
2906 - | }
|
2907 - | /* ServerCodegenVisitor.kt:356 */
|
2908 - | }
|
2909 - |
|
2910 - | /// /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
|
2911 - | /* RustType.kt:534 */
|
2912 - | #[derive(
|
2913 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2914 - | )]
|
2915 - | pub /* StructureGenerator.kt:201 */ struct InvalidGreeting {
|
2916 - | /* StructureGenerator.kt:231 */
|
2917 - | #[allow(missing_docs)] // documentation missing in model
|
2918 - | pub message: ::std::option::Option<::std::string::String>,
|
2919 - | /* StructureGenerator.kt:201 */
|
2920 - | }
|
2921 - | /* ErrorImplGenerator.kt:99 */
|
2922 - | impl InvalidGreeting {
|
2923 - | /* ErrorImplGenerator.kt:128 */
|
2924 - | /// Returns the error message.
|
2925 - | pub fn message(&self) -> ::std::option::Option<&str> {
|
2926 - | self.message.as_deref()
|
2927 - | }
|
2928 - | /* ErrorImplGenerator.kt:141 */
|
2929 - | #[doc(hidden)]
|
2930 - | /// Returns the error name.
|
2931 - | pub fn name(&self) -> &'static str {
|
2932 - | "InvalidGreeting"
|
2933 - | }
|
2934 - | /* ErrorImplGenerator.kt:99 */
|
2935 - | }
|
2936 - | /* ErrorImplGenerator.kt:153 */
|
2937 - | impl ::std::fmt::Display for InvalidGreeting {
|
2938 - | /* ErrorImplGenerator.kt:154 */
|
2939 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2940 - | /* ErrorImplGenerator.kt:161 */
|
2941 - | ::std::write!(f, "InvalidGreeting")?;
|
2942 - | /* ErrorImplGenerator.kt:166 */
|
2943 - | if let ::std::option::Option::Some(inner_1) = &self.message {
|
2944 - | /* ErrorImplGenerator.kt:166 */
|
2945 - | {
|
2946 - | /* ErrorImplGenerator.kt:171 */
|
2947 - | ::std::write!(f, ": {inner_1}")?;
|
2948 - | /* ErrorImplGenerator.kt:166 */
|
2949 - | }
|
2950 - | /* ErrorImplGenerator.kt:166 */
|
2951 - | }
|
2952 - | /* ErrorImplGenerator.kt:176 */
|
2953 - | Ok(())
|
2954 - | /* ErrorImplGenerator.kt:154 */
|
2955 - | }
|
2956 - | /* ErrorImplGenerator.kt:153 */
|
2957 - | }
|
2958 - | /* ErrorImplGenerator.kt:180 */
|
2959 - | impl ::std::error::Error for InvalidGreeting {}
|
2960 - | /* ServerCodegenVisitor.kt:356 */
|
2961 - | impl InvalidGreeting {
|
2962 - | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
|
2963 - | /* ServerBuilderGenerator.kt:295 */
|
2964 - | pub fn builder() -> crate::error::invalid_greeting::Builder {
|
2965 - | /* ServerBuilderGenerator.kt:296 */
|
2966 - | crate::error::invalid_greeting::Builder::default()
|
2967 - | /* ServerBuilderGenerator.kt:295 */
|
2968 - | }
|
2969 - | /* ServerCodegenVisitor.kt:356 */
|
2970 - | }
|
2971 - |
|
2972 2703 | /* ServerOperationErrorGenerator.kt:63 */
|
2973 - | /// Error type for the `HttpEnumPayload` operation.
|
2704 + | /// Error type for the `MalformedTimestampQueryHttpDate` operation.
|
2974 2705 | /* ServerOperationErrorGenerator.kt:64 */
|
2975 - | /// Each variant represents an error that can occur for the `HttpEnumPayload` operation.
|
2706 + | /// Each variant represents an error that can occur for the `MalformedTimestampQueryHttpDate` operation.
|
2976 2707 | /* RustType.kt:534 */
|
2977 2708 | #[derive(::std::fmt::Debug)]
|
2978 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpEnumPayloadError {
|
2709 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryHttpDateError {
|
2979 2710 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
2980 2711 | /* ServerOperationErrorGenerator.kt:71 */
|
2981 2712 | ValidationException(crate::error::ValidationException),
|
2982 2713 | /* ServerOperationErrorGenerator.kt:66 */
|
2983 2714 | }
|
2984 2715 | /* ServerOperationErrorGenerator.kt:75 */
|
2985 - | impl ::std::fmt::Display for HttpEnumPayloadError {
|
2716 + | impl ::std::fmt::Display for MalformedTimestampQueryHttpDateError {
|
2986 2717 | /* ServerOperationErrorGenerator.kt:76 */
|
2987 2718 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2988 2719 | /* ServerOperationErrorGenerator.kt:139 */
|
2989 2720 | match &self {
|
2990 2721 | /* ServerOperationErrorGenerator.kt:142 */
|
2991 - | HttpEnumPayloadError::ValidationException(_inner) =>
|
2722 + | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
2992 2723 | /* ServerOperationErrorGenerator.kt:78 */
|
2993 2724 | {
|
2994 2725 | _inner.fmt(f)
|
2995 2726 | }
|
2996 2727 | /* ServerOperationErrorGenerator.kt:139 */
|
2997 2728 | }
|
2998 2729 | /* ServerOperationErrorGenerator.kt:76 */
|
2999 2730 | }
|
3000 2731 | /* ServerOperationErrorGenerator.kt:75 */
|
3001 2732 | }
|
3002 2733 | /* ServerOperationErrorGenerator.kt:83 */
|
3003 - | impl HttpEnumPayloadError {
|
2734 + | impl MalformedTimestampQueryHttpDateError {
|
3004 2735 | /* ServerOperationErrorGenerator.kt:87 */
|
3005 - | /// Returns `true` if the error kind is `HttpEnumPayloadError::ValidationException`.
|
2736 + | /// Returns `true` if the error kind is `MalformedTimestampQueryHttpDateError::ValidationException`.
|
3006 2737 | /* ServerOperationErrorGenerator.kt:88 */
|
3007 2738 | pub fn is_validation_exception(&self) -> bool {
|
3008 2739 | /* ServerOperationErrorGenerator.kt:89 */
|
3009 - | matches!(&self, HttpEnumPayloadError::ValidationException(_))
|
2740 + | matches!(
|
2741 + | &self,
|
2742 + | MalformedTimestampQueryHttpDateError::ValidationException(_)
|
2743 + | )
|
3010 2744 | /* ServerOperationErrorGenerator.kt:88 */
|
3011 2745 | }
|
3012 2746 | /* ServerOperationErrorGenerator.kt:92 */
|
3013 2747 | /// Returns the error name string by matching the correct variant.
|
3014 2748 | /* ServerOperationErrorGenerator.kt:93 */
|
3015 2749 | pub fn name(&self) -> &'static str {
|
3016 2750 | /* ServerOperationErrorGenerator.kt:139 */
|
3017 2751 | match &self {
|
3018 2752 | /* ServerOperationErrorGenerator.kt:142 */
|
3019 - | HttpEnumPayloadError::ValidationException(_inner) =>
|
2753 + | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
3020 2754 | /* ServerOperationErrorGenerator.kt:95 */
|
3021 2755 | {
|
3022 2756 | _inner.name()
|
3023 2757 | }
|
3024 2758 | /* ServerOperationErrorGenerator.kt:139 */
|
3025 2759 | }
|
3026 2760 | /* ServerOperationErrorGenerator.kt:93 */
|
3027 2761 | }
|
3028 2762 | /* ServerOperationErrorGenerator.kt:83 */
|
3029 2763 | }
|
3030 2764 | /* ServerOperationErrorGenerator.kt:100 */
|
3031 - | impl ::std::error::Error for HttpEnumPayloadError {
|
2765 + | impl ::std::error::Error for MalformedTimestampQueryHttpDateError {
|
3032 2766 | /* ServerOperationErrorGenerator.kt:101 */
|
3033 2767 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3034 2768 | /* ServerOperationErrorGenerator.kt:139 */
|
3035 2769 | match &self {
|
3036 2770 | /* ServerOperationErrorGenerator.kt:142 */
|
3037 - | HttpEnumPayloadError::ValidationException(_inner) =>
|
2771 + | MalformedTimestampQueryHttpDateError::ValidationException(_inner) =>
|
3038 2772 | /* ServerOperationErrorGenerator.kt:103 */
|
3039 2773 | {
|
3040 2774 | Some(_inner)
|
3041 2775 | }
|
3042 2776 | /* ServerOperationErrorGenerator.kt:139 */
|
3043 2777 | }
|
3044 2778 | /* ServerOperationErrorGenerator.kt:101 */
|
3045 2779 | }
|
3046 2780 | /* ServerOperationErrorGenerator.kt:100 */
|
3047 2781 | }
|
3048 2782 | /* ServerOperationErrorGenerator.kt:110 */
|
3049 2783 | impl ::std::convert::From<crate::error::ValidationException>
|
3050 - | for crate::error::HttpEnumPayloadError
|
2784 + | for crate::error::MalformedTimestampQueryHttpDateError
|
3051 2785 | {
|
3052 2786 | /* ServerOperationErrorGenerator.kt:111 */
|
3053 - | fn from(variant: crate::error::ValidationException) -> crate::error::HttpEnumPayloadError {
|
2787 + | fn from(
|
2788 + | variant: crate::error::ValidationException,
|
2789 + | ) -> crate::error::MalformedTimestampQueryHttpDateError {
|
3054 2790 | /* ServerOperationErrorGenerator.kt:112 */
|
3055 2791 | Self::ValidationException(variant)
|
3056 2792 | /* ServerOperationErrorGenerator.kt:111 */
|
3057 2793 | }
|
3058 2794 | /* ServerOperationErrorGenerator.kt:110 */
|
3059 2795 | }
|
3060 2796 |
|
3061 2797 | /* ServerOperationErrorGenerator.kt:63 */
|
3062 - | /// Error type for the `OmitsSerializingEmptyLists` operation.
|
2798 + | /// Error type for the `MalformedTimestampQueryEpoch` operation.
|
3063 2799 | /* ServerOperationErrorGenerator.kt:64 */
|
3064 - | /// Each variant represents an error that can occur for the `OmitsSerializingEmptyLists` operation.
|
2800 + | /// Each variant represents an error that can occur for the `MalformedTimestampQueryEpoch` operation.
|
3065 2801 | /* RustType.kt:534 */
|
3066 2802 | #[derive(::std::fmt::Debug)]
|
3067 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum OmitsSerializingEmptyListsError {
|
2803 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampQueryEpochError {
|
3068 2804 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3069 2805 | /* ServerOperationErrorGenerator.kt:71 */
|
3070 2806 | ValidationException(crate::error::ValidationException),
|
3071 2807 | /* ServerOperationErrorGenerator.kt:66 */
|
3072 2808 | }
|
3073 2809 | /* ServerOperationErrorGenerator.kt:75 */
|
3074 - | impl ::std::fmt::Display for OmitsSerializingEmptyListsError {
|
2810 + | impl ::std::fmt::Display for MalformedTimestampQueryEpochError {
|
3075 2811 | /* ServerOperationErrorGenerator.kt:76 */
|
3076 2812 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3077 2813 | /* ServerOperationErrorGenerator.kt:139 */
|
3078 2814 | match &self {
|
3079 2815 | /* ServerOperationErrorGenerator.kt:142 */
|
3080 - | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
2816 + | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
3081 2817 | /* ServerOperationErrorGenerator.kt:78 */
|
3082 2818 | {
|
3083 2819 | _inner.fmt(f)
|
3084 2820 | }
|
3085 2821 | /* ServerOperationErrorGenerator.kt:139 */
|
3086 2822 | }
|
3087 2823 | /* ServerOperationErrorGenerator.kt:76 */
|
3088 2824 | }
|
3089 2825 | /* ServerOperationErrorGenerator.kt:75 */
|
3090 2826 | }
|
3091 2827 | /* ServerOperationErrorGenerator.kt:83 */
|
3092 - | impl OmitsSerializingEmptyListsError {
|
2828 + | impl MalformedTimestampQueryEpochError {
|
3093 2829 | /* ServerOperationErrorGenerator.kt:87 */
|
3094 - | /// Returns `true` if the error kind is `OmitsSerializingEmptyListsError::ValidationException`.
|
2830 + | /// Returns `true` if the error kind is `MalformedTimestampQueryEpochError::ValidationException`.
|
3095 2831 | /* ServerOperationErrorGenerator.kt:88 */
|
3096 2832 | pub fn is_validation_exception(&self) -> bool {
|
3097 2833 | /* ServerOperationErrorGenerator.kt:89 */
|
3098 2834 | matches!(
|
3099 2835 | &self,
|
3100 - | OmitsSerializingEmptyListsError::ValidationException(_)
|
2836 + | MalformedTimestampQueryEpochError::ValidationException(_)
|
3101 2837 | )
|
3102 2838 | /* ServerOperationErrorGenerator.kt:88 */
|
3103 2839 | }
|
3104 2840 | /* ServerOperationErrorGenerator.kt:92 */
|
3105 2841 | /// Returns the error name string by matching the correct variant.
|
3106 2842 | /* ServerOperationErrorGenerator.kt:93 */
|
3107 2843 | pub fn name(&self) -> &'static str {
|
3108 2844 | /* ServerOperationErrorGenerator.kt:139 */
|
3109 2845 | match &self {
|
3110 2846 | /* ServerOperationErrorGenerator.kt:142 */
|
3111 - | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
2847 + | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
3112 2848 | /* ServerOperationErrorGenerator.kt:95 */
|
3113 2849 | {
|
3114 2850 | _inner.name()
|
3115 2851 | }
|
3116 2852 | /* ServerOperationErrorGenerator.kt:139 */
|
3117 2853 | }
|
3118 2854 | /* ServerOperationErrorGenerator.kt:93 */
|
3119 2855 | }
|
3120 2856 | /* ServerOperationErrorGenerator.kt:83 */
|
3121 2857 | }
|
3122 2858 | /* ServerOperationErrorGenerator.kt:100 */
|
3123 - | impl ::std::error::Error for OmitsSerializingEmptyListsError {
|
2859 + | impl ::std::error::Error for MalformedTimestampQueryEpochError {
|
3124 2860 | /* ServerOperationErrorGenerator.kt:101 */
|
3125 2861 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3126 2862 | /* ServerOperationErrorGenerator.kt:139 */
|
3127 2863 | match &self {
|
3128 2864 | /* ServerOperationErrorGenerator.kt:142 */
|
3129 - | OmitsSerializingEmptyListsError::ValidationException(_inner) =>
|
2865 + | MalformedTimestampQueryEpochError::ValidationException(_inner) =>
|
3130 2866 | /* ServerOperationErrorGenerator.kt:103 */
|
3131 2867 | {
|
3132 2868 | Some(_inner)
|
3133 2869 | }
|
3134 2870 | /* ServerOperationErrorGenerator.kt:139 */
|
3135 2871 | }
|
3136 2872 | /* ServerOperationErrorGenerator.kt:101 */
|
3137 2873 | }
|
3138 2874 | /* ServerOperationErrorGenerator.kt:100 */
|
3139 2875 | }
|
3140 2876 | /* ServerOperationErrorGenerator.kt:110 */
|
3141 2877 | impl ::std::convert::From<crate::error::ValidationException>
|
3142 - | for crate::error::OmitsSerializingEmptyListsError
|
2878 + | for crate::error::MalformedTimestampQueryEpochError
|
3143 2879 | {
|
3144 2880 | /* ServerOperationErrorGenerator.kt:111 */
|
3145 2881 | fn from(
|
3146 2882 | variant: crate::error::ValidationException,
|
3147 - | ) -> crate::error::OmitsSerializingEmptyListsError {
|
2883 + | ) -> crate::error::MalformedTimestampQueryEpochError {
|
3148 2884 | /* ServerOperationErrorGenerator.kt:112 */
|
3149 2885 | Self::ValidationException(variant)
|
3150 2886 | /* ServerOperationErrorGenerator.kt:111 */
|
3151 2887 | }
|
3152 2888 | /* ServerOperationErrorGenerator.kt:110 */
|
3153 2889 | }
|
3154 2890 |
|
3155 2891 | /* ServerOperationErrorGenerator.kt:63 */
|
3156 - | /// Error type for the `ConstantQueryString` operation.
|
2892 + | /// Error type for the `MalformedTimestampHeaderDefault` operation.
|
3157 2893 | /* ServerOperationErrorGenerator.kt:64 */
|
3158 - | /// Each variant represents an error that can occur for the `ConstantQueryString` operation.
|
2894 + | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderDefault` operation.
|
3159 2895 | /* RustType.kt:534 */
|
3160 2896 | #[derive(::std::fmt::Debug)]
|
3161 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstantQueryStringError {
|
2897 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDefaultError {
|
3162 2898 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3163 2899 | /* ServerOperationErrorGenerator.kt:71 */
|
3164 2900 | ValidationException(crate::error::ValidationException),
|
3165 2901 | /* ServerOperationErrorGenerator.kt:66 */
|
3166 2902 | }
|
3167 2903 | /* ServerOperationErrorGenerator.kt:75 */
|
3168 - | impl ::std::fmt::Display for ConstantQueryStringError {
|
2904 + | impl ::std::fmt::Display for MalformedTimestampHeaderDefaultError {
|
3169 2905 | /* ServerOperationErrorGenerator.kt:76 */
|
3170 2906 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3171 2907 | /* ServerOperationErrorGenerator.kt:139 */
|
3172 2908 | match &self {
|
3173 2909 | /* ServerOperationErrorGenerator.kt:142 */
|
3174 - | ConstantQueryStringError::ValidationException(_inner) =>
|
2910 + | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
3175 2911 | /* ServerOperationErrorGenerator.kt:78 */
|
3176 2912 | {
|
3177 2913 | _inner.fmt(f)
|
3178 2914 | }
|
3179 2915 | /* ServerOperationErrorGenerator.kt:139 */
|
3180 2916 | }
|
3181 2917 | /* ServerOperationErrorGenerator.kt:76 */
|
3182 2918 | }
|
3183 2919 | /* ServerOperationErrorGenerator.kt:75 */
|
3184 2920 | }
|
3185 2921 | /* ServerOperationErrorGenerator.kt:83 */
|
3186 - | impl ConstantQueryStringError {
|
2922 + | impl MalformedTimestampHeaderDefaultError {
|
3187 2923 | /* ServerOperationErrorGenerator.kt:87 */
|
3188 - | /// Returns `true` if the error kind is `ConstantQueryStringError::ValidationException`.
|
2924 + | /// Returns `true` if the error kind is `MalformedTimestampHeaderDefaultError::ValidationException`.
|
3189 2925 | /* ServerOperationErrorGenerator.kt:88 */
|
3190 2926 | pub fn is_validation_exception(&self) -> bool {
|
3191 2927 | /* ServerOperationErrorGenerator.kt:89 */
|
3192 - | matches!(&self, ConstantQueryStringError::ValidationException(_))
|
2928 + | matches!(
|
2929 + | &self,
|
2930 + | MalformedTimestampHeaderDefaultError::ValidationException(_)
|
2931 + | )
|
3193 2932 | /* ServerOperationErrorGenerator.kt:88 */
|
3194 2933 | }
|
3195 2934 | /* ServerOperationErrorGenerator.kt:92 */
|
3196 2935 | /// Returns the error name string by matching the correct variant.
|
3197 2936 | /* ServerOperationErrorGenerator.kt:93 */
|
3198 2937 | pub fn name(&self) -> &'static str {
|
3199 2938 | /* ServerOperationErrorGenerator.kt:139 */
|
3200 2939 | match &self {
|
3201 2940 | /* ServerOperationErrorGenerator.kt:142 */
|
3202 - | ConstantQueryStringError::ValidationException(_inner) =>
|
2941 + | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
3203 2942 | /* ServerOperationErrorGenerator.kt:95 */
|
3204 2943 | {
|
3205 2944 | _inner.name()
|
3206 2945 | }
|
3207 2946 | /* ServerOperationErrorGenerator.kt:139 */
|
3208 2947 | }
|
3209 2948 | /* ServerOperationErrorGenerator.kt:93 */
|
3210 2949 | }
|
3211 2950 | /* ServerOperationErrorGenerator.kt:83 */
|
3212 2951 | }
|
3213 2952 | /* ServerOperationErrorGenerator.kt:100 */
|
3214 - | impl ::std::error::Error for ConstantQueryStringError {
|
2953 + | impl ::std::error::Error for MalformedTimestampHeaderDefaultError {
|
3215 2954 | /* ServerOperationErrorGenerator.kt:101 */
|
3216 2955 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3217 2956 | /* ServerOperationErrorGenerator.kt:139 */
|
3218 2957 | match &self {
|
3219 2958 | /* ServerOperationErrorGenerator.kt:142 */
|
3220 - | ConstantQueryStringError::ValidationException(_inner) =>
|
2959 + | MalformedTimestampHeaderDefaultError::ValidationException(_inner) =>
|
3221 2960 | /* ServerOperationErrorGenerator.kt:103 */
|
3222 2961 | {
|
3223 2962 | Some(_inner)
|
3224 2963 | }
|
3225 2964 | /* ServerOperationErrorGenerator.kt:139 */
|
3226 2965 | }
|
3227 2966 | /* ServerOperationErrorGenerator.kt:101 */
|
3228 2967 | }
|
3229 2968 | /* ServerOperationErrorGenerator.kt:100 */
|
3230 2969 | }
|
3231 2970 | /* ServerOperationErrorGenerator.kt:110 */
|
3232 2971 | impl ::std::convert::From<crate::error::ValidationException>
|
3233 - | for crate::error::ConstantQueryStringError
|
2972 + | for crate::error::MalformedTimestampHeaderDefaultError
|
3234 2973 | {
|
3235 2974 | /* ServerOperationErrorGenerator.kt:111 */
|
3236 - | fn from(variant: crate::error::ValidationException) -> crate::error::ConstantQueryStringError {
|
2975 + | fn from(
|
2976 + | variant: crate::error::ValidationException,
|
2977 + | ) -> crate::error::MalformedTimestampHeaderDefaultError {
|
3237 2978 | /* ServerOperationErrorGenerator.kt:112 */
|
3238 2979 | Self::ValidationException(variant)
|
3239 2980 | /* ServerOperationErrorGenerator.kt:111 */
|
3240 2981 | }
|
3241 2982 | /* ServerOperationErrorGenerator.kt:110 */
|
3242 2983 | }
|
3243 2984 |
|
3244 2985 | /* ServerOperationErrorGenerator.kt:63 */
|
3245 - | /// Error type for the `AllQueryStringTypes` operation.
|
2986 + | /// Error type for the `MalformedTimestampHeaderDateTime` operation.
|
3246 2987 | /* ServerOperationErrorGenerator.kt:64 */
|
3247 - | /// Each variant represents an error that can occur for the `AllQueryStringTypes` operation.
|
2988 + | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderDateTime` operation.
|
3248 2989 | /* RustType.kt:534 */
|
3249 2990 | #[derive(::std::fmt::Debug)]
|
3250 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum AllQueryStringTypesError {
|
2991 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderDateTimeError {
|
3251 2992 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3252 2993 | /* ServerOperationErrorGenerator.kt:71 */
|
3253 2994 | ValidationException(crate::error::ValidationException),
|
3254 2995 | /* ServerOperationErrorGenerator.kt:66 */
|
3255 2996 | }
|
3256 2997 | /* ServerOperationErrorGenerator.kt:75 */
|
3257 - | impl ::std::fmt::Display for AllQueryStringTypesError {
|
2998 + | impl ::std::fmt::Display for MalformedTimestampHeaderDateTimeError {
|
3258 2999 | /* ServerOperationErrorGenerator.kt:76 */
|
3259 3000 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3260 3001 | /* ServerOperationErrorGenerator.kt:139 */
|
3261 3002 | match &self {
|
3262 3003 | /* ServerOperationErrorGenerator.kt:142 */
|
3263 - | AllQueryStringTypesError::ValidationException(_inner) =>
|
3004 + | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
3264 3005 | /* ServerOperationErrorGenerator.kt:78 */
|
3265 3006 | {
|
3266 3007 | _inner.fmt(f)
|
3267 3008 | }
|
3268 3009 | /* ServerOperationErrorGenerator.kt:139 */
|
3269 3010 | }
|
3270 3011 | /* ServerOperationErrorGenerator.kt:76 */
|
3271 3012 | }
|
3272 3013 | /* ServerOperationErrorGenerator.kt:75 */
|
3273 3014 | }
|
3274 3015 | /* ServerOperationErrorGenerator.kt:83 */
|
3275 - | impl AllQueryStringTypesError {
|
3016 + | impl MalformedTimestampHeaderDateTimeError {
|
3276 3017 | /* ServerOperationErrorGenerator.kt:87 */
|
3277 - | /// Returns `true` if the error kind is `AllQueryStringTypesError::ValidationException`.
|
3018 + | /// Returns `true` if the error kind is `MalformedTimestampHeaderDateTimeError::ValidationException`.
|
3278 3019 | /* ServerOperationErrorGenerator.kt:88 */
|
3279 3020 | pub fn is_validation_exception(&self) -> bool {
|
3280 3021 | /* ServerOperationErrorGenerator.kt:89 */
|
3281 - | matches!(&self, AllQueryStringTypesError::ValidationException(_))
|
3022 + | matches!(
|
3023 + | &self,
|
3024 + | MalformedTimestampHeaderDateTimeError::ValidationException(_)
|
3025 + | )
|
3282 3026 | /* ServerOperationErrorGenerator.kt:88 */
|
3283 3027 | }
|
3284 3028 | /* ServerOperationErrorGenerator.kt:92 */
|
3285 3029 | /// Returns the error name string by matching the correct variant.
|
3286 3030 | /* ServerOperationErrorGenerator.kt:93 */
|
3287 3031 | pub fn name(&self) -> &'static str {
|
3288 3032 | /* ServerOperationErrorGenerator.kt:139 */
|
3289 3033 | match &self {
|
3290 3034 | /* ServerOperationErrorGenerator.kt:142 */
|
3291 - | AllQueryStringTypesError::ValidationException(_inner) =>
|
3035 + | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
3292 3036 | /* ServerOperationErrorGenerator.kt:95 */
|
3293 3037 | {
|
3294 3038 | _inner.name()
|
3295 3039 | }
|
3296 3040 | /* ServerOperationErrorGenerator.kt:139 */
|
3297 3041 | }
|
3298 3042 | /* ServerOperationErrorGenerator.kt:93 */
|
3299 3043 | }
|
3300 3044 | /* ServerOperationErrorGenerator.kt:83 */
|
3301 3045 | }
|
3302 3046 | /* ServerOperationErrorGenerator.kt:100 */
|
3303 - | impl ::std::error::Error for AllQueryStringTypesError {
|
3047 + | impl ::std::error::Error for MalformedTimestampHeaderDateTimeError {
|
3304 3048 | /* ServerOperationErrorGenerator.kt:101 */
|
3305 3049 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3306 3050 | /* ServerOperationErrorGenerator.kt:139 */
|
3307 3051 | match &self {
|
3308 3052 | /* ServerOperationErrorGenerator.kt:142 */
|
3309 - | AllQueryStringTypesError::ValidationException(_inner) =>
|
3053 + | MalformedTimestampHeaderDateTimeError::ValidationException(_inner) =>
|
3310 3054 | /* ServerOperationErrorGenerator.kt:103 */
|
3311 3055 | {
|
3312 3056 | Some(_inner)
|
3313 3057 | }
|
3314 3058 | /* ServerOperationErrorGenerator.kt:139 */
|
3315 3059 | }
|
3316 3060 | /* ServerOperationErrorGenerator.kt:101 */
|
3317 3061 | }
|
3318 3062 | /* ServerOperationErrorGenerator.kt:100 */
|
3319 3063 | }
|
3320 3064 | /* ServerOperationErrorGenerator.kt:110 */
|
3321 3065 | impl ::std::convert::From<crate::error::ValidationException>
|
3322 - | for crate::error::AllQueryStringTypesError
|
3066 + | for crate::error::MalformedTimestampHeaderDateTimeError
|
3323 3067 | {
|
3324 3068 | /* ServerOperationErrorGenerator.kt:111 */
|
3325 - | fn from(variant: crate::error::ValidationException) -> crate::error::AllQueryStringTypesError {
|
3069 + | fn from(
|
3070 + | variant: crate::error::ValidationException,
|
3071 + | ) -> crate::error::MalformedTimestampHeaderDateTimeError {
|
3326 3072 | /* ServerOperationErrorGenerator.kt:112 */
|
3327 3073 | Self::ValidationException(variant)
|
3328 3074 | /* ServerOperationErrorGenerator.kt:111 */
|
3329 3075 | }
|
3330 3076 | /* ServerOperationErrorGenerator.kt:110 */
|
3331 3077 | }
|
3332 3078 |
|
3333 3079 | /* ServerOperationErrorGenerator.kt:63 */
|
3334 - | /// Error type for the `HttpRequestWithRegexLiteral` operation.
|
3080 + | /// Error type for the `MalformedTimestampHeaderEpoch` operation.
|
3335 3081 | /* ServerOperationErrorGenerator.kt:64 */
|
3336 - | /// Each variant represents an error that can occur for the `HttpRequestWithRegexLiteral` operation.
|
3082 + | /// Each variant represents an error that can occur for the `MalformedTimestampHeaderEpoch` operation.
|
3337 3083 | /* RustType.kt:534 */
|
3338 3084 | #[derive(::std::fmt::Debug)]
|
3339 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithRegexLiteralError {
|
3085 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampHeaderEpochError {
|
3340 3086 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3341 3087 | /* ServerOperationErrorGenerator.kt:71 */
|
3342 3088 | ValidationException(crate::error::ValidationException),
|
3343 3089 | /* ServerOperationErrorGenerator.kt:66 */
|
3344 3090 | }
|
3345 3091 | /* ServerOperationErrorGenerator.kt:75 */
|
3346 - | impl ::std::fmt::Display for HttpRequestWithRegexLiteralError {
|
3092 + | impl ::std::fmt::Display for MalformedTimestampHeaderEpochError {
|
3347 3093 | /* ServerOperationErrorGenerator.kt:76 */
|
3348 3094 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3349 3095 | /* ServerOperationErrorGenerator.kt:139 */
|
3350 3096 | match &self {
|
3351 3097 | /* ServerOperationErrorGenerator.kt:142 */
|
3352 - | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
3098 + | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
3353 3099 | /* ServerOperationErrorGenerator.kt:78 */
|
3354 3100 | {
|
3355 3101 | _inner.fmt(f)
|
3356 3102 | }
|
3357 3103 | /* ServerOperationErrorGenerator.kt:139 */
|
3358 3104 | }
|
3359 3105 | /* ServerOperationErrorGenerator.kt:76 */
|
3360 3106 | }
|
3361 3107 | /* ServerOperationErrorGenerator.kt:75 */
|
3362 3108 | }
|
3363 3109 | /* ServerOperationErrorGenerator.kt:83 */
|
3364 - | impl HttpRequestWithRegexLiteralError {
|
3110 + | impl MalformedTimestampHeaderEpochError {
|
3365 3111 | /* ServerOperationErrorGenerator.kt:87 */
|
3366 - | /// Returns `true` if the error kind is `HttpRequestWithRegexLiteralError::ValidationException`.
|
3112 + | /// Returns `true` if the error kind is `MalformedTimestampHeaderEpochError::ValidationException`.
|
3367 3113 | /* ServerOperationErrorGenerator.kt:88 */
|
3368 3114 | pub fn is_validation_exception(&self) -> bool {
|
3369 3115 | /* ServerOperationErrorGenerator.kt:89 */
|
3370 3116 | matches!(
|
3371 3117 | &self,
|
3372 - | HttpRequestWithRegexLiteralError::ValidationException(_)
|
3118 + | MalformedTimestampHeaderEpochError::ValidationException(_)
|
3373 3119 | )
|
3374 3120 | /* ServerOperationErrorGenerator.kt:88 */
|
3375 3121 | }
|
3376 3122 | /* ServerOperationErrorGenerator.kt:92 */
|
3377 3123 | /// Returns the error name string by matching the correct variant.
|
3378 3124 | /* ServerOperationErrorGenerator.kt:93 */
|
3379 3125 | pub fn name(&self) -> &'static str {
|
3380 3126 | /* ServerOperationErrorGenerator.kt:139 */
|
3381 3127 | match &self {
|
3382 3128 | /* ServerOperationErrorGenerator.kt:142 */
|
3383 - | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
3129 + | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
3384 3130 | /* ServerOperationErrorGenerator.kt:95 */
|
3385 3131 | {
|
3386 3132 | _inner.name()
|
3387 3133 | }
|
3388 3134 | /* ServerOperationErrorGenerator.kt:139 */
|
3389 3135 | }
|
3390 3136 | /* ServerOperationErrorGenerator.kt:93 */
|
3391 3137 | }
|
3392 3138 | /* ServerOperationErrorGenerator.kt:83 */
|
3393 3139 | }
|
3394 3140 | /* ServerOperationErrorGenerator.kt:100 */
|
3395 - | impl ::std::error::Error for HttpRequestWithRegexLiteralError {
|
3141 + | impl ::std::error::Error for MalformedTimestampHeaderEpochError {
|
3396 3142 | /* ServerOperationErrorGenerator.kt:101 */
|
3397 3143 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3398 3144 | /* ServerOperationErrorGenerator.kt:139 */
|
3399 3145 | match &self {
|
3400 3146 | /* ServerOperationErrorGenerator.kt:142 */
|
3401 - | HttpRequestWithRegexLiteralError::ValidationException(_inner) =>
|
3147 + | MalformedTimestampHeaderEpochError::ValidationException(_inner) =>
|
3402 3148 | /* ServerOperationErrorGenerator.kt:103 */
|
3403 3149 | {
|
3404 3150 | Some(_inner)
|
3405 3151 | }
|
3406 3152 | /* ServerOperationErrorGenerator.kt:139 */
|
3407 3153 | }
|
3408 3154 | /* ServerOperationErrorGenerator.kt:101 */
|
3409 3155 | }
|
3410 3156 | /* ServerOperationErrorGenerator.kt:100 */
|
3411 3157 | }
|
3412 3158 | /* ServerOperationErrorGenerator.kt:110 */
|
3413 3159 | impl ::std::convert::From<crate::error::ValidationException>
|
3414 - | for crate::error::HttpRequestWithRegexLiteralError
|
3160 + | for crate::error::MalformedTimestampHeaderEpochError
|
3415 3161 | {
|
3416 3162 | /* ServerOperationErrorGenerator.kt:111 */
|
3417 3163 | fn from(
|
3418 3164 | variant: crate::error::ValidationException,
|
3419 - | ) -> crate::error::HttpRequestWithRegexLiteralError {
|
3165 + | ) -> crate::error::MalformedTimestampHeaderEpochError {
|
3420 3166 | /* ServerOperationErrorGenerator.kt:112 */
|
3421 3167 | Self::ValidationException(variant)
|
3422 3168 | /* ServerOperationErrorGenerator.kt:111 */
|
3423 3169 | }
|
3424 3170 | /* ServerOperationErrorGenerator.kt:110 */
|
3425 3171 | }
|
3426 3172 |
|
3427 3173 | /* ServerOperationErrorGenerator.kt:63 */
|
3428 - | /// Error type for the `HttpRequestWithFloatLabels` operation.
|
3174 + | /// Error type for the `MalformedTimestampBodyDefault` operation.
|
3429 3175 | /* ServerOperationErrorGenerator.kt:64 */
|
3430 - | /// Each variant represents an error that can occur for the `HttpRequestWithFloatLabels` operation.
|
3176 + | /// Each variant represents an error that can occur for the `MalformedTimestampBodyDefault` operation.
|
3431 3177 | /* RustType.kt:534 */
|
3432 3178 | #[derive(::std::fmt::Debug)]
|
3433 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithFloatLabelsError {
|
3179 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDefaultError {
|
3434 3180 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3435 3181 | /* ServerOperationErrorGenerator.kt:71 */
|
3436 3182 | ValidationException(crate::error::ValidationException),
|
3437 3183 | /* ServerOperationErrorGenerator.kt:66 */
|
3438 3184 | }
|
3439 3185 | /* ServerOperationErrorGenerator.kt:75 */
|
3440 - | impl ::std::fmt::Display for HttpRequestWithFloatLabelsError {
|
3186 + | impl ::std::fmt::Display for MalformedTimestampBodyDefaultError {
|
3441 3187 | /* ServerOperationErrorGenerator.kt:76 */
|
3442 3188 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3443 3189 | /* ServerOperationErrorGenerator.kt:139 */
|
3444 3190 | match &self {
|
3445 3191 | /* ServerOperationErrorGenerator.kt:142 */
|
3446 - | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
3192 + | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
3447 3193 | /* ServerOperationErrorGenerator.kt:78 */
|
3448 3194 | {
|
3449 3195 | _inner.fmt(f)
|
3450 3196 | }
|
3451 3197 | /* ServerOperationErrorGenerator.kt:139 */
|
3452 3198 | }
|
3453 3199 | /* ServerOperationErrorGenerator.kt:76 */
|
3454 3200 | }
|
3455 3201 | /* ServerOperationErrorGenerator.kt:75 */
|
3456 3202 | }
|
3457 3203 | /* ServerOperationErrorGenerator.kt:83 */
|
3458 - | impl HttpRequestWithFloatLabelsError {
|
3204 + | impl MalformedTimestampBodyDefaultError {
|
3459 3205 | /* ServerOperationErrorGenerator.kt:87 */
|
3460 - | /// Returns `true` if the error kind is `HttpRequestWithFloatLabelsError::ValidationException`.
|
3206 + | /// Returns `true` if the error kind is `MalformedTimestampBodyDefaultError::ValidationException`.
|
3461 3207 | /* ServerOperationErrorGenerator.kt:88 */
|
3462 3208 | pub fn is_validation_exception(&self) -> bool {
|
3463 3209 | /* ServerOperationErrorGenerator.kt:89 */
|
3464 3210 | matches!(
|
3465 3211 | &self,
|
3466 - | HttpRequestWithFloatLabelsError::ValidationException(_)
|
3212 + | MalformedTimestampBodyDefaultError::ValidationException(_)
|
3467 3213 | )
|
3468 3214 | /* ServerOperationErrorGenerator.kt:88 */
|
3469 3215 | }
|
3470 3216 | /* ServerOperationErrorGenerator.kt:92 */
|
3471 3217 | /// Returns the error name string by matching the correct variant.
|
3472 3218 | /* ServerOperationErrorGenerator.kt:93 */
|
3473 3219 | pub fn name(&self) -> &'static str {
|
3474 3220 | /* ServerOperationErrorGenerator.kt:139 */
|
3475 3221 | match &self {
|
3476 3222 | /* ServerOperationErrorGenerator.kt:142 */
|
3477 - | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
3223 + | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
3478 3224 | /* ServerOperationErrorGenerator.kt:95 */
|
3479 3225 | {
|
3480 3226 | _inner.name()
|
3481 3227 | }
|
3482 3228 | /* ServerOperationErrorGenerator.kt:139 */
|
3483 3229 | }
|
3484 3230 | /* ServerOperationErrorGenerator.kt:93 */
|
3485 3231 | }
|
3486 3232 | /* ServerOperationErrorGenerator.kt:83 */
|
3487 3233 | }
|
3488 3234 | /* ServerOperationErrorGenerator.kt:100 */
|
3489 - | impl ::std::error::Error for HttpRequestWithFloatLabelsError {
|
3235 + | impl ::std::error::Error for MalformedTimestampBodyDefaultError {
|
3490 3236 | /* ServerOperationErrorGenerator.kt:101 */
|
3491 3237 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3492 3238 | /* ServerOperationErrorGenerator.kt:139 */
|
3493 3239 | match &self {
|
3494 3240 | /* ServerOperationErrorGenerator.kt:142 */
|
3495 - | HttpRequestWithFloatLabelsError::ValidationException(_inner) =>
|
3241 + | MalformedTimestampBodyDefaultError::ValidationException(_inner) =>
|
3496 3242 | /* ServerOperationErrorGenerator.kt:103 */
|
3497 3243 | {
|
3498 3244 | Some(_inner)
|
3499 3245 | }
|
3500 3246 | /* ServerOperationErrorGenerator.kt:139 */
|
3501 3247 | }
|
3502 3248 | /* ServerOperationErrorGenerator.kt:101 */
|
3503 3249 | }
|
3504 3250 | /* ServerOperationErrorGenerator.kt:100 */
|
3505 3251 | }
|
3506 3252 | /* ServerOperationErrorGenerator.kt:110 */
|
3507 3253 | impl ::std::convert::From<crate::error::ValidationException>
|
3508 - | for crate::error::HttpRequestWithFloatLabelsError
|
3254 + | for crate::error::MalformedTimestampBodyDefaultError
|
3509 3255 | {
|
3510 3256 | /* ServerOperationErrorGenerator.kt:111 */
|
3511 3257 | fn from(
|
3512 3258 | variant: crate::error::ValidationException,
|
3513 - | ) -> crate::error::HttpRequestWithFloatLabelsError {
|
3259 + | ) -> crate::error::MalformedTimestampBodyDefaultError {
|
3514 3260 | /* ServerOperationErrorGenerator.kt:112 */
|
3515 3261 | Self::ValidationException(variant)
|
3516 3262 | /* ServerOperationErrorGenerator.kt:111 */
|
3517 3263 | }
|
3518 3264 | /* ServerOperationErrorGenerator.kt:110 */
|
3519 3265 | }
|
3520 3266 |
|
3521 3267 | /* ServerOperationErrorGenerator.kt:63 */
|
3522 - | /// Error type for the `HttpRequestWithGreedyLabelInPath` operation.
|
3268 + | /// Error type for the `MalformedTimestampBodyDateTime` operation.
|
3523 3269 | /* ServerOperationErrorGenerator.kt:64 */
|
3524 - | /// Each variant represents an error that can occur for the `HttpRequestWithGreedyLabelInPath` operation.
|
3270 + | /// Each variant represents an error that can occur for the `MalformedTimestampBodyDateTime` operation.
|
3525 3271 | /* RustType.kt:534 */
|
3526 3272 | #[derive(::std::fmt::Debug)]
|
3527 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithGreedyLabelInPathError {
|
3273 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyDateTimeError {
|
3528 3274 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3529 3275 | /* ServerOperationErrorGenerator.kt:71 */
|
3530 3276 | ValidationException(crate::error::ValidationException),
|
3531 3277 | /* ServerOperationErrorGenerator.kt:66 */
|
3532 3278 | }
|
3533 3279 | /* ServerOperationErrorGenerator.kt:75 */
|
3534 - | impl ::std::fmt::Display for HttpRequestWithGreedyLabelInPathError {
|
3280 + | impl ::std::fmt::Display for MalformedTimestampBodyDateTimeError {
|
3535 3281 | /* ServerOperationErrorGenerator.kt:76 */
|
3536 3282 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3537 3283 | /* ServerOperationErrorGenerator.kt:139 */
|
3538 3284 | match &self {
|
3539 3285 | /* ServerOperationErrorGenerator.kt:142 */
|
3540 - | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
3286 + | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
3541 3287 | /* ServerOperationErrorGenerator.kt:78 */
|
3542 3288 | {
|
3543 3289 | _inner.fmt(f)
|
3544 3290 | }
|
3545 3291 | /* ServerOperationErrorGenerator.kt:139 */
|
3546 3292 | }
|
3547 3293 | /* ServerOperationErrorGenerator.kt:76 */
|
3548 3294 | }
|
3549 3295 | /* ServerOperationErrorGenerator.kt:75 */
|
3550 3296 | }
|
3551 3297 | /* ServerOperationErrorGenerator.kt:83 */
|
3552 - | impl HttpRequestWithGreedyLabelInPathError {
|
3298 + | impl MalformedTimestampBodyDateTimeError {
|
3553 3299 | /* ServerOperationErrorGenerator.kt:87 */
|
3554 - | /// Returns `true` if the error kind is `HttpRequestWithGreedyLabelInPathError::ValidationException`.
|
3300 + | /// Returns `true` if the error kind is `MalformedTimestampBodyDateTimeError::ValidationException`.
|
3555 3301 | /* ServerOperationErrorGenerator.kt:88 */
|
3556 3302 | pub fn is_validation_exception(&self) -> bool {
|
3557 3303 | /* ServerOperationErrorGenerator.kt:89 */
|
3558 3304 | matches!(
|
3559 3305 | &self,
|
3560 - | HttpRequestWithGreedyLabelInPathError::ValidationException(_)
|
3306 + | MalformedTimestampBodyDateTimeError::ValidationException(_)
|
3561 3307 | )
|
3562 3308 | /* ServerOperationErrorGenerator.kt:88 */
|
3563 3309 | }
|
3564 3310 | /* ServerOperationErrorGenerator.kt:92 */
|
3565 3311 | /// Returns the error name string by matching the correct variant.
|
3566 3312 | /* ServerOperationErrorGenerator.kt:93 */
|
3567 3313 | pub fn name(&self) -> &'static str {
|
3568 3314 | /* ServerOperationErrorGenerator.kt:139 */
|
3569 3315 | match &self {
|
3570 3316 | /* ServerOperationErrorGenerator.kt:142 */
|
3571 - | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
3317 + | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
3572 3318 | /* ServerOperationErrorGenerator.kt:95 */
|
3573 3319 | {
|
3574 3320 | _inner.name()
|
3575 3321 | }
|
3576 3322 | /* ServerOperationErrorGenerator.kt:139 */
|
3577 3323 | }
|
3578 3324 | /* ServerOperationErrorGenerator.kt:93 */
|
3579 3325 | }
|
3580 3326 | /* ServerOperationErrorGenerator.kt:83 */
|
3581 3327 | }
|
3582 3328 | /* ServerOperationErrorGenerator.kt:100 */
|
3583 - | impl ::std::error::Error for HttpRequestWithGreedyLabelInPathError {
|
3329 + | impl ::std::error::Error for MalformedTimestampBodyDateTimeError {
|
3584 3330 | /* ServerOperationErrorGenerator.kt:101 */
|
3585 3331 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3586 3332 | /* ServerOperationErrorGenerator.kt:139 */
|
3587 3333 | match &self {
|
3588 3334 | /* ServerOperationErrorGenerator.kt:142 */
|
3589 - | HttpRequestWithGreedyLabelInPathError::ValidationException(_inner) =>
|
3335 + | MalformedTimestampBodyDateTimeError::ValidationException(_inner) =>
|
3590 3336 | /* ServerOperationErrorGenerator.kt:103 */
|
3591 3337 | {
|
3592 3338 | Some(_inner)
|
3593 3339 | }
|
3594 3340 | /* ServerOperationErrorGenerator.kt:139 */
|
3595 3341 | }
|
3596 3342 | /* ServerOperationErrorGenerator.kt:101 */
|
3597 3343 | }
|
3598 3344 | /* ServerOperationErrorGenerator.kt:100 */
|
3599 3345 | }
|
3600 3346 | /* ServerOperationErrorGenerator.kt:110 */
|
3601 3347 | impl ::std::convert::From<crate::error::ValidationException>
|
3602 - | for crate::error::HttpRequestWithGreedyLabelInPathError
|
3348 + | for crate::error::MalformedTimestampBodyDateTimeError
|
3603 3349 | {
|
3604 3350 | /* ServerOperationErrorGenerator.kt:111 */
|
3605 3351 | fn from(
|
3606 3352 | variant: crate::error::ValidationException,
|
3607 - | ) -> crate::error::HttpRequestWithGreedyLabelInPathError {
|
3353 + | ) -> crate::error::MalformedTimestampBodyDateTimeError {
|
3608 3354 | /* ServerOperationErrorGenerator.kt:112 */
|
3609 3355 | Self::ValidationException(variant)
|
3610 3356 | /* ServerOperationErrorGenerator.kt:111 */
|
3611 3357 | }
|
3612 3358 | /* ServerOperationErrorGenerator.kt:110 */
|
3613 3359 | }
|
3614 3360 |
|
3615 3361 | /* ServerOperationErrorGenerator.kt:63 */
|
3616 - | /// Error type for the `HttpRequestWithLabelsAndTimestampFormat` operation.
|
3362 + | /// Error type for the `MalformedTimestampBodyHttpDate` operation.
|
3617 3363 | /* ServerOperationErrorGenerator.kt:64 */
|
3618 - | /// Each variant represents an error that can occur for the `HttpRequestWithLabelsAndTimestampFormat` operation.
|
3364 + | /// Each variant represents an error that can occur for the `MalformedTimestampBodyHttpDate` operation.
|
3619 3365 | /* RustType.kt:534 */
|
3620 3366 | #[derive(::std::fmt::Debug)]
|
3621 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsAndTimestampFormatError {
|
3367 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MalformedTimestampBodyHttpDateError {
|
3622 3368 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3623 3369 | /* ServerOperationErrorGenerator.kt:71 */
|
3624 3370 | ValidationException(crate::error::ValidationException),
|
3625 3371 | /* ServerOperationErrorGenerator.kt:66 */
|
3626 3372 | }
|
3627 3373 | /* ServerOperationErrorGenerator.kt:75 */
|
3628 - | impl ::std::fmt::Display for HttpRequestWithLabelsAndTimestampFormatError {
|
3374 + | impl ::std::fmt::Display for MalformedTimestampBodyHttpDateError {
|
3629 3375 | /* ServerOperationErrorGenerator.kt:76 */
|
3630 3376 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3631 3377 | /* ServerOperationErrorGenerator.kt:139 */
|
3632 3378 | match &self {
|
3633 3379 | /* ServerOperationErrorGenerator.kt:142 */
|
3634 - | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
3380 + | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
3635 3381 | /* ServerOperationErrorGenerator.kt:78 */
|
3636 3382 | {
|
3637 3383 | _inner.fmt(f)
|
3638 3384 | }
|
3639 3385 | /* ServerOperationErrorGenerator.kt:139 */
|
3640 3386 | }
|
3641 3387 | /* ServerOperationErrorGenerator.kt:76 */
|
3642 3388 | }
|
3643 3389 | /* ServerOperationErrorGenerator.kt:75 */
|
3644 3390 | }
|
3645 3391 | /* ServerOperationErrorGenerator.kt:83 */
|
3646 - | impl HttpRequestWithLabelsAndTimestampFormatError {
|
3392 + | impl MalformedTimestampBodyHttpDateError {
|
3647 3393 | /* ServerOperationErrorGenerator.kt:87 */
|
3648 - | /// Returns `true` if the error kind is `HttpRequestWithLabelsAndTimestampFormatError::ValidationException`.
|
3394 + | /// Returns `true` if the error kind is `MalformedTimestampBodyHttpDateError::ValidationException`.
|
3649 3395 | /* ServerOperationErrorGenerator.kt:88 */
|
3650 3396 | pub fn is_validation_exception(&self) -> bool {
|
3651 3397 | /* ServerOperationErrorGenerator.kt:89 */
|
3652 3398 | matches!(
|
3653 3399 | &self,
|
3654 - | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_)
|
3400 + | MalformedTimestampBodyHttpDateError::ValidationException(_)
|
3655 3401 | )
|
3656 3402 | /* ServerOperationErrorGenerator.kt:88 */
|
3657 3403 | }
|
3658 3404 | /* ServerOperationErrorGenerator.kt:92 */
|
3659 3405 | /// Returns the error name string by matching the correct variant.
|
3660 3406 | /* ServerOperationErrorGenerator.kt:93 */
|
3661 3407 | pub fn name(&self) -> &'static str {
|
3662 3408 | /* ServerOperationErrorGenerator.kt:139 */
|
3663 3409 | match &self {
|
3664 3410 | /* ServerOperationErrorGenerator.kt:142 */
|
3665 - | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
3411 + | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
3666 3412 | /* ServerOperationErrorGenerator.kt:95 */
|
3667 3413 | {
|
3668 3414 | _inner.name()
|
3669 3415 | }
|
3670 3416 | /* ServerOperationErrorGenerator.kt:139 */
|
3671 3417 | }
|
3672 3418 | /* ServerOperationErrorGenerator.kt:93 */
|
3673 3419 | }
|
3674 3420 | /* ServerOperationErrorGenerator.kt:83 */
|
3675 3421 | }
|
3676 3422 | /* ServerOperationErrorGenerator.kt:100 */
|
3677 - | impl ::std::error::Error for HttpRequestWithLabelsAndTimestampFormatError {
|
3423 + | impl ::std::error::Error for MalformedTimestampBodyHttpDateError {
|
3678 3424 | /* ServerOperationErrorGenerator.kt:101 */
|
3679 3425 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3680 3426 | /* ServerOperationErrorGenerator.kt:139 */
|
3681 3427 | match &self {
|
3682 3428 | /* ServerOperationErrorGenerator.kt:142 */
|
3683 - | HttpRequestWithLabelsAndTimestampFormatError::ValidationException(_inner) =>
|
3429 + | MalformedTimestampBodyHttpDateError::ValidationException(_inner) =>
|
3684 3430 | /* ServerOperationErrorGenerator.kt:103 */
|
3685 3431 | {
|
3686 3432 | Some(_inner)
|
3687 3433 | }
|
3688 3434 | /* ServerOperationErrorGenerator.kt:139 */
|
3689 3435 | }
|
3690 3436 | /* ServerOperationErrorGenerator.kt:101 */
|
3691 3437 | }
|
3692 3438 | /* ServerOperationErrorGenerator.kt:100 */
|
3693 3439 | }
|
3694 3440 | /* ServerOperationErrorGenerator.kt:110 */
|
3695 3441 | impl ::std::convert::From<crate::error::ValidationException>
|
3696 - | for crate::error::HttpRequestWithLabelsAndTimestampFormatError
|
3442 + | for crate::error::MalformedTimestampBodyHttpDateError
|
3697 3443 | {
|
3698 3444 | /* ServerOperationErrorGenerator.kt:111 */
|
3699 3445 | fn from(
|
3700 3446 | variant: crate::error::ValidationException,
|
3701 - | ) -> crate::error::HttpRequestWithLabelsAndTimestampFormatError {
|
3447 + | ) -> crate::error::MalformedTimestampBodyHttpDateError {
|
3702 3448 | /* ServerOperationErrorGenerator.kt:112 */
|
3703 3449 | Self::ValidationException(variant)
|
3704 3450 | /* ServerOperationErrorGenerator.kt:111 */
|
3705 3451 | }
|
3706 3452 | /* ServerOperationErrorGenerator.kt:110 */
|
3707 3453 | }
|
3708 3454 |
|
3709 3455 | /* ServerOperationErrorGenerator.kt:63 */
|
3710 - | /// Error type for the `HttpRequestWithLabels` operation.
|
3456 + | /// Error type for the `OperationWithDefaults` operation.
|
3711 3457 | /* ServerOperationErrorGenerator.kt:64 */
|
3712 - | /// Each variant represents an error that can occur for the `HttpRequestWithLabels` operation.
|
3458 + | /// Each variant represents an error that can occur for the `OperationWithDefaults` operation.
|
3713 3459 | /* RustType.kt:534 */
|
3714 3460 | #[derive(::std::fmt::Debug)]
|
3715 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpRequestWithLabelsError {
|
3461 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithDefaultsError {
|
3716 3462 | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3717 3463 | /* ServerOperationErrorGenerator.kt:71 */
|
3718 3464 | ValidationException(crate::error::ValidationException),
|
3719 3465 | /* ServerOperationErrorGenerator.kt:66 */
|
3720 3466 | }
|
3721 3467 | /* ServerOperationErrorGenerator.kt:75 */
|
3722 - | impl ::std::fmt::Display for HttpRequestWithLabelsError {
|
3468 + | impl ::std::fmt::Display for OperationWithDefaultsError {
|
3723 3469 | /* ServerOperationErrorGenerator.kt:76 */
|
3724 3470 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3725 3471 | /* ServerOperationErrorGenerator.kt:139 */
|
3726 3472 | match &self {
|
3727 3473 | /* ServerOperationErrorGenerator.kt:142 */
|
3728 - | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
3474 + | OperationWithDefaultsError::ValidationException(_inner) =>
|
3729 3475 | /* ServerOperationErrorGenerator.kt:78 */
|
3730 3476 | {
|
3731 3477 | _inner.fmt(f)
|
3732 3478 | }
|
3733 3479 | /* ServerOperationErrorGenerator.kt:139 */
|
3734 3480 | }
|
3735 - | /* ServerOperationErrorGenerator.kt:76 */
|
3481 + | /* ServerOperationErrorGenerator.kt:76 */
|
3482 + | }
|
3483 + | /* ServerOperationErrorGenerator.kt:75 */
|
3484 + | }
|
3485 + | /* ServerOperationErrorGenerator.kt:83 */
|
3486 + | impl OperationWithDefaultsError {
|
3487 + | /* ServerOperationErrorGenerator.kt:87 */
|
3488 + | /// Returns `true` if the error kind is `OperationWithDefaultsError::ValidationException`.
|
3489 + | /* ServerOperationErrorGenerator.kt:88 */
|
3490 + | pub fn is_validation_exception(&self) -> bool {
|
3491 + | /* ServerOperationErrorGenerator.kt:89 */
|
3492 + | matches!(&self, OperationWithDefaultsError::ValidationException(_))
|
3493 + | /* ServerOperationErrorGenerator.kt:88 */
|
3494 + | }
|
3495 + | /* ServerOperationErrorGenerator.kt:92 */
|
3496 + | /// Returns the error name string by matching the correct variant.
|
3497 + | /* ServerOperationErrorGenerator.kt:93 */
|
3498 + | pub fn name(&self) -> &'static str {
|
3499 + | /* ServerOperationErrorGenerator.kt:139 */
|
3500 + | match &self {
|
3501 + | /* ServerOperationErrorGenerator.kt:142 */
|
3502 + | OperationWithDefaultsError::ValidationException(_inner) =>
|
3503 + | /* ServerOperationErrorGenerator.kt:95 */
|
3504 + | {
|
3505 + | _inner.name()
|
3506 + | }
|
3507 + | /* ServerOperationErrorGenerator.kt:139 */
|
3508 + | }
|
3509 + | /* ServerOperationErrorGenerator.kt:93 */
|
3510 + | }
|
3511 + | /* ServerOperationErrorGenerator.kt:83 */
|
3512 + | }
|
3513 + | /* ServerOperationErrorGenerator.kt:100 */
|
3514 + | impl ::std::error::Error for OperationWithDefaultsError {
|
3515 + | /* ServerOperationErrorGenerator.kt:101 */
|
3516 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3517 + | /* ServerOperationErrorGenerator.kt:139 */
|
3518 + | match &self {
|
3519 + | /* ServerOperationErrorGenerator.kt:142 */
|
3520 + | OperationWithDefaultsError::ValidationException(_inner) =>
|
3521 + | /* ServerOperationErrorGenerator.kt:103 */
|
3522 + | {
|
3523 + | Some(_inner)
|
3524 + | }
|
3525 + | /* ServerOperationErrorGenerator.kt:139 */
|
3526 + | }
|
3527 + | /* ServerOperationErrorGenerator.kt:101 */
|
3528 + | }
|
3529 + | /* ServerOperationErrorGenerator.kt:100 */
|
3530 + | }
|
3531 + | /* ServerOperationErrorGenerator.kt:110 */
|
3532 + | impl ::std::convert::From<crate::error::ValidationException>
|
3533 + | for crate::error::OperationWithDefaultsError
|
3534 + | {
|
3535 + | /* ServerOperationErrorGenerator.kt:111 */
|
3536 + | fn from(
|
3537 + | variant: crate::error::ValidationException,
|
3538 + | ) -> crate::error::OperationWithDefaultsError {
|
3539 + | /* ServerOperationErrorGenerator.kt:112 */
|
3540 + | Self::ValidationException(variant)
|
3541 + | /* ServerOperationErrorGenerator.kt:111 */
|
3542 + | }
|
3543 + | /* ServerOperationErrorGenerator.kt:110 */
|
3544 + | }
|
3545 + |
|
3546 + | /* ServerOperationErrorGenerator.kt:63 */
|
3547 + | /// Error type for the `OperationWithNestedStructure` operation.
|
3548 + | /* ServerOperationErrorGenerator.kt:64 */
|
3549 + | /// Each variant represents an error that can occur for the `OperationWithNestedStructure` operation.
|
3550 + | /* RustType.kt:534 */
|
3551 + | #[derive(::std::fmt::Debug)]
|
3552 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum OperationWithNestedStructureError {
|
3553 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3554 + | /* ServerOperationErrorGenerator.kt:71 */
|
3555 + | ValidationException(crate::error::ValidationException),
|
3556 + | /* ServerOperationErrorGenerator.kt:66 */
|
3557 + | }
|
3558 + | /* ServerOperationErrorGenerator.kt:75 */
|
3559 + | impl ::std::fmt::Display for OperationWithNestedStructureError {
|
3560 + | /* ServerOperationErrorGenerator.kt:76 */
|
3561 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3562 + | /* ServerOperationErrorGenerator.kt:139 */
|
3563 + | match &self {
|
3564 + | /* ServerOperationErrorGenerator.kt:142 */
|
3565 + | OperationWithNestedStructureError::ValidationException(_inner) =>
|
3566 + | /* ServerOperationErrorGenerator.kt:78 */
|
3567 + | {
|
3568 + | _inner.fmt(f)
|
3569 + | }
|
3570 + | /* ServerOperationErrorGenerator.kt:139 */
|
3571 + | }
|
3572 + | /* ServerOperationErrorGenerator.kt:76 */
|
3573 + | }
|
3574 + | /* ServerOperationErrorGenerator.kt:75 */
|
3575 + | }
|
3576 + | /* ServerOperationErrorGenerator.kt:83 */
|
3577 + | impl OperationWithNestedStructureError {
|
3578 + | /* ServerOperationErrorGenerator.kt:87 */
|
3579 + | /// Returns `true` if the error kind is `OperationWithNestedStructureError::ValidationException`.
|
3580 + | /* ServerOperationErrorGenerator.kt:88 */
|
3581 + | pub fn is_validation_exception(&self) -> bool {
|
3582 + | /* ServerOperationErrorGenerator.kt:89 */
|
3583 + | matches!(
|
3584 + | &self,
|
3585 + | OperationWithNestedStructureError::ValidationException(_)
|
3586 + | )
|
3587 + | /* ServerOperationErrorGenerator.kt:88 */
|
3588 + | }
|
3589 + | /* ServerOperationErrorGenerator.kt:92 */
|
3590 + | /// Returns the error name string by matching the correct variant.
|
3591 + | /* ServerOperationErrorGenerator.kt:93 */
|
3592 + | pub fn name(&self) -> &'static str {
|
3593 + | /* ServerOperationErrorGenerator.kt:139 */
|
3594 + | match &self {
|
3595 + | /* ServerOperationErrorGenerator.kt:142 */
|
3596 + | OperationWithNestedStructureError::ValidationException(_inner) =>
|
3597 + | /* ServerOperationErrorGenerator.kt:95 */
|
3598 + | {
|
3599 + | _inner.name()
|
3600 + | }
|
3601 + | /* ServerOperationErrorGenerator.kt:139 */
|
3602 + | }
|
3603 + | /* ServerOperationErrorGenerator.kt:93 */
|
3604 + | }
|
3605 + | /* ServerOperationErrorGenerator.kt:83 */
|
3606 + | }
|
3607 + | /* ServerOperationErrorGenerator.kt:100 */
|
3608 + | impl ::std::error::Error for OperationWithNestedStructureError {
|
3609 + | /* ServerOperationErrorGenerator.kt:101 */
|
3610 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3611 + | /* ServerOperationErrorGenerator.kt:139 */
|
3612 + | match &self {
|
3613 + | /* ServerOperationErrorGenerator.kt:142 */
|
3614 + | OperationWithNestedStructureError::ValidationException(_inner) =>
|
3615 + | /* ServerOperationErrorGenerator.kt:103 */
|
3616 + | {
|
3617 + | Some(_inner)
|
3618 + | }
|
3619 + | /* ServerOperationErrorGenerator.kt:139 */
|
3620 + | }
|
3621 + | /* ServerOperationErrorGenerator.kt:101 */
|
3622 + | }
|
3623 + | /* ServerOperationErrorGenerator.kt:100 */
|
3624 + | }
|
3625 + | /* ServerOperationErrorGenerator.kt:110 */
|
3626 + | impl ::std::convert::From<crate::error::ValidationException>
|
3627 + | for crate::error::OperationWithNestedStructureError
|
3628 + | {
|
3629 + | /* ServerOperationErrorGenerator.kt:111 */
|
3630 + | fn from(
|
3631 + | variant: crate::error::ValidationException,
|
3632 + | ) -> crate::error::OperationWithNestedStructureError {
|
3633 + | /* ServerOperationErrorGenerator.kt:112 */
|
3634 + | Self::ValidationException(variant)
|
3635 + | /* ServerOperationErrorGenerator.kt:111 */
|
3636 + | }
|
3637 + | /* ServerOperationErrorGenerator.kt:110 */
|
3638 + | }
|
3639 + |
|
3640 + | /* ServerOperationErrorGenerator.kt:63 */
|
3641 + | /// Error type for the `InputStream` operation.
|
3642 + | /* ServerOperationErrorGenerator.kt:64 */
|
3643 + | /// Each variant represents an error that can occur for the `InputStream` operation.
|
3644 + | /* RustType.kt:534 */
|
3645 + | #[derive(::std::fmt::Debug)]
|
3646 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum InputStreamError {
|
3647 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3648 + | /* ServerOperationErrorGenerator.kt:71 */
|
3649 + | ValidationException(crate::error::ValidationException),
|
3650 + | /* ServerOperationErrorGenerator.kt:68 */
|
3651 + | #[allow(missing_docs)] // documentation missing in model
|
3652 + | /* ServerOperationErrorGenerator.kt:71 */
|
3653 + | ErrorEvent(crate::error::ErrorEvent),
|
3654 + | /* ServerOperationErrorGenerator.kt:66 */
|
3655 + | }
|
3656 + | /* ServerOperationErrorGenerator.kt:75 */
|
3657 + | impl ::std::fmt::Display for InputStreamError {
|
3658 + | /* ServerOperationErrorGenerator.kt:76 */
|
3659 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3660 + | /* ServerOperationErrorGenerator.kt:139 */
|
3661 + | match &self {
|
3662 + | /* ServerOperationErrorGenerator.kt:142 */
|
3663 + | InputStreamError::ValidationException(_inner) =>
|
3664 + | /* ServerOperationErrorGenerator.kt:78 */
|
3665 + | {
|
3666 + | _inner.fmt(f)
|
3667 + | }
|
3668 + | ,
|
3669 + | /* ServerOperationErrorGenerator.kt:142 */
|
3670 + | InputStreamError::ErrorEvent(_inner) =>
|
3671 + | /* ServerOperationErrorGenerator.kt:78 */
|
3672 + | {
|
3673 + | _inner.fmt(f)
|
3674 + | }
|
3675 + | /* ServerOperationErrorGenerator.kt:139 */
|
3676 + | }
|
3677 + | /* ServerOperationErrorGenerator.kt:76 */
|
3678 + | }
|
3679 + | /* ServerOperationErrorGenerator.kt:75 */
|
3680 + | }
|
3681 + | /* ServerOperationErrorGenerator.kt:83 */
|
3682 + | impl InputStreamError {
|
3683 + | /* ServerOperationErrorGenerator.kt:87 */
|
3684 + | /// Returns `true` if the error kind is `InputStreamError::ValidationException`.
|
3685 + | /* ServerOperationErrorGenerator.kt:88 */
|
3686 + | pub fn is_validation_exception(&self) -> bool {
|
3687 + | /* ServerOperationErrorGenerator.kt:89 */
|
3688 + | matches!(&self, InputStreamError::ValidationException(_))
|
3689 + | /* ServerOperationErrorGenerator.kt:88 */
|
3690 + | }
|
3691 + | /* ServerOperationErrorGenerator.kt:87 */
|
3692 + | /// Returns `true` if the error kind is `InputStreamError::ErrorEvent`.
|
3693 + | /* ServerOperationErrorGenerator.kt:88 */
|
3694 + | pub fn is_error_event(&self) -> bool {
|
3695 + | /* ServerOperationErrorGenerator.kt:89 */
|
3696 + | matches!(&self, InputStreamError::ErrorEvent(_))
|
3697 + | /* ServerOperationErrorGenerator.kt:88 */
|
3698 + | }
|
3699 + | /* ServerOperationErrorGenerator.kt:92 */
|
3700 + | /// Returns the error name string by matching the correct variant.
|
3701 + | /* ServerOperationErrorGenerator.kt:93 */
|
3702 + | pub fn name(&self) -> &'static str {
|
3703 + | /* ServerOperationErrorGenerator.kt:139 */
|
3704 + | match &self {
|
3705 + | /* ServerOperationErrorGenerator.kt:142 */
|
3706 + | InputStreamError::ValidationException(_inner) =>
|
3707 + | /* ServerOperationErrorGenerator.kt:95 */
|
3708 + | {
|
3709 + | _inner.name()
|
3710 + | }
|
3711 + | ,
|
3712 + | /* ServerOperationErrorGenerator.kt:142 */
|
3713 + | InputStreamError::ErrorEvent(_inner) =>
|
3714 + | /* ServerOperationErrorGenerator.kt:95 */
|
3715 + | {
|
3716 + | _inner.name()
|
3717 + | }
|
3718 + | /* ServerOperationErrorGenerator.kt:139 */
|
3719 + | }
|
3720 + | /* ServerOperationErrorGenerator.kt:93 */
|
3721 + | }
|
3722 + | /* ServerOperationErrorGenerator.kt:83 */
|
3723 + | }
|
3724 + | /* ServerOperationErrorGenerator.kt:100 */
|
3725 + | impl ::std::error::Error for InputStreamError {
|
3726 + | /* ServerOperationErrorGenerator.kt:101 */
|
3727 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3728 + | /* ServerOperationErrorGenerator.kt:139 */
|
3729 + | match &self {
|
3730 + | /* ServerOperationErrorGenerator.kt:142 */
|
3731 + | InputStreamError::ValidationException(_inner) =>
|
3732 + | /* ServerOperationErrorGenerator.kt:103 */
|
3733 + | {
|
3734 + | Some(_inner)
|
3735 + | }
|
3736 + | ,
|
3737 + | /* ServerOperationErrorGenerator.kt:142 */
|
3738 + | InputStreamError::ErrorEvent(_inner) =>
|
3739 + | /* ServerOperationErrorGenerator.kt:103 */
|
3740 + | {
|
3741 + | Some(_inner)
|
3742 + | }
|
3743 + | /* ServerOperationErrorGenerator.kt:139 */
|
3744 + | }
|
3745 + | /* ServerOperationErrorGenerator.kt:101 */
|
3746 + | }
|
3747 + | /* ServerOperationErrorGenerator.kt:100 */
|
3748 + | }
|
3749 + | /* ServerOperationErrorGenerator.kt:110 */
|
3750 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::InputStreamError {
|
3751 + | /* ServerOperationErrorGenerator.kt:111 */
|
3752 + | fn from(variant: crate::error::ValidationException) -> crate::error::InputStreamError {
|
3753 + | /* ServerOperationErrorGenerator.kt:112 */
|
3754 + | Self::ValidationException(variant)
|
3755 + | /* ServerOperationErrorGenerator.kt:111 */
|
3756 + | }
|
3757 + | /* ServerOperationErrorGenerator.kt:110 */
|
3758 + | }
|
3759 + | /* ServerOperationErrorGenerator.kt:110 */
|
3760 + | impl ::std::convert::From<crate::error::ErrorEvent> for crate::error::InputStreamError {
|
3761 + | /* ServerOperationErrorGenerator.kt:111 */
|
3762 + | fn from(variant: crate::error::ErrorEvent) -> crate::error::InputStreamError {
|
3763 + | /* ServerOperationErrorGenerator.kt:112 */
|
3764 + | Self::ErrorEvent(variant)
|
3765 + | /* ServerOperationErrorGenerator.kt:111 */
|
3766 + | }
|
3767 + | /* ServerOperationErrorGenerator.kt:110 */
|
3768 + | }
|
3769 + |
|
3770 + | /* ServerOperationErrorGenerator.kt:63 */
|
3771 + | /// Error type for the `OutputStream` operation.
|
3772 + | /* ServerOperationErrorGenerator.kt:64 */
|
3773 + | /// Each variant represents an error that can occur for the `OutputStream` operation.
|
3774 + | /* RustType.kt:534 */
|
3775 + | #[derive(::std::fmt::Debug)]
|
3776 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum OutputStreamError {
|
3777 + | /* ServerOperationErrorGenerator.kt:68 */
|
3778 + | #[allow(missing_docs)] // documentation missing in model
|
3779 + | /* ServerOperationErrorGenerator.kt:71 */
|
3780 + | ServiceUnavailableError(crate::error::ServiceUnavailableError),
|
3781 + | /* ServerOperationErrorGenerator.kt:68 */
|
3782 + | #[allow(missing_docs)] // documentation missing in model
|
3783 + | /* ServerOperationErrorGenerator.kt:71 */
|
3784 + | ErrorEvent(crate::error::ErrorEvent),
|
3785 + | /* ServerOperationErrorGenerator.kt:66 */
|
3786 + | }
|
3787 + | /* ServerOperationErrorGenerator.kt:75 */
|
3788 + | impl ::std::fmt::Display for OutputStreamError {
|
3789 + | /* ServerOperationErrorGenerator.kt:76 */
|
3790 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3791 + | /* ServerOperationErrorGenerator.kt:139 */
|
3792 + | match &self {
|
3793 + | /* ServerOperationErrorGenerator.kt:142 */
|
3794 + | OutputStreamError::ServiceUnavailableError(_inner) =>
|
3795 + | /* ServerOperationErrorGenerator.kt:78 */
|
3796 + | {
|
3797 + | _inner.fmt(f)
|
3798 + | }
|
3799 + | ,
|
3800 + | /* ServerOperationErrorGenerator.kt:142 */
|
3801 + | OutputStreamError::ErrorEvent(_inner) =>
|
3802 + | /* ServerOperationErrorGenerator.kt:78 */
|
3803 + | {
|
3804 + | _inner.fmt(f)
|
3805 + | }
|
3806 + | /* ServerOperationErrorGenerator.kt:139 */
|
3807 + | }
|
3808 + | /* ServerOperationErrorGenerator.kt:76 */
|
3809 + | }
|
3810 + | /* ServerOperationErrorGenerator.kt:75 */
|
3811 + | }
|
3812 + | /* ServerOperationErrorGenerator.kt:83 */
|
3813 + | impl OutputStreamError {
|
3814 + | /* ServerOperationErrorGenerator.kt:87 */
|
3815 + | /// Returns `true` if the error kind is `OutputStreamError::ServiceUnavailableError`.
|
3816 + | /* ServerOperationErrorGenerator.kt:88 */
|
3817 + | pub fn is_service_unavailable_error(&self) -> bool {
|
3818 + | /* ServerOperationErrorGenerator.kt:89 */
|
3819 + | matches!(&self, OutputStreamError::ServiceUnavailableError(_))
|
3820 + | /* ServerOperationErrorGenerator.kt:88 */
|
3821 + | }
|
3822 + | /* ServerOperationErrorGenerator.kt:87 */
|
3823 + | /// Returns `true` if the error kind is `OutputStreamError::ErrorEvent`.
|
3824 + | /* ServerOperationErrorGenerator.kt:88 */
|
3825 + | pub fn is_error_event(&self) -> bool {
|
3826 + | /* ServerOperationErrorGenerator.kt:89 */
|
3827 + | matches!(&self, OutputStreamError::ErrorEvent(_))
|
3828 + | /* ServerOperationErrorGenerator.kt:88 */
|
3829 + | }
|
3830 + | /* ServerOperationErrorGenerator.kt:92 */
|
3831 + | /// Returns the error name string by matching the correct variant.
|
3832 + | /* ServerOperationErrorGenerator.kt:93 */
|
3833 + | pub fn name(&self) -> &'static str {
|
3834 + | /* ServerOperationErrorGenerator.kt:139 */
|
3835 + | match &self {
|
3836 + | /* ServerOperationErrorGenerator.kt:142 */
|
3837 + | OutputStreamError::ServiceUnavailableError(_inner) =>
|
3838 + | /* ServerOperationErrorGenerator.kt:95 */
|
3839 + | {
|
3840 + | _inner.name()
|
3841 + | }
|
3842 + | ,
|
3843 + | /* ServerOperationErrorGenerator.kt:142 */
|
3844 + | OutputStreamError::ErrorEvent(_inner) =>
|
3845 + | /* ServerOperationErrorGenerator.kt:95 */
|
3846 + | {
|
3847 + | _inner.name()
|
3848 + | }
|
3849 + | /* ServerOperationErrorGenerator.kt:139 */
|
3850 + | }
|
3851 + | /* ServerOperationErrorGenerator.kt:93 */
|
3852 + | }
|
3853 + | /* ServerOperationErrorGenerator.kt:83 */
|
3854 + | }
|
3855 + | /* ServerOperationErrorGenerator.kt:100 */
|
3856 + | impl ::std::error::Error for OutputStreamError {
|
3857 + | /* ServerOperationErrorGenerator.kt:101 */
|
3858 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3859 + | /* ServerOperationErrorGenerator.kt:139 */
|
3860 + | match &self {
|
3861 + | /* ServerOperationErrorGenerator.kt:142 */
|
3862 + | OutputStreamError::ServiceUnavailableError(_inner) =>
|
3863 + | /* ServerOperationErrorGenerator.kt:103 */
|
3864 + | {
|
3865 + | Some(_inner)
|
3866 + | }
|
3867 + | ,
|
3868 + | /* ServerOperationErrorGenerator.kt:142 */
|
3869 + | OutputStreamError::ErrorEvent(_inner) =>
|
3870 + | /* ServerOperationErrorGenerator.kt:103 */
|
3871 + | {
|
3872 + | Some(_inner)
|
3873 + | }
|
3874 + | /* ServerOperationErrorGenerator.kt:139 */
|
3875 + | }
|
3876 + | /* ServerOperationErrorGenerator.kt:101 */
|
3877 + | }
|
3878 + | /* ServerOperationErrorGenerator.kt:100 */
|
3879 + | }
|
3880 + | /* ServerOperationErrorGenerator.kt:110 */
|
3881 + | impl ::std::convert::From<crate::error::ServiceUnavailableError>
|
3882 + | for crate::error::OutputStreamError
|
3883 + | {
|
3884 + | /* ServerOperationErrorGenerator.kt:111 */
|
3885 + | fn from(variant: crate::error::ServiceUnavailableError) -> crate::error::OutputStreamError {
|
3886 + | /* ServerOperationErrorGenerator.kt:112 */
|
3887 + | Self::ServiceUnavailableError(variant)
|
3888 + | /* ServerOperationErrorGenerator.kt:111 */
|
3889 + | }
|
3890 + | /* ServerOperationErrorGenerator.kt:110 */
|
3891 + | }
|
3892 + | /* ServerOperationErrorGenerator.kt:110 */
|
3893 + | impl ::std::convert::From<crate::error::ErrorEvent> for crate::error::OutputStreamError {
|
3894 + | /* ServerOperationErrorGenerator.kt:111 */
|
3895 + | fn from(variant: crate::error::ErrorEvent) -> crate::error::OutputStreamError {
|
3896 + | /* ServerOperationErrorGenerator.kt:112 */
|
3897 + | Self::ErrorEvent(variant)
|
3898 + | /* ServerOperationErrorGenerator.kt:111 */
|
3899 + | }
|
3900 + | /* ServerOperationErrorGenerator.kt:110 */
|
3901 + | }
|
3902 + |
|
3903 + | /* ServerOperationErrorGenerator.kt:63 */
|
3904 + | /// Error type for the `DuplexStream` operation.
|
3905 + | /* ServerOperationErrorGenerator.kt:64 */
|
3906 + | /// Each variant represents an error that can occur for the `DuplexStream` operation.
|
3907 + | /* RustType.kt:534 */
|
3908 + | #[derive(::std::fmt::Debug)]
|
3909 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum DuplexStreamError {
|
3910 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
3911 + | /* ServerOperationErrorGenerator.kt:71 */
|
3912 + | ValidationException(crate::error::ValidationException),
|
3913 + | /* ServerOperationErrorGenerator.kt:68 */
|
3914 + | #[allow(missing_docs)] // documentation missing in model
|
3915 + | /* ServerOperationErrorGenerator.kt:71 */
|
3916 + | ErrorEvent(crate::error::ErrorEvent),
|
3917 + | /* ServerOperationErrorGenerator.kt:66 */
|
3918 + | }
|
3919 + | /* ServerOperationErrorGenerator.kt:75 */
|
3920 + | impl ::std::fmt::Display for DuplexStreamError {
|
3921 + | /* ServerOperationErrorGenerator.kt:76 */
|
3922 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3923 + | /* ServerOperationErrorGenerator.kt:139 */
|
3924 + | match &self {
|
3925 + | /* ServerOperationErrorGenerator.kt:142 */
|
3926 + | DuplexStreamError::ValidationException(_inner) =>
|
3927 + | /* ServerOperationErrorGenerator.kt:78 */
|
3928 + | {
|
3929 + | _inner.fmt(f)
|
3930 + | }
|
3931 + | ,
|
3932 + | /* ServerOperationErrorGenerator.kt:142 */
|
3933 + | DuplexStreamError::ErrorEvent(_inner) =>
|
3934 + | /* ServerOperationErrorGenerator.kt:78 */
|
3935 + | {
|
3936 + | _inner.fmt(f)
|
3937 + | }
|
3938 + | /* ServerOperationErrorGenerator.kt:139 */
|
3939 + | }
|
3940 + | /* ServerOperationErrorGenerator.kt:76 */
|
3941 + | }
|
3942 + | /* ServerOperationErrorGenerator.kt:75 */
|
3943 + | }
|
3944 + | /* ServerOperationErrorGenerator.kt:83 */
|
3945 + | impl DuplexStreamError {
|
3946 + | /* ServerOperationErrorGenerator.kt:87 */
|
3947 + | /// Returns `true` if the error kind is `DuplexStreamError::ValidationException`.
|
3948 + | /* ServerOperationErrorGenerator.kt:88 */
|
3949 + | pub fn is_validation_exception(&self) -> bool {
|
3950 + | /* ServerOperationErrorGenerator.kt:89 */
|
3951 + | matches!(&self, DuplexStreamError::ValidationException(_))
|
3952 + | /* ServerOperationErrorGenerator.kt:88 */
|
3953 + | }
|
3954 + | /* ServerOperationErrorGenerator.kt:87 */
|
3955 + | /// Returns `true` if the error kind is `DuplexStreamError::ErrorEvent`.
|
3956 + | /* ServerOperationErrorGenerator.kt:88 */
|
3957 + | pub fn is_error_event(&self) -> bool {
|
3958 + | /* ServerOperationErrorGenerator.kt:89 */
|
3959 + | matches!(&self, DuplexStreamError::ErrorEvent(_))
|
3960 + | /* ServerOperationErrorGenerator.kt:88 */
|
3961 + | }
|
3962 + | /* ServerOperationErrorGenerator.kt:92 */
|
3963 + | /// Returns the error name string by matching the correct variant.
|
3964 + | /* ServerOperationErrorGenerator.kt:93 */
|
3965 + | pub fn name(&self) -> &'static str {
|
3966 + | /* ServerOperationErrorGenerator.kt:139 */
|
3967 + | match &self {
|
3968 + | /* ServerOperationErrorGenerator.kt:142 */
|
3969 + | DuplexStreamError::ValidationException(_inner) =>
|
3970 + | /* ServerOperationErrorGenerator.kt:95 */
|
3971 + | {
|
3972 + | _inner.name()
|
3973 + | }
|
3974 + | ,
|
3975 + | /* ServerOperationErrorGenerator.kt:142 */
|
3976 + | DuplexStreamError::ErrorEvent(_inner) =>
|
3977 + | /* ServerOperationErrorGenerator.kt:95 */
|
3978 + | {
|
3979 + | _inner.name()
|
3980 + | }
|
3981 + | /* ServerOperationErrorGenerator.kt:139 */
|
3982 + | }
|
3983 + | /* ServerOperationErrorGenerator.kt:93 */
|
3984 + | }
|
3985 + | /* ServerOperationErrorGenerator.kt:83 */
|
3986 + | }
|
3987 + | /* ServerOperationErrorGenerator.kt:100 */
|
3988 + | impl ::std::error::Error for DuplexStreamError {
|
3989 + | /* ServerOperationErrorGenerator.kt:101 */
|
3990 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3991 + | /* ServerOperationErrorGenerator.kt:139 */
|
3992 + | match &self {
|
3993 + | /* ServerOperationErrorGenerator.kt:142 */
|
3994 + | DuplexStreamError::ValidationException(_inner) =>
|
3995 + | /* ServerOperationErrorGenerator.kt:103 */
|
3996 + | {
|
3997 + | Some(_inner)
|
3998 + | }
|
3999 + | ,
|
4000 + | /* ServerOperationErrorGenerator.kt:142 */
|
4001 + | DuplexStreamError::ErrorEvent(_inner) =>
|
4002 + | /* ServerOperationErrorGenerator.kt:103 */
|
4003 + | {
|
4004 + | Some(_inner)
|
4005 + | }
|
4006 + | /* ServerOperationErrorGenerator.kt:139 */
|
4007 + | }
|
4008 + | /* ServerOperationErrorGenerator.kt:101 */
|
4009 + | }
|
4010 + | /* ServerOperationErrorGenerator.kt:100 */
|
4011 + | }
|
4012 + | /* ServerOperationErrorGenerator.kt:110 */
|
4013 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::DuplexStreamError {
|
4014 + | /* ServerOperationErrorGenerator.kt:111 */
|
4015 + | fn from(variant: crate::error::ValidationException) -> crate::error::DuplexStreamError {
|
4016 + | /* ServerOperationErrorGenerator.kt:112 */
|
4017 + | Self::ValidationException(variant)
|
4018 + | /* ServerOperationErrorGenerator.kt:111 */
|
4019 + | }
|
4020 + | /* ServerOperationErrorGenerator.kt:110 */
|
4021 + | }
|
4022 + | /* ServerOperationErrorGenerator.kt:110 */
|
4023 + | impl ::std::convert::From<crate::error::ErrorEvent> for crate::error::DuplexStreamError {
|
4024 + | /* ServerOperationErrorGenerator.kt:111 */
|
4025 + | fn from(variant: crate::error::ErrorEvent) -> crate::error::DuplexStreamError {
|
4026 + | /* ServerOperationErrorGenerator.kt:112 */
|
4027 + | Self::ErrorEvent(variant)
|
4028 + | /* ServerOperationErrorGenerator.kt:111 */
|
4029 + | }
|
4030 + | /* ServerOperationErrorGenerator.kt:110 */
|
4031 + | }
|
4032 + |
|
4033 + | /* ServerOperationErrorGenerator.kt:63 */
|
4034 + | /// Error type for the `InputStreamWithInitialRequest` operation.
|
4035 + | /* ServerOperationErrorGenerator.kt:64 */
|
4036 + | /// Each variant represents an error that can occur for the `InputStreamWithInitialRequest` operation.
|
4037 + | /* RustType.kt:534 */
|
4038 + | #[derive(::std::fmt::Debug)]
|
4039 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum InputStreamWithInitialRequestError {
|
4040 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
4041 + | /* ServerOperationErrorGenerator.kt:71 */
|
4042 + | ValidationException(crate::error::ValidationException),
|
4043 + | /* ServerOperationErrorGenerator.kt:68 */
|
4044 + | #[allow(missing_docs)] // documentation missing in model
|
4045 + | /* ServerOperationErrorGenerator.kt:71 */
|
4046 + | ErrorEvent(crate::error::ErrorEvent),
|
4047 + | /* ServerOperationErrorGenerator.kt:66 */
|
4048 + | }
|
4049 + | /* ServerOperationErrorGenerator.kt:75 */
|
4050 + | impl ::std::fmt::Display for InputStreamWithInitialRequestError {
|
4051 + | /* ServerOperationErrorGenerator.kt:76 */
|
4052 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4053 + | /* ServerOperationErrorGenerator.kt:139 */
|
4054 + | match &self {
|
4055 + | /* ServerOperationErrorGenerator.kt:142 */
|
4056 + | InputStreamWithInitialRequestError::ValidationException(_inner) =>
|
4057 + | /* ServerOperationErrorGenerator.kt:78 */
|
4058 + | {
|
4059 + | _inner.fmt(f)
|
4060 + | }
|
4061 + | ,
|
4062 + | /* ServerOperationErrorGenerator.kt:142 */
|
4063 + | InputStreamWithInitialRequestError::ErrorEvent(_inner) =>
|
4064 + | /* ServerOperationErrorGenerator.kt:78 */
|
4065 + | {
|
4066 + | _inner.fmt(f)
|
4067 + | }
|
4068 + | /* ServerOperationErrorGenerator.kt:139 */
|
4069 + | }
|
4070 + | /* ServerOperationErrorGenerator.kt:76 */
|
4071 + | }
|
4072 + | /* ServerOperationErrorGenerator.kt:75 */
|
4073 + | }
|
4074 + | /* ServerOperationErrorGenerator.kt:83 */
|
4075 + | impl InputStreamWithInitialRequestError {
|
4076 + | /* ServerOperationErrorGenerator.kt:87 */
|
4077 + | /// Returns `true` if the error kind is `InputStreamWithInitialRequestError::ValidationException`.
|
4078 + | /* ServerOperationErrorGenerator.kt:88 */
|
4079 + | pub fn is_validation_exception(&self) -> bool {
|
4080 + | /* ServerOperationErrorGenerator.kt:89 */
|
4081 + | matches!(
|
4082 + | &self,
|
4083 + | InputStreamWithInitialRequestError::ValidationException(_)
|
4084 + | )
|
4085 + | /* ServerOperationErrorGenerator.kt:88 */
|
4086 + | }
|
4087 + | /* ServerOperationErrorGenerator.kt:87 */
|
4088 + | /// Returns `true` if the error kind is `InputStreamWithInitialRequestError::ErrorEvent`.
|
4089 + | /* ServerOperationErrorGenerator.kt:88 */
|
4090 + | pub fn is_error_event(&self) -> bool {
|
4091 + | /* ServerOperationErrorGenerator.kt:89 */
|
4092 + | matches!(&self, InputStreamWithInitialRequestError::ErrorEvent(_))
|
4093 + | /* ServerOperationErrorGenerator.kt:88 */
|
4094 + | }
|
4095 + | /* ServerOperationErrorGenerator.kt:92 */
|
4096 + | /// Returns the error name string by matching the correct variant.
|
4097 + | /* ServerOperationErrorGenerator.kt:93 */
|
4098 + | pub fn name(&self) -> &'static str {
|
4099 + | /* ServerOperationErrorGenerator.kt:139 */
|
4100 + | match &self {
|
4101 + | /* ServerOperationErrorGenerator.kt:142 */
|
4102 + | InputStreamWithInitialRequestError::ValidationException(_inner) =>
|
4103 + | /* ServerOperationErrorGenerator.kt:95 */
|
4104 + | {
|
4105 + | _inner.name()
|
4106 + | }
|
4107 + | ,
|
4108 + | /* ServerOperationErrorGenerator.kt:142 */
|
4109 + | InputStreamWithInitialRequestError::ErrorEvent(_inner) =>
|
4110 + | /* ServerOperationErrorGenerator.kt:95 */
|
4111 + | {
|
4112 + | _inner.name()
|
4113 + | }
|
4114 + | /* ServerOperationErrorGenerator.kt:139 */
|
4115 + | }
|
4116 + | /* ServerOperationErrorGenerator.kt:93 */
|
4117 + | }
|
4118 + | /* ServerOperationErrorGenerator.kt:83 */
|
4119 + | }
|
4120 + | /* ServerOperationErrorGenerator.kt:100 */
|
4121 + | impl ::std::error::Error for InputStreamWithInitialRequestError {
|
4122 + | /* ServerOperationErrorGenerator.kt:101 */
|
4123 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
4124 + | /* ServerOperationErrorGenerator.kt:139 */
|
4125 + | match &self {
|
4126 + | /* ServerOperationErrorGenerator.kt:142 */
|
4127 + | InputStreamWithInitialRequestError::ValidationException(_inner) =>
|
4128 + | /* ServerOperationErrorGenerator.kt:103 */
|
4129 + | {
|
4130 + | Some(_inner)
|
4131 + | }
|
4132 + | ,
|
4133 + | /* ServerOperationErrorGenerator.kt:142 */
|
4134 + | InputStreamWithInitialRequestError::ErrorEvent(_inner) =>
|
4135 + | /* ServerOperationErrorGenerator.kt:103 */
|
4136 + | {
|
4137 + | Some(_inner)
|
4138 + | }
|
4139 + | /* ServerOperationErrorGenerator.kt:139 */
|
4140 + | }
|
4141 + | /* ServerOperationErrorGenerator.kt:101 */
|
4142 + | }
|
4143 + | /* ServerOperationErrorGenerator.kt:100 */
|
4144 + | }
|
4145 + | /* ServerOperationErrorGenerator.kt:110 */
|
4146 + | impl ::std::convert::From<crate::error::ValidationException>
|
4147 + | for crate::error::InputStreamWithInitialRequestError
|
4148 + | {
|
4149 + | /* ServerOperationErrorGenerator.kt:111 */
|
4150 + | fn from(
|
4151 + | variant: crate::error::ValidationException,
|
4152 + | ) -> crate::error::InputStreamWithInitialRequestError {
|
4153 + | /* ServerOperationErrorGenerator.kt:112 */
|
4154 + | Self::ValidationException(variant)
|
4155 + | /* ServerOperationErrorGenerator.kt:111 */
|
4156 + | }
|
4157 + | /* ServerOperationErrorGenerator.kt:110 */
|
4158 + | }
|
4159 + | /* ServerOperationErrorGenerator.kt:110 */
|
4160 + | impl ::std::convert::From<crate::error::ErrorEvent>
|
4161 + | for crate::error::InputStreamWithInitialRequestError
|
4162 + | {
|
4163 + | /* ServerOperationErrorGenerator.kt:111 */
|
4164 + | fn from(variant: crate::error::ErrorEvent) -> crate::error::InputStreamWithInitialRequestError {
|
4165 + | /* ServerOperationErrorGenerator.kt:112 */
|
4166 + | Self::ErrorEvent(variant)
|
4167 + | /* ServerOperationErrorGenerator.kt:111 */
|
4168 + | }
|
4169 + | /* ServerOperationErrorGenerator.kt:110 */
|
4170 + | }
|
4171 + |
|
4172 + | /* ServerOperationErrorGenerator.kt:63 */
|
4173 + | /// Error type for the `OutputStreamWithInitialResponse` operation.
|
4174 + | /* ServerOperationErrorGenerator.kt:64 */
|
4175 + | /// Each variant represents an error that can occur for the `OutputStreamWithInitialResponse` operation.
|
4176 + | /* RustType.kt:534 */
|
4177 + | #[derive(::std::fmt::Debug)]
|
4178 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum OutputStreamWithInitialResponseError {
|
4179 + | /* ServerOperationErrorGenerator.kt:68 */
|
4180 + | #[allow(missing_docs)] // documentation missing in model
|
4181 + | /* ServerOperationErrorGenerator.kt:71 */
|
4182 + | ErrorEvent(crate::error::ErrorEvent),
|
4183 + | /* ServerOperationErrorGenerator.kt:66 */
|
4184 + | }
|
4185 + | /* ServerOperationErrorGenerator.kt:75 */
|
4186 + | impl ::std::fmt::Display for OutputStreamWithInitialResponseError {
|
4187 + | /* ServerOperationErrorGenerator.kt:76 */
|
4188 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4189 + | /* ServerOperationErrorGenerator.kt:139 */
|
4190 + | match &self {
|
4191 + | /* ServerOperationErrorGenerator.kt:142 */
|
4192 + | OutputStreamWithInitialResponseError::ErrorEvent(_inner) =>
|
4193 + | /* ServerOperationErrorGenerator.kt:78 */
|
4194 + | {
|
4195 + | _inner.fmt(f)
|
4196 + | }
|
4197 + | /* ServerOperationErrorGenerator.kt:139 */
|
4198 + | }
|
4199 + | /* ServerOperationErrorGenerator.kt:76 */
|
4200 + | }
|
4201 + | /* ServerOperationErrorGenerator.kt:75 */
|
4202 + | }
|
4203 + | /* ServerOperationErrorGenerator.kt:83 */
|
4204 + | impl OutputStreamWithInitialResponseError {
|
4205 + | /* ServerOperationErrorGenerator.kt:87 */
|
4206 + | /// Returns `true` if the error kind is `OutputStreamWithInitialResponseError::ErrorEvent`.
|
4207 + | /* ServerOperationErrorGenerator.kt:88 */
|
4208 + | pub fn is_error_event(&self) -> bool {
|
4209 + | /* ServerOperationErrorGenerator.kt:89 */
|
4210 + | matches!(&self, OutputStreamWithInitialResponseError::ErrorEvent(_))
|
4211 + | /* ServerOperationErrorGenerator.kt:88 */
|
4212 + | }
|
4213 + | /* ServerOperationErrorGenerator.kt:92 */
|
4214 + | /// Returns the error name string by matching the correct variant.
|
4215 + | /* ServerOperationErrorGenerator.kt:93 */
|
4216 + | pub fn name(&self) -> &'static str {
|
4217 + | /* ServerOperationErrorGenerator.kt:139 */
|
4218 + | match &self {
|
4219 + | /* ServerOperationErrorGenerator.kt:142 */
|
4220 + | OutputStreamWithInitialResponseError::ErrorEvent(_inner) =>
|
4221 + | /* ServerOperationErrorGenerator.kt:95 */
|
4222 + | {
|
4223 + | _inner.name()
|
4224 + | }
|
4225 + | /* ServerOperationErrorGenerator.kt:139 */
|
4226 + | }
|
4227 + | /* ServerOperationErrorGenerator.kt:93 */
|
4228 + | }
|
4229 + | /* ServerOperationErrorGenerator.kt:83 */
|
4230 + | }
|
4231 + | /* ServerOperationErrorGenerator.kt:100 */
|
4232 + | impl ::std::error::Error for OutputStreamWithInitialResponseError {
|
4233 + | /* ServerOperationErrorGenerator.kt:101 */
|
4234 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
4235 + | /* ServerOperationErrorGenerator.kt:139 */
|
4236 + | match &self {
|
4237 + | /* ServerOperationErrorGenerator.kt:142 */
|
4238 + | OutputStreamWithInitialResponseError::ErrorEvent(_inner) =>
|
4239 + | /* ServerOperationErrorGenerator.kt:103 */
|
4240 + | {
|
4241 + | Some(_inner)
|
4242 + | }
|
4243 + | /* ServerOperationErrorGenerator.kt:139 */
|
4244 + | }
|
4245 + | /* ServerOperationErrorGenerator.kt:101 */
|
4246 + | }
|
4247 + | /* ServerOperationErrorGenerator.kt:100 */
|
4248 + | }
|
4249 + | /* ServerOperationErrorGenerator.kt:110 */
|
4250 + | impl ::std::convert::From<crate::error::ErrorEvent>
|
4251 + | for crate::error::OutputStreamWithInitialResponseError
|
4252 + | {
|
4253 + | /* ServerOperationErrorGenerator.kt:111 */
|
4254 + | fn from(
|
4255 + | variant: crate::error::ErrorEvent,
|
4256 + | ) -> crate::error::OutputStreamWithInitialResponseError {
|
4257 + | /* ServerOperationErrorGenerator.kt:112 */
|
4258 + | Self::ErrorEvent(variant)
|
4259 + | /* ServerOperationErrorGenerator.kt:111 */
|
4260 + | }
|
4261 + | /* ServerOperationErrorGenerator.kt:110 */
|
4262 + | }
|
4263 + |
|
4264 + | /* ServerOperationErrorGenerator.kt:63 */
|
4265 + | /// Error type for the `DuplexStreamWithInitialMessages` operation.
|
4266 + | /* ServerOperationErrorGenerator.kt:64 */
|
4267 + | /// Each variant represents an error that can occur for the `DuplexStreamWithInitialMessages` operation.
|
4268 + | /* RustType.kt:534 */
|
4269 + | #[derive(::std::fmt::Debug)]
|
4270 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum DuplexStreamWithInitialMessagesError {
|
4271 + | /* ServerOperationErrorGenerator.kt:68 */
|
4272 + | #[allow(missing_docs)] // documentation missing in model
|
4273 + | /* ServerOperationErrorGenerator.kt:71 */
|
4274 + | ServiceUnavailableError(crate::error::ServiceUnavailableError),
|
4275 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
4276 + | /* ServerOperationErrorGenerator.kt:71 */
|
4277 + | ValidationException(crate::error::ValidationException),
|
4278 + | /* ServerOperationErrorGenerator.kt:68 */
|
4279 + | #[allow(missing_docs)] // documentation missing in model
|
4280 + | /* ServerOperationErrorGenerator.kt:71 */
|
4281 + | ErrorEvent(crate::error::ErrorEvent),
|
4282 + | /* ServerOperationErrorGenerator.kt:66 */
|
4283 + | }
|
4284 + | /* ServerOperationErrorGenerator.kt:75 */
|
4285 + | impl ::std::fmt::Display for DuplexStreamWithInitialMessagesError {
|
4286 + | /* ServerOperationErrorGenerator.kt:76 */
|
4287 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4288 + | /* ServerOperationErrorGenerator.kt:139 */
|
4289 + | match &self {
|
4290 + | /* ServerOperationErrorGenerator.kt:142 */
|
4291 + | DuplexStreamWithInitialMessagesError::ServiceUnavailableError(_inner) =>
|
4292 + | /* ServerOperationErrorGenerator.kt:78 */
|
4293 + | {
|
4294 + | _inner.fmt(f)
|
4295 + | }
|
4296 + | ,
|
4297 + | /* ServerOperationErrorGenerator.kt:142 */
|
4298 + | DuplexStreamWithInitialMessagesError::ValidationException(_inner) =>
|
4299 + | /* ServerOperationErrorGenerator.kt:78 */
|
4300 + | {
|
4301 + | _inner.fmt(f)
|
4302 + | }
|
4303 + | ,
|
4304 + | /* ServerOperationErrorGenerator.kt:142 */
|
4305 + | DuplexStreamWithInitialMessagesError::ErrorEvent(_inner) =>
|
4306 + | /* ServerOperationErrorGenerator.kt:78 */
|
4307 + | {
|
4308 + | _inner.fmt(f)
|
4309 + | }
|
4310 + | /* ServerOperationErrorGenerator.kt:139 */
|
4311 + | }
|
4312 + | /* ServerOperationErrorGenerator.kt:76 */
|
4313 + | }
|
4314 + | /* ServerOperationErrorGenerator.kt:75 */
|
4315 + | }
|
4316 + | /* ServerOperationErrorGenerator.kt:83 */
|
4317 + | impl DuplexStreamWithInitialMessagesError {
|
4318 + | /* ServerOperationErrorGenerator.kt:87 */
|
4319 + | /// Returns `true` if the error kind is `DuplexStreamWithInitialMessagesError::ServiceUnavailableError`.
|
4320 + | /* ServerOperationErrorGenerator.kt:88 */
|
4321 + | pub fn is_service_unavailable_error(&self) -> bool {
|
4322 + | /* ServerOperationErrorGenerator.kt:89 */
|
4323 + | matches!(
|
4324 + | &self,
|
4325 + | DuplexStreamWithInitialMessagesError::ServiceUnavailableError(_)
|
4326 + | )
|
4327 + | /* ServerOperationErrorGenerator.kt:88 */
|
4328 + | }
|
4329 + | /* ServerOperationErrorGenerator.kt:87 */
|
4330 + | /// Returns `true` if the error kind is `DuplexStreamWithInitialMessagesError::ValidationException`.
|
4331 + | /* ServerOperationErrorGenerator.kt:88 */
|
4332 + | pub fn is_validation_exception(&self) -> bool {
|
4333 + | /* ServerOperationErrorGenerator.kt:89 */
|
4334 + | matches!(
|
4335 + | &self,
|
4336 + | DuplexStreamWithInitialMessagesError::ValidationException(_)
|
4337 + | )
|
4338 + | /* ServerOperationErrorGenerator.kt:88 */
|
4339 + | }
|
4340 + | /* ServerOperationErrorGenerator.kt:87 */
|
4341 + | /// Returns `true` if the error kind is `DuplexStreamWithInitialMessagesError::ErrorEvent`.
|
4342 + | /* ServerOperationErrorGenerator.kt:88 */
|
4343 + | pub fn is_error_event(&self) -> bool {
|
4344 + | /* ServerOperationErrorGenerator.kt:89 */
|
4345 + | matches!(&self, DuplexStreamWithInitialMessagesError::ErrorEvent(_))
|
4346 + | /* ServerOperationErrorGenerator.kt:88 */
|
4347 + | }
|
4348 + | /* ServerOperationErrorGenerator.kt:92 */
|
4349 + | /// Returns the error name string by matching the correct variant.
|
4350 + | /* ServerOperationErrorGenerator.kt:93 */
|
4351 + | pub fn name(&self) -> &'static str {
|
4352 + | /* ServerOperationErrorGenerator.kt:139 */
|
4353 + | match &self {
|
4354 + | /* ServerOperationErrorGenerator.kt:142 */
|
4355 + | DuplexStreamWithInitialMessagesError::ServiceUnavailableError(_inner) =>
|
4356 + | /* ServerOperationErrorGenerator.kt:95 */
|
4357 + | {
|
4358 + | _inner.name()
|
4359 + | }
|
4360 + | ,
|
4361 + | /* ServerOperationErrorGenerator.kt:142 */
|
4362 + | DuplexStreamWithInitialMessagesError::ValidationException(_inner) =>
|
4363 + | /* ServerOperationErrorGenerator.kt:95 */
|
4364 + | {
|
4365 + | _inner.name()
|
4366 + | }
|
4367 + | ,
|
4368 + | /* ServerOperationErrorGenerator.kt:142 */
|
4369 + | DuplexStreamWithInitialMessagesError::ErrorEvent(_inner) =>
|
4370 + | /* ServerOperationErrorGenerator.kt:95 */
|
4371 + | {
|
4372 + | _inner.name()
|
4373 + | }
|
4374 + | /* ServerOperationErrorGenerator.kt:139 */
|
4375 + | }
|
4376 + | /* ServerOperationErrorGenerator.kt:93 */
|
4377 + | }
|
4378 + | /* ServerOperationErrorGenerator.kt:83 */
|
4379 + | }
|
4380 + | /* ServerOperationErrorGenerator.kt:100 */
|
4381 + | impl ::std::error::Error for DuplexStreamWithInitialMessagesError {
|
4382 + | /* ServerOperationErrorGenerator.kt:101 */
|
4383 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
4384 + | /* ServerOperationErrorGenerator.kt:139 */
|
4385 + | match &self {
|
4386 + | /* ServerOperationErrorGenerator.kt:142 */
|
4387 + | DuplexStreamWithInitialMessagesError::ServiceUnavailableError(_inner) =>
|
4388 + | /* ServerOperationErrorGenerator.kt:103 */
|
4389 + | {
|
4390 + | Some(_inner)
|
4391 + | }
|
4392 + | ,
|
4393 + | /* ServerOperationErrorGenerator.kt:142 */
|
4394 + | DuplexStreamWithInitialMessagesError::ValidationException(_inner) =>
|
4395 + | /* ServerOperationErrorGenerator.kt:103 */
|
4396 + | {
|
4397 + | Some(_inner)
|
4398 + | }
|
4399 + | ,
|
4400 + | /* ServerOperationErrorGenerator.kt:142 */
|
4401 + | DuplexStreamWithInitialMessagesError::ErrorEvent(_inner) =>
|
4402 + | /* ServerOperationErrorGenerator.kt:103 */
|
4403 + | {
|
4404 + | Some(_inner)
|
4405 + | }
|
4406 + | /* ServerOperationErrorGenerator.kt:139 */
|
4407 + | }
|
4408 + | /* ServerOperationErrorGenerator.kt:101 */
|
4409 + | }
|
4410 + | /* ServerOperationErrorGenerator.kt:100 */
|
4411 + | }
|
4412 + | /* ServerOperationErrorGenerator.kt:110 */
|
4413 + | impl ::std::convert::From<crate::error::ServiceUnavailableError>
|
4414 + | for crate::error::DuplexStreamWithInitialMessagesError
|
4415 + | {
|
4416 + | /* ServerOperationErrorGenerator.kt:111 */
|
4417 + | fn from(
|
4418 + | variant: crate::error::ServiceUnavailableError,
|
4419 + | ) -> crate::error::DuplexStreamWithInitialMessagesError {
|
4420 + | /* ServerOperationErrorGenerator.kt:112 */
|
4421 + | Self::ServiceUnavailableError(variant)
|
4422 + | /* ServerOperationErrorGenerator.kt:111 */
|
4423 + | }
|
4424 + | /* ServerOperationErrorGenerator.kt:110 */
|
4425 + | }
|
4426 + | /* ServerOperationErrorGenerator.kt:110 */
|
4427 + | impl ::std::convert::From<crate::error::ValidationException>
|
4428 + | for crate::error::DuplexStreamWithInitialMessagesError
|
4429 + | {
|
4430 + | /* ServerOperationErrorGenerator.kt:111 */
|
4431 + | fn from(
|
4432 + | variant: crate::error::ValidationException,
|
4433 + | ) -> crate::error::DuplexStreamWithInitialMessagesError {
|
4434 + | /* ServerOperationErrorGenerator.kt:112 */
|
4435 + | Self::ValidationException(variant)
|
4436 + | /* ServerOperationErrorGenerator.kt:111 */
|
4437 + | }
|
4438 + | /* ServerOperationErrorGenerator.kt:110 */
|
4439 + | }
|
4440 + | /* ServerOperationErrorGenerator.kt:110 */
|
4441 + | impl ::std::convert::From<crate::error::ErrorEvent>
|
4442 + | for crate::error::DuplexStreamWithInitialMessagesError
|
4443 + | {
|
4444 + | /* ServerOperationErrorGenerator.kt:111 */
|
4445 + | fn from(
|
4446 + | variant: crate::error::ErrorEvent,
|
4447 + | ) -> crate::error::DuplexStreamWithInitialMessagesError {
|
4448 + | /* ServerOperationErrorGenerator.kt:112 */
|
4449 + | Self::ErrorEvent(variant)
|
4450 + | /* ServerOperationErrorGenerator.kt:111 */
|
4451 + | }
|
4452 + | /* ServerOperationErrorGenerator.kt:110 */
|
4453 + | }
|
4454 + |
|
4455 + | /* ServerOperationErrorGenerator.kt:63 */
|
4456 + | /// Error type for the `DuplexStreamWithDistinctStreams` operation.
|
4457 + | /* ServerOperationErrorGenerator.kt:64 */
|
4458 + | /// Each variant represents an error that can occur for the `DuplexStreamWithDistinctStreams` operation.
|
4459 + | /* RustType.kt:534 */
|
4460 + | #[derive(::std::fmt::Debug)]
|
4461 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum DuplexStreamWithDistinctStreamsError {
|
4462 + | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
4463 + | /* ServerOperationErrorGenerator.kt:71 */
|
4464 + | ValidationException(crate::error::ValidationException),
|
4465 + | /* ServerOperationErrorGenerator.kt:68 */
|
4466 + | #[allow(missing_docs)] // documentation missing in model
|
4467 + | /* ServerOperationErrorGenerator.kt:71 */
|
4468 + | ErrorEvent(crate::error::ErrorEvent),
|
4469 + | /* ServerOperationErrorGenerator.kt:66 */
|
4470 + | }
|
4471 + | /* ServerOperationErrorGenerator.kt:75 */
|
4472 + | impl ::std::fmt::Display for DuplexStreamWithDistinctStreamsError {
|
4473 + | /* ServerOperationErrorGenerator.kt:76 */
|
4474 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4475 + | /* ServerOperationErrorGenerator.kt:139 */
|
4476 + | match &self {
|
4477 + | /* ServerOperationErrorGenerator.kt:142 */
|
4478 + | DuplexStreamWithDistinctStreamsError::ValidationException(_inner) =>
|
4479 + | /* ServerOperationErrorGenerator.kt:78 */
|
4480 + | {
|
4481 + | _inner.fmt(f)
|
4482 + | }
|
4483 + | ,
|
4484 + | /* ServerOperationErrorGenerator.kt:142 */
|
4485 + | DuplexStreamWithDistinctStreamsError::ErrorEvent(_inner) =>
|
4486 + | /* ServerOperationErrorGenerator.kt:78 */
|
4487 + | {
|
4488 + | _inner.fmt(f)
|
4489 + | }
|
4490 + | /* ServerOperationErrorGenerator.kt:139 */
|
4491 + | }
|
4492 + | /* ServerOperationErrorGenerator.kt:76 */
|
4493 + | }
|
4494 + | /* ServerOperationErrorGenerator.kt:75 */
|
4495 + | }
|
4496 + | /* ServerOperationErrorGenerator.kt:83 */
|
4497 + | impl DuplexStreamWithDistinctStreamsError {
|
4498 + | /* ServerOperationErrorGenerator.kt:87 */
|
4499 + | /// Returns `true` if the error kind is `DuplexStreamWithDistinctStreamsError::ValidationException`.
|
4500 + | /* ServerOperationErrorGenerator.kt:88 */
|
4501 + | pub fn is_validation_exception(&self) -> bool {
|
4502 + | /* ServerOperationErrorGenerator.kt:89 */
|
4503 + | matches!(
|
4504 + | &self,
|
4505 + | DuplexStreamWithDistinctStreamsError::ValidationException(_)
|
4506 + | )
|
4507 + | /* ServerOperationErrorGenerator.kt:88 */
|
4508 + | }
|
4509 + | /* ServerOperationErrorGenerator.kt:87 */
|
4510 + | /// Returns `true` if the error kind is `DuplexStreamWithDistinctStreamsError::ErrorEvent`.
|
4511 + | /* ServerOperationErrorGenerator.kt:88 */
|
4512 + | pub fn is_error_event(&self) -> bool {
|
4513 + | /* ServerOperationErrorGenerator.kt:89 */
|
4514 + | matches!(&self, DuplexStreamWithDistinctStreamsError::ErrorEvent(_))
|
4515 + | /* ServerOperationErrorGenerator.kt:88 */
|
4516 + | }
|
4517 + | /* ServerOperationErrorGenerator.kt:92 */
|
4518 + | /// Returns the error name string by matching the correct variant.
|
4519 + | /* ServerOperationErrorGenerator.kt:93 */
|
4520 + | pub fn name(&self) -> &'static str {
|
4521 + | /* ServerOperationErrorGenerator.kt:139 */
|
4522 + | match &self {
|
4523 + | /* ServerOperationErrorGenerator.kt:142 */
|
4524 + | DuplexStreamWithDistinctStreamsError::ValidationException(_inner) =>
|
4525 + | /* ServerOperationErrorGenerator.kt:95 */
|
4526 + | {
|
4527 + | _inner.name()
|
4528 + | }
|
4529 + | ,
|
4530 + | /* ServerOperationErrorGenerator.kt:142 */
|
4531 + | DuplexStreamWithDistinctStreamsError::ErrorEvent(_inner) =>
|
4532 + | /* ServerOperationErrorGenerator.kt:95 */
|
4533 + | {
|
4534 + | _inner.name()
|
4535 + | }
|
4536 + | /* ServerOperationErrorGenerator.kt:139 */
|
4537 + | }
|
4538 + | /* ServerOperationErrorGenerator.kt:93 */
|
4539 + | }
|
4540 + | /* ServerOperationErrorGenerator.kt:83 */
|
4541 + | }
|
4542 + | /* ServerOperationErrorGenerator.kt:100 */
|
4543 + | impl ::std::error::Error for DuplexStreamWithDistinctStreamsError {
|
4544 + | /* ServerOperationErrorGenerator.kt:101 */
|
4545 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
4546 + | /* ServerOperationErrorGenerator.kt:139 */
|
4547 + | match &self {
|
4548 + | /* ServerOperationErrorGenerator.kt:142 */
|
4549 + | DuplexStreamWithDistinctStreamsError::ValidationException(_inner) =>
|
4550 + | /* ServerOperationErrorGenerator.kt:103 */
|
4551 + | {
|
4552 + | Some(_inner)
|
4553 + | }
|
4554 + | ,
|
4555 + | /* ServerOperationErrorGenerator.kt:142 */
|
4556 + | DuplexStreamWithDistinctStreamsError::ErrorEvent(_inner) =>
|
4557 + | /* ServerOperationErrorGenerator.kt:103 */
|
4558 + | {
|
4559 + | Some(_inner)
|
4560 + | }
|
4561 + | /* ServerOperationErrorGenerator.kt:139 */
|
4562 + | }
|
4563 + | /* ServerOperationErrorGenerator.kt:101 */
|
4564 + | }
|
4565 + | /* ServerOperationErrorGenerator.kt:100 */
|
4566 + | }
|
4567 + | /* ServerOperationErrorGenerator.kt:110 */
|
4568 + | impl ::std::convert::From<crate::error::ValidationException>
|
4569 + | for crate::error::DuplexStreamWithDistinctStreamsError
|
4570 + | {
|
4571 + | /* ServerOperationErrorGenerator.kt:111 */
|
4572 + | fn from(
|
4573 + | variant: crate::error::ValidationException,
|
4574 + | ) -> crate::error::DuplexStreamWithDistinctStreamsError {
|
4575 + | /* ServerOperationErrorGenerator.kt:112 */
|
4576 + | Self::ValidationException(variant)
|
4577 + | /* ServerOperationErrorGenerator.kt:111 */
|
4578 + | }
|
4579 + | /* ServerOperationErrorGenerator.kt:110 */
|
4580 + | }
|
4581 + | /* ServerOperationErrorGenerator.kt:110 */
|
4582 + | impl ::std::convert::From<crate::error::ErrorEvent>
|
4583 + | for crate::error::DuplexStreamWithDistinctStreamsError
|
4584 + | {
|
4585 + | /* ServerOperationErrorGenerator.kt:111 */
|
4586 + | fn from(
|
4587 + | variant: crate::error::ErrorEvent,
|
4588 + | ) -> crate::error::DuplexStreamWithDistinctStreamsError {
|
4589 + | /* ServerOperationErrorGenerator.kt:112 */
|
4590 + | Self::ErrorEvent(variant)
|
4591 + | /* ServerOperationErrorGenerator.kt:111 */
|
4592 + | }
|
4593 + | /* ServerOperationErrorGenerator.kt:110 */
|
4594 + | }
|
4595 + |
|
4596 + | /// /* StructureGenerator.kt:197 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
4597 + | /* RustType.kt:534 */
|
4598 + | #[derive(
|
4599 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4600 + | )]
|
4601 + | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
4602 + | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
4603 + | pub message: ::std::string::String,
|
4604 + | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
4605 + | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
4606 + | /* StructureGenerator.kt:201 */
|
4607 + | }
|
4608 + | /* StructureGenerator.kt:135 */
|
4609 + | impl ValidationException {
|
4610 + | /// /* StructureGenerator.kt:231 */A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
4611 + | /* StructureGenerator.kt:166 */
|
4612 + | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
4613 + | /* StructureGenerator.kt:169 */
|
4614 + | self.field_list.as_deref()
|
4615 + | /* StructureGenerator.kt:166 */
|
4616 + | }
|
4617 + | /* StructureGenerator.kt:135 */
|
4618 + | }
|
4619 + | /* ErrorImplGenerator.kt:99 */
|
4620 + | impl ValidationException {
|
4621 + | /* ErrorImplGenerator.kt:128 */
|
4622 + | /// Returns the error message.
|
4623 + | pub fn message(&self) -> &str {
|
4624 + | &self.message
|
4625 + | }
|
4626 + | /* ErrorImplGenerator.kt:141 */
|
4627 + | #[doc(hidden)]
|
4628 + | /// Returns the error name.
|
4629 + | pub fn name(&self) -> &'static str {
|
4630 + | "ValidationException"
|
4631 + | }
|
4632 + | /* ErrorImplGenerator.kt:99 */
|
4633 + | }
|
4634 + | /* ErrorImplGenerator.kt:153 */
|
4635 + | impl ::std::fmt::Display for ValidationException {
|
4636 + | /* ErrorImplGenerator.kt:154 */
|
4637 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4638 + | /* ErrorImplGenerator.kt:161 */
|
4639 + | ::std::write!(f, "ValidationException")?;
|
4640 + | /* ErrorImplGenerator.kt:166 */
|
4641 + | {
|
4642 + | /* ErrorImplGenerator.kt:169 */
|
4643 + | ::std::write!(f, ": {}", &self.message)?;
|
4644 + | /* ErrorImplGenerator.kt:166 */
|
4645 + | }
|
4646 + | /* ErrorImplGenerator.kt:176 */
|
4647 + | Ok(())
|
4648 + | /* ErrorImplGenerator.kt:154 */
|
4649 + | }
|
4650 + | /* ErrorImplGenerator.kt:153 */
|
4651 + | }
|
4652 + | /* ErrorImplGenerator.kt:180 */
|
4653 + | impl ::std::error::Error for ValidationException {}
|
4654 + | /* ServerCodegenVisitor.kt:356 */
|
4655 + | impl ValidationException {
|
4656 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
4657 + | /* ServerBuilderGenerator.kt:295 */
|
4658 + | pub fn builder() -> crate::error::validation_exception::Builder {
|
4659 + | /* ServerBuilderGenerator.kt:296 */
|
4660 + | crate::error::validation_exception::Builder::default()
|
4661 + | /* ServerBuilderGenerator.kt:295 */
|
4662 + | }
|
4663 + | /* ServerCodegenVisitor.kt:356 */
|
4664 + | }
|
4665 + |
|
4666 + | /// /* StructureGenerator.kt:197 */This error is thrown when an invalid greeting value is provided.
|
4667 + | /* RustType.kt:534 */
|
4668 + | #[derive(
|
4669 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4670 + | )]
|
4671 + | pub /* StructureGenerator.kt:201 */ struct InvalidGreeting {
|
4672 + | /* StructureGenerator.kt:231 */
|
4673 + | #[allow(missing_docs)] // documentation missing in model
|
4674 + | pub message: ::std::option::Option<::std::string::String>,
|
4675 + | /* StructureGenerator.kt:201 */
|
4676 + | }
|
4677 + | /* ErrorImplGenerator.kt:99 */
|
4678 + | impl InvalidGreeting {
|
4679 + | /* ErrorImplGenerator.kt:128 */
|
4680 + | /// Returns the error message.
|
4681 + | pub fn message(&self) -> ::std::option::Option<&str> {
|
4682 + | self.message.as_deref()
|
4683 + | }
|
4684 + | /* ErrorImplGenerator.kt:141 */
|
4685 + | #[doc(hidden)]
|
4686 + | /// Returns the error name.
|
4687 + | pub fn name(&self) -> &'static str {
|
4688 + | "InvalidGreeting"
|
4689 + | }
|
4690 + | /* ErrorImplGenerator.kt:99 */
|
4691 + | }
|
4692 + | /* ErrorImplGenerator.kt:153 */
|
4693 + | impl ::std::fmt::Display for InvalidGreeting {
|
4694 + | /* ErrorImplGenerator.kt:154 */
|
4695 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4696 + | /* ErrorImplGenerator.kt:161 */
|
4697 + | ::std::write!(f, "InvalidGreeting")?;
|
4698 + | /* ErrorImplGenerator.kt:166 */
|
4699 + | if let ::std::option::Option::Some(inner_1) = &self.message {
|
4700 + | /* ErrorImplGenerator.kt:166 */
|
4701 + | {
|
4702 + | /* ErrorImplGenerator.kt:171 */
|
4703 + | ::std::write!(f, ": {inner_1}")?;
|
4704 + | /* ErrorImplGenerator.kt:166 */
|
4705 + | }
|
4706 + | /* ErrorImplGenerator.kt:166 */
|
4707 + | }
|
4708 + | /* ErrorImplGenerator.kt:176 */
|
4709 + | Ok(())
|
4710 + | /* ErrorImplGenerator.kt:154 */
|
4711 + | }
|
4712 + | /* ErrorImplGenerator.kt:153 */
|
4713 + | }
|
4714 + | /* ErrorImplGenerator.kt:180 */
|
4715 + | impl ::std::error::Error for InvalidGreeting {}
|
4716 + | /* ServerCodegenVisitor.kt:356 */
|
4717 + | impl InvalidGreeting {
|
4718 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
|
4719 + | /* ServerBuilderGenerator.kt:295 */
|
4720 + | pub fn builder() -> crate::error::invalid_greeting::Builder {
|
4721 + | /* ServerBuilderGenerator.kt:296 */
|
4722 + | crate::error::invalid_greeting::Builder::default()
|
4723 + | /* ServerBuilderGenerator.kt:295 */
|
4724 + | }
|
4725 + | /* ServerCodegenVisitor.kt:356 */
|
4726 + | }
|
4727 + |
|
4728 + | /// /* StructureGenerator.kt:197 */This error is thrown when a request is invalid.
|
4729 + | /* RustType.kt:534 */
|
4730 + | #[derive(
|
4731 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4732 + | )]
|
4733 + | pub /* StructureGenerator.kt:201 */ struct ComplexError {
|
4734 + | /* StructureGenerator.kt:231 */
|
4735 + | #[allow(missing_docs)] // documentation missing in model
|
4736 + | pub header: ::std::option::Option<::std::string::String>,
|
4737 + | /* StructureGenerator.kt:231 */
|
4738 + | #[allow(missing_docs)] // documentation missing in model
|
4739 + | pub top_level: ::std::option::Option<::std::string::String>,
|
4740 + | /* StructureGenerator.kt:231 */
|
4741 + | #[allow(missing_docs)] // documentation missing in model
|
4742 + | pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
|
4743 + | /* StructureGenerator.kt:201 */
|
4744 + | }
|
4745 + | /* StructureGenerator.kt:135 */
|
4746 + | impl ComplexError {
|
4747 + | /* StructureGenerator.kt:231 */
|
4748 + | #[allow(missing_docs)] // documentation missing in model
|
4749 + | /* StructureGenerator.kt:166 */
|
4750 + | pub fn header(&self) -> ::std::option::Option<&str> {
|
4751 + | /* StructureGenerator.kt:169 */
|
4752 + | self.header.as_deref()
|
4753 + | /* StructureGenerator.kt:166 */
|
4754 + | }
|
4755 + | /* StructureGenerator.kt:231 */
|
4756 + | #[allow(missing_docs)] // documentation missing in model
|
4757 + | /* StructureGenerator.kt:166 */
|
4758 + | pub fn top_level(&self) -> ::std::option::Option<&str> {
|
4759 + | /* StructureGenerator.kt:169 */
|
4760 + | self.top_level.as_deref()
|
4761 + | /* StructureGenerator.kt:166 */
|
4762 + | }
|
4763 + | /* StructureGenerator.kt:231 */
|
4764 + | #[allow(missing_docs)] // documentation missing in model
|
4765 + | /* StructureGenerator.kt:166 */
|
4766 + | pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
|
4767 + | /* StructureGenerator.kt:170 */
|
4768 + | self.nested.as_ref()
|
4769 + | /* StructureGenerator.kt:166 */
|
4770 + | }
|
4771 + | /* StructureGenerator.kt:135 */
|
4772 + | }
|
4773 + | /* ErrorImplGenerator.kt:99 */
|
4774 + | impl ComplexError {
|
4775 + | /* ErrorImplGenerator.kt:141 */
|
4776 + | #[doc(hidden)]
|
4777 + | /// Returns the error name.
|
4778 + | pub fn name(&self) -> &'static str {
|
4779 + | "ComplexError"
|
4780 + | }
|
4781 + | /* ErrorImplGenerator.kt:99 */
|
4782 + | }
|
4783 + | /* ErrorImplGenerator.kt:153 */
|
4784 + | impl ::std::fmt::Display for ComplexError {
|
4785 + | /* ErrorImplGenerator.kt:154 */
|
4786 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4787 + | /* ErrorImplGenerator.kt:161 */
|
4788 + | ::std::write!(f, "ComplexError")?;
|
4789 + | /* ErrorImplGenerator.kt:176 */
|
4790 + | Ok(())
|
4791 + | /* ErrorImplGenerator.kt:154 */
|
4792 + | }
|
4793 + | /* ErrorImplGenerator.kt:153 */
|
4794 + | }
|
4795 + | /* ErrorImplGenerator.kt:180 */
|
4796 + | impl ::std::error::Error for ComplexError {}
|
4797 + | /* ServerCodegenVisitor.kt:356 */
|
4798 + | impl ComplexError {
|
4799 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
|
4800 + | /* ServerBuilderGenerator.kt:295 */
|
4801 + | pub fn builder() -> crate::error::complex_error::Builder {
|
4802 + | /* ServerBuilderGenerator.kt:296 */
|
4803 + | crate::error::complex_error::Builder::default()
|
4804 + | /* ServerBuilderGenerator.kt:295 */
|
4805 + | }
|
4806 + | /* ServerCodegenVisitor.kt:356 */
|
4807 + | }
|
4808 + |
|
4809 + | /// /* StructureGenerator.kt:197 */This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
|
4810 + | /* RustType.kt:534 */
|
4811 + | #[derive(
|
4812 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4813 + | )]
|
4814 + | pub /* StructureGenerator.kt:201 */ struct FooError {/* StructureGenerator.kt:201 */}
|
4815 + | /* ErrorImplGenerator.kt:99 */
|
4816 + | impl FooError {
|
4817 + | /* ErrorImplGenerator.kt:141 */
|
4818 + | #[doc(hidden)]
|
4819 + | /// Returns the error name.
|
4820 + | pub fn name(&self) -> &'static str {
|
4821 + | "FooError"
|
4822 + | }
|
4823 + | /* ErrorImplGenerator.kt:99 */
|
4824 + | }
|
4825 + | /* ErrorImplGenerator.kt:153 */
|
4826 + | impl ::std::fmt::Display for FooError {
|
4827 + | /* ErrorImplGenerator.kt:154 */
|
4828 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4829 + | /* ErrorImplGenerator.kt:161 */
|
4830 + | ::std::write!(f, "FooError")?;
|
4831 + | /* ErrorImplGenerator.kt:176 */
|
4832 + | Ok(())
|
4833 + | /* ErrorImplGenerator.kt:154 */
|
4834 + | }
|
4835 + | /* ErrorImplGenerator.kt:153 */
|
4836 + | }
|
4837 + | /* ErrorImplGenerator.kt:180 */
|
4838 + | impl ::std::error::Error for FooError {}
|
4839 + | /* ServerCodegenVisitor.kt:356 */
|
4840 + | impl FooError {
|
4841 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
|
4842 + | /* ServerBuilderGenerator.kt:295 */
|
4843 + | pub fn builder() -> crate::error::foo_error::Builder {
|
4844 + | /* ServerBuilderGenerator.kt:296 */
|
4845 + | crate::error::foo_error::Builder::default()
|
4846 + | /* ServerBuilderGenerator.kt:295 */
|
4847 + | }
|
4848 + | /* ServerCodegenVisitor.kt:356 */
|
4849 + | }
|
4850 + |
|
4851 + | /* StructureGenerator.kt:197 */
|
4852 + | #[allow(missing_docs)] // documentation missing in model
|
4853 + | /* RustType.kt:534 */
|
4854 + | #[derive(
|
4855 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4856 + | )]
|
4857 + | pub /* StructureGenerator.kt:201 */ struct ErrorEvent {
|
4858 + | /* StructureGenerator.kt:231 */
|
4859 + | #[allow(missing_docs)] // documentation missing in model
|
4860 + | pub message: ::std::option::Option<::std::string::String>,
|
4861 + | /* StructureGenerator.kt:201 */
|
4862 + | }
|
4863 + | /* ErrorImplGenerator.kt:99 */
|
4864 + | impl ErrorEvent {
|
4865 + | /* ErrorImplGenerator.kt:128 */
|
4866 + | /// Returns the error message.
|
4867 + | pub fn message(&self) -> ::std::option::Option<&str> {
|
4868 + | self.message.as_deref()
|
4869 + | }
|
4870 + | /* ErrorImplGenerator.kt:141 */
|
4871 + | #[doc(hidden)]
|
4872 + | /// Returns the error name.
|
4873 + | pub fn name(&self) -> &'static str {
|
4874 + | "ErrorEvent"
|
4875 + | }
|
4876 + | /* ErrorImplGenerator.kt:99 */
|
4877 + | }
|
4878 + | /* ErrorImplGenerator.kt:153 */
|
4879 + | impl ::std::fmt::Display for ErrorEvent {
|
4880 + | /* ErrorImplGenerator.kt:154 */
|
4881 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4882 + | /* ErrorImplGenerator.kt:161 */
|
4883 + | ::std::write!(f, "ErrorEvent")?;
|
4884 + | /* ErrorImplGenerator.kt:166 */
|
4885 + | if let ::std::option::Option::Some(inner_2) = &self.message {
|
4886 + | /* ErrorImplGenerator.kt:166 */
|
4887 + | {
|
4888 + | /* ErrorImplGenerator.kt:171 */
|
4889 + | ::std::write!(f, ": {inner_2}")?;
|
4890 + | /* ErrorImplGenerator.kt:166 */
|
4891 + | }
|
4892 + | /* ErrorImplGenerator.kt:166 */
|
4893 + | }
|
4894 + | /* ErrorImplGenerator.kt:176 */
|
4895 + | Ok(())
|
4896 + | /* ErrorImplGenerator.kt:154 */
|
3736 4897 | }
|
3737 - | /* ServerOperationErrorGenerator.kt:75 */
|
4898 + | /* ErrorImplGenerator.kt:153 */
|
3738 4899 | }
|
3739 - | /* ServerOperationErrorGenerator.kt:83 */
|
3740 - | impl HttpRequestWithLabelsError {
|
3741 - | /* ServerOperationErrorGenerator.kt:87 */
|
3742 - | /// Returns `true` if the error kind is `HttpRequestWithLabelsError::ValidationException`.
|
3743 - | /* ServerOperationErrorGenerator.kt:88 */
|
3744 - | pub fn is_validation_exception(&self) -> bool {
|
3745 - | /* ServerOperationErrorGenerator.kt:89 */
|
3746 - | matches!(&self, HttpRequestWithLabelsError::ValidationException(_))
|
3747 - | /* ServerOperationErrorGenerator.kt:88 */
|
4900 + | /* ErrorImplGenerator.kt:180 */
|
4901 + | impl ::std::error::Error for ErrorEvent {}
|
4902 + | /* ServerCodegenVisitor.kt:356 */
|
4903 + | impl ErrorEvent {
|
4904 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ErrorEvent`](crate::error::ErrorEvent).
|
4905 + | /* ServerBuilderGenerator.kt:295 */
|
4906 + | pub fn builder() -> crate::error::error_event::Builder {
|
4907 + | /* ServerBuilderGenerator.kt:296 */
|
4908 + | crate::error::error_event::Builder::default()
|
4909 + | /* ServerBuilderGenerator.kt:295 */
|
3748 4910 | }
|
3749 - | /* ServerOperationErrorGenerator.kt:92 */
|
3750 - | /// Returns the error name string by matching the correct variant.
|
3751 - | /* ServerOperationErrorGenerator.kt:93 */
|
4911 + | /* ServerCodegenVisitor.kt:356 */
|
4912 + | }
|
4913 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4914 + | impl crate::constrained::Constrained for crate::error::ErrorEvent {
|
4915 + | type Unconstrained = crate::error::error_event::Builder;
|
4916 + | }
|
4917 + |
|
4918 + | /* StructureGenerator.kt:197 */
|
4919 + | #[allow(missing_docs)] // documentation missing in model
|
4920 + | /* RustType.kt:534 */
|
4921 + | #[derive(
|
4922 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4923 + | )]
|
4924 + | pub /* StructureGenerator.kt:201 */ struct ServiceUnavailableError {
|
4925 + | /* StructureGenerator.kt:231 */
|
4926 + | #[allow(missing_docs)] // documentation missing in model
|
4927 + | pub message: ::std::option::Option<::std::string::String>,
|
4928 + | /* StructureGenerator.kt:201 */
|
4929 + | }
|
4930 + | /* ErrorImplGenerator.kt:99 */
|
4931 + | impl ServiceUnavailableError {
|
4932 + | /* ErrorImplGenerator.kt:128 */
|
4933 + | /// Returns the error message.
|
4934 + | pub fn message(&self) -> ::std::option::Option<&str> {
|
4935 + | self.message.as_deref()
|
4936 + | }
|
4937 + | /* ErrorImplGenerator.kt:141 */
|
4938 + | #[doc(hidden)]
|
4939 + | /// Returns the error name.
|
3752 4940 | pub fn name(&self) -> &'static str {
|
3753 - | /* ServerOperationErrorGenerator.kt:139 */
|
3754 - | match &self {
|
3755 - | /* ServerOperationErrorGenerator.kt:142 */
|
3756 - | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
3757 - | /* ServerOperationErrorGenerator.kt:95 */
|
3758 - | {
|
3759 - | _inner.name()
|
3760 - | }
|
3761 - | /* ServerOperationErrorGenerator.kt:139 */
|
3762 - | }
|
3763 - | /* ServerOperationErrorGenerator.kt:93 */
|
4941 + | "ServiceUnavailableError"
|
3764 4942 | }
|
3765 - | /* ServerOperationErrorGenerator.kt:83 */
|
4943 + | /* ErrorImplGenerator.kt:99 */
|
3766 4944 | }
|
3767 - | /* ServerOperationErrorGenerator.kt:100 */
|
3768 - | impl ::std::error::Error for HttpRequestWithLabelsError {
|
3769 - | /* ServerOperationErrorGenerator.kt:101 */
|
3770 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3771 - | /* ServerOperationErrorGenerator.kt:139 */
|
3772 - | match &self {
|
3773 - | /* ServerOperationErrorGenerator.kt:142 */
|
3774 - | HttpRequestWithLabelsError::ValidationException(_inner) =>
|
3775 - | /* ServerOperationErrorGenerator.kt:103 */
|
4945 + | /* ErrorImplGenerator.kt:153 */
|
4946 + | impl ::std::fmt::Display for ServiceUnavailableError {
|
4947 + | /* ErrorImplGenerator.kt:154 */
|
4948 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4949 + | /* ErrorImplGenerator.kt:161 */
|
4950 + | ::std::write!(f, "ServiceUnavailableError")?;
|
4951 + | /* ErrorImplGenerator.kt:166 */
|
4952 + | if let ::std::option::Option::Some(inner_3) = &self.message {
|
4953 + | /* ErrorImplGenerator.kt:166 */
|
3776 4954 | {
|
3777 - | Some(_inner)
|
4955 + | /* ErrorImplGenerator.kt:171 */
|
4956 + | ::std::write!(f, ": {inner_3}")?;
|
4957 + | /* ErrorImplGenerator.kt:166 */
|
3778 4958 | }
|
3779 - | /* ServerOperationErrorGenerator.kt:139 */
|
4959 + | /* ErrorImplGenerator.kt:166 */
|
3780 4960 | }
|
3781 - | /* ServerOperationErrorGenerator.kt:101 */
|
4961 + | /* ErrorImplGenerator.kt:176 */
|
4962 + | Ok(())
|
4963 + | /* ErrorImplGenerator.kt:154 */
|
3782 4964 | }
|
3783 - | /* ServerOperationErrorGenerator.kt:100 */
|
4965 + | /* ErrorImplGenerator.kt:153 */
|
3784 4966 | }
|
3785 - | /* ServerOperationErrorGenerator.kt:110 */
|
3786 - | impl ::std::convert::From<crate::error::ValidationException>
|
3787 - | for crate::error::HttpRequestWithLabelsError
|
3788 - | {
|
3789 - | /* ServerOperationErrorGenerator.kt:111 */
|
3790 - | fn from(
|
3791 - | variant: crate::error::ValidationException,
|
3792 - | ) -> crate::error::HttpRequestWithLabelsError {
|
3793 - | /* ServerOperationErrorGenerator.kt:112 */
|
3794 - | Self::ValidationException(variant)
|
3795 - | /* ServerOperationErrorGenerator.kt:111 */
|
4967 + | /* ErrorImplGenerator.kt:180 */
|
4968 + | impl ::std::error::Error for ServiceUnavailableError {}
|
4969 + | /* ServerCodegenVisitor.kt:356 */
|
4970 + | impl ServiceUnavailableError {
|
4971 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ServiceUnavailableError`](crate::error::ServiceUnavailableError).
|
4972 + | /* ServerBuilderGenerator.kt:295 */
|
4973 + | pub fn builder() -> crate::error::service_unavailable_error::Builder {
|
4974 + | /* ServerBuilderGenerator.kt:296 */
|
4975 + | crate::error::service_unavailable_error::Builder::default()
|
4976 + | /* ServerBuilderGenerator.kt:295 */
|
3796 4977 | }
|
3797 - | /* ServerOperationErrorGenerator.kt:110 */
|
4978 + | /* ServerCodegenVisitor.kt:356 */
|
3798 4979 | }
|
3799 4980 |
|
3800 4981 | /* ServerOperationErrorGenerator.kt:63 */
|
3801 - | /// Error type for the `InputAndOutputWithHeaders` operation.
|
4982 + | /// Error type for the `EventStream` operation.
|
3802 4983 | /* ServerOperationErrorGenerator.kt:64 */
|
3803 - | /// Each variant represents an error that can occur for the `InputAndOutputWithHeaders` operation.
|
4984 + | /// Each variant represents an error that can occur for the `EventStream` operation.
|
3804 4985 | /* RustType.kt:534 */
|
3805 4986 | #[derive(::std::fmt::Debug)]
|
3806 - | pub /* ServerOperationErrorGenerator.kt:66 */ enum InputAndOutputWithHeadersError {
|
3807 - | /// /* ServerOperationErrorGenerator.kt:68 */A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
4987 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EventStreamError {
|
4988 + | /* ServerOperationErrorGenerator.kt:68 */
|
4989 + | #[allow(missing_docs)] // documentation missing in model
|
3808 4990 | /* ServerOperationErrorGenerator.kt:71 */
|
3809 - | ValidationException(crate::error::ValidationException),
|
4991 + | ErrorEvent(crate::error::ErrorEvent),
|
3810 4992 | /* ServerOperationErrorGenerator.kt:66 */
|
3811 4993 | }
|
3812 4994 | /* ServerOperationErrorGenerator.kt:75 */
|
3813 - | impl ::std::fmt::Display for InputAndOutputWithHeadersError {
|
4995 + | impl ::std::fmt::Display for EventStreamError {
|
3814 4996 | /* ServerOperationErrorGenerator.kt:76 */
|
3815 4997 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3816 4998 | /* ServerOperationErrorGenerator.kt:139 */
|
3817 4999 | match &self {
|
3818 5000 | /* ServerOperationErrorGenerator.kt:142 */
|
3819 - | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
5001 + | EventStreamError::ErrorEvent(_inner) =>
|
3820 5002 | /* ServerOperationErrorGenerator.kt:78 */
|
3821 5003 | {
|
3822 5004 | _inner.fmt(f)
|
3823 5005 | }
|
3824 5006 | /* ServerOperationErrorGenerator.kt:139 */
|
3825 5007 | }
|
3826 5008 | /* ServerOperationErrorGenerator.kt:76 */
|
3827 5009 | }
|
3828 5010 | /* ServerOperationErrorGenerator.kt:75 */
|
3829 5011 | }
|
3830 5012 | /* ServerOperationErrorGenerator.kt:83 */
|
3831 - | impl InputAndOutputWithHeadersError {
|
5013 + | impl EventStreamError {
|
3832 5014 | /* ServerOperationErrorGenerator.kt:87 */
|
3833 - | /// Returns `true` if the error kind is `InputAndOutputWithHeadersError::ValidationException`.
|
5015 + | /// Returns `true` if the error kind is `EventStreamError::ErrorEvent`.
|
3834 5016 | /* ServerOperationErrorGenerator.kt:88 */
|
3835 - | pub fn is_validation_exception(&self) -> bool {
|
5017 + | pub fn is_error_event(&self) -> bool {
|
3836 5018 | /* ServerOperationErrorGenerator.kt:89 */
|
3837 - | matches!(
|
3838 - | &self,
|
3839 - | InputAndOutputWithHeadersError::ValidationException(_)
|
3840 - | )
|
5019 + | matches!(&self, EventStreamError::ErrorEvent(_))
|
3841 5020 | /* ServerOperationErrorGenerator.kt:88 */
|
3842 5021 | }
|
3843 5022 | /* ServerOperationErrorGenerator.kt:92 */
|
3844 5023 | /// Returns the error name string by matching the correct variant.
|
3845 5024 | /* ServerOperationErrorGenerator.kt:93 */
|
3846 5025 | pub fn name(&self) -> &'static str {
|
3847 5026 | /* ServerOperationErrorGenerator.kt:139 */
|
3848 5027 | match &self {
|
3849 5028 | /* ServerOperationErrorGenerator.kt:142 */
|
3850 - | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
5029 + | EventStreamError::ErrorEvent(_inner) =>
|
3851 5030 | /* ServerOperationErrorGenerator.kt:95 */
|
3852 5031 | {
|
3853 5032 | _inner.name()
|
3854 5033 | }
|
3855 5034 | /* ServerOperationErrorGenerator.kt:139 */
|
3856 5035 | }
|
3857 5036 | /* ServerOperationErrorGenerator.kt:93 */
|
3858 5037 | }
|
3859 5038 | /* ServerOperationErrorGenerator.kt:83 */
|
3860 5039 | }
|
3861 5040 | /* ServerOperationErrorGenerator.kt:100 */
|
3862 - | impl ::std::error::Error for InputAndOutputWithHeadersError {
|
5041 + | impl ::std::error::Error for EventStreamError {
|
3863 5042 | /* ServerOperationErrorGenerator.kt:101 */
|
3864 5043 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3865 5044 | /* ServerOperationErrorGenerator.kt:139 */
|
3866 5045 | match &self {
|
3867 5046 | /* ServerOperationErrorGenerator.kt:142 */
|
3868 - | InputAndOutputWithHeadersError::ValidationException(_inner) =>
|
5047 + | EventStreamError::ErrorEvent(_inner) =>
|
3869 5048 | /* ServerOperationErrorGenerator.kt:103 */
|
3870 5049 | {
|
3871 5050 | Some(_inner)
|
3872 5051 | }
|
3873 5052 | /* ServerOperationErrorGenerator.kt:139 */
|
3874 5053 | }
|
3875 5054 | /* ServerOperationErrorGenerator.kt:101 */
|
3876 5055 | }
|
3877 5056 | /* ServerOperationErrorGenerator.kt:100 */
|
3878 5057 | }
|
3879 5058 | /* ServerOperationErrorGenerator.kt:110 */
|
3880 - | impl ::std::convert::From<crate::error::ValidationException>
|
3881 - | for crate::error::InputAndOutputWithHeadersError
|
3882 - | {
|
5059 + | impl ::std::convert::From<crate::error::ErrorEvent> for crate::error::EventStreamError {
|
3883 5060 | /* ServerOperationErrorGenerator.kt:111 */
|
3884 - | fn from(
|
3885 - | variant: crate::error::ValidationException,
|
3886 - | ) -> crate::error::InputAndOutputWithHeadersError {
|
5061 + | fn from(variant: crate::error::ErrorEvent) -> crate::error::EventStreamError {
|
3887 5062 | /* ServerOperationErrorGenerator.kt:112 */
|
3888 - | Self::ValidationException(variant)
|
5063 + | Self::ErrorEvent(variant)
|
3889 5064 | /* ServerOperationErrorGenerator.kt:111 */
|
3890 5065 | }
|
3891 5066 | /* ServerOperationErrorGenerator.kt:110 */
|
3892 5067 | }
|
3893 - |
|
3894 5068 | /// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
|
3895 5069 | pub mod validation_exception {
|
3896 5070 |
|
3897 5071 | /* RustType.kt:534 */
|
3898 5072 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3899 5073 | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3900 5074 | /* RustType.kt:534 */
|
3901 5075 | #[non_exhaustive]
|
3902 5076 | /* ServerBuilderConstraintViolations.kt:75 */
|
3903 5077 | #[allow(clippy::enum_variant_names)]
|