1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* RustType.kt:516 */
|
2 3 | #[::pyo3::pyclass]
|
4 + | /* PythonServerStructureGenerator.kt:63 */
|
3 5 | /// :rtype None:
|
6 + | /* StructureGenerator.kt:197 */
|
4 7 | #[allow(missing_docs)] // documentation missing in model
|
8 + | /* RustType.kt:516 */
|
5 9 | #[derive(
|
6 10 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7 11 | )]
|
8 - | pub struct ResponseCodeDefaultOperationInput {}
|
12 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeDefaultOperationInput {/* StructureGenerator.kt:201 */}
|
13 + | /* RustType.kt:516 */
|
9 14 | #[allow(clippy::new_without_default)]
|
15 + | /* RustType.kt:516 */
|
10 16 | #[allow(clippy::too_many_arguments)]
|
17 + | /* RustType.kt:516 */
|
11 18 | #[::pyo3::pymethods]
|
19 + | /* PythonServerStructureGenerator.kt:88 */
|
12 20 | impl ResponseCodeDefaultOperationInput {
|
13 21 | #[new]
|
14 22 | pub fn new() -> Self {
|
15 23 | Self {}
|
16 24 | }
|
17 25 | fn __repr__(&self) -> String {
|
18 26 | format!("{self:?}")
|
19 27 | }
|
20 28 | fn __str__(&self) -> String {
|
21 29 | format!("{self:?}")
|
22 30 | }
|
23 31 | }
|
32 + | /* PythonServerStructureGenerator.kt:111 */
|
24 33 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
25 34 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
26 35 | ob.extract::<ResponseCodeDefaultOperationInput>()
|
27 36 | .map(Box::new)
|
28 37 | }
|
29 38 | }
|
30 39 |
|
31 40 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeDefaultOperationInput> {
|
32 41 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
33 42 | (*self).into_py(py)
|
34 43 | }
|
35 44 | }
|
45 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
36 46 | impl crate::constrained::Constrained for crate::input::ResponseCodeDefaultOperationInput {
|
37 47 | type Unconstrained = crate::input::response_code_default_operation_input_internal::Builder;
|
38 48 | }
|
49 + | /* ServerCodegenVisitor.kt:370 */
|
39 50 | impl ResponseCodeDefaultOperationInput {
|
40 - | /// Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
51 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
52 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
41 53 | pub fn builder() -> crate::input::response_code_default_operation_input::Builder {
|
54 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
42 55 | crate::input::response_code_default_operation_input::Builder::default()
|
56 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
43 57 | }
|
58 + | /* ServerCodegenVisitor.kt:370 */
|
44 59 | }
|
45 60 |
|
61 + | /* RustType.kt:516 */
|
46 62 | #[::pyo3::pyclass]
|
63 + | /* PythonServerStructureGenerator.kt:63 */
|
47 64 | /// :rtype None:
|
65 + | /* StructureGenerator.kt:197 */
|
48 66 | #[allow(missing_docs)] // documentation missing in model
|
67 + | /* RustType.kt:516 */
|
49 68 | #[derive(
|
50 69 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
51 70 | )]
|
52 - | pub struct ResponseCodeHttpFallbackOperationInput {}
|
71 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeHttpFallbackOperationInput {/* StructureGenerator.kt:201 */}
|
72 + | /* RustType.kt:516 */
|
53 73 | #[allow(clippy::new_without_default)]
|
74 + | /* RustType.kt:516 */
|
54 75 | #[allow(clippy::too_many_arguments)]
|
76 + | /* RustType.kt:516 */
|
55 77 | #[::pyo3::pymethods]
|
78 + | /* PythonServerStructureGenerator.kt:88 */
|
56 79 | impl ResponseCodeHttpFallbackOperationInput {
|
57 80 | #[new]
|
58 81 | pub fn new() -> Self {
|
59 82 | Self {}
|
60 83 | }
|
61 84 | fn __repr__(&self) -> String {
|
62 85 | format!("{self:?}")
|
63 86 | }
|
64 87 | fn __str__(&self) -> String {
|
65 88 | format!("{self:?}")
|
66 89 | }
|
67 90 | }
|
91 + | /* PythonServerStructureGenerator.kt:111 */
|
68 92 | impl<'source> ::pyo3::FromPyObject<'source>
|
69 93 | for std::boxed::Box<ResponseCodeHttpFallbackOperationInput>
|
70 94 | {
|
71 95 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
72 96 | ob.extract::<ResponseCodeHttpFallbackOperationInput>()
|
73 97 | .map(Box::new)
|
74 98 | }
|
75 99 | }
|
76 100 |
|
77 101 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeHttpFallbackOperationInput> {
|
78 102 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
79 103 | (*self).into_py(py)
|
80 104 | }
|
81 105 | }
|
106 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
82 107 | impl crate::constrained::Constrained for crate::input::ResponseCodeHttpFallbackOperationInput {
|
83 108 | type Unconstrained =
|
84 109 | crate::input::response_code_http_fallback_operation_input_internal::Builder;
|
85 110 | }
|
111 + | /* ServerCodegenVisitor.kt:370 */
|
86 112 | impl ResponseCodeHttpFallbackOperationInput {
|
87 - | /// Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
113 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
114 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
88 115 | pub fn builder() -> crate::input::response_code_http_fallback_operation_input::Builder {
|
116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
89 117 | crate::input::response_code_http_fallback_operation_input::Builder::default()
|
118 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
90 119 | }
|
120 + | /* ServerCodegenVisitor.kt:370 */
|
91 121 | }
|
92 122 |
|
123 + | /* RustType.kt:516 */
|
93 124 | #[::pyo3::pyclass]
|
125 + | /* PythonServerStructureGenerator.kt:63 */
|
94 126 | /// :rtype None:
|
127 + | /* StructureGenerator.kt:197 */
|
95 128 | #[allow(missing_docs)] // documentation missing in model
|
129 + | /* RustType.kt:516 */
|
96 130 | #[derive(
|
97 131 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
98 132 | )]
|
99 - | pub struct ResponseCodeRequiredOperationInput {}
|
133 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeRequiredOperationInput {/* StructureGenerator.kt:201 */}
|
134 + | /* RustType.kt:516 */
|
100 135 | #[allow(clippy::new_without_default)]
|
136 + | /* RustType.kt:516 */
|
101 137 | #[allow(clippy::too_many_arguments)]
|
138 + | /* RustType.kt:516 */
|
102 139 | #[::pyo3::pymethods]
|
140 + | /* PythonServerStructureGenerator.kt:88 */
|
103 141 | impl ResponseCodeRequiredOperationInput {
|
104 142 | #[new]
|
105 143 | pub fn new() -> Self {
|
106 144 | Self {}
|
107 145 | }
|
108 146 | fn __repr__(&self) -> String {
|
109 147 | format!("{self:?}")
|
110 148 | }
|
111 149 | fn __str__(&self) -> String {
|
112 150 | format!("{self:?}")
|
113 151 | }
|
114 152 | }
|
153 + | /* PythonServerStructureGenerator.kt:111 */
|
115 154 | impl<'source> ::pyo3::FromPyObject<'source>
|
116 155 | for std::boxed::Box<ResponseCodeRequiredOperationInput>
|
117 156 | {
|
118 157 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
119 158 | ob.extract::<ResponseCodeRequiredOperationInput>()
|
120 159 | .map(Box::new)
|
121 160 | }
|
122 161 | }
|
123 162 |
|
124 163 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ResponseCodeRequiredOperationInput> {
|
125 164 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
126 165 | (*self).into_py(py)
|
127 166 | }
|
128 167 | }
|
168 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
129 169 | impl crate::constrained::Constrained for crate::input::ResponseCodeRequiredOperationInput {
|
130 170 | type Unconstrained = crate::input::response_code_required_operation_input_internal::Builder;
|
131 171 | }
|
172 + | /* ServerCodegenVisitor.kt:370 */
|
132 173 | impl ResponseCodeRequiredOperationInput {
|
133 - | /// Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
174 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
134 176 | pub fn builder() -> crate::input::response_code_required_operation_input::Builder {
|
177 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
135 178 | crate::input::response_code_required_operation_input::Builder::default()
|
179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
136 180 | }
|
181 + | /* ServerCodegenVisitor.kt:370 */
|
137 182 | }
|
138 183 |
|
184 + | /* RustType.kt:516 */
|
139 185 | #[::pyo3::pyclass]
|
186 + | /* PythonServerStructureGenerator.kt:63 */
|
140 187 | /// :param required_header_list typing.List\[str\]:
|
141 188 | /// :param required_header_set typing.List\[str\]:
|
142 189 | /// :rtype None:
|
190 + | /* StructureGenerator.kt:197 */
|
143 191 | #[allow(missing_docs)] // documentation missing in model
|
192 + | /* RustType.kt:516 */
|
144 193 | #[derive(
|
145 194 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
146 195 | )]
|
147 - | pub struct RequiredHeaderCollectionOperationInput {
|
196 + | pub /* StructureGenerator.kt:201 */ struct RequiredHeaderCollectionOperationInput {
|
197 + | /* RustType.kt:516 */
|
148 198 | #[pyo3(get, set)]
|
199 + | /* PythonServerStructureGenerator.kt:80 */
|
149 200 | /// :type typing.List\[str\]:
|
201 + | /* StructureGenerator.kt:231 */
|
150 202 | #[allow(missing_docs)] // documentation missing in model
|
151 203 | pub required_header_list: ::std::vec::Vec<::std::string::String>,
|
204 + | /* RustType.kt:516 */
|
152 205 | #[pyo3(get, set)]
|
206 + | /* PythonServerStructureGenerator.kt:80 */
|
153 207 | /// :type typing.List\[str\]:
|
208 + | /* StructureGenerator.kt:231 */
|
154 209 | #[allow(missing_docs)] // documentation missing in model
|
155 210 | pub required_header_set: ::std::vec::Vec<::std::string::String>,
|
211 + | /* StructureGenerator.kt:201 */
|
156 212 | }
|
213 + | /* StructureGenerator.kt:135 */
|
157 214 | impl RequiredHeaderCollectionOperationInput {
|
215 + | /* StructureGenerator.kt:231 */
|
158 216 | #[allow(missing_docs)] // documentation missing in model
|
217 + | /* StructureGenerator.kt:166 */
|
159 218 | pub fn required_header_list(&self) -> &[::std::string::String] {
|
219 + | /* StructureGenerator.kt:171 */
|
160 220 | use std::ops::Deref;
|
161 221 | self.required_header_list.deref()
|
222 + | /* StructureGenerator.kt:166 */
|
162 223 | }
|
224 + | /* StructureGenerator.kt:231 */
|
163 225 | #[allow(missing_docs)] // documentation missing in model
|
226 + | /* StructureGenerator.kt:166 */
|
164 227 | pub fn required_header_set(&self) -> &[::std::string::String] {
|
228 + | /* StructureGenerator.kt:171 */
|
165 229 | use std::ops::Deref;
|
166 230 | self.required_header_set.deref()
|
231 + | /* StructureGenerator.kt:166 */
|
167 232 | }
|
233 + | /* StructureGenerator.kt:135 */
|
168 234 | }
|
235 + | /* RustType.kt:516 */
|
169 236 | #[allow(clippy::new_without_default)]
|
237 + | /* RustType.kt:516 */
|
170 238 | #[allow(clippy::too_many_arguments)]
|
239 + | /* RustType.kt:516 */
|
171 240 | #[::pyo3::pymethods]
|
241 + | /* PythonServerStructureGenerator.kt:88 */
|
172 242 | impl RequiredHeaderCollectionOperationInput {
|
173 243 | #[new]
|
174 244 | pub fn new(
|
175 245 | required_header_list: ::std::vec::Vec<::std::string::String>,
|
176 246 | required_header_set: ::std::vec::Vec<::std::string::String>,
|
177 247 | ) -> Self {
|
178 248 | Self {
|
179 249 | required_header_list,
|
180 250 | required_header_set,
|
181 251 | }
|
182 252 | }
|
183 253 | fn __repr__(&self) -> String {
|
184 254 | format!("{self:?}")
|
185 255 | }
|
186 256 | fn __str__(&self) -> String {
|
187 257 | format!("{self:?}")
|
188 258 | }
|
189 259 | }
|
260 + | /* PythonServerStructureGenerator.kt:111 */
|
190 261 | impl<'source> ::pyo3::FromPyObject<'source>
|
191 262 | for std::boxed::Box<RequiredHeaderCollectionOperationInput>
|
192 263 | {
|
193 264 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
194 265 | ob.extract::<RequiredHeaderCollectionOperationInput>()
|
195 266 | .map(Box::new)
|
196 267 | }
|
197 268 | }
|
198 269 |
|
199 270 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<RequiredHeaderCollectionOperationInput> {
|
200 271 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
201 272 | (*self).into_py(py)
|
202 273 | }
|
203 274 | }
|
275 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
204 276 | impl crate::constrained::Constrained for crate::input::RequiredHeaderCollectionOperationInput {
|
205 277 | type Unconstrained = crate::input::required_header_collection_operation_input_internal::Builder;
|
206 278 | }
|
279 + | /* ServerCodegenVisitor.kt:370 */
|
207 280 | impl RequiredHeaderCollectionOperationInput {
|
208 - | /// Creates a new builder-style object to manufacture [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
281 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
282 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
209 283 | pub fn builder() -> crate::input::required_header_collection_operation_input::Builder {
|
284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
210 285 | crate::input::required_header_collection_operation_input::Builder::default()
|
286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
211 287 | }
|
288 + | /* ServerCodegenVisitor.kt:370 */
|
212 289 | }
|
213 290 |
|
291 + | /* RustType.kt:516 */
|
214 292 | #[::pyo3::pyclass]
|
293 + | /* PythonServerStructureGenerator.kt:63 */
|
215 294 | /// :param inner typing.Optional\[misc.model.InnerShape\]:
|
216 295 | /// :rtype None:
|
296 + | /* StructureGenerator.kt:197 */
|
217 297 | #[allow(missing_docs)] // documentation missing in model
|
298 + | /* RustType.kt:516 */
|
218 299 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
219 - | pub struct RequiredInnerShapeOperationInput {
|
300 + | pub /* StructureGenerator.kt:201 */ struct RequiredInnerShapeOperationInput {
|
301 + | /* RustType.kt:516 */
|
220 302 | #[pyo3(get, set)]
|
303 + | /* PythonServerStructureGenerator.kt:80 */
|
221 304 | /// :type typing.Optional\[misc.model.InnerShape\]:
|
305 + | /* StructureGenerator.kt:231 */
|
222 306 | #[allow(missing_docs)] // documentation missing in model
|
223 307 | pub inner: ::std::option::Option<crate::model::InnerShape>,
|
308 + | /* StructureGenerator.kt:201 */
|
224 309 | }
|
310 + | /* StructureGenerator.kt:135 */
|
225 311 | impl RequiredInnerShapeOperationInput {
|
312 + | /* StructureGenerator.kt:231 */
|
226 313 | #[allow(missing_docs)] // documentation missing in model
|
314 + | /* StructureGenerator.kt:166 */
|
227 315 | pub fn inner(&self) -> ::std::option::Option<&crate::model::InnerShape> {
|
316 + | /* StructureGenerator.kt:170 */
|
228 317 | self.inner.as_ref()
|
318 + | /* StructureGenerator.kt:166 */
|
229 319 | }
|
320 + | /* StructureGenerator.kt:135 */
|
230 321 | }
|
322 + | /* RustType.kt:516 */
|
231 323 | #[allow(clippy::new_without_default)]
|
324 + | /* RustType.kt:516 */
|
232 325 | #[allow(clippy::too_many_arguments)]
|
326 + | /* RustType.kt:516 */
|
233 327 | #[::pyo3::pymethods]
|
328 + | /* PythonServerStructureGenerator.kt:88 */
|
234 329 | impl RequiredInnerShapeOperationInput {
|
235 330 | #[new]
|
236 331 | pub fn new(inner: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
237 332 | Self { inner }
|
238 333 | }
|
239 334 | fn __repr__(&self) -> String {
|
240 335 | format!("{self:?}")
|
241 336 | }
|
242 337 | fn __str__(&self) -> String {
|
243 338 | format!("{self:?}")
|
244 339 | }
|
245 340 | }
|
341 + | /* PythonServerStructureGenerator.kt:111 */
|
246 342 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
247 343 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
248 344 | ob.extract::<RequiredInnerShapeOperationInput>()
|
249 345 | .map(Box::new)
|
250 346 | }
|
251 347 | }
|
252 348 |
|
253 349 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<RequiredInnerShapeOperationInput> {
|
254 350 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
255 351 | (*self).into_py(py)
|
256 352 | }
|
257 353 | }
|
354 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
258 355 | impl crate::constrained::Constrained for crate::input::RequiredInnerShapeOperationInput {
|
259 356 | type Unconstrained = crate::input::required_inner_shape_operation_input_internal::Builder;
|
260 357 | }
|
358 + | /* ServerCodegenVisitor.kt:370 */
|
261 359 | impl RequiredInnerShapeOperationInput {
|
262 - | /// Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
360 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
263 362 | pub fn builder() -> crate::input::required_inner_shape_operation_input::Builder {
|
363 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
264 364 | crate::input::required_inner_shape_operation_input::Builder::default()
|
365 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
265 366 | }
|
367 + | /* ServerCodegenVisitor.kt:370 */
|
266 368 | }
|
267 369 |
|
370 + | /* RustType.kt:516 */
|
268 371 | #[::pyo3::pyclass]
|
372 + | /* PythonServerStructureGenerator.kt:63 */
|
269 373 | /// :param list typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
270 374 | /// :rtype None:
|
375 + | /* StructureGenerator.kt:197 */
|
271 376 | #[allow(missing_docs)] // documentation missing in model
|
377 + | /* RustType.kt:516 */
|
272 378 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
273 - | pub struct TypeComplexityOperationInput {
|
379 + | pub /* StructureGenerator.kt:201 */ struct TypeComplexityOperationInput {
|
380 + | /* RustType.kt:516 */
|
274 381 | #[pyo3(get, set)]
|
382 + | /* PythonServerStructureGenerator.kt:80 */
|
275 383 | /// :type typing.Optional\[typing.List\[typing.List\[typing.List\[typing.Dict\[str, misc.model.EmptyStructure\]\]\]\]\]:
|
384 + | /* StructureGenerator.kt:231 */
|
276 385 | #[allow(missing_docs)] // documentation missing in model
|
277 386 | pub list: ::std::option::Option<
|
278 387 | ::std::vec::Vec<
|
279 388 | ::std::vec::Vec<
|
280 389 | ::std::vec::Vec<
|
281 390 | ::std::collections::HashMap<
|
282 391 | ::std::string::String,
|
283 392 | crate::model::EmptyStructure,
|
284 393 | >,
|
285 394 | >,
|
286 395 | >,
|
287 396 | >,
|
288 397 | >,
|
398 + | /* StructureGenerator.kt:201 */
|
289 399 | }
|
400 + | /* StructureGenerator.kt:135 */
|
290 401 | impl TypeComplexityOperationInput {
|
402 + | /* StructureGenerator.kt:231 */
|
291 403 | #[allow(missing_docs)] // documentation missing in model
|
404 + | /* StructureGenerator.kt:166 */
|
292 405 | pub fn list(
|
293 406 | &self,
|
294 407 | ) -> ::std::option::Option<
|
295 408 | &[::std::vec::Vec<
|
296 409 | ::std::vec::Vec<
|
297 410 | ::std::collections::HashMap<::std::string::String, crate::model::EmptyStructure>,
|
298 411 | >,
|
299 412 | >],
|
300 413 | > {
|
414 + | /* StructureGenerator.kt:169 */
|
301 415 | self.list.as_deref()
|
416 + | /* StructureGenerator.kt:166 */
|
302 417 | }
|
418 + | /* StructureGenerator.kt:135 */
|
303 419 | }
|
420 + | /* RustType.kt:516 */
|
304 421 | #[allow(clippy::new_without_default)]
|
422 + | /* RustType.kt:516 */
|
305 423 | #[allow(clippy::too_many_arguments)]
|
424 + | /* RustType.kt:516 */
|
306 425 | #[::pyo3::pymethods]
|
426 + | /* PythonServerStructureGenerator.kt:88 */
|
307 427 | impl TypeComplexityOperationInput {
|
308 428 | #[new]
|
309 429 | pub fn new(
|
310 430 | list: ::std::option::Option<
|
311 431 | ::std::vec::Vec<
|
312 432 | ::std::vec::Vec<
|
313 433 | ::std::vec::Vec<
|
314 434 | ::std::collections::HashMap<
|
315 435 | ::std::string::String,
|
316 436 | crate::model::EmptyStructure,
|
317 437 | >,
|
318 438 | >,
|
319 439 | >,
|
320 440 | >,
|
321 441 | >,
|
322 442 | ) -> Self {
|
323 443 | Self { list }
|
324 444 | }
|
325 445 | fn __repr__(&self) -> String {
|
326 446 | format!("{self:?}")
|
327 447 | }
|
328 448 | fn __str__(&self) -> String {
|
329 449 | format!("{self:?}")
|
330 450 | }
|
331 451 | }
|
452 + | /* PythonServerStructureGenerator.kt:111 */
|
332 453 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TypeComplexityOperationInput> {
|
333 454 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
334 455 | ob.extract::<TypeComplexityOperationInput>().map(Box::new)
|
335 456 | }
|
336 457 | }
|
337 458 |
|
338 459 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TypeComplexityOperationInput> {
|
339 460 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
340 461 | (*self).into_py(py)
|
341 462 | }
|
342 463 | }
|
464 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
343 465 | impl crate::constrained::Constrained for crate::input::TypeComplexityOperationInput {
|
344 466 | type Unconstrained = crate::input::type_complexity_operation_input_internal::Builder;
|
345 467 | }
|
468 + | /* ServerCodegenVisitor.kt:370 */
|
346 469 | impl TypeComplexityOperationInput {
|
347 - | /// Creates a new builder-style object to manufacture [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
470 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
348 472 | pub fn builder() -> crate::input::type_complexity_operation_input::Builder {
|
473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
349 474 | crate::input::type_complexity_operation_input::Builder::default()
|
475 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
350 476 | }
|
477 + | /* ServerCodegenVisitor.kt:370 */
|
351 478 | }
|
352 - | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
479 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
353 480 | pub(crate) mod response_code_default_operation_input_internal {
|
354 481 |
|
482 + | /* ServerBuilderGenerator.kt:461 */
|
355 483 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
356 484 | fn from(builder: Builder) -> Self {
|
357 485 | builder.build()
|
358 486 | }
|
359 487 | }
|
360 - | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
488 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
489 + | /* RustType.kt:516 */
|
361 490 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
362 - | pub(crate) struct Builder {}
|
491 + | /* ServerBuilderGenerator.kt:211 */
|
492 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
493 + | /* ServerBuilderGenerator.kt:215 */
|
363 494 | impl Builder {
|
364 - | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
495 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
496 + | /* ServerBuilderGenerator.kt:271 */
|
365 497 | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
366 498 | self.build_enforcing_all_constraints()
|
367 499 | }
|
500 + | /* ServerBuilderGenerator.kt:283 */
|
368 501 | fn build_enforcing_all_constraints(
|
369 502 | self,
|
370 503 | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
371 - | crate::input::ResponseCodeDefaultOperationInput {}
|
504 + | /* ServerBuilderGenerator.kt:542 */
|
505 + | crate::input::ResponseCodeDefaultOperationInput {
|
506 + | /* ServerBuilderGenerator.kt:542 */}
|
507 + | /* ServerBuilderGenerator.kt:283 */
|
372 508 | }
|
509 + | /* ServerBuilderGenerator.kt:215 */
|
373 510 | }
|
511 + |
|
512 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
374 513 | }
|
375 - | /// See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
514 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
376 515 | pub mod response_code_default_operation_input {
|
377 516 |
|
517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
378 518 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeDefaultOperationInput {
|
379 519 | fn from(builder: Builder) -> Self {
|
380 520 | builder.build()
|
381 521 | }
|
382 522 | }
|
383 - | /// A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
523 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
524 + | /* RustType.kt:516 */
|
384 525 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
385 - | pub struct Builder {}
|
526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
527 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
386 529 | impl Builder {
|
387 - | /// Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
530 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ResponseCodeDefaultOperationInput`](crate::input::ResponseCodeDefaultOperationInput).
|
531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
388 532 | pub fn build(self) -> crate::input::ResponseCodeDefaultOperationInput {
|
389 533 | self.build_enforcing_required_and_enum_traits()
|
390 534 | }
|
535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
391 536 | fn build_enforcing_required_and_enum_traits(
|
392 537 | self,
|
393 538 | ) -> crate::input::ResponseCodeDefaultOperationInput {
|
394 - | crate::input::ResponseCodeDefaultOperationInput {}
|
539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
540 + | crate::input::ResponseCodeDefaultOperationInput {
|
541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
395 543 | }
|
544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
396 545 | }
|
546 + |
|
547 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
397 548 | }
|
398 - | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
549 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
399 550 | pub(crate) mod response_code_http_fallback_operation_input_internal {
|
400 551 |
|
552 + | /* ServerBuilderGenerator.kt:461 */
|
401 553 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
402 554 | fn from(builder: Builder) -> Self {
|
403 555 | builder.build()
|
404 556 | }
|
405 557 | }
|
406 - | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
558 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
559 + | /* RustType.kt:516 */
|
407 560 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
408 - | pub(crate) struct Builder {}
|
561 + | /* ServerBuilderGenerator.kt:211 */
|
562 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
563 + | /* ServerBuilderGenerator.kt:215 */
|
409 564 | impl Builder {
|
410 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
565 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
566 + | /* ServerBuilderGenerator.kt:271 */
|
411 567 | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
412 568 | self.build_enforcing_all_constraints()
|
413 569 | }
|
570 + | /* ServerBuilderGenerator.kt:283 */
|
414 571 | fn build_enforcing_all_constraints(
|
415 572 | self,
|
416 573 | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
417 - | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
574 + | /* ServerBuilderGenerator.kt:542 */
|
575 + | crate::input::ResponseCodeHttpFallbackOperationInput {
|
576 + | /* ServerBuilderGenerator.kt:542 */}
|
577 + | /* ServerBuilderGenerator.kt:283 */
|
418 578 | }
|
579 + | /* ServerBuilderGenerator.kt:215 */
|
419 580 | }
|
581 + |
|
582 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
420 583 | }
|
421 - | /// See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
584 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
422 585 | pub mod response_code_http_fallback_operation_input {
|
423 586 |
|
587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
424 588 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackOperationInput {
|
425 589 | fn from(builder: Builder) -> Self {
|
426 590 | builder.build()
|
427 591 | }
|
428 592 | }
|
429 - | /// A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
593 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
594 + | /* RustType.kt:516 */
|
430 595 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
431 - | pub struct Builder {}
|
596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
597 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
432 599 | impl Builder {
|
433 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
600 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ResponseCodeHttpFallbackOperationInput`](crate::input::ResponseCodeHttpFallbackOperationInput).
|
601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
434 602 | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
435 603 | self.build_enforcing_required_and_enum_traits()
|
436 604 | }
|
605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
437 606 | fn build_enforcing_required_and_enum_traits(
|
438 607 | self,
|
439 608 | ) -> crate::input::ResponseCodeHttpFallbackOperationInput {
|
440 - | crate::input::ResponseCodeHttpFallbackOperationInput {}
|
609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
610 + | crate::input::ResponseCodeHttpFallbackOperationInput {
|
611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
441 613 | }
|
614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
442 615 | }
|
616 + |
|
617 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
443 618 | }
|
444 - | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
619 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
445 620 | pub(crate) mod response_code_required_operation_input_internal {
|
446 621 |
|
622 + | /* ServerBuilderGenerator.kt:461 */
|
447 623 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
448 624 | fn from(builder: Builder) -> Self {
|
449 625 | builder.build()
|
450 626 | }
|
451 627 | }
|
452 - | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
628 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
629 + | /* RustType.kt:516 */
|
453 630 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
454 - | pub(crate) struct Builder {}
|
631 + | /* ServerBuilderGenerator.kt:211 */
|
632 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
633 + | /* ServerBuilderGenerator.kt:215 */
|
455 634 | impl Builder {
|
456 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
635 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
636 + | /* ServerBuilderGenerator.kt:271 */
|
457 637 | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
458 638 | self.build_enforcing_all_constraints()
|
459 639 | }
|
640 + | /* ServerBuilderGenerator.kt:283 */
|
460 641 | fn build_enforcing_all_constraints(
|
461 642 | self,
|
462 643 | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
463 - | crate::input::ResponseCodeRequiredOperationInput {}
|
644 + | /* ServerBuilderGenerator.kt:542 */
|
645 + | crate::input::ResponseCodeRequiredOperationInput {
|
646 + | /* ServerBuilderGenerator.kt:542 */}
|
647 + | /* ServerBuilderGenerator.kt:283 */
|
464 648 | }
|
649 + | /* ServerBuilderGenerator.kt:215 */
|
465 650 | }
|
651 + |
|
652 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
466 653 | }
|
467 - | /// See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
654 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
468 655 | pub mod response_code_required_operation_input {
|
469 656 |
|
657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
470 658 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredOperationInput {
|
471 659 | fn from(builder: Builder) -> Self {
|
472 660 | builder.build()
|
473 661 | }
|
474 662 | }
|
475 - | /// A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
663 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
664 + | /* RustType.kt:516 */
|
476 665 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
477 - | pub struct Builder {}
|
666 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
667 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
668 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
478 669 | impl Builder {
|
479 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
670 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ResponseCodeRequiredOperationInput`](crate::input::ResponseCodeRequiredOperationInput).
|
671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
480 672 | pub fn build(self) -> crate::input::ResponseCodeRequiredOperationInput {
|
481 673 | self.build_enforcing_required_and_enum_traits()
|
482 674 | }
|
675 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
483 676 | fn build_enforcing_required_and_enum_traits(
|
484 677 | self,
|
485 678 | ) -> crate::input::ResponseCodeRequiredOperationInput {
|
486 - | crate::input::ResponseCodeRequiredOperationInput {}
|
679 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
680 + | crate::input::ResponseCodeRequiredOperationInput {
|
681 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
487 683 | }
|
684 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
488 685 | }
|
686 + |
|
687 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
489 688 | }
|
490 - | /// See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
689 + | /// /* ServerBuilderGenerator.kt:171 */See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
491 690 | pub(crate) mod required_header_collection_operation_input_internal {
|
492 691 |
|
692 + | /* RustType.kt:516 */
|
493 693 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
494 - | /// Holds one variant for each of the ways the builder can fail.
|
694 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
695 + | /* RustType.kt:516 */
|
495 696 | #[non_exhaustive]
|
697 + | /* ServerBuilderConstraintViolations.kt:75 */
|
496 698 | #[allow(clippy::enum_variant_names)]
|
497 699 | pub(crate) enum ConstraintViolation {
|
498 - | /// `required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
700 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
701 + | /* ServerBuilderConstraintViolations.kt:143 */
|
499 702 | MissingRequiredHeaderList,
|
500 - | /// `required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
703 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
704 + | /* ServerBuilderConstraintViolations.kt:143 */
|
501 705 | MissingRequiredHeaderSet,
|
502 - | /// Constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`.
|
706 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`.
|
707 + | /* RustType.kt:516 */
|
503 708 | #[doc(hidden)]
|
709 + | /* ServerBuilderConstraintViolations.kt:164 */
|
504 710 | RequiredHeaderSet(crate::model::header_set_internal::ConstraintViolation),
|
711 + | /* ServerBuilderConstraintViolations.kt:75 */
|
505 712 | }
|
713 + | /* ServerBuilderConstraintViolations.kt:117 */
|
506 714 | impl ::std::fmt::Display for ConstraintViolation {
|
715 + | /* ServerBuilderConstraintViolations.kt:118 */
|
507 716 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
717 + | /* ServerBuilderConstraintViolations.kt:119 */
|
508 718 | match self {
|
509 - | ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
510 - | ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
511 - | ConstraintViolation::RequiredHeaderSet(_) => write!(f, "constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`"),
|
512 - | }
|
719 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
720 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
721 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RequiredHeaderSet(_) => write!(f, "constraint violation occurred building member `required_header_set` when building `RequiredHeaderCollectionOperationInput`"),
|
722 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
723 + | /* ServerBuilderConstraintViolations.kt:118 */
|
513 724 | }
|
725 + | /* ServerBuilderConstraintViolations.kt:117 */
|
514 726 | }
|
727 + | /* ServerBuilderConstraintViolations.kt:84 */
|
515 728 | impl ::std::error::Error for ConstraintViolation {}
|
729 + | /* ServerBuilderConstraintViolations.kt:171 */
|
516 730 | impl ConstraintViolation {
|
517 731 | pub(crate) fn as_validation_exception_field(
|
518 732 | self,
|
519 733 | path: ::std::string::String,
|
520 734 | ) -> crate::model::ValidationExceptionField {
|
521 735 | match self {
|
522 736 | ConstraintViolation::MissingRequiredHeaderList => crate::model::ValidationExceptionField {
|
523 737 | message: format!("Value at '{}/requiredHeaderList' failed to satisfy constraint: Member must not be null", path),
|
524 738 | path: path + "/requiredHeaderList",
|
525 739 | },
|
526 740 | ConstraintViolation::MissingRequiredHeaderSet => crate::model::ValidationExceptionField {
|
527 741 | message: format!("Value at '{}/requiredHeaderSet' failed to satisfy constraint: Member must not be null", path),
|
528 742 | path: path + "/requiredHeaderSet",
|
529 743 | },
|
530 744 | ConstraintViolation::RequiredHeaderSet(inner) => inner.as_validation_exception_field(path + "/requiredHeaderSet"),
|
531 745 | }
|
532 746 | }
|
533 747 | }
|
748 + | /* ServerBuilderGenerator.kt:234 */
|
534 749 | impl ::std::convert::From<ConstraintViolation>
|
535 750 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
536 751 | {
|
537 752 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
538 753 | let first_validation_exception_field =
|
539 754 | constraint_violation.as_validation_exception_field("".to_owned());
|
540 755 | let validation_exception = crate::error::ValidationException {
|
541 756 | message: format!(
|
542 757 | "1 validation error detected. {}",
|
543 758 | &first_validation_exception_field.message
|
544 759 | ),
|
545 760 | field_list: Some(vec![first_validation_exception_field]),
|
546 761 | };
|
547 762 | Self::ConstraintViolation(
|
548 763 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
549 764 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
550 765 | )
|
551 766 | }
|
552 767 | }
|
768 + | /* ServerBuilderGenerator.kt:244 */
|
553 769 | impl ::std::convert::From<Builder>
|
554 770 | for crate::constrained::MaybeConstrained<
|
555 771 | crate::input::RequiredHeaderCollectionOperationInput,
|
556 772 | >
|
557 773 | {
|
558 774 | fn from(builder: Builder) -> Self {
|
559 775 | Self::Unconstrained(builder)
|
560 776 | }
|
561 777 | }
|
778 + | /* ServerBuilderGenerator.kt:446 */
|
562 779 | impl ::std::convert::TryFrom<Builder> for crate::input::RequiredHeaderCollectionOperationInput {
|
563 780 | type Error = ConstraintViolation;
|
564 781 |
|
565 782 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
566 783 | builder.build()
|
567 784 | }
|
568 785 | }
|
569 - | /// A builder for [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
786 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
787 + | /* RustType.kt:516 */
|
570 788 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
789 + | /* ServerBuilderGenerator.kt:211 */
|
571 790 | pub(crate) struct Builder {
|
791 + | /* ServerBuilderGenerator.kt:308 */
|
572 792 | pub(crate) required_header_list:
|
573 793 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
794 + | /* ServerBuilderGenerator.kt:308 */
|
574 795 | pub(crate) required_header_set:
|
575 796 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::HeaderSet>>,
|
797 + | /* ServerBuilderGenerator.kt:211 */
|
576 798 | }
|
799 + | /* ServerBuilderGenerator.kt:215 */
|
577 800 | impl Builder {
|
801 + | /* ServerBuilderGenerator.kt:426 */
|
578 802 | #[allow(missing_docs)] // documentation missing in model
|
803 + | /* ServerBuilderGenerator.kt:428 */
|
579 804 | pub(crate) fn set_required_header_list(
|
580 805 | mut self,
|
581 806 | input: impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>,
|
582 807 | ) -> Self {
|
808 + | /* ServerBuilderGenerator.kt:429 */
|
583 809 | self.required_header_list = Some(input.into());
|
584 810 | self
|
811 + | /* ServerBuilderGenerator.kt:428 */
|
585 812 | }
|
813 + | /* ServerBuilderGenerator.kt:426 */
|
586 814 | #[allow(missing_docs)] // documentation missing in model
|
815 + | /* ServerBuilderGenerator.kt:428 */
|
587 816 | pub(crate) fn set_required_header_set(
|
588 817 | mut self,
|
589 818 | input: impl ::std::convert::Into<
|
590 819 | crate::constrained::MaybeConstrained<crate::model::HeaderSet>,
|
591 820 | >,
|
592 821 | ) -> Self {
|
822 + | /* ServerBuilderGenerator.kt:429 */
|
593 823 | self.required_header_set = Some(input.into());
|
594 824 | self
|
825 + | /* ServerBuilderGenerator.kt:428 */
|
595 826 | }
|
596 - | /// Consumes the builder and constructs a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
597 - | ///
|
827 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
828 + | /// /* ServerBuilderGenerator.kt:260 */
|
598 829 | /// The builder fails to construct a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput) if a [`ConstraintViolation`] occurs.
|
599 830 | ///
|
600 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
831 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
832 + | /* ServerBuilderGenerator.kt:271 */
|
601 833 | pub fn build(
|
602 834 | self,
|
603 835 | ) -> Result<crate::input::RequiredHeaderCollectionOperationInput, ConstraintViolation>
|
604 836 | {
|
605 837 | self.build_enforcing_all_constraints()
|
606 838 | }
|
839 + | /* ServerBuilderGenerator.kt:283 */
|
607 840 | fn build_enforcing_all_constraints(
|
608 841 | self,
|
609 842 | ) -> Result<crate::input::RequiredHeaderCollectionOperationInput, ConstraintViolation>
|
610 843 | {
|
611 - | Ok(crate::input::RequiredHeaderCollectionOperationInput {
|
844 + | /* ServerBuilderGenerator.kt:287 */
|
845 + | Ok(
|
846 + | /* ServerBuilderGenerator.kt:542 */
|
847 + | crate::input::RequiredHeaderCollectionOperationInput {
|
848 + | /* ServerBuilderGenerator.kt:546 */
|
612 849 | required_header_list: self
|
613 850 | .required_header_list
|
851 + | /* ServerBuilderGenerator.kt:569 */
|
614 852 | .ok_or(ConstraintViolation::MissingRequiredHeaderList)?,
|
853 + | /* ServerBuilderGenerator.kt:546 */
|
615 854 | required_header_set: self
|
616 855 | .required_header_set
|
856 + | /* ServerBuilderGenerator.kt:602 */
|
617 857 | .map(|v| match v {
|
618 858 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
619 859 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
620 860 | })
|
861 + | /* ServerBuilderGenerator.kt:614 */
|
621 862 | .map(|res| res.map_err(ConstraintViolation::RequiredHeaderSet))
|
622 863 | .transpose()?
|
864 + | /* ServerBuilderGenerator.kt:630 */
|
623 865 | .map(|v: crate::model::HeaderSet| v.into())
|
866 + | /* ServerBuilderGenerator.kt:569 */
|
624 867 | .ok_or(ConstraintViolation::MissingRequiredHeaderSet)?,
|
625 - | })
|
868 + | /* ServerBuilderGenerator.kt:542 */
|
869 + | }, /* ServerBuilderGenerator.kt:287 */
|
870 + | )
|
871 + | /* ServerBuilderGenerator.kt:283 */
|
626 872 | }
|
873 + | /* ServerBuilderGenerator.kt:215 */
|
627 874 | }
|
875 + |
|
876 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
628 877 | }
|
629 - | /// See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
878 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
630 879 | pub mod required_header_collection_operation_input {
|
631 880 |
|
881 + | /* RustType.kt:516 */
|
632 882 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
633 - | /// Holds one variant for each of the ways the builder can fail.
|
634 - |
|
883 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
884 + | /* ServerBuilderConstraintViolations.kt:75 */
|
635 885 | #[allow(clippy::enum_variant_names)]
|
636 886 | pub enum ConstraintViolation {
|
637 - | /// `required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
887 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
888 + | /* ServerBuilderConstraintViolations.kt:143 */
|
638 889 | MissingRequiredHeaderList,
|
639 - | /// `required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
890 + | /// /* ServerBuilderConstraintViolations.kt:138 */`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`.
|
891 + | /* ServerBuilderConstraintViolations.kt:143 */
|
640 892 | MissingRequiredHeaderSet,
|
893 + | /* ServerBuilderConstraintViolations.kt:75 */
|
641 894 | }
|
895 + | /* ServerBuilderConstraintViolations.kt:117 */
|
642 896 | impl ::std::fmt::Display for ConstraintViolation {
|
897 + | /* ServerBuilderConstraintViolations.kt:118 */
|
643 898 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
899 + | /* ServerBuilderConstraintViolations.kt:119 */
|
644 900 | match self {
|
645 - | ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
646 - | ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
647 - | }
|
901 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderList => write!(f, "`required_header_list` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
902 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRequiredHeaderSet => write!(f, "`required_header_set` was not provided but it is required when building `RequiredHeaderCollectionOperationInput`"),
|
903 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
904 + | /* ServerBuilderConstraintViolations.kt:118 */
|
648 905 | }
|
906 + | /* ServerBuilderConstraintViolations.kt:117 */
|
649 907 | }
|
908 + | /* ServerBuilderConstraintViolations.kt:84 */
|
650 909 | impl ::std::error::Error for ConstraintViolation {}
|
910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
651 911 | impl ::std::convert::TryFrom<Builder> for crate::input::RequiredHeaderCollectionOperationInput {
|
652 912 | type Error = ConstraintViolation;
|
653 913 |
|
654 914 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
655 915 | builder.build()
|
656 916 | }
|
657 917 | }
|
658 - | /// A builder for [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
918 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
919 + | /* RustType.kt:516 */
|
659 920 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
660 922 | pub struct Builder {
|
923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
661 924 | pub(crate) required_header_list:
|
662 925 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
663 927 | pub(crate) required_header_set:
|
664 928 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
665 930 | }
|
931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
666 932 | impl Builder {
|
933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
667 934 | #[allow(missing_docs)] // documentation missing in model
|
935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
668 936 | pub fn required_header_list(
|
669 937 | mut self,
|
670 938 | input: ::std::vec::Vec<::std::string::String>,
|
671 939 | ) -> Self {
|
672 - | self.required_header_list = Some(input);
|
940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
941 + | self.required_header_list =
|
942 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
673 946 | self
|
947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
674 948 | }
|
949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
675 950 | #[allow(missing_docs)] // documentation missing in model
|
951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
676 952 | pub fn required_header_set(
|
677 953 | mut self,
|
678 954 | input: ::std::vec::Vec<::std::string::String>,
|
679 955 | ) -> Self {
|
680 - | self.required_header_set = Some(input);
|
956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
957 + | self.required_header_set =
|
958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
681 962 | self
|
963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
682 964 | }
|
683 - | /// Consumes the builder and constructs a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
684 - | ///
|
965 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput).
|
966 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
685 967 | /// The builder fails to construct a [`RequiredHeaderCollectionOperationInput`](crate::input::RequiredHeaderCollectionOperationInput) if you do not provide a value for all non-`Option`al members.
|
686 968 | ///
|
969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
687 970 | pub fn build(
|
688 971 | self,
|
689 972 | ) -> Result<crate::input::RequiredHeaderCollectionOperationInput, ConstraintViolation>
|
690 973 | {
|
691 974 | self.build_enforcing_required_and_enum_traits()
|
692 975 | }
|
976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
693 977 | fn build_enforcing_required_and_enum_traits(
|
694 978 | self,
|
695 979 | ) -> Result<crate::input::RequiredHeaderCollectionOperationInput, ConstraintViolation>
|
696 980 | {
|
697 - | Ok(crate::input::RequiredHeaderCollectionOperationInput {
|
981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
982 + | Ok(
|
983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
984 + | crate::input::RequiredHeaderCollectionOperationInput {
|
985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
698 986 | required_header_list: self
|
699 987 | .required_header_list
|
988 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
700 989 | .ok_or(ConstraintViolation::MissingRequiredHeaderList)?,
|
990 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
701 991 | required_header_set: self
|
702 992 | .required_header_set
|
993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
703 994 | .ok_or(ConstraintViolation::MissingRequiredHeaderSet)?,
|
704 - | })
|
995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
996 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
997 + | )
|
998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
705 999 | }
|
1000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
706 1001 | }
|
1002 + |
|
1003 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
707 1004 | }
|
708 - | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1005 + | /// /* ServerBuilderGenerator.kt:171 */See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
709 1006 | pub(crate) mod required_inner_shape_operation_input_internal {
|
710 1007 |
|
1008 + | /* RustType.kt:516 */
|
711 1009 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
712 - | /// Holds one variant for each of the ways the builder can fail.
|
1010 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1011 + | /* RustType.kt:516 */
|
713 1012 | #[non_exhaustive]
|
1013 + | /* ServerBuilderConstraintViolations.kt:75 */
|
714 1014 | #[allow(clippy::enum_variant_names)]
|
715 1015 | pub(crate) enum ConstraintViolation {
|
716 - | /// Constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`.
|
1016 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`.
|
1017 + | /* RustType.kt:516 */
|
717 1018 | #[doc(hidden)]
|
1019 + | /* ServerBuilderConstraintViolations.kt:164 */
|
718 1020 | Inner(crate::model::inner_shape_internal::ConstraintViolation),
|
1021 + | /* ServerBuilderConstraintViolations.kt:75 */
|
719 1022 | }
|
1023 + | /* ServerBuilderConstraintViolations.kt:117 */
|
720 1024 | impl ::std::fmt::Display for ConstraintViolation {
|
1025 + | /* ServerBuilderConstraintViolations.kt:118 */
|
721 1026 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1027 + | /* ServerBuilderConstraintViolations.kt:119 */
|
722 1028 | match self {
|
723 - | ConstraintViolation::Inner(_) => write!(f, "constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`"),
|
724 - | }
|
1029 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Inner(_) => write!(f, "constraint violation occurred building member `inner` when building `RequiredInnerShapeOperationInput`"),
|
1030 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1031 + | /* ServerBuilderConstraintViolations.kt:118 */
|
725 1032 | }
|
1033 + | /* ServerBuilderConstraintViolations.kt:117 */
|
726 1034 | }
|
1035 + | /* ServerBuilderConstraintViolations.kt:84 */
|
727 1036 | impl ::std::error::Error for ConstraintViolation {}
|
1037 + | /* ServerBuilderConstraintViolations.kt:171 */
|
728 1038 | impl ConstraintViolation {
|
729 1039 | pub(crate) fn as_validation_exception_field(
|
730 1040 | self,
|
731 1041 | path: ::std::string::String,
|
732 1042 | ) -> crate::model::ValidationExceptionField {
|
733 1043 | match self {
|
734 1044 | ConstraintViolation::Inner(inner) => {
|
735 1045 | inner.as_validation_exception_field(path + "/inner")
|
736 1046 | }
|
737 1047 | }
|
738 1048 | }
|
739 1049 | }
|
1050 + | /* ServerBuilderGenerator.kt:234 */
|
740 1051 | impl ::std::convert::From<ConstraintViolation>
|
741 1052 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
742 1053 | {
|
743 1054 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
744 1055 | let first_validation_exception_field =
|
745 1056 | constraint_violation.as_validation_exception_field("".to_owned());
|
746 1057 | let validation_exception = crate::error::ValidationException {
|
747 1058 | message: format!(
|
748 1059 | "1 validation error detected. {}",
|
749 1060 | &first_validation_exception_field.message
|
750 1061 | ),
|
751 1062 | field_list: Some(vec![first_validation_exception_field]),
|
752 1063 | };
|
753 1064 | Self::ConstraintViolation(
|
754 1065 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
755 1066 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
756 1067 | )
|
757 1068 | }
|
758 1069 | }
|
1070 + | /* ServerBuilderGenerator.kt:244 */
|
759 1071 | impl ::std::convert::From<Builder>
|
760 1072 | for crate::constrained::MaybeConstrained<crate::input::RequiredInnerShapeOperationInput>
|
761 1073 | {
|
762 1074 | fn from(builder: Builder) -> Self {
|
763 1075 | Self::Unconstrained(builder)
|
764 1076 | }
|
765 1077 | }
|
1078 + | /* ServerBuilderGenerator.kt:446 */
|
766 1079 | impl ::std::convert::TryFrom<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
767 1080 | type Error = ConstraintViolation;
|
768 1081 |
|
769 1082 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
770 1083 | builder.build()
|
771 1084 | }
|
772 1085 | }
|
773 - | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1086 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1087 + | /* RustType.kt:516 */
|
774 1088 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1089 + | /* ServerBuilderGenerator.kt:211 */
|
775 1090 | pub(crate) struct Builder {
|
1091 + | /* ServerBuilderGenerator.kt:308 */
|
776 1092 | pub(crate) inner:
|
777 1093 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::InnerShape>>,
|
1094 + | /* ServerBuilderGenerator.kt:211 */
|
778 1095 | }
|
1096 + | /* ServerBuilderGenerator.kt:215 */
|
779 1097 | impl Builder {
|
1098 + | /* ServerBuilderGenerator.kt:426 */
|
780 1099 | #[allow(missing_docs)] // documentation missing in model
|
1100 + | /* ServerBuilderGenerator.kt:428 */
|
781 1101 | pub(crate) fn set_inner(
|
782 1102 | mut self,
|
783 1103 | input: Option<
|
784 1104 | impl ::std::convert::Into<
|
785 1105 | crate::constrained::MaybeConstrained<crate::model::InnerShape>,
|
786 1106 | >,
|
787 1107 | >,
|
788 1108 | ) -> Self {
|
1109 + | /* ServerBuilderGenerator.kt:429 */
|
789 1110 | self.inner = input.map(|v| v.into());
|
790 1111 | self
|
1112 + | /* ServerBuilderGenerator.kt:428 */
|
791 1113 | }
|
792 - | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
793 - | ///
|
1114 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1115 + | /// /* ServerBuilderGenerator.kt:260 */
|
794 1116 | /// The builder fails to construct a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
795 1117 | ///
|
1118 + | /* ServerBuilderGenerator.kt:271 */
|
796 1119 | pub fn build(
|
797 1120 | self,
|
798 1121 | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
799 1122 | self.build_enforcing_all_constraints()
|
800 1123 | }
|
1124 + | /* ServerBuilderGenerator.kt:283 */
|
801 1125 | fn build_enforcing_all_constraints(
|
802 1126 | self,
|
803 1127 | ) -> Result<crate::input::RequiredInnerShapeOperationInput, ConstraintViolation> {
|
804 - | Ok(crate::input::RequiredInnerShapeOperationInput {
|
1128 + | /* ServerBuilderGenerator.kt:287 */
|
1129 + | Ok(
|
1130 + | /* ServerBuilderGenerator.kt:542 */
|
1131 + | crate::input::RequiredInnerShapeOperationInput {
|
1132 + | /* ServerBuilderGenerator.kt:546 */
|
805 1133 | inner: self
|
806 1134 | .inner
|
1135 + | /* ServerBuilderGenerator.kt:602 */
|
807 1136 | .map(|v| match v {
|
808 1137 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
809 1138 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
810 1139 | })
|
1140 + | /* ServerBuilderGenerator.kt:614 */
|
811 1141 | .map(|res| res.map_err(ConstraintViolation::Inner))
|
812 1142 | .transpose()?,
|
813 - | })
|
1143 + | /* ServerBuilderGenerator.kt:542 */
|
1144 + | }, /* ServerBuilderGenerator.kt:287 */
|
1145 + | )
|
1146 + | /* ServerBuilderGenerator.kt:283 */
|
814 1147 | }
|
1148 + | /* ServerBuilderGenerator.kt:215 */
|
815 1149 | }
|
1150 + |
|
1151 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
816 1152 | }
|
817 - | /// See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1153 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
818 1154 | pub mod required_inner_shape_operation_input {
|
819 1155 |
|
1156 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
820 1157 | impl ::std::convert::From<Builder> for crate::input::RequiredInnerShapeOperationInput {
|
821 1158 | fn from(builder: Builder) -> Self {
|
822 1159 | builder.build()
|
823 1160 | }
|
824 1161 | }
|
825 - | /// A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1162 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1163 + | /* RustType.kt:516 */
|
826 1164 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
827 1166 | pub struct Builder {
|
1167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
828 1168 | pub(crate) inner: ::std::option::Option<crate::model::InnerShape>,
|
1169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
829 1170 | }
|
1171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
830 1172 | impl Builder {
|
1173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
831 1174 | #[allow(missing_docs)] // documentation missing in model
|
1175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
832 1176 | pub fn inner(mut self, input: ::std::option::Option<crate::model::InnerShape>) -> Self {
|
833 - | self.inner = input;
|
1177 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1178 + | self.inner =
|
1179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
834 1181 | self
|
1182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
835 1183 | }
|
836 - | /// Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1184 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RequiredInnerShapeOperationInput`](crate::input::RequiredInnerShapeOperationInput).
|
1185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
837 1186 | pub fn build(self) -> crate::input::RequiredInnerShapeOperationInput {
|
838 1187 | self.build_enforcing_required_and_enum_traits()
|
839 1188 | }
|
1189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
840 1190 | fn build_enforcing_required_and_enum_traits(
|
841 1191 | self,
|
842 1192 | ) -> crate::input::RequiredInnerShapeOperationInput {
|
843 - | crate::input::RequiredInnerShapeOperationInput { inner: self.inner }
|
1193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1194 + | crate::input::RequiredInnerShapeOperationInput {
|
1195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1196 + | inner: self.inner,
|
1197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1198 + | }
|
1199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
844 1200 | }
|
1201 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
845 1202 | }
|
1203 + |
|
1204 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
846 1205 | }
|
847 - | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1206 + | /// /* ServerBuilderGenerator.kt:171 */See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
848 1207 | pub(crate) mod type_complexity_operation_input_internal {
|
849 1208 |
|
1209 + | /* ServerBuilderGenerator.kt:461 */
|
850 1210 | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
851 1211 | fn from(builder: Builder) -> Self {
|
852 1212 | builder.build()
|
853 1213 | }
|
854 1214 | }
|
855 - | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1215 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1216 + | /* RustType.kt:516 */
|
856 1217 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1218 + | /* ServerBuilderGenerator.kt:211 */
|
857 1219 | pub(crate) struct Builder {
|
1220 + | /* ServerBuilderGenerator.kt:308 */
|
858 1221 | pub(crate) list: ::std::option::Option<
|
859 1222 | ::std::vec::Vec<
|
860 1223 | ::std::vec::Vec<
|
861 1224 | ::std::vec::Vec<
|
862 1225 | ::std::collections::HashMap<
|
863 1226 | ::std::string::String,
|
864 1227 | crate::model::EmptyStructure,
|
865 1228 | >,
|
866 1229 | >,
|
867 1230 | >,
|
868 1231 | >,
|
869 1232 | >,
|
1233 + | /* ServerBuilderGenerator.kt:211 */
|
870 1234 | }
|
1235 + | /* ServerBuilderGenerator.kt:215 */
|
871 1236 | impl Builder {
|
1237 + | /* ServerBuilderGenerator.kt:426 */
|
872 1238 | #[allow(missing_docs)] // documentation missing in model
|
1239 + | /* ServerBuilderGenerator.kt:428 */
|
873 1240 | pub(crate) fn set_list(
|
874 1241 | mut self,
|
875 1242 | input: Option<
|
876 1243 | impl ::std::convert::Into<
|
877 1244 | ::std::vec::Vec<
|
878 1245 | ::std::vec::Vec<
|
879 1246 | ::std::vec::Vec<
|
880 1247 | ::std::collections::HashMap<
|
881 1248 | ::std::string::String,
|
882 1249 | crate::model::EmptyStructure,
|
883 1250 | >,
|
884 1251 | >,
|
885 1252 | >,
|
886 1253 | >,
|
887 1254 | >,
|
888 1255 | >,
|
889 1256 | ) -> Self {
|
1257 + | /* ServerBuilderGenerator.kt:429 */
|
890 1258 | self.list = input.map(|v| v.into());
|
891 1259 | self
|
1260 + | /* ServerBuilderGenerator.kt:428 */
|
892 1261 | }
|
893 - | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1262 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1263 + | /* ServerBuilderGenerator.kt:271 */
|
894 1264 | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
895 1265 | self.build_enforcing_all_constraints()
|
896 1266 | }
|
1267 + | /* ServerBuilderGenerator.kt:283 */
|
897 1268 | fn build_enforcing_all_constraints(self) -> crate::input::TypeComplexityOperationInput {
|
898 - | crate::input::TypeComplexityOperationInput { list: self.list }
|
1269 + | /* ServerBuilderGenerator.kt:542 */
|
1270 + | crate::input::TypeComplexityOperationInput {
|
1271 + | /* ServerBuilderGenerator.kt:546 */
|
1272 + | list: self.list,
|
1273 + | /* ServerBuilderGenerator.kt:542 */
|
1274 + | }
|
1275 + | /* ServerBuilderGenerator.kt:283 */
|
899 1276 | }
|
1277 + | /* ServerBuilderGenerator.kt:215 */
|
900 1278 | }
|
1279 + |
|
1280 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
901 1281 | }
|
902 - | /// See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1282 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
903 1283 | pub mod type_complexity_operation_input {
|
904 1284 |
|
1285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
905 1286 | impl ::std::convert::From<Builder> for crate::input::TypeComplexityOperationInput {
|
906 1287 | fn from(builder: Builder) -> Self {
|
907 1288 | builder.build()
|
908 1289 | }
|
909 1290 | }
|
910 - | /// A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1291 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1292 + | /* RustType.kt:516 */
|
911 1293 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
912 1295 | pub struct Builder {
|
1296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
913 1297 | pub(crate) list: ::std::option::Option<
|
914 1298 | ::std::vec::Vec<
|
915 1299 | ::std::vec::Vec<
|
916 1300 | ::std::vec::Vec<
|
917 1301 | ::std::collections::HashMap<
|
918 1302 | ::std::string::String,
|
919 1303 | crate::model::EmptyStructure,
|
920 1304 | >,
|
921 1305 | >,
|
922 1306 | >,
|
923 1307 | >,
|
924 1308 | >,
|
1309 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
925 1310 | }
|
1311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
926 1312 | impl Builder {
|
1313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
927 1314 | #[allow(missing_docs)] // documentation missing in model
|
1315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
928 1316 | pub fn list(
|
929 1317 | mut self,
|
930 1318 | input: ::std::option::Option<
|
931 1319 | ::std::vec::Vec<
|
932 1320 | ::std::vec::Vec<
|
933 1321 | ::std::vec::Vec<
|
934 1322 | ::std::collections::HashMap<
|
935 1323 | ::std::string::String,
|
936 1324 | crate::model::EmptyStructure,
|
937 1325 | >,
|
938 1326 | >,
|
939 1327 | >,
|
940 1328 | >,
|
941 1329 | >,
|
942 1330 | ) -> Self {
|
943 - | self.list = input;
|
1331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1332 + | self.list =
|
1333 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
944 1335 | self
|
1336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
945 1337 | }
|
946 - | /// Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1338 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TypeComplexityOperationInput`](crate::input::TypeComplexityOperationInput).
|
1339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
947 1340 | pub fn build(self) -> crate::input::TypeComplexityOperationInput {
|
948 1341 | self.build_enforcing_required_and_enum_traits()
|
949 1342 | }
|
1343 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
950 1344 | fn build_enforcing_required_and_enum_traits(
|
951 1345 | self,
|
952 1346 | ) -> crate::input::TypeComplexityOperationInput {
|
953 - | crate::input::TypeComplexityOperationInput { list: self.list }
|
1347 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1348 + | crate::input::TypeComplexityOperationInput {
|
1349 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1350 + | list: self.list,
|
1351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1352 + | }
|
1353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
954 1354 | }
|
1355 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
955 1356 | }
|
1357 + |
|
1358 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
956 1359 | }
|