1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* ServerOperationErrorGenerator.kt:63 */
|
2 3 | /// Error type for the `EventStreamsOperation` operation.
|
4 + | /* ServerOperationErrorGenerator.kt:64 */
|
3 5 | /// Each variant represents an error that can occur for the `EventStreamsOperation` operation.
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::fmt::Debug)]
|
5 - | pub enum EventStreamsOperationError {
|
6 - | /// 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.
|
8 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EventStreamsOperationError {
|
9 + | /// /* 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 + | /* ServerOperationErrorGenerator.kt:71 */
|
7 11 | ValidationException(crate::error::ValidationException),
|
12 + | /* ServerOperationErrorGenerator.kt:68 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
14 + | /* ServerOperationErrorGenerator.kt:71 */
|
9 15 | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
16 + | /* ServerOperationErrorGenerator.kt:68 */
|
10 17 | #[allow(missing_docs)] // documentation missing in model
|
18 + | /* ServerOperationErrorGenerator.kt:71 */
|
11 19 | InternalServerError(crate::error::InternalServerError),
|
20 + | /* ServerOperationErrorGenerator.kt:66 */
|
12 21 | }
|
22 + | /* ServerOperationErrorGenerator.kt:75 */
|
13 23 | impl ::std::fmt::Display for EventStreamsOperationError {
|
24 + | /* ServerOperationErrorGenerator.kt:76 */
|
14 25 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
26 + | /* ServerOperationErrorGenerator.kt:139 */
|
15 27 | match &self {
|
16 - | EventStreamsOperationError::ValidationException(_inner) => _inner.fmt(f),
|
17 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
18 - | EventStreamsOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
28 + | /* ServerOperationErrorGenerator.kt:142 */
|
29 + | EventStreamsOperationError::ValidationException(_inner) =>
|
30 + | /* ServerOperationErrorGenerator.kt:78 */
|
31 + | {
|
32 + | _inner.fmt(f)
|
33 + | }
|
34 + | ,
|
35 + | /* ServerOperationErrorGenerator.kt:142 */
|
36 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) =>
|
37 + | /* ServerOperationErrorGenerator.kt:78 */
|
38 + | {
|
39 + | _inner.fmt(f)
|
40 + | }
|
41 + | ,
|
42 + | /* ServerOperationErrorGenerator.kt:142 */
|
43 + | EventStreamsOperationError::InternalServerError(_inner) =>
|
44 + | /* ServerOperationErrorGenerator.kt:78 */
|
45 + | {
|
46 + | _inner.fmt(f)
|
47 + | }
|
48 + | /* ServerOperationErrorGenerator.kt:139 */
|
19 49 | }
|
50 + | /* ServerOperationErrorGenerator.kt:76 */
|
20 51 | }
|
52 + | /* ServerOperationErrorGenerator.kt:75 */
|
21 53 | }
|
54 + | /* ServerOperationErrorGenerator.kt:83 */
|
22 55 | impl EventStreamsOperationError {
|
56 + | /* ServerOperationErrorGenerator.kt:87 */
|
23 57 | /// Returns `true` if the error kind is `EventStreamsOperationError::ValidationException`.
|
58 + | /* ServerOperationErrorGenerator.kt:88 */
|
24 59 | pub fn is_validation_exception(&self) -> bool {
|
60 + | /* ServerOperationErrorGenerator.kt:89 */
|
25 61 | matches!(&self, EventStreamsOperationError::ValidationException(_))
|
62 + | /* ServerOperationErrorGenerator.kt:88 */
|
26 63 | }
|
64 + | /* ServerOperationErrorGenerator.kt:87 */
|
27 65 | /// Returns `true` if the error kind is `EventStreamsOperationError::EventStreamErrorMessage`.
|
66 + | /* ServerOperationErrorGenerator.kt:88 */
|
28 67 | pub fn is_event_stream_error_message(&self) -> bool {
|
68 + | /* ServerOperationErrorGenerator.kt:89 */
|
29 69 | matches!(
|
30 70 | &self,
|
31 71 | EventStreamsOperationError::EventStreamErrorMessage(_)
|
32 72 | )
|
73 + | /* ServerOperationErrorGenerator.kt:88 */
|
33 74 | }
|
75 + | /* ServerOperationErrorGenerator.kt:87 */
|
34 76 | /// Returns `true` if the error kind is `EventStreamsOperationError::InternalServerError`.
|
77 + | /* ServerOperationErrorGenerator.kt:88 */
|
35 78 | pub fn is_internal_server_error(&self) -> bool {
|
79 + | /* ServerOperationErrorGenerator.kt:89 */
|
36 80 | matches!(&self, EventStreamsOperationError::InternalServerError(_))
|
81 + | /* ServerOperationErrorGenerator.kt:88 */
|
37 82 | }
|
83 + | /* ServerOperationErrorGenerator.kt:92 */
|
38 84 | /// Returns the error name string by matching the correct variant.
|
85 + | /* ServerOperationErrorGenerator.kt:93 */
|
39 86 | pub fn name(&self) -> &'static str {
|
87 + | /* ServerOperationErrorGenerator.kt:139 */
|
40 88 | match &self {
|
41 - | EventStreamsOperationError::ValidationException(_inner) => _inner.name(),
|
42 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.name(),
|
43 - | EventStreamsOperationError::InternalServerError(_inner) => _inner.name(),
|
89 + | /* ServerOperationErrorGenerator.kt:142 */
|
90 + | EventStreamsOperationError::ValidationException(_inner) =>
|
91 + | /* ServerOperationErrorGenerator.kt:95 */
|
92 + | {
|
93 + | _inner.name()
|
94 + | }
|
95 + | ,
|
96 + | /* ServerOperationErrorGenerator.kt:142 */
|
97 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) =>
|
98 + | /* ServerOperationErrorGenerator.kt:95 */
|
99 + | {
|
100 + | _inner.name()
|
101 + | }
|
102 + | ,
|
103 + | /* ServerOperationErrorGenerator.kt:142 */
|
104 + | EventStreamsOperationError::InternalServerError(_inner) =>
|
105 + | /* ServerOperationErrorGenerator.kt:95 */
|
106 + | {
|
107 + | _inner.name()
|
108 + | }
|
109 + | /* ServerOperationErrorGenerator.kt:139 */
|
44 110 | }
|
111 + | /* ServerOperationErrorGenerator.kt:93 */
|
45 112 | }
|
113 + | /* ServerOperationErrorGenerator.kt:83 */
|
46 114 | }
|
115 + | /* ServerOperationErrorGenerator.kt:100 */
|
47 116 | impl ::std::error::Error for EventStreamsOperationError {
|
117 + | /* ServerOperationErrorGenerator.kt:101 */
|
48 118 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
119 + | /* ServerOperationErrorGenerator.kt:139 */
|
49 120 | match &self {
|
50 - | EventStreamsOperationError::ValidationException(_inner) => Some(_inner),
|
51 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => Some(_inner),
|
52 - | EventStreamsOperationError::InternalServerError(_inner) => Some(_inner),
|
121 + | /* ServerOperationErrorGenerator.kt:142 */
|
122 + | EventStreamsOperationError::ValidationException(_inner) =>
|
123 + | /* ServerOperationErrorGenerator.kt:103 */
|
124 + | {
|
125 + | Some(_inner)
|
126 + | }
|
127 + | ,
|
128 + | /* ServerOperationErrorGenerator.kt:142 */
|
129 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) =>
|
130 + | /* ServerOperationErrorGenerator.kt:103 */
|
131 + | {
|
132 + | Some(_inner)
|
133 + | }
|
134 + | ,
|
135 + | /* ServerOperationErrorGenerator.kt:142 */
|
136 + | EventStreamsOperationError::InternalServerError(_inner) =>
|
137 + | /* ServerOperationErrorGenerator.kt:103 */
|
138 + | {
|
139 + | Some(_inner)
|
140 + | }
|
141 + | /* ServerOperationErrorGenerator.kt:139 */
|
53 142 | }
|
143 + | /* ServerOperationErrorGenerator.kt:101 */
|
54 144 | }
|
145 + | /* ServerOperationErrorGenerator.kt:100 */
|
55 146 | }
|
147 + | /* ServerOperationErrorGenerator.kt:110 */
|
56 148 | impl ::std::convert::From<crate::error::ValidationException>
|
57 149 | for crate::error::EventStreamsOperationError
|
58 150 | {
|
151 + | /* ServerOperationErrorGenerator.kt:111 */
|
59 152 | fn from(
|
60 153 | variant: crate::error::ValidationException,
|
61 154 | ) -> crate::error::EventStreamsOperationError {
|
155 + | /* ServerOperationErrorGenerator.kt:112 */
|
62 156 | Self::ValidationException(variant)
|
157 + | /* ServerOperationErrorGenerator.kt:111 */
|
63 158 | }
|
159 + | /* ServerOperationErrorGenerator.kt:110 */
|
64 160 | }
|
161 + | /* ServerOperationErrorGenerator.kt:110 */
|
65 162 | impl ::std::convert::From<crate::error::EventStreamErrorMessage>
|
66 163 | for crate::error::EventStreamsOperationError
|
67 164 | {
|
165 + | /* ServerOperationErrorGenerator.kt:111 */
|
68 166 | fn from(
|
69 167 | variant: crate::error::EventStreamErrorMessage,
|
70 168 | ) -> crate::error::EventStreamsOperationError {
|
169 + | /* ServerOperationErrorGenerator.kt:112 */
|
71 170 | Self::EventStreamErrorMessage(variant)
|
171 + | /* ServerOperationErrorGenerator.kt:111 */
|
72 172 | }
|
173 + | /* ServerOperationErrorGenerator.kt:110 */
|
73 174 | }
|
175 + | /* ServerOperationErrorGenerator.kt:110 */
|
74 176 | impl ::std::convert::From<crate::error::InternalServerError>
|
75 177 | for crate::error::EventStreamsOperationError
|
76 178 | {
|
179 + | /* ServerOperationErrorGenerator.kt:111 */
|
77 180 | fn from(
|
78 181 | variant: crate::error::InternalServerError,
|
79 182 | ) -> crate::error::EventStreamsOperationError {
|
183 + | /* ServerOperationErrorGenerator.kt:112 */
|
80 184 | Self::InternalServerError(variant)
|
185 + | /* ServerOperationErrorGenerator.kt:111 */
|
81 186 | }
|
187 + | /* ServerOperationErrorGenerator.kt:110 */
|
82 188 | }
|
83 189 |
|
190 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
84 191 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::EventStreamsOperationError {
|
85 192 | fn from(variant: ::pyo3::PyErr) -> crate::error::EventStreamsOperationError {
|
86 193 | ::pyo3::Python::with_gil(|py| {
|
87 194 | let error = variant.value(py);
|
88 195 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
89 196 | return error.into();
|
90 197 | }
|
91 198 | if let Ok(error) = error.extract::<crate::error::EventStreamErrorMessage>() {
|
92 199 | return error.into();
|
93 200 | }
|
94 201 | crate::error::InternalServerError {
|
95 202 | message: error.to_string(),
|
96 203 | }
|
97 204 | .into()
|
98 205 | })
|
99 206 | }
|
100 207 | }
|
101 208 |
|
209 + | /* RustType.kt:516 */
|
102 210 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
211 + | /* PythonServerStructureGenerator.kt:63 */
|
103 212 | /// :param message str:
|
104 213 | /// :rtype None:
|
214 + | /* StructureGenerator.kt:197 */
|
105 215 | #[allow(missing_docs)] // documentation missing in model
|
216 + | /* RustType.kt:516 */
|
106 217 | #[derive(
|
107 218 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
108 219 | )]
|
109 - | pub struct InternalServerError {
|
220 + | pub /* StructureGenerator.kt:201 */ struct InternalServerError {
|
221 + | /* RustType.kt:516 */
|
110 222 | #[pyo3(get, set)]
|
223 + | /* PythonServerStructureGenerator.kt:80 */
|
111 224 | /// :type str:
|
225 + | /* StructureGenerator.kt:231 */
|
112 226 | #[allow(missing_docs)] // documentation missing in model
|
113 227 | pub message: ::std::string::String,
|
228 + | /* StructureGenerator.kt:201 */
|
114 229 | }
|
230 + | /* RustType.kt:516 */
|
115 231 | #[allow(clippy::new_without_default)]
|
232 + | /* RustType.kt:516 */
|
116 233 | #[allow(clippy::too_many_arguments)]
|
234 + | /* RustType.kt:516 */
|
117 235 | #[::pyo3::pymethods]
|
236 + | /* PythonServerStructureGenerator.kt:88 */
|
118 237 | impl InternalServerError {
|
119 238 | #[new]
|
120 239 | pub fn new(message: ::std::string::String) -> Self {
|
121 240 | Self { message }
|
122 241 | }
|
123 242 | fn __repr__(&self) -> String {
|
124 243 | format!("{self:?}")
|
125 244 | }
|
126 245 | fn __str__(&self) -> String {
|
127 246 | format!("{self:?}")
|
128 247 | }
|
129 248 | }
|
249 + | /* ErrorImplGenerator.kt:99 */
|
130 250 | impl InternalServerError {
|
251 + | /* ErrorImplGenerator.kt:128 */
|
131 252 | /// Returns the error message.
|
132 253 | pub fn message(&self) -> &str {
|
133 254 | &self.message
|
134 255 | }
|
256 + | /* ErrorImplGenerator.kt:141 */
|
135 257 | #[doc(hidden)]
|
136 258 | /// Returns the error name.
|
137 259 | pub fn name(&self) -> &'static str {
|
138 260 | "InternalServerError"
|
139 261 | }
|
262 + | /* ErrorImplGenerator.kt:99 */
|
140 263 | }
|
264 + | /* ErrorImplGenerator.kt:153 */
|
141 265 | impl ::std::fmt::Display for InternalServerError {
|
266 + | /* ErrorImplGenerator.kt:154 */
|
142 267 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
268 + | /* ErrorImplGenerator.kt:161 */
|
143 269 | ::std::write!(f, "InternalServerError")?;
|
270 + | /* ErrorImplGenerator.kt:166 */
|
144 271 | {
|
272 + | /* ErrorImplGenerator.kt:167 */
|
145 273 | ::std::write!(f, ": {}", &self.message)?;
|
274 + | /* ErrorImplGenerator.kt:166 */
|
146 275 | }
|
276 + | /* ErrorImplGenerator.kt:171 */
|
147 277 | Ok(())
|
278 + | /* ErrorImplGenerator.kt:154 */
|
148 279 | }
|
280 + | /* ErrorImplGenerator.kt:153 */
|
149 281 | }
|
282 + | /* ErrorImplGenerator.kt:175 */
|
150 283 | impl ::std::error::Error for InternalServerError {}
|
284 + | /* ServerCodegenVisitor.kt:370 */
|
151 285 | impl InternalServerError {
|
152 - | /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
286 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
153 288 | pub fn builder() -> crate::error::internal_server_error::Builder {
|
289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
154 290 | crate::error::internal_server_error::Builder::default()
|
291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
155 292 | }
|
293 + | /* ServerCodegenVisitor.kt:370 */
|
156 294 | }
|
157 295 |
|
296 + | /* RustType.kt:516 */
|
158 297 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
298 + | /* PythonServerStructureGenerator.kt:63 */
|
159 299 | /// :param message_content typing.Optional\[str\]:
|
160 300 | /// :rtype None:
|
301 + | /* StructureGenerator.kt:197 */
|
161 302 | #[allow(missing_docs)] // documentation missing in model
|
303 + | /* RustType.kt:516 */
|
162 304 | #[derive(
|
163 305 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
164 306 | )]
|
165 - | pub struct EventStreamErrorMessage {
|
307 + | pub /* StructureGenerator.kt:201 */ struct EventStreamErrorMessage {
|
308 + | /* RustType.kt:516 */
|
166 309 | #[pyo3(get, set)]
|
310 + | /* PythonServerStructureGenerator.kt:80 */
|
167 311 | /// :type typing.Optional\[str\]:
|
312 + | /* StructureGenerator.kt:231 */
|
168 313 | #[allow(missing_docs)] // documentation missing in model
|
169 314 | pub message_content: ::std::option::Option<::std::string::String>,
|
315 + | /* StructureGenerator.kt:201 */
|
170 316 | }
|
317 + | /* StructureGenerator.kt:135 */
|
171 318 | impl EventStreamErrorMessage {
|
319 + | /* StructureGenerator.kt:231 */
|
172 320 | #[allow(missing_docs)] // documentation missing in model
|
321 + | /* StructureGenerator.kt:166 */
|
173 322 | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
323 + | /* StructureGenerator.kt:169 */
|
174 324 | self.message_content.as_deref()
|
325 + | /* StructureGenerator.kt:166 */
|
175 326 | }
|
327 + | /* StructureGenerator.kt:135 */
|
176 328 | }
|
329 + | /* RustType.kt:516 */
|
177 330 | #[allow(clippy::new_without_default)]
|
331 + | /* RustType.kt:516 */
|
178 332 | #[allow(clippy::too_many_arguments)]
|
333 + | /* RustType.kt:516 */
|
179 334 | #[::pyo3::pymethods]
|
335 + | /* PythonServerStructureGenerator.kt:88 */
|
180 336 | impl EventStreamErrorMessage {
|
181 337 | #[new]
|
182 338 | pub fn new(message_content: ::std::option::Option<::std::string::String>) -> Self {
|
183 339 | Self { message_content }
|
184 340 | }
|
185 341 | fn __repr__(&self) -> String {
|
186 342 | format!("{self:?}")
|
187 343 | }
|
188 344 | fn __str__(&self) -> String {
|
189 345 | format!("{self:?}")
|
190 346 | }
|
191 347 | }
|
348 + | /* ErrorImplGenerator.kt:99 */
|
192 349 | impl EventStreamErrorMessage {
|
350 + | /* ErrorImplGenerator.kt:141 */
|
193 351 | #[doc(hidden)]
|
194 352 | /// Returns the error name.
|
195 353 | pub fn name(&self) -> &'static str {
|
196 354 | "EventStreamErrorMessage"
|
197 355 | }
|
356 + | /* ErrorImplGenerator.kt:99 */
|
198 357 | }
|
358 + | /* ErrorImplGenerator.kt:153 */
|
199 359 | impl ::std::fmt::Display for EventStreamErrorMessage {
|
360 + | /* ErrorImplGenerator.kt:154 */
|
200 361 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
362 + | /* ErrorImplGenerator.kt:161 */
|
201 363 | ::std::write!(f, "EventStreamErrorMessage")?;
|
364 + | /* ErrorImplGenerator.kt:171 */
|
202 365 | Ok(())
|
366 + | /* ErrorImplGenerator.kt:154 */
|
203 367 | }
|
368 + | /* ErrorImplGenerator.kt:153 */
|
204 369 | }
|
370 + | /* ErrorImplGenerator.kt:175 */
|
205 371 | impl ::std::error::Error for EventStreamErrorMessage {}
|
372 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
206 373 | impl crate::constrained::Constrained for crate::error::EventStreamErrorMessage {
|
207 374 | type Unconstrained = crate::error::event_stream_error_message_internal::Builder;
|
208 375 | }
|
376 + | /* ServerCodegenVisitor.kt:370 */
|
209 377 | impl EventStreamErrorMessage {
|
210 - | /// Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
378 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
379 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
211 380 | pub fn builder() -> crate::error::event_stream_error_message::Builder {
|
381 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
212 382 | crate::error::event_stream_error_message::Builder::default()
|
383 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
213 384 | }
|
385 + | /* ServerCodegenVisitor.kt:370 */
|
214 386 | }
|
215 387 |
|
388 + | /* RustType.kt:516 */
|
216 389 | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
390 + | /* PythonServerStructureGenerator.kt:63 */
|
217 391 | /// :param message str:
|
218 392 | /// :param field_list typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
219 393 | /// :rtype None:
|
220 - | /// 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.
|
394 + | /// /* 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.
|
395 + | /* RustType.kt:516 */
|
221 396 | #[derive(
|
222 397 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
223 398 | )]
|
224 - | pub struct ValidationException {
|
399 + | pub /* StructureGenerator.kt:201 */ struct ValidationException {
|
400 + | /* RustType.kt:516 */
|
225 401 | #[pyo3(get, set)]
|
402 + | /* PythonServerStructureGenerator.kt:80 */
|
226 403 | /// :type str:
|
227 - | /// A summary of the validation failure.
|
404 + | /// /* StructureGenerator.kt:231 */A summary of the validation failure.
|
228 405 | pub message: ::std::string::String,
|
406 + | /* RustType.kt:516 */
|
229 407 | #[pyo3(get, set)]
|
408 + | /* PythonServerStructureGenerator.kt:80 */
|
230 409 | /// :type typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
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.
|
410 + | /// /* 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.
|
232 411 | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
412 + | /* StructureGenerator.kt:201 */
|
233 413 | }
|
414 + | /* StructureGenerator.kt:135 */
|
234 415 | impl ValidationException {
|
235 - | /// 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.
|
416 + | /// /* 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.
|
417 + | /* StructureGenerator.kt:166 */
|
236 418 | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
419 + | /* StructureGenerator.kt:169 */
|
237 420 | self.field_list.as_deref()
|
421 + | /* StructureGenerator.kt:166 */
|
238 422 | }
|
423 + | /* StructureGenerator.kt:135 */
|
239 424 | }
|
425 + | /* RustType.kt:516 */
|
240 426 | #[allow(clippy::new_without_default)]
|
427 + | /* RustType.kt:516 */
|
241 428 | #[allow(clippy::too_many_arguments)]
|
429 + | /* RustType.kt:516 */
|
242 430 | #[::pyo3::pymethods]
|
431 + | /* PythonServerStructureGenerator.kt:88 */
|
243 432 | impl ValidationException {
|
244 433 | #[new]
|
245 434 | pub fn new(
|
246 435 | message: ::std::string::String,
|
247 436 | field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
248 437 | ) -> Self {
|
249 438 | Self {
|
250 439 | message,
|
251 440 | field_list,
|
252 441 | }
|
253 442 | }
|
254 443 | fn __repr__(&self) -> String {
|
255 444 | format!("{self:?}")
|
256 445 | }
|
257 446 | fn __str__(&self) -> String {
|
258 447 | format!("{self:?}")
|
259 448 | }
|
260 449 | }
|
450 + | /* ErrorImplGenerator.kt:99 */
|
261 451 | impl ValidationException {
|
452 + | /* ErrorImplGenerator.kt:128 */
|
262 453 | /// Returns the error message.
|
263 454 | pub fn message(&self) -> &str {
|
264 455 | &self.message
|
265 456 | }
|
457 + | /* ErrorImplGenerator.kt:141 */
|
266 458 | #[doc(hidden)]
|
267 459 | /// Returns the error name.
|
268 460 | pub fn name(&self) -> &'static str {
|
269 461 | "ValidationException"
|
270 462 | }
|
463 + | /* ErrorImplGenerator.kt:99 */
|
271 464 | }
|
465 + | /* ErrorImplGenerator.kt:153 */
|
272 466 | impl ::std::fmt::Display for ValidationException {
|
467 + | /* ErrorImplGenerator.kt:154 */
|
273 468 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
469 + | /* ErrorImplGenerator.kt:161 */
|
274 470 | ::std::write!(f, "ValidationException")?;
|
471 + | /* ErrorImplGenerator.kt:166 */
|
275 472 | {
|
473 + | /* ErrorImplGenerator.kt:167 */
|
276 474 | ::std::write!(f, ": {}", &self.message)?;
|
475 + | /* ErrorImplGenerator.kt:166 */
|
277 476 | }
|
477 + | /* ErrorImplGenerator.kt:171 */
|
278 478 | Ok(())
|
479 + | /* ErrorImplGenerator.kt:154 */
|
279 480 | }
|
481 + | /* ErrorImplGenerator.kt:153 */
|
280 482 | }
|
483 + | /* ErrorImplGenerator.kt:175 */
|
281 484 | impl ::std::error::Error for ValidationException {}
|
485 + | /* ServerCodegenVisitor.kt:370 */
|
282 486 | impl ValidationException {
|
283 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
487 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
284 489 | pub fn builder() -> crate::error::validation_exception::Builder {
|
490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
285 491 | crate::error::validation_exception::Builder::default()
|
492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
286 493 | }
|
494 + | /* ServerCodegenVisitor.kt:370 */
|
287 495 | }
|
288 496 |
|
497 + | /* ServerOperationErrorGenerator.kt:63 */
|
289 498 | /// Error type for the `Event` operation.
|
499 + | /* ServerOperationErrorGenerator.kt:64 */
|
290 500 | /// Each variant represents an error that can occur for the `Event` operation.
|
501 + | /* RustType.kt:516 */
|
291 502 | #[derive(::std::fmt::Debug)]
|
292 - | pub enum EventError {
|
503 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum EventError {
|
504 + | /* ServerOperationErrorGenerator.kt:68 */
|
293 505 | #[allow(missing_docs)] // documentation missing in model
|
506 + | /* ServerOperationErrorGenerator.kt:71 */
|
294 507 | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
508 + | /* ServerOperationErrorGenerator.kt:66 */
|
295 509 | }
|
510 + | /* ServerOperationErrorGenerator.kt:75 */
|
296 511 | impl ::std::fmt::Display for EventError {
|
512 + | /* ServerOperationErrorGenerator.kt:76 */
|
297 513 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
514 + | /* ServerOperationErrorGenerator.kt:139 */
|
298 515 | match &self {
|
299 - | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
516 + | /* ServerOperationErrorGenerator.kt:142 */
|
517 + | EventError::EventStreamErrorMessage(_inner) =>
|
518 + | /* ServerOperationErrorGenerator.kt:78 */
|
519 + | {
|
520 + | _inner.fmt(f)
|
521 + | }
|
522 + | /* ServerOperationErrorGenerator.kt:139 */
|
300 523 | }
|
524 + | /* ServerOperationErrorGenerator.kt:76 */
|
301 525 | }
|
526 + | /* ServerOperationErrorGenerator.kt:75 */
|
302 527 | }
|
528 + | /* ServerOperationErrorGenerator.kt:83 */
|
303 529 | impl EventError {
|
530 + | /* ServerOperationErrorGenerator.kt:87 */
|
304 531 | /// Returns `true` if the error kind is `EventError::EventStreamErrorMessage`.
|
532 + | /* ServerOperationErrorGenerator.kt:88 */
|
305 533 | pub fn is_event_stream_error_message(&self) -> bool {
|
534 + | /* ServerOperationErrorGenerator.kt:89 */
|
306 535 | matches!(&self, EventError::EventStreamErrorMessage(_))
|
536 + | /* ServerOperationErrorGenerator.kt:88 */
|
307 537 | }
|
538 + | /* ServerOperationErrorGenerator.kt:92 */
|
308 539 | /// Returns the error name string by matching the correct variant.
|
540 + | /* ServerOperationErrorGenerator.kt:93 */
|
309 541 | pub fn name(&self) -> &'static str {
|
542 + | /* ServerOperationErrorGenerator.kt:139 */
|
310 543 | match &self {
|
311 - | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
544 + | /* ServerOperationErrorGenerator.kt:142 */
|
545 + | EventError::EventStreamErrorMessage(_inner) =>
|
546 + | /* ServerOperationErrorGenerator.kt:95 */
|
547 + | {
|
548 + | _inner.name()
|
549 + | }
|
550 + | /* ServerOperationErrorGenerator.kt:139 */
|
312 551 | }
|
552 + | /* ServerOperationErrorGenerator.kt:93 */
|
313 553 | }
|
554 + | /* ServerOperationErrorGenerator.kt:83 */
|
314 555 | }
|
556 + | /* ServerOperationErrorGenerator.kt:100 */
|
315 557 | impl ::std::error::Error for EventError {
|
558 + | /* ServerOperationErrorGenerator.kt:101 */
|
316 559 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
560 + | /* ServerOperationErrorGenerator.kt:139 */
|
317 561 | match &self {
|
318 - | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
562 + | /* ServerOperationErrorGenerator.kt:142 */
|
563 + | EventError::EventStreamErrorMessage(_inner) =>
|
564 + | /* ServerOperationErrorGenerator.kt:103 */
|
565 + | {
|
566 + | Some(_inner)
|
567 + | }
|
568 + | /* ServerOperationErrorGenerator.kt:139 */
|
319 569 | }
|
570 + | /* ServerOperationErrorGenerator.kt:101 */
|
320 571 | }
|
572 + | /* ServerOperationErrorGenerator.kt:100 */
|
321 573 | }
|
574 + | /* ServerOperationErrorGenerator.kt:110 */
|
322 575 | impl ::std::convert::From<crate::error::EventStreamErrorMessage> for crate::error::EventError {
|
576 + | /* ServerOperationErrorGenerator.kt:111 */
|
323 577 | fn from(variant: crate::error::EventStreamErrorMessage) -> crate::error::EventError {
|
578 + | /* ServerOperationErrorGenerator.kt:112 */
|
324 579 | Self::EventStreamErrorMessage(variant)
|
580 + | /* ServerOperationErrorGenerator.kt:111 */
|
325 581 | }
|
582 + | /* ServerOperationErrorGenerator.kt:110 */
|
326 583 | }
|
584 + | /* PythonServerEventStreamErrorGenerator.kt:57 */
|
327 585 | impl<'source> ::pyo3::FromPyObject<'source> for EventError {
|
586 + | /* PythonServerEventStreamErrorGenerator.kt:58 */
|
328 587 | fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
588 + | /* PythonServerEventStreamErrorGenerator.kt:61 */
|
329 589 | if let Ok(it) = obj.extract::<crate::error::EventStreamErrorMessage>() {
|
330 590 | return Ok(Self::EventStreamErrorMessage(it));
|
331 591 | }
|
592 + | /* PythonServerEventStreamErrorGenerator.kt:70 */
|
332 593 | Err(::pyo3::exceptions::PyTypeError::new_err(format!(
|
333 594 | "failed to extract 'EventError' from '{}'",
|
334 595 | obj
|
335 596 | )))
|
597 + | /* PythonServerEventStreamErrorGenerator.kt:58 */
|
336 598 | }
|
599 + | /* PythonServerEventStreamErrorGenerator.kt:57 */
|
337 600 | }
|
601 + | /* PythonServerEventStreamErrorGenerator.kt:86 */
|
338 602 | impl ::pyo3::IntoPy<::pyo3::PyObject> for EventError {
|
603 + | /* PythonServerEventStreamErrorGenerator.kt:87 */
|
339 604 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
605 + | /* PythonServerEventStreamErrorGenerator.kt:88 */
|
340 606 | match self {
|
607 + | /* PythonServerEventStreamErrorGenerator.kt:91 */
|
341 608 | Self::EventStreamErrorMessage(it) => match ::pyo3::Py::new(py, it) {
|
342 609 | Ok(it) => it.into_py(py),
|
343 610 | Err(err) => err.into_py(py),
|
344 - | },
|
611 + | }, /* PythonServerEventStreamErrorGenerator.kt:88 */
|
345 612 | }
|
613 + | /* PythonServerEventStreamErrorGenerator.kt:87 */
|
346 614 | }
|
615 + | /* PythonServerEventStreamErrorGenerator.kt:86 */
|
347 616 | }
|
617 + | /* PythonServerEventStreamErrorGenerator.kt:107 */
|
348 618 | impl ::std::convert::From<EventError> for ::pyo3::PyErr {
|
619 + | /* PythonServerEventStreamErrorGenerator.kt:108 */
|
349 620 | fn from(err: EventError) -> ::pyo3::PyErr {
|
621 + | /* PythonServerEventStreamErrorGenerator.kt:109 */
|
350 622 | ::pyo3::Python::with_gil(|py| {
|
351 623 | let py_err = ::pyo3::IntoPy::into_py(err, py);
|
352 624 | ::pyo3::PyErr::from_value(py_err.as_ref(py))
|
353 625 | })
|
626 + | /* PythonServerEventStreamErrorGenerator.kt:108 */
|
354 627 | }
|
628 + | /* PythonServerEventStreamErrorGenerator.kt:107 */
|
355 629 | }
|
356 630 |
|
631 + | /* ServerOperationErrorGenerator.kt:63 */
|
357 632 | /// Error type for the `StreamingBlobOperation` operation.
|
633 + | /* ServerOperationErrorGenerator.kt:64 */
|
358 634 | /// Each variant represents an error that can occur for the `StreamingBlobOperation` operation.
|
635 + | /* RustType.kt:516 */
|
359 636 | #[derive(::std::fmt::Debug)]
|
360 - | pub enum StreamingBlobOperationError {
|
637 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum StreamingBlobOperationError {
|
638 + | /* ServerOperationErrorGenerator.kt:68 */
|
361 639 | #[allow(missing_docs)] // documentation missing in model
|
640 + | /* ServerOperationErrorGenerator.kt:71 */
|
362 641 | InternalServerError(crate::error::InternalServerError),
|
642 + | /* ServerOperationErrorGenerator.kt:66 */
|
363 643 | }
|
644 + | /* ServerOperationErrorGenerator.kt:75 */
|
364 645 | impl ::std::fmt::Display for StreamingBlobOperationError {
|
646 + | /* ServerOperationErrorGenerator.kt:76 */
|
365 647 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
648 + | /* ServerOperationErrorGenerator.kt:139 */
|
366 649 | match &self {
|
367 - | StreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
650 + | /* ServerOperationErrorGenerator.kt:142 */
|
651 + | StreamingBlobOperationError::InternalServerError(_inner) =>
|
652 + | /* ServerOperationErrorGenerator.kt:78 */
|
653 + | {
|
654 + | _inner.fmt(f)
|
655 + | }
|
656 + | /* ServerOperationErrorGenerator.kt:139 */
|
368 657 | }
|
658 + | /* ServerOperationErrorGenerator.kt:76 */
|
369 659 | }
|
660 + | /* ServerOperationErrorGenerator.kt:75 */
|
370 661 | }
|
662 + | /* ServerOperationErrorGenerator.kt:83 */
|
371 663 | impl StreamingBlobOperationError {
|
664 + | /* ServerOperationErrorGenerator.kt:87 */
|
372 665 | /// Returns `true` if the error kind is `StreamingBlobOperationError::InternalServerError`.
|
666 + | /* ServerOperationErrorGenerator.kt:88 */
|
373 667 | pub fn is_internal_server_error(&self) -> bool {
|
668 + | /* ServerOperationErrorGenerator.kt:89 */
|
374 669 | matches!(&self, StreamingBlobOperationError::InternalServerError(_))
|
670 + | /* ServerOperationErrorGenerator.kt:88 */
|
375 671 | }
|
672 + | /* ServerOperationErrorGenerator.kt:92 */
|
376 673 | /// Returns the error name string by matching the correct variant.
|
674 + | /* ServerOperationErrorGenerator.kt:93 */
|
377 675 | pub fn name(&self) -> &'static str {
|
676 + | /* ServerOperationErrorGenerator.kt:139 */
|
378 677 | match &self {
|
379 - | StreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
678 + | /* ServerOperationErrorGenerator.kt:142 */
|
679 + | StreamingBlobOperationError::InternalServerError(_inner) =>
|
680 + | /* ServerOperationErrorGenerator.kt:95 */
|
681 + | {
|
682 + | _inner.name()
|
683 + | }
|
684 + | /* ServerOperationErrorGenerator.kt:139 */
|
380 685 | }
|
686 + | /* ServerOperationErrorGenerator.kt:93 */
|
381 687 | }
|
688 + | /* ServerOperationErrorGenerator.kt:83 */
|
382 689 | }
|
690 + | /* ServerOperationErrorGenerator.kt:100 */
|
383 691 | impl ::std::error::Error for StreamingBlobOperationError {
|
692 + | /* ServerOperationErrorGenerator.kt:101 */
|
384 693 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
694 + | /* ServerOperationErrorGenerator.kt:139 */
|
385 695 | match &self {
|
386 - | StreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
696 + | /* ServerOperationErrorGenerator.kt:142 */
|
697 + | StreamingBlobOperationError::InternalServerError(_inner) =>
|
698 + | /* ServerOperationErrorGenerator.kt:103 */
|
699 + | {
|
700 + | Some(_inner)
|
701 + | }
|
702 + | /* ServerOperationErrorGenerator.kt:139 */
|
387 703 | }
|
704 + | /* ServerOperationErrorGenerator.kt:101 */
|
388 705 | }
|
706 + | /* ServerOperationErrorGenerator.kt:100 */
|
389 707 | }
|
708 + | /* ServerOperationErrorGenerator.kt:110 */
|
390 709 | impl ::std::convert::From<crate::error::InternalServerError>
|
391 710 | for crate::error::StreamingBlobOperationError
|
392 711 | {
|
712 + | /* ServerOperationErrorGenerator.kt:111 */
|
393 713 | fn from(
|
394 714 | variant: crate::error::InternalServerError,
|
395 715 | ) -> crate::error::StreamingBlobOperationError {
|
716 + | /* ServerOperationErrorGenerator.kt:112 */
|
396 717 | Self::InternalServerError(variant)
|
718 + | /* ServerOperationErrorGenerator.kt:111 */
|
397 719 | }
|
720 + | /* ServerOperationErrorGenerator.kt:110 */
|
398 721 | }
|
399 722 |
|
723 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
400 724 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::StreamingBlobOperationError {
|
401 725 | fn from(variant: ::pyo3::PyErr) -> crate::error::StreamingBlobOperationError {
|
402 726 | ::pyo3::Python::with_gil(|py| {
|
403 727 | let error = variant.value(py);
|
404 728 |
|
405 729 | crate::error::InternalServerError {
|
406 730 | message: error.to_string(),
|
407 731 | }
|
408 732 | .into()
|
409 733 | })
|
410 734 | }
|
411 735 | }
|
412 736 |
|
737 + | /* ServerOperationErrorGenerator.kt:63 */
|
413 738 | /// Error type for the `NonStreamingBlobOperation` operation.
|
739 + | /* ServerOperationErrorGenerator.kt:64 */
|
414 740 | /// Each variant represents an error that can occur for the `NonStreamingBlobOperation` operation.
|
741 + | /* RustType.kt:516 */
|
415 742 | #[derive(::std::fmt::Debug)]
|
416 - | pub enum NonStreamingBlobOperationError {
|
743 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum NonStreamingBlobOperationError {
|
744 + | /* ServerOperationErrorGenerator.kt:68 */
|
417 745 | #[allow(missing_docs)] // documentation missing in model
|
746 + | /* ServerOperationErrorGenerator.kt:71 */
|
418 747 | InternalServerError(crate::error::InternalServerError),
|
748 + | /* ServerOperationErrorGenerator.kt:66 */
|
419 749 | }
|
750 + | /* ServerOperationErrorGenerator.kt:75 */
|
420 751 | impl ::std::fmt::Display for NonStreamingBlobOperationError {
|
752 + | /* ServerOperationErrorGenerator.kt:76 */
|
421 753 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
754 + | /* ServerOperationErrorGenerator.kt:139 */
|
422 755 | match &self {
|
423 - | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
756 + | /* ServerOperationErrorGenerator.kt:142 */
|
757 + | NonStreamingBlobOperationError::InternalServerError(_inner) =>
|
758 + | /* ServerOperationErrorGenerator.kt:78 */
|
759 + | {
|
760 + | _inner.fmt(f)
|
761 + | }
|
762 + | /* ServerOperationErrorGenerator.kt:139 */
|
424 763 | }
|
764 + | /* ServerOperationErrorGenerator.kt:76 */
|
425 765 | }
|
766 + | /* ServerOperationErrorGenerator.kt:75 */
|
426 767 | }
|
768 + | /* ServerOperationErrorGenerator.kt:83 */
|
427 769 | impl NonStreamingBlobOperationError {
|
770 + | /* ServerOperationErrorGenerator.kt:87 */
|
428 771 | /// Returns `true` if the error kind is `NonStreamingBlobOperationError::InternalServerError`.
|
772 + | /* ServerOperationErrorGenerator.kt:88 */
|
429 773 | pub fn is_internal_server_error(&self) -> bool {
|
774 + | /* ServerOperationErrorGenerator.kt:89 */
|
430 775 | matches!(
|
431 776 | &self,
|
432 777 | NonStreamingBlobOperationError::InternalServerError(_)
|
433 778 | )
|
779 + | /* ServerOperationErrorGenerator.kt:88 */
|
434 780 | }
|
781 + | /* ServerOperationErrorGenerator.kt:92 */
|
435 782 | /// Returns the error name string by matching the correct variant.
|
783 + | /* ServerOperationErrorGenerator.kt:93 */
|
436 784 | pub fn name(&self) -> &'static str {
|
785 + | /* ServerOperationErrorGenerator.kt:139 */
|
437 786 | match &self {
|
438 - | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
787 + | /* ServerOperationErrorGenerator.kt:142 */
|
788 + | NonStreamingBlobOperationError::InternalServerError(_inner) =>
|
789 + | /* ServerOperationErrorGenerator.kt:95 */
|
790 + | {
|
791 + | _inner.name()
|
792 + | }
|
793 + | /* ServerOperationErrorGenerator.kt:139 */
|
439 794 | }
|
795 + | /* ServerOperationErrorGenerator.kt:93 */
|
440 796 | }
|
797 + | /* ServerOperationErrorGenerator.kt:83 */
|
441 798 | }
|
799 + | /* ServerOperationErrorGenerator.kt:100 */
|
442 800 | impl ::std::error::Error for NonStreamingBlobOperationError {
|
801 + | /* ServerOperationErrorGenerator.kt:101 */
|
443 802 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
803 + | /* ServerOperationErrorGenerator.kt:139 */
|
444 804 | match &self {
|
445 - | NonStreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
805 + | /* ServerOperationErrorGenerator.kt:142 */
|
806 + | NonStreamingBlobOperationError::InternalServerError(_inner) =>
|
807 + | /* ServerOperationErrorGenerator.kt:103 */
|
808 + | {
|
809 + | Some(_inner)
|
810 + | }
|
811 + | /* ServerOperationErrorGenerator.kt:139 */
|
446 812 | }
|
813 + | /* ServerOperationErrorGenerator.kt:101 */
|
447 814 | }
|
815 + | /* ServerOperationErrorGenerator.kt:100 */
|
448 816 | }
|
817 + | /* ServerOperationErrorGenerator.kt:110 */
|
449 818 | impl ::std::convert::From<crate::error::InternalServerError>
|
450 819 | for crate::error::NonStreamingBlobOperationError
|
451 820 | {
|
821 + | /* ServerOperationErrorGenerator.kt:111 */
|
452 822 | fn from(
|
453 823 | variant: crate::error::InternalServerError,
|
454 824 | ) -> crate::error::NonStreamingBlobOperationError {
|
825 + | /* ServerOperationErrorGenerator.kt:112 */
|
455 826 | Self::InternalServerError(variant)
|
827 + | /* ServerOperationErrorGenerator.kt:111 */
|
456 828 | }
|
829 + | /* ServerOperationErrorGenerator.kt:110 */
|
457 830 | }
|
458 831 |
|
832 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
459 833 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::NonStreamingBlobOperationError {
|
460 834 | fn from(variant: ::pyo3::PyErr) -> crate::error::NonStreamingBlobOperationError {
|
461 835 | ::pyo3::Python::with_gil(|py| {
|
462 836 | let error = variant.value(py);
|
463 837 |
|
464 838 | crate::error::InternalServerError {
|
465 839 | message: error.to_string(),
|
466 840 | }
|
467 841 | .into()
|
468 842 | })
|
469 843 | }
|
470 844 | }
|
471 845 |
|
846 + | /* ServerOperationErrorGenerator.kt:63 */
|
472 847 | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
848 + | /* ServerOperationErrorGenerator.kt:64 */
|
473 849 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
850 + | /* RustType.kt:516 */
|
474 851 | #[derive(::std::fmt::Debug)]
|
475 - | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
476 - | /// 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.
|
852 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfEnumStringOperationError
|
853 + | {
|
854 + | /// /* 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.
|
855 + | /* ServerOperationErrorGenerator.kt:71 */
|
477 856 | ValidationException(crate::error::ValidationException),
|
857 + | /* ServerOperationErrorGenerator.kt:68 */
|
478 858 | #[allow(missing_docs)] // documentation missing in model
|
859 + | /* ServerOperationErrorGenerator.kt:71 */
|
479 860 | InternalServerError(crate::error::InternalServerError),
|
861 + | /* ServerOperationErrorGenerator.kt:66 */
|
480 862 | }
|
863 + | /* ServerOperationErrorGenerator.kt:75 */
|
481 864 | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
865 + | /* ServerOperationErrorGenerator.kt:76 */
|
482 866 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
867 + | /* ServerOperationErrorGenerator.kt:139 */
|
483 868 | match &self {
|
484 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
869 + | /* ServerOperationErrorGenerator.kt:142 */
|
870 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) =>
|
871 + | /* ServerOperationErrorGenerator.kt:78 */
|
872 + | {
|
485 873 | _inner.fmt(f)
|
486 874 | }
|
487 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
875 + | ,
|
876 + | /* ServerOperationErrorGenerator.kt:142 */
|
877 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) =>
|
878 + | /* ServerOperationErrorGenerator.kt:78 */
|
879 + | {
|
488 880 | _inner.fmt(f)
|
489 881 | }
|
882 + | /* ServerOperationErrorGenerator.kt:139 */
|
490 883 | }
|
884 + | /* ServerOperationErrorGenerator.kt:76 */
|
491 885 | }
|
886 + | /* ServerOperationErrorGenerator.kt:75 */
|
492 887 | }
|
888 + | /* ServerOperationErrorGenerator.kt:83 */
|
493 889 | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
890 + | /* ServerOperationErrorGenerator.kt:87 */
|
494 891 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
892 + | /* ServerOperationErrorGenerator.kt:88 */
|
495 893 | pub fn is_validation_exception(&self) -> bool {
|
894 + | /* ServerOperationErrorGenerator.kt:89 */
|
496 895 | matches!(
|
497 896 | &self,
|
498 897 | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
499 898 | )
|
899 + | /* ServerOperationErrorGenerator.kt:88 */
|
500 900 | }
|
901 + | /* ServerOperationErrorGenerator.kt:87 */
|
501 902 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError`.
|
903 + | /* ServerOperationErrorGenerator.kt:88 */
|
502 904 | pub fn is_internal_server_error(&self) -> bool {
|
905 + | /* ServerOperationErrorGenerator.kt:89 */
|
503 906 | matches!(
|
504 907 | &self,
|
505 908 | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_)
|
506 909 | )
|
910 + | /* ServerOperationErrorGenerator.kt:88 */
|
507 911 | }
|
912 + | /* ServerOperationErrorGenerator.kt:92 */
|
508 913 | /// Returns the error name string by matching the correct variant.
|
914 + | /* ServerOperationErrorGenerator.kt:93 */
|
509 915 | pub fn name(&self) -> &'static str {
|
916 + | /* ServerOperationErrorGenerator.kt:139 */
|
510 917 | match &self {
|
511 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
918 + | /* ServerOperationErrorGenerator.kt:142 */
|
919 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) =>
|
920 + | /* ServerOperationErrorGenerator.kt:95 */
|
921 + | {
|
512 922 | _inner.name()
|
513 923 | }
|
514 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
924 + | ,
|
925 + | /* ServerOperationErrorGenerator.kt:142 */
|
926 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) =>
|
927 + | /* ServerOperationErrorGenerator.kt:95 */
|
928 + | {
|
515 929 | _inner.name()
|
516 930 | }
|
931 + | /* ServerOperationErrorGenerator.kt:139 */
|
517 932 | }
|
933 + | /* ServerOperationErrorGenerator.kt:93 */
|
518 934 | }
|
935 + | /* ServerOperationErrorGenerator.kt:83 */
|
519 936 | }
|
937 + | /* ServerOperationErrorGenerator.kt:100 */
|
520 938 | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
939 + | /* ServerOperationErrorGenerator.kt:101 */
|
521 940 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
941 + | /* ServerOperationErrorGenerator.kt:139 */
|
522 942 | match &self {
|
523 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
943 + | /* ServerOperationErrorGenerator.kt:142 */
|
944 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) =>
|
945 + | /* ServerOperationErrorGenerator.kt:103 */
|
946 + | {
|
524 947 | Some(_inner)
|
525 948 | }
|
526 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
949 + | ,
|
950 + | /* ServerOperationErrorGenerator.kt:142 */
|
951 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) =>
|
952 + | /* ServerOperationErrorGenerator.kt:103 */
|
953 + | {
|
527 954 | Some(_inner)
|
528 955 | }
|
956 + | /* ServerOperationErrorGenerator.kt:139 */
|
529 957 | }
|
958 + | /* ServerOperationErrorGenerator.kt:101 */
|
530 959 | }
|
960 + | /* ServerOperationErrorGenerator.kt:100 */
|
531 961 | }
|
962 + | /* ServerOperationErrorGenerator.kt:110 */
|
532 963 | impl ::std::convert::From<crate::error::ValidationException>
|
533 964 | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
534 965 | {
|
966 + | /* ServerOperationErrorGenerator.kt:111 */
|
535 967 | fn from(
|
536 968 | variant: crate::error::ValidationException,
|
537 969 | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
970 + | /* ServerOperationErrorGenerator.kt:112 */
|
538 971 | Self::ValidationException(variant)
|
972 + | /* ServerOperationErrorGenerator.kt:111 */
|
539 973 | }
|
974 + | /* ServerOperationErrorGenerator.kt:110 */
|
540 975 | }
|
976 + | /* ServerOperationErrorGenerator.kt:110 */
|
541 977 | impl ::std::convert::From<crate::error::InternalServerError>
|
542 978 | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
543 979 | {
|
980 + | /* ServerOperationErrorGenerator.kt:111 */
|
544 981 | fn from(
|
545 982 | variant: crate::error::InternalServerError,
|
546 983 | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
984 + | /* ServerOperationErrorGenerator.kt:112 */
|
547 985 | Self::InternalServerError(variant)
|
986 + | /* ServerOperationErrorGenerator.kt:111 */
|
548 987 | }
|
988 + | /* ServerOperationErrorGenerator.kt:110 */
|
549 989 | }
|
550 990 |
|
991 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
551 992 | impl ::std::convert::From<::pyo3::PyErr>
|
552 993 | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
553 994 | {
|
554 995 | fn from(
|
555 996 | variant: ::pyo3::PyErr,
|
556 997 | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
557 998 | ::pyo3::Python::with_gil(|py| {
|
558 999 | let error = variant.value(py);
|
559 1000 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
560 1001 | return error.into();
|
561 1002 | }
|
562 1003 | crate::error::InternalServerError {
|
563 1004 | message: error.to_string(),
|
564 1005 | }
|
565 1006 | .into()
|
566 1007 | })
|
567 1008 | }
|
568 1009 | }
|
569 1010 |
|
1011 + | /* ServerOperationErrorGenerator.kt:63 */
|
570 1012 | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1013 + | /* ServerOperationErrorGenerator.kt:64 */
|
571 1014 | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1015 + | /* RustType.kt:516 */
|
572 1016 | #[derive(::std::fmt::Debug)]
|
573 - | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
574 - | /// 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.
|
1017 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum HttpPrefixHeadersTargetingLengthMapOperationError
|
1018 + | {
|
1019 + | /// /* 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.
|
1020 + | /* ServerOperationErrorGenerator.kt:71 */
|
575 1021 | ValidationException(crate::error::ValidationException),
|
1022 + | /* ServerOperationErrorGenerator.kt:68 */
|
576 1023 | #[allow(missing_docs)] // documentation missing in model
|
1024 + | /* ServerOperationErrorGenerator.kt:71 */
|
577 1025 | InternalServerError(crate::error::InternalServerError),
|
1026 + | /* ServerOperationErrorGenerator.kt:66 */
|
578 1027 | }
|
1028 + | /* ServerOperationErrorGenerator.kt:75 */
|
579 1029 | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1030 + | /* ServerOperationErrorGenerator.kt:76 */
|
580 1031 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1032 + | /* ServerOperationErrorGenerator.kt:139 */
|
581 1033 | match &self {
|
582 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1034 + | /* ServerOperationErrorGenerator.kt:142 */
|
1035 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) =>
|
1036 + | /* ServerOperationErrorGenerator.kt:78 */
|
1037 + | {
|
583 1038 | _inner.fmt(f)
|
584 1039 | }
|
585 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1040 + | ,
|
1041 + | /* ServerOperationErrorGenerator.kt:142 */
|
1042 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
1043 + | /* ServerOperationErrorGenerator.kt:78 */
|
1044 + | {
|
586 1045 | _inner.fmt(f)
|
587 1046 | }
|
1047 + | /* ServerOperationErrorGenerator.kt:139 */
|
588 1048 | }
|
1049 + | /* ServerOperationErrorGenerator.kt:76 */
|
589 1050 | }
|
1051 + | /* ServerOperationErrorGenerator.kt:75 */
|
590 1052 | }
|
1053 + | /* ServerOperationErrorGenerator.kt:83 */
|
591 1054 | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
1055 + | /* ServerOperationErrorGenerator.kt:87 */
|
592 1056 | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
1057 + | /* ServerOperationErrorGenerator.kt:88 */
|
593 1058 | pub fn is_validation_exception(&self) -> bool {
|
1059 + | /* ServerOperationErrorGenerator.kt:89 */
|
594 1060 | matches!(
|
595 1061 | &self,
|
596 1062 | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
597 1063 | )
|
1064 + | /* ServerOperationErrorGenerator.kt:88 */
|
598 1065 | }
|
1066 + | /* ServerOperationErrorGenerator.kt:87 */
|
599 1067 | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError`.
|
1068 + | /* ServerOperationErrorGenerator.kt:88 */
|
600 1069 | pub fn is_internal_server_error(&self) -> bool {
|
1070 + | /* ServerOperationErrorGenerator.kt:89 */
|
601 1071 | matches!(
|
602 1072 | &self,
|
603 1073 | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_)
|
604 1074 | )
|
1075 + | /* ServerOperationErrorGenerator.kt:88 */
|
605 1076 | }
|
1077 + | /* ServerOperationErrorGenerator.kt:92 */
|
606 1078 | /// Returns the error name string by matching the correct variant.
|
1079 + | /* ServerOperationErrorGenerator.kt:93 */
|
607 1080 | pub fn name(&self) -> &'static str {
|
1081 + | /* ServerOperationErrorGenerator.kt:139 */
|
608 1082 | match &self {
|
609 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1083 + | /* ServerOperationErrorGenerator.kt:142 */
|
1084 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) =>
|
1085 + | /* ServerOperationErrorGenerator.kt:95 */
|
1086 + | {
|
610 1087 | _inner.name()
|
611 1088 | }
|
612 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1089 + | ,
|
1090 + | /* ServerOperationErrorGenerator.kt:142 */
|
1091 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
1092 + | /* ServerOperationErrorGenerator.kt:95 */
|
1093 + | {
|
613 1094 | _inner.name()
|
614 1095 | }
|
1096 + | /* ServerOperationErrorGenerator.kt:139 */
|
615 1097 | }
|
1098 + | /* ServerOperationErrorGenerator.kt:93 */
|
616 1099 | }
|
1100 + | /* ServerOperationErrorGenerator.kt:83 */
|
617 1101 | }
|
1102 + | /* ServerOperationErrorGenerator.kt:100 */
|
618 1103 | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1104 + | /* ServerOperationErrorGenerator.kt:101 */
|
619 1105 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1106 + | /* ServerOperationErrorGenerator.kt:139 */
|
620 1107 | match &self {
|
621 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1108 + | /* ServerOperationErrorGenerator.kt:142 */
|
1109 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) =>
|
1110 + | /* ServerOperationErrorGenerator.kt:103 */
|
1111 + | {
|
622 1112 | Some(_inner)
|
623 1113 | }
|
624 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1114 + | ,
|
1115 + | /* ServerOperationErrorGenerator.kt:142 */
|
1116 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
1117 + | /* ServerOperationErrorGenerator.kt:103 */
|
1118 + | {
|
625 1119 | Some(_inner)
|
626 1120 | }
|
1121 + | /* ServerOperationErrorGenerator.kt:139 */
|
627 1122 | }
|
1123 + | /* ServerOperationErrorGenerator.kt:101 */
|
628 1124 | }
|
1125 + | /* ServerOperationErrorGenerator.kt:100 */
|
629 1126 | }
|
1127 + | /* ServerOperationErrorGenerator.kt:110 */
|
630 1128 | impl ::std::convert::From<crate::error::ValidationException>
|
631 1129 | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
632 1130 | {
|
1131 + | /* ServerOperationErrorGenerator.kt:111 */
|
633 1132 | fn from(
|
634 1133 | variant: crate::error::ValidationException,
|
635 1134 | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1135 + | /* ServerOperationErrorGenerator.kt:112 */
|
636 1136 | Self::ValidationException(variant)
|
1137 + | /* ServerOperationErrorGenerator.kt:111 */
|
637 1138 | }
|
1139 + | /* ServerOperationErrorGenerator.kt:110 */
|
638 1140 | }
|
1141 + | /* ServerOperationErrorGenerator.kt:110 */
|
639 1142 | impl ::std::convert::From<crate::error::InternalServerError>
|
640 1143 | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
641 1144 | {
|
1145 + | /* ServerOperationErrorGenerator.kt:111 */
|
642 1146 | fn from(
|
643 1147 | variant: crate::error::InternalServerError,
|
644 1148 | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1149 + | /* ServerOperationErrorGenerator.kt:112 */
|
645 1150 | Self::InternalServerError(variant)
|
1151 + | /* ServerOperationErrorGenerator.kt:111 */
|
646 1152 | }
|
1153 + | /* ServerOperationErrorGenerator.kt:110 */
|
647 1154 | }
|
648 1155 |
|
1156 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
649 1157 | impl ::std::convert::From<::pyo3::PyErr>
|
650 1158 | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
651 1159 | {
|
652 1160 | fn from(
|
653 1161 | variant: ::pyo3::PyErr,
|
654 1162 | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
655 1163 | ::pyo3::Python::with_gil(|py| {
|
656 1164 | let error = variant.value(py);
|
657 1165 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
658 1166 | return error.into();
|
659 1167 | }
|
660 1168 | crate::error::InternalServerError {
|
661 1169 | message: error.to_string(),
|
662 1170 | }
|
663 1171 | .into()
|
664 1172 | })
|
665 1173 | }
|
666 1174 | }
|
667 1175 |
|
1176 + | /* ServerOperationErrorGenerator.kt:63 */
|
668 1177 | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1178 + | /* ServerOperationErrorGenerator.kt:64 */
|
669 1179 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1180 + | /* RustType.kt:516 */
|
670 1181 | #[derive(::std::fmt::Debug)]
|
671 - | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
672 - | /// 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.
|
1182 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1183 + | {
|
1184 + | /// /* 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.
|
1185 + | /* ServerOperationErrorGenerator.kt:71 */
|
673 1186 | ValidationException(crate::error::ValidationException),
|
1187 + | /* ServerOperationErrorGenerator.kt:68 */
|
674 1188 | #[allow(missing_docs)] // documentation missing in model
|
1189 + | /* ServerOperationErrorGenerator.kt:71 */
|
675 1190 | InternalServerError(crate::error::InternalServerError),
|
1191 + | /* ServerOperationErrorGenerator.kt:66 */
|
676 1192 | }
|
1193 + | /* ServerOperationErrorGenerator.kt:75 */
|
677 1194 | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1195 + | /* ServerOperationErrorGenerator.kt:76 */
|
678 1196 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1197 + | /* ServerOperationErrorGenerator.kt:139 */
|
679 1198 | match &self {
|
680 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
681 - | _inner.fmt(f)
|
1199 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1200 + | /* ServerOperationErrorGenerator.kt:78 */_inner.fmt(f)
|
682 1201 | ,
|
683 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
684 - | _inner.fmt(f)
|
1202 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1203 + | /* ServerOperationErrorGenerator.kt:78 */_inner.fmt(f)
|
685 1204 | ,
|
686 - | }
|
1205 + | /* ServerOperationErrorGenerator.kt:139 */}
|
1206 + | /* ServerOperationErrorGenerator.kt:76 */
|
687 1207 | }
|
1208 + | /* ServerOperationErrorGenerator.kt:75 */
|
688 1209 | }
|
1210 + | /* ServerOperationErrorGenerator.kt:83 */
|
689 1211 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1212 + | /* ServerOperationErrorGenerator.kt:87 */
|
690 1213 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
1214 + | /* ServerOperationErrorGenerator.kt:88 */
|
691 1215 | pub fn is_validation_exception(&self) -> bool {
|
1216 + | /* ServerOperationErrorGenerator.kt:89 */
|
692 1217 | matches!(
|
693 1218 | &self,
|
694 1219 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
695 1220 | _
|
696 1221 | )
|
697 1222 | )
|
1223 + | /* ServerOperationErrorGenerator.kt:88 */
|
698 1224 | }
|
1225 + | /* ServerOperationErrorGenerator.kt:87 */
|
699 1226 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError`.
|
1227 + | /* ServerOperationErrorGenerator.kt:88 */
|
700 1228 | pub fn is_internal_server_error(&self) -> bool {
|
1229 + | /* ServerOperationErrorGenerator.kt:89 */
|
701 1230 | matches!(
|
702 1231 | &self,
|
703 1232 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(
|
704 1233 | _
|
705 1234 | )
|
706 1235 | )
|
1236 + | /* ServerOperationErrorGenerator.kt:88 */
|
707 1237 | }
|
1238 + | /* ServerOperationErrorGenerator.kt:92 */
|
708 1239 | /// Returns the error name string by matching the correct variant.
|
1240 + | /* ServerOperationErrorGenerator.kt:93 */
|
709 1241 | pub fn name(&self) -> &'static str {
|
1242 + | /* ServerOperationErrorGenerator.kt:139 */
|
710 1243 | match &self {
|
711 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
712 - | _inner.name()
|
1244 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1245 + | /* ServerOperationErrorGenerator.kt:95 */_inner.name()
|
713 1246 | ,
|
714 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
715 - | _inner.name()
|
1247 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1248 + | /* ServerOperationErrorGenerator.kt:95 */_inner.name()
|
716 1249 | ,
|
717 - | }
|
1250 + | /* ServerOperationErrorGenerator.kt:139 */}
|
1251 + | /* ServerOperationErrorGenerator.kt:93 */
|
718 1252 | }
|
1253 + | /* ServerOperationErrorGenerator.kt:83 */
|
719 1254 | }
|
1255 + | /* ServerOperationErrorGenerator.kt:100 */
|
720 1256 | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1257 + | /* ServerOperationErrorGenerator.kt:101 */
|
721 1258 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1259 + | /* ServerOperationErrorGenerator.kt:139 */
|
722 1260 | match &self {
|
723 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
724 - | Some(_inner)
|
1261 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1262 + | /* ServerOperationErrorGenerator.kt:103 */Some(_inner)
|
725 1263 | ,
|
726 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
727 - | Some(_inner)
|
1264 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1265 + | /* ServerOperationErrorGenerator.kt:103 */Some(_inner)
|
728 1266 | ,
|
729 - | }
|
1267 + | /* ServerOperationErrorGenerator.kt:139 */}
|
1268 + | /* ServerOperationErrorGenerator.kt:101 */
|
730 1269 | }
|
1270 + | /* ServerOperationErrorGenerator.kt:100 */
|
731 1271 | }
|
1272 + | /* ServerOperationErrorGenerator.kt:110 */
|
732 1273 | impl ::std::convert::From<crate::error::ValidationException>
|
733 1274 | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
734 1275 | {
|
1276 + | /* ServerOperationErrorGenerator.kt:111 */
|
735 1277 | fn from(
|
736 1278 | variant: crate::error::ValidationException,
|
737 1279 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1280 + | /* ServerOperationErrorGenerator.kt:112 */
|
738 1281 | Self::ValidationException(variant)
|
1282 + | /* ServerOperationErrorGenerator.kt:111 */
|
739 1283 | }
|
1284 + | /* ServerOperationErrorGenerator.kt:110 */
|
740 1285 | }
|
1286 + | /* ServerOperationErrorGenerator.kt:110 */
|
741 1287 | impl ::std::convert::From<crate::error::InternalServerError>
|
742 1288 | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
743 1289 | {
|
1290 + | /* ServerOperationErrorGenerator.kt:111 */
|
744 1291 | fn from(
|
745 1292 | variant: crate::error::InternalServerError,
|
746 1293 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1294 + | /* ServerOperationErrorGenerator.kt:112 */
|
747 1295 | Self::InternalServerError(variant)
|
1296 + | /* ServerOperationErrorGenerator.kt:111 */
|
748 1297 | }
|
1298 + | /* ServerOperationErrorGenerator.kt:110 */
|
749 1299 | }
|
750 1300 |
|
1301 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
751 1302 | impl ::std::convert::From<::pyo3::PyErr>
|
752 1303 | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
753 1304 | {
|
754 1305 | fn from(
|
755 1306 | variant: ::pyo3::PyErr,
|
756 1307 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
757 1308 | ::pyo3::Python::with_gil(|py| {
|
758 1309 | let error = variant.value(py);
|
759 1310 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
760 1311 | return error.into();
|
761 1312 | }
|
762 1313 | crate::error::InternalServerError {
|
763 1314 | message: error.to_string(),
|
764 1315 | }
|
765 1316 | .into()
|
766 1317 | })
|
767 1318 | }
|
768 1319 | }
|
769 1320 |
|
1321 + | /* ServerOperationErrorGenerator.kt:63 */
|
770 1322 | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1323 + | /* ServerOperationErrorGenerator.kt:64 */
|
771 1324 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1325 + | /* RustType.kt:516 */
|
772 1326 | #[derive(::std::fmt::Debug)]
|
773 - | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
774 - | /// 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.
|
1327 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1328 + | {
|
1329 + | /// /* 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.
|
1330 + | /* ServerOperationErrorGenerator.kt:71 */
|
775 1331 | ValidationException(crate::error::ValidationException),
|
1332 + | /* ServerOperationErrorGenerator.kt:68 */
|
776 1333 | #[allow(missing_docs)] // documentation missing in model
|
1334 + | /* ServerOperationErrorGenerator.kt:71 */
|
777 1335 | InternalServerError(crate::error::InternalServerError),
|
1336 + | /* ServerOperationErrorGenerator.kt:66 */
|
778 1337 | }
|
1338 + | /* ServerOperationErrorGenerator.kt:75 */
|
779 1339 | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1340 + | /* ServerOperationErrorGenerator.kt:76 */
|
780 1341 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1342 + | /* ServerOperationErrorGenerator.kt:139 */
|
781 1343 | match &self {
|
1344 + | /* ServerOperationErrorGenerator.kt:142 */
|
782 1345 | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
783 1346 | _inner,
|
784 - | ) => _inner.fmt(f),
|
1347 + | ) =>
|
1348 + | /* ServerOperationErrorGenerator.kt:78 */
|
1349 + | {
|
1350 + | _inner.fmt(f)
|
1351 + | }
|
1352 + | ,
|
1353 + | /* ServerOperationErrorGenerator.kt:142 */
|
785 1354 | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
786 1355 | _inner,
|
787 - | ) => _inner.fmt(f),
|
1356 + | ) =>
|
1357 + | /* ServerOperationErrorGenerator.kt:78 */
|
1358 + | {
|
1359 + | _inner.fmt(f)
|
1360 + | }
|
1361 + | /* ServerOperationErrorGenerator.kt:139 */
|
788 1362 | }
|
1363 + | /* ServerOperationErrorGenerator.kt:76 */
|
789 1364 | }
|
1365 + | /* ServerOperationErrorGenerator.kt:75 */
|
790 1366 | }
|
1367 + | /* ServerOperationErrorGenerator.kt:83 */
|
791 1368 | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1369 + | /* ServerOperationErrorGenerator.kt:87 */
|
792 1370 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
1371 + | /* ServerOperationErrorGenerator.kt:88 */
|
793 1372 | pub fn is_validation_exception(&self) -> bool {
|
1373 + | /* ServerOperationErrorGenerator.kt:89 */
|
794 1374 | matches!(
|
795 1375 | &self,
|
796 1376 | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
797 1377 | )
|
1378 + | /* ServerOperationErrorGenerator.kt:88 */
|
798 1379 | }
|
1380 + | /* ServerOperationErrorGenerator.kt:87 */
|
799 1381 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError`.
|
1382 + | /* ServerOperationErrorGenerator.kt:88 */
|
800 1383 | pub fn is_internal_server_error(&self) -> bool {
|
1384 + | /* ServerOperationErrorGenerator.kt:89 */
|
801 1385 | matches!(
|
802 1386 | &self,
|
803 1387 | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(_)
|
804 1388 | )
|
1389 + | /* ServerOperationErrorGenerator.kt:88 */
|
805 1390 | }
|
1391 + | /* ServerOperationErrorGenerator.kt:92 */
|
806 1392 | /// Returns the error name string by matching the correct variant.
|
1393 + | /* ServerOperationErrorGenerator.kt:93 */
|
807 1394 | pub fn name(&self) -> &'static str {
|
1395 + | /* ServerOperationErrorGenerator.kt:139 */
|
808 1396 | match &self {
|
1397 + | /* ServerOperationErrorGenerator.kt:142 */
|
809 1398 | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
810 1399 | _inner,
|
811 - | ) => _inner.name(),
|
1400 + | ) =>
|
1401 + | /* ServerOperationErrorGenerator.kt:95 */
|
1402 + | {
|
1403 + | _inner.name()
|
1404 + | }
|
1405 + | ,
|
1406 + | /* ServerOperationErrorGenerator.kt:142 */
|
812 1407 | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
813 1408 | _inner,
|
814 - | ) => _inner.name(),
|
1409 + | ) =>
|
1410 + | /* ServerOperationErrorGenerator.kt:95 */
|
1411 + | {
|
1412 + | _inner.name()
|
1413 + | }
|
1414 + | /* ServerOperationErrorGenerator.kt:139 */
|
815 1415 | }
|
1416 + | /* ServerOperationErrorGenerator.kt:93 */
|
816 1417 | }
|
1418 + | /* ServerOperationErrorGenerator.kt:83 */
|
817 1419 | }
|
1420 + | /* ServerOperationErrorGenerator.kt:100 */
|
818 1421 | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1422 + | /* ServerOperationErrorGenerator.kt:101 */
|
819 1423 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1424 + | /* ServerOperationErrorGenerator.kt:139 */
|
820 1425 | match &self {
|
1426 + | /* ServerOperationErrorGenerator.kt:142 */
|
821 1427 | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
822 1428 | _inner,
|
823 - | ) => Some(_inner),
|
1429 + | ) =>
|
1430 + | /* ServerOperationErrorGenerator.kt:103 */
|
1431 + | {
|
1432 + | Some(_inner)
|
1433 + | }
|
1434 + | ,
|
1435 + | /* ServerOperationErrorGenerator.kt:142 */
|
824 1436 | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
825 1437 | _inner,
|
826 - | ) => Some(_inner),
|
1438 + | ) =>
|
1439 + | /* ServerOperationErrorGenerator.kt:103 */
|
1440 + | {
|
1441 + | Some(_inner)
|
1442 + | }
|
1443 + | /* ServerOperationErrorGenerator.kt:139 */
|
827 1444 | }
|
1445 + | /* ServerOperationErrorGenerator.kt:101 */
|
828 1446 | }
|
1447 + | /* ServerOperationErrorGenerator.kt:100 */
|
829 1448 | }
|
1449 + | /* ServerOperationErrorGenerator.kt:110 */
|
830 1450 | impl ::std::convert::From<crate::error::ValidationException>
|
831 1451 | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
832 1452 | {
|
1453 + | /* ServerOperationErrorGenerator.kt:111 */
|
833 1454 | fn from(
|
834 1455 | variant: crate::error::ValidationException,
|
835 1456 | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1457 + | /* ServerOperationErrorGenerator.kt:112 */
|
836 1458 | Self::ValidationException(variant)
|
1459 + | /* ServerOperationErrorGenerator.kt:111 */
|
837 1460 | }
|
1461 + | /* ServerOperationErrorGenerator.kt:110 */
|
838 1462 | }
|
1463 + | /* ServerOperationErrorGenerator.kt:110 */
|
839 1464 | impl ::std::convert::From<crate::error::InternalServerError>
|
840 1465 | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
841 1466 | {
|
1467 + | /* ServerOperationErrorGenerator.kt:111 */
|
842 1468 | fn from(
|
843 1469 | variant: crate::error::InternalServerError,
|
844 1470 | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1471 + | /* ServerOperationErrorGenerator.kt:112 */
|
845 1472 | Self::InternalServerError(variant)
|
1473 + | /* ServerOperationErrorGenerator.kt:111 */
|
846 1474 | }
|
1475 + | /* ServerOperationErrorGenerator.kt:110 */
|
847 1476 | }
|
848 1477 |
|
1478 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
849 1479 | impl ::std::convert::From<::pyo3::PyErr>
|
850 1480 | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
851 1481 | {
|
852 1482 | fn from(
|
853 1483 | variant: ::pyo3::PyErr,
|
854 1484 | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
855 1485 | ::pyo3::Python::with_gil(|py| {
|
856 1486 | let error = variant.value(py);
|
857 1487 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
858 1488 | return error.into();
|
859 1489 | }
|
860 1490 | crate::error::InternalServerError {
|
861 1491 | message: error.to_string(),
|
862 1492 | }
|
863 1493 | .into()
|
864 1494 | })
|
865 1495 | }
|
866 1496 | }
|
867 1497 |
|
1498 + | /* ServerOperationErrorGenerator.kt:63 */
|
868 1499 | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1500 + | /* ServerOperationErrorGenerator.kt:64 */
|
869 1501 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1502 + | /* RustType.kt:516 */
|
870 1503 | #[derive(::std::fmt::Debug)]
|
871 - | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
872 - | /// 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.
|
1504 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1505 + | {
|
1506 + | /// /* 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.
|
1507 + | /* ServerOperationErrorGenerator.kt:71 */
|
873 1508 | ValidationException(crate::error::ValidationException),
|
1509 + | /* ServerOperationErrorGenerator.kt:68 */
|
874 1510 | #[allow(missing_docs)] // documentation missing in model
|
1511 + | /* ServerOperationErrorGenerator.kt:71 */
|
875 1512 | InternalServerError(crate::error::InternalServerError),
|
1513 + | /* ServerOperationErrorGenerator.kt:66 */
|
876 1514 | }
|
1515 + | /* ServerOperationErrorGenerator.kt:75 */
|
877 1516 | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1517 + | /* ServerOperationErrorGenerator.kt:76 */
|
878 1518 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1519 + | /* ServerOperationErrorGenerator.kt:139 */
|
879 1520 | match &self {
|
1521 + | /* ServerOperationErrorGenerator.kt:142 */
|
880 1522 | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
881 1523 | _inner,
|
882 - | ) => _inner.fmt(f),
|
1524 + | ) =>
|
1525 + | /* ServerOperationErrorGenerator.kt:78 */
|
1526 + | {
|
1527 + | _inner.fmt(f)
|
1528 + | }
|
1529 + | ,
|
1530 + | /* ServerOperationErrorGenerator.kt:142 */
|
883 1531 | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
884 1532 | _inner,
|
885 - | ) => _inner.fmt(f),
|
1533 + | ) =>
|
1534 + | /* ServerOperationErrorGenerator.kt:78 */
|
1535 + | {
|
1536 + | _inner.fmt(f)
|
1537 + | }
|
1538 + | /* ServerOperationErrorGenerator.kt:139 */
|
886 1539 | }
|
1540 + | /* ServerOperationErrorGenerator.kt:76 */
|
887 1541 | }
|
1542 + | /* ServerOperationErrorGenerator.kt:75 */
|
888 1543 | }
|
1544 + | /* ServerOperationErrorGenerator.kt:83 */
|
889 1545 | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1546 + | /* ServerOperationErrorGenerator.kt:87 */
|
890 1547 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
1548 + | /* ServerOperationErrorGenerator.kt:88 */
|
891 1549 | pub fn is_validation_exception(&self) -> bool {
|
1550 + | /* ServerOperationErrorGenerator.kt:89 */
|
892 1551 | matches!(
|
893 1552 | &self,
|
894 1553 | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
895 1554 | )
|
1555 + | /* ServerOperationErrorGenerator.kt:88 */
|
896 1556 | }
|
1557 + | /* ServerOperationErrorGenerator.kt:87 */
|
897 1558 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError`.
|
1559 + | /* ServerOperationErrorGenerator.kt:88 */
|
898 1560 | pub fn is_internal_server_error(&self) -> bool {
|
1561 + | /* ServerOperationErrorGenerator.kt:89 */
|
899 1562 | matches!(
|
900 1563 | &self,
|
901 1564 | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(_)
|
902 1565 | )
|
1566 + | /* ServerOperationErrorGenerator.kt:88 */
|
903 1567 | }
|
1568 + | /* ServerOperationErrorGenerator.kt:92 */
|
904 1569 | /// Returns the error name string by matching the correct variant.
|
1570 + | /* ServerOperationErrorGenerator.kt:93 */
|
905 1571 | pub fn name(&self) -> &'static str {
|
1572 + | /* ServerOperationErrorGenerator.kt:139 */
|
906 1573 | match &self {
|
1574 + | /* ServerOperationErrorGenerator.kt:142 */
|
907 1575 | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
908 1576 | _inner,
|
909 - | ) => _inner.name(),
|
1577 + | ) =>
|
1578 + | /* ServerOperationErrorGenerator.kt:95 */
|
1579 + | {
|
1580 + | _inner.name()
|
1581 + | }
|
1582 + | ,
|
1583 + | /* ServerOperationErrorGenerator.kt:142 */
|
910 1584 | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
911 1585 | _inner,
|
912 - | ) => _inner.name(),
|
1586 + | ) =>
|
1587 + | /* ServerOperationErrorGenerator.kt:95 */
|
1588 + | {
|
1589 + | _inner.name()
|
1590 + | }
|
1591 + | /* ServerOperationErrorGenerator.kt:139 */
|
913 1592 | }
|
1593 + | /* ServerOperationErrorGenerator.kt:93 */
|
914 1594 | }
|
1595 + | /* ServerOperationErrorGenerator.kt:83 */
|
915 1596 | }
|
1597 + | /* ServerOperationErrorGenerator.kt:100 */
|
916 1598 | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1599 + | /* ServerOperationErrorGenerator.kt:101 */
|
917 1600 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1601 + | /* ServerOperationErrorGenerator.kt:139 */
|
918 1602 | match &self {
|
1603 + | /* ServerOperationErrorGenerator.kt:142 */
|
919 1604 | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
920 1605 | _inner,
|
921 - | ) => Some(_inner),
|
1606 + | ) =>
|
1607 + | /* ServerOperationErrorGenerator.kt:103 */
|
1608 + | {
|
1609 + | Some(_inner)
|
1610 + | }
|
1611 + | ,
|
1612 + | /* ServerOperationErrorGenerator.kt:142 */
|
922 1613 | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
923 1614 | _inner,
|
924 - | ) => Some(_inner),
|
1615 + | ) =>
|
1616 + | /* ServerOperationErrorGenerator.kt:103 */
|
1617 + | {
|
1618 + | Some(_inner)
|
1619 + | }
|
1620 + | /* ServerOperationErrorGenerator.kt:139 */
|
925 1621 | }
|
1622 + | /* ServerOperationErrorGenerator.kt:101 */
|
926 1623 | }
|
1624 + | /* ServerOperationErrorGenerator.kt:100 */
|
927 1625 | }
|
1626 + | /* ServerOperationErrorGenerator.kt:110 */
|
928 1627 | impl ::std::convert::From<crate::error::ValidationException>
|
929 1628 | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
930 1629 | {
|
1630 + | /* ServerOperationErrorGenerator.kt:111 */
|
931 1631 | fn from(
|
932 1632 | variant: crate::error::ValidationException,
|
933 1633 | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1634 + | /* ServerOperationErrorGenerator.kt:112 */
|
934 1635 | Self::ValidationException(variant)
|
1636 + | /* ServerOperationErrorGenerator.kt:111 */
|
935 1637 | }
|
1638 + | /* ServerOperationErrorGenerator.kt:110 */
|
936 1639 | }
|
1640 + | /* ServerOperationErrorGenerator.kt:110 */
|
937 1641 | impl ::std::convert::From<crate::error::InternalServerError>
|
938 1642 | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
939 1643 | {
|
1644 + | /* ServerOperationErrorGenerator.kt:111 */
|
940 1645 | fn from(
|
941 1646 | variant: crate::error::InternalServerError,
|
942 1647 | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1648 + | /* ServerOperationErrorGenerator.kt:112 */
|
943 1649 | Self::InternalServerError(variant)
|
1650 + | /* ServerOperationErrorGenerator.kt:111 */
|
944 1651 | }
|
1652 + | /* ServerOperationErrorGenerator.kt:110 */
|
945 1653 | }
|
946 1654 |
|
1655 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
947 1656 | impl ::std::convert::From<::pyo3::PyErr>
|
948 1657 | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
949 1658 | {
|
950 1659 | fn from(
|
951 1660 | variant: ::pyo3::PyErr,
|
952 1661 | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
953 1662 | ::pyo3::Python::with_gil(|py| {
|
954 1663 | let error = variant.value(py);
|
955 1664 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
956 1665 | return error.into();
|
957 1666 | }
|
958 1667 | crate::error::InternalServerError {
|
959 1668 | message: error.to_string(),
|
960 1669 | }
|
961 1670 | .into()
|
962 1671 | })
|
963 1672 | }
|
964 1673 | }
|
965 1674 |
|
1675 + | /* ServerOperationErrorGenerator.kt:63 */
|
966 1676 | /// Error type for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
1677 + | /* ServerOperationErrorGenerator.kt:64 */
|
967 1678 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
1679 + | /* RustType.kt:516 */
|
968 1680 | #[derive(::std::fmt::Debug)]
|
969 - | pub enum QueryParamsTargetingMapOfPatternStringOperationError {
|
970 - | /// 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.
|
1681 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfPatternStringOperationError
|
1682 + | {
|
1683 + | /// /* 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.
|
1684 + | /* ServerOperationErrorGenerator.kt:71 */
|
971 1685 | ValidationException(crate::error::ValidationException),
|
1686 + | /* ServerOperationErrorGenerator.kt:68 */
|
972 1687 | #[allow(missing_docs)] // documentation missing in model
|
1688 + | /* ServerOperationErrorGenerator.kt:71 */
|
973 1689 | InternalServerError(crate::error::InternalServerError),
|
1690 + | /* ServerOperationErrorGenerator.kt:66 */
|
974 1691 | }
|
1692 + | /* ServerOperationErrorGenerator.kt:75 */
|
975 1693 | impl ::std::fmt::Display for QueryParamsTargetingMapOfPatternStringOperationError {
|
1694 + | /* ServerOperationErrorGenerator.kt:76 */
|
976 1695 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1696 + | /* ServerOperationErrorGenerator.kt:139 */
|
977 1697 | match &self {
|
978 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1698 + | /* ServerOperationErrorGenerator.kt:142 */
|
1699 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) =>
|
1700 + | /* ServerOperationErrorGenerator.kt:78 */
|
1701 + | {
|
979 1702 | _inner.fmt(f)
|
980 1703 | }
|
981 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1704 + | ,
|
1705 + | /* ServerOperationErrorGenerator.kt:142 */
|
1706 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) =>
|
1707 + | /* ServerOperationErrorGenerator.kt:78 */
|
1708 + | {
|
982 1709 | _inner.fmt(f)
|
983 1710 | }
|
1711 + | /* ServerOperationErrorGenerator.kt:139 */
|
984 1712 | }
|
1713 + | /* ServerOperationErrorGenerator.kt:76 */
|
985 1714 | }
|
1715 + | /* ServerOperationErrorGenerator.kt:75 */
|
986 1716 | }
|
1717 + | /* ServerOperationErrorGenerator.kt:83 */
|
987 1718 | impl QueryParamsTargetingMapOfPatternStringOperationError {
|
1719 + | /* ServerOperationErrorGenerator.kt:87 */
|
988 1720 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::ValidationException`.
|
1721 + | /* ServerOperationErrorGenerator.kt:88 */
|
989 1722 | pub fn is_validation_exception(&self) -> bool {
|
1723 + | /* ServerOperationErrorGenerator.kt:89 */
|
990 1724 | matches!(
|
991 1725 | &self,
|
992 1726 | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_)
|
993 1727 | )
|
1728 + | /* ServerOperationErrorGenerator.kt:88 */
|
994 1729 | }
|
1730 + | /* ServerOperationErrorGenerator.kt:87 */
|
995 1731 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError`.
|
1732 + | /* ServerOperationErrorGenerator.kt:88 */
|
996 1733 | pub fn is_internal_server_error(&self) -> bool {
|
1734 + | /* ServerOperationErrorGenerator.kt:89 */
|
997 1735 | matches!(
|
998 1736 | &self,
|
999 1737 | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_)
|
1000 1738 | )
|
1739 + | /* ServerOperationErrorGenerator.kt:88 */
|
1001 1740 | }
|
1741 + | /* ServerOperationErrorGenerator.kt:92 */
|
1002 1742 | /// Returns the error name string by matching the correct variant.
|
1743 + | /* ServerOperationErrorGenerator.kt:93 */
|
1003 1744 | pub fn name(&self) -> &'static str {
|
1745 + | /* ServerOperationErrorGenerator.kt:139 */
|
1004 1746 | match &self {
|
1005 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1747 + | /* ServerOperationErrorGenerator.kt:142 */
|
1748 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) =>
|
1749 + | /* ServerOperationErrorGenerator.kt:95 */
|
1750 + | {
|
1006 1751 | _inner.name()
|
1007 1752 | }
|
1008 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1753 + | ,
|
1754 + | /* ServerOperationErrorGenerator.kt:142 */
|
1755 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) =>
|
1756 + | /* ServerOperationErrorGenerator.kt:95 */
|
1757 + | {
|
1009 1758 | _inner.name()
|
1010 1759 | }
|
1760 + | /* ServerOperationErrorGenerator.kt:139 */
|
1011 1761 | }
|
1762 + | /* ServerOperationErrorGenerator.kt:93 */
|
1012 1763 | }
|
1764 + | /* ServerOperationErrorGenerator.kt:83 */
|
1013 1765 | }
|
1766 + | /* ServerOperationErrorGenerator.kt:100 */
|
1014 1767 | impl ::std::error::Error for QueryParamsTargetingMapOfPatternStringOperationError {
|
1768 + | /* ServerOperationErrorGenerator.kt:101 */
|
1015 1769 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1770 + | /* ServerOperationErrorGenerator.kt:139 */
|
1016 1771 | match &self {
|
1017 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1772 + | /* ServerOperationErrorGenerator.kt:142 */
|
1773 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) =>
|
1774 + | /* ServerOperationErrorGenerator.kt:103 */
|
1775 + | {
|
1018 1776 | Some(_inner)
|
1019 1777 | }
|
1020 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1778 + | ,
|
1779 + | /* ServerOperationErrorGenerator.kt:142 */
|
1780 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) =>
|
1781 + | /* ServerOperationErrorGenerator.kt:103 */
|
1782 + | {
|
1021 1783 | Some(_inner)
|
1022 1784 | }
|
1785 + | /* ServerOperationErrorGenerator.kt:139 */
|
1023 1786 | }
|
1787 + | /* ServerOperationErrorGenerator.kt:101 */
|
1024 1788 | }
|
1789 + | /* ServerOperationErrorGenerator.kt:100 */
|
1025 1790 | }
|
1791 + | /* ServerOperationErrorGenerator.kt:110 */
|
1026 1792 | impl ::std::convert::From<crate::error::ValidationException>
|
1027 1793 | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1028 1794 | {
|
1795 + | /* ServerOperationErrorGenerator.kt:111 */
|
1029 1796 | fn from(
|
1030 1797 | variant: crate::error::ValidationException,
|
1031 1798 | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1799 + | /* ServerOperationErrorGenerator.kt:112 */
|
1032 1800 | Self::ValidationException(variant)
|
1801 + | /* ServerOperationErrorGenerator.kt:111 */
|
1033 1802 | }
|
1803 + | /* ServerOperationErrorGenerator.kt:110 */
|
1034 1804 | }
|
1805 + | /* ServerOperationErrorGenerator.kt:110 */
|
1035 1806 | impl ::std::convert::From<crate::error::InternalServerError>
|
1036 1807 | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1037 1808 | {
|
1809 + | /* ServerOperationErrorGenerator.kt:111 */
|
1038 1810 | fn from(
|
1039 1811 | variant: crate::error::InternalServerError,
|
1040 1812 | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1813 + | /* ServerOperationErrorGenerator.kt:112 */
|
1041 1814 | Self::InternalServerError(variant)
|
1815 + | /* ServerOperationErrorGenerator.kt:111 */
|
1042 1816 | }
|
1817 + | /* ServerOperationErrorGenerator.kt:110 */
|
1043 1818 | }
|
1044 1819 |
|
1820 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1045 1821 | impl ::std::convert::From<::pyo3::PyErr>
|
1046 1822 | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1047 1823 | {
|
1048 1824 | fn from(
|
1049 1825 | variant: ::pyo3::PyErr,
|
1050 1826 | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1051 1827 | ::pyo3::Python::with_gil(|py| {
|
1052 1828 | let error = variant.value(py);
|
1053 1829 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1054 1830 | return error.into();
|
1055 1831 | }
|
1056 1832 | crate::error::InternalServerError {
|
1057 1833 | message: error.to_string(),
|
1058 1834 | }
|
1059 1835 | .into()
|
1060 1836 | })
|
1061 1837 | }
|
1062 1838 | }
|
1063 1839 |
|
1840 + | /* ServerOperationErrorGenerator.kt:63 */
|
1064 1841 | /// Error type for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
1842 + | /* ServerOperationErrorGenerator.kt:64 */
|
1065 1843 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
1844 + | /* RustType.kt:516 */
|
1066 1845 | #[derive(::std::fmt::Debug)]
|
1067 - | pub enum QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1068 - | /// 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.
|
1846 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1847 + | {
|
1848 + | /// /* 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.
|
1849 + | /* ServerOperationErrorGenerator.kt:71 */
|
1069 1850 | ValidationException(crate::error::ValidationException),
|
1851 + | /* ServerOperationErrorGenerator.kt:68 */
|
1070 1852 | #[allow(missing_docs)] // documentation missing in model
|
1853 + | /* ServerOperationErrorGenerator.kt:71 */
|
1071 1854 | InternalServerError(crate::error::InternalServerError),
|
1855 + | /* ServerOperationErrorGenerator.kt:66 */
|
1072 1856 | }
|
1857 + | /* ServerOperationErrorGenerator.kt:75 */
|
1073 1858 | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1859 + | /* ServerOperationErrorGenerator.kt:76 */
|
1074 1860 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1861 + | /* ServerOperationErrorGenerator.kt:139 */
|
1075 1862 | match &self {
|
1863 + | /* ServerOperationErrorGenerator.kt:142 */
|
1076 1864 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1077 1865 | _inner,
|
1078 - | ) => _inner.fmt(f),
|
1866 + | ) =>
|
1867 + | /* ServerOperationErrorGenerator.kt:78 */
|
1868 + | {
|
1869 + | _inner.fmt(f)
|
1870 + | }
|
1871 + | ,
|
1872 + | /* ServerOperationErrorGenerator.kt:142 */
|
1079 1873 | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1080 1874 | _inner,
|
1081 - | ) => _inner.fmt(f),
|
1875 + | ) =>
|
1876 + | /* ServerOperationErrorGenerator.kt:78 */
|
1877 + | {
|
1878 + | _inner.fmt(f)
|
1879 + | }
|
1880 + | /* ServerOperationErrorGenerator.kt:139 */
|
1082 1881 | }
|
1882 + | /* ServerOperationErrorGenerator.kt:76 */
|
1083 1883 | }
|
1884 + | /* ServerOperationErrorGenerator.kt:75 */
|
1084 1885 | }
|
1886 + | /* ServerOperationErrorGenerator.kt:83 */
|
1085 1887 | impl QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1888 + | /* ServerOperationErrorGenerator.kt:87 */
|
1086 1889 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException`.
|
1890 + | /* ServerOperationErrorGenerator.kt:88 */
|
1087 1891 | pub fn is_validation_exception(&self) -> bool {
|
1892 + | /* ServerOperationErrorGenerator.kt:89 */
|
1088 1893 | matches!(
|
1089 1894 | &self,
|
1090 1895 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(_)
|
1091 1896 | )
|
1897 + | /* ServerOperationErrorGenerator.kt:88 */
|
1092 1898 | }
|
1899 + | /* ServerOperationErrorGenerator.kt:87 */
|
1093 1900 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError`.
|
1901 + | /* ServerOperationErrorGenerator.kt:88 */
|
1094 1902 | pub fn is_internal_server_error(&self) -> bool {
|
1903 + | /* ServerOperationErrorGenerator.kt:89 */
|
1095 1904 | matches!(
|
1096 1905 | &self,
|
1097 1906 | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(_)
|
1098 1907 | )
|
1908 + | /* ServerOperationErrorGenerator.kt:88 */
|
1099 1909 | }
|
1910 + | /* ServerOperationErrorGenerator.kt:92 */
|
1100 1911 | /// Returns the error name string by matching the correct variant.
|
1912 + | /* ServerOperationErrorGenerator.kt:93 */
|
1101 1913 | pub fn name(&self) -> &'static str {
|
1914 + | /* ServerOperationErrorGenerator.kt:139 */
|
1102 1915 | match &self {
|
1916 + | /* ServerOperationErrorGenerator.kt:142 */
|
1103 1917 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1104 1918 | _inner,
|
1105 - | ) => _inner.name(),
|
1919 + | ) =>
|
1920 + | /* ServerOperationErrorGenerator.kt:95 */
|
1921 + | {
|
1922 + | _inner.name()
|
1923 + | }
|
1924 + | ,
|
1925 + | /* ServerOperationErrorGenerator.kt:142 */
|
1106 1926 | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1107 1927 | _inner,
|
1108 - | ) => _inner.name(),
|
1928 + | ) =>
|
1929 + | /* ServerOperationErrorGenerator.kt:95 */
|
1930 + | {
|
1931 + | _inner.name()
|
1932 + | }
|
1933 + | /* ServerOperationErrorGenerator.kt:139 */
|
1109 1934 | }
|
1935 + | /* ServerOperationErrorGenerator.kt:93 */
|
1110 1936 | }
|
1937 + | /* ServerOperationErrorGenerator.kt:83 */
|
1111 1938 | }
|
1939 + | /* ServerOperationErrorGenerator.kt:100 */
|
1112 1940 | impl ::std::error::Error for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1941 + | /* ServerOperationErrorGenerator.kt:101 */
|
1113 1942 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1943 + | /* ServerOperationErrorGenerator.kt:139 */
|
1114 1944 | match &self {
|
1945 + | /* ServerOperationErrorGenerator.kt:142 */
|
1115 1946 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1116 1947 | _inner,
|
1117 - | ) => Some(_inner),
|
1948 + | ) =>
|
1949 + | /* ServerOperationErrorGenerator.kt:103 */
|
1950 + | {
|
1951 + | Some(_inner)
|
1952 + | }
|
1953 + | ,
|
1954 + | /* ServerOperationErrorGenerator.kt:142 */
|
1118 1955 | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1119 1956 | _inner,
|
1120 - | ) => Some(_inner),
|
1957 + | ) =>
|
1958 + | /* ServerOperationErrorGenerator.kt:103 */
|
1959 + | {
|
1960 + | Some(_inner)
|
1961 + | }
|
1962 + | /* ServerOperationErrorGenerator.kt:139 */
|
1121 1963 | }
|
1964 + | /* ServerOperationErrorGenerator.kt:101 */
|
1122 1965 | }
|
1966 + | /* ServerOperationErrorGenerator.kt:100 */
|
1123 1967 | }
|
1968 + | /* ServerOperationErrorGenerator.kt:110 */
|
1124 1969 | impl ::std::convert::From<crate::error::ValidationException>
|
1125 1970 | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1126 1971 | {
|
1972 + | /* ServerOperationErrorGenerator.kt:111 */
|
1127 1973 | fn from(
|
1128 1974 | variant: crate::error::ValidationException,
|
1129 1975 | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1976 + | /* ServerOperationErrorGenerator.kt:112 */
|
1130 1977 | Self::ValidationException(variant)
|
1978 + | /* ServerOperationErrorGenerator.kt:111 */
|
1131 1979 | }
|
1980 + | /* ServerOperationErrorGenerator.kt:110 */
|
1132 1981 | }
|
1982 + | /* ServerOperationErrorGenerator.kt:110 */
|
1133 1983 | impl ::std::convert::From<crate::error::InternalServerError>
|
1134 1984 | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1135 1985 | {
|
1986 + | /* ServerOperationErrorGenerator.kt:111 */
|
1136 1987 | fn from(
|
1137 1988 | variant: crate::error::InternalServerError,
|
1138 1989 | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1990 + | /* ServerOperationErrorGenerator.kt:112 */
|
1139 1991 | Self::InternalServerError(variant)
|
1992 + | /* ServerOperationErrorGenerator.kt:111 */
|
1140 1993 | }
|
1994 + | /* ServerOperationErrorGenerator.kt:110 */
|
1141 1995 | }
|
1142 1996 |
|
1997 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1143 1998 | impl ::std::convert::From<::pyo3::PyErr>
|
1144 1999 | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1145 2000 | {
|
1146 2001 | fn from(
|
1147 2002 | variant: ::pyo3::PyErr,
|
1148 2003 | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1149 2004 | ::pyo3::Python::with_gil(|py| {
|
1150 2005 | let error = variant.value(py);
|
1151 2006 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1152 2007 | return error.into();
|
1153 2008 | }
|
1154 2009 | crate::error::InternalServerError {
|
1155 2010 | message: error.to_string(),
|
1156 2011 | }
|
1157 2012 | .into()
|
1158 2013 | })
|
1159 2014 | }
|
1160 2015 | }
|
1161 2016 |
|
2017 + | /* ServerOperationErrorGenerator.kt:63 */
|
1162 2018 | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
2019 + | /* ServerOperationErrorGenerator.kt:64 */
|
1163 2020 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
2021 + | /* RustType.kt:516 */
|
1164 2022 | #[derive(::std::fmt::Debug)]
|
1165 - | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1166 - | /// 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.
|
2023 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
2024 + | {
|
2025 + | /// /* 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.
|
2026 + | /* ServerOperationErrorGenerator.kt:71 */
|
1167 2027 | ValidationException(crate::error::ValidationException),
|
2028 + | /* ServerOperationErrorGenerator.kt:68 */
|
1168 2029 | #[allow(missing_docs)] // documentation missing in model
|
2030 + | /* ServerOperationErrorGenerator.kt:71 */
|
1169 2031 | InternalServerError(crate::error::InternalServerError),
|
2032 + | /* ServerOperationErrorGenerator.kt:66 */
|
1170 2033 | }
|
2034 + | /* ServerOperationErrorGenerator.kt:75 */
|
1171 2035 | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
2036 + | /* ServerOperationErrorGenerator.kt:76 */
|
1172 2037 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2038 + | /* ServerOperationErrorGenerator.kt:139 */
|
1173 2039 | match &self {
|
1174 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1175 - | _inner.fmt(f)
|
2040 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
2041 + | /* ServerOperationErrorGenerator.kt:78 */_inner.fmt(f)
|
1176 2042 | ,
|
1177 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1178 - | _inner.fmt(f)
|
2043 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
2044 + | /* ServerOperationErrorGenerator.kt:78 */_inner.fmt(f)
|
1179 2045 | ,
|
1180 - | }
|
2046 + | /* ServerOperationErrorGenerator.kt:139 */}
|
2047 + | /* ServerOperationErrorGenerator.kt:76 */
|
1181 2048 | }
|
2049 + | /* ServerOperationErrorGenerator.kt:75 */
|
1182 2050 | }
|
2051 + | /* ServerOperationErrorGenerator.kt:83 */
|
1183 2052 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
2053 + | /* ServerOperationErrorGenerator.kt:87 */
|
1184 2054 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
2055 + | /* ServerOperationErrorGenerator.kt:88 */
|
1185 2056 | pub fn is_validation_exception(&self) -> bool {
|
2057 + | /* ServerOperationErrorGenerator.kt:89 */
|
1186 2058 | matches!(
|
1187 2059 | &self,
|
1188 2060 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
1189 2061 | _
|
1190 2062 | )
|
1191 2063 | )
|
2064 + | /* ServerOperationErrorGenerator.kt:88 */
|
1192 2065 | }
|
2066 + | /* ServerOperationErrorGenerator.kt:87 */
|
1193 2067 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError`.
|
2068 + | /* ServerOperationErrorGenerator.kt:88 */
|
1194 2069 | pub fn is_internal_server_error(&self) -> bool {
|
2070 + | /* ServerOperationErrorGenerator.kt:89 */
|
1195 2071 | matches!(
|
1196 2072 | &self,
|
1197 2073 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(
|
1198 2074 | _
|
1199 2075 | )
|
1200 2076 | )
|
2077 + | /* ServerOperationErrorGenerator.kt:88 */
|
1201 2078 | }
|
2079 + | /* ServerOperationErrorGenerator.kt:92 */
|
1202 2080 | /// Returns the error name string by matching the correct variant.
|
2081 + | /* ServerOperationErrorGenerator.kt:93 */
|
1203 2082 | pub fn name(&self) -> &'static str {
|
2083 + | /* ServerOperationErrorGenerator.kt:139 */
|
1204 2084 | match &self {
|
1205 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1206 - | _inner.name()
|
2085 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
2086 + | /* ServerOperationErrorGenerator.kt:95 */_inner.name()
|
1207 2087 | ,
|
1208 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1209 - | _inner.name()
|
2088 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
2089 + | /* ServerOperationErrorGenerator.kt:95 */_inner.name()
|
1210 2090 | ,
|
1211 - | }
|
2091 + | /* ServerOperationErrorGenerator.kt:139 */}
|
2092 + | /* ServerOperationErrorGenerator.kt:93 */
|
1212 2093 | }
|
2094 + | /* ServerOperationErrorGenerator.kt:83 */
|
1213 2095 | }
|
2096 + | /* ServerOperationErrorGenerator.kt:100 */
|
1214 2097 | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
2098 + | /* ServerOperationErrorGenerator.kt:101 */
|
1215 2099 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2100 + | /* ServerOperationErrorGenerator.kt:139 */
|
1216 2101 | match &self {
|
1217 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1218 - | Some(_inner)
|
2102 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
2103 + | /* ServerOperationErrorGenerator.kt:103 */Some(_inner)
|
1219 2104 | ,
|
1220 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1221 - | Some(_inner)
|
2105 + | /* ServerOperationErrorGenerator.kt:142 */QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
2106 + | /* ServerOperationErrorGenerator.kt:103 */Some(_inner)
|
1222 2107 | ,
|
1223 - | }
|
2108 + | /* ServerOperationErrorGenerator.kt:139 */}
|
2109 + | /* ServerOperationErrorGenerator.kt:101 */
|
1224 2110 | }
|
2111 + | /* ServerOperationErrorGenerator.kt:100 */
|
1225 2112 | }
|
2113 + | /* ServerOperationErrorGenerator.kt:110 */
|
1226 2114 | impl ::std::convert::From<crate::error::ValidationException>
|
1227 2115 | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1228 2116 | {
|
2117 + | /* ServerOperationErrorGenerator.kt:111 */
|
1229 2118 | fn from(
|
1230 2119 | variant: crate::error::ValidationException,
|
1231 2120 | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
2121 + | /* ServerOperationErrorGenerator.kt:112 */
|
1232 2122 | Self::ValidationException(variant)
|
2123 + | /* ServerOperationErrorGenerator.kt:111 */
|
1233 2124 | }
|
2125 + | /* ServerOperationErrorGenerator.kt:110 */
|
1234 2126 | }
|
2127 + | /* ServerOperationErrorGenerator.kt:110 */
|
1235 2128 | impl ::std::convert::From<crate::error::InternalServerError>
|
1236 2129 | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1237 2130 | {
|
2131 + | /* ServerOperationErrorGenerator.kt:111 */
|
1238 2132 | fn from(
|
1239 2133 | variant: crate::error::InternalServerError,
|
1240 2134 | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
2135 + | /* ServerOperationErrorGenerator.kt:112 */
|
1241 2136 | Self::InternalServerError(variant)
|
2137 + | /* ServerOperationErrorGenerator.kt:111 */
|
1242 2138 | }
|
2139 + | /* ServerOperationErrorGenerator.kt:110 */
|
1243 2140 | }
|
1244 2141 |
|
2142 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1245 2143 | impl ::std::convert::From<::pyo3::PyErr>
|
1246 2144 | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1247 2145 | {
|
1248 2146 | fn from(
|
1249 2147 | variant: ::pyo3::PyErr,
|
1250 2148 | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1251 2149 | ::pyo3::Python::with_gil(|py| {
|
1252 2150 | let error = variant.value(py);
|
1253 2151 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1254 2152 | return error.into();
|
1255 2153 | }
|
1256 2154 | crate::error::InternalServerError {
|
1257 2155 | message: error.to_string(),
|
1258 2156 | }
|
1259 2157 | .into()
|
1260 2158 | })
|
1261 2159 | }
|
1262 2160 | }
|
1263 2161 |
|
2162 + | /* ServerOperationErrorGenerator.kt:63 */
|
1264 2163 | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
2164 + | /* ServerOperationErrorGenerator.kt:64 */
|
1265 2165 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
2166 + | /* RustType.kt:516 */
|
1266 2167 | #[derive(::std::fmt::Debug)]
|
1267 - | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1268 - | /// 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.
|
2168 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
2169 + | {
|
2170 + | /// /* 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.
|
2171 + | /* ServerOperationErrorGenerator.kt:71 */
|
1269 2172 | ValidationException(crate::error::ValidationException),
|
2173 + | /* ServerOperationErrorGenerator.kt:68 */
|
1270 2174 | #[allow(missing_docs)] // documentation missing in model
|
2175 + | /* ServerOperationErrorGenerator.kt:71 */
|
1271 2176 | InternalServerError(crate::error::InternalServerError),
|
2177 + | /* ServerOperationErrorGenerator.kt:66 */
|
1272 2178 | }
|
2179 + | /* ServerOperationErrorGenerator.kt:75 */
|
1273 2180 | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
2181 + | /* ServerOperationErrorGenerator.kt:76 */
|
1274 2182 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2183 + | /* ServerOperationErrorGenerator.kt:139 */
|
1275 2184 | match &self {
|
2185 + | /* ServerOperationErrorGenerator.kt:142 */
|
1276 2186 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1277 2187 | _inner,
|
1278 - | ) => _inner.fmt(f),
|
2188 + | ) =>
|
2189 + | /* ServerOperationErrorGenerator.kt:78 */
|
2190 + | {
|
2191 + | _inner.fmt(f)
|
2192 + | }
|
2193 + | ,
|
2194 + | /* ServerOperationErrorGenerator.kt:142 */
|
1279 2195 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1280 2196 | _inner,
|
1281 - | ) => _inner.fmt(f),
|
2197 + | ) =>
|
2198 + | /* ServerOperationErrorGenerator.kt:78 */
|
2199 + | {
|
2200 + | _inner.fmt(f)
|
2201 + | }
|
2202 + | /* ServerOperationErrorGenerator.kt:139 */
|
1282 2203 | }
|
2204 + | /* ServerOperationErrorGenerator.kt:76 */
|
1283 2205 | }
|
2206 + | /* ServerOperationErrorGenerator.kt:75 */
|
1284 2207 | }
|
2208 + | /* ServerOperationErrorGenerator.kt:83 */
|
1285 2209 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
2210 + | /* ServerOperationErrorGenerator.kt:87 */
|
1286 2211 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
2212 + | /* ServerOperationErrorGenerator.kt:88 */
|
1287 2213 | pub fn is_validation_exception(&self) -> bool {
|
2214 + | /* ServerOperationErrorGenerator.kt:89 */
|
1288 2215 | matches!(
|
1289 2216 | &self,
|
1290 2217 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
1291 2218 | )
|
2219 + | /* ServerOperationErrorGenerator.kt:88 */
|
1292 2220 | }
|
2221 + | /* ServerOperationErrorGenerator.kt:87 */
|
1293 2222 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError`.
|
2223 + | /* ServerOperationErrorGenerator.kt:88 */
|
1294 2224 | pub fn is_internal_server_error(&self) -> bool {
|
2225 + | /* ServerOperationErrorGenerator.kt:89 */
|
1295 2226 | matches!(
|
1296 2227 | &self,
|
1297 2228 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(_)
|
1298 2229 | )
|
2230 + | /* ServerOperationErrorGenerator.kt:88 */
|
1299 2231 | }
|
2232 + | /* ServerOperationErrorGenerator.kt:92 */
|
1300 2233 | /// Returns the error name string by matching the correct variant.
|
2234 + | /* ServerOperationErrorGenerator.kt:93 */
|
1301 2235 | pub fn name(&self) -> &'static str {
|
2236 + | /* ServerOperationErrorGenerator.kt:139 */
|
1302 2237 | match &self {
|
2238 + | /* ServerOperationErrorGenerator.kt:142 */
|
1303 2239 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1304 2240 | _inner,
|
1305 - | ) => _inner.name(),
|
2241 + | ) =>
|
2242 + | /* ServerOperationErrorGenerator.kt:95 */
|
2243 + | {
|
2244 + | _inner.name()
|
2245 + | }
|
2246 + | ,
|
2247 + | /* ServerOperationErrorGenerator.kt:142 */
|
1306 2248 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1307 2249 | _inner,
|
1308 - | ) => _inner.name(),
|
2250 + | ) =>
|
2251 + | /* ServerOperationErrorGenerator.kt:95 */
|
2252 + | {
|
2253 + | _inner.name()
|
2254 + | }
|
2255 + | /* ServerOperationErrorGenerator.kt:139 */
|
1309 2256 | }
|
2257 + | /* ServerOperationErrorGenerator.kt:93 */
|
1310 2258 | }
|
2259 + | /* ServerOperationErrorGenerator.kt:83 */
|
1311 2260 | }
|
2261 + | /* ServerOperationErrorGenerator.kt:100 */
|
1312 2262 | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
2263 + | /* ServerOperationErrorGenerator.kt:101 */
|
1313 2264 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2265 + | /* ServerOperationErrorGenerator.kt:139 */
|
1314 2266 | match &self {
|
2267 + | /* ServerOperationErrorGenerator.kt:142 */
|
1315 2268 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1316 2269 | _inner,
|
1317 - | ) => Some(_inner),
|
2270 + | ) =>
|
2271 + | /* ServerOperationErrorGenerator.kt:103 */
|
2272 + | {
|
2273 + | Some(_inner)
|
2274 + | }
|
2275 + | ,
|
2276 + | /* ServerOperationErrorGenerator.kt:142 */
|
1318 2277 | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1319 2278 | _inner,
|
1320 - | ) => Some(_inner),
|
2279 + | ) =>
|
2280 + | /* ServerOperationErrorGenerator.kt:103 */
|
2281 + | {
|
2282 + | Some(_inner)
|
2283 + | }
|
2284 + | /* ServerOperationErrorGenerator.kt:139 */
|
1321 2285 | }
|
2286 + | /* ServerOperationErrorGenerator.kt:101 */
|
1322 2287 | }
|
2288 + | /* ServerOperationErrorGenerator.kt:100 */
|
1323 2289 | }
|
2290 + | /* ServerOperationErrorGenerator.kt:110 */
|
1324 2291 | impl ::std::convert::From<crate::error::ValidationException>
|
1325 2292 | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1326 2293 | {
|
2294 + | /* ServerOperationErrorGenerator.kt:111 */
|
1327 2295 | fn from(
|
1328 2296 | variant: crate::error::ValidationException,
|
1329 2297 | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
2298 + | /* ServerOperationErrorGenerator.kt:112 */
|
1330 2299 | Self::ValidationException(variant)
|
2300 + | /* ServerOperationErrorGenerator.kt:111 */
|
1331 2301 | }
|
2302 + | /* ServerOperationErrorGenerator.kt:110 */
|
1332 2303 | }
|
2304 + | /* ServerOperationErrorGenerator.kt:110 */
|
1333 2305 | impl ::std::convert::From<crate::error::InternalServerError>
|
1334 2306 | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1335 2307 | {
|
2308 + | /* ServerOperationErrorGenerator.kt:111 */
|
1336 2309 | fn from(
|
1337 2310 | variant: crate::error::InternalServerError,
|
1338 2311 | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
2312 + | /* ServerOperationErrorGenerator.kt:112 */
|
1339 2313 | Self::InternalServerError(variant)
|
2314 + | /* ServerOperationErrorGenerator.kt:111 */
|
1340 2315 | }
|
2316 + | /* ServerOperationErrorGenerator.kt:110 */
|
1341 2317 | }
|
1342 2318 |
|
2319 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1343 2320 | impl ::std::convert::From<::pyo3::PyErr>
|
1344 2321 | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1345 2322 | {
|
1346 2323 | fn from(
|
1347 2324 | variant: ::pyo3::PyErr,
|
1348 2325 | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1349 2326 | ::pyo3::Python::with_gil(|py| {
|
1350 2327 | let error = variant.value(py);
|
1351 2328 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1352 2329 | return error.into();
|
1353 2330 | }
|
1354 2331 | crate::error::InternalServerError {
|
1355 2332 | message: error.to_string(),
|
1356 2333 | }
|
1357 2334 | .into()
|
1358 2335 | })
|
1359 2336 | }
|
1360 2337 | }
|
1361 2338 |
|
2339 + | /* ServerOperationErrorGenerator.kt:63 */
|
1362 2340 | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
2341 + | /* ServerOperationErrorGenerator.kt:64 */
|
1363 2342 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
2343 + | /* RustType.kt:516 */
|
1364 2344 | #[derive(::std::fmt::Debug)]
|
1365 - | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1366 - | /// 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.
|
2345 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfListOfLengthStringOperationError
|
2346 + | {
|
2347 + | /// /* 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.
|
2348 + | /* ServerOperationErrorGenerator.kt:71 */
|
1367 2349 | ValidationException(crate::error::ValidationException),
|
2350 + | /* ServerOperationErrorGenerator.kt:68 */
|
1368 2351 | #[allow(missing_docs)] // documentation missing in model
|
2352 + | /* ServerOperationErrorGenerator.kt:71 */
|
1369 2353 | InternalServerError(crate::error::InternalServerError),
|
2354 + | /* ServerOperationErrorGenerator.kt:66 */
|
1370 2355 | }
|
2356 + | /* ServerOperationErrorGenerator.kt:75 */
|
1371 2357 | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
2358 + | /* ServerOperationErrorGenerator.kt:76 */
|
1372 2359 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2360 + | /* ServerOperationErrorGenerator.kt:139 */
|
1373 2361 | match &self {
|
2362 + | /* ServerOperationErrorGenerator.kt:142 */
|
1374 2363 | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1375 2364 | _inner,
|
1376 - | ) => _inner.fmt(f),
|
2365 + | ) =>
|
2366 + | /* ServerOperationErrorGenerator.kt:78 */
|
2367 + | {
|
2368 + | _inner.fmt(f)
|
2369 + | }
|
2370 + | ,
|
2371 + | /* ServerOperationErrorGenerator.kt:142 */
|
1377 2372 | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1378 2373 | _inner,
|
1379 - | ) => _inner.fmt(f),
|
2374 + | ) =>
|
2375 + | /* ServerOperationErrorGenerator.kt:78 */
|
2376 + | {
|
2377 + | _inner.fmt(f)
|
2378 + | }
|
2379 + | /* ServerOperationErrorGenerator.kt:139 */
|
1380 2380 | }
|
2381 + | /* ServerOperationErrorGenerator.kt:76 */
|
1381 2382 | }
|
2383 + | /* ServerOperationErrorGenerator.kt:75 */
|
1382 2384 | }
|
2385 + | /* ServerOperationErrorGenerator.kt:83 */
|
1383 2386 | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
2387 + | /* ServerOperationErrorGenerator.kt:87 */
|
1384 2388 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
2389 + | /* ServerOperationErrorGenerator.kt:88 */
|
1385 2390 | pub fn is_validation_exception(&self) -> bool {
|
2391 + | /* ServerOperationErrorGenerator.kt:89 */
|
1386 2392 | matches!(
|
1387 2393 | &self,
|
1388 2394 | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
1389 2395 | )
|
2396 + | /* ServerOperationErrorGenerator.kt:88 */
|
1390 2397 | }
|
2398 + | /* ServerOperationErrorGenerator.kt:87 */
|
1391 2399 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError`.
|
2400 + | /* ServerOperationErrorGenerator.kt:88 */
|
1392 2401 | pub fn is_internal_server_error(&self) -> bool {
|
2402 + | /* ServerOperationErrorGenerator.kt:89 */
|
1393 2403 | matches!(
|
1394 2404 | &self,
|
1395 2405 | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(_)
|
1396 2406 | )
|
2407 + | /* ServerOperationErrorGenerator.kt:88 */
|
1397 2408 | }
|
2409 + | /* ServerOperationErrorGenerator.kt:92 */
|
1398 2410 | /// Returns the error name string by matching the correct variant.
|
2411 + | /* ServerOperationErrorGenerator.kt:93 */
|
1399 2412 | pub fn name(&self) -> &'static str {
|
2413 + | /* ServerOperationErrorGenerator.kt:139 */
|
1400 2414 | match &self {
|
2415 + | /* ServerOperationErrorGenerator.kt:142 */
|
1401 2416 | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1402 2417 | _inner,
|
1403 - | ) => _inner.name(),
|
2418 + | ) =>
|
2419 + | /* ServerOperationErrorGenerator.kt:95 */
|
2420 + | {
|
2421 + | _inner.name()
|
2422 + | }
|
2423 + | ,
|
2424 + | /* ServerOperationErrorGenerator.kt:142 */
|
1404 2425 | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1405 2426 | _inner,
|
1406 - | ) => _inner.name(),
|
2427 + | ) =>
|
2428 + | /* ServerOperationErrorGenerator.kt:95 */
|
2429 + | {
|
2430 + | _inner.name()
|
2431 + | }
|
2432 + | /* ServerOperationErrorGenerator.kt:139 */
|
1407 2433 | }
|
2434 + | /* ServerOperationErrorGenerator.kt:93 */
|
1408 2435 | }
|
2436 + | /* ServerOperationErrorGenerator.kt:83 */
|
1409 2437 | }
|
2438 + | /* ServerOperationErrorGenerator.kt:100 */
|
1410 2439 | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
2440 + | /* ServerOperationErrorGenerator.kt:101 */
|
1411 2441 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2442 + | /* ServerOperationErrorGenerator.kt:139 */
|
1412 2443 | match &self {
|
2444 + | /* ServerOperationErrorGenerator.kt:142 */
|
1413 2445 | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1414 2446 | _inner,
|
1415 - | ) => Some(_inner),
|
2447 + | ) =>
|
2448 + | /* ServerOperationErrorGenerator.kt:103 */
|
2449 + | {
|
2450 + | Some(_inner)
|
2451 + | }
|
2452 + | ,
|
2453 + | /* ServerOperationErrorGenerator.kt:142 */
|
1416 2454 | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1417 2455 | _inner,
|
1418 - | ) => Some(_inner),
|
2456 + | ) =>
|
2457 + | /* ServerOperationErrorGenerator.kt:103 */
|
2458 + | {
|
2459 + | Some(_inner)
|
2460 + | }
|
2461 + | /* ServerOperationErrorGenerator.kt:139 */
|
1419 2462 | }
|
2463 + | /* ServerOperationErrorGenerator.kt:101 */
|
1420 2464 | }
|
2465 + | /* ServerOperationErrorGenerator.kt:100 */
|
1421 2466 | }
|
2467 + | /* ServerOperationErrorGenerator.kt:110 */
|
1422 2468 | impl ::std::convert::From<crate::error::ValidationException>
|
1423 2469 | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1424 2470 | {
|
2471 + | /* ServerOperationErrorGenerator.kt:111 */
|
1425 2472 | fn from(
|
1426 2473 | variant: crate::error::ValidationException,
|
1427 2474 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
2475 + | /* ServerOperationErrorGenerator.kt:112 */
|
1428 2476 | Self::ValidationException(variant)
|
2477 + | /* ServerOperationErrorGenerator.kt:111 */
|
1429 2478 | }
|
2479 + | /* ServerOperationErrorGenerator.kt:110 */
|
1430 2480 | }
|
2481 + | /* ServerOperationErrorGenerator.kt:110 */
|
1431 2482 | impl ::std::convert::From<crate::error::InternalServerError>
|
1432 2483 | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1433 2484 | {
|
2485 + | /* ServerOperationErrorGenerator.kt:111 */
|
1434 2486 | fn from(
|
1435 2487 | variant: crate::error::InternalServerError,
|
1436 2488 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
2489 + | /* ServerOperationErrorGenerator.kt:112 */
|
1437 2490 | Self::InternalServerError(variant)
|
2491 + | /* ServerOperationErrorGenerator.kt:111 */
|
1438 2492 | }
|
2493 + | /* ServerOperationErrorGenerator.kt:110 */
|
1439 2494 | }
|
1440 2495 |
|
2496 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1441 2497 | impl ::std::convert::From<::pyo3::PyErr>
|
1442 2498 | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1443 2499 | {
|
1444 2500 | fn from(
|
1445 2501 | variant: ::pyo3::PyErr,
|
1446 2502 | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1447 2503 | ::pyo3::Python::with_gil(|py| {
|
1448 2504 | let error = variant.value(py);
|
1449 2505 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1450 2506 | return error.into();
|
1451 2507 | }
|
1452 2508 | crate::error::InternalServerError {
|
1453 2509 | message: error.to_string(),
|
1454 2510 | }
|
1455 2511 | .into()
|
1456 2512 | })
|
1457 2513 | }
|
1458 2514 | }
|
1459 2515 |
|
2516 + | /* ServerOperationErrorGenerator.kt:63 */
|
1460 2517 | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
2518 + | /* ServerOperationErrorGenerator.kt:64 */
|
1461 2519 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
2520 + | /* RustType.kt:516 */
|
1462 2521 | #[derive(::std::fmt::Debug)]
|
1463 - | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
1464 - | /// 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.
|
2522 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingMapOfLengthStringOperationError
|
2523 + | {
|
2524 + | /// /* 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.
|
2525 + | /* ServerOperationErrorGenerator.kt:71 */
|
1465 2526 | ValidationException(crate::error::ValidationException),
|
2527 + | /* ServerOperationErrorGenerator.kt:68 */
|
1466 2528 | #[allow(missing_docs)] // documentation missing in model
|
2529 + | /* ServerOperationErrorGenerator.kt:71 */
|
1467 2530 | InternalServerError(crate::error::InternalServerError),
|
2531 + | /* ServerOperationErrorGenerator.kt:66 */
|
1468 2532 | }
|
2533 + | /* ServerOperationErrorGenerator.kt:75 */
|
1469 2534 | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
2535 + | /* ServerOperationErrorGenerator.kt:76 */
|
1470 2536 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2537 + | /* ServerOperationErrorGenerator.kt:139 */
|
1471 2538 | match &self {
|
1472 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
2539 + | /* ServerOperationErrorGenerator.kt:142 */
|
2540 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) =>
|
2541 + | /* ServerOperationErrorGenerator.kt:78 */
|
2542 + | {
|
1473 2543 | _inner.fmt(f)
|
1474 2544 | }
|
1475 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
2545 + | ,
|
2546 + | /* ServerOperationErrorGenerator.kt:142 */
|
2547 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) =>
|
2548 + | /* ServerOperationErrorGenerator.kt:78 */
|
2549 + | {
|
1476 2550 | _inner.fmt(f)
|
1477 2551 | }
|
2552 + | /* ServerOperationErrorGenerator.kt:139 */
|
1478 2553 | }
|
2554 + | /* ServerOperationErrorGenerator.kt:76 */
|
1479 2555 | }
|
2556 + | /* ServerOperationErrorGenerator.kt:75 */
|
1480 2557 | }
|
2558 + | /* ServerOperationErrorGenerator.kt:83 */
|
1481 2559 | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
2560 + | /* ServerOperationErrorGenerator.kt:87 */
|
1482 2561 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
2562 + | /* ServerOperationErrorGenerator.kt:88 */
|
1483 2563 | pub fn is_validation_exception(&self) -> bool {
|
2564 + | /* ServerOperationErrorGenerator.kt:89 */
|
1484 2565 | matches!(
|
1485 2566 | &self,
|
1486 2567 | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
1487 2568 | )
|
2569 + | /* ServerOperationErrorGenerator.kt:88 */
|
1488 2570 | }
|
2571 + | /* ServerOperationErrorGenerator.kt:87 */
|
1489 2572 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError`.
|
2573 + | /* ServerOperationErrorGenerator.kt:88 */
|
1490 2574 | pub fn is_internal_server_error(&self) -> bool {
|
2575 + | /* ServerOperationErrorGenerator.kt:89 */
|
1491 2576 | matches!(
|
1492 2577 | &self,
|
1493 2578 | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_)
|
1494 2579 | )
|
2580 + | /* ServerOperationErrorGenerator.kt:88 */
|
1495 2581 | }
|
2582 + | /* ServerOperationErrorGenerator.kt:92 */
|
1496 2583 | /// Returns the error name string by matching the correct variant.
|
2584 + | /* ServerOperationErrorGenerator.kt:93 */
|
1497 2585 | pub fn name(&self) -> &'static str {
|
2586 + | /* ServerOperationErrorGenerator.kt:139 */
|
1498 2587 | match &self {
|
1499 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
2588 + | /* ServerOperationErrorGenerator.kt:142 */
|
2589 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) =>
|
2590 + | /* ServerOperationErrorGenerator.kt:95 */
|
2591 + | {
|
1500 2592 | _inner.name()
|
1501 2593 | }
|
1502 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
2594 + | ,
|
2595 + | /* ServerOperationErrorGenerator.kt:142 */
|
2596 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) =>
|
2597 + | /* ServerOperationErrorGenerator.kt:95 */
|
2598 + | {
|
1503 2599 | _inner.name()
|
1504 2600 | }
|
2601 + | /* ServerOperationErrorGenerator.kt:139 */
|
1505 2602 | }
|
2603 + | /* ServerOperationErrorGenerator.kt:93 */
|
1506 2604 | }
|
2605 + | /* ServerOperationErrorGenerator.kt:83 */
|
1507 2606 | }
|
2607 + | /* ServerOperationErrorGenerator.kt:100 */
|
1508 2608 | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
2609 + | /* ServerOperationErrorGenerator.kt:101 */
|
1509 2610 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2611 + | /* ServerOperationErrorGenerator.kt:139 */
|
1510 2612 | match &self {
|
1511 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
2613 + | /* ServerOperationErrorGenerator.kt:142 */
|
2614 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) =>
|
2615 + | /* ServerOperationErrorGenerator.kt:103 */
|
2616 + | {
|
1512 2617 | Some(_inner)
|
1513 2618 | }
|
1514 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
2619 + | ,
|
2620 + | /* ServerOperationErrorGenerator.kt:142 */
|
2621 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) =>
|
2622 + | /* ServerOperationErrorGenerator.kt:103 */
|
2623 + | {
|
1515 2624 | Some(_inner)
|
1516 2625 | }
|
2626 + | /* ServerOperationErrorGenerator.kt:139 */
|
1517 2627 | }
|
2628 + | /* ServerOperationErrorGenerator.kt:101 */
|
1518 2629 | }
|
2630 + | /* ServerOperationErrorGenerator.kt:100 */
|
1519 2631 | }
|
2632 + | /* ServerOperationErrorGenerator.kt:110 */
|
1520 2633 | impl ::std::convert::From<crate::error::ValidationException>
|
1521 2634 | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1522 2635 | {
|
2636 + | /* ServerOperationErrorGenerator.kt:111 */
|
1523 2637 | fn from(
|
1524 2638 | variant: crate::error::ValidationException,
|
1525 2639 | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
2640 + | /* ServerOperationErrorGenerator.kt:112 */
|
1526 2641 | Self::ValidationException(variant)
|
2642 + | /* ServerOperationErrorGenerator.kt:111 */
|
1527 2643 | }
|
2644 + | /* ServerOperationErrorGenerator.kt:110 */
|
1528 2645 | }
|
2646 + | /* ServerOperationErrorGenerator.kt:110 */
|
1529 2647 | impl ::std::convert::From<crate::error::InternalServerError>
|
1530 2648 | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1531 2649 | {
|
2650 + | /* ServerOperationErrorGenerator.kt:111 */
|
1532 2651 | fn from(
|
1533 2652 | variant: crate::error::InternalServerError,
|
1534 2653 | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
2654 + | /* ServerOperationErrorGenerator.kt:112 */
|
1535 2655 | Self::InternalServerError(variant)
|
2656 + | /* ServerOperationErrorGenerator.kt:111 */
|
1536 2657 | }
|
2658 + | /* ServerOperationErrorGenerator.kt:110 */
|
1537 2659 | }
|
1538 2660 |
|
2661 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1539 2662 | impl ::std::convert::From<::pyo3::PyErr>
|
1540 2663 | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1541 2664 | {
|
1542 2665 | fn from(
|
1543 2666 | variant: ::pyo3::PyErr,
|
1544 2667 | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1545 2668 | ::pyo3::Python::with_gil(|py| {
|
1546 2669 | let error = variant.value(py);
|
1547 2670 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1548 2671 | return error.into();
|
1549 2672 | }
|
1550 2673 | crate::error::InternalServerError {
|
1551 2674 | message: error.to_string(),
|
1552 2675 | }
|
1553 2676 | .into()
|
1554 2677 | })
|
1555 2678 | }
|
1556 2679 | }
|
1557 2680 |
|
2681 + | /* ServerOperationErrorGenerator.kt:63 */
|
1558 2682 | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
2683 + | /* ServerOperationErrorGenerator.kt:64 */
|
1559 2684 | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
2685 + | /* RustType.kt:516 */
|
1560 2686 | #[derive(::std::fmt::Debug)]
|
1561 - | pub enum QueryParamsTargetingLengthMapOperationError {
|
1562 - | /// 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.
|
2687 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum QueryParamsTargetingLengthMapOperationError {
|
2688 + | /// /* 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.
|
2689 + | /* ServerOperationErrorGenerator.kt:71 */
|
1563 2690 | ValidationException(crate::error::ValidationException),
|
2691 + | /* ServerOperationErrorGenerator.kt:68 */
|
1564 2692 | #[allow(missing_docs)] // documentation missing in model
|
2693 + | /* ServerOperationErrorGenerator.kt:71 */
|
1565 2694 | InternalServerError(crate::error::InternalServerError),
|
2695 + | /* ServerOperationErrorGenerator.kt:66 */
|
1566 2696 | }
|
2697 + | /* ServerOperationErrorGenerator.kt:75 */
|
1567 2698 | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
2699 + | /* ServerOperationErrorGenerator.kt:76 */
|
1568 2700 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2701 + | /* ServerOperationErrorGenerator.kt:139 */
|
1569 2702 | match &self {
|
1570 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
2703 + | /* ServerOperationErrorGenerator.kt:142 */
|
2704 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) =>
|
2705 + | /* ServerOperationErrorGenerator.kt:78 */
|
2706 + | {
|
1571 2707 | _inner.fmt(f)
|
1572 2708 | }
|
1573 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
2709 + | ,
|
2710 + | /* ServerOperationErrorGenerator.kt:142 */
|
2711 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
2712 + | /* ServerOperationErrorGenerator.kt:78 */
|
2713 + | {
|
1574 2714 | _inner.fmt(f)
|
1575 2715 | }
|
2716 + | /* ServerOperationErrorGenerator.kt:139 */
|
1576 2717 | }
|
2718 + | /* ServerOperationErrorGenerator.kt:76 */
|
1577 2719 | }
|
2720 + | /* ServerOperationErrorGenerator.kt:75 */
|
1578 2721 | }
|
2722 + | /* ServerOperationErrorGenerator.kt:83 */
|
1579 2723 | impl QueryParamsTargetingLengthMapOperationError {
|
2724 + | /* ServerOperationErrorGenerator.kt:87 */
|
1580 2725 | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
2726 + | /* ServerOperationErrorGenerator.kt:88 */
|
1581 2727 | pub fn is_validation_exception(&self) -> bool {
|
2728 + | /* ServerOperationErrorGenerator.kt:89 */
|
1582 2729 | matches!(
|
1583 2730 | &self,
|
1584 2731 | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
1585 2732 | )
|
2733 + | /* ServerOperationErrorGenerator.kt:88 */
|
1586 2734 | }
|
2735 + | /* ServerOperationErrorGenerator.kt:87 */
|
1587 2736 | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::InternalServerError`.
|
2737 + | /* ServerOperationErrorGenerator.kt:88 */
|
1588 2738 | pub fn is_internal_server_error(&self) -> bool {
|
2739 + | /* ServerOperationErrorGenerator.kt:89 */
|
1589 2740 | matches!(
|
1590 2741 | &self,
|
1591 2742 | QueryParamsTargetingLengthMapOperationError::InternalServerError(_)
|
1592 2743 | )
|
2744 + | /* ServerOperationErrorGenerator.kt:88 */
|
1593 2745 | }
|
2746 + | /* ServerOperationErrorGenerator.kt:92 */
|
1594 2747 | /// Returns the error name string by matching the correct variant.
|
2748 + | /* ServerOperationErrorGenerator.kt:93 */
|
1595 2749 | pub fn name(&self) -> &'static str {
|
2750 + | /* ServerOperationErrorGenerator.kt:139 */
|
1596 2751 | match &self {
|
1597 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
2752 + | /* ServerOperationErrorGenerator.kt:142 */
|
2753 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) =>
|
2754 + | /* ServerOperationErrorGenerator.kt:95 */
|
2755 + | {
|
1598 2756 | _inner.name()
|
1599 2757 | }
|
1600 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
2758 + | ,
|
2759 + | /* ServerOperationErrorGenerator.kt:142 */
|
2760 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
2761 + | /* ServerOperationErrorGenerator.kt:95 */
|
2762 + | {
|
1601 2763 | _inner.name()
|
1602 2764 | }
|
2765 + | /* ServerOperationErrorGenerator.kt:139 */
|
1603 2766 | }
|
2767 + | /* ServerOperationErrorGenerator.kt:93 */
|
1604 2768 | }
|
2769 + | /* ServerOperationErrorGenerator.kt:83 */
|
1605 2770 | }
|
2771 + | /* ServerOperationErrorGenerator.kt:100 */
|
1606 2772 | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
2773 + | /* ServerOperationErrorGenerator.kt:101 */
|
1607 2774 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2775 + | /* ServerOperationErrorGenerator.kt:139 */
|
1608 2776 | match &self {
|
1609 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
2777 + | /* ServerOperationErrorGenerator.kt:142 */
|
2778 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) =>
|
2779 + | /* ServerOperationErrorGenerator.kt:103 */
|
2780 + | {
|
1610 2781 | Some(_inner)
|
1611 2782 | }
|
1612 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
2783 + | ,
|
2784 + | /* ServerOperationErrorGenerator.kt:142 */
|
2785 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) =>
|
2786 + | /* ServerOperationErrorGenerator.kt:103 */
|
2787 + | {
|
1613 2788 | Some(_inner)
|
1614 2789 | }
|
2790 + | /* ServerOperationErrorGenerator.kt:139 */
|
1615 2791 | }
|
2792 + | /* ServerOperationErrorGenerator.kt:101 */
|
1616 2793 | }
|
2794 + | /* ServerOperationErrorGenerator.kt:100 */
|
1617 2795 | }
|
2796 + | /* ServerOperationErrorGenerator.kt:110 */
|
1618 2797 | impl ::std::convert::From<crate::error::ValidationException>
|
1619 2798 | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1620 2799 | {
|
2800 + | /* ServerOperationErrorGenerator.kt:111 */
|
1621 2801 | fn from(
|
1622 2802 | variant: crate::error::ValidationException,
|
1623 2803 | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
2804 + | /* ServerOperationErrorGenerator.kt:112 */
|
1624 2805 | Self::ValidationException(variant)
|
2806 + | /* ServerOperationErrorGenerator.kt:111 */
|
1625 2807 | }
|
2808 + | /* ServerOperationErrorGenerator.kt:110 */
|
1626 2809 | }
|
2810 + | /* ServerOperationErrorGenerator.kt:110 */
|
1627 2811 | impl ::std::convert::From<crate::error::InternalServerError>
|
1628 2812 | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1629 2813 | {
|
2814 + | /* ServerOperationErrorGenerator.kt:111 */
|
1630 2815 | fn from(
|
1631 2816 | variant: crate::error::InternalServerError,
|
1632 2817 | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
2818 + | /* ServerOperationErrorGenerator.kt:112 */
|
1633 2819 | Self::InternalServerError(variant)
|
2820 + | /* ServerOperationErrorGenerator.kt:111 */
|
1634 2821 | }
|
2822 + | /* ServerOperationErrorGenerator.kt:110 */
|
1635 2823 | }
|
1636 2824 |
|
2825 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1637 2826 | impl ::std::convert::From<::pyo3::PyErr>
|
1638 2827 | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1639 2828 | {
|
1640 2829 | fn from(variant: ::pyo3::PyErr) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1641 2830 | ::pyo3::Python::with_gil(|py| {
|
1642 2831 | let error = variant.value(py);
|
1643 2832 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1644 2833 | return error.into();
|
1645 2834 | }
|
1646 2835 | crate::error::InternalServerError {
|
1647 2836 | message: error.to_string(),
|
1648 2837 | }
|
1649 2838 | .into()
|
1650 2839 | })
|
1651 2840 | }
|
1652 2841 | }
|
1653 2842 |
|
2843 + | /* ServerOperationErrorGenerator.kt:63 */
|
1654 2844 | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
2845 + | /* ServerOperationErrorGenerator.kt:64 */
|
1655 2846 | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
2847 + | /* RustType.kt:516 */
|
1656 2848 | #[derive(::std::fmt::Debug)]
|
1657 - | pub enum ConstrainedRecursiveShapesOperationError {
|
1658 - | /// 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.
|
2849 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstrainedRecursiveShapesOperationError {
|
2850 + | /// /* 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.
|
2851 + | /* ServerOperationErrorGenerator.kt:71 */
|
1659 2852 | ValidationException(crate::error::ValidationException),
|
2853 + | /* ServerOperationErrorGenerator.kt:68 */
|
1660 2854 | #[allow(missing_docs)] // documentation missing in model
|
2855 + | /* ServerOperationErrorGenerator.kt:71 */
|
1661 2856 | InternalServerError(crate::error::InternalServerError),
|
2857 + | /* ServerOperationErrorGenerator.kt:66 */
|
1662 2858 | }
|
2859 + | /* ServerOperationErrorGenerator.kt:75 */
|
1663 2860 | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
2861 + | /* ServerOperationErrorGenerator.kt:76 */
|
1664 2862 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2863 + | /* ServerOperationErrorGenerator.kt:139 */
|
1665 2864 | match &self {
|
1666 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1667 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
2865 + | /* ServerOperationErrorGenerator.kt:142 */
|
2866 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) =>
|
2867 + | /* ServerOperationErrorGenerator.kt:78 */
|
2868 + | {
|
2869 + | _inner.fmt(f)
|
2870 + | }
|
2871 + | ,
|
2872 + | /* ServerOperationErrorGenerator.kt:142 */
|
2873 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) =>
|
2874 + | /* ServerOperationErrorGenerator.kt:78 */
|
2875 + | {
|
2876 + | _inner.fmt(f)
|
2877 + | }
|
2878 + | /* ServerOperationErrorGenerator.kt:139 */
|
1668 2879 | }
|
2880 + | /* ServerOperationErrorGenerator.kt:76 */
|
1669 2881 | }
|
2882 + | /* ServerOperationErrorGenerator.kt:75 */
|
1670 2883 | }
|
2884 + | /* ServerOperationErrorGenerator.kt:83 */
|
1671 2885 | impl ConstrainedRecursiveShapesOperationError {
|
2886 + | /* ServerOperationErrorGenerator.kt:87 */
|
1672 2887 | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
2888 + | /* ServerOperationErrorGenerator.kt:88 */
|
1673 2889 | pub fn is_validation_exception(&self) -> bool {
|
2890 + | /* ServerOperationErrorGenerator.kt:89 */
|
1674 2891 | matches!(
|
1675 2892 | &self,
|
1676 2893 | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
1677 2894 | )
|
2895 + | /* ServerOperationErrorGenerator.kt:88 */
|
1678 2896 | }
|
2897 + | /* ServerOperationErrorGenerator.kt:87 */
|
1679 2898 | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::InternalServerError`.
|
2899 + | /* ServerOperationErrorGenerator.kt:88 */
|
1680 2900 | pub fn is_internal_server_error(&self) -> bool {
|
2901 + | /* ServerOperationErrorGenerator.kt:89 */
|
1681 2902 | matches!(
|
1682 2903 | &self,
|
1683 2904 | ConstrainedRecursiveShapesOperationError::InternalServerError(_)
|
1684 2905 | )
|
2906 + | /* ServerOperationErrorGenerator.kt:88 */
|
1685 2907 | }
|
2908 + | /* ServerOperationErrorGenerator.kt:92 */
|
1686 2909 | /// Returns the error name string by matching the correct variant.
|
2910 + | /* ServerOperationErrorGenerator.kt:93 */
|
1687 2911 | pub fn name(&self) -> &'static str {
|
2912 + | /* ServerOperationErrorGenerator.kt:139 */
|
1688 2913 | match &self {
|
1689 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
1690 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
2914 + | /* ServerOperationErrorGenerator.kt:142 */
|
2915 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) =>
|
2916 + | /* ServerOperationErrorGenerator.kt:95 */
|
2917 + | {
|
2918 + | _inner.name()
|
2919 + | }
|
2920 + | ,
|
2921 + | /* ServerOperationErrorGenerator.kt:142 */
|
2922 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) =>
|
2923 + | /* ServerOperationErrorGenerator.kt:95 */
|
2924 + | {
|
2925 + | _inner.name()
|
2926 + | }
|
2927 + | /* ServerOperationErrorGenerator.kt:139 */
|
1691 2928 | }
|
2929 + | /* ServerOperationErrorGenerator.kt:93 */
|
1692 2930 | }
|
2931 + | /* ServerOperationErrorGenerator.kt:83 */
|
1693 2932 | }
|
2933 + | /* ServerOperationErrorGenerator.kt:100 */
|
1694 2934 | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
2935 + | /* ServerOperationErrorGenerator.kt:101 */
|
1695 2936 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2937 + | /* ServerOperationErrorGenerator.kt:139 */
|
1696 2938 | match &self {
|
1697 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
1698 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
2939 + | /* ServerOperationErrorGenerator.kt:142 */
|
2940 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) =>
|
2941 + | /* ServerOperationErrorGenerator.kt:103 */
|
2942 + | {
|
2943 + | Some(_inner)
|
2944 + | }
|
2945 + | ,
|
2946 + | /* ServerOperationErrorGenerator.kt:142 */
|
2947 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) =>
|
2948 + | /* ServerOperationErrorGenerator.kt:103 */
|
2949 + | {
|
2950 + | Some(_inner)
|
2951 + | }
|
2952 + | /* ServerOperationErrorGenerator.kt:139 */
|
1699 2953 | }
|
2954 + | /* ServerOperationErrorGenerator.kt:101 */
|
1700 2955 | }
|
2956 + | /* ServerOperationErrorGenerator.kt:100 */
|
1701 2957 | }
|
2958 + | /* ServerOperationErrorGenerator.kt:110 */
|
1702 2959 | impl ::std::convert::From<crate::error::ValidationException>
|
1703 2960 | for crate::error::ConstrainedRecursiveShapesOperationError
|
1704 2961 | {
|
2962 + | /* ServerOperationErrorGenerator.kt:111 */
|
1705 2963 | fn from(
|
1706 2964 | variant: crate::error::ValidationException,
|
1707 2965 | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
2966 + | /* ServerOperationErrorGenerator.kt:112 */
|
1708 2967 | Self::ValidationException(variant)
|
2968 + | /* ServerOperationErrorGenerator.kt:111 */
|
1709 2969 | }
|
2970 + | /* ServerOperationErrorGenerator.kt:110 */
|
1710 2971 | }
|
2972 + | /* ServerOperationErrorGenerator.kt:110 */
|
1711 2973 | impl ::std::convert::From<crate::error::InternalServerError>
|
1712 2974 | for crate::error::ConstrainedRecursiveShapesOperationError
|
1713 2975 | {
|
2976 + | /* ServerOperationErrorGenerator.kt:111 */
|
1714 2977 | fn from(
|
1715 2978 | variant: crate::error::InternalServerError,
|
1716 2979 | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
2980 + | /* ServerOperationErrorGenerator.kt:112 */
|
1717 2981 | Self::InternalServerError(variant)
|
2982 + | /* ServerOperationErrorGenerator.kt:111 */
|
1718 2983 | }
|
2984 + | /* ServerOperationErrorGenerator.kt:110 */
|
1719 2985 | }
|
1720 2986 |
|
2987 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1721 2988 | impl ::std::convert::From<::pyo3::PyErr>
|
1722 2989 | for crate::error::ConstrainedRecursiveShapesOperationError
|
1723 2990 | {
|
1724 2991 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1725 2992 | ::pyo3::Python::with_gil(|py| {
|
1726 2993 | let error = variant.value(py);
|
1727 2994 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1728 2995 | return error.into();
|
1729 2996 | }
|
1730 2997 | crate::error::InternalServerError {
|
1731 2998 | message: error.to_string(),
|
1732 2999 | }
|
1733 3000 | .into()
|
1734 3001 | })
|
1735 3002 | }
|
1736 3003 | }
|
1737 3004 |
|
3005 + | /* ServerOperationErrorGenerator.kt:63 */
|
1738 3006 | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
3007 + | /* ServerOperationErrorGenerator.kt:64 */
|
1739 3008 | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
3009 + | /* RustType.kt:516 */
|
1740 3010 | #[derive(::std::fmt::Debug)]
|
1741 - | pub enum ConstrainedHttpPayloadBoundShapeOperationError {
|
1742 - | /// 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.
|
3011 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstrainedHttpPayloadBoundShapeOperationError {
|
3012 + | /// /* 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.
|
3013 + | /* ServerOperationErrorGenerator.kt:71 */
|
1743 3014 | ValidationException(crate::error::ValidationException),
|
3015 + | /* ServerOperationErrorGenerator.kt:68 */
|
1744 3016 | #[allow(missing_docs)] // documentation missing in model
|
3017 + | /* ServerOperationErrorGenerator.kt:71 */
|
1745 3018 | InternalServerError(crate::error::InternalServerError),
|
3019 + | /* ServerOperationErrorGenerator.kt:66 */
|
1746 3020 | }
|
3021 + | /* ServerOperationErrorGenerator.kt:75 */
|
1747 3022 | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
3023 + | /* ServerOperationErrorGenerator.kt:76 */
|
1748 3024 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3025 + | /* ServerOperationErrorGenerator.kt:139 */
|
1749 3026 | match &self {
|
1750 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
3027 + | /* ServerOperationErrorGenerator.kt:142 */
|
3028 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) =>
|
3029 + | /* ServerOperationErrorGenerator.kt:78 */
|
3030 + | {
|
1751 3031 | _inner.fmt(f)
|
1752 3032 | }
|
1753 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
3033 + | ,
|
3034 + | /* ServerOperationErrorGenerator.kt:142 */
|
3035 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) =>
|
3036 + | /* ServerOperationErrorGenerator.kt:78 */
|
3037 + | {
|
1754 3038 | _inner.fmt(f)
|
1755 3039 | }
|
3040 + | /* ServerOperationErrorGenerator.kt:139 */
|
1756 3041 | }
|
3042 + | /* ServerOperationErrorGenerator.kt:76 */
|
1757 3043 | }
|
3044 + | /* ServerOperationErrorGenerator.kt:75 */
|
1758 3045 | }
|
3046 + | /* ServerOperationErrorGenerator.kt:83 */
|
1759 3047 | impl ConstrainedHttpPayloadBoundShapeOperationError {
|
3048 + | /* ServerOperationErrorGenerator.kt:87 */
|
1760 3049 | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::ValidationException`.
|
3050 + | /* ServerOperationErrorGenerator.kt:88 */
|
1761 3051 | pub fn is_validation_exception(&self) -> bool {
|
3052 + | /* ServerOperationErrorGenerator.kt:89 */
|
1762 3053 | matches!(
|
1763 3054 | &self,
|
1764 3055 | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_)
|
1765 3056 | )
|
3057 + | /* ServerOperationErrorGenerator.kt:88 */
|
1766 3058 | }
|
3059 + | /* ServerOperationErrorGenerator.kt:87 */
|
1767 3060 | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError`.
|
3061 + | /* ServerOperationErrorGenerator.kt:88 */
|
1768 3062 | pub fn is_internal_server_error(&self) -> bool {
|
3063 + | /* ServerOperationErrorGenerator.kt:89 */
|
1769 3064 | matches!(
|
1770 3065 | &self,
|
1771 3066 | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_)
|
1772 3067 | )
|
3068 + | /* ServerOperationErrorGenerator.kt:88 */
|
1773 3069 | }
|
3070 + | /* ServerOperationErrorGenerator.kt:92 */
|
1774 3071 | /// Returns the error name string by matching the correct variant.
|
3072 + | /* ServerOperationErrorGenerator.kt:93 */
|
1775 3073 | pub fn name(&self) -> &'static str {
|
3074 + | /* ServerOperationErrorGenerator.kt:139 */
|
1776 3075 | match &self {
|
1777 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
3076 + | /* ServerOperationErrorGenerator.kt:142 */
|
3077 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) =>
|
3078 + | /* ServerOperationErrorGenerator.kt:95 */
|
3079 + | {
|
1778 3080 | _inner.name()
|
1779 3081 | }
|
1780 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
3082 + | ,
|
3083 + | /* ServerOperationErrorGenerator.kt:142 */
|
3084 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) =>
|
3085 + | /* ServerOperationErrorGenerator.kt:95 */
|
3086 + | {
|
1781 3087 | _inner.name()
|
1782 3088 | }
|
3089 + | /* ServerOperationErrorGenerator.kt:139 */
|
1783 3090 | }
|
3091 + | /* ServerOperationErrorGenerator.kt:93 */
|
1784 3092 | }
|
3093 + | /* ServerOperationErrorGenerator.kt:83 */
|
1785 3094 | }
|
3095 + | /* ServerOperationErrorGenerator.kt:100 */
|
1786 3096 | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
3097 + | /* ServerOperationErrorGenerator.kt:101 */
|
1787 3098 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3099 + | /* ServerOperationErrorGenerator.kt:139 */
|
1788 3100 | match &self {
|
1789 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
3101 + | /* ServerOperationErrorGenerator.kt:142 */
|
3102 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) =>
|
3103 + | /* ServerOperationErrorGenerator.kt:103 */
|
3104 + | {
|
1790 3105 | Some(_inner)
|
1791 3106 | }
|
1792 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
3107 + | ,
|
3108 + | /* ServerOperationErrorGenerator.kt:142 */
|
3109 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) =>
|
3110 + | /* ServerOperationErrorGenerator.kt:103 */
|
3111 + | {
|
1793 3112 | Some(_inner)
|
1794 3113 | }
|
3114 + | /* ServerOperationErrorGenerator.kt:139 */
|
1795 3115 | }
|
3116 + | /* ServerOperationErrorGenerator.kt:101 */
|
1796 3117 | }
|
3118 + | /* ServerOperationErrorGenerator.kt:100 */
|
1797 3119 | }
|
3120 + | /* ServerOperationErrorGenerator.kt:110 */
|
1798 3121 | impl ::std::convert::From<crate::error::ValidationException>
|
1799 3122 | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1800 3123 | {
|
3124 + | /* ServerOperationErrorGenerator.kt:111 */
|
1801 3125 | fn from(
|
1802 3126 | variant: crate::error::ValidationException,
|
1803 3127 | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
3128 + | /* ServerOperationErrorGenerator.kt:112 */
|
1804 3129 | Self::ValidationException(variant)
|
3130 + | /* ServerOperationErrorGenerator.kt:111 */
|
1805 3131 | }
|
3132 + | /* ServerOperationErrorGenerator.kt:110 */
|
1806 3133 | }
|
3134 + | /* ServerOperationErrorGenerator.kt:110 */
|
1807 3135 | impl ::std::convert::From<crate::error::InternalServerError>
|
1808 3136 | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1809 3137 | {
|
3138 + | /* ServerOperationErrorGenerator.kt:111 */
|
1810 3139 | fn from(
|
1811 3140 | variant: crate::error::InternalServerError,
|
1812 3141 | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
3142 + | /* ServerOperationErrorGenerator.kt:112 */
|
1813 3143 | Self::InternalServerError(variant)
|
3144 + | /* ServerOperationErrorGenerator.kt:111 */
|
1814 3145 | }
|
3146 + | /* ServerOperationErrorGenerator.kt:110 */
|
1815 3147 | }
|
1816 3148 |
|
3149 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1817 3150 | impl ::std::convert::From<::pyo3::PyErr>
|
1818 3151 | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1819 3152 | {
|
1820 3153 | fn from(
|
1821 3154 | variant: ::pyo3::PyErr,
|
1822 3155 | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
1823 3156 | ::pyo3::Python::with_gil(|py| {
|
1824 3157 | let error = variant.value(py);
|
1825 3158 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1826 3159 | return error.into();
|
1827 3160 | }
|
1828 3161 | crate::error::InternalServerError {
|
1829 3162 | message: error.to_string(),
|
1830 3163 | }
|
1831 3164 | .into()
|
1832 3165 | })
|
1833 3166 | }
|
1834 3167 | }
|
1835 3168 |
|
3169 + | /* ServerOperationErrorGenerator.kt:63 */
|
1836 3170 | /// Error type for the `ConstrainedHttpBoundShapesOperation` operation.
|
3171 + | /* ServerOperationErrorGenerator.kt:64 */
|
1837 3172 | /// Each variant represents an error that can occur for the `ConstrainedHttpBoundShapesOperation` operation.
|
3173 + | /* RustType.kt:516 */
|
1838 3174 | #[derive(::std::fmt::Debug)]
|
1839 - | pub enum ConstrainedHttpBoundShapesOperationError {
|
1840 - | /// 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.
|
3175 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstrainedHttpBoundShapesOperationError {
|
3176 + | /// /* 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.
|
3177 + | /* ServerOperationErrorGenerator.kt:71 */
|
1841 3178 | ValidationException(crate::error::ValidationException),
|
3179 + | /* ServerOperationErrorGenerator.kt:68 */
|
1842 3180 | #[allow(missing_docs)] // documentation missing in model
|
3181 + | /* ServerOperationErrorGenerator.kt:71 */
|
1843 3182 | InternalServerError(crate::error::InternalServerError),
|
3183 + | /* ServerOperationErrorGenerator.kt:66 */
|
1844 3184 | }
|
3185 + | /* ServerOperationErrorGenerator.kt:75 */
|
1845 3186 | impl ::std::fmt::Display for ConstrainedHttpBoundShapesOperationError {
|
3187 + | /* ServerOperationErrorGenerator.kt:76 */
|
1846 3188 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3189 + | /* ServerOperationErrorGenerator.kt:139 */
|
1847 3190 | match &self {
|
1848 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1849 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
3191 + | /* ServerOperationErrorGenerator.kt:142 */
|
3192 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) =>
|
3193 + | /* ServerOperationErrorGenerator.kt:78 */
|
3194 + | {
|
3195 + | _inner.fmt(f)
|
3196 + | }
|
3197 + | ,
|
3198 + | /* ServerOperationErrorGenerator.kt:142 */
|
3199 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) =>
|
3200 + | /* ServerOperationErrorGenerator.kt:78 */
|
3201 + | {
|
3202 + | _inner.fmt(f)
|
3203 + | }
|
3204 + | /* ServerOperationErrorGenerator.kt:139 */
|
1850 3205 | }
|
3206 + | /* ServerOperationErrorGenerator.kt:76 */
|
1851 3207 | }
|
3208 + | /* ServerOperationErrorGenerator.kt:75 */
|
1852 3209 | }
|
3210 + | /* ServerOperationErrorGenerator.kt:83 */
|
1853 3211 | impl ConstrainedHttpBoundShapesOperationError {
|
3212 + | /* ServerOperationErrorGenerator.kt:87 */
|
1854 3213 | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::ValidationException`.
|
3214 + | /* ServerOperationErrorGenerator.kt:88 */
|
1855 3215 | pub fn is_validation_exception(&self) -> bool {
|
3216 + | /* ServerOperationErrorGenerator.kt:89 */
|
1856 3217 | matches!(
|
1857 3218 | &self,
|
1858 3219 | ConstrainedHttpBoundShapesOperationError::ValidationException(_)
|
1859 3220 | )
|
3221 + | /* ServerOperationErrorGenerator.kt:88 */
|
1860 3222 | }
|
3223 + | /* ServerOperationErrorGenerator.kt:87 */
|
1861 3224 | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::InternalServerError`.
|
3225 + | /* ServerOperationErrorGenerator.kt:88 */
|
1862 3226 | pub fn is_internal_server_error(&self) -> bool {
|
3227 + | /* ServerOperationErrorGenerator.kt:89 */
|
1863 3228 | matches!(
|
1864 3229 | &self,
|
1865 3230 | ConstrainedHttpBoundShapesOperationError::InternalServerError(_)
|
1866 3231 | )
|
3232 + | /* ServerOperationErrorGenerator.kt:88 */
|
1867 3233 | }
|
3234 + | /* ServerOperationErrorGenerator.kt:92 */
|
1868 3235 | /// Returns the error name string by matching the correct variant.
|
3236 + | /* ServerOperationErrorGenerator.kt:93 */
|
1869 3237 | pub fn name(&self) -> &'static str {
|
3238 + | /* ServerOperationErrorGenerator.kt:139 */
|
1870 3239 | match &self {
|
1871 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.name(),
|
1872 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
3240 + | /* ServerOperationErrorGenerator.kt:142 */
|
3241 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) =>
|
3242 + | /* ServerOperationErrorGenerator.kt:95 */
|
3243 + | {
|
3244 + | _inner.name()
|
3245 + | }
|
3246 + | ,
|
3247 + | /* ServerOperationErrorGenerator.kt:142 */
|
3248 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) =>
|
3249 + | /* ServerOperationErrorGenerator.kt:95 */
|
3250 + | {
|
3251 + | _inner.name()
|
3252 + | }
|
3253 + | /* ServerOperationErrorGenerator.kt:139 */
|
1873 3254 | }
|
3255 + | /* ServerOperationErrorGenerator.kt:93 */
|
1874 3256 | }
|
3257 + | /* ServerOperationErrorGenerator.kt:83 */
|
1875 3258 | }
|
3259 + | /* ServerOperationErrorGenerator.kt:100 */
|
1876 3260 | impl ::std::error::Error for ConstrainedHttpBoundShapesOperationError {
|
3261 + | /* ServerOperationErrorGenerator.kt:101 */
|
1877 3262 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3263 + | /* ServerOperationErrorGenerator.kt:139 */
|
1878 3264 | match &self {
|
1879 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => Some(_inner),
|
1880 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
3265 + | /* ServerOperationErrorGenerator.kt:142 */
|
3266 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) =>
|
3267 + | /* ServerOperationErrorGenerator.kt:103 */
|
3268 + | {
|
3269 + | Some(_inner)
|
3270 + | }
|
3271 + | ,
|
3272 + | /* ServerOperationErrorGenerator.kt:142 */
|
3273 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) =>
|
3274 + | /* ServerOperationErrorGenerator.kt:103 */
|
3275 + | {
|
3276 + | Some(_inner)
|
3277 + | }
|
3278 + | /* ServerOperationErrorGenerator.kt:139 */
|
1881 3279 | }
|
3280 + | /* ServerOperationErrorGenerator.kt:101 */
|
1882 3281 | }
|
3282 + | /* ServerOperationErrorGenerator.kt:100 */
|
1883 3283 | }
|
3284 + | /* ServerOperationErrorGenerator.kt:110 */
|
1884 3285 | impl ::std::convert::From<crate::error::ValidationException>
|
1885 3286 | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1886 3287 | {
|
3288 + | /* ServerOperationErrorGenerator.kt:111 */
|
1887 3289 | fn from(
|
1888 3290 | variant: crate::error::ValidationException,
|
1889 3291 | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
3292 + | /* ServerOperationErrorGenerator.kt:112 */
|
1890 3293 | Self::ValidationException(variant)
|
3294 + | /* ServerOperationErrorGenerator.kt:111 */
|
1891 3295 | }
|
3296 + | /* ServerOperationErrorGenerator.kt:110 */
|
1892 3297 | }
|
3298 + | /* ServerOperationErrorGenerator.kt:110 */
|
1893 3299 | impl ::std::convert::From<crate::error::InternalServerError>
|
1894 3300 | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1895 3301 | {
|
3302 + | /* ServerOperationErrorGenerator.kt:111 */
|
1896 3303 | fn from(
|
1897 3304 | variant: crate::error::InternalServerError,
|
1898 3305 | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
3306 + | /* ServerOperationErrorGenerator.kt:112 */
|
1899 3307 | Self::InternalServerError(variant)
|
3308 + | /* ServerOperationErrorGenerator.kt:111 */
|
1900 3309 | }
|
3310 + | /* ServerOperationErrorGenerator.kt:110 */
|
1901 3311 | }
|
1902 3312 |
|
3313 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1903 3314 | impl ::std::convert::From<::pyo3::PyErr>
|
1904 3315 | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1905 3316 | {
|
1906 3317 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
1907 3318 | ::pyo3::Python::with_gil(|py| {
|
1908 3319 | let error = variant.value(py);
|
1909 3320 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1910 3321 | return error.into();
|
1911 3322 | }
|
1912 3323 | crate::error::InternalServerError {
|
1913 3324 | message: error.to_string(),
|
1914 3325 | }
|
1915 3326 | .into()
|
1916 3327 | })
|
1917 3328 | }
|
1918 3329 | }
|
1919 3330 |
|
3331 + | /* ServerOperationErrorGenerator.kt:63 */
|
1920 3332 | /// Error type for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
3333 + | /* ServerOperationErrorGenerator.kt:64 */
|
1921 3334 | /// Each variant represents an error that can occur for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
3335 + | /* RustType.kt:516 */
|
1922 3336 | #[derive(::std::fmt::Debug)]
|
1923 - | pub enum ConstrainedShapesOnlyInOutputOperationError {
|
3337 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstrainedShapesOnlyInOutputOperationError {
|
3338 + | /* ServerOperationErrorGenerator.kt:68 */
|
1924 3339 | #[allow(missing_docs)] // documentation missing in model
|
3340 + | /* ServerOperationErrorGenerator.kt:71 */
|
1925 3341 | InternalServerError(crate::error::InternalServerError),
|
3342 + | /* ServerOperationErrorGenerator.kt:66 */
|
1926 3343 | }
|
3344 + | /* ServerOperationErrorGenerator.kt:75 */
|
1927 3345 | impl ::std::fmt::Display for ConstrainedShapesOnlyInOutputOperationError {
|
3346 + | /* ServerOperationErrorGenerator.kt:76 */
|
1928 3347 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3348 + | /* ServerOperationErrorGenerator.kt:139 */
|
1929 3349 | match &self {
|
1930 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
3350 + | /* ServerOperationErrorGenerator.kt:142 */
|
3351 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) =>
|
3352 + | /* ServerOperationErrorGenerator.kt:78 */
|
3353 + | {
|
1931 3354 | _inner.fmt(f)
|
1932 3355 | }
|
3356 + | /* ServerOperationErrorGenerator.kt:139 */
|
1933 3357 | }
|
3358 + | /* ServerOperationErrorGenerator.kt:76 */
|
1934 3359 | }
|
3360 + | /* ServerOperationErrorGenerator.kt:75 */
|
1935 3361 | }
|
3362 + | /* ServerOperationErrorGenerator.kt:83 */
|
1936 3363 | impl ConstrainedShapesOnlyInOutputOperationError {
|
3364 + | /* ServerOperationErrorGenerator.kt:87 */
|
1937 3365 | /// Returns `true` if the error kind is `ConstrainedShapesOnlyInOutputOperationError::InternalServerError`.
|
3366 + | /* ServerOperationErrorGenerator.kt:88 */
|
1938 3367 | pub fn is_internal_server_error(&self) -> bool {
|
3368 + | /* ServerOperationErrorGenerator.kt:89 */
|
1939 3369 | matches!(
|
1940 3370 | &self,
|
1941 3371 | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_)
|
1942 3372 | )
|
3373 + | /* ServerOperationErrorGenerator.kt:88 */
|
1943 3374 | }
|
3375 + | /* ServerOperationErrorGenerator.kt:92 */
|
1944 3376 | /// Returns the error name string by matching the correct variant.
|
3377 + | /* ServerOperationErrorGenerator.kt:93 */
|
1945 3378 | pub fn name(&self) -> &'static str {
|
3379 + | /* ServerOperationErrorGenerator.kt:139 */
|
1946 3380 | match &self {
|
1947 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
3381 + | /* ServerOperationErrorGenerator.kt:142 */
|
3382 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) =>
|
3383 + | /* ServerOperationErrorGenerator.kt:95 */
|
3384 + | {
|
1948 3385 | _inner.name()
|
1949 3386 | }
|
3387 + | /* ServerOperationErrorGenerator.kt:139 */
|
1950 3388 | }
|
3389 + | /* ServerOperationErrorGenerator.kt:93 */
|
1951 3390 | }
|
3391 + | /* ServerOperationErrorGenerator.kt:83 */
|
1952 3392 | }
|
3393 + | /* ServerOperationErrorGenerator.kt:100 */
|
1953 3394 | impl ::std::error::Error for ConstrainedShapesOnlyInOutputOperationError {
|
3395 + | /* ServerOperationErrorGenerator.kt:101 */
|
1954 3396 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3397 + | /* ServerOperationErrorGenerator.kt:139 */
|
1955 3398 | match &self {
|
1956 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
3399 + | /* ServerOperationErrorGenerator.kt:142 */
|
3400 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) =>
|
3401 + | /* ServerOperationErrorGenerator.kt:103 */
|
3402 + | {
|
1957 3403 | Some(_inner)
|
1958 3404 | }
|
3405 + | /* ServerOperationErrorGenerator.kt:139 */
|
1959 3406 | }
|
3407 + | /* ServerOperationErrorGenerator.kt:101 */
|
1960 3408 | }
|
3409 + | /* ServerOperationErrorGenerator.kt:100 */
|
1961 3410 | }
|
3411 + | /* ServerOperationErrorGenerator.kt:110 */
|
1962 3412 | impl ::std::convert::From<crate::error::InternalServerError>
|
1963 3413 | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
1964 3414 | {
|
3415 + | /* ServerOperationErrorGenerator.kt:111 */
|
1965 3416 | fn from(
|
1966 3417 | variant: crate::error::InternalServerError,
|
1967 3418 | ) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
3419 + | /* ServerOperationErrorGenerator.kt:112 */
|
1968 3420 | Self::InternalServerError(variant)
|
3421 + | /* ServerOperationErrorGenerator.kt:111 */
|
1969 3422 | }
|
3423 + | /* ServerOperationErrorGenerator.kt:110 */
|
1970 3424 | }
|
1971 3425 |
|
3426 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
1972 3427 | impl ::std::convert::From<::pyo3::PyErr>
|
1973 3428 | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
1974 3429 | {
|
1975 3430 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
1976 3431 | ::pyo3::Python::with_gil(|py| {
|
1977 3432 | let error = variant.value(py);
|
1978 3433 |
|
1979 3434 | crate::error::InternalServerError {
|
1980 3435 | message: error.to_string(),
|
1981 3436 | }
|
1982 3437 | .into()
|
1983 3438 | })
|
1984 3439 | }
|
1985 3440 | }
|
1986 3441 |
|
3442 + | /* ServerOperationErrorGenerator.kt:63 */
|
1987 3443 | /// Error type for the `ConstrainedShapesOperation` operation.
|
3444 + | /* ServerOperationErrorGenerator.kt:64 */
|
1988 3445 | /// Each variant represents an error that can occur for the `ConstrainedShapesOperation` operation.
|
3446 + | /* RustType.kt:516 */
|
1989 3447 | #[derive(::std::fmt::Debug)]
|
1990 - | pub enum ConstrainedShapesOperationError {
|
1991 - | /// 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.
|
3448 + | pub /* ServerOperationErrorGenerator.kt:66 */ enum ConstrainedShapesOperationError {
|
3449 + | /// /* 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.
|
3450 + | /* ServerOperationErrorGenerator.kt:71 */
|
1992 3451 | ValidationException(crate::error::ValidationException),
|
3452 + | /* ServerOperationErrorGenerator.kt:68 */
|
1993 3453 | #[allow(missing_docs)] // documentation missing in model
|
3454 + | /* ServerOperationErrorGenerator.kt:71 */
|
1994 3455 | InternalServerError(crate::error::InternalServerError),
|
3456 + | /* ServerOperationErrorGenerator.kt:66 */
|
1995 3457 | }
|
3458 + | /* ServerOperationErrorGenerator.kt:75 */
|
1996 3459 | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
3460 + | /* ServerOperationErrorGenerator.kt:76 */
|
1997 3461 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3462 + | /* ServerOperationErrorGenerator.kt:139 */
|
1998 3463 | match &self {
|
1999 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
2000 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
3464 + | /* ServerOperationErrorGenerator.kt:142 */
|
3465 + | ConstrainedShapesOperationError::ValidationException(_inner) =>
|
3466 + | /* ServerOperationErrorGenerator.kt:78 */
|
3467 + | {
|
3468 + | _inner.fmt(f)
|
3469 + | }
|
3470 + | ,
|
3471 + | /* ServerOperationErrorGenerator.kt:142 */
|
3472 + | ConstrainedShapesOperationError::InternalServerError(_inner) =>
|
3473 + | /* ServerOperationErrorGenerator.kt:78 */
|
3474 + | {
|
3475 + | _inner.fmt(f)
|
3476 + | }
|
3477 + | /* ServerOperationErrorGenerator.kt:139 */
|
2001 3478 | }
|
3479 + | /* ServerOperationErrorGenerator.kt:76 */
|
2002 3480 | }
|
3481 + | /* ServerOperationErrorGenerator.kt:75 */
|
2003 3482 | }
|
3483 + | /* ServerOperationErrorGenerator.kt:83 */
|
2004 3484 | impl ConstrainedShapesOperationError {
|
3485 + | /* ServerOperationErrorGenerator.kt:87 */
|
2005 3486 | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::ValidationException`.
|
3487 + | /* ServerOperationErrorGenerator.kt:88 */
|
2006 3488 | pub fn is_validation_exception(&self) -> bool {
|
3489 + | /* ServerOperationErrorGenerator.kt:89 */
|
2007 3490 | matches!(
|
2008 3491 | &self,
|
2009 3492 | ConstrainedShapesOperationError::ValidationException(_)
|
2010 3493 | )
|
3494 + | /* ServerOperationErrorGenerator.kt:88 */
|
2011 3495 | }
|
3496 + | /* ServerOperationErrorGenerator.kt:87 */
|
2012 3497 | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::InternalServerError`.
|
3498 + | /* ServerOperationErrorGenerator.kt:88 */
|
2013 3499 | pub fn is_internal_server_error(&self) -> bool {
|
3500 + | /* ServerOperationErrorGenerator.kt:89 */
|
2014 3501 | matches!(
|
2015 3502 | &self,
|
2016 3503 | ConstrainedShapesOperationError::InternalServerError(_)
|
2017 3504 | )
|
3505 + | /* ServerOperationErrorGenerator.kt:88 */
|
2018 3506 | }
|
3507 + | /* ServerOperationErrorGenerator.kt:92 */
|
2019 3508 | /// Returns the error name string by matching the correct variant.
|
3509 + | /* ServerOperationErrorGenerator.kt:93 */
|
2020 3510 | pub fn name(&self) -> &'static str {
|
3511 + | /* ServerOperationErrorGenerator.kt:139 */
|
2021 3512 | match &self {
|
2022 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
2023 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
3513 + | /* ServerOperationErrorGenerator.kt:142 */
|
3514 + | ConstrainedShapesOperationError::ValidationException(_inner) =>
|
3515 + | /* ServerOperationErrorGenerator.kt:95 */
|
3516 + | {
|
3517 + | _inner.name()
|
3518 + | }
|
3519 + | ,
|
3520 + | /* ServerOperationErrorGenerator.kt:142 */
|
3521 + | ConstrainedShapesOperationError::InternalServerError(_inner) =>
|
3522 + | /* ServerOperationErrorGenerator.kt:95 */
|
3523 + | {
|
3524 + | _inner.name()
|
3525 + | }
|
3526 + | /* ServerOperationErrorGenerator.kt:139 */
|
2024 3527 | }
|
3528 + | /* ServerOperationErrorGenerator.kt:93 */
|
2025 3529 | }
|
3530 + | /* ServerOperationErrorGenerator.kt:83 */
|
2026 3531 | }
|
3532 + | /* ServerOperationErrorGenerator.kt:100 */
|
2027 3533 | impl ::std::error::Error for ConstrainedShapesOperationError {
|
3534 + | /* ServerOperationErrorGenerator.kt:101 */
|
2028 3535 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
3536 + | /* ServerOperationErrorGenerator.kt:139 */
|
2029 3537 | match &self {
|
2030 - | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
2031 - | ConstrainedShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
3538 + | /* ServerOperationErrorGenerator.kt:142 */
|
3539 + | ConstrainedShapesOperationError::ValidationException(_inner) =>
|
3540 + | /* ServerOperationErrorGenerator.kt:103 */
|
3541 + | {
|
3542 + | Some(_inner)
|
3543 + | }
|
3544 + | ,
|
3545 + | /* ServerOperationErrorGenerator.kt:142 */
|
3546 + | ConstrainedShapesOperationError::InternalServerError(_inner) =>
|
3547 + | /* ServerOperationErrorGenerator.kt:103 */
|
3548 + | {
|
3549 + | Some(_inner)
|
3550 + | }
|
3551 + | /* ServerOperationErrorGenerator.kt:139 */
|
2032 3552 | }
|
3553 + | /* ServerOperationErrorGenerator.kt:101 */
|
2033 3554 | }
|
3555 + | /* ServerOperationErrorGenerator.kt:100 */
|
2034 3556 | }
|
3557 + | /* ServerOperationErrorGenerator.kt:110 */
|
2035 3558 | impl ::std::convert::From<crate::error::ValidationException>
|
2036 3559 | for crate::error::ConstrainedShapesOperationError
|
2037 3560 | {
|
3561 + | /* ServerOperationErrorGenerator.kt:111 */
|
2038 3562 | fn from(
|
2039 3563 | variant: crate::error::ValidationException,
|
2040 3564 | ) -> crate::error::ConstrainedShapesOperationError {
|
3565 + | /* ServerOperationErrorGenerator.kt:112 */
|
2041 3566 | Self::ValidationException(variant)
|
3567 + | /* ServerOperationErrorGenerator.kt:111 */
|
2042 3568 | }
|
3569 + | /* ServerOperationErrorGenerator.kt:110 */
|
2043 3570 | }
|
3571 + | /* ServerOperationErrorGenerator.kt:110 */
|
2044 3572 | impl ::std::convert::From<crate::error::InternalServerError>
|
2045 3573 | for crate::error::ConstrainedShapesOperationError
|
2046 3574 | {
|
3575 + | /* ServerOperationErrorGenerator.kt:111 */
|
2047 3576 | fn from(
|
2048 3577 | variant: crate::error::InternalServerError,
|
2049 3578 | ) -> crate::error::ConstrainedShapesOperationError {
|
3579 + | /* ServerOperationErrorGenerator.kt:112 */
|
2050 3580 | Self::InternalServerError(variant)
|
3581 + | /* ServerOperationErrorGenerator.kt:111 */
|
2051 3582 | }
|
3583 + | /* ServerOperationErrorGenerator.kt:110 */
|
2052 3584 | }
|
2053 3585 |
|
3586 + | /* PythonServerOperationErrorGenerator.kt:38 */
|
2054 3587 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
2055 3588 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
2056 3589 | ::pyo3::Python::with_gil(|py| {
|
2057 3590 | let error = variant.value(py);
|
2058 3591 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
2059 3592 | return error.into();
|
2060 3593 | }
|
2061 3594 | crate::error::InternalServerError {
|
2062 3595 | message: error.to_string(),
|
2063 3596 | }
|
2064 3597 | .into()
|
2065 3598 | })
|
2066 3599 | }
|
2067 3600 | }
|
2068 - | /// See [`InternalServerError`](crate::error::InternalServerError).
|
3601 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InternalServerError`](crate::error::InternalServerError).
|
2069 3602 | pub mod internal_server_error {
|
2070 3603 |
|
3604 + | /* RustType.kt:516 */
|
2071 3605 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2072 - | /// Holds one variant for each of the ways the builder can fail.
|
2073 - |
|
3606 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3607 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2074 3608 | #[allow(clippy::enum_variant_names)]
|
2075 3609 | pub enum ConstraintViolation {
|
2076 - | /// `message` was not provided but it is required when building `InternalServerError`.
|
3610 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `InternalServerError`.
|
3611 + | /* ServerBuilderConstraintViolations.kt:143 */
|
2077 3612 | MissingMessage,
|
3613 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2078 3614 | }
|
3615 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2079 3616 | impl ::std::fmt::Display for ConstraintViolation {
|
3617 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2080 3618 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3619 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2081 3620 | match self {
|
2082 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
2083 - | }
|
3621 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
3622 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3623 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2084 3624 | }
|
3625 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2085 3626 | }
|
3627 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2086 3628 | impl ::std::error::Error for ConstraintViolation {}
|
3629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
2087 3630 | impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
|
2088 3631 | type Error = ConstraintViolation;
|
2089 3632 |
|
2090 3633 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2091 3634 | builder.build()
|
2092 3635 | }
|
2093 3636 | }
|
2094 - | /// A builder for [`InternalServerError`](crate::error::InternalServerError).
|
3637 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InternalServerError`](crate::error::InternalServerError).
|
3638 + | /* RustType.kt:516 */
|
2095 3639 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2096 3641 | pub struct Builder {
|
3642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2097 3643 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2098 3645 | }
|
3646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2099 3647 | impl Builder {
|
3648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2100 3649 | #[allow(missing_docs)] // documentation missing in model
|
3650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2101 3651 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
2102 - | self.message = Some(input);
|
3652 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3653 + | self.message =
|
3654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
3655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
3657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2103 3658 | self
|
3659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2104 3660 | }
|
2105 - | /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
|
2106 - | ///
|
3661 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
|
3662 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
2107 3663 | /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
|
2108 3664 | ///
|
3665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2109 3666 | pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
2110 3667 | self.build_enforcing_required_and_enum_traits()
|
2111 3668 | }
|
3669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2112 3670 | fn build_enforcing_required_and_enum_traits(
|
2113 3671 | self,
|
2114 3672 | ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
2115 - | Ok(crate::error::InternalServerError {
|
2116 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
2117 - | })
|
3673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3674 + | Ok(
|
3675 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3676 + | crate::error::InternalServerError {
|
3677 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3678 + | message: self
|
3679 + | .message
|
3680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3681 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
3682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3683 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3684 + | )
|
3685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2118 3686 | }
|
3687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2119 3688 | }
|
3689 + |
|
3690 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2120 3691 | }
|
2121 - | /// See [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3692 + | /// /* ServerBuilderGenerator.kt:171 */See [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2122 3693 | pub(crate) mod event_stream_error_message_internal {
|
2123 3694 |
|
3695 + | /* ServerBuilderGenerator.kt:461 */
|
2124 3696 | impl ::std::convert::From<Builder> for crate::error::EventStreamErrorMessage {
|
2125 3697 | fn from(builder: Builder) -> Self {
|
2126 3698 | builder.build()
|
2127 3699 | }
|
2128 3700 | }
|
2129 - | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3701 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3702 + | /* RustType.kt:516 */
|
2130 3703 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3704 + | /* ServerBuilderGenerator.kt:211 */
|
2131 3705 | pub(crate) struct Builder {
|
3706 + | /* ServerBuilderGenerator.kt:308 */
|
2132 3707 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
3708 + | /* ServerBuilderGenerator.kt:211 */
|
2133 3709 | }
|
3710 + | /* ServerBuilderGenerator.kt:215 */
|
2134 3711 | impl Builder {
|
3712 + | /* ServerBuilderGenerator.kt:426 */
|
2135 3713 | #[allow(missing_docs)] // documentation missing in model
|
3714 + | /* ServerBuilderGenerator.kt:428 */
|
2136 3715 | pub(crate) fn set_message_content(
|
2137 3716 | mut self,
|
2138 3717 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
2139 3718 | ) -> Self {
|
3719 + | /* ServerBuilderGenerator.kt:429 */
|
2140 3720 | self.message_content = input.map(|v| v.into());
|
2141 3721 | self
|
3722 + | /* ServerBuilderGenerator.kt:428 */
|
2142 3723 | }
|
2143 - | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3724 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3725 + | /* ServerBuilderGenerator.kt:271 */
|
2144 3726 | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
2145 3727 | self.build_enforcing_all_constraints()
|
2146 3728 | }
|
3729 + | /* ServerBuilderGenerator.kt:283 */
|
2147 3730 | fn build_enforcing_all_constraints(self) -> crate::error::EventStreamErrorMessage {
|
3731 + | /* ServerBuilderGenerator.kt:542 */
|
2148 3732 | crate::error::EventStreamErrorMessage {
|
3733 + | /* ServerBuilderGenerator.kt:546 */
|
2149 3734 | message_content: self.message_content,
|
3735 + | /* ServerBuilderGenerator.kt:542 */
|
2150 3736 | }
|
3737 + | /* ServerBuilderGenerator.kt:283 */
|
2151 3738 | }
|
3739 + | /* ServerBuilderGenerator.kt:215 */
|
2152 3740 | }
|
3741 + |
|
3742 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2153 3743 | }
|
2154 - | /// See [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3744 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2155 3745 | pub mod event_stream_error_message {
|
2156 3746 |
|
3747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2157 3748 | impl ::std::convert::From<Builder> for crate::error::EventStreamErrorMessage {
|
2158 3749 | fn from(builder: Builder) -> Self {
|
2159 3750 | builder.build()
|
2160 3751 | }
|
2161 3752 | }
|
2162 - | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3753 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3754 + | /* RustType.kt:516 */
|
2163 3755 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3756 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2164 3757 | pub struct Builder {
|
3758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2165 3759 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
3760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2166 3761 | }
|
3762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2167 3763 | impl Builder {
|
3764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2168 3765 | #[allow(missing_docs)] // documentation missing in model
|
3766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2169 3767 | pub fn message_content(
|
2170 3768 | mut self,
|
2171 3769 | input: ::std::option::Option<::std::string::String>,
|
2172 3770 | ) -> Self {
|
2173 - | self.message_content = input;
|
3771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3772 + | self.message_content =
|
3773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2174 3775 | self
|
3776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2175 3777 | }
|
2176 - | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3778 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
3779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2177 3780 | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
2178 3781 | self.build_enforcing_required_and_enum_traits()
|
2179 3782 | }
|
3783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2180 3784 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::EventStreamErrorMessage {
|
3785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2181 3786 | crate::error::EventStreamErrorMessage {
|
3787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2182 3788 | message_content: self.message_content,
|
3789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2183 3790 | }
|
3791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2184 3792 | }
|
3793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2185 3794 | }
|
3795 + |
|
3796 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2186 3797 | }
|
2187 - | /// See [`ValidationException`](crate::error::ValidationException).
|
3798 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ValidationException`](crate::error::ValidationException).
|
2188 3799 | pub mod validation_exception {
|
2189 3800 |
|
3801 + | /* RustType.kt:516 */
|
2190 3802 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2191 - | /// Holds one variant for each of the ways the builder can fail.
|
2192 - |
|
3803 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3804 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2193 3805 | #[allow(clippy::enum_variant_names)]
|
2194 3806 | pub enum ConstraintViolation {
|
2195 - | /// `message` was not provided but it is required when building `ValidationException`.
|
3807 + | /// /* ServerBuilderConstraintViolations.kt:138 */`message` was not provided but it is required when building `ValidationException`.
|
3808 + | /* ServerBuilderConstraintViolations.kt:143 */
|
2196 3809 | MissingMessage,
|
3810 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2197 3811 | }
|
3812 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2198 3813 | impl ::std::fmt::Display for ConstraintViolation {
|
3814 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2199 3815 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3816 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2200 3817 | match self {
|
2201 - | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
2202 - | }
|
3818 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
3819 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3820 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2203 3821 | }
|
3822 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2204 3823 | }
|
3824 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2205 3825 | impl ::std::error::Error for ConstraintViolation {}
|
3826 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
2206 3827 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
2207 3828 | type Error = ConstraintViolation;
|
2208 3829 |
|
2209 3830 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2210 3831 | builder.build()
|
2211 3832 | }
|
2212 3833 | }
|
2213 - | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
3834 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ValidationException`](crate::error::ValidationException).
|
3835 + | /* RustType.kt:516 */
|
2214 3836 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3837 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2215 3838 | pub struct Builder {
|
3839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2216 3840 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
3841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2217 3842 | pub(crate) field_list:
|
2218 3843 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
3844 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2219 3845 | }
|
3846 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2220 3847 | impl Builder {
|
2221 - | /// A summary of the validation failure.
|
3848 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A summary of the validation failure.
|
3849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2222 3850 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
2223 - | self.message = Some(input);
|
3851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3852 + | self.message =
|
3853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
3854 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
3856 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2224 3857 | self
|
3858 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2225 3859 | }
|
2226 - | /// 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.
|
3860 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */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.
|
3861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2227 3862 | pub fn field_list(
|
2228 3863 | mut self,
|
2229 3864 | input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2230 3865 | ) -> Self {
|
2231 - | self.field_list = input;
|
3866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3867 + | self.field_list =
|
3868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2232 3870 | self
|
3871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2233 3872 | }
|
2234 - | /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
2235 - | ///
|
3873 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
3874 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
2236 3875 | /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
|
2237 3876 | ///
|
3877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2238 3878 | pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
2239 3879 | self.build_enforcing_required_and_enum_traits()
|
2240 3880 | }
|
3881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2241 3882 | fn build_enforcing_required_and_enum_traits(
|
2242 3883 | self,
|
2243 3884 | ) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
2244 - | Ok(crate::error::ValidationException {
|
2245 - | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
2246 - | field_list: self.field_list,
|
2247 - | })
|
3885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3886 + | Ok(
|
3887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3888 + | crate::error::ValidationException {
|
3889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3890 + | message: self
|
3891 + | .message
|
3892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3893 + | .ok_or(ConstraintViolation::MissingMessage)?,
|
3894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3895 + | field_list: self.field_list,
|
3896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3897 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3898 + | )
|
3899 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2248 3900 | }
|
3901 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2249 3902 | }
|
3903 + |
|
3904 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2250 3905 | }
|