1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[derive(
|
4 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 7 | )]
|
6 - | pub struct ExtraError {}
|
8 + | pub /* StructureGenerator.kt:201 */ struct ExtraError {/* StructureGenerator.kt:201 */}
|
9 + | /* ErrorImplGenerator.kt:99 */
|
7 10 | impl ExtraError {
|
11 + | /* ErrorImplGenerator.kt:141 */
|
8 12 | #[doc(hidden)]
|
9 13 | /// Returns the error name.
|
10 14 | pub fn name(&self) -> &'static str {
|
11 15 | "ExtraError"
|
12 16 | }
|
17 + | /* ErrorImplGenerator.kt:99 */
|
13 18 | }
|
19 + | /* ErrorImplGenerator.kt:153 */
|
14 20 | impl ::std::fmt::Display for ExtraError {
|
21 + | /* ErrorImplGenerator.kt:154 */
|
15 22 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
23 + | /* ErrorImplGenerator.kt:161 */
|
16 24 | ::std::write!(f, "ExtraError")?;
|
25 + | /* ErrorImplGenerator.kt:171 */
|
17 26 | Ok(())
|
27 + | /* ErrorImplGenerator.kt:154 */
|
18 28 | }
|
29 + | /* ErrorImplGenerator.kt:153 */
|
19 30 | }
|
31 + | /* ErrorImplGenerator.kt:175 */
|
20 32 | impl ::std::error::Error for ExtraError {}
|
33 + | /* ServerCodegenVisitor.kt:345 */
|
21 34 | impl ExtraError {
|
22 - | /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
|
35 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
|
36 + | /* ServerBuilderGenerator.kt:295 */
|
23 37 | pub fn builder() -> crate::error::extra_error::Builder {
|
38 + | /* ServerBuilderGenerator.kt:296 */
|
24 39 | crate::error::extra_error::Builder::default()
|
40 + | /* ServerBuilderGenerator.kt:295 */
|
25 41 | }
|
42 + | /* ServerCodegenVisitor.kt:345 */
|
26 43 | }
|
27 44 |
|
45 + | /* ServerOperationErrorGenerator.kt:63 */
|
28 46 | /// Error type for the `QueryPrecedence` operation.
|
47 + | /* ServerOperationErrorGenerator.kt:64 */
|
29 48 | /// Each variant represents an error that can occur for the `QueryPrecedence` operation.
|
49 + | /* RustType.kt:516 */
|
30 50 | #[derive(::std::fmt::Debug)]
|
31 - | pub enum QueryPrecedenceError {
|
51 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryPrecedenceError {
|
52 + | /* ServerOperationErrorGenerator.kt:68 */
|
32 53 | #[allow(missing_docs)] // documentation missing in model
|
54 + | /* ServerOperationErrorGenerator.kt:71 */
|
33 55 | ExtraError(crate::error::ExtraError),
|
56 + | /* ServerOperationErrorGenerator.kt:66 */
|
34 57 | }
|
58 + | /* ServerOperationErrorGenerator.kt:75 */
|
35 59 | impl ::std::fmt::Display for QueryPrecedenceError {
|
60 + | /* ServerOperationErrorGenerator.kt:76 */
|
36 61 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
62 + | /* ServerOperationErrorGenerator.kt:139 */
|
37 63 | match &self {
|
38 - | QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
|
64 + | /* ServerOperationErrorGenerator.kt:142 */
|
65 + | QueryPrecedenceError::ExtraError(_inner) =>
|
66 + | /* ServerOperationErrorGenerator.kt:78 */
|
67 + | {
|
68 + | _inner.fmt(f)
|
69 + | }
|
70 + | /* ServerOperationErrorGenerator.kt:139 */
|
39 71 | }
|
72 + | /* ServerOperationErrorGenerator.kt:76 */
|
40 73 | }
|
74 + | /* ServerOperationErrorGenerator.kt:75 */
|
41 75 | }
|
76 + | /* ServerOperationErrorGenerator.kt:83 */
|
42 77 | impl QueryPrecedenceError {
|
78 + | /* ServerOperationErrorGenerator.kt:87 */
|
43 79 | /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
|
80 + | /* ServerOperationErrorGenerator.kt:88 */
|
44 81 | pub fn is_extra_error(&self) -> bool {
|
82 + | /* ServerOperationErrorGenerator.kt:89 */
|
45 83 | matches!(&self, QueryPrecedenceError::ExtraError(_))
|
84 + | /* ServerOperationErrorGenerator.kt:88 */
|
46 85 | }
|
86 + | /* ServerOperationErrorGenerator.kt:92 */
|
47 87 | /// Returns the error name string by matching the correct variant.
|
88 + | /* ServerOperationErrorGenerator.kt:93 */
|
48 89 | pub fn name(&self) -> &'static str {
|
90 + | /* ServerOperationErrorGenerator.kt:139 */
|
49 91 | match &self {
|
50 - | QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
|
92 + | /* ServerOperationErrorGenerator.kt:142 */
|
93 + | QueryPrecedenceError::ExtraError(_inner) =>
|
94 + | /* ServerOperationErrorGenerator.kt:95 */
|
95 + | {
|
96 + | _inner.name()
|
97 + | }
|
98 + | /* ServerOperationErrorGenerator.kt:139 */
|
51 99 | }
|
100 + | /* ServerOperationErrorGenerator.kt:93 */
|
52 101 | }
|
102 + | /* ServerOperationErrorGenerator.kt:83 */
|
53 103 | }
|
104 + | /* ServerOperationErrorGenerator.kt:100 */
|
54 105 | impl ::std::error::Error for QueryPrecedenceError {
|
106 + | /* ServerOperationErrorGenerator.kt:101 */
|
55 107 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
108 + | /* ServerOperationErrorGenerator.kt:139 */
|
56 109 | match &self {
|
57 - | QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
|
110 + | /* ServerOperationErrorGenerator.kt:142 */
|
111 + | QueryPrecedenceError::ExtraError(_inner) =>
|
112 + | /* ServerOperationErrorGenerator.kt:103 */
|
113 + | {
|
114 + | Some(_inner)
|
115 + | }
|
116 + | /* ServerOperationErrorGenerator.kt:139 */
|
58 117 | }
|
118 + | /* ServerOperationErrorGenerator.kt:101 */
|
59 119 | }
|
120 + | /* ServerOperationErrorGenerator.kt:100 */
|
60 121 | }
|
122 + | /* ServerOperationErrorGenerator.kt:110 */
|
61 123 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
|
124 + | /* ServerOperationErrorGenerator.kt:111 */
|
62 125 | fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
|
126 + | /* ServerOperationErrorGenerator.kt:112 */
|
63 127 | Self::ExtraError(variant)
|
128 + | /* ServerOperationErrorGenerator.kt:111 */
|
64 129 | }
|
130 + | /* ServerOperationErrorGenerator.kt:110 */
|
65 131 | }
|
66 132 |
|
133 + | /* ServerOperationErrorGenerator.kt:63 */
|
67 134 | /// Error type for the `EmptyStructWithContentOnWireOp` operation.
|
135 + | /* ServerOperationErrorGenerator.kt:64 */
|
68 136 | /// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
|
137 + | /* RustType.kt:516 */
|
69 138 | #[derive(::std::fmt::Debug)]
|
70 - | pub enum EmptyStructWithContentOnWireOpError {
|
139 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EmptyStructWithContentOnWireOpError {
|
140 + | /* ServerOperationErrorGenerator.kt:68 */
|
71 141 | #[allow(missing_docs)] // documentation missing in model
|
142 + | /* ServerOperationErrorGenerator.kt:71 */
|
72 143 | ExtraError(crate::error::ExtraError),
|
144 + | /* ServerOperationErrorGenerator.kt:66 */
|
73 145 | }
|
146 + | /* ServerOperationErrorGenerator.kt:75 */
|
74 147 | impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
|
148 + | /* ServerOperationErrorGenerator.kt:76 */
|
75 149 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
150 + | /* ServerOperationErrorGenerator.kt:139 */
|
76 151 | match &self {
|
77 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
|
152 + | /* ServerOperationErrorGenerator.kt:142 */
|
153 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
|
154 + | /* ServerOperationErrorGenerator.kt:78 */
|
155 + | {
|
156 + | _inner.fmt(f)
|
78 157 | }
|
158 + | /* ServerOperationErrorGenerator.kt:139 */
|
79 159 | }
|
160 + | /* ServerOperationErrorGenerator.kt:76 */
|
161 + | }
|
162 + | /* ServerOperationErrorGenerator.kt:75 */
|
80 163 | }
|
164 + | /* ServerOperationErrorGenerator.kt:83 */
|
81 165 | impl EmptyStructWithContentOnWireOpError {
|
166 + | /* ServerOperationErrorGenerator.kt:87 */
|
82 167 | /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
|
168 + | /* ServerOperationErrorGenerator.kt:88 */
|
83 169 | pub fn is_extra_error(&self) -> bool {
|
170 + | /* ServerOperationErrorGenerator.kt:89 */
|
84 171 | matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
|
172 + | /* ServerOperationErrorGenerator.kt:88 */
|
85 173 | }
|
174 + | /* ServerOperationErrorGenerator.kt:92 */
|
86 175 | /// Returns the error name string by matching the correct variant.
|
176 + | /* ServerOperationErrorGenerator.kt:93 */
|
87 177 | pub fn name(&self) -> &'static str {
|
178 + | /* ServerOperationErrorGenerator.kt:139 */
|
88 179 | match &self {
|
89 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
|
180 + | /* ServerOperationErrorGenerator.kt:142 */
|
181 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
|
182 + | /* ServerOperationErrorGenerator.kt:95 */
|
183 + | {
|
184 + | _inner.name()
|
185 + | }
|
186 + | /* ServerOperationErrorGenerator.kt:139 */
|
90 187 | }
|
188 + | /* ServerOperationErrorGenerator.kt:93 */
|
91 189 | }
|
190 + | /* ServerOperationErrorGenerator.kt:83 */
|
92 191 | }
|
192 + | /* ServerOperationErrorGenerator.kt:100 */
|
93 193 | impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
|
194 + | /* ServerOperationErrorGenerator.kt:101 */
|
94 195 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
196 + | /* ServerOperationErrorGenerator.kt:139 */
|
95 197 | match &self {
|
96 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
|
198 + | /* ServerOperationErrorGenerator.kt:142 */
|
199 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) =>
|
200 + | /* ServerOperationErrorGenerator.kt:103 */
|
201 + | {
|
202 + | Some(_inner)
|
203 + | }
|
204 + | /* ServerOperationErrorGenerator.kt:139 */
|
97 205 | }
|
206 + | /* ServerOperationErrorGenerator.kt:101 */
|
98 207 | }
|
208 + | /* ServerOperationErrorGenerator.kt:100 */
|
99 209 | }
|
210 + | /* ServerOperationErrorGenerator.kt:110 */
|
100 211 | impl ::std::convert::From<crate::error::ExtraError>
|
101 212 | for crate::error::EmptyStructWithContentOnWireOpError
|
102 213 | {
|
214 + | /* ServerOperationErrorGenerator.kt:111 */
|
103 215 | fn from(
|
104 216 | variant: crate::error::ExtraError,
|
105 217 | ) -> crate::error::EmptyStructWithContentOnWireOpError {
|
218 + | /* ServerOperationErrorGenerator.kt:112 */
|
106 219 | Self::ExtraError(variant)
|
220 + | /* ServerOperationErrorGenerator.kt:111 */
|
107 221 | }
|
222 + | /* ServerOperationErrorGenerator.kt:110 */
|
108 223 | }
|
109 224 |
|
225 + | /* ServerOperationErrorGenerator.kt:63 */
|
110 226 | /// Error type for the `CaseInsensitiveErrorOperation` operation.
|
227 + | /* ServerOperationErrorGenerator.kt:64 */
|
111 228 | /// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
|
229 + | /* RustType.kt:516 */
|
112 230 | #[derive(::std::fmt::Debug)]
|
113 - | pub enum CaseInsensitiveErrorOperationError {
|
231 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum CaseInsensitiveErrorOperationError {
|
232 + | /* ServerOperationErrorGenerator.kt:68 */
|
114 233 | #[allow(missing_docs)] // documentation missing in model
|
234 + | /* ServerOperationErrorGenerator.kt:71 */
|
115 235 | CaseInsensitiveError(crate::error::CaseInsensitiveError),
|
236 + | /* ServerOperationErrorGenerator.kt:68 */
|
116 237 | #[allow(missing_docs)] // documentation missing in model
|
238 + | /* ServerOperationErrorGenerator.kt:71 */
|
117 239 | ExtraError(crate::error::ExtraError),
|
240 + | /* ServerOperationErrorGenerator.kt:66 */
|
118 241 | }
|
242 + | /* ServerOperationErrorGenerator.kt:75 */
|
119 243 | impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
|
244 + | /* ServerOperationErrorGenerator.kt:76 */
|
120 245 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
246 + | /* ServerOperationErrorGenerator.kt:139 */
|
121 247 | match &self {
|
122 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
|
123 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
|
248 + | /* ServerOperationErrorGenerator.kt:142 */
|
249 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
|
250 + | /* ServerOperationErrorGenerator.kt:78 */
|
251 + | {
|
252 + | _inner.fmt(f)
|
124 253 | }
|
254 + | ,
|
255 + | /* ServerOperationErrorGenerator.kt:142 */
|
256 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
|
257 + | /* ServerOperationErrorGenerator.kt:78 */
|
258 + | {
|
259 + | _inner.fmt(f)
|
260 + | }
|
261 + | /* ServerOperationErrorGenerator.kt:139 */
|
125 262 | }
|
263 + | /* ServerOperationErrorGenerator.kt:76 */
|
264 + | }
|
265 + | /* ServerOperationErrorGenerator.kt:75 */
|
126 266 | }
|
267 + | /* ServerOperationErrorGenerator.kt:83 */
|
127 268 | impl CaseInsensitiveErrorOperationError {
|
269 + | /* ServerOperationErrorGenerator.kt:87 */
|
128 270 | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
|
271 + | /* ServerOperationErrorGenerator.kt:88 */
|
129 272 | pub fn is_case_insensitive_error(&self) -> bool {
|
273 + | /* ServerOperationErrorGenerator.kt:89 */
|
130 274 | matches!(
|
131 275 | &self,
|
132 276 | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
|
133 277 | )
|
278 + | /* ServerOperationErrorGenerator.kt:88 */
|
134 279 | }
|
280 + | /* ServerOperationErrorGenerator.kt:87 */
|
135 281 | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
|
282 + | /* ServerOperationErrorGenerator.kt:88 */
|
136 283 | pub fn is_extra_error(&self) -> bool {
|
284 + | /* ServerOperationErrorGenerator.kt:89 */
|
137 285 | matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
|
286 + | /* ServerOperationErrorGenerator.kt:88 */
|
138 287 | }
|
288 + | /* ServerOperationErrorGenerator.kt:92 */
|
139 289 | /// Returns the error name string by matching the correct variant.
|
290 + | /* ServerOperationErrorGenerator.kt:93 */
|
140 291 | pub fn name(&self) -> &'static str {
|
292 + | /* ServerOperationErrorGenerator.kt:139 */
|
141 293 | match &self {
|
142 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
|
143 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
|
294 + | /* ServerOperationErrorGenerator.kt:142 */
|
295 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
|
296 + | /* ServerOperationErrorGenerator.kt:95 */
|
297 + | {
|
298 + | _inner.name()
|
299 + | }
|
300 + | ,
|
301 + | /* ServerOperationErrorGenerator.kt:142 */
|
302 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
|
303 + | /* ServerOperationErrorGenerator.kt:95 */
|
304 + | {
|
305 + | _inner.name()
|
306 + | }
|
307 + | /* ServerOperationErrorGenerator.kt:139 */
|
144 308 | }
|
309 + | /* ServerOperationErrorGenerator.kt:93 */
|
145 310 | }
|
311 + | /* ServerOperationErrorGenerator.kt:83 */
|
146 312 | }
|
313 + | /* ServerOperationErrorGenerator.kt:100 */
|
147 314 | impl ::std::error::Error for CaseInsensitiveErrorOperationError {
|
315 + | /* ServerOperationErrorGenerator.kt:101 */
|
148 316 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
317 + | /* ServerOperationErrorGenerator.kt:139 */
|
149 318 | match &self {
|
150 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
|
151 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
|
319 + | /* ServerOperationErrorGenerator.kt:142 */
|
320 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) =>
|
321 + | /* ServerOperationErrorGenerator.kt:103 */
|
322 + | {
|
323 + | Some(_inner)
|
324 + | }
|
325 + | ,
|
326 + | /* ServerOperationErrorGenerator.kt:142 */
|
327 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) =>
|
328 + | /* ServerOperationErrorGenerator.kt:103 */
|
329 + | {
|
330 + | Some(_inner)
|
152 331 | }
|
332 + | /* ServerOperationErrorGenerator.kt:139 */
|
153 333 | }
|
334 + | /* ServerOperationErrorGenerator.kt:101 */
|
335 + | }
|
336 + | /* ServerOperationErrorGenerator.kt:100 */
|
154 337 | }
|
338 + | /* ServerOperationErrorGenerator.kt:110 */
|
155 339 | impl ::std::convert::From<crate::error::CaseInsensitiveError>
|
156 340 | for crate::error::CaseInsensitiveErrorOperationError
|
157 341 | {
|
342 + | /* ServerOperationErrorGenerator.kt:111 */
|
158 343 | fn from(
|
159 344 | variant: crate::error::CaseInsensitiveError,
|
160 345 | ) -> crate::error::CaseInsensitiveErrorOperationError {
|
346 + | /* ServerOperationErrorGenerator.kt:112 */
|
161 347 | Self::CaseInsensitiveError(variant)
|
348 + | /* ServerOperationErrorGenerator.kt:111 */
|
162 349 | }
|
350 + | /* ServerOperationErrorGenerator.kt:110 */
|
163 351 | }
|
352 + | /* ServerOperationErrorGenerator.kt:110 */
|
164 353 | impl ::std::convert::From<crate::error::ExtraError>
|
165 354 | for crate::error::CaseInsensitiveErrorOperationError
|
166 355 | {
|
356 + | /* ServerOperationErrorGenerator.kt:111 */
|
167 357 | fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
|
358 + | /* ServerOperationErrorGenerator.kt:112 */
|
168 359 | Self::ExtraError(variant)
|
360 + | /* ServerOperationErrorGenerator.kt:111 */
|
169 361 | }
|
362 + | /* ServerOperationErrorGenerator.kt:110 */
|
170 363 | }
|
171 364 |
|
365 + | /* StructureGenerator.kt:197 */
|
172 366 | #[allow(missing_docs)] // documentation missing in model
|
367 + | /* RustType.kt:516 */
|
173 368 | #[derive(
|
174 369 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
175 370 | )]
|
176 - | pub struct CaseInsensitiveError {
|
371 + | pub /* StructureGenerator.kt:201 */ struct CaseInsensitiveError {
|
372 + | /* StructureGenerator.kt:231 */
|
177 373 | #[allow(missing_docs)] // documentation missing in model
|
178 374 | pub message: ::std::option::Option<::std::string::String>,
|
375 + | /* StructureGenerator.kt:201 */
|
179 376 | }
|
377 + | /* ErrorImplGenerator.kt:99 */
|
180 378 | impl CaseInsensitiveError {
|
379 + | /* ErrorImplGenerator.kt:128 */
|
181 380 | /// Returns the error message.
|
182 381 | pub fn message(&self) -> ::std::option::Option<&str> {
|
183 382 | self.message.as_deref()
|
184 383 | }
|
384 + | /* ErrorImplGenerator.kt:141 */
|
185 385 | #[doc(hidden)]
|
186 386 | /// Returns the error name.
|
187 387 | pub fn name(&self) -> &'static str {
|
188 388 | "CaseInsensitiveError"
|
189 389 | }
|
390 + | /* ErrorImplGenerator.kt:99 */
|
190 391 | }
|
392 + | /* ErrorImplGenerator.kt:153 */
|
191 393 | impl ::std::fmt::Display for CaseInsensitiveError {
|
394 + | /* ErrorImplGenerator.kt:154 */
|
192 395 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
396 + | /* ErrorImplGenerator.kt:161 */
|
193 397 | ::std::write!(f, "CaseInsensitiveError")?;
|
398 + | /* ErrorImplGenerator.kt:166 */
|
194 399 | if let ::std::option::Option::Some(inner_1) = &self.message {
|
400 + | /* ErrorImplGenerator.kt:166 */
|
195 401 | {
|
402 + | /* ErrorImplGenerator.kt:167 */
|
196 403 | ::std::write!(f, ": {}", inner_1)?;
|
404 + | /* ErrorImplGenerator.kt:166 */
|
197 405 | }
|
406 + | /* ErrorImplGenerator.kt:166 */
|
198 407 | }
|
408 + | /* ErrorImplGenerator.kt:171 */
|
199 409 | Ok(())
|
410 + | /* ErrorImplGenerator.kt:154 */
|
200 411 | }
|
412 + | /* ErrorImplGenerator.kt:153 */
|
201 413 | }
|
414 + | /* ErrorImplGenerator.kt:175 */
|
202 415 | impl ::std::error::Error for CaseInsensitiveError {}
|
416 + | /* ServerCodegenVisitor.kt:345 */
|
203 417 | impl CaseInsensitiveError {
|
204 - | /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
418 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
419 + | /* ServerBuilderGenerator.kt:295 */
|
205 420 | pub fn builder() -> crate::error::case_insensitive_error::Builder {
|
421 + | /* ServerBuilderGenerator.kt:296 */
|
206 422 | crate::error::case_insensitive_error::Builder::default()
|
423 + | /* ServerBuilderGenerator.kt:295 */
|
207 424 | }
|
425 + | /* ServerCodegenVisitor.kt:345 */
|
208 426 | }
|
209 427 |
|
428 + | /* ServerOperationErrorGenerator.kt:63 */
|
210 429 | /// Error type for the `NullInNonSparse` operation.
|
430 + | /* ServerOperationErrorGenerator.kt:64 */
|
211 431 | /// Each variant represents an error that can occur for the `NullInNonSparse` operation.
|
432 + | /* RustType.kt:516 */
|
212 433 | #[derive(::std::fmt::Debug)]
|
213 - | pub enum NullInNonSparseError {
|
434 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum NullInNonSparseError {
|
435 + | /* ServerOperationErrorGenerator.kt:68 */
|
214 436 | #[allow(missing_docs)] // documentation missing in model
|
437 + | /* ServerOperationErrorGenerator.kt:71 */
|
215 438 | ExtraError(crate::error::ExtraError),
|
439 + | /* ServerOperationErrorGenerator.kt:66 */
|
216 440 | }
|
441 + | /* ServerOperationErrorGenerator.kt:75 */
|
217 442 | impl ::std::fmt::Display for NullInNonSparseError {
|
443 + | /* ServerOperationErrorGenerator.kt:76 */
|
218 444 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
445 + | /* ServerOperationErrorGenerator.kt:139 */
|
219 446 | match &self {
|
220 - | NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
|
447 + | /* ServerOperationErrorGenerator.kt:142 */
|
448 + | NullInNonSparseError::ExtraError(_inner) =>
|
449 + | /* ServerOperationErrorGenerator.kt:78 */
|
450 + | {
|
451 + | _inner.fmt(f)
|
452 + | }
|
453 + | /* ServerOperationErrorGenerator.kt:139 */
|
221 454 | }
|
455 + | /* ServerOperationErrorGenerator.kt:76 */
|
222 456 | }
|
457 + | /* ServerOperationErrorGenerator.kt:75 */
|
223 458 | }
|
459 + | /* ServerOperationErrorGenerator.kt:83 */
|
224 460 | impl NullInNonSparseError {
|
461 + | /* ServerOperationErrorGenerator.kt:87 */
|
225 462 | /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
|
463 + | /* ServerOperationErrorGenerator.kt:88 */
|
226 464 | pub fn is_extra_error(&self) -> bool {
|
465 + | /* ServerOperationErrorGenerator.kt:89 */
|
227 466 | matches!(&self, NullInNonSparseError::ExtraError(_))
|
467 + | /* ServerOperationErrorGenerator.kt:88 */
|
228 468 | }
|
469 + | /* ServerOperationErrorGenerator.kt:92 */
|
229 470 | /// Returns the error name string by matching the correct variant.
|
471 + | /* ServerOperationErrorGenerator.kt:93 */
|
230 472 | pub fn name(&self) -> &'static str {
|
473 + | /* ServerOperationErrorGenerator.kt:139 */
|
231 474 | match &self {
|
232 - | NullInNonSparseError::ExtraError(_inner) => _inner.name(),
|
475 + | /* ServerOperationErrorGenerator.kt:142 */
|
476 + | NullInNonSparseError::ExtraError(_inner) =>
|
477 + | /* ServerOperationErrorGenerator.kt:95 */
|
478 + | {
|
479 + | _inner.name()
|
480 + | }
|
481 + | /* ServerOperationErrorGenerator.kt:139 */
|
233 482 | }
|
483 + | /* ServerOperationErrorGenerator.kt:93 */
|
234 484 | }
|
485 + | /* ServerOperationErrorGenerator.kt:83 */
|
235 486 | }
|
487 + | /* ServerOperationErrorGenerator.kt:100 */
|
236 488 | impl ::std::error::Error for NullInNonSparseError {
|
489 + | /* ServerOperationErrorGenerator.kt:101 */
|
237 490 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
491 + | /* ServerOperationErrorGenerator.kt:139 */
|
238 492 | match &self {
|
239 - | NullInNonSparseError::ExtraError(_inner) => Some(_inner),
|
493 + | /* ServerOperationErrorGenerator.kt:142 */
|
494 + | NullInNonSparseError::ExtraError(_inner) =>
|
495 + | /* ServerOperationErrorGenerator.kt:103 */
|
496 + | {
|
497 + | Some(_inner)
|
498 + | }
|
499 + | /* ServerOperationErrorGenerator.kt:139 */
|
240 500 | }
|
501 + | /* ServerOperationErrorGenerator.kt:101 */
|
241 502 | }
|
503 + | /* ServerOperationErrorGenerator.kt:100 */
|
242 504 | }
|
505 + | /* ServerOperationErrorGenerator.kt:110 */
|
243 506 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
|
507 + | /* ServerOperationErrorGenerator.kt:111 */
|
244 508 | fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
|
509 + | /* ServerOperationErrorGenerator.kt:112 */
|
245 510 | Self::ExtraError(variant)
|
511 + | /* ServerOperationErrorGenerator.kt:111 */
|
246 512 | }
|
513 + | /* ServerOperationErrorGenerator.kt:110 */
|
247 514 | }
|
248 515 |
|
516 + | /* ServerOperationErrorGenerator.kt:63 */
|
249 517 | /// Error type for the `EscapedStringValues` operation.
|
518 + | /* ServerOperationErrorGenerator.kt:64 */
|
250 519 | /// Each variant represents an error that can occur for the `EscapedStringValues` operation.
|
520 + | /* RustType.kt:516 */
|
251 521 | #[derive(::std::fmt::Debug)]
|
252 - | pub enum EscapedStringValuesError {
|
253 - | /// 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.
|
522 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EscapedStringValuesError {
|
523 + | /// /* 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.
|
524 + | /* ServerOperationErrorGenerator.kt:71 */
|
254 525 | ValidationException(crate::error::ValidationException),
|
526 + | /* ServerOperationErrorGenerator.kt:68 */
|
255 527 | #[allow(missing_docs)] // documentation missing in model
|
528 + | /* ServerOperationErrorGenerator.kt:71 */
|
256 529 | ExtraError(crate::error::ExtraError),
|
530 + | /* ServerOperationErrorGenerator.kt:66 */
|
257 531 | }
|
532 + | /* ServerOperationErrorGenerator.kt:75 */
|
258 533 | impl ::std::fmt::Display for EscapedStringValuesError {
|
534 + | /* ServerOperationErrorGenerator.kt:76 */
|
259 535 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
536 + | /* ServerOperationErrorGenerator.kt:139 */
|
260 537 | match &self {
|
261 - | EscapedStringValuesError::ValidationException(_inner) => _inner.fmt(f),
|
262 - | EscapedStringValuesError::ExtraError(_inner) => _inner.fmt(f),
|
538 + | /* ServerOperationErrorGenerator.kt:142 */
|
539 + | EscapedStringValuesError::ValidationException(_inner) =>
|
540 + | /* ServerOperationErrorGenerator.kt:78 */
|
541 + | {
|
542 + | _inner.fmt(f)
|
543 + | }
|
544 + | ,
|
545 + | /* ServerOperationErrorGenerator.kt:142 */
|
546 + | EscapedStringValuesError::ExtraError(_inner) =>
|
547 + | /* ServerOperationErrorGenerator.kt:78 */
|
548 + | {
|
549 + | _inner.fmt(f)
|
263 550 | }
|
551 + | /* ServerOperationErrorGenerator.kt:139 */
|
264 552 | }
|
553 + | /* ServerOperationErrorGenerator.kt:76 */
|
554 + | }
|
555 + | /* ServerOperationErrorGenerator.kt:75 */
|
265 556 | }
|
557 + | /* ServerOperationErrorGenerator.kt:83 */
|
266 558 | impl EscapedStringValuesError {
|
559 + | /* ServerOperationErrorGenerator.kt:87 */
|
267 560 | /// Returns `true` if the error kind is `EscapedStringValuesError::ValidationException`.
|
561 + | /* ServerOperationErrorGenerator.kt:88 */
|
268 562 | pub fn is_validation_exception(&self) -> bool {
|
563 + | /* ServerOperationErrorGenerator.kt:89 */
|
269 564 | matches!(&self, EscapedStringValuesError::ValidationException(_))
|
565 + | /* ServerOperationErrorGenerator.kt:88 */
|
270 566 | }
|
567 + | /* ServerOperationErrorGenerator.kt:87 */
|
271 568 | /// Returns `true` if the error kind is `EscapedStringValuesError::ExtraError`.
|
569 + | /* ServerOperationErrorGenerator.kt:88 */
|
272 570 | pub fn is_extra_error(&self) -> bool {
|
571 + | /* ServerOperationErrorGenerator.kt:89 */
|
273 572 | matches!(&self, EscapedStringValuesError::ExtraError(_))
|
573 + | /* ServerOperationErrorGenerator.kt:88 */
|
274 574 | }
|
575 + | /* ServerOperationErrorGenerator.kt:92 */
|
275 576 | /// Returns the error name string by matching the correct variant.
|
577 + | /* ServerOperationErrorGenerator.kt:93 */
|
276 578 | pub fn name(&self) -> &'static str {
|
579 + | /* ServerOperationErrorGenerator.kt:139 */
|
277 580 | match &self {
|
278 - | EscapedStringValuesError::ValidationException(_inner) => _inner.name(),
|
279 - | EscapedStringValuesError::ExtraError(_inner) => _inner.name(),
|
581 + | /* ServerOperationErrorGenerator.kt:142 */
|
582 + | EscapedStringValuesError::ValidationException(_inner) =>
|
583 + | /* ServerOperationErrorGenerator.kt:95 */
|
584 + | {
|
585 + | _inner.name()
|
586 + | }
|
587 + | ,
|
588 + | /* ServerOperationErrorGenerator.kt:142 */
|
589 + | EscapedStringValuesError::ExtraError(_inner) =>
|
590 + | /* ServerOperationErrorGenerator.kt:95 */
|
591 + | {
|
592 + | _inner.name()
|
593 + | }
|
594 + | /* ServerOperationErrorGenerator.kt:139 */
|
280 595 | }
|
596 + | /* ServerOperationErrorGenerator.kt:93 */
|
281 597 | }
|
598 + | /* ServerOperationErrorGenerator.kt:83 */
|
282 599 | }
|
600 + | /* ServerOperationErrorGenerator.kt:100 */
|
283 601 | impl ::std::error::Error for EscapedStringValuesError {
|
602 + | /* ServerOperationErrorGenerator.kt:101 */
|
284 603 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
604 + | /* ServerOperationErrorGenerator.kt:139 */
|
285 605 | match &self {
|
286 - | EscapedStringValuesError::ValidationException(_inner) => Some(_inner),
|
287 - | EscapedStringValuesError::ExtraError(_inner) => Some(_inner),
|
606 + | /* ServerOperationErrorGenerator.kt:142 */
|
607 + | EscapedStringValuesError::ValidationException(_inner) =>
|
608 + | /* ServerOperationErrorGenerator.kt:103 */
|
609 + | {
|
610 + | Some(_inner)
|
288 611 | }
|
612 + | ,
|
613 + | /* ServerOperationErrorGenerator.kt:142 */
|
614 + | EscapedStringValuesError::ExtraError(_inner) =>
|
615 + | /* ServerOperationErrorGenerator.kt:103 */
|
616 + | {
|
617 + | Some(_inner)
|
618 + | }
|
619 + | /* ServerOperationErrorGenerator.kt:139 */
|
620 + | }
|
621 + | /* ServerOperationErrorGenerator.kt:101 */
|
289 622 | }
|
623 + | /* ServerOperationErrorGenerator.kt:100 */
|
290 624 | }
|
625 + | /* ServerOperationErrorGenerator.kt:110 */
|
291 626 | impl ::std::convert::From<crate::error::ValidationException>
|
292 627 | for crate::error::EscapedStringValuesError
|
293 628 | {
|
629 + | /* ServerOperationErrorGenerator.kt:111 */
|
294 630 | fn from(variant: crate::error::ValidationException) -> crate::error::EscapedStringValuesError {
|
631 + | /* ServerOperationErrorGenerator.kt:112 */
|
295 632 | Self::ValidationException(variant)
|
633 + | /* ServerOperationErrorGenerator.kt:111 */
|
296 634 | }
|
635 + | /* ServerOperationErrorGenerator.kt:110 */
|
297 636 | }
|
637 + | /* ServerOperationErrorGenerator.kt:110 */
|
298 638 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::EscapedStringValuesError {
|
639 + | /* ServerOperationErrorGenerator.kt:111 */
|
299 640 | fn from(variant: crate::error::ExtraError) -> crate::error::EscapedStringValuesError {
|
641 + | /* ServerOperationErrorGenerator.kt:112 */
|
300 642 | Self::ExtraError(variant)
|
643 + | /* ServerOperationErrorGenerator.kt:111 */
|
301 644 | }
|
645 + | /* ServerOperationErrorGenerator.kt:110 */
|
302 646 | }
|
303 647 |
|
304 - | /// 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.
|
648 + | /// /* 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.
|
649 + | /* RustType.kt:516 */
|
305 650 | #[derive(
|
306 651 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
307 652 | )]
|
308 - | pub struct ValidationException {
|
309 - | /// A summary of the validation failure.
|
653 + | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
654 + | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
310 655 | pub message: ::std::string::String,
|
311 - | /// 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.
|
656 + | /// /* 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.
|
312 657 | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
658 + | /* StructureGenerator.kt:201 */
|
313 659 | }
|
660 + | /* StructureGenerator.kt:135 */
|
314 661 | impl ValidationException {
|
315 - | /// 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.
|
662 + | /// /* 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.
|
663 + | /* StructureGenerator.kt:166 */
|
316 664 | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
665 + | /* StructureGenerator.kt:169 */
|
317 666 | self.field_list.as_deref()
|
667 + | /* StructureGenerator.kt:166 */
|
318 668 | }
|
669 + | /* StructureGenerator.kt:135 */
|
319 670 | }
|
671 + | /* ErrorImplGenerator.kt:99 */
|
320 672 | impl ValidationException {
|
673 + | /* ErrorImplGenerator.kt:128 */
|
321 674 | /// Returns the error message.
|
322 675 | pub fn message(&self) -> &str {
|
323 676 | &self.message
|
324 677 | }
|
678 + | /* ErrorImplGenerator.kt:141 */
|
325 679 | #[doc(hidden)]
|
326 680 | /// Returns the error name.
|
327 681 | pub fn name(&self) -> &'static str {
|
328 682 | "ValidationException"
|
329 683 | }
|
684 + | /* ErrorImplGenerator.kt:99 */
|
330 685 | }
|
686 + | /* ErrorImplGenerator.kt:153 */
|
331 687 | impl ::std::fmt::Display for ValidationException {
|
688 + | /* ErrorImplGenerator.kt:154 */
|
332 689 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
690 + | /* ErrorImplGenerator.kt:161 */
|
333 691 | ::std::write!(f, "ValidationException")?;
|
692 + | /* ErrorImplGenerator.kt:166 */
|
334 693 | {
|
694 + | /* ErrorImplGenerator.kt:167 */
|
335 695 | ::std::write!(f, ": {}", &self.message)?;
|
696 + | /* ErrorImplGenerator.kt:166 */
|
336 697 | }
|
698 + | /* ErrorImplGenerator.kt:171 */
|
337 699 | Ok(())
|
700 + | /* ErrorImplGenerator.kt:154 */
|
338 701 | }
|
702 + | /* ErrorImplGenerator.kt:153 */
|
339 703 | }
|
704 + | /* ErrorImplGenerator.kt:175 */
|
340 705 | impl ::std::error::Error for ValidationException {}
|
706 + | /* ServerCodegenVisitor.kt:345 */
|
341 707 | impl ValidationException {
|
342 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
708 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
709 + | /* ServerBuilderGenerator.kt:295 */
|
343 710 | pub fn builder() -> crate::error::validation_exception::Builder {
|
711 + | /* ServerBuilderGenerator.kt:296 */
|
344 712 | crate::error::validation_exception::Builder::default()
|
713 + | /* ServerBuilderGenerator.kt:295 */
|
345 714 | }
|
715 + | /* ServerCodegenVisitor.kt:345 */
|
346 716 | }
|
347 717 |
|
718 + | /* ServerOperationErrorGenerator.kt:63 */
|
348 719 | /// Error type for the `PrimitiveIntOp` operation.
|
720 + | /* ServerOperationErrorGenerator.kt:64 */
|
349 721 | /// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
|
722 + | /* RustType.kt:516 */
|
350 723 | #[derive(::std::fmt::Debug)]
|
351 - | pub enum PrimitiveIntOpError {
|
724 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum PrimitiveIntOpError {
|
725 + | /* ServerOperationErrorGenerator.kt:68 */
|
352 726 | #[allow(missing_docs)] // documentation missing in model
|
727 + | /* ServerOperationErrorGenerator.kt:71 */
|
353 728 | ExtraError(crate::error::ExtraError),
|
729 + | /* ServerOperationErrorGenerator.kt:66 */
|
354 730 | }
|
731 + | /* ServerOperationErrorGenerator.kt:75 */
|
355 732 | impl ::std::fmt::Display for PrimitiveIntOpError {
|
733 + | /* ServerOperationErrorGenerator.kt:76 */
|
356 734 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
735 + | /* ServerOperationErrorGenerator.kt:139 */
|
357 736 | match &self {
|
358 - | PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
|
737 + | /* ServerOperationErrorGenerator.kt:142 */
|
738 + | PrimitiveIntOpError::ExtraError(_inner) =>
|
739 + | /* ServerOperationErrorGenerator.kt:78 */
|
740 + | {
|
741 + | _inner.fmt(f)
|
742 + | }
|
743 + | /* ServerOperationErrorGenerator.kt:139 */
|
359 744 | }
|
745 + | /* ServerOperationErrorGenerator.kt:76 */
|
360 746 | }
|
747 + | /* ServerOperationErrorGenerator.kt:75 */
|
361 748 | }
|
749 + | /* ServerOperationErrorGenerator.kt:83 */
|
362 750 | impl PrimitiveIntOpError {
|
751 + | /* ServerOperationErrorGenerator.kt:87 */
|
363 752 | /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
|
753 + | /* ServerOperationErrorGenerator.kt:88 */
|
364 754 | pub fn is_extra_error(&self) -> bool {
|
755 + | /* ServerOperationErrorGenerator.kt:89 */
|
365 756 | matches!(&self, PrimitiveIntOpError::ExtraError(_))
|
757 + | /* ServerOperationErrorGenerator.kt:88 */
|
366 758 | }
|
759 + | /* ServerOperationErrorGenerator.kt:92 */
|
367 760 | /// Returns the error name string by matching the correct variant.
|
761 + | /* ServerOperationErrorGenerator.kt:93 */
|
368 762 | pub fn name(&self) -> &'static str {
|
763 + | /* ServerOperationErrorGenerator.kt:139 */
|
369 764 | match &self {
|
370 - | PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
|
765 + | /* ServerOperationErrorGenerator.kt:142 */
|
766 + | PrimitiveIntOpError::ExtraError(_inner) =>
|
767 + | /* ServerOperationErrorGenerator.kt:95 */
|
768 + | {
|
769 + | _inner.name()
|
371 770 | }
|
771 + | /* ServerOperationErrorGenerator.kt:139 */
|
372 772 | }
|
773 + | /* ServerOperationErrorGenerator.kt:93 */
|
774 + | }
|
775 + | /* ServerOperationErrorGenerator.kt:83 */
|
373 776 | }
|
777 + | /* ServerOperationErrorGenerator.kt:100 */
|
374 778 | impl ::std::error::Error for PrimitiveIntOpError {
|
779 + | /* ServerOperationErrorGenerator.kt:101 */
|
375 780 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
781 + | /* ServerOperationErrorGenerator.kt:139 */
|
376 782 | match &self {
|
377 - | PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
|
783 + | /* ServerOperationErrorGenerator.kt:142 */
|
784 + | PrimitiveIntOpError::ExtraError(_inner) =>
|
785 + | /* ServerOperationErrorGenerator.kt:103 */
|
786 + | {
|
787 + | Some(_inner)
|
788 + | }
|
789 + | /* ServerOperationErrorGenerator.kt:139 */
|
378 790 | }
|
791 + | /* ServerOperationErrorGenerator.kt:101 */
|
379 792 | }
|
793 + | /* ServerOperationErrorGenerator.kt:100 */
|
380 794 | }
|
795 + | /* ServerOperationErrorGenerator.kt:110 */
|
381 796 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
|
797 + | /* ServerOperationErrorGenerator.kt:111 */
|
382 798 | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
|
799 + | /* ServerOperationErrorGenerator.kt:112 */
|
383 800 | Self::ExtraError(variant)
|
801 + | /* ServerOperationErrorGenerator.kt:111 */
|
384 802 | }
|
803 + | /* ServerOperationErrorGenerator.kt:110 */
|
385 804 | }
|
386 805 |
|
806 + | /* ServerOperationErrorGenerator.kt:63 */
|
387 807 | /// Error type for the `MapWithEnumKeyOp` operation.
|
808 + | /* ServerOperationErrorGenerator.kt:64 */
|
388 809 | /// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
|
810 + | /* RustType.kt:516 */
|
389 811 | #[derive(::std::fmt::Debug)]
|
390 - | pub enum MapWithEnumKeyOpError {
|
391 - | /// 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.
|
812 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum MapWithEnumKeyOpError {
|
813 + | /// /* 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.
|
814 + | /* ServerOperationErrorGenerator.kt:71 */
|
392 815 | ValidationException(crate::error::ValidationException),
|
816 + | /* ServerOperationErrorGenerator.kt:68 */
|
393 817 | #[allow(missing_docs)] // documentation missing in model
|
818 + | /* ServerOperationErrorGenerator.kt:71 */
|
394 819 | ExtraError(crate::error::ExtraError),
|
820 + | /* ServerOperationErrorGenerator.kt:66 */
|
395 821 | }
|
822 + | /* ServerOperationErrorGenerator.kt:75 */
|
396 823 | impl ::std::fmt::Display for MapWithEnumKeyOpError {
|
824 + | /* ServerOperationErrorGenerator.kt:76 */
|
397 825 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
826 + | /* ServerOperationErrorGenerator.kt:139 */
|
398 827 | match &self {
|
399 - | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
|
400 - | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
|
828 + | /* ServerOperationErrorGenerator.kt:142 */
|
829 + | MapWithEnumKeyOpError::ValidationException(_inner) =>
|
830 + | /* ServerOperationErrorGenerator.kt:78 */
|
831 + | {
|
832 + | _inner.fmt(f)
|
833 + | }
|
834 + | ,
|
835 + | /* ServerOperationErrorGenerator.kt:142 */
|
836 + | MapWithEnumKeyOpError::ExtraError(_inner) =>
|
837 + | /* ServerOperationErrorGenerator.kt:78 */
|
838 + | {
|
839 + | _inner.fmt(f)
|
401 840 | }
|
841 + | /* ServerOperationErrorGenerator.kt:139 */
|
402 842 | }
|
843 + | /* ServerOperationErrorGenerator.kt:76 */
|
844 + | }
|
845 + | /* ServerOperationErrorGenerator.kt:75 */
|
403 846 | }
|
847 + | /* ServerOperationErrorGenerator.kt:83 */
|
404 848 | impl MapWithEnumKeyOpError {
|
849 + | /* ServerOperationErrorGenerator.kt:87 */
|
405 850 | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
|
851 + | /* ServerOperationErrorGenerator.kt:88 */
|
406 852 | pub fn is_validation_exception(&self) -> bool {
|
853 + | /* ServerOperationErrorGenerator.kt:89 */
|
407 854 | matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
|
855 + | /* ServerOperationErrorGenerator.kt:88 */
|
408 856 | }
|
857 + | /* ServerOperationErrorGenerator.kt:87 */
|
409 858 | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
|
859 + | /* ServerOperationErrorGenerator.kt:88 */
|
410 860 | pub fn is_extra_error(&self) -> bool {
|
861 + | /* ServerOperationErrorGenerator.kt:89 */
|
411 862 | matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
|
863 + | /* ServerOperationErrorGenerator.kt:88 */
|
412 864 | }
|
865 + | /* ServerOperationErrorGenerator.kt:92 */
|
413 866 | /// Returns the error name string by matching the correct variant.
|
867 + | /* ServerOperationErrorGenerator.kt:93 */
|
414 868 | pub fn name(&self) -> &'static str {
|
869 + | /* ServerOperationErrorGenerator.kt:139 */
|
415 870 | match &self {
|
416 - | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
|
417 - | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
|
871 + | /* ServerOperationErrorGenerator.kt:142 */
|
872 + | MapWithEnumKeyOpError::ValidationException(_inner) =>
|
873 + | /* ServerOperationErrorGenerator.kt:95 */
|
874 + | {
|
875 + | _inner.name()
|
876 + | }
|
877 + | ,
|
878 + | /* ServerOperationErrorGenerator.kt:142 */
|
879 + | MapWithEnumKeyOpError::ExtraError(_inner) =>
|
880 + | /* ServerOperationErrorGenerator.kt:95 */
|
881 + | {
|
882 + | _inner.name()
|
418 883 | }
|
884 + | /* ServerOperationErrorGenerator.kt:139 */
|
419 885 | }
|
886 + | /* ServerOperationErrorGenerator.kt:93 */
|
887 + | }
|
888 + | /* ServerOperationErrorGenerator.kt:83 */
|
420 889 | }
|
890 + | /* ServerOperationErrorGenerator.kt:100 */
|
421 891 | impl ::std::error::Error for MapWithEnumKeyOpError {
|
892 + | /* ServerOperationErrorGenerator.kt:101 */
|
422 893 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
894 + | /* ServerOperationErrorGenerator.kt:139 */
|
423 895 | match &self {
|
424 - | MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
|
425 - | MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
|
896 + | /* ServerOperationErrorGenerator.kt:142 */
|
897 + | MapWithEnumKeyOpError::ValidationException(_inner) =>
|
898 + | /* ServerOperationErrorGenerator.kt:103 */
|
899 + | {
|
900 + | Some(_inner)
|
426 901 | }
|
902 + | ,
|
903 + | /* ServerOperationErrorGenerator.kt:142 */
|
904 + | MapWithEnumKeyOpError::ExtraError(_inner) =>
|
905 + | /* ServerOperationErrorGenerator.kt:103 */
|
906 + | {
|
907 + | Some(_inner)
|
427 908 | }
|
909 + | /* ServerOperationErrorGenerator.kt:139 */
|
910 + | }
|
911 + | /* ServerOperationErrorGenerator.kt:101 */
|
912 + | }
|
913 + | /* ServerOperationErrorGenerator.kt:100 */
|
428 914 | }
|
915 + | /* ServerOperationErrorGenerator.kt:110 */
|
429 916 | impl ::std::convert::From<crate::error::ValidationException>
|
430 917 | for crate::error::MapWithEnumKeyOpError
|
431 918 | {
|
919 + | /* ServerOperationErrorGenerator.kt:111 */
|
432 920 | fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
|
921 + | /* ServerOperationErrorGenerator.kt:112 */
|
433 922 | Self::ValidationException(variant)
|
923 + | /* ServerOperationErrorGenerator.kt:111 */
|
434 924 | }
|
925 + | /* ServerOperationErrorGenerator.kt:110 */
|
435 926 | }
|
927 + | /* ServerOperationErrorGenerator.kt:110 */
|
436 928 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
|
929 + | /* ServerOperationErrorGenerator.kt:111 */
|
437 930 | fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
|
931 + | /* ServerOperationErrorGenerator.kt:112 */
|
438 932 | Self::ExtraError(variant)
|
933 + | /* ServerOperationErrorGenerator.kt:111 */
|
439 934 | }
|
935 + | /* ServerOperationErrorGenerator.kt:110 */
|
440 936 | }
|
441 937 |
|
938 + | /* ServerOperationErrorGenerator.kt:63 */
|
442 939 | /// Error type for the `StatusResponse` operation.
|
940 + | /* ServerOperationErrorGenerator.kt:64 */
|
443 941 | /// Each variant represents an error that can occur for the `StatusResponse` operation.
|
942 + | /* RustType.kt:516 */
|
444 943 | #[derive(::std::fmt::Debug)]
|
445 - | pub enum StatusResponseError {
|
944 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum StatusResponseError {
|
945 + | /* ServerOperationErrorGenerator.kt:68 */
|
446 946 | #[allow(missing_docs)] // documentation missing in model
|
947 + | /* ServerOperationErrorGenerator.kt:71 */
|
447 948 | ExtraError(crate::error::ExtraError),
|
949 + | /* ServerOperationErrorGenerator.kt:66 */
|
448 950 | }
|
951 + | /* ServerOperationErrorGenerator.kt:75 */
|
449 952 | impl ::std::fmt::Display for StatusResponseError {
|
953 + | /* ServerOperationErrorGenerator.kt:76 */
|
450 954 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
955 + | /* ServerOperationErrorGenerator.kt:139 */
|
451 956 | match &self {
|
452 - | StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
|
957 + | /* ServerOperationErrorGenerator.kt:142 */
|
958 + | StatusResponseError::ExtraError(_inner) =>
|
959 + | /* ServerOperationErrorGenerator.kt:78 */
|
960 + | {
|
961 + | _inner.fmt(f)
|
453 962 | }
|
963 + | /* ServerOperationErrorGenerator.kt:139 */
|
454 964 | }
|
965 + | /* ServerOperationErrorGenerator.kt:76 */
|
966 + | }
|
967 + | /* ServerOperationErrorGenerator.kt:75 */
|
455 968 | }
|
969 + | /* ServerOperationErrorGenerator.kt:83 */
|
456 970 | impl StatusResponseError {
|
971 + | /* ServerOperationErrorGenerator.kt:87 */
|
457 972 | /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
|
973 + | /* ServerOperationErrorGenerator.kt:88 */
|
458 974 | pub fn is_extra_error(&self) -> bool {
|
975 + | /* ServerOperationErrorGenerator.kt:89 */
|
459 976 | matches!(&self, StatusResponseError::ExtraError(_))
|
977 + | /* ServerOperationErrorGenerator.kt:88 */
|
460 978 | }
|
979 + | /* ServerOperationErrorGenerator.kt:92 */
|
461 980 | /// Returns the error name string by matching the correct variant.
|
981 + | /* ServerOperationErrorGenerator.kt:93 */
|
462 982 | pub fn name(&self) -> &'static str {
|
983 + | /* ServerOperationErrorGenerator.kt:139 */
|
463 984 | match &self {
|
464 - | StatusResponseError::ExtraError(_inner) => _inner.name(),
|
985 + | /* ServerOperationErrorGenerator.kt:142 */
|
986 + | StatusResponseError::ExtraError(_inner) =>
|
987 + | /* ServerOperationErrorGenerator.kt:95 */
|
988 + | {
|
989 + | _inner.name()
|
990 + | }
|
991 + | /* ServerOperationErrorGenerator.kt:139 */
|
465 992 | }
|
993 + | /* ServerOperationErrorGenerator.kt:93 */
|
466 994 | }
|
995 + | /* ServerOperationErrorGenerator.kt:83 */
|
467 996 | }
|
997 + | /* ServerOperationErrorGenerator.kt:100 */
|
468 998 | impl ::std::error::Error for StatusResponseError {
|
999 + | /* ServerOperationErrorGenerator.kt:101 */
|
469 1000 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1001 + | /* ServerOperationErrorGenerator.kt:139 */
|
470 1002 | match &self {
|
471 - | StatusResponseError::ExtraError(_inner) => Some(_inner),
|
1003 + | /* ServerOperationErrorGenerator.kt:142 */
|
1004 + | StatusResponseError::ExtraError(_inner) =>
|
1005 + | /* ServerOperationErrorGenerator.kt:103 */
|
1006 + | {
|
1007 + | Some(_inner)
|
1008 + | }
|
1009 + | /* ServerOperationErrorGenerator.kt:139 */
|
472 1010 | }
|
1011 + | /* ServerOperationErrorGenerator.kt:101 */
|
473 1012 | }
|
1013 + | /* ServerOperationErrorGenerator.kt:100 */
|
474 1014 | }
|
1015 + | /* ServerOperationErrorGenerator.kt:110 */
|
475 1016 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
|
1017 + | /* ServerOperationErrorGenerator.kt:111 */
|
476 1018 | fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
|
1019 + | /* ServerOperationErrorGenerator.kt:112 */
|
477 1020 | Self::ExtraError(variant)
|
1021 + | /* ServerOperationErrorGenerator.kt:111 */
|
478 1022 | }
|
1023 + | /* ServerOperationErrorGenerator.kt:110 */
|
479 1024 | }
|
480 1025 |
|
1026 + | /* ServerOperationErrorGenerator.kt:63 */
|
481 1027 | /// Error type for the `EnumQuery` operation.
|
1028 + | /* ServerOperationErrorGenerator.kt:64 */
|
482 1029 | /// Each variant represents an error that can occur for the `EnumQuery` operation.
|
1030 + | /* RustType.kt:516 */
|
483 1031 | #[derive(::std::fmt::Debug)]
|
484 - | pub enum EnumQueryError {
|
485 - | /// 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.
|
1032 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EnumQueryError {
|
1033 + | /// /* 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.
|
1034 + | /* ServerOperationErrorGenerator.kt:71 */
|
486 1035 | ValidationException(crate::error::ValidationException),
|
1036 + | /* ServerOperationErrorGenerator.kt:68 */
|
487 1037 | #[allow(missing_docs)] // documentation missing in model
|
1038 + | /* ServerOperationErrorGenerator.kt:71 */
|
488 1039 | ExtraError(crate::error::ExtraError),
|
1040 + | /* ServerOperationErrorGenerator.kt:66 */
|
489 1041 | }
|
1042 + | /* ServerOperationErrorGenerator.kt:75 */
|
490 1043 | impl ::std::fmt::Display for EnumQueryError {
|
1044 + | /* ServerOperationErrorGenerator.kt:76 */
|
491 1045 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1046 + | /* ServerOperationErrorGenerator.kt:139 */
|
492 1047 | match &self {
|
493 - | EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
|
494 - | EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
|
1048 + | /* ServerOperationErrorGenerator.kt:142 */
|
1049 + | EnumQueryError::ValidationException(_inner) =>
|
1050 + | /* ServerOperationErrorGenerator.kt:78 */
|
1051 + | {
|
1052 + | _inner.fmt(f)
|
495 1053 | }
|
1054 + | ,
|
1055 + | /* ServerOperationErrorGenerator.kt:142 */
|
1056 + | EnumQueryError::ExtraError(_inner) =>
|
1057 + | /* ServerOperationErrorGenerator.kt:78 */
|
1058 + | {
|
1059 + | _inner.fmt(f)
|
496 1060 | }
|
1061 + | /* ServerOperationErrorGenerator.kt:139 */
|
1062 + | }
|
1063 + | /* ServerOperationErrorGenerator.kt:76 */
|
1064 + | }
|
1065 + | /* ServerOperationErrorGenerator.kt:75 */
|
497 1066 | }
|
1067 + | /* ServerOperationErrorGenerator.kt:83 */
|
498 1068 | impl EnumQueryError {
|
1069 + | /* ServerOperationErrorGenerator.kt:87 */
|
499 1070 | /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
|
1071 + | /* ServerOperationErrorGenerator.kt:88 */
|
500 1072 | pub fn is_validation_exception(&self) -> bool {
|
1073 + | /* ServerOperationErrorGenerator.kt:89 */
|
501 1074 | matches!(&self, EnumQueryError::ValidationException(_))
|
1075 + | /* ServerOperationErrorGenerator.kt:88 */
|
502 1076 | }
|
1077 + | /* ServerOperationErrorGenerator.kt:87 */
|
503 1078 | /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
|
1079 + | /* ServerOperationErrorGenerator.kt:88 */
|
504 1080 | pub fn is_extra_error(&self) -> bool {
|
1081 + | /* ServerOperationErrorGenerator.kt:89 */
|
505 1082 | matches!(&self, EnumQueryError::ExtraError(_))
|
1083 + | /* ServerOperationErrorGenerator.kt:88 */
|
506 1084 | }
|
1085 + | /* ServerOperationErrorGenerator.kt:92 */
|
507 1086 | /// Returns the error name string by matching the correct variant.
|
1087 + | /* ServerOperationErrorGenerator.kt:93 */
|
508 1088 | pub fn name(&self) -> &'static str {
|
1089 + | /* ServerOperationErrorGenerator.kt:139 */
|
509 1090 | match &self {
|
510 - | EnumQueryError::ValidationException(_inner) => _inner.name(),
|
511 - | EnumQueryError::ExtraError(_inner) => _inner.name(),
|
1091 + | /* ServerOperationErrorGenerator.kt:142 */
|
1092 + | EnumQueryError::ValidationException(_inner) =>
|
1093 + | /* ServerOperationErrorGenerator.kt:95 */
|
1094 + | {
|
1095 + | _inner.name()
|
512 1096 | }
|
1097 + | ,
|
1098 + | /* ServerOperationErrorGenerator.kt:142 */
|
1099 + | EnumQueryError::ExtraError(_inner) =>
|
1100 + | /* ServerOperationErrorGenerator.kt:95 */
|
1101 + | {
|
1102 + | _inner.name()
|
1103 + | }
|
1104 + | /* ServerOperationErrorGenerator.kt:139 */
|
1105 + | }
|
1106 + | /* ServerOperationErrorGenerator.kt:93 */
|
513 1107 | }
|
1108 + | /* ServerOperationErrorGenerator.kt:83 */
|
514 1109 | }
|
1110 + | /* ServerOperationErrorGenerator.kt:100 */
|
515 1111 | impl ::std::error::Error for EnumQueryError {
|
1112 + | /* ServerOperationErrorGenerator.kt:101 */
|
516 1113 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1114 + | /* ServerOperationErrorGenerator.kt:139 */
|
517 1115 | match &self {
|
518 - | EnumQueryError::ValidationException(_inner) => Some(_inner),
|
519 - | EnumQueryError::ExtraError(_inner) => Some(_inner),
|
1116 + | /* ServerOperationErrorGenerator.kt:142 */
|
1117 + | EnumQueryError::ValidationException(_inner) =>
|
1118 + | /* ServerOperationErrorGenerator.kt:103 */
|
1119 + | {
|
1120 + | Some(_inner)
|
1121 + | }
|
1122 + | ,
|
1123 + | /* ServerOperationErrorGenerator.kt:142 */
|
1124 + | EnumQueryError::ExtraError(_inner) =>
|
1125 + | /* ServerOperationErrorGenerator.kt:103 */
|
1126 + | {
|
1127 + | Some(_inner)
|
520 1128 | }
|
1129 + | /* ServerOperationErrorGenerator.kt:139 */
|
521 1130 | }
|
1131 + | /* ServerOperationErrorGenerator.kt:101 */
|
1132 + | }
|
1133 + | /* ServerOperationErrorGenerator.kt:100 */
|
522 1134 | }
|
1135 + | /* ServerOperationErrorGenerator.kt:110 */
|
523 1136 | impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
|
1137 + | /* ServerOperationErrorGenerator.kt:111 */
|
524 1138 | fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
|
1139 + | /* ServerOperationErrorGenerator.kt:112 */
|
525 1140 | Self::ValidationException(variant)
|
1141 + | /* ServerOperationErrorGenerator.kt:111 */
|
526 1142 | }
|
1143 + | /* ServerOperationErrorGenerator.kt:110 */
|
527 1144 | }
|
1145 + | /* ServerOperationErrorGenerator.kt:110 */
|
528 1146 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
|
1147 + | /* ServerOperationErrorGenerator.kt:111 */
|
529 1148 | fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
|
1149 + | /* ServerOperationErrorGenerator.kt:112 */
|
530 1150 | Self::ExtraError(variant)
|
1151 + | /* ServerOperationErrorGenerator.kt:111 */
|
531 1152 | }
|
1153 + | /* ServerOperationErrorGenerator.kt:110 */
|
532 1154 | }
|
533 1155 |
|
1156 + | /* ServerOperationErrorGenerator.kt:63 */
|
534 1157 | /// Error type for the `PrimitiveIntHeader` operation.
|
1158 + | /* ServerOperationErrorGenerator.kt:64 */
|
535 1159 | /// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
|
1160 + | /* RustType.kt:516 */
|
536 1161 | #[derive(::std::fmt::Debug)]
|
537 - | pub enum PrimitiveIntHeaderError {
|
538 - | /// 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.
|
1162 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum PrimitiveIntHeaderError {
|
1163 + | /// /* 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.
|
1164 + | /* ServerOperationErrorGenerator.kt:71 */
|
539 1165 | ValidationException(crate::error::ValidationException),
|
1166 + | /* ServerOperationErrorGenerator.kt:68 */
|
540 1167 | #[allow(missing_docs)] // documentation missing in model
|
1168 + | /* ServerOperationErrorGenerator.kt:71 */
|
541 1169 | ExtraError(crate::error::ExtraError),
|
1170 + | /* ServerOperationErrorGenerator.kt:66 */
|
542 1171 | }
|
1172 + | /* ServerOperationErrorGenerator.kt:75 */
|
543 1173 | impl ::std::fmt::Display for PrimitiveIntHeaderError {
|
1174 + | /* ServerOperationErrorGenerator.kt:76 */
|
544 1175 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1176 + | /* ServerOperationErrorGenerator.kt:139 */
|
545 1177 | match &self {
|
546 - | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
|
547 - | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
|
1178 + | /* ServerOperationErrorGenerator.kt:142 */
|
1179 + | PrimitiveIntHeaderError::ValidationException(_inner) =>
|
1180 + | /* ServerOperationErrorGenerator.kt:78 */
|
1181 + | {
|
1182 + | _inner.fmt(f)
|
1183 + | }
|
1184 + | ,
|
1185 + | /* ServerOperationErrorGenerator.kt:142 */
|
1186 + | PrimitiveIntHeaderError::ExtraError(_inner) =>
|
1187 + | /* ServerOperationErrorGenerator.kt:78 */
|
1188 + | {
|
1189 + | _inner.fmt(f)
|
548 1190 | }
|
1191 + | /* ServerOperationErrorGenerator.kt:139 */
|
549 1192 | }
|
1193 + | /* ServerOperationErrorGenerator.kt:76 */
|
1194 + | }
|
1195 + | /* ServerOperationErrorGenerator.kt:75 */
|
550 1196 | }
|
1197 + | /* ServerOperationErrorGenerator.kt:83 */
|
551 1198 | impl PrimitiveIntHeaderError {
|
1199 + | /* ServerOperationErrorGenerator.kt:87 */
|
552 1200 | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
|
1201 + | /* ServerOperationErrorGenerator.kt:88 */
|
553 1202 | pub fn is_validation_exception(&self) -> bool {
|
1203 + | /* ServerOperationErrorGenerator.kt:89 */
|
554 1204 | matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
|
1205 + | /* ServerOperationErrorGenerator.kt:88 */
|
555 1206 | }
|
1207 + | /* ServerOperationErrorGenerator.kt:87 */
|
556 1208 | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
|
1209 + | /* ServerOperationErrorGenerator.kt:88 */
|
557 1210 | pub fn is_extra_error(&self) -> bool {
|
1211 + | /* ServerOperationErrorGenerator.kt:89 */
|
558 1212 | matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
|
1213 + | /* ServerOperationErrorGenerator.kt:88 */
|
559 1214 | }
|
1215 + | /* ServerOperationErrorGenerator.kt:92 */
|
560 1216 | /// Returns the error name string by matching the correct variant.
|
1217 + | /* ServerOperationErrorGenerator.kt:93 */
|
561 1218 | pub fn name(&self) -> &'static str {
|
1219 + | /* ServerOperationErrorGenerator.kt:139 */
|
562 1220 | match &self {
|
563 - | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
|
564 - | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
|
1221 + | /* ServerOperationErrorGenerator.kt:142 */
|
1222 + | PrimitiveIntHeaderError::ValidationException(_inner) =>
|
1223 + | /* ServerOperationErrorGenerator.kt:95 */
|
1224 + | {
|
1225 + | _inner.name()
|
565 1226 | }
|
1227 + | ,
|
1228 + | /* ServerOperationErrorGenerator.kt:142 */
|
1229 + | PrimitiveIntHeaderError::ExtraError(_inner) =>
|
1230 + | /* ServerOperationErrorGenerator.kt:95 */
|
1231 + | {
|
1232 + | _inner.name()
|
566 1233 | }
|
1234 + | /* ServerOperationErrorGenerator.kt:139 */
|
1235 + | }
|
1236 + | /* ServerOperationErrorGenerator.kt:93 */
|
1237 + | }
|
1238 + | /* ServerOperationErrorGenerator.kt:83 */
|
567 1239 | }
|
1240 + | /* ServerOperationErrorGenerator.kt:100 */
|
568 1241 | impl ::std::error::Error for PrimitiveIntHeaderError {
|
1242 + | /* ServerOperationErrorGenerator.kt:101 */
|
569 1243 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1244 + | /* ServerOperationErrorGenerator.kt:139 */
|
570 1245 | match &self {
|
571 - | PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
|
572 - | PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
|
1246 + | /* ServerOperationErrorGenerator.kt:142 */
|
1247 + | PrimitiveIntHeaderError::ValidationException(_inner) =>
|
1248 + | /* ServerOperationErrorGenerator.kt:103 */
|
1249 + | {
|
1250 + | Some(_inner)
|
1251 + | }
|
1252 + | ,
|
1253 + | /* ServerOperationErrorGenerator.kt:142 */
|
1254 + | PrimitiveIntHeaderError::ExtraError(_inner) =>
|
1255 + | /* ServerOperationErrorGenerator.kt:103 */
|
1256 + | {
|
1257 + | Some(_inner)
|
1258 + | }
|
1259 + | /* ServerOperationErrorGenerator.kt:139 */
|
573 1260 | }
|
1261 + | /* ServerOperationErrorGenerator.kt:101 */
|
574 1262 | }
|
1263 + | /* ServerOperationErrorGenerator.kt:100 */
|
575 1264 | }
|
1265 + | /* ServerOperationErrorGenerator.kt:110 */
|
576 1266 | impl ::std::convert::From<crate::error::ValidationException>
|
577 1267 | for crate::error::PrimitiveIntHeaderError
|
578 1268 | {
|
1269 + | /* ServerOperationErrorGenerator.kt:111 */
|
579 1270 | fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
|
1271 + | /* ServerOperationErrorGenerator.kt:112 */
|
580 1272 | Self::ValidationException(variant)
|
1273 + | /* ServerOperationErrorGenerator.kt:111 */
|
581 1274 | }
|
1275 + | /* ServerOperationErrorGenerator.kt:110 */
|
582 1276 | }
|
1277 + | /* ServerOperationErrorGenerator.kt:110 */
|
583 1278 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
|
1279 + | /* ServerOperationErrorGenerator.kt:111 */
|
584 1280 | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
|
1281 + | /* ServerOperationErrorGenerator.kt:112 */
|
585 1282 | Self::ExtraError(variant)
|
1283 + | /* ServerOperationErrorGenerator.kt:111 */
|
586 1284 | }
|
1285 + | /* ServerOperationErrorGenerator.kt:110 */
|
587 1286 | }
|
588 1287 |
|
1288 + | /* ServerOperationErrorGenerator.kt:63 */
|
589 1289 | /// Error type for the `StringPayload` operation.
|
1290 + | /* ServerOperationErrorGenerator.kt:64 */
|
590 1291 | /// Each variant represents an error that can occur for the `StringPayload` operation.
|
1292 + | /* RustType.kt:516 */
|
591 1293 | #[derive(::std::fmt::Debug)]
|
592 - | pub enum StringPayloadError {
|
1294 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum StringPayloadError {
|
1295 + | /* ServerOperationErrorGenerator.kt:68 */
|
593 1296 | #[allow(missing_docs)] // documentation missing in model
|
1297 + | /* ServerOperationErrorGenerator.kt:71 */
|
594 1298 | ExtraError(crate::error::ExtraError),
|
1299 + | /* ServerOperationErrorGenerator.kt:66 */
|
595 1300 | }
|
1301 + | /* ServerOperationErrorGenerator.kt:75 */
|
596 1302 | impl ::std::fmt::Display for StringPayloadError {
|
1303 + | /* ServerOperationErrorGenerator.kt:76 */
|
597 1304 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1305 + | /* ServerOperationErrorGenerator.kt:139 */
|
598 1306 | match &self {
|
599 - | StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
|
1307 + | /* ServerOperationErrorGenerator.kt:142 */
|
1308 + | StringPayloadError::ExtraError(_inner) =>
|
1309 + | /* ServerOperationErrorGenerator.kt:78 */
|
1310 + | {
|
1311 + | _inner.fmt(f)
|
1312 + | }
|
1313 + | /* ServerOperationErrorGenerator.kt:139 */
|
600 1314 | }
|
1315 + | /* ServerOperationErrorGenerator.kt:76 */
|
601 1316 | }
|
1317 + | /* ServerOperationErrorGenerator.kt:75 */
|
602 1318 | }
|
1319 + | /* ServerOperationErrorGenerator.kt:83 */
|
603 1320 | impl StringPayloadError {
|
1321 + | /* ServerOperationErrorGenerator.kt:87 */
|
604 1322 | /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
|
1323 + | /* ServerOperationErrorGenerator.kt:88 */
|
605 1324 | pub fn is_extra_error(&self) -> bool {
|
1325 + | /* ServerOperationErrorGenerator.kt:89 */
|
606 1326 | matches!(&self, StringPayloadError::ExtraError(_))
|
1327 + | /* ServerOperationErrorGenerator.kt:88 */
|
607 1328 | }
|
1329 + | /* ServerOperationErrorGenerator.kt:92 */
|
608 1330 | /// Returns the error name string by matching the correct variant.
|
1331 + | /* ServerOperationErrorGenerator.kt:93 */
|
609 1332 | pub fn name(&self) -> &'static str {
|
1333 + | /* ServerOperationErrorGenerator.kt:139 */
|
610 1334 | match &self {
|
611 - | StringPayloadError::ExtraError(_inner) => _inner.name(),
|
1335 + | /* ServerOperationErrorGenerator.kt:142 */
|
1336 + | StringPayloadError::ExtraError(_inner) =>
|
1337 + | /* ServerOperationErrorGenerator.kt:95 */
|
1338 + | {
|
1339 + | _inner.name()
|
612 1340 | }
|
1341 + | /* ServerOperationErrorGenerator.kt:139 */
|
613 1342 | }
|
1343 + | /* ServerOperationErrorGenerator.kt:93 */
|
1344 + | }
|
1345 + | /* ServerOperationErrorGenerator.kt:83 */
|
614 1346 | }
|
1347 + | /* ServerOperationErrorGenerator.kt:100 */
|
615 1348 | impl ::std::error::Error for StringPayloadError {
|
1349 + | /* ServerOperationErrorGenerator.kt:101 */
|
616 1350 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1351 + | /* ServerOperationErrorGenerator.kt:139 */
|
617 1352 | match &self {
|
618 - | StringPayloadError::ExtraError(_inner) => Some(_inner),
|
1353 + | /* ServerOperationErrorGenerator.kt:142 */
|
1354 + | StringPayloadError::ExtraError(_inner) =>
|
1355 + | /* ServerOperationErrorGenerator.kt:103 */
|
1356 + | {
|
1357 + | Some(_inner)
|
1358 + | }
|
1359 + | /* ServerOperationErrorGenerator.kt:139 */
|
619 1360 | }
|
1361 + | /* ServerOperationErrorGenerator.kt:101 */
|
620 1362 | }
|
1363 + | /* ServerOperationErrorGenerator.kt:100 */
|
621 1364 | }
|
1365 + | /* ServerOperationErrorGenerator.kt:110 */
|
622 1366 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
|
1367 + | /* ServerOperationErrorGenerator.kt:111 */
|
623 1368 | fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
|
1369 + | /* ServerOperationErrorGenerator.kt:112 */
|
624 1370 | Self::ExtraError(variant)
|
1371 + | /* ServerOperationErrorGenerator.kt:111 */
|
625 1372 | }
|
1373 + | /* ServerOperationErrorGenerator.kt:110 */
|
626 1374 | }
|
627 - | /// See [`ExtraError`](crate::error::ExtraError).
|
1375 + | /// /* ServerBuilderGenerator.kt:171 */See [`ExtraError`](crate::error::ExtraError).
|
628 1376 | pub mod extra_error {
|
629 1377 |
|
1378 + | /* ServerBuilderGenerator.kt:461 */
|
630 1379 | impl ::std::convert::From<Builder> for crate::error::ExtraError {
|
631 1380 | fn from(builder: Builder) -> Self {
|
632 1381 | builder.build()
|
633 1382 | }
|
634 1383 | }
|
635 - | /// A builder for [`ExtraError`](crate::error::ExtraError).
|
1384 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ExtraError`](crate::error::ExtraError).
|
1385 + | /* RustType.kt:516 */
|
636 1386 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
637 - | pub struct Builder {}
|
1387 + | /* ServerBuilderGenerator.kt:211 */
|
1388 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1389 + | /* ServerBuilderGenerator.kt:215 */
|
638 1390 | impl Builder {
|
639 - | /// Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
|
1391 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
|
1392 + | /* ServerBuilderGenerator.kt:271 */
|
640 1393 | pub fn build(self) -> crate::error::ExtraError {
|
641 1394 | self.build_enforcing_all_constraints()
|
642 1395 | }
|
1396 + | /* ServerBuilderGenerator.kt:283 */
|
643 1397 | fn build_enforcing_all_constraints(self) -> crate::error::ExtraError {
|
644 - | crate::error::ExtraError {}
|
1398 + | /* ServerBuilderGenerator.kt:542 */
|
1399 + | crate::error::ExtraError {
|
1400 + | /* ServerBuilderGenerator.kt:542 */}
|
1401 + | /* ServerBuilderGenerator.kt:283 */
|
645 1402 | }
|
1403 + | /* ServerBuilderGenerator.kt:215 */
|
646 1404 | }
|
1405 + |
|
1406 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
647 1407 | }
|
648 - | /// See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
1408 + | /// /* ServerBuilderGenerator.kt:171 */See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
649 1409 | pub mod case_insensitive_error {
|
650 1410 |
|
1411 + | /* ServerBuilderGenerator.kt:461 */
|
651 1412 | impl ::std::convert::From<Builder> for crate::error::CaseInsensitiveError {
|
652 1413 | fn from(builder: Builder) -> Self {
|
653 1414 | builder.build()
|
654 1415 | }
|
655 1416 | }
|
656 - | /// A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
1417 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
1418 + | /* RustType.kt:516 */
|
657 1419 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1420 + | /* ServerBuilderGenerator.kt:211 */
|
658 1421 | pub struct Builder {
|
1422 + | /* ServerBuilderGenerator.kt:308 */
|
659 1423 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1424 + | /* ServerBuilderGenerator.kt:211 */
|
660 1425 | }
|
1426 + | /* ServerBuilderGenerator.kt:215 */
|
661 1427 | impl Builder {
|
1428 + | /* ServerBuilderGenerator.kt:331 */
|
662 1429 | #[allow(missing_docs)] // documentation missing in model
|
1430 + | /* ServerBuilderGenerator.kt:343 */
|
663 1431 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
664 - | self.message = input;
|
1432 + | /* ServerBuilderGenerator.kt:344 */
|
1433 + | self.message =
|
1434 + | /* ServerBuilderGenerator.kt:376 */input
|
1435 + | /* ServerBuilderGenerator.kt:344 */;
|
665 1436 | self
|
1437 + | /* ServerBuilderGenerator.kt:343 */
|
666 1438 | }
|
667 - | /// Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
1439 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
1440 + | /* ServerBuilderGenerator.kt:271 */
|
668 1441 | pub fn build(self) -> crate::error::CaseInsensitiveError {
|
669 1442 | self.build_enforcing_all_constraints()
|
670 1443 | }
|
1444 + | /* ServerBuilderGenerator.kt:283 */
|
671 1445 | fn build_enforcing_all_constraints(self) -> crate::error::CaseInsensitiveError {
|
1446 + | /* ServerBuilderGenerator.kt:542 */
|
672 1447 | crate::error::CaseInsensitiveError {
|
1448 + | /* ServerBuilderGenerator.kt:546 */
|
673 1449 | message: self.message,
|
1450 + | /* ServerBuilderGenerator.kt:542 */
|
674 1451 | }
|
1452 + | /* ServerBuilderGenerator.kt:283 */
|
675 1453 | }
|
1454 + | /* ServerBuilderGenerator.kt:215 */
|
676 1455 | }
|
1456 + |
|
1457 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
677 1458 | }
|
678 - | /// See [`ValidationException`](crate::error::ValidationException).
|
1459 + | /// /* ServerBuilderGenerator.kt:171 */See [`ValidationException`](crate::error::ValidationException).
|
679 1460 | pub mod validation_exception {
|
680 1461 |
|
1462 + | /* RustType.kt:516 */
|
681 1463 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
682 - | /// Holds one variant for each of the ways the builder can fail.
|
1464 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1465 + | /* RustType.kt:516 */
|
683 1466 | #[non_exhaustive]
|
1467 + | /* ServerBuilderConstraintViolations.kt:75 */
|
684 1468 | #[allow(clippy::enum_variant_names)]
|
685 1469 | pub enum ConstraintViolation {
|
686 - | /// `message` was not provided but it is required when building `ValidationException`.
|
1470 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
|
1471 + | /* ServerBuilderConstraintViolations.kt:143 */
|
687 1472 | MissingMessage,
|
1473 + | /* ServerBuilderConstraintViolations.kt:75 */
|
688 1474 | }
|
1475 + | /* ServerBuilderConstraintViolations.kt:117 */
|
689 1476 | impl ::std::fmt::Display for ConstraintViolation {
|
1477 + | /* ServerBuilderConstraintViolations.kt:118 */
|
690 1478 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1479 + | /* ServerBuilderConstraintViolations.kt:119 */
|
691 1480 | match self {
|
692 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
693 - | }
|
1481 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
1482 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1483 + | /* ServerBuilderConstraintViolations.kt:118 */
|
694 1484 | }
|
1485 + | /* ServerBuilderConstraintViolations.kt:117 */
|
695 1486 | }
|
1487 + | /* ServerBuilderConstraintViolations.kt:84 */
|
696 1488 | impl ::std::error::Error for ConstraintViolation {}
|
1489 + | /* ServerBuilderGenerator.kt:446 */
|
697 1490 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
698 1491 | type Error = ConstraintViolation;
|
699 1492 |
|
700 1493 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
701 1494 | builder.build()
|
702 1495 | }
|
703 1496 | }
|
704 - | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
1497 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ValidationException`](crate::error::ValidationException).
|
1498 + | /* RustType.kt:516 */
|
705 1499 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1500 + | /* ServerBuilderGenerator.kt:211 */
|
706 1501 | pub struct Builder {
|
1502 + | /* ServerBuilderGenerator.kt:308 */
|
707 1503 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1504 + | /* ServerBuilderGenerator.kt:308 */
|
708 1505 | pub(crate) field_list:
|
709 1506 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1507 + | /* ServerBuilderGenerator.kt:211 */
|
710 1508 | }
|
1509 + | /* ServerBuilderGenerator.kt:215 */
|
711 1510 | impl Builder {
|
712 - | /// A summary of the validation failure.
|
1511 + | /// /* ServerBuilderGenerator.kt:331 */A summary of the validation failure.
|
1512 + | /* ServerBuilderGenerator.kt:343 */
|
713 1513 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
714 - | self.message = Some(input);
|
1514 + | /* ServerBuilderGenerator.kt:344 */
|
1515 + | self.message =
|
1516 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1517 + | /* ServerBuilderGenerator.kt:376 */input
|
1518 + | /* ServerBuilderGenerator.kt:345 */)
|
1519 + | /* ServerBuilderGenerator.kt:344 */;
|
715 1520 | self
|
1521 + | /* ServerBuilderGenerator.kt:343 */
|
716 1522 | }
|
717 - | /// 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.
|
1523 + | /// /* ServerBuilderGenerator.kt:331 */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.
|
1524 + | /* ServerBuilderGenerator.kt:343 */
|
718 1525 | pub fn field_list(
|
719 1526 | mut self,
|
720 1527 | input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
721 1528 | ) -> Self {
|
722 - | self.field_list = input;
|
1529 + | /* ServerBuilderGenerator.kt:344 */
|
1530 + | self.field_list =
|
1531 + | /* ServerBuilderGenerator.kt:376 */input
|
1532 + | /* ServerBuilderGenerator.kt:344 */;
|
723 1533 | self
|
1534 + | /* ServerBuilderGenerator.kt:343 */
|
724 1535 | }
|
725 - | /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
726 - | ///
|
1536 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
1537 + | /// /* ServerBuilderGenerator.kt:260 */
|
727 1538 | /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if a [`ConstraintViolation`] occurs.
|
728 1539 | ///
|
1540 + | /* ServerBuilderGenerator.kt:271 */
|
729 1541 | pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
730 1542 | self.build_enforcing_all_constraints()
|
731 1543 | }
|
1544 + | /* ServerBuilderGenerator.kt:283 */
|
732 1545 | fn build_enforcing_all_constraints(
|
733 1546 | self,
|
734 1547 | ) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
735 - | Ok(crate::error::ValidationException {
|
736 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
1548 + | /* ServerBuilderGenerator.kt:287 */
|
1549 + | Ok(
|
1550 + | /* ServerBuilderGenerator.kt:542 */
|
1551 + | crate::error::ValidationException {
|
1552 + | /* ServerBuilderGenerator.kt:546 */
|
1553 + | message: self
|
1554 + | .message
|
1555 + | /* ServerBuilderGenerator.kt:569 */
|
1556 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
1557 + | /* ServerBuilderGenerator.kt:546 */
|
737 1558 | field_list: self.field_list,
|
738 - | })
|
1559 + | /* ServerBuilderGenerator.kt:542 */
|
1560 + | }, /* ServerBuilderGenerator.kt:287 */
|
1561 + | )
|
1562 + | /* ServerBuilderGenerator.kt:283 */
|
739 1563 | }
|
1564 + | /* ServerBuilderGenerator.kt:215 */
|
740 1565 | }
|
1566 + |
|
1567 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
741 1568 | }
|