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 | /// :param top_level rest_json.model.TopLevel:
|
4 6 | /// :rtype None:
|
7 + | /* StructureGenerator.kt:197 */
|
5 8 | #[allow(missing_docs)] // documentation missing in model
|
9 + | /* RustType.kt:516 */
|
6 10 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7 - | pub struct OperationWithNestedStructureInput {
|
11 + | pub /* StructureGenerator.kt:201 */ struct OperationWithNestedStructureInput {
|
12 + | /* RustType.kt:516 */
|
8 13 | #[pyo3(get, set)]
|
14 + | /* PythonServerStructureGenerator.kt:80 */
|
9 15 | /// :type rest_json.model.TopLevel:
|
16 + | /* StructureGenerator.kt:231 */
|
10 17 | #[allow(missing_docs)] // documentation missing in model
|
11 18 | pub top_level: crate::model::TopLevel,
|
19 + | /* StructureGenerator.kt:201 */
|
12 20 | }
|
21 + | /* StructureGenerator.kt:135 */
|
13 22 | impl OperationWithNestedStructureInput {
|
23 + | /* StructureGenerator.kt:231 */
|
14 24 | #[allow(missing_docs)] // documentation missing in model
|
25 + | /* StructureGenerator.kt:166 */
|
15 26 | pub fn top_level(&self) -> &crate::model::TopLevel {
|
27 + | /* StructureGenerator.kt:172 */
|
16 28 | &self.top_level
|
29 + | /* StructureGenerator.kt:166 */
|
17 30 | }
|
31 + | /* StructureGenerator.kt:135 */
|
18 32 | }
|
33 + | /* RustType.kt:516 */
|
19 34 | #[allow(clippy::new_without_default)]
|
35 + | /* RustType.kt:516 */
|
20 36 | #[allow(clippy::too_many_arguments)]
|
37 + | /* RustType.kt:516 */
|
21 38 | #[::pyo3::pymethods]
|
39 + | /* PythonServerStructureGenerator.kt:88 */
|
22 40 | impl OperationWithNestedStructureInput {
|
23 41 | #[new]
|
24 42 | pub fn new(top_level: crate::model::TopLevel) -> Self {
|
25 43 | Self { top_level }
|
26 44 | }
|
27 45 | fn __repr__(&self) -> String {
|
28 46 | format!("{self:?}")
|
29 47 | }
|
30 48 | fn __str__(&self) -> String {
|
31 49 | format!("{self:?}")
|
32 50 | }
|
33 51 | }
|
52 + | /* PythonServerStructureGenerator.kt:111 */
|
34 53 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithNestedStructureInput> {
|
35 54 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
36 55 | ob.extract::<OperationWithNestedStructureInput>()
|
37 56 | .map(Box::new)
|
38 57 | }
|
39 58 | }
|
40 59 |
|
41 60 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithNestedStructureInput> {
|
42 61 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
43 62 | (*self).into_py(py)
|
44 63 | }
|
45 64 | }
|
65 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
46 66 | impl crate::constrained::Constrained for crate::input::OperationWithNestedStructureInput {
|
47 67 | type Unconstrained = crate::input::operation_with_nested_structure_input_internal::Builder;
|
48 68 | }
|
69 + | /* ServerCodegenVisitor.kt:370 */
|
49 70 | impl OperationWithNestedStructureInput {
|
50 - | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
71 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
72 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
51 73 | pub fn builder() -> crate::input::operation_with_nested_structure_input::Builder {
|
74 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
52 75 | crate::input::operation_with_nested_structure_input::Builder::default()
|
76 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
53 77 | }
|
78 + | /* ServerCodegenVisitor.kt:370 */
|
54 79 | }
|
55 80 |
|
81 + | /* RustType.kt:516 */
|
56 82 | #[::pyo3::pyclass]
|
57 - | /// :param defaults typing.Optional\[rest_json.model.Defaults\]:
|
58 - | /// :param client_optional_defaults typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
83 + | /* PythonServerStructureGenerator.kt:63 */
|
59 84 | /// :param top_level_default str:
|
60 85 | /// :param other_top_level_default int:
|
86 + | /// :param defaults typing.Optional\[rest_json.model.Defaults\]:
|
87 + | /// :param client_optional_defaults typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
61 88 | /// :rtype None:
|
89 + | /* StructureGenerator.kt:197 */
|
62 90 | #[allow(missing_docs)] // documentation missing in model
|
91 + | /* RustType.kt:516 */
|
63 92 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
64 - | pub struct OperationWithDefaultsInput {
|
93 + | pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
|
94 + | /* RustType.kt:516 */
|
65 95 | #[pyo3(get, set)]
|
96 + | /* PythonServerStructureGenerator.kt:80 */
|
66 97 | /// :type typing.Optional\[rest_json.model.Defaults\]:
|
98 + | /* StructureGenerator.kt:231 */
|
67 99 | #[allow(missing_docs)] // documentation missing in model
|
68 100 | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
101 + | /* RustType.kt:516 */
|
69 102 | #[pyo3(get, set)]
|
103 + | /* PythonServerStructureGenerator.kt:80 */
|
70 104 | /// :type typing.Optional\[rest_json.model.ClientOptionalDefaults\]:
|
105 + | /* StructureGenerator.kt:231 */
|
71 106 | #[allow(missing_docs)] // documentation missing in model
|
72 107 | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
108 + | /* RustType.kt:516 */
|
73 109 | #[pyo3(get, set)]
|
110 + | /* PythonServerStructureGenerator.kt:80 */
|
74 111 | /// :type str:
|
112 + | /* StructureGenerator.kt:231 */
|
75 113 | #[allow(missing_docs)] // documentation missing in model
|
76 114 | pub top_level_default: ::std::string::String,
|
115 + | /* RustType.kt:516 */
|
77 116 | #[pyo3(get, set)]
|
117 + | /* PythonServerStructureGenerator.kt:80 */
|
78 118 | /// :type int:
|
119 + | /* StructureGenerator.kt:231 */
|
79 120 | #[allow(missing_docs)] // documentation missing in model
|
80 121 | pub other_top_level_default: i32,
|
122 + | /* StructureGenerator.kt:201 */
|
81 123 | }
|
124 + | /* StructureGenerator.kt:135 */
|
82 125 | impl OperationWithDefaultsInput {
|
126 + | /* StructureGenerator.kt:231 */
|
83 127 | #[allow(missing_docs)] // documentation missing in model
|
128 + | /* StructureGenerator.kt:166 */
|
84 129 | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
130 + | /* StructureGenerator.kt:170 */
|
85 131 | self.defaults.as_ref()
|
132 + | /* StructureGenerator.kt:166 */
|
86 133 | }
|
134 + | /* StructureGenerator.kt:231 */
|
87 135 | #[allow(missing_docs)] // documentation missing in model
|
136 + | /* StructureGenerator.kt:166 */
|
88 137 | pub fn client_optional_defaults(
|
89 138 | &self,
|
90 139 | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
140 + | /* StructureGenerator.kt:170 */
|
91 141 | self.client_optional_defaults.as_ref()
|
142 + | /* StructureGenerator.kt:166 */
|
92 143 | }
|
144 + | /* StructureGenerator.kt:231 */
|
93 145 | #[allow(missing_docs)] // documentation missing in model
|
146 + | /* StructureGenerator.kt:166 */
|
94 147 | pub fn top_level_default(&self) -> &str {
|
148 + | /* StructureGenerator.kt:171 */
|
95 149 | use std::ops::Deref;
|
96 150 | self.top_level_default.deref()
|
151 + | /* StructureGenerator.kt:166 */
|
97 152 | }
|
153 + | /* StructureGenerator.kt:231 */
|
98 154 | #[allow(missing_docs)] // documentation missing in model
|
155 + | /* StructureGenerator.kt:166 */
|
99 156 | pub fn other_top_level_default(&self) -> i32 {
|
157 + | /* StructureGenerator.kt:168 */
|
100 158 | self.other_top_level_default
|
159 + | /* StructureGenerator.kt:166 */
|
101 160 | }
|
161 + | /* StructureGenerator.kt:135 */
|
102 162 | }
|
163 + | /* RustType.kt:516 */
|
103 164 | #[allow(clippy::new_without_default)]
|
165 + | /* RustType.kt:516 */
|
104 166 | #[allow(clippy::too_many_arguments)]
|
167 + | /* RustType.kt:516 */
|
105 168 | #[::pyo3::pymethods]
|
169 + | /* PythonServerStructureGenerator.kt:88 */
|
106 170 | impl OperationWithDefaultsInput {
|
107 171 | #[new]
|
108 172 | pub fn new(
|
109 - | defaults: ::std::option::Option<crate::model::Defaults>,
|
110 - | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
111 173 | top_level_default: ::std::string::String,
|
112 174 | other_top_level_default: i32,
|
175 + | defaults: ::std::option::Option<crate::model::Defaults>,
|
176 + | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
113 177 | ) -> Self {
|
114 178 | Self {
|
115 - | defaults,
|
116 - | client_optional_defaults,
|
117 179 | top_level_default,
|
118 180 | other_top_level_default,
|
181 + | defaults,
|
182 + | client_optional_defaults,
|
119 183 | }
|
120 184 | }
|
121 185 | fn __repr__(&self) -> String {
|
122 186 | format!("{self:?}")
|
123 187 | }
|
124 188 | fn __str__(&self) -> String {
|
125 189 | format!("{self:?}")
|
126 190 | }
|
127 191 | }
|
192 + | /* PythonServerStructureGenerator.kt:111 */
|
128 193 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsInput> {
|
129 194 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
130 195 | ob.extract::<OperationWithDefaultsInput>().map(Box::new)
|
131 196 | }
|
132 197 | }
|
133 198 |
|
134 199 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithDefaultsInput> {
|
135 200 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
136 201 | (*self).into_py(py)
|
137 202 | }
|
138 203 | }
|
204 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
139 205 | impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
|
140 206 | type Unconstrained = crate::input::operation_with_defaults_input_internal::Builder;
|
141 207 | }
|
208 + | /* ServerCodegenVisitor.kt:370 */
|
142 209 | impl OperationWithDefaultsInput {
|
143 - | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
210 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
211 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
144 212 | pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
|
213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
145 214 | crate::input::operation_with_defaults_input::Builder::default()
|
215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
146 216 | }
|
217 + | /* ServerCodegenVisitor.kt:370 */
|
147 218 | }
|
148 219 |
|
220 + | /* RustType.kt:516 */
|
149 221 | #[::pyo3::pyclass]
|
222 + | /* PythonServerStructureGenerator.kt:63 */
|
150 223 | /// :param value typing.Optional\[int\]:
|
151 224 | /// :rtype None:
|
225 + | /* StructureGenerator.kt:197 */
|
152 226 | #[allow(missing_docs)] // documentation missing in model
|
227 + | /* RustType.kt:516 */
|
153 228 | #[derive(
|
154 229 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
155 230 | )]
|
156 - | pub struct ContentTypeParametersInput {
|
231 + | pub /* StructureGenerator.kt:201 */ struct ContentTypeParametersInput {
|
232 + | /* RustType.kt:516 */
|
157 233 | #[pyo3(get, set)]
|
234 + | /* PythonServerStructureGenerator.kt:80 */
|
158 235 | /// :type typing.Optional\[int\]:
|
236 + | /* StructureGenerator.kt:231 */
|
159 237 | #[allow(missing_docs)] // documentation missing in model
|
160 238 | pub value: ::std::option::Option<i32>,
|
239 + | /* StructureGenerator.kt:201 */
|
161 240 | }
|
241 + | /* StructureGenerator.kt:135 */
|
162 242 | impl ContentTypeParametersInput {
|
243 + | /* StructureGenerator.kt:231 */
|
163 244 | #[allow(missing_docs)] // documentation missing in model
|
245 + | /* StructureGenerator.kt:166 */
|
164 246 | pub fn value(&self) -> ::std::option::Option<i32> {
|
247 + | /* StructureGenerator.kt:168 */
|
165 248 | self.value
|
249 + | /* StructureGenerator.kt:166 */
|
166 250 | }
|
251 + | /* StructureGenerator.kt:135 */
|
167 252 | }
|
253 + | /* RustType.kt:516 */
|
168 254 | #[allow(clippy::new_without_default)]
|
255 + | /* RustType.kt:516 */
|
169 256 | #[allow(clippy::too_many_arguments)]
|
257 + | /* RustType.kt:516 */
|
170 258 | #[::pyo3::pymethods]
|
259 + | /* PythonServerStructureGenerator.kt:88 */
|
171 260 | impl ContentTypeParametersInput {
|
172 261 | #[new]
|
173 262 | pub fn new(value: ::std::option::Option<i32>) -> Self {
|
174 263 | Self { value }
|
175 264 | }
|
176 265 | fn __repr__(&self) -> String {
|
177 266 | format!("{self:?}")
|
178 267 | }
|
179 268 | fn __str__(&self) -> String {
|
180 269 | format!("{self:?}")
|
181 270 | }
|
182 271 | }
|
272 + | /* PythonServerStructureGenerator.kt:111 */
|
183 273 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ContentTypeParametersInput> {
|
184 274 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
185 275 | ob.extract::<ContentTypeParametersInput>().map(Box::new)
|
186 276 | }
|
187 277 | }
|
188 278 |
|
189 279 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ContentTypeParametersInput> {
|
190 280 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
191 281 | (*self).into_py(py)
|
192 282 | }
|
193 283 | }
|
284 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
194 285 | impl crate::constrained::Constrained for crate::input::ContentTypeParametersInput {
|
195 286 | type Unconstrained = crate::input::content_type_parameters_input_internal::Builder;
|
196 287 | }
|
288 + | /* ServerCodegenVisitor.kt:370 */
|
197 289 | impl ContentTypeParametersInput {
|
198 - | /// Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
290 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
199 292 | pub fn builder() -> crate::input::content_type_parameters_input::Builder {
|
293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
200 294 | crate::input::content_type_parameters_input::Builder::default()
|
295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
201 296 | }
|
297 + | /* ServerCodegenVisitor.kt:370 */
|
202 298 | }
|
203 299 |
|
300 + | /* RustType.kt:516 */
|
204 301 | #[::pyo3::pyclass]
|
302 + | /* PythonServerStructureGenerator.kt:63 */
|
205 303 | /// :param encoding typing.Optional\[str\]:
|
206 304 | /// :param data typing.Optional\[str\]:
|
207 305 | /// :rtype None:
|
306 + | /* StructureGenerator.kt:197 */
|
208 307 | #[allow(missing_docs)] // documentation missing in model
|
308 + | /* RustType.kt:516 */
|
209 309 | #[derive(
|
210 310 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
211 311 | )]
|
212 - | pub struct PutWithContentEncodingInput {
|
312 + | pub /* StructureGenerator.kt:201 */ struct PutWithContentEncodingInput {
|
313 + | /* RustType.kt:516 */
|
213 314 | #[pyo3(get, set)]
|
315 + | /* PythonServerStructureGenerator.kt:80 */
|
214 316 | /// :type typing.Optional\[str\]:
|
317 + | /* StructureGenerator.kt:231 */
|
215 318 | #[allow(missing_docs)] // documentation missing in model
|
216 319 | pub encoding: ::std::option::Option<::std::string::String>,
|
320 + | /* RustType.kt:516 */
|
217 321 | #[pyo3(get, set)]
|
322 + | /* PythonServerStructureGenerator.kt:80 */
|
218 323 | /// :type typing.Optional\[str\]:
|
324 + | /* StructureGenerator.kt:231 */
|
219 325 | #[allow(missing_docs)] // documentation missing in model
|
220 326 | pub data: ::std::option::Option<::std::string::String>,
|
327 + | /* StructureGenerator.kt:201 */
|
221 328 | }
|
329 + | /* StructureGenerator.kt:135 */
|
222 330 | impl PutWithContentEncodingInput {
|
331 + | /* StructureGenerator.kt:231 */
|
223 332 | #[allow(missing_docs)] // documentation missing in model
|
333 + | /* StructureGenerator.kt:166 */
|
224 334 | pub fn encoding(&self) -> ::std::option::Option<&str> {
|
335 + | /* StructureGenerator.kt:169 */
|
225 336 | self.encoding.as_deref()
|
337 + | /* StructureGenerator.kt:166 */
|
226 338 | }
|
339 + | /* StructureGenerator.kt:231 */
|
227 340 | #[allow(missing_docs)] // documentation missing in model
|
341 + | /* StructureGenerator.kt:166 */
|
228 342 | pub fn data(&self) -> ::std::option::Option<&str> {
|
343 + | /* StructureGenerator.kt:169 */
|
229 344 | self.data.as_deref()
|
345 + | /* StructureGenerator.kt:166 */
|
230 346 | }
|
347 + | /* StructureGenerator.kt:135 */
|
231 348 | }
|
349 + | /* RustType.kt:516 */
|
232 350 | #[allow(clippy::new_without_default)]
|
351 + | /* RustType.kt:516 */
|
233 352 | #[allow(clippy::too_many_arguments)]
|
353 + | /* RustType.kt:516 */
|
234 354 | #[::pyo3::pymethods]
|
355 + | /* PythonServerStructureGenerator.kt:88 */
|
235 356 | impl PutWithContentEncodingInput {
|
236 357 | #[new]
|
237 358 | pub fn new(
|
238 359 | encoding: ::std::option::Option<::std::string::String>,
|
239 360 | data: ::std::option::Option<::std::string::String>,
|
240 361 | ) -> Self {
|
241 362 | Self { encoding, data }
|
242 363 | }
|
243 364 | fn __repr__(&self) -> String {
|
244 365 | format!("{self:?}")
|
245 366 | }
|
246 367 | fn __str__(&self) -> String {
|
247 368 | format!("{self:?}")
|
248 369 | }
|
249 370 | }
|
371 + | /* PythonServerStructureGenerator.kt:111 */
|
250 372 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PutWithContentEncodingInput> {
|
251 373 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
252 374 | ob.extract::<PutWithContentEncodingInput>().map(Box::new)
|
253 375 | }
|
254 376 | }
|
255 377 |
|
256 378 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PutWithContentEncodingInput> {
|
257 379 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
258 380 | (*self).into_py(py)
|
259 381 | }
|
260 382 | }
|
383 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
261 384 | impl crate::constrained::Constrained for crate::input::PutWithContentEncodingInput {
|
262 385 | type Unconstrained = crate::input::put_with_content_encoding_input_internal::Builder;
|
263 386 | }
|
387 + | /* ServerCodegenVisitor.kt:370 */
|
264 388 | impl PutWithContentEncodingInput {
|
265 - | /// Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
389 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
266 391 | pub fn builder() -> crate::input::put_with_content_encoding_input::Builder {
|
392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
267 393 | crate::input::put_with_content_encoding_input::Builder::default()
|
394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
268 395 | }
|
396 + | /* ServerCodegenVisitor.kt:370 */
|
269 397 | }
|
270 398 |
|
399 + | /* RustType.kt:516 */
|
271 400 | #[::pyo3::pyclass]
|
401 + | /* PythonServerStructureGenerator.kt:63 */
|
272 402 | /// :rtype None:
|
403 + | /* StructureGenerator.kt:197 */
|
273 404 | #[allow(missing_docs)] // documentation missing in model
|
405 + | /* RustType.kt:516 */
|
274 406 | #[derive(
|
275 407 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
276 408 | )]
|
277 - | pub struct FractionalSecondsInput {}
|
409 + | pub /* StructureGenerator.kt:201 */ struct FractionalSecondsInput {/* StructureGenerator.kt:201 */}
|
410 + | /* RustType.kt:516 */
|
278 411 | #[allow(clippy::new_without_default)]
|
412 + | /* RustType.kt:516 */
|
279 413 | #[allow(clippy::too_many_arguments)]
|
414 + | /* RustType.kt:516 */
|
280 415 | #[::pyo3::pymethods]
|
416 + | /* PythonServerStructureGenerator.kt:88 */
|
281 417 | impl FractionalSecondsInput {
|
282 418 | #[new]
|
283 419 | pub fn new() -> Self {
|
284 420 | Self {}
|
285 421 | }
|
286 422 | fn __repr__(&self) -> String {
|
287 423 | format!("{self:?}")
|
288 424 | }
|
289 425 | fn __str__(&self) -> String {
|
290 426 | format!("{self:?}")
|
291 427 | }
|
292 428 | }
|
429 + | /* PythonServerStructureGenerator.kt:111 */
|
293 430 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<FractionalSecondsInput> {
|
294 431 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
295 432 | ob.extract::<FractionalSecondsInput>().map(Box::new)
|
296 433 | }
|
297 434 | }
|
298 435 |
|
299 436 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<FractionalSecondsInput> {
|
300 437 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
301 438 | (*self).into_py(py)
|
302 439 | }
|
303 440 | }
|
441 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
304 442 | impl crate::constrained::Constrained for crate::input::FractionalSecondsInput {
|
305 443 | type Unconstrained = crate::input::fractional_seconds_input_internal::Builder;
|
306 444 | }
|
445 + | /* ServerCodegenVisitor.kt:370 */
|
307 446 | impl FractionalSecondsInput {
|
308 - | /// Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
447 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
309 449 | pub fn builder() -> crate::input::fractional_seconds_input::Builder {
|
450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
310 451 | crate::input::fractional_seconds_input::Builder::default()
|
452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
311 453 | }
|
454 + | /* ServerCodegenVisitor.kt:370 */
|
312 455 | }
|
313 456 |
|
457 + | /* RustType.kt:516 */
|
314 458 | #[::pyo3::pyclass]
|
459 + | /* PythonServerStructureGenerator.kt:63 */
|
315 460 | /// :rtype None:
|
461 + | /* StructureGenerator.kt:197 */
|
316 462 | #[allow(missing_docs)] // documentation missing in model
|
463 + | /* RustType.kt:516 */
|
317 464 | #[derive(
|
318 465 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
319 466 | )]
|
320 - | pub struct DatetimeOffsetsInput {}
|
467 + | pub /* StructureGenerator.kt:201 */ struct DatetimeOffsetsInput {/* StructureGenerator.kt:201 */}
|
468 + | /* RustType.kt:516 */
|
321 469 | #[allow(clippy::new_without_default)]
|
470 + | /* RustType.kt:516 */
|
322 471 | #[allow(clippy::too_many_arguments)]
|
472 + | /* RustType.kt:516 */
|
323 473 | #[::pyo3::pymethods]
|
474 + | /* PythonServerStructureGenerator.kt:88 */
|
324 475 | impl DatetimeOffsetsInput {
|
325 476 | #[new]
|
326 477 | pub fn new() -> Self {
|
327 478 | Self {}
|
328 479 | }
|
329 480 | fn __repr__(&self) -> String {
|
330 481 | format!("{self:?}")
|
331 482 | }
|
332 483 | fn __str__(&self) -> String {
|
333 484 | format!("{self:?}")
|
334 485 | }
|
335 486 | }
|
487 + | /* PythonServerStructureGenerator.kt:111 */
|
336 488 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DatetimeOffsetsInput> {
|
337 489 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
338 490 | ob.extract::<DatetimeOffsetsInput>().map(Box::new)
|
339 491 | }
|
340 492 | }
|
341 493 |
|
342 494 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DatetimeOffsetsInput> {
|
343 495 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
344 496 | (*self).into_py(py)
|
345 497 | }
|
346 498 | }
|
499 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
347 500 | impl crate::constrained::Constrained for crate::input::DatetimeOffsetsInput {
|
348 501 | type Unconstrained = crate::input::datetime_offsets_input_internal::Builder;
|
349 502 | }
|
503 + | /* ServerCodegenVisitor.kt:370 */
|
350 504 | impl DatetimeOffsetsInput {
|
351 - | /// Creates a new builder-style object to manufacture [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
505 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
352 507 | pub fn builder() -> crate::input::datetime_offsets_input::Builder {
|
508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
353 509 | crate::input::datetime_offsets_input::Builder::default()
|
510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
354 511 | }
|
512 + | /* ServerCodegenVisitor.kt:370 */
|
355 513 | }
|
356 514 |
|
515 + | /* RustType.kt:516 */
|
357 516 | #[::pyo3::pyclass]
|
517 + | /* PythonServerStructureGenerator.kt:63 */
|
358 518 | /// :rtype None:
|
519 + | /* StructureGenerator.kt:197 */
|
359 520 | #[allow(missing_docs)] // documentation missing in model
|
521 + | /* RustType.kt:516 */
|
360 522 | #[derive(
|
361 523 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
362 524 | )]
|
363 - | pub struct TestPostNoInputNoPayloadInput {}
|
525 + | pub /* StructureGenerator.kt:201 */ struct TestPostNoInputNoPayloadInput {/* StructureGenerator.kt:201 */}
|
526 + | /* RustType.kt:516 */
|
364 527 | #[allow(clippy::new_without_default)]
|
528 + | /* RustType.kt:516 */
|
365 529 | #[allow(clippy::too_many_arguments)]
|
530 + | /* RustType.kt:516 */
|
366 531 | #[::pyo3::pymethods]
|
532 + | /* PythonServerStructureGenerator.kt:88 */
|
367 533 | impl TestPostNoInputNoPayloadInput {
|
368 534 | #[new]
|
369 535 | pub fn new() -> Self {
|
370 536 | Self {}
|
371 537 | }
|
372 538 | fn __repr__(&self) -> String {
|
373 539 | format!("{self:?}")
|
374 540 | }
|
375 541 | fn __str__(&self) -> String {
|
376 542 | format!("{self:?}")
|
377 543 | }
|
378 544 | }
|
545 + | /* PythonServerStructureGenerator.kt:111 */
|
379 546 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestPostNoInputNoPayloadInput> {
|
380 547 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
381 548 | ob.extract::<TestPostNoInputNoPayloadInput>().map(Box::new)
|
382 549 | }
|
383 550 | }
|
384 551 |
|
385 552 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestPostNoInputNoPayloadInput> {
|
386 553 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
387 554 | (*self).into_py(py)
|
388 555 | }
|
389 556 | }
|
557 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
390 558 | impl crate::constrained::Constrained for crate::input::TestPostNoInputNoPayloadInput {
|
391 559 | type Unconstrained = crate::input::test_post_no_input_no_payload_input_internal::Builder;
|
392 560 | }
|
561 + | /* ServerCodegenVisitor.kt:370 */
|
393 562 | impl TestPostNoInputNoPayloadInput {
|
394 - | /// Creates a new builder-style object to manufacture [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
563 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
395 565 | pub fn builder() -> crate::input::test_post_no_input_no_payload_input::Builder {
|
566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
396 567 | crate::input::test_post_no_input_no_payload_input::Builder::default()
|
568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
397 569 | }
|
570 + | /* ServerCodegenVisitor.kt:370 */
|
398 571 | }
|
399 572 |
|
573 + | /* RustType.kt:516 */
|
400 574 | #[::pyo3::pyclass]
|
575 + | /* PythonServerStructureGenerator.kt:63 */
|
401 576 | /// :rtype None:
|
577 + | /* StructureGenerator.kt:197 */
|
402 578 | #[allow(missing_docs)] // documentation missing in model
|
579 + | /* RustType.kt:516 */
|
403 580 | #[derive(
|
404 581 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
405 582 | )]
|
406 - | pub struct TestGetNoInputNoPayloadInput {}
|
583 + | pub /* StructureGenerator.kt:201 */ struct TestGetNoInputNoPayloadInput {/* StructureGenerator.kt:201 */}
|
584 + | /* RustType.kt:516 */
|
407 585 | #[allow(clippy::new_without_default)]
|
586 + | /* RustType.kt:516 */
|
408 587 | #[allow(clippy::too_many_arguments)]
|
588 + | /* RustType.kt:516 */
|
409 589 | #[::pyo3::pymethods]
|
590 + | /* PythonServerStructureGenerator.kt:88 */
|
410 591 | impl TestGetNoInputNoPayloadInput {
|
411 592 | #[new]
|
412 593 | pub fn new() -> Self {
|
413 594 | Self {}
|
414 595 | }
|
415 596 | fn __repr__(&self) -> String {
|
416 597 | format!("{self:?}")
|
417 598 | }
|
418 599 | fn __str__(&self) -> String {
|
419 600 | format!("{self:?}")
|
420 601 | }
|
421 602 | }
|
603 + | /* PythonServerStructureGenerator.kt:111 */
|
422 604 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestGetNoInputNoPayloadInput> {
|
423 605 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
424 606 | ob.extract::<TestGetNoInputNoPayloadInput>().map(Box::new)
|
425 607 | }
|
426 608 | }
|
427 609 |
|
428 610 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestGetNoInputNoPayloadInput> {
|
429 611 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
430 612 | (*self).into_py(py)
|
431 613 | }
|
432 614 | }
|
615 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
433 616 | impl crate::constrained::Constrained for crate::input::TestGetNoInputNoPayloadInput {
|
434 617 | type Unconstrained = crate::input::test_get_no_input_no_payload_input_internal::Builder;
|
435 618 | }
|
619 + | /* ServerCodegenVisitor.kt:370 */
|
436 620 | impl TestGetNoInputNoPayloadInput {
|
437 - | /// Creates a new builder-style object to manufacture [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
621 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
438 623 | pub fn builder() -> crate::input::test_get_no_input_no_payload_input::Builder {
|
624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
439 625 | crate::input::test_get_no_input_no_payload_input::Builder::default()
|
626 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
440 627 | }
|
628 + | /* ServerCodegenVisitor.kt:370 */
|
441 629 | }
|
442 630 |
|
631 + | /* RustType.kt:516 */
|
443 632 | #[::pyo3::pyclass]
|
633 + | /* PythonServerStructureGenerator.kt:63 */
|
444 634 | /// :param test_id typing.Optional\[str\]:
|
445 635 | /// :rtype None:
|
636 + | /* StructureGenerator.kt:197 */
|
446 637 | #[allow(missing_docs)] // documentation missing in model
|
638 + | /* RustType.kt:516 */
|
447 639 | #[derive(
|
448 640 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
449 641 | )]
|
450 - | pub struct TestPostNoPayloadInput {
|
642 + | pub /* StructureGenerator.kt:201 */ struct TestPostNoPayloadInput {
|
643 + | /* RustType.kt:516 */
|
451 644 | #[pyo3(get, set)]
|
645 + | /* PythonServerStructureGenerator.kt:80 */
|
452 646 | /// :type typing.Optional\[str\]:
|
647 + | /* StructureGenerator.kt:231 */
|
453 648 | #[allow(missing_docs)] // documentation missing in model
|
454 649 | pub test_id: ::std::option::Option<::std::string::String>,
|
650 + | /* StructureGenerator.kt:201 */
|
455 651 | }
|
652 + | /* StructureGenerator.kt:135 */
|
456 653 | impl TestPostNoPayloadInput {
|
654 + | /* StructureGenerator.kt:231 */
|
457 655 | #[allow(missing_docs)] // documentation missing in model
|
656 + | /* StructureGenerator.kt:166 */
|
458 657 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
658 + | /* StructureGenerator.kt:169 */
|
459 659 | self.test_id.as_deref()
|
660 + | /* StructureGenerator.kt:166 */
|
460 661 | }
|
662 + | /* StructureGenerator.kt:135 */
|
461 663 | }
|
664 + | /* RustType.kt:516 */
|
462 665 | #[allow(clippy::new_without_default)]
|
666 + | /* RustType.kt:516 */
|
463 667 | #[allow(clippy::too_many_arguments)]
|
668 + | /* RustType.kt:516 */
|
464 669 | #[::pyo3::pymethods]
|
670 + | /* PythonServerStructureGenerator.kt:88 */
|
465 671 | impl TestPostNoPayloadInput {
|
466 672 | #[new]
|
467 673 | pub fn new(test_id: ::std::option::Option<::std::string::String>) -> Self {
|
468 674 | Self { test_id }
|
469 675 | }
|
470 676 | fn __repr__(&self) -> String {
|
471 677 | format!("{self:?}")
|
472 678 | }
|
473 679 | fn __str__(&self) -> String {
|
474 680 | format!("{self:?}")
|
475 681 | }
|
476 682 | }
|
683 + | /* PythonServerStructureGenerator.kt:111 */
|
477 684 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestPostNoPayloadInput> {
|
478 685 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
479 686 | ob.extract::<TestPostNoPayloadInput>().map(Box::new)
|
480 687 | }
|
481 688 | }
|
482 689 |
|
483 690 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestPostNoPayloadInput> {
|
484 691 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
485 692 | (*self).into_py(py)
|
486 693 | }
|
487 694 | }
|
695 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
488 696 | impl crate::constrained::Constrained for crate::input::TestPostNoPayloadInput {
|
489 697 | type Unconstrained = crate::input::test_post_no_payload_input_internal::Builder;
|
490 698 | }
|
699 + | /* ServerCodegenVisitor.kt:370 */
|
491 700 | impl TestPostNoPayloadInput {
|
492 - | /// Creates a new builder-style object to manufacture [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
701 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
702 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
493 703 | pub fn builder() -> crate::input::test_post_no_payload_input::Builder {
|
704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
494 705 | crate::input::test_post_no_payload_input::Builder::default()
|
706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
495 707 | }
|
708 + | /* ServerCodegenVisitor.kt:370 */
|
496 709 | }
|
497 710 |
|
711 + | /* RustType.kt:516 */
|
498 712 | #[::pyo3::pyclass]
|
713 + | /* PythonServerStructureGenerator.kt:63 */
|
499 714 | /// :param test_id typing.Optional\[str\]:
|
500 715 | /// :rtype None:
|
716 + | /* StructureGenerator.kt:197 */
|
501 717 | #[allow(missing_docs)] // documentation missing in model
|
718 + | /* RustType.kt:516 */
|
502 719 | #[derive(
|
503 720 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
504 721 | )]
|
505 - | pub struct TestGetNoPayloadInput {
|
722 + | pub /* StructureGenerator.kt:201 */ struct TestGetNoPayloadInput {
|
723 + | /* RustType.kt:516 */
|
506 724 | #[pyo3(get, set)]
|
725 + | /* PythonServerStructureGenerator.kt:80 */
|
507 726 | /// :type typing.Optional\[str\]:
|
727 + | /* StructureGenerator.kt:231 */
|
508 728 | #[allow(missing_docs)] // documentation missing in model
|
509 729 | pub test_id: ::std::option::Option<::std::string::String>,
|
730 + | /* StructureGenerator.kt:201 */
|
510 731 | }
|
732 + | /* StructureGenerator.kt:135 */
|
511 733 | impl TestGetNoPayloadInput {
|
734 + | /* StructureGenerator.kt:231 */
|
512 735 | #[allow(missing_docs)] // documentation missing in model
|
736 + | /* StructureGenerator.kt:166 */
|
513 737 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
738 + | /* StructureGenerator.kt:169 */
|
514 739 | self.test_id.as_deref()
|
740 + | /* StructureGenerator.kt:166 */
|
515 741 | }
|
742 + | /* StructureGenerator.kt:135 */
|
516 743 | }
|
744 + | /* RustType.kt:516 */
|
517 745 | #[allow(clippy::new_without_default)]
|
746 + | /* RustType.kt:516 */
|
518 747 | #[allow(clippy::too_many_arguments)]
|
748 + | /* RustType.kt:516 */
|
519 749 | #[::pyo3::pymethods]
|
750 + | /* PythonServerStructureGenerator.kt:88 */
|
520 751 | impl TestGetNoPayloadInput {
|
521 752 | #[new]
|
522 753 | pub fn new(test_id: ::std::option::Option<::std::string::String>) -> Self {
|
523 754 | Self { test_id }
|
524 755 | }
|
525 756 | fn __repr__(&self) -> String {
|
526 757 | format!("{self:?}")
|
527 758 | }
|
528 759 | fn __str__(&self) -> String {
|
529 760 | format!("{self:?}")
|
530 761 | }
|
531 762 | }
|
763 + | /* PythonServerStructureGenerator.kt:111 */
|
532 764 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestGetNoPayloadInput> {
|
533 765 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
534 766 | ob.extract::<TestGetNoPayloadInput>().map(Box::new)
|
535 767 | }
|
536 768 | }
|
537 769 |
|
538 770 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestGetNoPayloadInput> {
|
539 771 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
540 772 | (*self).into_py(py)
|
541 773 | }
|
542 774 | }
|
775 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
543 776 | impl crate::constrained::Constrained for crate::input::TestGetNoPayloadInput {
|
544 777 | type Unconstrained = crate::input::test_get_no_payload_input_internal::Builder;
|
545 778 | }
|
779 + | /* ServerCodegenVisitor.kt:370 */
|
546 780 | impl TestGetNoPayloadInput {
|
547 - | /// Creates a new builder-style object to manufacture [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
781 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
548 783 | pub fn builder() -> crate::input::test_get_no_payload_input::Builder {
|
784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
549 785 | crate::input::test_get_no_payload_input::Builder::default()
|
786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
550 787 | }
|
788 + | /* ServerCodegenVisitor.kt:370 */
|
551 789 | }
|
552 790 |
|
791 + | /* RustType.kt:516 */
|
553 792 | #[::pyo3::pyclass]
|
793 + | /* PythonServerStructureGenerator.kt:63 */
|
554 794 | /// :param content_type typing.Optional\[str\]:
|
555 795 | /// :param data typing.Optional\[rest_json.types.Blob\]:
|
556 796 | /// :rtype None:
|
797 + | /* StructureGenerator.kt:197 */
|
557 798 | #[allow(missing_docs)] // documentation missing in model
|
799 + | /* RustType.kt:516 */
|
558 800 | #[derive(
|
559 801 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
560 802 | )]
|
561 - | pub struct TestPayloadBlobInput {
|
803 + | pub /* StructureGenerator.kt:201 */ struct TestPayloadBlobInput {
|
804 + | /* RustType.kt:516 */
|
562 805 | #[pyo3(get, set)]
|
806 + | /* PythonServerStructureGenerator.kt:80 */
|
563 807 | /// :type typing.Optional\[str\]:
|
808 + | /* StructureGenerator.kt:231 */
|
564 809 | #[allow(missing_docs)] // documentation missing in model
|
565 810 | pub content_type: ::std::option::Option<::std::string::String>,
|
811 + | /* RustType.kt:516 */
|
566 812 | #[pyo3(get, set)]
|
813 + | /* PythonServerStructureGenerator.kt:80 */
|
567 814 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
815 + | /* StructureGenerator.kt:231 */
|
568 816 | #[allow(missing_docs)] // documentation missing in model
|
569 817 | pub data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
818 + | /* StructureGenerator.kt:201 */
|
570 819 | }
|
820 + | /* StructureGenerator.kt:135 */
|
571 821 | impl TestPayloadBlobInput {
|
822 + | /* StructureGenerator.kt:231 */
|
572 823 | #[allow(missing_docs)] // documentation missing in model
|
824 + | /* StructureGenerator.kt:166 */
|
573 825 | pub fn content_type(&self) -> ::std::option::Option<&str> {
|
826 + | /* StructureGenerator.kt:169 */
|
574 827 | self.content_type.as_deref()
|
828 + | /* StructureGenerator.kt:166 */
|
575 829 | }
|
830 + | /* StructureGenerator.kt:231 */
|
576 831 | #[allow(missing_docs)] // documentation missing in model
|
832 + | /* StructureGenerator.kt:166 */
|
577 833 | pub fn data(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
834 + | /* StructureGenerator.kt:170 */
|
578 835 | self.data.as_ref()
|
836 + | /* StructureGenerator.kt:166 */
|
579 837 | }
|
838 + | /* StructureGenerator.kt:135 */
|
580 839 | }
|
840 + | /* RustType.kt:516 */
|
581 841 | #[allow(clippy::new_without_default)]
|
842 + | /* RustType.kt:516 */
|
582 843 | #[allow(clippy::too_many_arguments)]
|
844 + | /* RustType.kt:516 */
|
583 845 | #[::pyo3::pymethods]
|
846 + | /* PythonServerStructureGenerator.kt:88 */
|
584 847 | impl TestPayloadBlobInput {
|
585 848 | #[new]
|
586 849 | pub fn new(
|
587 850 | content_type: ::std::option::Option<::std::string::String>,
|
588 851 | data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
589 852 | ) -> Self {
|
590 853 | Self { content_type, data }
|
591 854 | }
|
592 855 | fn __repr__(&self) -> String {
|
593 856 | format!("{self:?}")
|
594 857 | }
|
595 858 | fn __str__(&self) -> String {
|
596 859 | format!("{self:?}")
|
597 860 | }
|
598 861 | }
|
862 + | /* PythonServerStructureGenerator.kt:111 */
|
599 863 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestPayloadBlobInput> {
|
600 864 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
601 865 | ob.extract::<TestPayloadBlobInput>().map(Box::new)
|
602 866 | }
|
603 867 | }
|
604 868 |
|
605 869 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestPayloadBlobInput> {
|
606 870 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
607 871 | (*self).into_py(py)
|
608 872 | }
|
609 873 | }
|
874 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
610 875 | impl crate::constrained::Constrained for crate::input::TestPayloadBlobInput {
|
611 876 | type Unconstrained = crate::input::test_payload_blob_input_internal::Builder;
|
612 877 | }
|
878 + | /* ServerCodegenVisitor.kt:370 */
|
613 879 | impl TestPayloadBlobInput {
|
614 - | /// Creates a new builder-style object to manufacture [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
880 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
615 882 | pub fn builder() -> crate::input::test_payload_blob_input::Builder {
|
883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
616 884 | crate::input::test_payload_blob_input::Builder::default()
|
885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
617 886 | }
|
887 + | /* ServerCodegenVisitor.kt:370 */
|
618 888 | }
|
619 889 |
|
890 + | /* RustType.kt:516 */
|
620 891 | #[::pyo3::pyclass]
|
892 + | /* PythonServerStructureGenerator.kt:63 */
|
621 893 | /// :param test_id typing.Optional\[str\]:
|
622 894 | /// :param payload_config typing.Optional\[rest_json.model.PayloadConfig\]:
|
623 895 | /// :rtype None:
|
896 + | /* StructureGenerator.kt:197 */
|
624 897 | #[allow(missing_docs)] // documentation missing in model
|
898 + | /* RustType.kt:516 */
|
625 899 | #[derive(
|
626 900 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
627 901 | )]
|
628 - | pub struct TestPayloadStructureInput {
|
902 + | pub /* StructureGenerator.kt:201 */ struct TestPayloadStructureInput {
|
903 + | /* RustType.kt:516 */
|
629 904 | #[pyo3(get, set)]
|
905 + | /* PythonServerStructureGenerator.kt:80 */
|
630 906 | /// :type typing.Optional\[str\]:
|
907 + | /* StructureGenerator.kt:231 */
|
631 908 | #[allow(missing_docs)] // documentation missing in model
|
632 909 | pub test_id: ::std::option::Option<::std::string::String>,
|
910 + | /* RustType.kt:516 */
|
633 911 | #[pyo3(get, set)]
|
912 + | /* PythonServerStructureGenerator.kt:80 */
|
634 913 | /// :type typing.Optional\[rest_json.model.PayloadConfig\]:
|
914 + | /* StructureGenerator.kt:231 */
|
635 915 | #[allow(missing_docs)] // documentation missing in model
|
636 916 | pub payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
917 + | /* StructureGenerator.kt:201 */
|
637 918 | }
|
919 + | /* StructureGenerator.kt:135 */
|
638 920 | impl TestPayloadStructureInput {
|
921 + | /* StructureGenerator.kt:231 */
|
639 922 | #[allow(missing_docs)] // documentation missing in model
|
923 + | /* StructureGenerator.kt:166 */
|
640 924 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
925 + | /* StructureGenerator.kt:169 */
|
641 926 | self.test_id.as_deref()
|
927 + | /* StructureGenerator.kt:166 */
|
642 928 | }
|
929 + | /* StructureGenerator.kt:231 */
|
643 930 | #[allow(missing_docs)] // documentation missing in model
|
931 + | /* StructureGenerator.kt:166 */
|
644 932 | pub fn payload_config(&self) -> ::std::option::Option<&crate::model::PayloadConfig> {
|
933 + | /* StructureGenerator.kt:170 */
|
645 934 | self.payload_config.as_ref()
|
935 + | /* StructureGenerator.kt:166 */
|
646 936 | }
|
937 + | /* StructureGenerator.kt:135 */
|
647 938 | }
|
939 + | /* RustType.kt:516 */
|
648 940 | #[allow(clippy::new_without_default)]
|
941 + | /* RustType.kt:516 */
|
649 942 | #[allow(clippy::too_many_arguments)]
|
943 + | /* RustType.kt:516 */
|
650 944 | #[::pyo3::pymethods]
|
945 + | /* PythonServerStructureGenerator.kt:88 */
|
651 946 | impl TestPayloadStructureInput {
|
652 947 | #[new]
|
653 948 | pub fn new(
|
654 949 | test_id: ::std::option::Option<::std::string::String>,
|
655 950 | payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
656 951 | ) -> Self {
|
657 952 | Self {
|
658 953 | test_id,
|
659 954 | payload_config,
|
660 955 | }
|
661 956 | }
|
662 957 | fn __repr__(&self) -> String {
|
663 958 | format!("{self:?}")
|
664 959 | }
|
665 960 | fn __str__(&self) -> String {
|
666 961 | format!("{self:?}")
|
667 962 | }
|
668 963 | }
|
964 + | /* PythonServerStructureGenerator.kt:111 */
|
669 965 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestPayloadStructureInput> {
|
670 966 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
671 967 | ob.extract::<TestPayloadStructureInput>().map(Box::new)
|
672 968 | }
|
673 969 | }
|
674 970 |
|
675 971 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestPayloadStructureInput> {
|
676 972 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
677 973 | (*self).into_py(py)
|
678 974 | }
|
679 975 | }
|
976 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
680 977 | impl crate::constrained::Constrained for crate::input::TestPayloadStructureInput {
|
681 978 | type Unconstrained = crate::input::test_payload_structure_input_internal::Builder;
|
682 979 | }
|
980 + | /* ServerCodegenVisitor.kt:370 */
|
683 981 | impl TestPayloadStructureInput {
|
684 - | /// Creates a new builder-style object to manufacture [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
982 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
685 984 | pub fn builder() -> crate::input::test_payload_structure_input::Builder {
|
985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
686 986 | crate::input::test_payload_structure_input::Builder::default()
|
987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
687 988 | }
|
989 + | /* ServerCodegenVisitor.kt:370 */
|
688 990 | }
|
689 991 |
|
992 + | /* RustType.kt:516 */
|
690 993 | #[::pyo3::pyclass]
|
994 + | /* PythonServerStructureGenerator.kt:63 */
|
691 995 | /// :param test_id typing.Optional\[str\]:
|
692 996 | /// :param test_config typing.Optional\[rest_json.model.TestConfig\]:
|
693 997 | /// :rtype None:
|
998 + | /* StructureGenerator.kt:197 */
|
694 999 | #[allow(missing_docs)] // documentation missing in model
|
1000 + | /* RustType.kt:516 */
|
695 1001 | #[derive(
|
696 1002 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
697 1003 | )]
|
698 - | pub struct TestBodyStructureInput {
|
1004 + | pub /* StructureGenerator.kt:201 */ struct TestBodyStructureInput {
|
1005 + | /* RustType.kt:516 */
|
699 1006 | #[pyo3(get, set)]
|
1007 + | /* PythonServerStructureGenerator.kt:80 */
|
700 1008 | /// :type typing.Optional\[str\]:
|
1009 + | /* StructureGenerator.kt:231 */
|
701 1010 | #[allow(missing_docs)] // documentation missing in model
|
702 1011 | pub test_id: ::std::option::Option<::std::string::String>,
|
1012 + | /* RustType.kt:516 */
|
703 1013 | #[pyo3(get, set)]
|
1014 + | /* PythonServerStructureGenerator.kt:80 */
|
704 1015 | /// :type typing.Optional\[rest_json.model.TestConfig\]:
|
1016 + | /* StructureGenerator.kt:231 */
|
705 1017 | #[allow(missing_docs)] // documentation missing in model
|
706 1018 | pub test_config: ::std::option::Option<crate::model::TestConfig>,
|
1019 + | /* StructureGenerator.kt:201 */
|
707 1020 | }
|
1021 + | /* StructureGenerator.kt:135 */
|
708 1022 | impl TestBodyStructureInput {
|
1023 + | /* StructureGenerator.kt:231 */
|
709 1024 | #[allow(missing_docs)] // documentation missing in model
|
1025 + | /* StructureGenerator.kt:166 */
|
710 1026 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
1027 + | /* StructureGenerator.kt:169 */
|
711 1028 | self.test_id.as_deref()
|
1029 + | /* StructureGenerator.kt:166 */
|
712 1030 | }
|
1031 + | /* StructureGenerator.kt:231 */
|
713 1032 | #[allow(missing_docs)] // documentation missing in model
|
1033 + | /* StructureGenerator.kt:166 */
|
714 1034 | pub fn test_config(&self) -> ::std::option::Option<&crate::model::TestConfig> {
|
1035 + | /* StructureGenerator.kt:170 */
|
715 1036 | self.test_config.as_ref()
|
1037 + | /* StructureGenerator.kt:166 */
|
716 1038 | }
|
1039 + | /* StructureGenerator.kt:135 */
|
717 1040 | }
|
1041 + | /* RustType.kt:516 */
|
718 1042 | #[allow(clippy::new_without_default)]
|
1043 + | /* RustType.kt:516 */
|
719 1044 | #[allow(clippy::too_many_arguments)]
|
1045 + | /* RustType.kt:516 */
|
720 1046 | #[::pyo3::pymethods]
|
1047 + | /* PythonServerStructureGenerator.kt:88 */
|
721 1048 | impl TestBodyStructureInput {
|
722 1049 | #[new]
|
723 1050 | pub fn new(
|
724 1051 | test_id: ::std::option::Option<::std::string::String>,
|
725 1052 | test_config: ::std::option::Option<crate::model::TestConfig>,
|
726 1053 | ) -> Self {
|
727 1054 | Self {
|
728 1055 | test_id,
|
729 1056 | test_config,
|
730 1057 | }
|
731 1058 | }
|
732 1059 | fn __repr__(&self) -> String {
|
733 1060 | format!("{self:?}")
|
734 1061 | }
|
735 1062 | fn __str__(&self) -> String {
|
736 1063 | format!("{self:?}")
|
737 1064 | }
|
738 1065 | }
|
1066 + | /* PythonServerStructureGenerator.kt:111 */
|
739 1067 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TestBodyStructureInput> {
|
740 1068 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
741 1069 | ob.extract::<TestBodyStructureInput>().map(Box::new)
|
742 1070 | }
|
743 1071 | }
|
744 1072 |
|
745 1073 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TestBodyStructureInput> {
|
746 1074 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
747 1075 | (*self).into_py(py)
|
748 1076 | }
|
749 1077 | }
|
1078 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
750 1079 | impl crate::constrained::Constrained for crate::input::TestBodyStructureInput {
|
751 1080 | type Unconstrained = crate::input::test_body_structure_input_internal::Builder;
|
752 1081 | }
|
1082 + | /* ServerCodegenVisitor.kt:370 */
|
753 1083 | impl TestBodyStructureInput {
|
754 - | /// Creates a new builder-style object to manufacture [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
1084 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
1085 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
755 1086 | pub fn builder() -> crate::input::test_body_structure_input::Builder {
|
1087 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
756 1088 | crate::input::test_body_structure_input::Builder::default()
|
1089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
757 1090 | }
|
1091 + | /* ServerCodegenVisitor.kt:370 */
|
758 1092 | }
|
759 1093 |
|
1094 + | /* RustType.kt:516 */
|
760 1095 | #[::pyo3::pyclass]
|
1096 + | /* PythonServerStructureGenerator.kt:63 */
|
761 1097 | /// :rtype None:
|
1098 + | /* StructureGenerator.kt:197 */
|
762 1099 | #[allow(missing_docs)] // documentation missing in model
|
1100 + | /* RustType.kt:516 */
|
763 1101 | #[derive(
|
764 1102 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
765 1103 | )]
|
766 - | pub struct MalformedAcceptWithGenericStringInput {}
|
1104 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithGenericStringInput {/* StructureGenerator.kt:201 */}
|
1105 + | /* RustType.kt:516 */
|
767 1106 | #[allow(clippy::new_without_default)]
|
1107 + | /* RustType.kt:516 */
|
768 1108 | #[allow(clippy::too_many_arguments)]
|
1109 + | /* RustType.kt:516 */
|
769 1110 | #[::pyo3::pymethods]
|
1111 + | /* PythonServerStructureGenerator.kt:88 */
|
770 1112 | impl MalformedAcceptWithGenericStringInput {
|
771 1113 | #[new]
|
772 1114 | pub fn new() -> Self {
|
773 1115 | Self {}
|
774 1116 | }
|
775 1117 | fn __repr__(&self) -> String {
|
776 1118 | format!("{self:?}")
|
777 1119 | }
|
778 1120 | fn __str__(&self) -> String {
|
779 1121 | format!("{self:?}")
|
780 1122 | }
|
781 1123 | }
|
1124 + | /* PythonServerStructureGenerator.kt:111 */
|
782 1125 | impl<'source> ::pyo3::FromPyObject<'source>
|
783 1126 | for std::boxed::Box<MalformedAcceptWithGenericStringInput>
|
784 1127 | {
|
785 1128 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
786 1129 | ob.extract::<MalformedAcceptWithGenericStringInput>()
|
787 1130 | .map(Box::new)
|
788 1131 | }
|
789 1132 | }
|
790 1133 |
|
791 1134 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedAcceptWithGenericStringInput> {
|
792 1135 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
793 1136 | (*self).into_py(py)
|
794 1137 | }
|
795 1138 | }
|
1139 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
796 1140 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithGenericStringInput {
|
797 1141 | type Unconstrained = crate::input::malformed_accept_with_generic_string_input_internal::Builder;
|
798 1142 | }
|
1143 + | /* ServerCodegenVisitor.kt:370 */
|
799 1144 | impl MalformedAcceptWithGenericStringInput {
|
800 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
1145 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
1146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
801 1147 | pub fn builder() -> crate::input::malformed_accept_with_generic_string_input::Builder {
|
1148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
802 1149 | crate::input::malformed_accept_with_generic_string_input::Builder::default()
|
1150 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
803 1151 | }
|
1152 + | /* ServerCodegenVisitor.kt:370 */
|
804 1153 | }
|
805 1154 |
|
1155 + | /* RustType.kt:516 */
|
806 1156 | #[::pyo3::pyclass]
|
1157 + | /* PythonServerStructureGenerator.kt:63 */
|
807 1158 | /// :rtype None:
|
1159 + | /* StructureGenerator.kt:197 */
|
808 1160 | #[allow(missing_docs)] // documentation missing in model
|
1161 + | /* RustType.kt:516 */
|
809 1162 | #[derive(
|
810 1163 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
811 1164 | )]
|
812 - | pub struct MalformedAcceptWithPayloadInput {}
|
1165 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithPayloadInput {/* StructureGenerator.kt:201 */}
|
1166 + | /* RustType.kt:516 */
|
813 1167 | #[allow(clippy::new_without_default)]
|
1168 + | /* RustType.kt:516 */
|
814 1169 | #[allow(clippy::too_many_arguments)]
|
1170 + | /* RustType.kt:516 */
|
815 1171 | #[::pyo3::pymethods]
|
1172 + | /* PythonServerStructureGenerator.kt:88 */
|
816 1173 | impl MalformedAcceptWithPayloadInput {
|
817 1174 | #[new]
|
818 1175 | pub fn new() -> Self {
|
819 1176 | Self {}
|
820 1177 | }
|
821 1178 | fn __repr__(&self) -> String {
|
822 1179 | format!("{self:?}")
|
823 1180 | }
|
824 1181 | fn __str__(&self) -> String {
|
825 1182 | format!("{self:?}")
|
826 1183 | }
|
827 1184 | }
|
1185 + | /* PythonServerStructureGenerator.kt:111 */
|
828 1186 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedAcceptWithPayloadInput> {
|
829 1187 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
830 1188 | ob.extract::<MalformedAcceptWithPayloadInput>()
|
831 1189 | .map(Box::new)
|
832 1190 | }
|
833 1191 | }
|
834 1192 |
|
835 1193 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedAcceptWithPayloadInput> {
|
836 1194 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
837 1195 | (*self).into_py(py)
|
838 1196 | }
|
839 1197 | }
|
1198 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
840 1199 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithPayloadInput {
|
841 1200 | type Unconstrained = crate::input::malformed_accept_with_payload_input_internal::Builder;
|
842 1201 | }
|
1202 + | /* ServerCodegenVisitor.kt:370 */
|
843 1203 | impl MalformedAcceptWithPayloadInput {
|
844 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
1204 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
1205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
845 1206 | pub fn builder() -> crate::input::malformed_accept_with_payload_input::Builder {
|
1207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
846 1208 | crate::input::malformed_accept_with_payload_input::Builder::default()
|
1209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
847 1210 | }
|
1211 + | /* ServerCodegenVisitor.kt:370 */
|
848 1212 | }
|
849 1213 |
|
1214 + | /* RustType.kt:516 */
|
850 1215 | #[::pyo3::pyclass]
|
1216 + | /* PythonServerStructureGenerator.kt:63 */
|
851 1217 | /// :rtype None:
|
1218 + | /* StructureGenerator.kt:197 */
|
852 1219 | #[allow(missing_docs)] // documentation missing in model
|
1220 + | /* RustType.kt:516 */
|
853 1221 | #[derive(
|
854 1222 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
855 1223 | )]
|
856 - | pub struct MalformedAcceptWithBodyInput {}
|
1224 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithBodyInput {/* StructureGenerator.kt:201 */}
|
1225 + | /* RustType.kt:516 */
|
857 1226 | #[allow(clippy::new_without_default)]
|
1227 + | /* RustType.kt:516 */
|
858 1228 | #[allow(clippy::too_many_arguments)]
|
1229 + | /* RustType.kt:516 */
|
859 1230 | #[::pyo3::pymethods]
|
1231 + | /* PythonServerStructureGenerator.kt:88 */
|
860 1232 | impl MalformedAcceptWithBodyInput {
|
861 1233 | #[new]
|
862 1234 | pub fn new() -> Self {
|
863 1235 | Self {}
|
864 1236 | }
|
865 1237 | fn __repr__(&self) -> String {
|
866 1238 | format!("{self:?}")
|
867 1239 | }
|
868 1240 | fn __str__(&self) -> String {
|
869 1241 | format!("{self:?}")
|
870 1242 | }
|
871 1243 | }
|
1244 + | /* PythonServerStructureGenerator.kt:111 */
|
872 1245 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedAcceptWithBodyInput> {
|
873 1246 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
874 1247 | ob.extract::<MalformedAcceptWithBodyInput>().map(Box::new)
|
875 1248 | }
|
876 1249 | }
|
877 1250 |
|
878 1251 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedAcceptWithBodyInput> {
|
879 1252 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
880 1253 | (*self).into_py(py)
|
881 1254 | }
|
882 1255 | }
|
1256 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
883 1257 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithBodyInput {
|
884 1258 | type Unconstrained = crate::input::malformed_accept_with_body_input_internal::Builder;
|
885 1259 | }
|
1260 + | /* ServerCodegenVisitor.kt:370 */
|
886 1261 | impl MalformedAcceptWithBodyInput {
|
887 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
1262 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
1263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
888 1264 | pub fn builder() -> crate::input::malformed_accept_with_body_input::Builder {
|
1265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
889 1266 | crate::input::malformed_accept_with_body_input::Builder::default()
|
1267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
890 1268 | }
|
1269 + | /* ServerCodegenVisitor.kt:370 */
|
891 1270 | }
|
892 1271 |
|
1272 + | /* RustType.kt:516 */
|
893 1273 | #[::pyo3::pyclass]
|
1274 + | /* PythonServerStructureGenerator.kt:63 */
|
894 1275 | /// :param payload typing.Optional\[str\]:
|
895 1276 | /// :rtype None:
|
1277 + | /* StructureGenerator.kt:197 */
|
896 1278 | #[allow(missing_docs)] // documentation missing in model
|
1279 + | /* RustType.kt:516 */
|
897 1280 | #[derive(
|
898 1281 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
899 1282 | )]
|
900 - | pub struct MalformedContentTypeWithGenericStringInput {
|
1283 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithGenericStringInput {
|
1284 + | /* RustType.kt:516 */
|
901 1285 | #[pyo3(get, set)]
|
1286 + | /* PythonServerStructureGenerator.kt:80 */
|
902 1287 | /// :type typing.Optional\[str\]:
|
1288 + | /* StructureGenerator.kt:231 */
|
903 1289 | #[allow(missing_docs)] // documentation missing in model
|
904 1290 | pub payload: ::std::option::Option<::std::string::String>,
|
1291 + | /* StructureGenerator.kt:201 */
|
905 1292 | }
|
1293 + | /* StructureGenerator.kt:135 */
|
906 1294 | impl MalformedContentTypeWithGenericStringInput {
|
1295 + | /* StructureGenerator.kt:231 */
|
907 1296 | #[allow(missing_docs)] // documentation missing in model
|
1297 + | /* StructureGenerator.kt:166 */
|
908 1298 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
1299 + | /* StructureGenerator.kt:169 */
|
909 1300 | self.payload.as_deref()
|
1301 + | /* StructureGenerator.kt:166 */
|
910 1302 | }
|
1303 + | /* StructureGenerator.kt:135 */
|
911 1304 | }
|
1305 + | /* RustType.kt:516 */
|
912 1306 | #[allow(clippy::new_without_default)]
|
1307 + | /* RustType.kt:516 */
|
913 1308 | #[allow(clippy::too_many_arguments)]
|
1309 + | /* RustType.kt:516 */
|
914 1310 | #[::pyo3::pymethods]
|
1311 + | /* PythonServerStructureGenerator.kt:88 */
|
915 1312 | impl MalformedContentTypeWithGenericStringInput {
|
916 1313 | #[new]
|
917 1314 | pub fn new(payload: ::std::option::Option<::std::string::String>) -> Self {
|
918 1315 | Self { payload }
|
919 1316 | }
|
920 1317 | fn __repr__(&self) -> String {
|
921 1318 | format!("{self:?}")
|
922 1319 | }
|
923 1320 | fn __str__(&self) -> String {
|
924 1321 | format!("{self:?}")
|
925 1322 | }
|
926 1323 | }
|
1324 + | /* PythonServerStructureGenerator.kt:111 */
|
927 1325 | impl<'source> ::pyo3::FromPyObject<'source>
|
928 1326 | for std::boxed::Box<MalformedContentTypeWithGenericStringInput>
|
929 1327 | {
|
930 1328 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
931 1329 | ob.extract::<MalformedContentTypeWithGenericStringInput>()
|
932 1330 | .map(Box::new)
|
933 1331 | }
|
934 1332 | }
|
935 1333 |
|
936 1334 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
937 1335 | for std::boxed::Box<MalformedContentTypeWithGenericStringInput>
|
938 1336 | {
|
939 1337 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
940 1338 | (*self).into_py(py)
|
941 1339 | }
|
942 1340 | }
|
1341 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
943 1342 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithGenericStringInput {
|
944 1343 | type Unconstrained =
|
945 1344 | crate::input::malformed_content_type_with_generic_string_input_internal::Builder;
|
946 1345 | }
|
1346 + | /* ServerCodegenVisitor.kt:370 */
|
947 1347 | impl MalformedContentTypeWithGenericStringInput {
|
948 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
1348 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
1349 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
949 1350 | pub fn builder() -> crate::input::malformed_content_type_with_generic_string_input::Builder {
|
1351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
950 1352 | crate::input::malformed_content_type_with_generic_string_input::Builder::default()
|
1353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
951 1354 | }
|
1355 + | /* ServerCodegenVisitor.kt:370 */
|
952 1356 | }
|
953 1357 |
|
1358 + | /* RustType.kt:516 */
|
954 1359 | #[::pyo3::pyclass]
|
1360 + | /* PythonServerStructureGenerator.kt:63 */
|
955 1361 | /// :param payload typing.Optional\[rest_json.types.Blob\]:
|
956 1362 | /// :rtype None:
|
1363 + | /* StructureGenerator.kt:197 */
|
957 1364 | #[allow(missing_docs)] // documentation missing in model
|
1365 + | /* RustType.kt:516 */
|
958 1366 | #[derive(
|
959 1367 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
960 1368 | )]
|
961 - | pub struct MalformedContentTypeWithPayloadInput {
|
1369 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithPayloadInput {
|
1370 + | /* RustType.kt:516 */
|
962 1371 | #[pyo3(get, set)]
|
1372 + | /* PythonServerStructureGenerator.kt:80 */
|
963 1373 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
1374 + | /* StructureGenerator.kt:231 */
|
964 1375 | #[allow(missing_docs)] // documentation missing in model
|
965 1376 | pub payload: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
1377 + | /* StructureGenerator.kt:201 */
|
966 1378 | }
|
1379 + | /* StructureGenerator.kt:135 */
|
967 1380 | impl MalformedContentTypeWithPayloadInput {
|
1381 + | /* StructureGenerator.kt:231 */
|
968 1382 | #[allow(missing_docs)] // documentation missing in model
|
1383 + | /* StructureGenerator.kt:166 */
|
969 1384 | pub fn payload(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
1385 + | /* StructureGenerator.kt:170 */
|
970 1386 | self.payload.as_ref()
|
1387 + | /* StructureGenerator.kt:166 */
|
971 1388 | }
|
1389 + | /* StructureGenerator.kt:135 */
|
972 1390 | }
|
1391 + | /* RustType.kt:516 */
|
973 1392 | #[allow(clippy::new_without_default)]
|
1393 + | /* RustType.kt:516 */
|
974 1394 | #[allow(clippy::too_many_arguments)]
|
1395 + | /* RustType.kt:516 */
|
975 1396 | #[::pyo3::pymethods]
|
1397 + | /* PythonServerStructureGenerator.kt:88 */
|
976 1398 | impl MalformedContentTypeWithPayloadInput {
|
977 1399 | #[new]
|
978 1400 | pub fn new(
|
979 1401 | payload: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
980 1402 | ) -> Self {
|
981 1403 | Self { payload }
|
982 1404 | }
|
983 1405 | fn __repr__(&self) -> String {
|
984 1406 | format!("{self:?}")
|
985 1407 | }
|
986 1408 | fn __str__(&self) -> String {
|
987 1409 | format!("{self:?}")
|
988 1410 | }
|
989 1411 | }
|
1412 + | /* PythonServerStructureGenerator.kt:111 */
|
990 1413 | impl<'source> ::pyo3::FromPyObject<'source>
|
991 1414 | for std::boxed::Box<MalformedContentTypeWithPayloadInput>
|
992 1415 | {
|
993 1416 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
994 1417 | ob.extract::<MalformedContentTypeWithPayloadInput>()
|
995 1418 | .map(Box::new)
|
996 1419 | }
|
997 1420 | }
|
998 1421 |
|
999 1422 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedContentTypeWithPayloadInput> {
|
1000 1423 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1001 1424 | (*self).into_py(py)
|
1002 1425 | }
|
1003 1426 | }
|
1427 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1004 1428 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithPayloadInput {
|
1005 1429 | type Unconstrained = crate::input::malformed_content_type_with_payload_input_internal::Builder;
|
1006 1430 | }
|
1431 + | /* ServerCodegenVisitor.kt:370 */
|
1007 1432 | impl MalformedContentTypeWithPayloadInput {
|
1008 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
1433 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
1434 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1009 1435 | pub fn builder() -> crate::input::malformed_content_type_with_payload_input::Builder {
|
1436 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1010 1437 | crate::input::malformed_content_type_with_payload_input::Builder::default()
|
1438 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1011 1439 | }
|
1440 + | /* ServerCodegenVisitor.kt:370 */
|
1012 1441 | }
|
1013 1442 |
|
1443 + | /* RustType.kt:516 */
|
1014 1444 | #[::pyo3::pyclass]
|
1445 + | /* PythonServerStructureGenerator.kt:63 */
|
1015 1446 | /// :param hi typing.Optional\[str\]:
|
1016 1447 | /// :rtype None:
|
1448 + | /* StructureGenerator.kt:197 */
|
1017 1449 | #[allow(missing_docs)] // documentation missing in model
|
1450 + | /* RustType.kt:516 */
|
1018 1451 | #[derive(
|
1019 1452 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1020 1453 | )]
|
1021 - | pub struct MalformedContentTypeWithBodyInput {
|
1454 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithBodyInput {
|
1455 + | /* RustType.kt:516 */
|
1022 1456 | #[pyo3(get, set)]
|
1457 + | /* PythonServerStructureGenerator.kt:80 */
|
1023 1458 | /// :type typing.Optional\[str\]:
|
1459 + | /* StructureGenerator.kt:231 */
|
1024 1460 | #[allow(missing_docs)] // documentation missing in model
|
1025 1461 | pub hi: ::std::option::Option<::std::string::String>,
|
1462 + | /* StructureGenerator.kt:201 */
|
1026 1463 | }
|
1464 + | /* StructureGenerator.kt:135 */
|
1027 1465 | impl MalformedContentTypeWithBodyInput {
|
1466 + | /* StructureGenerator.kt:231 */
|
1028 1467 | #[allow(missing_docs)] // documentation missing in model
|
1468 + | /* StructureGenerator.kt:166 */
|
1029 1469 | pub fn hi(&self) -> ::std::option::Option<&str> {
|
1470 + | /* StructureGenerator.kt:169 */
|
1030 1471 | self.hi.as_deref()
|
1472 + | /* StructureGenerator.kt:166 */
|
1031 1473 | }
|
1474 + | /* StructureGenerator.kt:135 */
|
1032 1475 | }
|
1476 + | /* RustType.kt:516 */
|
1033 1477 | #[allow(clippy::new_without_default)]
|
1478 + | /* RustType.kt:516 */
|
1034 1479 | #[allow(clippy::too_many_arguments)]
|
1480 + | /* RustType.kt:516 */
|
1035 1481 | #[::pyo3::pymethods]
|
1482 + | /* PythonServerStructureGenerator.kt:88 */
|
1036 1483 | impl MalformedContentTypeWithBodyInput {
|
1037 1484 | #[new]
|
1038 1485 | pub fn new(hi: ::std::option::Option<::std::string::String>) -> Self {
|
1039 1486 | Self { hi }
|
1040 1487 | }
|
1041 1488 | fn __repr__(&self) -> String {
|
1042 1489 | format!("{self:?}")
|
1043 1490 | }
|
1044 1491 | fn __str__(&self) -> String {
|
1045 1492 | format!("{self:?}")
|
1046 1493 | }
|
1047 1494 | }
|
1495 + | /* PythonServerStructureGenerator.kt:111 */
|
1048 1496 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedContentTypeWithBodyInput> {
|
1049 1497 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1050 1498 | ob.extract::<MalformedContentTypeWithBodyInput>()
|
1051 1499 | .map(Box::new)
|
1052 1500 | }
|
1053 1501 | }
|
1054 1502 |
|
1055 1503 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedContentTypeWithBodyInput> {
|
1056 1504 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1057 1505 | (*self).into_py(py)
|
1058 1506 | }
|
1059 1507 | }
|
1508 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1060 1509 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithBodyInput {
|
1061 1510 | type Unconstrained = crate::input::malformed_content_type_with_body_input_internal::Builder;
|
1062 1511 | }
|
1512 + | /* ServerCodegenVisitor.kt:370 */
|
1063 1513 | impl MalformedContentTypeWithBodyInput {
|
1064 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
1514 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
1515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1065 1516 | pub fn builder() -> crate::input::malformed_content_type_with_body_input::Builder {
|
1517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1066 1518 | crate::input::malformed_content_type_with_body_input::Builder::default()
|
1519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1067 1520 | }
|
1521 + | /* ServerCodegenVisitor.kt:370 */
|
1068 1522 | }
|
1069 1523 |
|
1524 + | /* RustType.kt:516 */
|
1070 1525 | #[::pyo3::pyclass]
|
1526 + | /* PythonServerStructureGenerator.kt:63 */
|
1071 1527 | /// :rtype None:
|
1528 + | /* StructureGenerator.kt:197 */
|
1072 1529 | #[allow(missing_docs)] // documentation missing in model
|
1530 + | /* RustType.kt:516 */
|
1073 1531 | #[derive(
|
1074 1532 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1075 1533 | )]
|
1076 - | pub struct MalformedContentTypeWithoutBodyInput {}
|
1534 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithoutBodyInput {/* StructureGenerator.kt:201 */}
|
1535 + | /* RustType.kt:516 */
|
1077 1536 | #[allow(clippy::new_without_default)]
|
1537 + | /* RustType.kt:516 */
|
1078 1538 | #[allow(clippy::too_many_arguments)]
|
1539 + | /* RustType.kt:516 */
|
1079 1540 | #[::pyo3::pymethods]
|
1541 + | /* PythonServerStructureGenerator.kt:88 */
|
1080 1542 | impl MalformedContentTypeWithoutBodyInput {
|
1081 1543 | #[new]
|
1082 1544 | pub fn new() -> Self {
|
1083 1545 | Self {}
|
1084 1546 | }
|
1085 1547 | fn __repr__(&self) -> String {
|
1086 1548 | format!("{self:?}")
|
1087 1549 | }
|
1088 1550 | fn __str__(&self) -> String {
|
1089 1551 | format!("{self:?}")
|
1090 1552 | }
|
1091 1553 | }
|
1554 + | /* PythonServerStructureGenerator.kt:111 */
|
1092 1555 | impl<'source> ::pyo3::FromPyObject<'source>
|
1093 1556 | for std::boxed::Box<MalformedContentTypeWithoutBodyInput>
|
1094 1557 | {
|
1095 1558 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1096 1559 | ob.extract::<MalformedContentTypeWithoutBodyInput>()
|
1097 1560 | .map(Box::new)
|
1098 1561 | }
|
1099 1562 | }
|
1100 1563 |
|
1101 1564 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedContentTypeWithoutBodyInput> {
|
1102 1565 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1103 1566 | (*self).into_py(py)
|
1104 1567 | }
|
1105 1568 | }
|
1569 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1106 1570 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithoutBodyInput {
|
1107 1571 | type Unconstrained = crate::input::malformed_content_type_without_body_input_internal::Builder;
|
1108 1572 | }
|
1573 + | /* ServerCodegenVisitor.kt:370 */
|
1109 1574 | impl MalformedContentTypeWithoutBodyInput {
|
1110 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
1575 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
1576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1111 1577 | pub fn builder() -> crate::input::malformed_content_type_without_body_input::Builder {
|
1578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1112 1579 | crate::input::malformed_content_type_without_body_input::Builder::default()
|
1580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1113 1581 | }
|
1582 + | /* ServerCodegenVisitor.kt:370 */
|
1114 1583 | }
|
1115 1584 |
|
1585 + | /* RustType.kt:516 */
|
1116 1586 | #[::pyo3::pyclass]
|
1587 + | /* PythonServerStructureGenerator.kt:63 */
|
1117 1588 | /// :param timestamp rest_json.types.DateTime:
|
1118 1589 | /// :rtype None:
|
1590 + | /* StructureGenerator.kt:197 */
|
1119 1591 | #[allow(missing_docs)] // documentation missing in model
|
1592 + | /* RustType.kt:516 */
|
1120 1593 | #[derive(
|
1121 1594 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1122 1595 | )]
|
1123 - | pub struct MalformedTimestampBodyHttpDateInput {
|
1596 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyHttpDateInput {
|
1597 + | /* RustType.kt:516 */
|
1124 1598 | #[pyo3(get, set)]
|
1599 + | /* PythonServerStructureGenerator.kt:80 */
|
1125 1600 | /// :type rest_json.types.DateTime:
|
1601 + | /* StructureGenerator.kt:231 */
|
1126 1602 | #[allow(missing_docs)] // documentation missing in model
|
1127 1603 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
1604 + | /* StructureGenerator.kt:201 */
|
1128 1605 | }
|
1606 + | /* StructureGenerator.kt:135 */
|
1129 1607 | impl MalformedTimestampBodyHttpDateInput {
|
1608 + | /* StructureGenerator.kt:231 */
|
1130 1609 | #[allow(missing_docs)] // documentation missing in model
|
1610 + | /* StructureGenerator.kt:166 */
|
1131 1611 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
1612 + | /* StructureGenerator.kt:172 */
|
1132 1613 | &self.timestamp
|
1614 + | /* StructureGenerator.kt:166 */
|
1133 1615 | }
|
1616 + | /* StructureGenerator.kt:135 */
|
1134 1617 | }
|
1618 + | /* RustType.kt:516 */
|
1135 1619 | #[allow(clippy::new_without_default)]
|
1620 + | /* RustType.kt:516 */
|
1136 1621 | #[allow(clippy::too_many_arguments)]
|
1622 + | /* RustType.kt:516 */
|
1137 1623 | #[::pyo3::pymethods]
|
1624 + | /* PythonServerStructureGenerator.kt:88 */
|
1138 1625 | impl MalformedTimestampBodyHttpDateInput {
|
1139 1626 | #[new]
|
1140 1627 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1141 1628 | Self { timestamp }
|
1142 1629 | }
|
1143 1630 | fn __repr__(&self) -> String {
|
1144 1631 | format!("{self:?}")
|
1145 1632 | }
|
1146 1633 | fn __str__(&self) -> String {
|
1147 1634 | format!("{self:?}")
|
1148 1635 | }
|
1149 1636 | }
|
1637 + | /* PythonServerStructureGenerator.kt:111 */
|
1150 1638 | impl<'source> ::pyo3::FromPyObject<'source>
|
1151 1639 | for std::boxed::Box<MalformedTimestampBodyHttpDateInput>
|
1152 1640 | {
|
1153 1641 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1154 1642 | ob.extract::<MalformedTimestampBodyHttpDateInput>()
|
1155 1643 | .map(Box::new)
|
1156 1644 | }
|
1157 1645 | }
|
1158 1646 |
|
1159 1647 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampBodyHttpDateInput> {
|
1160 1648 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1161 1649 | (*self).into_py(py)
|
1162 1650 | }
|
1163 1651 | }
|
1652 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1164 1653 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyHttpDateInput {
|
1165 1654 | type Unconstrained = crate::input::malformed_timestamp_body_http_date_input_internal::Builder;
|
1166 1655 | }
|
1656 + | /* ServerCodegenVisitor.kt:370 */
|
1167 1657 | impl MalformedTimestampBodyHttpDateInput {
|
1168 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
1658 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
1659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1169 1660 | pub fn builder() -> crate::input::malformed_timestamp_body_http_date_input::Builder {
|
1661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1170 1662 | crate::input::malformed_timestamp_body_http_date_input::Builder::default()
|
1663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1171 1664 | }
|
1665 + | /* ServerCodegenVisitor.kt:370 */
|
1172 1666 | }
|
1173 1667 |
|
1668 + | /* RustType.kt:516 */
|
1174 1669 | #[::pyo3::pyclass]
|
1670 + | /* PythonServerStructureGenerator.kt:63 */
|
1175 1671 | /// :param timestamp rest_json.types.DateTime:
|
1176 1672 | /// :rtype None:
|
1673 + | /* StructureGenerator.kt:197 */
|
1177 1674 | #[allow(missing_docs)] // documentation missing in model
|
1675 + | /* RustType.kt:516 */
|
1178 1676 | #[derive(
|
1179 1677 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1180 1678 | )]
|
1181 - | pub struct MalformedTimestampBodyDateTimeInput {
|
1679 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDateTimeInput {
|
1680 + | /* RustType.kt:516 */
|
1182 1681 | #[pyo3(get, set)]
|
1682 + | /* PythonServerStructureGenerator.kt:80 */
|
1183 1683 | /// :type rest_json.types.DateTime:
|
1684 + | /* StructureGenerator.kt:231 */
|
1184 1685 | #[allow(missing_docs)] // documentation missing in model
|
1185 1686 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
1687 + | /* StructureGenerator.kt:201 */
|
1186 1688 | }
|
1689 + | /* StructureGenerator.kt:135 */
|
1187 1690 | impl MalformedTimestampBodyDateTimeInput {
|
1691 + | /* StructureGenerator.kt:231 */
|
1188 1692 | #[allow(missing_docs)] // documentation missing in model
|
1693 + | /* StructureGenerator.kt:166 */
|
1189 1694 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
1695 + | /* StructureGenerator.kt:172 */
|
1190 1696 | &self.timestamp
|
1697 + | /* StructureGenerator.kt:166 */
|
1191 1698 | }
|
1699 + | /* StructureGenerator.kt:135 */
|
1192 1700 | }
|
1701 + | /* RustType.kt:516 */
|
1193 1702 | #[allow(clippy::new_without_default)]
|
1703 + | /* RustType.kt:516 */
|
1194 1704 | #[allow(clippy::too_many_arguments)]
|
1705 + | /* RustType.kt:516 */
|
1195 1706 | #[::pyo3::pymethods]
|
1707 + | /* PythonServerStructureGenerator.kt:88 */
|
1196 1708 | impl MalformedTimestampBodyDateTimeInput {
|
1197 1709 | #[new]
|
1198 1710 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1199 1711 | Self { timestamp }
|
1200 1712 | }
|
1201 1713 | fn __repr__(&self) -> String {
|
1202 1714 | format!("{self:?}")
|
1203 1715 | }
|
1204 1716 | fn __str__(&self) -> String {
|
1205 1717 | format!("{self:?}")
|
1206 1718 | }
|
1207 1719 | }
|
1720 + | /* PythonServerStructureGenerator.kt:111 */
|
1208 1721 | impl<'source> ::pyo3::FromPyObject<'source>
|
1209 1722 | for std::boxed::Box<MalformedTimestampBodyDateTimeInput>
|
1210 1723 | {
|
1211 1724 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1212 1725 | ob.extract::<MalformedTimestampBodyDateTimeInput>()
|
1213 1726 | .map(Box::new)
|
1214 1727 | }
|
1215 1728 | }
|
1216 1729 |
|
1217 1730 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampBodyDateTimeInput> {
|
1218 1731 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1219 1732 | (*self).into_py(py)
|
1220 1733 | }
|
1221 1734 | }
|
1735 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1222 1736 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDateTimeInput {
|
1223 1737 | type Unconstrained = crate::input::malformed_timestamp_body_date_time_input_internal::Builder;
|
1224 1738 | }
|
1739 + | /* ServerCodegenVisitor.kt:370 */
|
1225 1740 | impl MalformedTimestampBodyDateTimeInput {
|
1226 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
1741 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
1742 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1227 1743 | pub fn builder() -> crate::input::malformed_timestamp_body_date_time_input::Builder {
|
1744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1228 1745 | crate::input::malformed_timestamp_body_date_time_input::Builder::default()
|
1746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1229 1747 | }
|
1748 + | /* ServerCodegenVisitor.kt:370 */
|
1230 1749 | }
|
1231 1750 |
|
1751 + | /* RustType.kt:516 */
|
1232 1752 | #[::pyo3::pyclass]
|
1753 + | /* PythonServerStructureGenerator.kt:63 */
|
1233 1754 | /// :param timestamp rest_json.types.DateTime:
|
1234 1755 | /// :rtype None:
|
1756 + | /* StructureGenerator.kt:197 */
|
1235 1757 | #[allow(missing_docs)] // documentation missing in model
|
1758 + | /* RustType.kt:516 */
|
1236 1759 | #[derive(
|
1237 1760 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1238 1761 | )]
|
1239 - | pub struct MalformedTimestampBodyDefaultInput {
|
1762 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDefaultInput {
|
1763 + | /* RustType.kt:516 */
|
1240 1764 | #[pyo3(get, set)]
|
1765 + | /* PythonServerStructureGenerator.kt:80 */
|
1241 1766 | /// :type rest_json.types.DateTime:
|
1767 + | /* StructureGenerator.kt:231 */
|
1242 1768 | #[allow(missing_docs)] // documentation missing in model
|
1243 1769 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
1770 + | /* StructureGenerator.kt:201 */
|
1244 1771 | }
|
1772 + | /* StructureGenerator.kt:135 */
|
1245 1773 | impl MalformedTimestampBodyDefaultInput {
|
1774 + | /* StructureGenerator.kt:231 */
|
1246 1775 | #[allow(missing_docs)] // documentation missing in model
|
1776 + | /* StructureGenerator.kt:166 */
|
1247 1777 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
1778 + | /* StructureGenerator.kt:172 */
|
1248 1779 | &self.timestamp
|
1780 + | /* StructureGenerator.kt:166 */
|
1249 1781 | }
|
1782 + | /* StructureGenerator.kt:135 */
|
1250 1783 | }
|
1784 + | /* RustType.kt:516 */
|
1251 1785 | #[allow(clippy::new_without_default)]
|
1786 + | /* RustType.kt:516 */
|
1252 1787 | #[allow(clippy::too_many_arguments)]
|
1788 + | /* RustType.kt:516 */
|
1253 1789 | #[::pyo3::pymethods]
|
1790 + | /* PythonServerStructureGenerator.kt:88 */
|
1254 1791 | impl MalformedTimestampBodyDefaultInput {
|
1255 1792 | #[new]
|
1256 1793 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1257 1794 | Self { timestamp }
|
1258 1795 | }
|
1259 1796 | fn __repr__(&self) -> String {
|
1260 1797 | format!("{self:?}")
|
1261 1798 | }
|
1262 1799 | fn __str__(&self) -> String {
|
1263 1800 | format!("{self:?}")
|
1264 1801 | }
|
1265 1802 | }
|
1803 + | /* PythonServerStructureGenerator.kt:111 */
|
1266 1804 | impl<'source> ::pyo3::FromPyObject<'source>
|
1267 1805 | for std::boxed::Box<MalformedTimestampBodyDefaultInput>
|
1268 1806 | {
|
1269 1807 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1270 1808 | ob.extract::<MalformedTimestampBodyDefaultInput>()
|
1271 1809 | .map(Box::new)
|
1272 1810 | }
|
1273 1811 | }
|
1274 1812 |
|
1275 1813 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampBodyDefaultInput> {
|
1276 1814 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1277 1815 | (*self).into_py(py)
|
1278 1816 | }
|
1279 1817 | }
|
1818 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1280 1819 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDefaultInput {
|
1281 1820 | type Unconstrained = crate::input::malformed_timestamp_body_default_input_internal::Builder;
|
1282 1821 | }
|
1822 + | /* ServerCodegenVisitor.kt:370 */
|
1283 1823 | impl MalformedTimestampBodyDefaultInput {
|
1284 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
1824 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
1825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1285 1826 | pub fn builder() -> crate::input::malformed_timestamp_body_default_input::Builder {
|
1827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1286 1828 | crate::input::malformed_timestamp_body_default_input::Builder::default()
|
1829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1287 1830 | }
|
1831 + | /* ServerCodegenVisitor.kt:370 */
|
1288 1832 | }
|
1289 1833 |
|
1834 + | /* RustType.kt:516 */
|
1290 1835 | #[::pyo3::pyclass]
|
1836 + | /* PythonServerStructureGenerator.kt:63 */
|
1291 1837 | /// :param timestamp rest_json.types.DateTime:
|
1292 1838 | /// :rtype None:
|
1839 + | /* StructureGenerator.kt:197 */
|
1293 1840 | #[allow(missing_docs)] // documentation missing in model
|
1841 + | /* RustType.kt:516 */
|
1294 1842 | #[derive(
|
1295 1843 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1296 1844 | )]
|
1297 - | pub struct MalformedTimestampHeaderEpochInput {
|
1845 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderEpochInput {
|
1846 + | /* RustType.kt:516 */
|
1298 1847 | #[pyo3(get, set)]
|
1848 + | /* PythonServerStructureGenerator.kt:80 */
|
1299 1849 | /// :type rest_json.types.DateTime:
|
1850 + | /* StructureGenerator.kt:231 */
|
1300 1851 | #[allow(missing_docs)] // documentation missing in model
|
1301 1852 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
1853 + | /* StructureGenerator.kt:201 */
|
1302 1854 | }
|
1855 + | /* StructureGenerator.kt:135 */
|
1303 1856 | impl MalformedTimestampHeaderEpochInput {
|
1857 + | /* StructureGenerator.kt:231 */
|
1304 1858 | #[allow(missing_docs)] // documentation missing in model
|
1859 + | /* StructureGenerator.kt:166 */
|
1305 1860 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
1861 + | /* StructureGenerator.kt:172 */
|
1306 1862 | &self.timestamp
|
1863 + | /* StructureGenerator.kt:166 */
|
1307 1864 | }
|
1865 + | /* StructureGenerator.kt:135 */
|
1308 1866 | }
|
1867 + | /* RustType.kt:516 */
|
1309 1868 | #[allow(clippy::new_without_default)]
|
1869 + | /* RustType.kt:516 */
|
1310 1870 | #[allow(clippy::too_many_arguments)]
|
1871 + | /* RustType.kt:516 */
|
1311 1872 | #[::pyo3::pymethods]
|
1873 + | /* PythonServerStructureGenerator.kt:88 */
|
1312 1874 | impl MalformedTimestampHeaderEpochInput {
|
1313 1875 | #[new]
|
1314 1876 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1315 1877 | Self { timestamp }
|
1316 1878 | }
|
1317 1879 | fn __repr__(&self) -> String {
|
1318 1880 | format!("{self:?}")
|
1319 1881 | }
|
1320 1882 | fn __str__(&self) -> String {
|
1321 1883 | format!("{self:?}")
|
1322 1884 | }
|
1323 1885 | }
|
1886 + | /* PythonServerStructureGenerator.kt:111 */
|
1324 1887 | impl<'source> ::pyo3::FromPyObject<'source>
|
1325 1888 | for std::boxed::Box<MalformedTimestampHeaderEpochInput>
|
1326 1889 | {
|
1327 1890 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1328 1891 | ob.extract::<MalformedTimestampHeaderEpochInput>()
|
1329 1892 | .map(Box::new)
|
1330 1893 | }
|
1331 1894 | }
|
1332 1895 |
|
1333 1896 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampHeaderEpochInput> {
|
1334 1897 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1335 1898 | (*self).into_py(py)
|
1336 1899 | }
|
1337 1900 | }
|
1901 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1338 1902 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderEpochInput {
|
1339 1903 | type Unconstrained = crate::input::malformed_timestamp_header_epoch_input_internal::Builder;
|
1340 1904 | }
|
1905 + | /* ServerCodegenVisitor.kt:370 */
|
1341 1906 | impl MalformedTimestampHeaderEpochInput {
|
1342 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
1907 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
1908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1343 1909 | pub fn builder() -> crate::input::malformed_timestamp_header_epoch_input::Builder {
|
1910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1344 1911 | crate::input::malformed_timestamp_header_epoch_input::Builder::default()
|
1912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1345 1913 | }
|
1914 + | /* ServerCodegenVisitor.kt:370 */
|
1346 1915 | }
|
1347 1916 |
|
1917 + | /* RustType.kt:516 */
|
1348 1918 | #[::pyo3::pyclass]
|
1919 + | /* PythonServerStructureGenerator.kt:63 */
|
1349 1920 | /// :param timestamp rest_json.types.DateTime:
|
1350 1921 | /// :rtype None:
|
1922 + | /* StructureGenerator.kt:197 */
|
1351 1923 | #[allow(missing_docs)] // documentation missing in model
|
1924 + | /* RustType.kt:516 */
|
1352 1925 | #[derive(
|
1353 1926 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1354 1927 | )]
|
1355 - | pub struct MalformedTimestampHeaderDateTimeInput {
|
1928 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDateTimeInput {
|
1929 + | /* RustType.kt:516 */
|
1356 1930 | #[pyo3(get, set)]
|
1931 + | /* PythonServerStructureGenerator.kt:80 */
|
1357 1932 | /// :type rest_json.types.DateTime:
|
1933 + | /* StructureGenerator.kt:231 */
|
1358 1934 | #[allow(missing_docs)] // documentation missing in model
|
1359 1935 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
1936 + | /* StructureGenerator.kt:201 */
|
1360 1937 | }
|
1938 + | /* StructureGenerator.kt:135 */
|
1361 1939 | impl MalformedTimestampHeaderDateTimeInput {
|
1940 + | /* StructureGenerator.kt:231 */
|
1362 1941 | #[allow(missing_docs)] // documentation missing in model
|
1942 + | /* StructureGenerator.kt:166 */
|
1363 1943 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
1944 + | /* StructureGenerator.kt:172 */
|
1364 1945 | &self.timestamp
|
1946 + | /* StructureGenerator.kt:166 */
|
1365 1947 | }
|
1948 + | /* StructureGenerator.kt:135 */
|
1366 1949 | }
|
1950 + | /* RustType.kt:516 */
|
1367 1951 | #[allow(clippy::new_without_default)]
|
1952 + | /* RustType.kt:516 */
|
1368 1953 | #[allow(clippy::too_many_arguments)]
|
1954 + | /* RustType.kt:516 */
|
1369 1955 | #[::pyo3::pymethods]
|
1956 + | /* PythonServerStructureGenerator.kt:88 */
|
1370 1957 | impl MalformedTimestampHeaderDateTimeInput {
|
1371 1958 | #[new]
|
1372 1959 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1373 1960 | Self { timestamp }
|
1374 1961 | }
|
1375 1962 | fn __repr__(&self) -> String {
|
1376 1963 | format!("{self:?}")
|
1377 1964 | }
|
1378 1965 | fn __str__(&self) -> String {
|
1379 1966 | format!("{self:?}")
|
1380 1967 | }
|
1381 1968 | }
|
1969 + | /* PythonServerStructureGenerator.kt:111 */
|
1382 1970 | impl<'source> ::pyo3::FromPyObject<'source>
|
1383 1971 | for std::boxed::Box<MalformedTimestampHeaderDateTimeInput>
|
1384 1972 | {
|
1385 1973 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1386 1974 | ob.extract::<MalformedTimestampHeaderDateTimeInput>()
|
1387 1975 | .map(Box::new)
|
1388 1976 | }
|
1389 1977 | }
|
1390 1978 |
|
1391 1979 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampHeaderDateTimeInput> {
|
1392 1980 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1393 1981 | (*self).into_py(py)
|
1394 1982 | }
|
1395 1983 | }
|
1984 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1396 1985 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDateTimeInput {
|
1397 1986 | type Unconstrained = crate::input::malformed_timestamp_header_date_time_input_internal::Builder;
|
1398 1987 | }
|
1988 + | /* ServerCodegenVisitor.kt:370 */
|
1399 1989 | impl MalformedTimestampHeaderDateTimeInput {
|
1400 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
1990 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
1991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1401 1992 | pub fn builder() -> crate::input::malformed_timestamp_header_date_time_input::Builder {
|
1993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1402 1994 | crate::input::malformed_timestamp_header_date_time_input::Builder::default()
|
1995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1403 1996 | }
|
1997 + | /* ServerCodegenVisitor.kt:370 */
|
1404 1998 | }
|
1405 1999 |
|
2000 + | /* RustType.kt:516 */
|
1406 2001 | #[::pyo3::pyclass]
|
2002 + | /* PythonServerStructureGenerator.kt:63 */
|
1407 2003 | /// :param timestamp rest_json.types.DateTime:
|
1408 2004 | /// :rtype None:
|
2005 + | /* StructureGenerator.kt:197 */
|
1409 2006 | #[allow(missing_docs)] // documentation missing in model
|
2007 + | /* RustType.kt:516 */
|
1410 2008 | #[derive(
|
1411 2009 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1412 2010 | )]
|
1413 - | pub struct MalformedTimestampHeaderDefaultInput {
|
2011 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDefaultInput {
|
2012 + | /* RustType.kt:516 */
|
1414 2013 | #[pyo3(get, set)]
|
2014 + | /* PythonServerStructureGenerator.kt:80 */
|
1415 2015 | /// :type rest_json.types.DateTime:
|
2016 + | /* StructureGenerator.kt:231 */
|
1416 2017 | #[allow(missing_docs)] // documentation missing in model
|
1417 2018 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2019 + | /* StructureGenerator.kt:201 */
|
1418 2020 | }
|
2021 + | /* StructureGenerator.kt:135 */
|
1419 2022 | impl MalformedTimestampHeaderDefaultInput {
|
2023 + | /* StructureGenerator.kt:231 */
|
1420 2024 | #[allow(missing_docs)] // documentation missing in model
|
2025 + | /* StructureGenerator.kt:166 */
|
1421 2026 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2027 + | /* StructureGenerator.kt:172 */
|
1422 2028 | &self.timestamp
|
2029 + | /* StructureGenerator.kt:166 */
|
1423 2030 | }
|
2031 + | /* StructureGenerator.kt:135 */
|
1424 2032 | }
|
2033 + | /* RustType.kt:516 */
|
1425 2034 | #[allow(clippy::new_without_default)]
|
2035 + | /* RustType.kt:516 */
|
1426 2036 | #[allow(clippy::too_many_arguments)]
|
2037 + | /* RustType.kt:516 */
|
1427 2038 | #[::pyo3::pymethods]
|
2039 + | /* PythonServerStructureGenerator.kt:88 */
|
1428 2040 | impl MalformedTimestampHeaderDefaultInput {
|
1429 2041 | #[new]
|
1430 2042 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1431 2043 | Self { timestamp }
|
1432 2044 | }
|
1433 2045 | fn __repr__(&self) -> String {
|
1434 2046 | format!("{self:?}")
|
1435 2047 | }
|
1436 2048 | fn __str__(&self) -> String {
|
1437 2049 | format!("{self:?}")
|
1438 2050 | }
|
1439 2051 | }
|
2052 + | /* PythonServerStructureGenerator.kt:111 */
|
1440 2053 | impl<'source> ::pyo3::FromPyObject<'source>
|
1441 2054 | for std::boxed::Box<MalformedTimestampHeaderDefaultInput>
|
1442 2055 | {
|
1443 2056 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1444 2057 | ob.extract::<MalformedTimestampHeaderDefaultInput>()
|
1445 2058 | .map(Box::new)
|
1446 2059 | }
|
1447 2060 | }
|
1448 2061 |
|
1449 2062 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampHeaderDefaultInput> {
|
1450 2063 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1451 2064 | (*self).into_py(py)
|
1452 2065 | }
|
1453 2066 | }
|
2067 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1454 2068 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDefaultInput {
|
1455 2069 | type Unconstrained = crate::input::malformed_timestamp_header_default_input_internal::Builder;
|
1456 2070 | }
|
2071 + | /* ServerCodegenVisitor.kt:370 */
|
1457 2072 | impl MalformedTimestampHeaderDefaultInput {
|
1458 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
2073 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
2074 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1459 2075 | pub fn builder() -> crate::input::malformed_timestamp_header_default_input::Builder {
|
2076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1460 2077 | crate::input::malformed_timestamp_header_default_input::Builder::default()
|
2078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1461 2079 | }
|
2080 + | /* ServerCodegenVisitor.kt:370 */
|
1462 2081 | }
|
1463 2082 |
|
2083 + | /* RustType.kt:516 */
|
1464 2084 | #[::pyo3::pyclass]
|
2085 + | /* PythonServerStructureGenerator.kt:63 */
|
1465 2086 | /// :param timestamp rest_json.types.DateTime:
|
1466 2087 | /// :rtype None:
|
2088 + | /* StructureGenerator.kt:197 */
|
1467 2089 | #[allow(missing_docs)] // documentation missing in model
|
2090 + | /* RustType.kt:516 */
|
1468 2091 | #[derive(
|
1469 2092 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1470 2093 | )]
|
1471 - | pub struct MalformedTimestampQueryEpochInput {
|
2094 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryEpochInput {
|
2095 + | /* RustType.kt:516 */
|
1472 2096 | #[pyo3(get, set)]
|
2097 + | /* PythonServerStructureGenerator.kt:80 */
|
1473 2098 | /// :type rest_json.types.DateTime:
|
2099 + | /* StructureGenerator.kt:231 */
|
1474 2100 | #[allow(missing_docs)] // documentation missing in model
|
1475 2101 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2102 + | /* StructureGenerator.kt:201 */
|
1476 2103 | }
|
2104 + | /* StructureGenerator.kt:135 */
|
1477 2105 | impl MalformedTimestampQueryEpochInput {
|
2106 + | /* StructureGenerator.kt:231 */
|
1478 2107 | #[allow(missing_docs)] // documentation missing in model
|
2108 + | /* StructureGenerator.kt:166 */
|
1479 2109 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2110 + | /* StructureGenerator.kt:172 */
|
1480 2111 | &self.timestamp
|
2112 + | /* StructureGenerator.kt:166 */
|
1481 2113 | }
|
2114 + | /* StructureGenerator.kt:135 */
|
1482 2115 | }
|
2116 + | /* RustType.kt:516 */
|
1483 2117 | #[allow(clippy::new_without_default)]
|
2118 + | /* RustType.kt:516 */
|
1484 2119 | #[allow(clippy::too_many_arguments)]
|
2120 + | /* RustType.kt:516 */
|
1485 2121 | #[::pyo3::pymethods]
|
2122 + | /* PythonServerStructureGenerator.kt:88 */
|
1486 2123 | impl MalformedTimestampQueryEpochInput {
|
1487 2124 | #[new]
|
1488 2125 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1489 2126 | Self { timestamp }
|
1490 2127 | }
|
1491 2128 | fn __repr__(&self) -> String {
|
1492 2129 | format!("{self:?}")
|
1493 2130 | }
|
1494 2131 | fn __str__(&self) -> String {
|
1495 2132 | format!("{self:?}")
|
1496 2133 | }
|
1497 2134 | }
|
2135 + | /* PythonServerStructureGenerator.kt:111 */
|
1498 2136 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedTimestampQueryEpochInput> {
|
1499 2137 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1500 2138 | ob.extract::<MalformedTimestampQueryEpochInput>()
|
1501 2139 | .map(Box::new)
|
1502 2140 | }
|
1503 2141 | }
|
1504 2142 |
|
1505 2143 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampQueryEpochInput> {
|
1506 2144 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1507 2145 | (*self).into_py(py)
|
1508 2146 | }
|
1509 2147 | }
|
2148 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1510 2149 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryEpochInput {
|
1511 2150 | type Unconstrained = crate::input::malformed_timestamp_query_epoch_input_internal::Builder;
|
1512 2151 | }
|
2152 + | /* ServerCodegenVisitor.kt:370 */
|
1513 2153 | impl MalformedTimestampQueryEpochInput {
|
1514 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
2154 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
2155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1515 2156 | pub fn builder() -> crate::input::malformed_timestamp_query_epoch_input::Builder {
|
2157 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1516 2158 | crate::input::malformed_timestamp_query_epoch_input::Builder::default()
|
2159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1517 2160 | }
|
2161 + | /* ServerCodegenVisitor.kt:370 */
|
1518 2162 | }
|
1519 2163 |
|
2164 + | /* RustType.kt:516 */
|
1520 2165 | #[::pyo3::pyclass]
|
2166 + | /* PythonServerStructureGenerator.kt:63 */
|
1521 2167 | /// :param timestamp rest_json.types.DateTime:
|
1522 2168 | /// :rtype None:
|
2169 + | /* StructureGenerator.kt:197 */
|
1523 2170 | #[allow(missing_docs)] // documentation missing in model
|
2171 + | /* RustType.kt:516 */
|
1524 2172 | #[derive(
|
1525 2173 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1526 2174 | )]
|
1527 - | pub struct MalformedTimestampQueryHttpDateInput {
|
2175 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryHttpDateInput {
|
2176 + | /* RustType.kt:516 */
|
1528 2177 | #[pyo3(get, set)]
|
2178 + | /* PythonServerStructureGenerator.kt:80 */
|
1529 2179 | /// :type rest_json.types.DateTime:
|
2180 + | /* StructureGenerator.kt:231 */
|
1530 2181 | #[allow(missing_docs)] // documentation missing in model
|
1531 2182 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2183 + | /* StructureGenerator.kt:201 */
|
1532 2184 | }
|
2185 + | /* StructureGenerator.kt:135 */
|
1533 2186 | impl MalformedTimestampQueryHttpDateInput {
|
2187 + | /* StructureGenerator.kt:231 */
|
1534 2188 | #[allow(missing_docs)] // documentation missing in model
|
2189 + | /* StructureGenerator.kt:166 */
|
1535 2190 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2191 + | /* StructureGenerator.kt:172 */
|
1536 2192 | &self.timestamp
|
2193 + | /* StructureGenerator.kt:166 */
|
1537 2194 | }
|
2195 + | /* StructureGenerator.kt:135 */
|
1538 2196 | }
|
2197 + | /* RustType.kt:516 */
|
1539 2198 | #[allow(clippy::new_without_default)]
|
2199 + | /* RustType.kt:516 */
|
1540 2200 | #[allow(clippy::too_many_arguments)]
|
2201 + | /* RustType.kt:516 */
|
1541 2202 | #[::pyo3::pymethods]
|
2203 + | /* PythonServerStructureGenerator.kt:88 */
|
1542 2204 | impl MalformedTimestampQueryHttpDateInput {
|
1543 2205 | #[new]
|
1544 2206 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1545 2207 | Self { timestamp }
|
1546 2208 | }
|
1547 2209 | fn __repr__(&self) -> String {
|
1548 2210 | format!("{self:?}")
|
1549 2211 | }
|
1550 2212 | fn __str__(&self) -> String {
|
1551 2213 | format!("{self:?}")
|
1552 2214 | }
|
1553 2215 | }
|
2216 + | /* PythonServerStructureGenerator.kt:111 */
|
1554 2217 | impl<'source> ::pyo3::FromPyObject<'source>
|
1555 2218 | for std::boxed::Box<MalformedTimestampQueryHttpDateInput>
|
1556 2219 | {
|
1557 2220 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1558 2221 | ob.extract::<MalformedTimestampQueryHttpDateInput>()
|
1559 2222 | .map(Box::new)
|
1560 2223 | }
|
1561 2224 | }
|
1562 2225 |
|
1563 2226 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampQueryHttpDateInput> {
|
1564 2227 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1565 2228 | (*self).into_py(py)
|
1566 2229 | }
|
1567 2230 | }
|
2231 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1568 2232 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryHttpDateInput {
|
1569 2233 | type Unconstrained = crate::input::malformed_timestamp_query_http_date_input_internal::Builder;
|
1570 2234 | }
|
2235 + | /* ServerCodegenVisitor.kt:370 */
|
1571 2236 | impl MalformedTimestampQueryHttpDateInput {
|
1572 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
2237 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
2238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1573 2239 | pub fn builder() -> crate::input::malformed_timestamp_query_http_date_input::Builder {
|
2240 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1574 2241 | crate::input::malformed_timestamp_query_http_date_input::Builder::default()
|
2242 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1575 2243 | }
|
2244 + | /* ServerCodegenVisitor.kt:370 */
|
1576 2245 | }
|
1577 2246 |
|
2247 + | /* RustType.kt:516 */
|
1578 2248 | #[::pyo3::pyclass]
|
2249 + | /* PythonServerStructureGenerator.kt:63 */
|
1579 2250 | /// :param timestamp rest_json.types.DateTime:
|
1580 2251 | /// :rtype None:
|
2252 + | /* StructureGenerator.kt:197 */
|
1581 2253 | #[allow(missing_docs)] // documentation missing in model
|
2254 + | /* RustType.kt:516 */
|
1582 2255 | #[derive(
|
1583 2256 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1584 2257 | )]
|
1585 - | pub struct MalformedTimestampQueryDefaultInput {
|
2258 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryDefaultInput {
|
2259 + | /* RustType.kt:516 */
|
1586 2260 | #[pyo3(get, set)]
|
2261 + | /* PythonServerStructureGenerator.kt:80 */
|
1587 2262 | /// :type rest_json.types.DateTime:
|
2263 + | /* StructureGenerator.kt:231 */
|
1588 2264 | #[allow(missing_docs)] // documentation missing in model
|
1589 2265 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2266 + | /* StructureGenerator.kt:201 */
|
1590 2267 | }
|
2268 + | /* StructureGenerator.kt:135 */
|
1591 2269 | impl MalformedTimestampQueryDefaultInput {
|
2270 + | /* StructureGenerator.kt:231 */
|
1592 2271 | #[allow(missing_docs)] // documentation missing in model
|
2272 + | /* StructureGenerator.kt:166 */
|
1593 2273 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2274 + | /* StructureGenerator.kt:172 */
|
1594 2275 | &self.timestamp
|
2276 + | /* StructureGenerator.kt:166 */
|
1595 2277 | }
|
2278 + | /* StructureGenerator.kt:135 */
|
1596 2279 | }
|
2280 + | /* RustType.kt:516 */
|
1597 2281 | #[allow(clippy::new_without_default)]
|
2282 + | /* RustType.kt:516 */
|
1598 2283 | #[allow(clippy::too_many_arguments)]
|
2284 + | /* RustType.kt:516 */
|
1599 2285 | #[::pyo3::pymethods]
|
2286 + | /* PythonServerStructureGenerator.kt:88 */
|
1600 2287 | impl MalformedTimestampQueryDefaultInput {
|
1601 2288 | #[new]
|
1602 2289 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1603 2290 | Self { timestamp }
|
1604 2291 | }
|
1605 2292 | fn __repr__(&self) -> String {
|
1606 2293 | format!("{self:?}")
|
1607 2294 | }
|
1608 2295 | fn __str__(&self) -> String {
|
1609 2296 | format!("{self:?}")
|
1610 2297 | }
|
1611 2298 | }
|
2299 + | /* PythonServerStructureGenerator.kt:111 */
|
1612 2300 | impl<'source> ::pyo3::FromPyObject<'source>
|
1613 2301 | for std::boxed::Box<MalformedTimestampQueryDefaultInput>
|
1614 2302 | {
|
1615 2303 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1616 2304 | ob.extract::<MalformedTimestampQueryDefaultInput>()
|
1617 2305 | .map(Box::new)
|
1618 2306 | }
|
1619 2307 | }
|
1620 2308 |
|
1621 2309 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampQueryDefaultInput> {
|
1622 2310 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1623 2311 | (*self).into_py(py)
|
1624 2312 | }
|
1625 2313 | }
|
2314 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1626 2315 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryDefaultInput {
|
1627 2316 | type Unconstrained = crate::input::malformed_timestamp_query_default_input_internal::Builder;
|
1628 2317 | }
|
2318 + | /* ServerCodegenVisitor.kt:370 */
|
1629 2319 | impl MalformedTimestampQueryDefaultInput {
|
1630 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
2320 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
2321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1631 2322 | pub fn builder() -> crate::input::malformed_timestamp_query_default_input::Builder {
|
2323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1632 2324 | crate::input::malformed_timestamp_query_default_input::Builder::default()
|
2325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1633 2326 | }
|
2327 + | /* ServerCodegenVisitor.kt:370 */
|
1634 2328 | }
|
1635 2329 |
|
2330 + | /* RustType.kt:516 */
|
1636 2331 | #[::pyo3::pyclass]
|
2332 + | /* PythonServerStructureGenerator.kt:63 */
|
1637 2333 | /// :param timestamp rest_json.types.DateTime:
|
1638 2334 | /// :rtype None:
|
2335 + | /* StructureGenerator.kt:197 */
|
1639 2336 | #[allow(missing_docs)] // documentation missing in model
|
2337 + | /* RustType.kt:516 */
|
1640 2338 | #[derive(
|
1641 2339 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1642 2340 | )]
|
1643 - | pub struct MalformedTimestampPathEpochInput {
|
2341 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathEpochInput {
|
2342 + | /* RustType.kt:516 */
|
1644 2343 | #[pyo3(get, set)]
|
2344 + | /* PythonServerStructureGenerator.kt:80 */
|
1645 2345 | /// :type rest_json.types.DateTime:
|
2346 + | /* StructureGenerator.kt:231 */
|
1646 2347 | #[allow(missing_docs)] // documentation missing in model
|
1647 2348 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2349 + | /* StructureGenerator.kt:201 */
|
1648 2350 | }
|
2351 + | /* StructureGenerator.kt:135 */
|
1649 2352 | impl MalformedTimestampPathEpochInput {
|
2353 + | /* StructureGenerator.kt:231 */
|
1650 2354 | #[allow(missing_docs)] // documentation missing in model
|
2355 + | /* StructureGenerator.kt:166 */
|
1651 2356 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2357 + | /* StructureGenerator.kt:172 */
|
1652 2358 | &self.timestamp
|
2359 + | /* StructureGenerator.kt:166 */
|
1653 2360 | }
|
2361 + | /* StructureGenerator.kt:135 */
|
1654 2362 | }
|
2363 + | /* RustType.kt:516 */
|
1655 2364 | #[allow(clippy::new_without_default)]
|
2365 + | /* RustType.kt:516 */
|
1656 2366 | #[allow(clippy::too_many_arguments)]
|
2367 + | /* RustType.kt:516 */
|
1657 2368 | #[::pyo3::pymethods]
|
2369 + | /* PythonServerStructureGenerator.kt:88 */
|
1658 2370 | impl MalformedTimestampPathEpochInput {
|
1659 2371 | #[new]
|
1660 2372 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1661 2373 | Self { timestamp }
|
1662 2374 | }
|
1663 2375 | fn __repr__(&self) -> String {
|
1664 2376 | format!("{self:?}")
|
1665 2377 | }
|
1666 2378 | fn __str__(&self) -> String {
|
1667 2379 | format!("{self:?}")
|
1668 2380 | }
|
1669 2381 | }
|
2382 + | /* PythonServerStructureGenerator.kt:111 */
|
1670 2383 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedTimestampPathEpochInput> {
|
1671 2384 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1672 2385 | ob.extract::<MalformedTimestampPathEpochInput>()
|
1673 2386 | .map(Box::new)
|
1674 2387 | }
|
1675 2388 | }
|
1676 2389 |
|
1677 2390 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampPathEpochInput> {
|
1678 2391 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1679 2392 | (*self).into_py(py)
|
1680 2393 | }
|
1681 2394 | }
|
2395 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1682 2396 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathEpochInput {
|
1683 2397 | type Unconstrained = crate::input::malformed_timestamp_path_epoch_input_internal::Builder;
|
1684 2398 | }
|
2399 + | /* ServerCodegenVisitor.kt:370 */
|
1685 2400 | impl MalformedTimestampPathEpochInput {
|
1686 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
2401 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
2402 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1687 2403 | pub fn builder() -> crate::input::malformed_timestamp_path_epoch_input::Builder {
|
2404 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1688 2405 | crate::input::malformed_timestamp_path_epoch_input::Builder::default()
|
2406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1689 2407 | }
|
2408 + | /* ServerCodegenVisitor.kt:370 */
|
1690 2409 | }
|
1691 2410 |
|
2411 + | /* RustType.kt:516 */
|
1692 2412 | #[::pyo3::pyclass]
|
2413 + | /* PythonServerStructureGenerator.kt:63 */
|
1693 2414 | /// :param timestamp rest_json.types.DateTime:
|
1694 2415 | /// :rtype None:
|
2416 + | /* StructureGenerator.kt:197 */
|
1695 2417 | #[allow(missing_docs)] // documentation missing in model
|
2418 + | /* RustType.kt:516 */
|
1696 2419 | #[derive(
|
1697 2420 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1698 2421 | )]
|
1699 - | pub struct MalformedTimestampPathHttpDateInput {
|
2422 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathHttpDateInput {
|
2423 + | /* RustType.kt:516 */
|
1700 2424 | #[pyo3(get, set)]
|
2425 + | /* PythonServerStructureGenerator.kt:80 */
|
1701 2426 | /// :type rest_json.types.DateTime:
|
2427 + | /* StructureGenerator.kt:231 */
|
1702 2428 | #[allow(missing_docs)] // documentation missing in model
|
1703 2429 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2430 + | /* StructureGenerator.kt:201 */
|
1704 2431 | }
|
2432 + | /* StructureGenerator.kt:135 */
|
1705 2433 | impl MalformedTimestampPathHttpDateInput {
|
2434 + | /* StructureGenerator.kt:231 */
|
1706 2435 | #[allow(missing_docs)] // documentation missing in model
|
2436 + | /* StructureGenerator.kt:166 */
|
1707 2437 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2438 + | /* StructureGenerator.kt:172 */
|
1708 2439 | &self.timestamp
|
2440 + | /* StructureGenerator.kt:166 */
|
1709 2441 | }
|
2442 + | /* StructureGenerator.kt:135 */
|
1710 2443 | }
|
2444 + | /* RustType.kt:516 */
|
1711 2445 | #[allow(clippy::new_without_default)]
|
2446 + | /* RustType.kt:516 */
|
1712 2447 | #[allow(clippy::too_many_arguments)]
|
2448 + | /* RustType.kt:516 */
|
1713 2449 | #[::pyo3::pymethods]
|
2450 + | /* PythonServerStructureGenerator.kt:88 */
|
1714 2451 | impl MalformedTimestampPathHttpDateInput {
|
1715 2452 | #[new]
|
1716 2453 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1717 2454 | Self { timestamp }
|
1718 2455 | }
|
1719 2456 | fn __repr__(&self) -> String {
|
1720 2457 | format!("{self:?}")
|
1721 2458 | }
|
1722 2459 | fn __str__(&self) -> String {
|
1723 2460 | format!("{self:?}")
|
1724 2461 | }
|
1725 2462 | }
|
2463 + | /* PythonServerStructureGenerator.kt:111 */
|
1726 2464 | impl<'source> ::pyo3::FromPyObject<'source>
|
1727 2465 | for std::boxed::Box<MalformedTimestampPathHttpDateInput>
|
1728 2466 | {
|
1729 2467 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1730 2468 | ob.extract::<MalformedTimestampPathHttpDateInput>()
|
1731 2469 | .map(Box::new)
|
1732 2470 | }
|
1733 2471 | }
|
1734 2472 |
|
1735 2473 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampPathHttpDateInput> {
|
1736 2474 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1737 2475 | (*self).into_py(py)
|
1738 2476 | }
|
1739 2477 | }
|
2478 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1740 2479 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathHttpDateInput {
|
1741 2480 | type Unconstrained = crate::input::malformed_timestamp_path_http_date_input_internal::Builder;
|
1742 2481 | }
|
2482 + | /* ServerCodegenVisitor.kt:370 */
|
1743 2483 | impl MalformedTimestampPathHttpDateInput {
|
1744 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
2484 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
2485 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1745 2486 | pub fn builder() -> crate::input::malformed_timestamp_path_http_date_input::Builder {
|
2487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1746 2488 | crate::input::malformed_timestamp_path_http_date_input::Builder::default()
|
2489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1747 2490 | }
|
2491 + | /* ServerCodegenVisitor.kt:370 */
|
1748 2492 | }
|
1749 2493 |
|
2494 + | /* RustType.kt:516 */
|
1750 2495 | #[::pyo3::pyclass]
|
2496 + | /* PythonServerStructureGenerator.kt:63 */
|
1751 2497 | /// :param timestamp rest_json.types.DateTime:
|
1752 2498 | /// :rtype None:
|
2499 + | /* StructureGenerator.kt:197 */
|
1753 2500 | #[allow(missing_docs)] // documentation missing in model
|
2501 + | /* RustType.kt:516 */
|
1754 2502 | #[derive(
|
1755 2503 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1756 2504 | )]
|
1757 - | pub struct MalformedTimestampPathDefaultInput {
|
2505 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathDefaultInput {
|
2506 + | /* RustType.kt:516 */
|
1758 2507 | #[pyo3(get, set)]
|
2508 + | /* PythonServerStructureGenerator.kt:80 */
|
1759 2509 | /// :type rest_json.types.DateTime:
|
2510 + | /* StructureGenerator.kt:231 */
|
1760 2511 | #[allow(missing_docs)] // documentation missing in model
|
1761 2512 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
2513 + | /* StructureGenerator.kt:201 */
|
1762 2514 | }
|
2515 + | /* StructureGenerator.kt:135 */
|
1763 2516 | impl MalformedTimestampPathDefaultInput {
|
2517 + | /* StructureGenerator.kt:231 */
|
1764 2518 | #[allow(missing_docs)] // documentation missing in model
|
2519 + | /* StructureGenerator.kt:166 */
|
1765 2520 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
2521 + | /* StructureGenerator.kt:172 */
|
1766 2522 | &self.timestamp
|
2523 + | /* StructureGenerator.kt:166 */
|
1767 2524 | }
|
2525 + | /* StructureGenerator.kt:135 */
|
1768 2526 | }
|
2527 + | /* RustType.kt:516 */
|
1769 2528 | #[allow(clippy::new_without_default)]
|
2529 + | /* RustType.kt:516 */
|
1770 2530 | #[allow(clippy::too_many_arguments)]
|
2531 + | /* RustType.kt:516 */
|
1771 2532 | #[::pyo3::pymethods]
|
2533 + | /* PythonServerStructureGenerator.kt:88 */
|
1772 2534 | impl MalformedTimestampPathDefaultInput {
|
1773 2535 | #[new]
|
1774 2536 | pub fn new(timestamp: ::aws_smithy_http_server_python::types::DateTime) -> Self {
|
1775 2537 | Self { timestamp }
|
1776 2538 | }
|
1777 2539 | fn __repr__(&self) -> String {
|
1778 2540 | format!("{self:?}")
|
1779 2541 | }
|
1780 2542 | fn __str__(&self) -> String {
|
1781 2543 | format!("{self:?}")
|
1782 2544 | }
|
1783 2545 | }
|
2546 + | /* PythonServerStructureGenerator.kt:111 */
|
1784 2547 | impl<'source> ::pyo3::FromPyObject<'source>
|
1785 2548 | for std::boxed::Box<MalformedTimestampPathDefaultInput>
|
1786 2549 | {
|
1787 2550 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1788 2551 | ob.extract::<MalformedTimestampPathDefaultInput>()
|
1789 2552 | .map(Box::new)
|
1790 2553 | }
|
1791 2554 | }
|
1792 2555 |
|
1793 2556 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedTimestampPathDefaultInput> {
|
1794 2557 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1795 2558 | (*self).into_py(py)
|
1796 2559 | }
|
1797 2560 | }
|
2561 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1798 2562 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathDefaultInput {
|
1799 2563 | type Unconstrained = crate::input::malformed_timestamp_path_default_input_internal::Builder;
|
1800 2564 | }
|
2565 + | /* ServerCodegenVisitor.kt:370 */
|
1801 2566 | impl MalformedTimestampPathDefaultInput {
|
1802 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
2567 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
2568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1803 2569 | pub fn builder() -> crate::input::malformed_timestamp_path_default_input::Builder {
|
2570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1804 2571 | crate::input::malformed_timestamp_path_default_input::Builder::default()
|
2572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1805 2573 | }
|
2574 + | /* ServerCodegenVisitor.kt:370 */
|
1806 2575 | }
|
1807 2576 |
|
2577 + | /* RustType.kt:516 */
|
1808 2578 | #[::pyo3::pyclass]
|
2579 + | /* PythonServerStructureGenerator.kt:63 */
|
1809 2580 | /// :param blob typing.Optional\[str\]:
|
1810 2581 | /// :rtype None:
|
2582 + | /* StructureGenerator.kt:197 */
|
1811 2583 | #[allow(missing_docs)] // documentation missing in model
|
2584 + | /* RustType.kt:516 */
|
1812 2585 | #[derive(
|
1813 2586 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1814 2587 | )]
|
1815 - | pub struct MalformedStringInput {
|
2588 + | pub /* StructureGenerator.kt:201 */ struct MalformedStringInput {
|
2589 + | /* RustType.kt:516 */
|
1816 2590 | #[pyo3(get, set)]
|
2591 + | /* PythonServerStructureGenerator.kt:80 */
|
1817 2592 | /// :type typing.Optional\[str\]:
|
2593 + | /* StructureGenerator.kt:231 */
|
1818 2594 | #[allow(missing_docs)] // documentation missing in model
|
1819 2595 | pub blob: ::std::option::Option<::std::string::String>,
|
2596 + | /* StructureGenerator.kt:201 */
|
1820 2597 | }
|
2598 + | /* StructureGenerator.kt:135 */
|
1821 2599 | impl MalformedStringInput {
|
2600 + | /* StructureGenerator.kt:231 */
|
1822 2601 | #[allow(missing_docs)] // documentation missing in model
|
2602 + | /* StructureGenerator.kt:166 */
|
1823 2603 | pub fn blob(&self) -> ::std::option::Option<&str> {
|
2604 + | /* StructureGenerator.kt:169 */
|
1824 2605 | self.blob.as_deref()
|
2606 + | /* StructureGenerator.kt:166 */
|
1825 2607 | }
|
2608 + | /* StructureGenerator.kt:135 */
|
1826 2609 | }
|
2610 + | /* RustType.kt:516 */
|
1827 2611 | #[allow(clippy::new_without_default)]
|
2612 + | /* RustType.kt:516 */
|
1828 2613 | #[allow(clippy::too_many_arguments)]
|
2614 + | /* RustType.kt:516 */
|
1829 2615 | #[::pyo3::pymethods]
|
2616 + | /* PythonServerStructureGenerator.kt:88 */
|
1830 2617 | impl MalformedStringInput {
|
1831 2618 | #[new]
|
1832 2619 | pub fn new(blob: ::std::option::Option<::std::string::String>) -> Self {
|
1833 2620 | Self { blob }
|
1834 2621 | }
|
1835 2622 | fn __repr__(&self) -> String {
|
1836 2623 | format!("{self:?}")
|
1837 2624 | }
|
1838 2625 | fn __str__(&self) -> String {
|
1839 2626 | format!("{self:?}")
|
1840 2627 | }
|
1841 2628 | }
|
2629 + | /* PythonServerStructureGenerator.kt:111 */
|
1842 2630 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedStringInput> {
|
1843 2631 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1844 2632 | ob.extract::<MalformedStringInput>().map(Box::new)
|
1845 2633 | }
|
1846 2634 | }
|
1847 2635 |
|
1848 2636 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedStringInput> {
|
1849 2637 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1850 2638 | (*self).into_py(py)
|
1851 2639 | }
|
1852 2640 | }
|
2641 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1853 2642 | impl crate::constrained::Constrained for crate::input::MalformedStringInput {
|
1854 2643 | type Unconstrained = crate::input::malformed_string_input_internal::Builder;
|
1855 2644 | }
|
2645 + | /* ServerCodegenVisitor.kt:370 */
|
1856 2646 | impl MalformedStringInput {
|
1857 - | /// Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
2647 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
2648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1858 2649 | pub fn builder() -> crate::input::malformed_string_input::Builder {
|
2650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1859 2651 | crate::input::malformed_string_input::Builder::default()
|
2652 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1860 2653 | }
|
2654 + | /* ServerCodegenVisitor.kt:370 */
|
1861 2655 | }
|
1862 2656 |
|
2657 + | /* RustType.kt:516 */
|
1863 2658 | #[::pyo3::pyclass]
|
1864 - | /// :param double_in_body typing.Optional\[float\]:
|
2659 + | /* PythonServerStructureGenerator.kt:63 */
|
1865 2660 | /// :param double_in_path float:
|
2661 + | /// :param double_in_body typing.Optional\[float\]:
|
1866 2662 | /// :param double_in_query typing.Optional\[float\]:
|
1867 2663 | /// :param double_in_header typing.Optional\[float\]:
|
1868 2664 | /// :rtype None:
|
2665 + | /* StructureGenerator.kt:197 */
|
1869 2666 | #[allow(missing_docs)] // documentation missing in model
|
2667 + | /* RustType.kt:516 */
|
1870 2668 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1871 - | pub struct MalformedDoubleInput {
|
2669 + | pub /* StructureGenerator.kt:201 */ struct MalformedDoubleInput {
|
2670 + | /* RustType.kt:516 */
|
1872 2671 | #[pyo3(get, set)]
|
2672 + | /* PythonServerStructureGenerator.kt:80 */
|
1873 2673 | /// :type typing.Optional\[float\]:
|
2674 + | /* StructureGenerator.kt:231 */
|
1874 2675 | #[allow(missing_docs)] // documentation missing in model
|
1875 2676 | pub double_in_body: ::std::option::Option<f64>,
|
2677 + | /* RustType.kt:516 */
|
1876 2678 | #[pyo3(get, set)]
|
2679 + | /* PythonServerStructureGenerator.kt:80 */
|
1877 2680 | /// :type float:
|
2681 + | /* StructureGenerator.kt:231 */
|
1878 2682 | #[allow(missing_docs)] // documentation missing in model
|
1879 2683 | pub double_in_path: f64,
|
2684 + | /* RustType.kt:516 */
|
1880 2685 | #[pyo3(get, set)]
|
2686 + | /* PythonServerStructureGenerator.kt:80 */
|
1881 2687 | /// :type typing.Optional\[float\]:
|
2688 + | /* StructureGenerator.kt:231 */
|
1882 2689 | #[allow(missing_docs)] // documentation missing in model
|
1883 2690 | pub double_in_query: ::std::option::Option<f64>,
|
2691 + | /* RustType.kt:516 */
|
1884 2692 | #[pyo3(get, set)]
|
2693 + | /* PythonServerStructureGenerator.kt:80 */
|
1885 2694 | /// :type typing.Optional\[float\]:
|
2695 + | /* StructureGenerator.kt:231 */
|
1886 2696 | #[allow(missing_docs)] // documentation missing in model
|
1887 2697 | pub double_in_header: ::std::option::Option<f64>,
|
2698 + | /* StructureGenerator.kt:201 */
|
1888 2699 | }
|
2700 + | /* StructureGenerator.kt:135 */
|
1889 2701 | impl MalformedDoubleInput {
|
2702 + | /* StructureGenerator.kt:231 */
|
1890 2703 | #[allow(missing_docs)] // documentation missing in model
|
2704 + | /* StructureGenerator.kt:166 */
|
1891 2705 | pub fn double_in_body(&self) -> ::std::option::Option<f64> {
|
2706 + | /* StructureGenerator.kt:168 */
|
1892 2707 | self.double_in_body
|
2708 + | /* StructureGenerator.kt:166 */
|
1893 2709 | }
|
2710 + | /* StructureGenerator.kt:231 */
|
1894 2711 | #[allow(missing_docs)] // documentation missing in model
|
2712 + | /* StructureGenerator.kt:166 */
|
1895 2713 | pub fn double_in_path(&self) -> f64 {
|
2714 + | /* StructureGenerator.kt:168 */
|
1896 2715 | self.double_in_path
|
2716 + | /* StructureGenerator.kt:166 */
|
1897 2717 | }
|
2718 + | /* StructureGenerator.kt:231 */
|
1898 2719 | #[allow(missing_docs)] // documentation missing in model
|
2720 + | /* StructureGenerator.kt:166 */
|
1899 2721 | pub fn double_in_query(&self) -> ::std::option::Option<f64> {
|
2722 + | /* StructureGenerator.kt:168 */
|
1900 2723 | self.double_in_query
|
2724 + | /* StructureGenerator.kt:166 */
|
1901 2725 | }
|
2726 + | /* StructureGenerator.kt:231 */
|
1902 2727 | #[allow(missing_docs)] // documentation missing in model
|
2728 + | /* StructureGenerator.kt:166 */
|
1903 2729 | pub fn double_in_header(&self) -> ::std::option::Option<f64> {
|
2730 + | /* StructureGenerator.kt:168 */
|
1904 2731 | self.double_in_header
|
2732 + | /* StructureGenerator.kt:166 */
|
1905 2733 | }
|
2734 + | /* StructureGenerator.kt:135 */
|
1906 2735 | }
|
2736 + | /* RustType.kt:516 */
|
1907 2737 | #[allow(clippy::new_without_default)]
|
2738 + | /* RustType.kt:516 */
|
1908 2739 | #[allow(clippy::too_many_arguments)]
|
2740 + | /* RustType.kt:516 */
|
1909 2741 | #[::pyo3::pymethods]
|
2742 + | /* PythonServerStructureGenerator.kt:88 */
|
1910 2743 | impl MalformedDoubleInput {
|
1911 2744 | #[new]
|
1912 2745 | pub fn new(
|
1913 - | double_in_body: ::std::option::Option<f64>,
|
1914 2746 | double_in_path: f64,
|
2747 + | double_in_body: ::std::option::Option<f64>,
|
1915 2748 | double_in_query: ::std::option::Option<f64>,
|
1916 2749 | double_in_header: ::std::option::Option<f64>,
|
1917 2750 | ) -> Self {
|
1918 2751 | Self {
|
1919 - | double_in_body,
|
1920 2752 | double_in_path,
|
2753 + | double_in_body,
|
1921 2754 | double_in_query,
|
1922 2755 | double_in_header,
|
1923 2756 | }
|
1924 2757 | }
|
1925 2758 | fn __repr__(&self) -> String {
|
1926 2759 | format!("{self:?}")
|
1927 2760 | }
|
1928 2761 | fn __str__(&self) -> String {
|
1929 2762 | format!("{self:?}")
|
1930 2763 | }
|
1931 2764 | }
|
2765 + | /* PythonServerStructureGenerator.kt:111 */
|
1932 2766 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedDoubleInput> {
|
1933 2767 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1934 2768 | ob.extract::<MalformedDoubleInput>().map(Box::new)
|
1935 2769 | }
|
1936 2770 | }
|
1937 2771 |
|
1938 2772 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedDoubleInput> {
|
1939 2773 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1940 2774 | (*self).into_py(py)
|
1941 2775 | }
|
1942 2776 | }
|
2777 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1943 2778 | impl crate::constrained::Constrained for crate::input::MalformedDoubleInput {
|
1944 2779 | type Unconstrained = crate::input::malformed_double_input_internal::Builder;
|
1945 2780 | }
|
2781 + | /* ServerCodegenVisitor.kt:370 */
|
1946 2782 | impl MalformedDoubleInput {
|
1947 - | /// Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
2783 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
2784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1948 2785 | pub fn builder() -> crate::input::malformed_double_input::Builder {
|
2786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
1949 2787 | crate::input::malformed_double_input::Builder::default()
|
2788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
1950 2789 | }
|
2790 + | /* ServerCodegenVisitor.kt:370 */
|
1951 2791 | }
|
1952 2792 |
|
2793 + | /* RustType.kt:516 */
|
1953 2794 | #[::pyo3::pyclass]
|
1954 - | /// :param float_in_body typing.Optional\[float\]:
|
2795 + | /* PythonServerStructureGenerator.kt:63 */
|
1955 2796 | /// :param float_in_path float:
|
2797 + | /// :param float_in_body typing.Optional\[float\]:
|
1956 2798 | /// :param float_in_query typing.Optional\[float\]:
|
1957 2799 | /// :param float_in_header typing.Optional\[float\]:
|
1958 2800 | /// :rtype None:
|
2801 + | /* StructureGenerator.kt:197 */
|
1959 2802 | #[allow(missing_docs)] // documentation missing in model
|
2803 + | /* RustType.kt:516 */
|
1960 2804 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1961 - | pub struct MalformedFloatInput {
|
2805 + | pub /* StructureGenerator.kt:201 */ struct MalformedFloatInput {
|
2806 + | /* RustType.kt:516 */
|
1962 2807 | #[pyo3(get, set)]
|
2808 + | /* PythonServerStructureGenerator.kt:80 */
|
1963 2809 | /// :type typing.Optional\[float\]:
|
2810 + | /* StructureGenerator.kt:231 */
|
1964 2811 | #[allow(missing_docs)] // documentation missing in model
|
1965 2812 | pub float_in_body: ::std::option::Option<f32>,
|
2813 + | /* RustType.kt:516 */
|
1966 2814 | #[pyo3(get, set)]
|
2815 + | /* PythonServerStructureGenerator.kt:80 */
|
1967 2816 | /// :type float:
|
2817 + | /* StructureGenerator.kt:231 */
|
1968 2818 | #[allow(missing_docs)] // documentation missing in model
|
1969 2819 | pub float_in_path: f32,
|
2820 + | /* RustType.kt:516 */
|
1970 2821 | #[pyo3(get, set)]
|
2822 + | /* PythonServerStructureGenerator.kt:80 */
|
1971 2823 | /// :type typing.Optional\[float\]:
|
2824 + | /* StructureGenerator.kt:231 */
|
1972 2825 | #[allow(missing_docs)] // documentation missing in model
|
1973 2826 | pub float_in_query: ::std::option::Option<f32>,
|
2827 + | /* RustType.kt:516 */
|
1974 2828 | #[pyo3(get, set)]
|
2829 + | /* PythonServerStructureGenerator.kt:80 */
|
1975 2830 | /// :type typing.Optional\[float\]:
|
2831 + | /* StructureGenerator.kt:231 */
|
1976 2832 | #[allow(missing_docs)] // documentation missing in model
|
1977 2833 | pub float_in_header: ::std::option::Option<f32>,
|
2834 + | /* StructureGenerator.kt:201 */
|
1978 2835 | }
|
2836 + | /* StructureGenerator.kt:135 */
|
1979 2837 | impl MalformedFloatInput {
|
2838 + | /* StructureGenerator.kt:231 */
|
1980 2839 | #[allow(missing_docs)] // documentation missing in model
|
2840 + | /* StructureGenerator.kt:166 */
|
1981 2841 | pub fn float_in_body(&self) -> ::std::option::Option<f32> {
|
2842 + | /* StructureGenerator.kt:168 */
|
1982 2843 | self.float_in_body
|
2844 + | /* StructureGenerator.kt:166 */
|
1983 2845 | }
|
2846 + | /* StructureGenerator.kt:231 */
|
1984 2847 | #[allow(missing_docs)] // documentation missing in model
|
2848 + | /* StructureGenerator.kt:166 */
|
1985 2849 | pub fn float_in_path(&self) -> f32 {
|
2850 + | /* StructureGenerator.kt:168 */
|
1986 2851 | self.float_in_path
|
2852 + | /* StructureGenerator.kt:166 */
|
1987 2853 | }
|
2854 + | /* StructureGenerator.kt:231 */
|
1988 2855 | #[allow(missing_docs)] // documentation missing in model
|
2856 + | /* StructureGenerator.kt:166 */
|
1989 2857 | pub fn float_in_query(&self) -> ::std::option::Option<f32> {
|
2858 + | /* StructureGenerator.kt:168 */
|
1990 2859 | self.float_in_query
|
2860 + | /* StructureGenerator.kt:166 */
|
1991 2861 | }
|
2862 + | /* StructureGenerator.kt:231 */
|
1992 2863 | #[allow(missing_docs)] // documentation missing in model
|
2864 + | /* StructureGenerator.kt:166 */
|
1993 2865 | pub fn float_in_header(&self) -> ::std::option::Option<f32> {
|
2866 + | /* StructureGenerator.kt:168 */
|
1994 2867 | self.float_in_header
|
2868 + | /* StructureGenerator.kt:166 */
|
1995 2869 | }
|
2870 + | /* StructureGenerator.kt:135 */
|
1996 2871 | }
|
2872 + | /* RustType.kt:516 */
|
1997 2873 | #[allow(clippy::new_without_default)]
|
2874 + | /* RustType.kt:516 */
|
1998 2875 | #[allow(clippy::too_many_arguments)]
|
2876 + | /* RustType.kt:516 */
|
1999 2877 | #[::pyo3::pymethods]
|
2878 + | /* PythonServerStructureGenerator.kt:88 */
|
2000 2879 | impl MalformedFloatInput {
|
2001 2880 | #[new]
|
2002 2881 | pub fn new(
|
2003 - | float_in_body: ::std::option::Option<f32>,
|
2004 2882 | float_in_path: f32,
|
2883 + | float_in_body: ::std::option::Option<f32>,
|
2005 2884 | float_in_query: ::std::option::Option<f32>,
|
2006 2885 | float_in_header: ::std::option::Option<f32>,
|
2007 2886 | ) -> Self {
|
2008 2887 | Self {
|
2009 - | float_in_body,
|
2010 2888 | float_in_path,
|
2889 + | float_in_body,
|
2011 2890 | float_in_query,
|
2012 2891 | float_in_header,
|
2013 2892 | }
|
2014 2893 | }
|
2015 2894 | fn __repr__(&self) -> String {
|
2016 2895 | format!("{self:?}")
|
2017 2896 | }
|
2018 2897 | fn __str__(&self) -> String {
|
2019 2898 | format!("{self:?}")
|
2020 2899 | }
|
2021 2900 | }
|
2901 + | /* PythonServerStructureGenerator.kt:111 */
|
2022 2902 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedFloatInput> {
|
2023 2903 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2024 2904 | ob.extract::<MalformedFloatInput>().map(Box::new)
|
2025 2905 | }
|
2026 2906 | }
|
2027 2907 |
|
2028 2908 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedFloatInput> {
|
2029 2909 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2030 2910 | (*self).into_py(py)
|
2031 2911 | }
|
2032 2912 | }
|
2913 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2033 2914 | impl crate::constrained::Constrained for crate::input::MalformedFloatInput {
|
2034 2915 | type Unconstrained = crate::input::malformed_float_input_internal::Builder;
|
2035 2916 | }
|
2917 + | /* ServerCodegenVisitor.kt:370 */
|
2036 2918 | impl MalformedFloatInput {
|
2037 - | /// Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
2919 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
2920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2038 2921 | pub fn builder() -> crate::input::malformed_float_input::Builder {
|
2922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2039 2923 | crate::input::malformed_float_input::Builder::default()
|
2924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2040 2925 | }
|
2926 + | /* ServerCodegenVisitor.kt:370 */
|
2041 2927 | }
|
2042 2928 |
|
2929 + | /* RustType.kt:516 */
|
2043 2930 | #[::pyo3::pyclass]
|
2044 - | /// :param long_in_body typing.Optional\[int\]:
|
2931 + | /* PythonServerStructureGenerator.kt:63 */
|
2045 2932 | /// :param long_in_path int:
|
2933 + | /// :param long_in_body typing.Optional\[int\]:
|
2046 2934 | /// :param long_in_query typing.Optional\[int\]:
|
2047 2935 | /// :param long_in_header typing.Optional\[int\]:
|
2048 2936 | /// :rtype None:
|
2937 + | /* StructureGenerator.kt:197 */
|
2049 2938 | #[allow(missing_docs)] // documentation missing in model
|
2939 + | /* RustType.kt:516 */
|
2050 2940 | #[derive(
|
2051 2941 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2052 2942 | )]
|
2053 - | pub struct MalformedLongInput {
|
2943 + | pub /* StructureGenerator.kt:201 */ struct MalformedLongInput {
|
2944 + | /* RustType.kt:516 */
|
2054 2945 | #[pyo3(get, set)]
|
2946 + | /* PythonServerStructureGenerator.kt:80 */
|
2055 2947 | /// :type typing.Optional\[int\]:
|
2948 + | /* StructureGenerator.kt:231 */
|
2056 2949 | #[allow(missing_docs)] // documentation missing in model
|
2057 2950 | pub long_in_body: ::std::option::Option<i64>,
|
2951 + | /* RustType.kt:516 */
|
2058 2952 | #[pyo3(get, set)]
|
2953 + | /* PythonServerStructureGenerator.kt:80 */
|
2059 2954 | /// :type int:
|
2955 + | /* StructureGenerator.kt:231 */
|
2060 2956 | #[allow(missing_docs)] // documentation missing in model
|
2061 2957 | pub long_in_path: i64,
|
2958 + | /* RustType.kt:516 */
|
2062 2959 | #[pyo3(get, set)]
|
2960 + | /* PythonServerStructureGenerator.kt:80 */
|
2063 2961 | /// :type typing.Optional\[int\]:
|
2962 + | /* StructureGenerator.kt:231 */
|
2064 2963 | #[allow(missing_docs)] // documentation missing in model
|
2065 2964 | pub long_in_query: ::std::option::Option<i64>,
|
2965 + | /* RustType.kt:516 */
|
2066 2966 | #[pyo3(get, set)]
|
2967 + | /* PythonServerStructureGenerator.kt:80 */
|
2067 2968 | /// :type typing.Optional\[int\]:
|
2969 + | /* StructureGenerator.kt:231 */
|
2068 2970 | #[allow(missing_docs)] // documentation missing in model
|
2069 2971 | pub long_in_header: ::std::option::Option<i64>,
|
2972 + | /* StructureGenerator.kt:201 */
|
2070 2973 | }
|
2974 + | /* StructureGenerator.kt:135 */
|
2071 2975 | impl MalformedLongInput {
|
2976 + | /* StructureGenerator.kt:231 */
|
2072 2977 | #[allow(missing_docs)] // documentation missing in model
|
2978 + | /* StructureGenerator.kt:166 */
|
2073 2979 | pub fn long_in_body(&self) -> ::std::option::Option<i64> {
|
2980 + | /* StructureGenerator.kt:168 */
|
2074 2981 | self.long_in_body
|
2982 + | /* StructureGenerator.kt:166 */
|
2075 2983 | }
|
2984 + | /* StructureGenerator.kt:231 */
|
2076 2985 | #[allow(missing_docs)] // documentation missing in model
|
2986 + | /* StructureGenerator.kt:166 */
|
2077 2987 | pub fn long_in_path(&self) -> i64 {
|
2988 + | /* StructureGenerator.kt:168 */
|
2078 2989 | self.long_in_path
|
2990 + | /* StructureGenerator.kt:166 */
|
2079 2991 | }
|
2992 + | /* StructureGenerator.kt:231 */
|
2080 2993 | #[allow(missing_docs)] // documentation missing in model
|
2994 + | /* StructureGenerator.kt:166 */
|
2081 2995 | pub fn long_in_query(&self) -> ::std::option::Option<i64> {
|
2996 + | /* StructureGenerator.kt:168 */
|
2082 2997 | self.long_in_query
|
2998 + | /* StructureGenerator.kt:166 */
|
2083 2999 | }
|
3000 + | /* StructureGenerator.kt:231 */
|
2084 3001 | #[allow(missing_docs)] // documentation missing in model
|
3002 + | /* StructureGenerator.kt:166 */
|
2085 3003 | pub fn long_in_header(&self) -> ::std::option::Option<i64> {
|
3004 + | /* StructureGenerator.kt:168 */
|
2086 3005 | self.long_in_header
|
3006 + | /* StructureGenerator.kt:166 */
|
2087 3007 | }
|
3008 + | /* StructureGenerator.kt:135 */
|
2088 3009 | }
|
3010 + | /* RustType.kt:516 */
|
2089 3011 | #[allow(clippy::new_without_default)]
|
3012 + | /* RustType.kt:516 */
|
2090 3013 | #[allow(clippy::too_many_arguments)]
|
3014 + | /* RustType.kt:516 */
|
2091 3015 | #[::pyo3::pymethods]
|
3016 + | /* PythonServerStructureGenerator.kt:88 */
|
2092 3017 | impl MalformedLongInput {
|
2093 3018 | #[new]
|
2094 3019 | pub fn new(
|
2095 - | long_in_body: ::std::option::Option<i64>,
|
2096 3020 | long_in_path: i64,
|
3021 + | long_in_body: ::std::option::Option<i64>,
|
2097 3022 | long_in_query: ::std::option::Option<i64>,
|
2098 3023 | long_in_header: ::std::option::Option<i64>,
|
2099 3024 | ) -> Self {
|
2100 3025 | Self {
|
2101 - | long_in_body,
|
2102 3026 | long_in_path,
|
3027 + | long_in_body,
|
2103 3028 | long_in_query,
|
2104 3029 | long_in_header,
|
2105 3030 | }
|
2106 3031 | }
|
2107 3032 | fn __repr__(&self) -> String {
|
2108 3033 | format!("{self:?}")
|
2109 3034 | }
|
2110 3035 | fn __str__(&self) -> String {
|
2111 3036 | format!("{self:?}")
|
2112 3037 | }
|
2113 3038 | }
|
3039 + | /* PythonServerStructureGenerator.kt:111 */
|
2114 3040 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedLongInput> {
|
2115 3041 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2116 3042 | ob.extract::<MalformedLongInput>().map(Box::new)
|
2117 3043 | }
|
2118 3044 | }
|
2119 3045 |
|
2120 3046 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedLongInput> {
|
2121 3047 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2122 3048 | (*self).into_py(py)
|
2123 3049 | }
|
2124 3050 | }
|
3051 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2125 3052 | impl crate::constrained::Constrained for crate::input::MalformedLongInput {
|
2126 3053 | type Unconstrained = crate::input::malformed_long_input_internal::Builder;
|
2127 3054 | }
|
3055 + | /* ServerCodegenVisitor.kt:370 */
|
2128 3056 | impl MalformedLongInput {
|
2129 - | /// Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
3057 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
3058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2130 3059 | pub fn builder() -> crate::input::malformed_long_input::Builder {
|
3060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2131 3061 | crate::input::malformed_long_input::Builder::default()
|
3062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2132 3063 | }
|
3064 + | /* ServerCodegenVisitor.kt:370 */
|
2133 3065 | }
|
2134 3066 |
|
3067 + | /* RustType.kt:516 */
|
2135 3068 | #[::pyo3::pyclass]
|
2136 - | /// :param short_in_body typing.Optional\[int\]:
|
3069 + | /* PythonServerStructureGenerator.kt:63 */
|
2137 3070 | /// :param short_in_path int:
|
3071 + | /// :param short_in_body typing.Optional\[int\]:
|
2138 3072 | /// :param short_in_query typing.Optional\[int\]:
|
2139 3073 | /// :param short_in_header typing.Optional\[int\]:
|
2140 3074 | /// :rtype None:
|
3075 + | /* StructureGenerator.kt:197 */
|
2141 3076 | #[allow(missing_docs)] // documentation missing in model
|
3077 + | /* RustType.kt:516 */
|
2142 3078 | #[derive(
|
2143 3079 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2144 3080 | )]
|
2145 - | pub struct MalformedShortInput {
|
3081 + | pub /* StructureGenerator.kt:201 */ struct MalformedShortInput {
|
3082 + | /* RustType.kt:516 */
|
2146 3083 | #[pyo3(get, set)]
|
3084 + | /* PythonServerStructureGenerator.kt:80 */
|
2147 3085 | /// :type typing.Optional\[int\]:
|
3086 + | /* StructureGenerator.kt:231 */
|
2148 3087 | #[allow(missing_docs)] // documentation missing in model
|
2149 3088 | pub short_in_body: ::std::option::Option<i16>,
|
3089 + | /* RustType.kt:516 */
|
2150 3090 | #[pyo3(get, set)]
|
3091 + | /* PythonServerStructureGenerator.kt:80 */
|
2151 3092 | /// :type int:
|
3093 + | /* StructureGenerator.kt:231 */
|
2152 3094 | #[allow(missing_docs)] // documentation missing in model
|
2153 3095 | pub short_in_path: i16,
|
3096 + | /* RustType.kt:516 */
|
2154 3097 | #[pyo3(get, set)]
|
3098 + | /* PythonServerStructureGenerator.kt:80 */
|
2155 3099 | /// :type typing.Optional\[int\]:
|
3100 + | /* StructureGenerator.kt:231 */
|
2156 3101 | #[allow(missing_docs)] // documentation missing in model
|
2157 3102 | pub short_in_query: ::std::option::Option<i16>,
|
3103 + | /* RustType.kt:516 */
|
2158 3104 | #[pyo3(get, set)]
|
3105 + | /* PythonServerStructureGenerator.kt:80 */
|
2159 3106 | /// :type typing.Optional\[int\]:
|
3107 + | /* StructureGenerator.kt:231 */
|
2160 3108 | #[allow(missing_docs)] // documentation missing in model
|
2161 3109 | pub short_in_header: ::std::option::Option<i16>,
|
3110 + | /* StructureGenerator.kt:201 */
|
2162 3111 | }
|
3112 + | /* StructureGenerator.kt:135 */
|
2163 3113 | impl MalformedShortInput {
|
3114 + | /* StructureGenerator.kt:231 */
|
2164 3115 | #[allow(missing_docs)] // documentation missing in model
|
3116 + | /* StructureGenerator.kt:166 */
|
2165 3117 | pub fn short_in_body(&self) -> ::std::option::Option<i16> {
|
3118 + | /* StructureGenerator.kt:168 */
|
2166 3119 | self.short_in_body
|
3120 + | /* StructureGenerator.kt:166 */
|
2167 3121 | }
|
3122 + | /* StructureGenerator.kt:231 */
|
2168 3123 | #[allow(missing_docs)] // documentation missing in model
|
3124 + | /* StructureGenerator.kt:166 */
|
2169 3125 | pub fn short_in_path(&self) -> i16 {
|
3126 + | /* StructureGenerator.kt:168 */
|
2170 3127 | self.short_in_path
|
3128 + | /* StructureGenerator.kt:166 */
|
2171 3129 | }
|
3130 + | /* StructureGenerator.kt:231 */
|
2172 3131 | #[allow(missing_docs)] // documentation missing in model
|
3132 + | /* StructureGenerator.kt:166 */
|
2173 3133 | pub fn short_in_query(&self) -> ::std::option::Option<i16> {
|
3134 + | /* StructureGenerator.kt:168 */
|
2174 3135 | self.short_in_query
|
3136 + | /* StructureGenerator.kt:166 */
|
2175 3137 | }
|
3138 + | /* StructureGenerator.kt:231 */
|
2176 3139 | #[allow(missing_docs)] // documentation missing in model
|
3140 + | /* StructureGenerator.kt:166 */
|
2177 3141 | pub fn short_in_header(&self) -> ::std::option::Option<i16> {
|
3142 + | /* StructureGenerator.kt:168 */
|
2178 3143 | self.short_in_header
|
3144 + | /* StructureGenerator.kt:166 */
|
2179 3145 | }
|
3146 + | /* StructureGenerator.kt:135 */
|
2180 3147 | }
|
3148 + | /* RustType.kt:516 */
|
2181 3149 | #[allow(clippy::new_without_default)]
|
3150 + | /* RustType.kt:516 */
|
2182 3151 | #[allow(clippy::too_many_arguments)]
|
3152 + | /* RustType.kt:516 */
|
2183 3153 | #[::pyo3::pymethods]
|
3154 + | /* PythonServerStructureGenerator.kt:88 */
|
2184 3155 | impl MalformedShortInput {
|
2185 3156 | #[new]
|
2186 3157 | pub fn new(
|
2187 - | short_in_body: ::std::option::Option<i16>,
|
2188 3158 | short_in_path: i16,
|
3159 + | short_in_body: ::std::option::Option<i16>,
|
2189 3160 | short_in_query: ::std::option::Option<i16>,
|
2190 3161 | short_in_header: ::std::option::Option<i16>,
|
2191 3162 | ) -> Self {
|
2192 3163 | Self {
|
2193 - | short_in_body,
|
2194 3164 | short_in_path,
|
3165 + | short_in_body,
|
2195 3166 | short_in_query,
|
2196 3167 | short_in_header,
|
2197 3168 | }
|
2198 3169 | }
|
2199 3170 | fn __repr__(&self) -> String {
|
2200 3171 | format!("{self:?}")
|
2201 3172 | }
|
2202 3173 | fn __str__(&self) -> String {
|
2203 3174 | format!("{self:?}")
|
2204 3175 | }
|
2205 3176 | }
|
3177 + | /* PythonServerStructureGenerator.kt:111 */
|
2206 3178 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedShortInput> {
|
2207 3179 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2208 3180 | ob.extract::<MalformedShortInput>().map(Box::new)
|
2209 3181 | }
|
2210 3182 | }
|
2211 3183 |
|
2212 3184 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedShortInput> {
|
2213 3185 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2214 3186 | (*self).into_py(py)
|
2215 3187 | }
|
2216 3188 | }
|
3189 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2217 3190 | impl crate::constrained::Constrained for crate::input::MalformedShortInput {
|
2218 3191 | type Unconstrained = crate::input::malformed_short_input_internal::Builder;
|
2219 3192 | }
|
3193 + | /* ServerCodegenVisitor.kt:370 */
|
2220 3194 | impl MalformedShortInput {
|
2221 - | /// Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
3195 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
3196 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2222 3197 | pub fn builder() -> crate::input::malformed_short_input::Builder {
|
3198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2223 3199 | crate::input::malformed_short_input::Builder::default()
|
3200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2224 3201 | }
|
3202 + | /* ServerCodegenVisitor.kt:370 */
|
2225 3203 | }
|
2226 3204 |
|
3205 + | /* RustType.kt:516 */
|
2227 3206 | #[::pyo3::pyclass]
|
2228 - | /// :param byte_in_body typing.Optional\[int\]:
|
3207 + | /* PythonServerStructureGenerator.kt:63 */
|
2229 3208 | /// :param byte_in_path int:
|
3209 + | /// :param byte_in_body typing.Optional\[int\]:
|
2230 3210 | /// :param byte_in_query typing.Optional\[int\]:
|
2231 3211 | /// :param byte_in_header typing.Optional\[int\]:
|
2232 3212 | /// :rtype None:
|
3213 + | /* StructureGenerator.kt:197 */
|
2233 3214 | #[allow(missing_docs)] // documentation missing in model
|
3215 + | /* RustType.kt:516 */
|
2234 3216 | #[derive(
|
2235 3217 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2236 3218 | )]
|
2237 - | pub struct MalformedByteInput {
|
3219 + | pub /* StructureGenerator.kt:201 */ struct MalformedByteInput {
|
3220 + | /* RustType.kt:516 */
|
2238 3221 | #[pyo3(get, set)]
|
3222 + | /* PythonServerStructureGenerator.kt:80 */
|
2239 3223 | /// :type typing.Optional\[int\]:
|
3224 + | /* StructureGenerator.kt:231 */
|
2240 3225 | #[allow(missing_docs)] // documentation missing in model
|
2241 3226 | pub byte_in_body: ::std::option::Option<i8>,
|
3227 + | /* RustType.kt:516 */
|
2242 3228 | #[pyo3(get, set)]
|
3229 + | /* PythonServerStructureGenerator.kt:80 */
|
2243 3230 | /// :type int:
|
3231 + | /* StructureGenerator.kt:231 */
|
2244 3232 | #[allow(missing_docs)] // documentation missing in model
|
2245 3233 | pub byte_in_path: i8,
|
3234 + | /* RustType.kt:516 */
|
2246 3235 | #[pyo3(get, set)]
|
3236 + | /* PythonServerStructureGenerator.kt:80 */
|
2247 3237 | /// :type typing.Optional\[int\]:
|
3238 + | /* StructureGenerator.kt:231 */
|
2248 3239 | #[allow(missing_docs)] // documentation missing in model
|
2249 3240 | pub byte_in_query: ::std::option::Option<i8>,
|
3241 + | /* RustType.kt:516 */
|
2250 3242 | #[pyo3(get, set)]
|
3243 + | /* PythonServerStructureGenerator.kt:80 */
|
2251 3244 | /// :type typing.Optional\[int\]:
|
3245 + | /* StructureGenerator.kt:231 */
|
2252 3246 | #[allow(missing_docs)] // documentation missing in model
|
2253 3247 | pub byte_in_header: ::std::option::Option<i8>,
|
3248 + | /* StructureGenerator.kt:201 */
|
2254 3249 | }
|
3250 + | /* StructureGenerator.kt:135 */
|
2255 3251 | impl MalformedByteInput {
|
3252 + | /* StructureGenerator.kt:231 */
|
2256 3253 | #[allow(missing_docs)] // documentation missing in model
|
3254 + | /* StructureGenerator.kt:166 */
|
2257 3255 | pub fn byte_in_body(&self) -> ::std::option::Option<i8> {
|
3256 + | /* StructureGenerator.kt:168 */
|
2258 3257 | self.byte_in_body
|
3258 + | /* StructureGenerator.kt:166 */
|
2259 3259 | }
|
3260 + | /* StructureGenerator.kt:231 */
|
2260 3261 | #[allow(missing_docs)] // documentation missing in model
|
3262 + | /* StructureGenerator.kt:166 */
|
2261 3263 | pub fn byte_in_path(&self) -> i8 {
|
3264 + | /* StructureGenerator.kt:168 */
|
2262 3265 | self.byte_in_path
|
3266 + | /* StructureGenerator.kt:166 */
|
2263 3267 | }
|
3268 + | /* StructureGenerator.kt:231 */
|
2264 3269 | #[allow(missing_docs)] // documentation missing in model
|
3270 + | /* StructureGenerator.kt:166 */
|
2265 3271 | pub fn byte_in_query(&self) -> ::std::option::Option<i8> {
|
3272 + | /* StructureGenerator.kt:168 */
|
2266 3273 | self.byte_in_query
|
3274 + | /* StructureGenerator.kt:166 */
|
2267 3275 | }
|
3276 + | /* StructureGenerator.kt:231 */
|
2268 3277 | #[allow(missing_docs)] // documentation missing in model
|
3278 + | /* StructureGenerator.kt:166 */
|
2269 3279 | pub fn byte_in_header(&self) -> ::std::option::Option<i8> {
|
3280 + | /* StructureGenerator.kt:168 */
|
2270 3281 | self.byte_in_header
|
3282 + | /* StructureGenerator.kt:166 */
|
2271 3283 | }
|
3284 + | /* StructureGenerator.kt:135 */
|
2272 3285 | }
|
3286 + | /* RustType.kt:516 */
|
2273 3287 | #[allow(clippy::new_without_default)]
|
3288 + | /* RustType.kt:516 */
|
2274 3289 | #[allow(clippy::too_many_arguments)]
|
3290 + | /* RustType.kt:516 */
|
2275 3291 | #[::pyo3::pymethods]
|
3292 + | /* PythonServerStructureGenerator.kt:88 */
|
2276 3293 | impl MalformedByteInput {
|
2277 3294 | #[new]
|
2278 3295 | pub fn new(
|
2279 - | byte_in_body: ::std::option::Option<i8>,
|
2280 3296 | byte_in_path: i8,
|
3297 + | byte_in_body: ::std::option::Option<i8>,
|
2281 3298 | byte_in_query: ::std::option::Option<i8>,
|
2282 3299 | byte_in_header: ::std::option::Option<i8>,
|
2283 3300 | ) -> Self {
|
2284 3301 | Self {
|
2285 - | byte_in_body,
|
2286 3302 | byte_in_path,
|
3303 + | byte_in_body,
|
2287 3304 | byte_in_query,
|
2288 3305 | byte_in_header,
|
2289 3306 | }
|
2290 3307 | }
|
2291 3308 | fn __repr__(&self) -> String {
|
2292 3309 | format!("{self:?}")
|
2293 3310 | }
|
2294 3311 | fn __str__(&self) -> String {
|
2295 3312 | format!("{self:?}")
|
2296 3313 | }
|
2297 3314 | }
|
3315 + | /* PythonServerStructureGenerator.kt:111 */
|
2298 3316 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedByteInput> {
|
2299 3317 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2300 3318 | ob.extract::<MalformedByteInput>().map(Box::new)
|
2301 3319 | }
|
2302 3320 | }
|
2303 3321 |
|
2304 3322 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedByteInput> {
|
2305 3323 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2306 3324 | (*self).into_py(py)
|
2307 3325 | }
|
2308 3326 | }
|
3327 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2309 3328 | impl crate::constrained::Constrained for crate::input::MalformedByteInput {
|
2310 3329 | type Unconstrained = crate::input::malformed_byte_input_internal::Builder;
|
2311 3330 | }
|
3331 + | /* ServerCodegenVisitor.kt:370 */
|
2312 3332 | impl MalformedByteInput {
|
2313 - | /// Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
3333 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
3334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2314 3335 | pub fn builder() -> crate::input::malformed_byte_input::Builder {
|
3336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2315 3337 | crate::input::malformed_byte_input::Builder::default()
|
3338 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2316 3339 | }
|
3340 + | /* ServerCodegenVisitor.kt:370 */
|
2317 3341 | }
|
2318 3342 |
|
3343 + | /* RustType.kt:516 */
|
2319 3344 | #[::pyo3::pyclass]
|
3345 + | /* PythonServerStructureGenerator.kt:63 */
|
2320 3346 | /// :param blob typing.Optional\[rest_json.types.Blob\]:
|
2321 3347 | /// :rtype None:
|
3348 + | /* StructureGenerator.kt:197 */
|
2322 3349 | #[allow(missing_docs)] // documentation missing in model
|
3350 + | /* RustType.kt:516 */
|
2323 3351 | #[derive(
|
2324 3352 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2325 3353 | )]
|
2326 - | pub struct MalformedBlobInput {
|
3354 + | pub /* StructureGenerator.kt:201 */ struct MalformedBlobInput {
|
3355 + | /* RustType.kt:516 */
|
2327 3356 | #[pyo3(get, set)]
|
3357 + | /* PythonServerStructureGenerator.kt:80 */
|
2328 3358 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
3359 + | /* StructureGenerator.kt:231 */
|
2329 3360 | #[allow(missing_docs)] // documentation missing in model
|
2330 3361 | pub blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
3362 + | /* StructureGenerator.kt:201 */
|
2331 3363 | }
|
3364 + | /* StructureGenerator.kt:135 */
|
2332 3365 | impl MalformedBlobInput {
|
3366 + | /* StructureGenerator.kt:231 */
|
2333 3367 | #[allow(missing_docs)] // documentation missing in model
|
3368 + | /* StructureGenerator.kt:166 */
|
2334 3369 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
3370 + | /* StructureGenerator.kt:170 */
|
2335 3371 | self.blob.as_ref()
|
3372 + | /* StructureGenerator.kt:166 */
|
2336 3373 | }
|
3374 + | /* StructureGenerator.kt:135 */
|
2337 3375 | }
|
3376 + | /* RustType.kt:516 */
|
2338 3377 | #[allow(clippy::new_without_default)]
|
3378 + | /* RustType.kt:516 */
|
2339 3379 | #[allow(clippy::too_many_arguments)]
|
3380 + | /* RustType.kt:516 */
|
2340 3381 | #[::pyo3::pymethods]
|
3382 + | /* PythonServerStructureGenerator.kt:88 */
|
2341 3383 | impl MalformedBlobInput {
|
2342 3384 | #[new]
|
2343 3385 | pub fn new(blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>) -> Self {
|
2344 3386 | Self { blob }
|
2345 3387 | }
|
2346 3388 | fn __repr__(&self) -> String {
|
2347 3389 | format!("{self:?}")
|
2348 3390 | }
|
2349 3391 | fn __str__(&self) -> String {
|
2350 3392 | format!("{self:?}")
|
2351 3393 | }
|
2352 3394 | }
|
3395 + | /* PythonServerStructureGenerator.kt:111 */
|
2353 3396 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedBlobInput> {
|
2354 3397 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2355 3398 | ob.extract::<MalformedBlobInput>().map(Box::new)
|
2356 3399 | }
|
2357 3400 | }
|
2358 3401 |
|
2359 3402 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedBlobInput> {
|
2360 3403 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2361 3404 | (*self).into_py(py)
|
2362 3405 | }
|
2363 3406 | }
|
3407 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2364 3408 | impl crate::constrained::Constrained for crate::input::MalformedBlobInput {
|
2365 3409 | type Unconstrained = crate::input::malformed_blob_input_internal::Builder;
|
2366 3410 | }
|
3411 + | /* ServerCodegenVisitor.kt:370 */
|
2367 3412 | impl MalformedBlobInput {
|
2368 - | /// Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
3413 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
3414 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2369 3415 | pub fn builder() -> crate::input::malformed_blob_input::Builder {
|
3416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2370 3417 | crate::input::malformed_blob_input::Builder::default()
|
3418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2371 3419 | }
|
3420 + | /* ServerCodegenVisitor.kt:370 */
|
2372 3421 | }
|
2373 3422 |
|
3423 + | /* RustType.kt:516 */
|
2374 3424 | #[::pyo3::pyclass]
|
3425 + | /* PythonServerStructureGenerator.kt:63 */
|
2375 3426 | /// :param body_map typing.Optional\[typing.Dict\[str, str\]\]:
|
2376 3427 | /// :rtype None:
|
3428 + | /* StructureGenerator.kt:197 */
|
2377 3429 | #[allow(missing_docs)] // documentation missing in model
|
3430 + | /* RustType.kt:516 */
|
2378 3431 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2379 - | pub struct MalformedMapInput {
|
3432 + | pub /* StructureGenerator.kt:201 */ struct MalformedMapInput {
|
3433 + | /* RustType.kt:516 */
|
2380 3434 | #[pyo3(get, set)]
|
3435 + | /* PythonServerStructureGenerator.kt:80 */
|
2381 3436 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
3437 + | /* StructureGenerator.kt:231 */
|
2382 3438 | #[allow(missing_docs)] // documentation missing in model
|
2383 3439 | pub body_map: ::std::option::Option<
|
2384 3440 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2385 3441 | >,
|
3442 + | /* StructureGenerator.kt:201 */
|
2386 3443 | }
|
3444 + | /* StructureGenerator.kt:135 */
|
2387 3445 | impl MalformedMapInput {
|
3446 + | /* StructureGenerator.kt:231 */
|
2388 3447 | #[allow(missing_docs)] // documentation missing in model
|
3448 + | /* StructureGenerator.kt:166 */
|
2389 3449 | pub fn body_map(
|
2390 3450 | &self,
|
2391 3451 | ) -> ::std::option::Option<
|
2392 3452 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2393 3453 | > {
|
3454 + | /* StructureGenerator.kt:170 */
|
2394 3455 | self.body_map.as_ref()
|
3456 + | /* StructureGenerator.kt:166 */
|
2395 3457 | }
|
3458 + | /* StructureGenerator.kt:135 */
|
2396 3459 | }
|
3460 + | /* RustType.kt:516 */
|
2397 3461 | #[allow(clippy::new_without_default)]
|
3462 + | /* RustType.kt:516 */
|
2398 3463 | #[allow(clippy::too_many_arguments)]
|
3464 + | /* RustType.kt:516 */
|
2399 3465 | #[::pyo3::pymethods]
|
3466 + | /* PythonServerStructureGenerator.kt:88 */
|
2400 3467 | impl MalformedMapInput {
|
2401 3468 | #[new]
|
2402 3469 | pub fn new(
|
2403 3470 | body_map: ::std::option::Option<
|
2404 3471 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2405 3472 | >,
|
2406 3473 | ) -> Self {
|
2407 3474 | Self { body_map }
|
2408 3475 | }
|
2409 3476 | fn __repr__(&self) -> String {
|
2410 3477 | format!("{self:?}")
|
2411 3478 | }
|
2412 3479 | fn __str__(&self) -> String {
|
2413 3480 | format!("{self:?}")
|
2414 3481 | }
|
2415 3482 | }
|
3483 + | /* PythonServerStructureGenerator.kt:111 */
|
2416 3484 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedMapInput> {
|
2417 3485 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2418 3486 | ob.extract::<MalformedMapInput>().map(Box::new)
|
2419 3487 | }
|
2420 3488 | }
|
2421 3489 |
|
2422 3490 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedMapInput> {
|
2423 3491 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2424 3492 | (*self).into_py(py)
|
2425 3493 | }
|
2426 3494 | }
|
3495 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2427 3496 | impl crate::constrained::Constrained for crate::input::MalformedMapInput {
|
2428 3497 | type Unconstrained = crate::input::malformed_map_input_internal::Builder;
|
2429 3498 | }
|
3499 + | /* ServerCodegenVisitor.kt:370 */
|
2430 3500 | impl MalformedMapInput {
|
2431 - | /// Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
3501 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
3502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2432 3503 | pub fn builder() -> crate::input::malformed_map_input::Builder {
|
3504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2433 3505 | crate::input::malformed_map_input::Builder::default()
|
3506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2434 3507 | }
|
3508 + | /* ServerCodegenVisitor.kt:370 */
|
2435 3509 | }
|
2436 3510 |
|
3511 + | /* RustType.kt:516 */
|
2437 3512 | #[::pyo3::pyclass]
|
3513 + | /* PythonServerStructureGenerator.kt:63 */
|
2438 3514 | /// :param body_list typing.Optional\[typing.List\[str\]\]:
|
2439 3515 | /// :rtype None:
|
3516 + | /* StructureGenerator.kt:197 */
|
2440 3517 | #[allow(missing_docs)] // documentation missing in model
|
3518 + | /* RustType.kt:516 */
|
2441 3519 | #[derive(
|
2442 3520 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2443 3521 | )]
|
2444 - | pub struct MalformedListInput {
|
3522 + | pub /* StructureGenerator.kt:201 */ struct MalformedListInput {
|
3523 + | /* RustType.kt:516 */
|
2445 3524 | #[pyo3(get, set)]
|
3525 + | /* PythonServerStructureGenerator.kt:80 */
|
2446 3526 | /// :type typing.Optional\[typing.List\[str\]\]:
|
3527 + | /* StructureGenerator.kt:231 */
|
2447 3528 | #[allow(missing_docs)] // documentation missing in model
|
2448 3529 | pub body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3530 + | /* StructureGenerator.kt:201 */
|
2449 3531 | }
|
3532 + | /* StructureGenerator.kt:135 */
|
2450 3533 | impl MalformedListInput {
|
3534 + | /* StructureGenerator.kt:231 */
|
2451 3535 | #[allow(missing_docs)] // documentation missing in model
|
3536 + | /* StructureGenerator.kt:166 */
|
2452 3537 | pub fn body_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
3538 + | /* StructureGenerator.kt:169 */
|
2453 3539 | self.body_list.as_deref()
|
3540 + | /* StructureGenerator.kt:166 */
|
2454 3541 | }
|
3542 + | /* StructureGenerator.kt:135 */
|
2455 3543 | }
|
3544 + | /* RustType.kt:516 */
|
2456 3545 | #[allow(clippy::new_without_default)]
|
3546 + | /* RustType.kt:516 */
|
2457 3547 | #[allow(clippy::too_many_arguments)]
|
3548 + | /* RustType.kt:516 */
|
2458 3549 | #[::pyo3::pymethods]
|
3550 + | /* PythonServerStructureGenerator.kt:88 */
|
2459 3551 | impl MalformedListInput {
|
2460 3552 | #[new]
|
2461 3553 | pub fn new(body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
2462 3554 | Self { body_list }
|
2463 3555 | }
|
2464 3556 | fn __repr__(&self) -> String {
|
2465 3557 | format!("{self:?}")
|
2466 3558 | }
|
2467 3559 | fn __str__(&self) -> String {
|
2468 3560 | format!("{self:?}")
|
2469 3561 | }
|
2470 3562 | }
|
3563 + | /* PythonServerStructureGenerator.kt:111 */
|
2471 3564 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedListInput> {
|
2472 3565 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2473 3566 | ob.extract::<MalformedListInput>().map(Box::new)
|
2474 3567 | }
|
2475 3568 | }
|
2476 3569 |
|
2477 3570 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedListInput> {
|
2478 3571 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2479 3572 | (*self).into_py(py)
|
2480 3573 | }
|
2481 3574 | }
|
3575 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2482 3576 | impl crate::constrained::Constrained for crate::input::MalformedListInput {
|
2483 3577 | type Unconstrained = crate::input::malformed_list_input_internal::Builder;
|
2484 3578 | }
|
3579 + | /* ServerCodegenVisitor.kt:370 */
|
2485 3580 | impl MalformedListInput {
|
2486 - | /// Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
3581 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
3582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2487 3583 | pub fn builder() -> crate::input::malformed_list_input::Builder {
|
3584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2488 3585 | crate::input::malformed_list_input::Builder::default()
|
3586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2489 3587 | }
|
3588 + | /* ServerCodegenVisitor.kt:370 */
|
2490 3589 | }
|
2491 3590 |
|
3591 + | /* RustType.kt:516 */
|
2492 3592 | #[::pyo3::pyclass]
|
2493 - | /// :param boolean_in_body typing.Optional\[bool\]:
|
3593 + | /* PythonServerStructureGenerator.kt:63 */
|
2494 3594 | /// :param boolean_in_path bool:
|
3595 + | /// :param boolean_in_body typing.Optional\[bool\]:
|
2495 3596 | /// :param boolean_in_query typing.Optional\[bool\]:
|
2496 3597 | /// :param boolean_in_header typing.Optional\[bool\]:
|
2497 3598 | /// :rtype None:
|
3599 + | /* StructureGenerator.kt:197 */
|
2498 3600 | #[allow(missing_docs)] // documentation missing in model
|
3601 + | /* RustType.kt:516 */
|
2499 3602 | #[derive(
|
2500 3603 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2501 3604 | )]
|
2502 - | pub struct MalformedBooleanInput {
|
3605 + | pub /* StructureGenerator.kt:201 */ struct MalformedBooleanInput {
|
3606 + | /* RustType.kt:516 */
|
2503 3607 | #[pyo3(get, set)]
|
3608 + | /* PythonServerStructureGenerator.kt:80 */
|
2504 3609 | /// :type typing.Optional\[bool\]:
|
3610 + | /* StructureGenerator.kt:231 */
|
2505 3611 | #[allow(missing_docs)] // documentation missing in model
|
2506 3612 | pub boolean_in_body: ::std::option::Option<bool>,
|
3613 + | /* RustType.kt:516 */
|
2507 3614 | #[pyo3(get, set)]
|
3615 + | /* PythonServerStructureGenerator.kt:80 */
|
2508 3616 | /// :type bool:
|
3617 + | /* StructureGenerator.kt:231 */
|
2509 3618 | #[allow(missing_docs)] // documentation missing in model
|
2510 3619 | pub boolean_in_path: bool,
|
3620 + | /* RustType.kt:516 */
|
2511 3621 | #[pyo3(get, set)]
|
3622 + | /* PythonServerStructureGenerator.kt:80 */
|
2512 3623 | /// :type typing.Optional\[bool\]:
|
3624 + | /* StructureGenerator.kt:231 */
|
2513 3625 | #[allow(missing_docs)] // documentation missing in model
|
2514 3626 | pub boolean_in_query: ::std::option::Option<bool>,
|
3627 + | /* RustType.kt:516 */
|
2515 3628 | #[pyo3(get, set)]
|
3629 + | /* PythonServerStructureGenerator.kt:80 */
|
2516 3630 | /// :type typing.Optional\[bool\]:
|
3631 + | /* StructureGenerator.kt:231 */
|
2517 3632 | #[allow(missing_docs)] // documentation missing in model
|
2518 3633 | pub boolean_in_header: ::std::option::Option<bool>,
|
3634 + | /* StructureGenerator.kt:201 */
|
2519 3635 | }
|
3636 + | /* StructureGenerator.kt:135 */
|
2520 3637 | impl MalformedBooleanInput {
|
3638 + | /* StructureGenerator.kt:231 */
|
2521 3639 | #[allow(missing_docs)] // documentation missing in model
|
3640 + | /* StructureGenerator.kt:166 */
|
2522 3641 | pub fn boolean_in_body(&self) -> ::std::option::Option<bool> {
|
3642 + | /* StructureGenerator.kt:168 */
|
2523 3643 | self.boolean_in_body
|
3644 + | /* StructureGenerator.kt:166 */
|
2524 3645 | }
|
3646 + | /* StructureGenerator.kt:231 */
|
2525 3647 | #[allow(missing_docs)] // documentation missing in model
|
3648 + | /* StructureGenerator.kt:166 */
|
2526 3649 | pub fn boolean_in_path(&self) -> bool {
|
3650 + | /* StructureGenerator.kt:168 */
|
2527 3651 | self.boolean_in_path
|
3652 + | /* StructureGenerator.kt:166 */
|
2528 3653 | }
|
3654 + | /* StructureGenerator.kt:231 */
|
2529 3655 | #[allow(missing_docs)] // documentation missing in model
|
3656 + | /* StructureGenerator.kt:166 */
|
2530 3657 | pub fn boolean_in_query(&self) -> ::std::option::Option<bool> {
|
3658 + | /* StructureGenerator.kt:168 */
|
2531 3659 | self.boolean_in_query
|
3660 + | /* StructureGenerator.kt:166 */
|
2532 3661 | }
|
3662 + | /* StructureGenerator.kt:231 */
|
2533 3663 | #[allow(missing_docs)] // documentation missing in model
|
3664 + | /* StructureGenerator.kt:166 */
|
2534 3665 | pub fn boolean_in_header(&self) -> ::std::option::Option<bool> {
|
3666 + | /* StructureGenerator.kt:168 */
|
2535 3667 | self.boolean_in_header
|
3668 + | /* StructureGenerator.kt:166 */
|
2536 3669 | }
|
3670 + | /* StructureGenerator.kt:135 */
|
2537 3671 | }
|
3672 + | /* RustType.kt:516 */
|
2538 3673 | #[allow(clippy::new_without_default)]
|
3674 + | /* RustType.kt:516 */
|
2539 3675 | #[allow(clippy::too_many_arguments)]
|
3676 + | /* RustType.kt:516 */
|
2540 3677 | #[::pyo3::pymethods]
|
3678 + | /* PythonServerStructureGenerator.kt:88 */
|
2541 3679 | impl MalformedBooleanInput {
|
2542 3680 | #[new]
|
2543 3681 | pub fn new(
|
2544 - | boolean_in_body: ::std::option::Option<bool>,
|
2545 3682 | boolean_in_path: bool,
|
3683 + | boolean_in_body: ::std::option::Option<bool>,
|
2546 3684 | boolean_in_query: ::std::option::Option<bool>,
|
2547 3685 | boolean_in_header: ::std::option::Option<bool>,
|
2548 3686 | ) -> Self {
|
2549 3687 | Self {
|
2550 - | boolean_in_body,
|
2551 3688 | boolean_in_path,
|
3689 + | boolean_in_body,
|
2552 3690 | boolean_in_query,
|
2553 3691 | boolean_in_header,
|
2554 3692 | }
|
2555 3693 | }
|
2556 3694 | fn __repr__(&self) -> String {
|
2557 3695 | format!("{self:?}")
|
2558 3696 | }
|
2559 3697 | fn __str__(&self) -> String {
|
2560 3698 | format!("{self:?}")
|
2561 3699 | }
|
2562 3700 | }
|
3701 + | /* PythonServerStructureGenerator.kt:111 */
|
2563 3702 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedBooleanInput> {
|
2564 3703 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2565 3704 | ob.extract::<MalformedBooleanInput>().map(Box::new)
|
2566 3705 | }
|
2567 3706 | }
|
2568 3707 |
|
2569 3708 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedBooleanInput> {
|
2570 3709 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2571 3710 | (*self).into_py(py)
|
2572 3711 | }
|
2573 3712 | }
|
3713 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2574 3714 | impl crate::constrained::Constrained for crate::input::MalformedBooleanInput {
|
2575 3715 | type Unconstrained = crate::input::malformed_boolean_input_internal::Builder;
|
2576 3716 | }
|
3717 + | /* ServerCodegenVisitor.kt:370 */
|
2577 3718 | impl MalformedBooleanInput {
|
2578 - | /// Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
3719 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
3720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2579 3721 | pub fn builder() -> crate::input::malformed_boolean_input::Builder {
|
3722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2580 3723 | crate::input::malformed_boolean_input::Builder::default()
|
3724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2581 3725 | }
|
3726 + | /* ServerCodegenVisitor.kt:370 */
|
2582 3727 | }
|
2583 3728 |
|
3729 + | /* RustType.kt:516 */
|
2584 3730 | #[::pyo3::pyclass]
|
3731 + | /* PythonServerStructureGenerator.kt:63 */
|
2585 3732 | /// :param union typing.Optional\[rest_json.model.SimpleUnion\]:
|
2586 3733 | /// :rtype None:
|
3734 + | /* StructureGenerator.kt:197 */
|
2587 3735 | #[allow(missing_docs)] // documentation missing in model
|
3736 + | /* RustType.kt:516 */
|
2588 3737 | #[derive(
|
2589 3738 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2590 3739 | )]
|
2591 - | pub struct MalformedUnionInput {
|
3740 + | pub /* StructureGenerator.kt:201 */ struct MalformedUnionInput {
|
3741 + | /* RustType.kt:516 */
|
2592 3742 | #[pyo3(get, set)]
|
3743 + | /* PythonServerStructureGenerator.kt:80 */
|
2593 3744 | /// :type typing.Optional\[rest_json.model.SimpleUnion\]:
|
3745 + | /* StructureGenerator.kt:231 */
|
2594 3746 | #[allow(missing_docs)] // documentation missing in model
|
2595 3747 | pub union: ::std::option::Option<crate::model::SimpleUnion>,
|
3748 + | /* StructureGenerator.kt:201 */
|
2596 3749 | }
|
3750 + | /* StructureGenerator.kt:135 */
|
2597 3751 | impl MalformedUnionInput {
|
3752 + | /* StructureGenerator.kt:231 */
|
2598 3753 | #[allow(missing_docs)] // documentation missing in model
|
3754 + | /* StructureGenerator.kt:166 */
|
2599 3755 | pub fn union(&self) -> ::std::option::Option<&crate::model::SimpleUnion> {
|
3756 + | /* StructureGenerator.kt:170 */
|
2600 3757 | self.union.as_ref()
|
3758 + | /* StructureGenerator.kt:166 */
|
2601 3759 | }
|
3760 + | /* StructureGenerator.kt:135 */
|
2602 3761 | }
|
3762 + | /* RustType.kt:516 */
|
2603 3763 | #[allow(clippy::new_without_default)]
|
3764 + | /* RustType.kt:516 */
|
2604 3765 | #[allow(clippy::too_many_arguments)]
|
3766 + | /* RustType.kt:516 */
|
2605 3767 | #[::pyo3::pymethods]
|
3768 + | /* PythonServerStructureGenerator.kt:88 */
|
2606 3769 | impl MalformedUnionInput {
|
2607 3770 | #[new]
|
2608 3771 | pub fn new(union: ::std::option::Option<crate::model::SimpleUnion>) -> Self {
|
2609 3772 | Self { union }
|
2610 3773 | }
|
2611 3774 | fn __repr__(&self) -> String {
|
2612 3775 | format!("{self:?}")
|
2613 3776 | }
|
2614 3777 | fn __str__(&self) -> String {
|
2615 3778 | format!("{self:?}")
|
2616 3779 | }
|
2617 3780 | }
|
3781 + | /* PythonServerStructureGenerator.kt:111 */
|
2618 3782 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedUnionInput> {
|
2619 3783 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2620 3784 | ob.extract::<MalformedUnionInput>().map(Box::new)
|
2621 3785 | }
|
2622 3786 | }
|
2623 3787 |
|
2624 3788 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedUnionInput> {
|
2625 3789 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2626 3790 | (*self).into_py(py)
|
2627 3791 | }
|
2628 3792 | }
|
3793 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2629 3794 | impl crate::constrained::Constrained for crate::input::MalformedUnionInput {
|
2630 3795 | type Unconstrained = crate::input::malformed_union_input_internal::Builder;
|
2631 3796 | }
|
3797 + | /* ServerCodegenVisitor.kt:370 */
|
2632 3798 | impl MalformedUnionInput {
|
2633 - | /// Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
3799 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
3800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2634 3801 | pub fn builder() -> crate::input::malformed_union_input::Builder {
|
3802 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2635 3803 | crate::input::malformed_union_input::Builder::default()
|
3804 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2636 3805 | }
|
3806 + | /* ServerCodegenVisitor.kt:370 */
|
2637 3807 | }
|
2638 3808 |
|
3809 + | /* RustType.kt:516 */
|
2639 3810 | #[::pyo3::pyclass]
|
2640 - | /// :param integer_in_body typing.Optional\[int\]:
|
3811 + | /* PythonServerStructureGenerator.kt:63 */
|
2641 3812 | /// :param integer_in_path int:
|
3813 + | /// :param integer_in_body typing.Optional\[int\]:
|
2642 3814 | /// :param integer_in_query typing.Optional\[int\]:
|
2643 3815 | /// :param integer_in_header typing.Optional\[int\]:
|
2644 3816 | /// :rtype None:
|
3817 + | /* StructureGenerator.kt:197 */
|
2645 3818 | #[allow(missing_docs)] // documentation missing in model
|
3819 + | /* RustType.kt:516 */
|
2646 3820 | #[derive(
|
2647 3821 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2648 3822 | )]
|
2649 - | pub struct MalformedIntegerInput {
|
3823 + | pub /* StructureGenerator.kt:201 */ struct MalformedIntegerInput {
|
3824 + | /* RustType.kt:516 */
|
2650 3825 | #[pyo3(get, set)]
|
3826 + | /* PythonServerStructureGenerator.kt:80 */
|
2651 3827 | /// :type typing.Optional\[int\]:
|
3828 + | /* StructureGenerator.kt:231 */
|
2652 3829 | #[allow(missing_docs)] // documentation missing in model
|
2653 3830 | pub integer_in_body: ::std::option::Option<i32>,
|
3831 + | /* RustType.kt:516 */
|
2654 3832 | #[pyo3(get, set)]
|
3833 + | /* PythonServerStructureGenerator.kt:80 */
|
2655 3834 | /// :type int:
|
3835 + | /* StructureGenerator.kt:231 */
|
2656 3836 | #[allow(missing_docs)] // documentation missing in model
|
2657 3837 | pub integer_in_path: i32,
|
3838 + | /* RustType.kt:516 */
|
2658 3839 | #[pyo3(get, set)]
|
3840 + | /* PythonServerStructureGenerator.kt:80 */
|
2659 3841 | /// :type typing.Optional\[int\]:
|
3842 + | /* StructureGenerator.kt:231 */
|
2660 3843 | #[allow(missing_docs)] // documentation missing in model
|
2661 3844 | pub integer_in_query: ::std::option::Option<i32>,
|
3845 + | /* RustType.kt:516 */
|
2662 3846 | #[pyo3(get, set)]
|
3847 + | /* PythonServerStructureGenerator.kt:80 */
|
2663 3848 | /// :type typing.Optional\[int\]:
|
3849 + | /* StructureGenerator.kt:231 */
|
2664 3850 | #[allow(missing_docs)] // documentation missing in model
|
2665 3851 | pub integer_in_header: ::std::option::Option<i32>,
|
3852 + | /* StructureGenerator.kt:201 */
|
2666 3853 | }
|
3854 + | /* StructureGenerator.kt:135 */
|
2667 3855 | impl MalformedIntegerInput {
|
3856 + | /* StructureGenerator.kt:231 */
|
2668 3857 | #[allow(missing_docs)] // documentation missing in model
|
3858 + | /* StructureGenerator.kt:166 */
|
2669 3859 | pub fn integer_in_body(&self) -> ::std::option::Option<i32> {
|
3860 + | /* StructureGenerator.kt:168 */
|
2670 3861 | self.integer_in_body
|
3862 + | /* StructureGenerator.kt:166 */
|
2671 3863 | }
|
3864 + | /* StructureGenerator.kt:231 */
|
2672 3865 | #[allow(missing_docs)] // documentation missing in model
|
3866 + | /* StructureGenerator.kt:166 */
|
2673 3867 | pub fn integer_in_path(&self) -> i32 {
|
3868 + | /* StructureGenerator.kt:168 */
|
2674 3869 | self.integer_in_path
|
3870 + | /* StructureGenerator.kt:166 */
|
2675 3871 | }
|
3872 + | /* StructureGenerator.kt:231 */
|
2676 3873 | #[allow(missing_docs)] // documentation missing in model
|
3874 + | /* StructureGenerator.kt:166 */
|
2677 3875 | pub fn integer_in_query(&self) -> ::std::option::Option<i32> {
|
3876 + | /* StructureGenerator.kt:168 */
|
2678 3877 | self.integer_in_query
|
3878 + | /* StructureGenerator.kt:166 */
|
2679 3879 | }
|
3880 + | /* StructureGenerator.kt:231 */
|
2680 3881 | #[allow(missing_docs)] // documentation missing in model
|
3882 + | /* StructureGenerator.kt:166 */
|
2681 3883 | pub fn integer_in_header(&self) -> ::std::option::Option<i32> {
|
3884 + | /* StructureGenerator.kt:168 */
|
2682 3885 | self.integer_in_header
|
3886 + | /* StructureGenerator.kt:166 */
|
2683 3887 | }
|
3888 + | /* StructureGenerator.kt:135 */
|
2684 3889 | }
|
3890 + | /* RustType.kt:516 */
|
2685 3891 | #[allow(clippy::new_without_default)]
|
3892 + | /* RustType.kt:516 */
|
2686 3893 | #[allow(clippy::too_many_arguments)]
|
3894 + | /* RustType.kt:516 */
|
2687 3895 | #[::pyo3::pymethods]
|
3896 + | /* PythonServerStructureGenerator.kt:88 */
|
2688 3897 | impl MalformedIntegerInput {
|
2689 3898 | #[new]
|
2690 3899 | pub fn new(
|
2691 - | integer_in_body: ::std::option::Option<i32>,
|
2692 3900 | integer_in_path: i32,
|
3901 + | integer_in_body: ::std::option::Option<i32>,
|
2693 3902 | integer_in_query: ::std::option::Option<i32>,
|
2694 3903 | integer_in_header: ::std::option::Option<i32>,
|
2695 3904 | ) -> Self {
|
2696 3905 | Self {
|
2697 - | integer_in_body,
|
2698 3906 | integer_in_path,
|
3907 + | integer_in_body,
|
2699 3908 | integer_in_query,
|
2700 3909 | integer_in_header,
|
2701 3910 | }
|
2702 3911 | }
|
2703 3912 | fn __repr__(&self) -> String {
|
2704 3913 | format!("{self:?}")
|
2705 3914 | }
|
2706 3915 | fn __str__(&self) -> String {
|
2707 3916 | format!("{self:?}")
|
2708 3917 | }
|
2709 3918 | }
|
3919 + | /* PythonServerStructureGenerator.kt:111 */
|
2710 3920 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedIntegerInput> {
|
2711 3921 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2712 3922 | ob.extract::<MalformedIntegerInput>().map(Box::new)
|
2713 3923 | }
|
2714 3924 | }
|
2715 3925 |
|
2716 3926 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedIntegerInput> {
|
2717 3927 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2718 3928 | (*self).into_py(py)
|
2719 3929 | }
|
2720 3930 | }
|
3931 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2721 3932 | impl crate::constrained::Constrained for crate::input::MalformedIntegerInput {
|
2722 3933 | type Unconstrained = crate::input::malformed_integer_input_internal::Builder;
|
2723 3934 | }
|
3935 + | /* ServerCodegenVisitor.kt:370 */
|
2724 3936 | impl MalformedIntegerInput {
|
2725 - | /// Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
3937 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
3938 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2726 3939 | pub fn builder() -> crate::input::malformed_integer_input::Builder {
|
3940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2727 3941 | crate::input::malformed_integer_input::Builder::default()
|
3942 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2728 3943 | }
|
3944 + | /* ServerCodegenVisitor.kt:370 */
|
2729 3945 | }
|
2730 3946 |
|
3947 + | /* RustType.kt:516 */
|
2731 3948 | #[::pyo3::pyclass]
|
3949 + | /* PythonServerStructureGenerator.kt:63 */
|
2732 3950 | /// :param int typing.Optional\[int\]:
|
2733 3951 | /// :param float typing.Optional\[float\]:
|
2734 3952 | /// :rtype None:
|
3953 + | /* StructureGenerator.kt:197 */
|
2735 3954 | #[allow(missing_docs)] // documentation missing in model
|
3955 + | /* RustType.kt:516 */
|
2736 3956 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2737 - | pub struct MalformedRequestBodyInput {
|
3957 + | pub /* StructureGenerator.kt:201 */ struct MalformedRequestBodyInput {
|
3958 + | /* RustType.kt:516 */
|
2738 3959 | #[pyo3(get, set)]
|
3960 + | /* PythonServerStructureGenerator.kt:80 */
|
2739 3961 | /// :type typing.Optional\[int\]:
|
3962 + | /* StructureGenerator.kt:231 */
|
2740 3963 | #[allow(missing_docs)] // documentation missing in model
|
2741 3964 | pub int: ::std::option::Option<i32>,
|
3965 + | /* RustType.kt:516 */
|
2742 3966 | #[pyo3(get, set)]
|
3967 + | /* PythonServerStructureGenerator.kt:80 */
|
2743 3968 | /// :type typing.Optional\[float\]:
|
3969 + | /* StructureGenerator.kt:231 */
|
2744 3970 | #[allow(missing_docs)] // documentation missing in model
|
2745 3971 | pub float: ::std::option::Option<f32>,
|
3972 + | /* StructureGenerator.kt:201 */
|
2746 3973 | }
|
3974 + | /* StructureGenerator.kt:135 */
|
2747 3975 | impl MalformedRequestBodyInput {
|
3976 + | /* StructureGenerator.kt:231 */
|
2748 3977 | #[allow(missing_docs)] // documentation missing in model
|
3978 + | /* StructureGenerator.kt:166 */
|
2749 3979 | pub fn int(&self) -> ::std::option::Option<i32> {
|
3980 + | /* StructureGenerator.kt:168 */
|
2750 3981 | self.int
|
3982 + | /* StructureGenerator.kt:166 */
|
2751 3983 | }
|
3984 + | /* StructureGenerator.kt:231 */
|
2752 3985 | #[allow(missing_docs)] // documentation missing in model
|
3986 + | /* StructureGenerator.kt:166 */
|
2753 3987 | pub fn float(&self) -> ::std::option::Option<f32> {
|
3988 + | /* StructureGenerator.kt:168 */
|
2754 3989 | self.float
|
3990 + | /* StructureGenerator.kt:166 */
|
2755 3991 | }
|
3992 + | /* StructureGenerator.kt:135 */
|
2756 3993 | }
|
3994 + | /* RustType.kt:516 */
|
2757 3995 | #[allow(clippy::new_without_default)]
|
3996 + | /* RustType.kt:516 */
|
2758 3997 | #[allow(clippy::too_many_arguments)]
|
3998 + | /* RustType.kt:516 */
|
2759 3999 | #[::pyo3::pymethods]
|
4000 + | /* PythonServerStructureGenerator.kt:88 */
|
2760 4001 | impl MalformedRequestBodyInput {
|
2761 4002 | #[new]
|
2762 4003 | pub fn new(int: ::std::option::Option<i32>, float: ::std::option::Option<f32>) -> Self {
|
2763 4004 | Self { int, float }
|
2764 4005 | }
|
2765 4006 | fn __repr__(&self) -> String {
|
2766 4007 | format!("{self:?}")
|
2767 4008 | }
|
2768 4009 | fn __str__(&self) -> String {
|
2769 4010 | format!("{self:?}")
|
2770 4011 | }
|
2771 4012 | }
|
4013 + | /* PythonServerStructureGenerator.kt:111 */
|
2772 4014 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MalformedRequestBodyInput> {
|
2773 4015 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2774 4016 | ob.extract::<MalformedRequestBodyInput>().map(Box::new)
|
2775 4017 | }
|
2776 4018 | }
|
2777 4019 |
|
2778 4020 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MalformedRequestBodyInput> {
|
2779 4021 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2780 4022 | (*self).into_py(py)
|
2781 4023 | }
|
2782 4024 | }
|
4025 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2783 4026 | impl crate::constrained::Constrained for crate::input::MalformedRequestBodyInput {
|
2784 4027 | type Unconstrained = crate::input::malformed_request_body_input_internal::Builder;
|
2785 4028 | }
|
4029 + | /* ServerCodegenVisitor.kt:370 */
|
2786 4030 | impl MalformedRequestBodyInput {
|
2787 - | /// Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
4031 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
4032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2788 4033 | pub fn builder() -> crate::input::malformed_request_body_input::Builder {
|
4034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2789 4035 | crate::input::malformed_request_body_input::Builder::default()
|
4036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2790 4037 | }
|
4038 + | /* ServerCodegenVisitor.kt:370 */
|
2791 4039 | }
|
2792 4040 |
|
4041 + | /* RustType.kt:516 */
|
2793 4042 | #[::pyo3::pyclass]
|
4043 + | /* PythonServerStructureGenerator.kt:63 */
|
2794 4044 | /// :param foo typing.Optional\[str\]:
|
2795 4045 | /// :rtype None:
|
4046 + | /* StructureGenerator.kt:197 */
|
2796 4047 | #[allow(missing_docs)] // documentation missing in model
|
4048 + | /* RustType.kt:516 */
|
2797 4049 | #[derive(
|
2798 4050 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2799 4051 | )]
|
2800 - | pub struct HttpChecksumRequiredInput {
|
4052 + | pub /* StructureGenerator.kt:201 */ struct HttpChecksumRequiredInput {
|
4053 + | /* RustType.kt:516 */
|
2801 4054 | #[pyo3(get, set)]
|
4055 + | /* PythonServerStructureGenerator.kt:80 */
|
2802 4056 | /// :type typing.Optional\[str\]:
|
4057 + | /* StructureGenerator.kt:231 */
|
2803 4058 | #[allow(missing_docs)] // documentation missing in model
|
2804 4059 | pub foo: ::std::option::Option<::std::string::String>,
|
4060 + | /* StructureGenerator.kt:201 */
|
2805 4061 | }
|
4062 + | /* StructureGenerator.kt:135 */
|
2806 4063 | impl HttpChecksumRequiredInput {
|
4064 + | /* StructureGenerator.kt:231 */
|
2807 4065 | #[allow(missing_docs)] // documentation missing in model
|
4066 + | /* StructureGenerator.kt:166 */
|
2808 4067 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
4068 + | /* StructureGenerator.kt:169 */
|
2809 4069 | self.foo.as_deref()
|
4070 + | /* StructureGenerator.kt:166 */
|
2810 4071 | }
|
4072 + | /* StructureGenerator.kt:135 */
|
2811 4073 | }
|
4074 + | /* RustType.kt:516 */
|
2812 4075 | #[allow(clippy::new_without_default)]
|
4076 + | /* RustType.kt:516 */
|
2813 4077 | #[allow(clippy::too_many_arguments)]
|
4078 + | /* RustType.kt:516 */
|
2814 4079 | #[::pyo3::pymethods]
|
4080 + | /* PythonServerStructureGenerator.kt:88 */
|
2815 4081 | impl HttpChecksumRequiredInput {
|
2816 4082 | #[new]
|
2817 4083 | pub fn new(foo: ::std::option::Option<::std::string::String>) -> Self {
|
2818 4084 | Self { foo }
|
2819 4085 | }
|
2820 4086 | fn __repr__(&self) -> String {
|
2821 4087 | format!("{self:?}")
|
2822 4088 | }
|
2823 4089 | fn __str__(&self) -> String {
|
2824 4090 | format!("{self:?}")
|
2825 4091 | }
|
2826 4092 | }
|
4093 + | /* PythonServerStructureGenerator.kt:111 */
|
2827 4094 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpChecksumRequiredInput> {
|
2828 4095 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2829 4096 | ob.extract::<HttpChecksumRequiredInput>().map(Box::new)
|
2830 4097 | }
|
2831 4098 | }
|
2832 4099 |
|
2833 4100 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpChecksumRequiredInput> {
|
2834 4101 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2835 4102 | (*self).into_py(py)
|
2836 4103 | }
|
2837 4104 | }
|
4105 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2838 4106 | impl crate::constrained::Constrained for crate::input::HttpChecksumRequiredInput {
|
2839 4107 | type Unconstrained = crate::input::http_checksum_required_input_internal::Builder;
|
2840 4108 | }
|
4109 + | /* ServerCodegenVisitor.kt:370 */
|
2841 4110 | impl HttpChecksumRequiredInput {
|
2842 - | /// Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
4111 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
4112 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2843 4113 | pub fn builder() -> crate::input::http_checksum_required_input::Builder {
|
4114 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2844 4115 | crate::input::http_checksum_required_input::Builder::default()
|
4116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2845 4117 | }
|
4118 + | /* ServerCodegenVisitor.kt:370 */
|
2846 4119 | }
|
2847 4120 |
|
4121 + | /* RustType.kt:516 */
|
2848 4122 | #[::pyo3::pyclass]
|
4123 + | /* PythonServerStructureGenerator.kt:63 */
|
2849 4124 | /// :rtype None:
|
4125 + | /* StructureGenerator.kt:197 */
|
2850 4126 | #[allow(missing_docs)] // documentation missing in model
|
4127 + | /* RustType.kt:516 */
|
2851 4128 | #[derive(
|
2852 4129 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2853 4130 | )]
|
2854 - | pub struct HostWithPathOperationInput {}
|
4131 + | pub /* StructureGenerator.kt:201 */ struct HostWithPathOperationInput {/* StructureGenerator.kt:201 */}
|
4132 + | /* RustType.kt:516 */
|
2855 4133 | #[allow(clippy::new_without_default)]
|
4134 + | /* RustType.kt:516 */
|
2856 4135 | #[allow(clippy::too_many_arguments)]
|
4136 + | /* RustType.kt:516 */
|
2857 4137 | #[::pyo3::pymethods]
|
4138 + | /* PythonServerStructureGenerator.kt:88 */
|
2858 4139 | impl HostWithPathOperationInput {
|
2859 4140 | #[new]
|
2860 4141 | pub fn new() -> Self {
|
2861 4142 | Self {}
|
2862 4143 | }
|
2863 4144 | fn __repr__(&self) -> String {
|
2864 4145 | format!("{self:?}")
|
2865 4146 | }
|
2866 4147 | fn __str__(&self) -> String {
|
2867 4148 | format!("{self:?}")
|
2868 4149 | }
|
2869 4150 | }
|
4151 + | /* PythonServerStructureGenerator.kt:111 */
|
2870 4152 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HostWithPathOperationInput> {
|
2871 4153 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2872 4154 | ob.extract::<HostWithPathOperationInput>().map(Box::new)
|
2873 4155 | }
|
2874 4156 | }
|
2875 4157 |
|
2876 4158 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HostWithPathOperationInput> {
|
2877 4159 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2878 4160 | (*self).into_py(py)
|
2879 4161 | }
|
2880 4162 | }
|
4163 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2881 4164 | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
2882 4165 | type Unconstrained = crate::input::host_with_path_operation_input_internal::Builder;
|
2883 4166 | }
|
4167 + | /* ServerCodegenVisitor.kt:370 */
|
2884 4168 | impl HostWithPathOperationInput {
|
2885 - | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
4169 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
4170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2886 4171 | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
4172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2887 4173 | crate::input::host_with_path_operation_input::Builder::default()
|
4174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2888 4175 | }
|
4176 + | /* ServerCodegenVisitor.kt:370 */
|
2889 4177 | }
|
2890 4178 |
|
4179 + | /* RustType.kt:516 */
|
2891 4180 | #[::pyo3::pyclass]
|
4181 + | /* PythonServerStructureGenerator.kt:63 */
|
2892 4182 | /// :param label str:
|
2893 4183 | /// :rtype None:
|
4184 + | /* StructureGenerator.kt:197 */
|
2894 4185 | #[allow(missing_docs)] // documentation missing in model
|
4186 + | /* RustType.kt:516 */
|
2895 4187 | #[derive(
|
2896 4188 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2897 4189 | )]
|
2898 - | pub struct EndpointWithHostLabelOperationInput {
|
4190 + | pub /* StructureGenerator.kt:201 */ struct EndpointWithHostLabelOperationInput {
|
4191 + | /* RustType.kt:516 */
|
2899 4192 | #[pyo3(get, set)]
|
4193 + | /* PythonServerStructureGenerator.kt:80 */
|
2900 4194 | /// :type str:
|
4195 + | /* StructureGenerator.kt:231 */
|
2901 4196 | #[allow(missing_docs)] // documentation missing in model
|
2902 4197 | pub label: ::std::string::String,
|
4198 + | /* StructureGenerator.kt:201 */
|
2903 4199 | }
|
4200 + | /* StructureGenerator.kt:135 */
|
2904 4201 | impl EndpointWithHostLabelOperationInput {
|
4202 + | /* StructureGenerator.kt:231 */
|
2905 4203 | #[allow(missing_docs)] // documentation missing in model
|
4204 + | /* StructureGenerator.kt:166 */
|
2906 4205 | pub fn label(&self) -> &str {
|
4206 + | /* StructureGenerator.kt:171 */
|
2907 4207 | use std::ops::Deref;
|
2908 4208 | self.label.deref()
|
4209 + | /* StructureGenerator.kt:166 */
|
2909 4210 | }
|
4211 + | /* StructureGenerator.kt:135 */
|
2910 4212 | }
|
4213 + | /* RustType.kt:516 */
|
2911 4214 | #[allow(clippy::new_without_default)]
|
4215 + | /* RustType.kt:516 */
|
2912 4216 | #[allow(clippy::too_many_arguments)]
|
4217 + | /* RustType.kt:516 */
|
2913 4218 | #[::pyo3::pymethods]
|
4219 + | /* PythonServerStructureGenerator.kt:88 */
|
2914 4220 | impl EndpointWithHostLabelOperationInput {
|
2915 4221 | #[new]
|
2916 4222 | pub fn new(label: ::std::string::String) -> Self {
|
2917 4223 | Self { label }
|
2918 4224 | }
|
2919 4225 | fn __repr__(&self) -> String {
|
2920 4226 | format!("{self:?}")
|
2921 4227 | }
|
2922 4228 | fn __str__(&self) -> String {
|
2923 4229 | format!("{self:?}")
|
2924 4230 | }
|
2925 4231 | }
|
4232 + | /* PythonServerStructureGenerator.kt:111 */
|
2926 4233 | impl<'source> ::pyo3::FromPyObject<'source>
|
2927 4234 | for std::boxed::Box<EndpointWithHostLabelOperationInput>
|
2928 4235 | {
|
2929 4236 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2930 4237 | ob.extract::<EndpointWithHostLabelOperationInput>()
|
2931 4238 | .map(Box::new)
|
2932 4239 | }
|
2933 4240 | }
|
2934 4241 |
|
2935 4242 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointWithHostLabelOperationInput> {
|
2936 4243 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2937 4244 | (*self).into_py(py)
|
2938 4245 | }
|
2939 4246 | }
|
4247 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2940 4248 | impl crate::constrained::Constrained for crate::input::EndpointWithHostLabelOperationInput {
|
2941 4249 | type Unconstrained = crate::input::endpoint_with_host_label_operation_input_internal::Builder;
|
2942 4250 | }
|
4251 + | /* ServerCodegenVisitor.kt:370 */
|
2943 4252 | impl EndpointWithHostLabelOperationInput {
|
2944 - | /// Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
4253 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
4254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2945 4255 | pub fn builder() -> crate::input::endpoint_with_host_label_operation_input::Builder {
|
4256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2946 4257 | crate::input::endpoint_with_host_label_operation_input::Builder::default()
|
4258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2947 4259 | }
|
4260 + | /* ServerCodegenVisitor.kt:370 */
|
2948 4261 | }
|
2949 4262 |
|
4263 + | /* RustType.kt:516 */
|
2950 4264 | #[::pyo3::pyclass]
|
4265 + | /* PythonServerStructureGenerator.kt:63 */
|
2951 4266 | /// :rtype None:
|
4267 + | /* StructureGenerator.kt:197 */
|
2952 4268 | #[allow(missing_docs)] // documentation missing in model
|
4269 + | /* RustType.kt:516 */
|
2953 4270 | #[derive(
|
2954 4271 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2955 4272 | )]
|
2956 - | pub struct EndpointOperationInput {}
|
4273 + | pub /* StructureGenerator.kt:201 */ struct EndpointOperationInput {/* StructureGenerator.kt:201 */}
|
4274 + | /* RustType.kt:516 */
|
2957 4275 | #[allow(clippy::new_without_default)]
|
4276 + | /* RustType.kt:516 */
|
2958 4277 | #[allow(clippy::too_many_arguments)]
|
4278 + | /* RustType.kt:516 */
|
2959 4279 | #[::pyo3::pymethods]
|
4280 + | /* PythonServerStructureGenerator.kt:88 */
|
2960 4281 | impl EndpointOperationInput {
|
2961 4282 | #[new]
|
2962 4283 | pub fn new() -> Self {
|
2963 4284 | Self {}
|
2964 4285 | }
|
2965 4286 | fn __repr__(&self) -> String {
|
2966 4287 | format!("{self:?}")
|
2967 4288 | }
|
2968 4289 | fn __str__(&self) -> String {
|
2969 4290 | format!("{self:?}")
|
2970 4291 | }
|
2971 4292 | }
|
4293 + | /* PythonServerStructureGenerator.kt:111 */
|
2972 4294 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EndpointOperationInput> {
|
2973 4295 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2974 4296 | ob.extract::<EndpointOperationInput>().map(Box::new)
|
2975 4297 | }
|
2976 4298 | }
|
2977 4299 |
|
2978 4300 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointOperationInput> {
|
2979 4301 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2980 4302 | (*self).into_py(py)
|
2981 4303 | }
|
2982 4304 | }
|
4305 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2983 4306 | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
2984 4307 | type Unconstrained = crate::input::endpoint_operation_input_internal::Builder;
|
2985 4308 | }
|
4309 + | /* ServerCodegenVisitor.kt:370 */
|
2986 4310 | impl EndpointOperationInput {
|
2987 - | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
4311 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
4312 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2988 4313 | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
4314 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
2989 4315 | crate::input::endpoint_operation_input::Builder::default()
|
4316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
2990 4317 | }
|
4318 + | /* ServerCodegenVisitor.kt:370 */
|
2991 4319 | }
|
2992 4320 |
|
4321 + | /* RustType.kt:516 */
|
2993 4322 | #[::pyo3::pyclass]
|
4323 + | /* PythonServerStructureGenerator.kt:63 */
|
2994 4324 | /// :param value typing.Optional\[rest_json.model.UnionWithJsonName\]:
|
2995 4325 | /// :rtype None:
|
4326 + | /* StructureGenerator.kt:197 */
|
2996 4327 | #[allow(missing_docs)] // documentation missing in model
|
4328 + | /* RustType.kt:516 */
|
2997 4329 | #[derive(
|
2998 4330 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2999 4331 | )]
|
3000 - | pub struct PostUnionWithJsonNameInput {
|
4332 + | pub /* StructureGenerator.kt:201 */ struct PostUnionWithJsonNameInput {
|
4333 + | /* RustType.kt:516 */
|
3001 4334 | #[pyo3(get, set)]
|
4335 + | /* PythonServerStructureGenerator.kt:80 */
|
3002 4336 | /// :type typing.Optional\[rest_json.model.UnionWithJsonName\]:
|
4337 + | /* StructureGenerator.kt:231 */
|
3003 4338 | #[allow(missing_docs)] // documentation missing in model
|
3004 4339 | pub value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
4340 + | /* StructureGenerator.kt:201 */
|
3005 4341 | }
|
4342 + | /* StructureGenerator.kt:135 */
|
3006 4343 | impl PostUnionWithJsonNameInput {
|
4344 + | /* StructureGenerator.kt:231 */
|
3007 4345 | #[allow(missing_docs)] // documentation missing in model
|
4346 + | /* StructureGenerator.kt:166 */
|
3008 4347 | pub fn value(&self) -> ::std::option::Option<&crate::model::UnionWithJsonName> {
|
4348 + | /* StructureGenerator.kt:170 */
|
3009 4349 | self.value.as_ref()
|
4350 + | /* StructureGenerator.kt:166 */
|
3010 4351 | }
|
4352 + | /* StructureGenerator.kt:135 */
|
3011 4353 | }
|
4354 + | /* RustType.kt:516 */
|
3012 4355 | #[allow(clippy::new_without_default)]
|
4356 + | /* RustType.kt:516 */
|
3013 4357 | #[allow(clippy::too_many_arguments)]
|
4358 + | /* RustType.kt:516 */
|
3014 4359 | #[::pyo3::pymethods]
|
4360 + | /* PythonServerStructureGenerator.kt:88 */
|
3015 4361 | impl PostUnionWithJsonNameInput {
|
3016 4362 | #[new]
|
3017 4363 | pub fn new(value: ::std::option::Option<crate::model::UnionWithJsonName>) -> Self {
|
3018 4364 | Self { value }
|
3019 4365 | }
|
3020 4366 | fn __repr__(&self) -> String {
|
3021 4367 | format!("{self:?}")
|
3022 4368 | }
|
3023 4369 | fn __str__(&self) -> String {
|
3024 4370 | format!("{self:?}")
|
3025 4371 | }
|
3026 4372 | }
|
4373 + | /* PythonServerStructureGenerator.kt:111 */
|
3027 4374 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PostUnionWithJsonNameInput> {
|
3028 4375 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3029 4376 | ob.extract::<PostUnionWithJsonNameInput>().map(Box::new)
|
3030 4377 | }
|
3031 4378 | }
|
3032 4379 |
|
3033 4380 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PostUnionWithJsonNameInput> {
|
3034 4381 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3035 4382 | (*self).into_py(py)
|
3036 4383 | }
|
3037 4384 | }
|
4385 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3038 4386 | impl crate::constrained::Constrained for crate::input::PostUnionWithJsonNameInput {
|
3039 4387 | type Unconstrained = crate::input::post_union_with_json_name_input_internal::Builder;
|
3040 4388 | }
|
4389 + | /* ServerCodegenVisitor.kt:370 */
|
3041 4390 | impl PostUnionWithJsonNameInput {
|
3042 - | /// Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
4391 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
4392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3043 4393 | pub fn builder() -> crate::input::post_union_with_json_name_input::Builder {
|
4394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3044 4395 | crate::input::post_union_with_json_name_input::Builder::default()
|
4396 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3045 4397 | }
|
4398 + | /* ServerCodegenVisitor.kt:370 */
|
3046 4399 | }
|
3047 4400 |
|
4401 + | /* RustType.kt:516 */
|
3048 4402 | #[::pyo3::pyclass]
|
4403 + | /* PythonServerStructureGenerator.kt:63 */
|
3049 4404 | /// :param action typing.Optional\[rest_json.model.PlayerAction\]:
|
3050 4405 | /// :rtype None:
|
4406 + | /* StructureGenerator.kt:197 */
|
3051 4407 | #[allow(missing_docs)] // documentation missing in model
|
4408 + | /* RustType.kt:516 */
|
3052 4409 | #[derive(
|
3053 4410 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3054 4411 | )]
|
3055 - | pub struct PostPlayerActionInput {
|
4412 + | pub /* StructureGenerator.kt:201 */ struct PostPlayerActionInput {
|
4413 + | /* RustType.kt:516 */
|
3056 4414 | #[pyo3(get, set)]
|
4415 + | /* PythonServerStructureGenerator.kt:80 */
|
3057 4416 | /// :type typing.Optional\[rest_json.model.PlayerAction\]:
|
4417 + | /* StructureGenerator.kt:231 */
|
3058 4418 | #[allow(missing_docs)] // documentation missing in model
|
3059 4419 | pub action: ::std::option::Option<crate::model::PlayerAction>,
|
4420 + | /* StructureGenerator.kt:201 */
|
3060 4421 | }
|
4422 + | /* StructureGenerator.kt:135 */
|
3061 4423 | impl PostPlayerActionInput {
|
4424 + | /* StructureGenerator.kt:231 */
|
3062 4425 | #[allow(missing_docs)] // documentation missing in model
|
4426 + | /* StructureGenerator.kt:166 */
|
3063 4427 | pub fn action(&self) -> ::std::option::Option<&crate::model::PlayerAction> {
|
4428 + | /* StructureGenerator.kt:170 */
|
3064 4429 | self.action.as_ref()
|
4430 + | /* StructureGenerator.kt:166 */
|
3065 4431 | }
|
4432 + | /* StructureGenerator.kt:135 */
|
3066 4433 | }
|
4434 + | /* RustType.kt:516 */
|
3067 4435 | #[allow(clippy::new_without_default)]
|
4436 + | /* RustType.kt:516 */
|
3068 4437 | #[allow(clippy::too_many_arguments)]
|
4438 + | /* RustType.kt:516 */
|
3069 4439 | #[::pyo3::pymethods]
|
4440 + | /* PythonServerStructureGenerator.kt:88 */
|
3070 4441 | impl PostPlayerActionInput {
|
3071 4442 | #[new]
|
3072 4443 | pub fn new(action: ::std::option::Option<crate::model::PlayerAction>) -> Self {
|
3073 4444 | Self { action }
|
3074 4445 | }
|
3075 4446 | fn __repr__(&self) -> String {
|
3076 4447 | format!("{self:?}")
|
3077 4448 | }
|
3078 4449 | fn __str__(&self) -> String {
|
3079 4450 | format!("{self:?}")
|
3080 4451 | }
|
3081 4452 | }
|
4453 + | /* PythonServerStructureGenerator.kt:111 */
|
3082 4454 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PostPlayerActionInput> {
|
3083 4455 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3084 4456 | ob.extract::<PostPlayerActionInput>().map(Box::new)
|
3085 4457 | }
|
3086 4458 | }
|
3087 4459 |
|
3088 4460 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PostPlayerActionInput> {
|
3089 4461 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3090 4462 | (*self).into_py(py)
|
3091 4463 | }
|
3092 4464 | }
|
4465 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3093 4466 | impl crate::constrained::Constrained for crate::input::PostPlayerActionInput {
|
3094 4467 | type Unconstrained = crate::input::post_player_action_input_internal::Builder;
|
3095 4468 | }
|
4469 + | /* ServerCodegenVisitor.kt:370 */
|
3096 4470 | impl PostPlayerActionInput {
|
3097 - | /// Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
4471 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
4472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3098 4473 | pub fn builder() -> crate::input::post_player_action_input::Builder {
|
4474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3099 4475 | crate::input::post_player_action_input::Builder::default()
|
4476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3100 4477 | }
|
4478 + | /* ServerCodegenVisitor.kt:370 */
|
3101 4479 | }
|
3102 4480 |
|
4481 + | /* RustType.kt:516 */
|
3103 4482 | #[::pyo3::pyclass]
|
4483 + | /* PythonServerStructureGenerator.kt:63 */
|
3104 4484 | /// :param contents typing.Optional\[rest_json.model.MyUnion\]:
|
3105 4485 | /// :rtype None:
|
3106 - | /// A shared structure that contains a single union member.
|
4486 + | /// /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
|
4487 + | /* RustType.kt:516 */
|
3107 4488 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3108 - | pub struct JsonUnionsInput {
|
4489 + | pub /* StructureGenerator.kt:201 */ struct JsonUnionsInput {
|
4490 + | /* RustType.kt:516 */
|
3109 4491 | #[pyo3(get, set)]
|
4492 + | /* PythonServerStructureGenerator.kt:80 */
|
3110 4493 | /// :type typing.Optional\[rest_json.model.MyUnion\]:
|
3111 - | /// A union with a representative set of types for members.
|
4494 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
3112 4495 | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
4496 + | /* StructureGenerator.kt:201 */
|
3113 4497 | }
|
4498 + | /* StructureGenerator.kt:135 */
|
3114 4499 | impl JsonUnionsInput {
|
3115 - | /// A union with a representative set of types for members.
|
4500 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
4501 + | /* StructureGenerator.kt:166 */
|
3116 4502 | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
4503 + | /* StructureGenerator.kt:170 */
|
3117 4504 | self.contents.as_ref()
|
4505 + | /* StructureGenerator.kt:166 */
|
3118 4506 | }
|
4507 + | /* StructureGenerator.kt:135 */
|
3119 4508 | }
|
4509 + | /* RustType.kt:516 */
|
3120 4510 | #[allow(clippy::new_without_default)]
|
4511 + | /* RustType.kt:516 */
|
3121 4512 | #[allow(clippy::too_many_arguments)]
|
4513 + | /* RustType.kt:516 */
|
3122 4514 | #[::pyo3::pymethods]
|
4515 + | /* PythonServerStructureGenerator.kt:88 */
|
3123 4516 | impl JsonUnionsInput {
|
3124 4517 | #[new]
|
3125 4518 | pub fn new(contents: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
3126 4519 | Self { contents }
|
3127 4520 | }
|
3128 4521 | fn __repr__(&self) -> String {
|
3129 4522 | format!("{self:?}")
|
3130 4523 | }
|
3131 4524 | fn __str__(&self) -> String {
|
3132 4525 | format!("{self:?}")
|
3133 4526 | }
|
3134 4527 | }
|
4528 + | /* PythonServerStructureGenerator.kt:111 */
|
3135 4529 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonUnionsInput> {
|
3136 4530 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3137 4531 | ob.extract::<JsonUnionsInput>().map(Box::new)
|
3138 4532 | }
|
3139 4533 | }
|
3140 4534 |
|
3141 4535 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonUnionsInput> {
|
3142 4536 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3143 4537 | (*self).into_py(py)
|
3144 4538 | }
|
3145 4539 | }
|
4540 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3146 4541 | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
3147 4542 | type Unconstrained = crate::input::json_unions_input_internal::Builder;
|
3148 4543 | }
|
4544 + | /* ServerCodegenVisitor.kt:370 */
|
3149 4545 | impl JsonUnionsInput {
|
3150 - | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
4546 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
4547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3151 4548 | pub fn builder() -> crate::input::json_unions_input::Builder {
|
4549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3152 4550 | crate::input::json_unions_input::Builder::default()
|
4551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3153 4552 | }
|
4553 + | /* ServerCodegenVisitor.kt:370 */
|
3154 4554 | }
|
3155 4555 |
|
4556 + | /* RustType.kt:516 */
|
3156 4557 | #[::pyo3::pyclass]
|
4558 + | /* PythonServerStructureGenerator.kt:63 */
|
3157 4559 | /// :param doc_valued_map typing.Optional\[typing.Dict\[str, rest_json.types.Document\]\]:
|
3158 4560 | /// :rtype None:
|
4561 + | /* StructureGenerator.kt:197 */
|
3159 4562 | #[allow(missing_docs)] // documentation missing in model
|
4563 + | /* RustType.kt:516 */
|
3160 4564 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3161 - | pub struct DocumentTypeAsMapValueInput {
|
4565 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsMapValueInput {
|
4566 + | /* RustType.kt:516 */
|
3162 4567 | #[pyo3(get, set)]
|
4568 + | /* PythonServerStructureGenerator.kt:80 */
|
3163 4569 | /// :type typing.Optional\[typing.Dict\[str, rest_json.types.Document\]\]:
|
4570 + | /* StructureGenerator.kt:231 */
|
3164 4571 | #[allow(missing_docs)] // documentation missing in model
|
3165 4572 | pub doc_valued_map: ::std::option::Option<
|
3166 4573 | ::std::collections::HashMap<
|
3167 4574 | ::std::string::String,
|
3168 4575 | ::aws_smithy_http_server_python::types::Document,
|
3169 4576 | >,
|
3170 4577 | >,
|
4578 + | /* StructureGenerator.kt:201 */
|
3171 4579 | }
|
4580 + | /* StructureGenerator.kt:135 */
|
3172 4581 | impl DocumentTypeAsMapValueInput {
|
4582 + | /* StructureGenerator.kt:231 */
|
3173 4583 | #[allow(missing_docs)] // documentation missing in model
|
4584 + | /* StructureGenerator.kt:166 */
|
3174 4585 | pub fn doc_valued_map(
|
3175 4586 | &self,
|
3176 4587 | ) -> ::std::option::Option<
|
3177 4588 | &::std::collections::HashMap<
|
3178 4589 | ::std::string::String,
|
3179 4590 | ::aws_smithy_http_server_python::types::Document,
|
3180 4591 | >,
|
3181 4592 | > {
|
4593 + | /* StructureGenerator.kt:170 */
|
3182 4594 | self.doc_valued_map.as_ref()
|
4595 + | /* StructureGenerator.kt:166 */
|
3183 4596 | }
|
4597 + | /* StructureGenerator.kt:135 */
|
3184 4598 | }
|
4599 + | /* RustType.kt:516 */
|
3185 4600 | #[allow(clippy::new_without_default)]
|
4601 + | /* RustType.kt:516 */
|
3186 4602 | #[allow(clippy::too_many_arguments)]
|
4603 + | /* RustType.kt:516 */
|
3187 4604 | #[::pyo3::pymethods]
|
4605 + | /* PythonServerStructureGenerator.kt:88 */
|
3188 4606 | impl DocumentTypeAsMapValueInput {
|
3189 4607 | #[new]
|
3190 4608 | pub fn new(
|
3191 4609 | doc_valued_map: ::std::option::Option<
|
3192 4610 | ::std::collections::HashMap<
|
3193 4611 | ::std::string::String,
|
3194 4612 | ::aws_smithy_http_server_python::types::Document,
|
3195 4613 | >,
|
3196 4614 | >,
|
3197 4615 | ) -> Self {
|
3198 4616 | Self { doc_valued_map }
|
3199 4617 | }
|
3200 4618 | fn __repr__(&self) -> String {
|
3201 4619 | format!("{self:?}")
|
3202 4620 | }
|
3203 4621 | fn __str__(&self) -> String {
|
3204 4622 | format!("{self:?}")
|
3205 4623 | }
|
3206 4624 | }
|
4625 + | /* PythonServerStructureGenerator.kt:111 */
|
3207 4626 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DocumentTypeAsMapValueInput> {
|
3208 4627 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3209 4628 | ob.extract::<DocumentTypeAsMapValueInput>().map(Box::new)
|
3210 4629 | }
|
3211 4630 | }
|
3212 4631 |
|
3213 4632 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DocumentTypeAsMapValueInput> {
|
3214 4633 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3215 4634 | (*self).into_py(py)
|
3216 4635 | }
|
3217 4636 | }
|
4637 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3218 4638 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsMapValueInput {
|
3219 4639 | type Unconstrained = crate::input::document_type_as_map_value_input_internal::Builder;
|
3220 4640 | }
|
4641 + | /* ServerCodegenVisitor.kt:370 */
|
3221 4642 | impl DocumentTypeAsMapValueInput {
|
3222 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
4643 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
4644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3223 4645 | pub fn builder() -> crate::input::document_type_as_map_value_input::Builder {
|
4646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3224 4647 | crate::input::document_type_as_map_value_input::Builder::default()
|
4648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3225 4649 | }
|
4650 + | /* ServerCodegenVisitor.kt:370 */
|
3226 4651 | }
|
3227 4652 |
|
4653 + | /* RustType.kt:516 */
|
3228 4654 | #[::pyo3::pyclass]
|
4655 + | /* PythonServerStructureGenerator.kt:63 */
|
3229 4656 | /// :param document_value typing.Optional\[rest_json.types.Document\]:
|
3230 4657 | /// :rtype None:
|
4658 + | /* StructureGenerator.kt:197 */
|
3231 4659 | #[allow(missing_docs)] // documentation missing in model
|
4660 + | /* RustType.kt:516 */
|
3232 4661 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3233 - | pub struct DocumentTypeAsPayloadInput {
|
4662 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsPayloadInput {
|
4663 + | /* RustType.kt:516 */
|
3234 4664 | #[pyo3(get, set)]
|
4665 + | /* PythonServerStructureGenerator.kt:80 */
|
3235 4666 | /// :type typing.Optional\[rest_json.types.Document\]:
|
4667 + | /* StructureGenerator.kt:231 */
|
3236 4668 | #[allow(missing_docs)] // documentation missing in model
|
3237 4669 | pub document_value: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
4670 + | /* StructureGenerator.kt:201 */
|
3238 4671 | }
|
4672 + | /* StructureGenerator.kt:135 */
|
3239 4673 | impl DocumentTypeAsPayloadInput {
|
4674 + | /* StructureGenerator.kt:231 */
|
3240 4675 | #[allow(missing_docs)] // documentation missing in model
|
4676 + | /* StructureGenerator.kt:166 */
|
3241 4677 | pub fn document_value(
|
3242 4678 | &self,
|
3243 4679 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Document> {
|
4680 + | /* StructureGenerator.kt:170 */
|
3244 4681 | self.document_value.as_ref()
|
4682 + | /* StructureGenerator.kt:166 */
|
3245 4683 | }
|
4684 + | /* StructureGenerator.kt:135 */
|
3246 4685 | }
|
4686 + | /* RustType.kt:516 */
|
3247 4687 | #[allow(clippy::new_without_default)]
|
4688 + | /* RustType.kt:516 */
|
3248 4689 | #[allow(clippy::too_many_arguments)]
|
4690 + | /* RustType.kt:516 */
|
3249 4691 | #[::pyo3::pymethods]
|
4692 + | /* PythonServerStructureGenerator.kt:88 */
|
3250 4693 | impl DocumentTypeAsPayloadInput {
|
3251 4694 | #[new]
|
3252 4695 | pub fn new(
|
3253 4696 | document_value: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
3254 4697 | ) -> Self {
|
3255 4698 | Self { document_value }
|
3256 4699 | }
|
3257 4700 | fn __repr__(&self) -> String {
|
3258 4701 | format!("{self:?}")
|
3259 4702 | }
|
3260 4703 | fn __str__(&self) -> String {
|
3261 4704 | format!("{self:?}")
|
3262 4705 | }
|
3263 4706 | }
|
4707 + | /* PythonServerStructureGenerator.kt:111 */
|
3264 4708 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DocumentTypeAsPayloadInput> {
|
3265 4709 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3266 4710 | ob.extract::<DocumentTypeAsPayloadInput>().map(Box::new)
|
3267 4711 | }
|
3268 4712 | }
|
3269 4713 |
|
3270 4714 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DocumentTypeAsPayloadInput> {
|
3271 4715 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3272 4716 | (*self).into_py(py)
|
3273 4717 | }
|
3274 4718 | }
|
4719 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3275 4720 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsPayloadInput {
|
3276 4721 | type Unconstrained = crate::input::document_type_as_payload_input_internal::Builder;
|
3277 4722 | }
|
4723 + | /* ServerCodegenVisitor.kt:370 */
|
3278 4724 | impl DocumentTypeAsPayloadInput {
|
3279 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
4725 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
4726 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3280 4727 | pub fn builder() -> crate::input::document_type_as_payload_input::Builder {
|
4728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3281 4729 | crate::input::document_type_as_payload_input::Builder::default()
|
4730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3282 4731 | }
|
4732 + | /* ServerCodegenVisitor.kt:370 */
|
3283 4733 | }
|
3284 4734 |
|
4735 + | /* RustType.kt:516 */
|
3285 4736 | #[::pyo3::pyclass]
|
4737 + | /* PythonServerStructureGenerator.kt:63 */
|
3286 4738 | /// :param string_value typing.Optional\[str\]:
|
3287 4739 | /// :param document_value typing.Optional\[rest_json.types.Document\]:
|
3288 4740 | /// :rtype None:
|
4741 + | /* StructureGenerator.kt:197 */
|
3289 4742 | #[allow(missing_docs)] // documentation missing in model
|
4743 + | /* RustType.kt:516 */
|
3290 4744 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3291 - | pub struct DocumentTypeInput {
|
4745 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeInput {
|
4746 + | /* RustType.kt:516 */
|
3292 4747 | #[pyo3(get, set)]
|
4748 + | /* PythonServerStructureGenerator.kt:80 */
|
3293 4749 | /// :type typing.Optional\[str\]:
|
4750 + | /* StructureGenerator.kt:231 */
|
3294 4751 | #[allow(missing_docs)] // documentation missing in model
|
3295 4752 | pub string_value: ::std::option::Option<::std::string::String>,
|
4753 + | /* RustType.kt:516 */
|
3296 4754 | #[pyo3(get, set)]
|
4755 + | /* PythonServerStructureGenerator.kt:80 */
|
3297 4756 | /// :type typing.Optional\[rest_json.types.Document\]:
|
4757 + | /* StructureGenerator.kt:231 */
|
3298 4758 | #[allow(missing_docs)] // documentation missing in model
|
3299 4759 | pub document_value: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
4760 + | /* StructureGenerator.kt:201 */
|
3300 4761 | }
|
4762 + | /* StructureGenerator.kt:135 */
|
3301 4763 | impl DocumentTypeInput {
|
4764 + | /* StructureGenerator.kt:231 */
|
3302 4765 | #[allow(missing_docs)] // documentation missing in model
|
4766 + | /* StructureGenerator.kt:166 */
|
3303 4767 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
4768 + | /* StructureGenerator.kt:169 */
|
3304 4769 | self.string_value.as_deref()
|
4770 + | /* StructureGenerator.kt:166 */
|
3305 4771 | }
|
4772 + | /* StructureGenerator.kt:231 */
|
3306 4773 | #[allow(missing_docs)] // documentation missing in model
|
4774 + | /* StructureGenerator.kt:166 */
|
3307 4775 | pub fn document_value(
|
3308 4776 | &self,
|
3309 4777 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Document> {
|
4778 + | /* StructureGenerator.kt:170 */
|
3310 4779 | self.document_value.as_ref()
|
4780 + | /* StructureGenerator.kt:166 */
|
3311 4781 | }
|
4782 + | /* StructureGenerator.kt:135 */
|
3312 4783 | }
|
4784 + | /* RustType.kt:516 */
|
3313 4785 | #[allow(clippy::new_without_default)]
|
4786 + | /* RustType.kt:516 */
|
3314 4787 | #[allow(clippy::too_many_arguments)]
|
4788 + | /* RustType.kt:516 */
|
3315 4789 | #[::pyo3::pymethods]
|
4790 + | /* PythonServerStructureGenerator.kt:88 */
|
3316 4791 | impl DocumentTypeInput {
|
3317 4792 | #[new]
|
3318 4793 | pub fn new(
|
3319 4794 | string_value: ::std::option::Option<::std::string::String>,
|
3320 4795 | document_value: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
3321 4796 | ) -> Self {
|
3322 4797 | Self {
|
3323 4798 | string_value,
|
3324 4799 | document_value,
|
3325 4800 | }
|
3326 4801 | }
|
3327 4802 | fn __repr__(&self) -> String {
|
3328 4803 | format!("{self:?}")
|
3329 4804 | }
|
3330 4805 | fn __str__(&self) -> String {
|
3331 4806 | format!("{self:?}")
|
3332 4807 | }
|
3333 4808 | }
|
4809 + | /* PythonServerStructureGenerator.kt:111 */
|
3334 4810 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<DocumentTypeInput> {
|
3335 4811 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3336 4812 | ob.extract::<DocumentTypeInput>().map(Box::new)
|
3337 4813 | }
|
3338 4814 | }
|
3339 4815 |
|
3340 4816 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<DocumentTypeInput> {
|
3341 4817 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3342 4818 | (*self).into_py(py)
|
3343 4819 | }
|
3344 4820 | }
|
4821 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3345 4822 | impl crate::constrained::Constrained for crate::input::DocumentTypeInput {
|
3346 4823 | type Unconstrained = crate::input::document_type_input_internal::Builder;
|
3347 4824 | }
|
4825 + | /* ServerCodegenVisitor.kt:370 */
|
3348 4826 | impl DocumentTypeInput {
|
3349 - | /// Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
4827 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
4828 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3350 4829 | pub fn builder() -> crate::input::document_type_input::Builder {
|
4830 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3351 4831 | crate::input::document_type_input::Builder::default()
|
4832 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3352 4833 | }
|
4834 + | /* ServerCodegenVisitor.kt:370 */
|
3353 4835 | }
|
3354 4836 |
|
4837 + | /* RustType.kt:516 */
|
3355 4838 | #[::pyo3::pyclass]
|
4839 + | /* PythonServerStructureGenerator.kt:63 */
|
3356 4840 | /// :param data typing.Optional\[rest_json.types.Blob\]:
|
3357 4841 | /// :rtype None:
|
4842 + | /* StructureGenerator.kt:197 */
|
3358 4843 | #[allow(missing_docs)] // documentation missing in model
|
4844 + | /* RustType.kt:516 */
|
3359 4845 | #[derive(
|
3360 4846 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3361 4847 | )]
|
3362 - | pub struct JsonBlobsInput {
|
4848 + | pub /* StructureGenerator.kt:201 */ struct JsonBlobsInput {
|
4849 + | /* RustType.kt:516 */
|
3363 4850 | #[pyo3(get, set)]
|
4851 + | /* PythonServerStructureGenerator.kt:80 */
|
3364 4852 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
4853 + | /* StructureGenerator.kt:231 */
|
3365 4854 | #[allow(missing_docs)] // documentation missing in model
|
3366 4855 | pub data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
4856 + | /* StructureGenerator.kt:201 */
|
3367 4857 | }
|
4858 + | /* StructureGenerator.kt:135 */
|
3368 4859 | impl JsonBlobsInput {
|
4860 + | /* StructureGenerator.kt:231 */
|
3369 4861 | #[allow(missing_docs)] // documentation missing in model
|
4862 + | /* StructureGenerator.kt:166 */
|
3370 4863 | pub fn data(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
4864 + | /* StructureGenerator.kt:170 */
|
3371 4865 | self.data.as_ref()
|
4866 + | /* StructureGenerator.kt:166 */
|
3372 4867 | }
|
4868 + | /* StructureGenerator.kt:135 */
|
3373 4869 | }
|
4870 + | /* RustType.kt:516 */
|
3374 4871 | #[allow(clippy::new_without_default)]
|
4872 + | /* RustType.kt:516 */
|
3375 4873 | #[allow(clippy::too_many_arguments)]
|
4874 + | /* RustType.kt:516 */
|
3376 4875 | #[::pyo3::pymethods]
|
4876 + | /* PythonServerStructureGenerator.kt:88 */
|
3377 4877 | impl JsonBlobsInput {
|
3378 4878 | #[new]
|
3379 4879 | pub fn new(data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>) -> Self {
|
3380 4880 | Self { data }
|
3381 4881 | }
|
3382 4882 | fn __repr__(&self) -> String {
|
3383 4883 | format!("{self:?}")
|
3384 4884 | }
|
3385 4885 | fn __str__(&self) -> String {
|
3386 4886 | format!("{self:?}")
|
3387 4887 | }
|
3388 4888 | }
|
4889 + | /* PythonServerStructureGenerator.kt:111 */
|
3389 4890 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonBlobsInput> {
|
3390 4891 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3391 4892 | ob.extract::<JsonBlobsInput>().map(Box::new)
|
3392 4893 | }
|
3393 4894 | }
|
3394 4895 |
|
3395 4896 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonBlobsInput> {
|
3396 4897 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3397 4898 | (*self).into_py(py)
|
3398 4899 | }
|
3399 4900 | }
|
4901 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3400 4902 | impl crate::constrained::Constrained for crate::input::JsonBlobsInput {
|
3401 4903 | type Unconstrained = crate::input::json_blobs_input_internal::Builder;
|
3402 4904 | }
|
4905 + | /* ServerCodegenVisitor.kt:370 */
|
3403 4906 | impl JsonBlobsInput {
|
3404 - | /// Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
4907 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
4908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3405 4909 | pub fn builder() -> crate::input::json_blobs_input::Builder {
|
4910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3406 4911 | crate::input::json_blobs_input::Builder::default()
|
4912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3407 4913 | }
|
4914 + | /* ServerCodegenVisitor.kt:370 */
|
3408 4915 | }
|
3409 4916 |
|
4917 + | /* RustType.kt:516 */
|
3410 4918 | #[::pyo3::pyclass]
|
4919 + | /* PythonServerStructureGenerator.kt:63 */
|
3411 4920 | /// :param sparse_struct_map typing.Optional\[typing.Dict\[str, typing.Optional\[rest_json.model.GreetingStruct\]\]\]:
|
3412 4921 | /// :param sparse_number_map typing.Optional\[typing.Dict\[str, typing.Optional\[int\]\]\]:
|
3413 4922 | /// :param sparse_boolean_map typing.Optional\[typing.Dict\[str, typing.Optional\[bool\]\]\]:
|
3414 4923 | /// :param sparse_string_map typing.Optional\[typing.Dict\[str, typing.Optional\[str\]\]\]:
|
3415 4924 | /// :param sparse_set_map typing.Optional\[typing.Dict\[str, typing.Optional\[typing.List\[str\]\]\]\]:
|
3416 4925 | /// :rtype None:
|
4926 + | /* StructureGenerator.kt:197 */
|
3417 4927 | #[allow(missing_docs)] // documentation missing in model
|
4928 + | /* RustType.kt:516 */
|
3418 4929 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3419 - | pub struct SparseJsonMapsInput {
|
4930 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonMapsInput {
|
4931 + | /* RustType.kt:516 */
|
3420 4932 | #[pyo3(get, set)]
|
4933 + | /* PythonServerStructureGenerator.kt:80 */
|
3421 4934 | /// :type typing.Optional\[typing.Dict\[str, typing.Optional\[rest_json.model.GreetingStruct\]\]\]:
|
4935 + | /* StructureGenerator.kt:231 */
|
3422 4936 | #[allow(missing_docs)] // documentation missing in model
|
3423 4937 | pub sparse_struct_map: ::std::option::Option<
|
3424 4938 | ::std::collections::HashMap<
|
3425 4939 | ::std::string::String,
|
3426 4940 | ::std::option::Option<crate::model::GreetingStruct>,
|
3427 4941 | >,
|
3428 4942 | >,
|
4943 + | /* RustType.kt:516 */
|
3429 4944 | #[pyo3(get, set)]
|
4945 + | /* PythonServerStructureGenerator.kt:80 */
|
3430 4946 | /// :type typing.Optional\[typing.Dict\[str, typing.Optional\[int\]\]\]:
|
4947 + | /* StructureGenerator.kt:231 */
|
3431 4948 | #[allow(missing_docs)] // documentation missing in model
|
3432 4949 | pub sparse_number_map: ::std::option::Option<
|
3433 4950 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
3434 4951 | >,
|
4952 + | /* RustType.kt:516 */
|
3435 4953 | #[pyo3(get, set)]
|
4954 + | /* PythonServerStructureGenerator.kt:80 */
|
3436 4955 | /// :type typing.Optional\[typing.Dict\[str, typing.Optional\[bool\]\]\]:
|
4956 + | /* StructureGenerator.kt:231 */
|
3437 4957 | #[allow(missing_docs)] // documentation missing in model
|
3438 4958 | pub sparse_boolean_map: ::std::option::Option<
|
3439 4959 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
3440 4960 | >,
|
4961 + | /* RustType.kt:516 */
|
3441 4962 | #[pyo3(get, set)]
|
4963 + | /* PythonServerStructureGenerator.kt:80 */
|
3442 4964 | /// :type typing.Optional\[typing.Dict\[str, typing.Optional\[str\]\]\]:
|
4965 + | /* StructureGenerator.kt:231 */
|
3443 4966 | #[allow(missing_docs)] // documentation missing in model
|
3444 4967 | pub sparse_string_map: ::std::option::Option<
|
3445 4968 | ::std::collections::HashMap<
|
3446 4969 | ::std::string::String,
|
3447 4970 | ::std::option::Option<::std::string::String>,
|
3448 4971 | >,
|
3449 4972 | >,
|
4973 + | /* RustType.kt:516 */
|
3450 4974 | #[pyo3(get, set)]
|
4975 + | /* PythonServerStructureGenerator.kt:80 */
|
3451 4976 | /// :type typing.Optional\[typing.Dict\[str, typing.Optional\[typing.List\[str\]\]\]\]:
|
4977 + | /* StructureGenerator.kt:231 */
|
3452 4978 | #[allow(missing_docs)] // documentation missing in model
|
3453 4979 | pub sparse_set_map: ::std::option::Option<
|
3454 4980 | ::std::collections::HashMap<
|
3455 4981 | ::std::string::String,
|
3456 4982 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3457 4983 | >,
|
3458 4984 | >,
|
4985 + | /* StructureGenerator.kt:201 */
|
3459 4986 | }
|
4987 + | /* StructureGenerator.kt:135 */
|
3460 4988 | impl SparseJsonMapsInput {
|
4989 + | /* StructureGenerator.kt:231 */
|
3461 4990 | #[allow(missing_docs)] // documentation missing in model
|
4991 + | /* StructureGenerator.kt:166 */
|
3462 4992 | pub fn sparse_struct_map(
|
3463 4993 | &self,
|
3464 4994 | ) -> ::std::option::Option<
|
3465 4995 | &::std::collections::HashMap<
|
3466 4996 | ::std::string::String,
|
3467 4997 | ::std::option::Option<crate::model::GreetingStruct>,
|
3468 4998 | >,
|
3469 4999 | > {
|
5000 + | /* StructureGenerator.kt:170 */
|
3470 5001 | self.sparse_struct_map.as_ref()
|
5002 + | /* StructureGenerator.kt:166 */
|
3471 5003 | }
|
5004 + | /* StructureGenerator.kt:231 */
|
3472 5005 | #[allow(missing_docs)] // documentation missing in model
|
5006 + | /* StructureGenerator.kt:166 */
|
3473 5007 | pub fn sparse_number_map(
|
3474 5008 | &self,
|
3475 5009 | ) -> ::std::option::Option<
|
3476 5010 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
3477 5011 | > {
|
5012 + | /* StructureGenerator.kt:170 */
|
3478 5013 | self.sparse_number_map.as_ref()
|
5014 + | /* StructureGenerator.kt:166 */
|
3479 5015 | }
|
5016 + | /* StructureGenerator.kt:231 */
|
3480 5017 | #[allow(missing_docs)] // documentation missing in model
|
5018 + | /* StructureGenerator.kt:166 */
|
3481 5019 | pub fn sparse_boolean_map(
|
3482 5020 | &self,
|
3483 5021 | ) -> ::std::option::Option<
|
3484 5022 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
3485 5023 | > {
|
5024 + | /* StructureGenerator.kt:170 */
|
3486 5025 | self.sparse_boolean_map.as_ref()
|
5026 + | /* StructureGenerator.kt:166 */
|
3487 5027 | }
|
5028 + | /* StructureGenerator.kt:231 */
|
3488 5029 | #[allow(missing_docs)] // documentation missing in model
|
5030 + | /* StructureGenerator.kt:166 */
|
3489 5031 | pub fn sparse_string_map(
|
3490 5032 | &self,
|
3491 5033 | ) -> ::std::option::Option<
|
3492 5034 | &::std::collections::HashMap<
|
3493 5035 | ::std::string::String,
|
3494 5036 | ::std::option::Option<::std::string::String>,
|
3495 5037 | >,
|
3496 5038 | > {
|
5039 + | /* StructureGenerator.kt:170 */
|
3497 5040 | self.sparse_string_map.as_ref()
|
5041 + | /* StructureGenerator.kt:166 */
|
3498 5042 | }
|
5043 + | /* StructureGenerator.kt:231 */
|
3499 5044 | #[allow(missing_docs)] // documentation missing in model
|
5045 + | /* StructureGenerator.kt:166 */
|
3500 5046 | pub fn sparse_set_map(
|
3501 5047 | &self,
|
3502 5048 | ) -> ::std::option::Option<
|
3503 5049 | &::std::collections::HashMap<
|
3504 5050 | ::std::string::String,
|
3505 5051 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3506 5052 | >,
|
3507 5053 | > {
|
5054 + | /* StructureGenerator.kt:170 */
|
3508 5055 | self.sparse_set_map.as_ref()
|
5056 + | /* StructureGenerator.kt:166 */
|
3509 5057 | }
|
5058 + | /* StructureGenerator.kt:135 */
|
3510 5059 | }
|
5060 + | /* RustType.kt:516 */
|
3511 5061 | #[allow(clippy::new_without_default)]
|
5062 + | /* RustType.kt:516 */
|
3512 5063 | #[allow(clippy::too_many_arguments)]
|
5064 + | /* RustType.kt:516 */
|
3513 5065 | #[::pyo3::pymethods]
|
5066 + | /* PythonServerStructureGenerator.kt:88 */
|
3514 5067 | impl SparseJsonMapsInput {
|
3515 5068 | #[new]
|
3516 5069 | pub fn new(
|
3517 5070 | sparse_struct_map: ::std::option::Option<
|
3518 5071 | ::std::collections::HashMap<
|
3519 5072 | ::std::string::String,
|
3520 5073 | ::std::option::Option<crate::model::GreetingStruct>,
|
3521 5074 | >,
|
3522 5075 | >,
|
3523 5076 | sparse_number_map: ::std::option::Option<
|
3524 5077 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
3525 5078 | >,
|
3526 5079 | sparse_boolean_map: ::std::option::Option<
|
3527 5080 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
3528 5081 | >,
|
3529 5082 | sparse_string_map: ::std::option::Option<
|
3530 5083 | ::std::collections::HashMap<
|
3531 5084 | ::std::string::String,
|
3532 5085 | ::std::option::Option<::std::string::String>,
|
3533 5086 | >,
|
3534 5087 | >,
|
3535 5088 | sparse_set_map: ::std::option::Option<
|
3536 5089 | ::std::collections::HashMap<
|
3537 5090 | ::std::string::String,
|
3538 5091 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3539 5092 | >,
|
3540 5093 | >,
|
3541 5094 | ) -> Self {
|
3542 5095 | Self {
|
3543 5096 | sparse_struct_map,
|
3544 5097 | sparse_number_map,
|
3545 5098 | sparse_boolean_map,
|
3546 5099 | sparse_string_map,
|
3547 5100 | sparse_set_map,
|
3548 5101 | }
|
3549 5102 | }
|
3550 5103 | fn __repr__(&self) -> String {
|
3551 5104 | format!("{self:?}")
|
3552 5105 | }
|
3553 5106 | fn __str__(&self) -> String {
|
3554 5107 | format!("{self:?}")
|
3555 5108 | }
|
3556 5109 | }
|
5110 + | /* PythonServerStructureGenerator.kt:111 */
|
3557 5111 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SparseJsonMapsInput> {
|
3558 5112 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3559 5113 | ob.extract::<SparseJsonMapsInput>().map(Box::new)
|
3560 5114 | }
|
3561 5115 | }
|
3562 5116 |
|
3563 5117 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SparseJsonMapsInput> {
|
3564 5118 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3565 5119 | (*self).into_py(py)
|
3566 5120 | }
|
3567 5121 | }
|
5122 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3568 5123 | impl crate::constrained::Constrained for crate::input::SparseJsonMapsInput {
|
3569 5124 | type Unconstrained = crate::input::sparse_json_maps_input_internal::Builder;
|
3570 5125 | }
|
5126 + | /* ServerCodegenVisitor.kt:370 */
|
3571 5127 | impl SparseJsonMapsInput {
|
3572 - | /// Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
5128 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
5129 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3573 5130 | pub fn builder() -> crate::input::sparse_json_maps_input::Builder {
|
5131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3574 5132 | crate::input::sparse_json_maps_input::Builder::default()
|
5133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3575 5134 | }
|
5135 + | /* ServerCodegenVisitor.kt:370 */
|
3576 5136 | }
|
3577 5137 |
|
5138 + | /* RustType.kt:516 */
|
3578 5139 | #[::pyo3::pyclass]
|
5140 + | /* PythonServerStructureGenerator.kt:63 */
|
3579 5141 | /// :param dense_struct_map typing.Optional\[typing.Dict\[str, rest_json.model.GreetingStruct\]\]:
|
3580 5142 | /// :param dense_number_map typing.Optional\[typing.Dict\[str, int\]\]:
|
3581 5143 | /// :param dense_boolean_map typing.Optional\[typing.Dict\[str, bool\]\]:
|
3582 5144 | /// :param dense_string_map typing.Optional\[typing.Dict\[str, str\]\]:
|
3583 5145 | /// :param dense_set_map typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
3584 5146 | /// :rtype None:
|
5147 + | /* StructureGenerator.kt:197 */
|
3585 5148 | #[allow(missing_docs)] // documentation missing in model
|
5149 + | /* RustType.kt:516 */
|
3586 5150 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3587 - | pub struct JsonMapsInput {
|
5151 + | pub /* StructureGenerator.kt:201 */ struct JsonMapsInput {
|
5152 + | /* RustType.kt:516 */
|
3588 5153 | #[pyo3(get, set)]
|
5154 + | /* PythonServerStructureGenerator.kt:80 */
|
3589 5155 | /// :type typing.Optional\[typing.Dict\[str, rest_json.model.GreetingStruct\]\]:
|
5156 + | /* StructureGenerator.kt:231 */
|
3590 5157 | #[allow(missing_docs)] // documentation missing in model
|
3591 5158 | pub dense_struct_map: ::std::option::Option<
|
3592 5159 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
3593 5160 | >,
|
5161 + | /* RustType.kt:516 */
|
3594 5162 | #[pyo3(get, set)]
|
5163 + | /* PythonServerStructureGenerator.kt:80 */
|
3595 5164 | /// :type typing.Optional\[typing.Dict\[str, int\]\]:
|
5165 + | /* StructureGenerator.kt:231 */
|
3596 5166 | #[allow(missing_docs)] // documentation missing in model
|
3597 5167 | pub dense_number_map:
|
3598 5168 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
5169 + | /* RustType.kt:516 */
|
3599 5170 | #[pyo3(get, set)]
|
5171 + | /* PythonServerStructureGenerator.kt:80 */
|
3600 5172 | /// :type typing.Optional\[typing.Dict\[str, bool\]\]:
|
5173 + | /* StructureGenerator.kt:231 */
|
3601 5174 | #[allow(missing_docs)] // documentation missing in model
|
3602 5175 | pub dense_boolean_map:
|
3603 5176 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
5177 + | /* RustType.kt:516 */
|
3604 5178 | #[pyo3(get, set)]
|
5179 + | /* PythonServerStructureGenerator.kt:80 */
|
3605 5180 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
5181 + | /* StructureGenerator.kt:231 */
|
3606 5182 | #[allow(missing_docs)] // documentation missing in model
|
3607 5183 | pub dense_string_map: ::std::option::Option<
|
3608 5184 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3609 5185 | >,
|
5186 + | /* RustType.kt:516 */
|
3610 5187 | #[pyo3(get, set)]
|
5188 + | /* PythonServerStructureGenerator.kt:80 */
|
3611 5189 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
5190 + | /* StructureGenerator.kt:231 */
|
3612 5191 | #[allow(missing_docs)] // documentation missing in model
|
3613 5192 | pub dense_set_map: ::std::option::Option<
|
3614 5193 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
3615 5194 | >,
|
5195 + | /* StructureGenerator.kt:201 */
|
3616 5196 | }
|
5197 + | /* StructureGenerator.kt:135 */
|
3617 5198 | impl JsonMapsInput {
|
5199 + | /* StructureGenerator.kt:231 */
|
3618 5200 | #[allow(missing_docs)] // documentation missing in model
|
5201 + | /* StructureGenerator.kt:166 */
|
3619 5202 | pub fn dense_struct_map(
|
3620 5203 | &self,
|
3621 5204 | ) -> ::std::option::Option<
|
3622 5205 | &::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
3623 5206 | > {
|
5207 + | /* StructureGenerator.kt:170 */
|
3624 5208 | self.dense_struct_map.as_ref()
|
5209 + | /* StructureGenerator.kt:166 */
|
3625 5210 | }
|
5211 + | /* StructureGenerator.kt:231 */
|
3626 5212 | #[allow(missing_docs)] // documentation missing in model
|
5213 + | /* StructureGenerator.kt:166 */
|
3627 5214 | pub fn dense_number_map(
|
3628 5215 | &self,
|
3629 5216 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
5217 + | /* StructureGenerator.kt:170 */
|
3630 5218 | self.dense_number_map.as_ref()
|
5219 + | /* StructureGenerator.kt:166 */
|
3631 5220 | }
|
5221 + | /* StructureGenerator.kt:231 */
|
3632 5222 | #[allow(missing_docs)] // documentation missing in model
|
5223 + | /* StructureGenerator.kt:166 */
|
3633 5224 | pub fn dense_boolean_map(
|
3634 5225 | &self,
|
3635 5226 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
|
5227 + | /* StructureGenerator.kt:170 */
|
3636 5228 | self.dense_boolean_map.as_ref()
|
5229 + | /* StructureGenerator.kt:166 */
|
3637 5230 | }
|
5231 + | /* StructureGenerator.kt:231 */
|
3638 5232 | #[allow(missing_docs)] // documentation missing in model
|
5233 + | /* StructureGenerator.kt:166 */
|
3639 5234 | pub fn dense_string_map(
|
3640 5235 | &self,
|
3641 5236 | ) -> ::std::option::Option<
|
3642 5237 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3643 5238 | > {
|
5239 + | /* StructureGenerator.kt:170 */
|
3644 5240 | self.dense_string_map.as_ref()
|
5241 + | /* StructureGenerator.kt:166 */
|
3645 5242 | }
|
5243 + | /* StructureGenerator.kt:231 */
|
3646 5244 | #[allow(missing_docs)] // documentation missing in model
|
5245 + | /* StructureGenerator.kt:166 */
|
3647 5246 | pub fn dense_set_map(
|
3648 5247 | &self,
|
3649 5248 | ) -> ::std::option::Option<
|
3650 5249 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
3651 5250 | > {
|
5251 + | /* StructureGenerator.kt:170 */
|
3652 5252 | self.dense_set_map.as_ref()
|
5253 + | /* StructureGenerator.kt:166 */
|
3653 5254 | }
|
5255 + | /* StructureGenerator.kt:135 */
|
3654 5256 | }
|
5257 + | /* RustType.kt:516 */
|
3655 5258 | #[allow(clippy::new_without_default)]
|
5259 + | /* RustType.kt:516 */
|
3656 5260 | #[allow(clippy::too_many_arguments)]
|
5261 + | /* RustType.kt:516 */
|
3657 5262 | #[::pyo3::pymethods]
|
5263 + | /* PythonServerStructureGenerator.kt:88 */
|
3658 5264 | impl JsonMapsInput {
|
3659 5265 | #[new]
|
3660 5266 | pub fn new(
|
3661 5267 | dense_struct_map: ::std::option::Option<
|
3662 5268 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
3663 5269 | >,
|
3664 5270 | dense_number_map: ::std::option::Option<
|
3665 5271 | ::std::collections::HashMap<::std::string::String, i32>,
|
3666 5272 | >,
|
3667 5273 | dense_boolean_map: ::std::option::Option<
|
3668 5274 | ::std::collections::HashMap<::std::string::String, bool>,
|
3669 5275 | >,
|
3670 5276 | dense_string_map: ::std::option::Option<
|
3671 5277 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3672 5278 | >,
|
3673 5279 | dense_set_map: ::std::option::Option<
|
3674 5280 | ::std::collections::HashMap<
|
3675 5281 | ::std::string::String,
|
3676 5282 | ::std::vec::Vec<::std::string::String>,
|
3677 5283 | >,
|
3678 5284 | >,
|
3679 5285 | ) -> Self {
|
3680 5286 | Self {
|
3681 5287 | dense_struct_map,
|
3682 5288 | dense_number_map,
|
3683 5289 | dense_boolean_map,
|
3684 5290 | dense_string_map,
|
3685 5291 | dense_set_map,
|
3686 5292 | }
|
3687 5293 | }
|
3688 5294 | fn __repr__(&self) -> String {
|
3689 5295 | format!("{self:?}")
|
3690 5296 | }
|
3691 5297 | fn __str__(&self) -> String {
|
3692 5298 | format!("{self:?}")
|
3693 5299 | }
|
3694 5300 | }
|
5301 + | /* PythonServerStructureGenerator.kt:111 */
|
3695 5302 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonMapsInput> {
|
3696 5303 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3697 5304 | ob.extract::<JsonMapsInput>().map(Box::new)
|
3698 5305 | }
|
3699 5306 | }
|
3700 5307 |
|
3701 5308 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonMapsInput> {
|
3702 5309 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3703 5310 | (*self).into_py(py)
|
3704 5311 | }
|
3705 5312 | }
|
5313 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3706 5314 | impl crate::constrained::Constrained for crate::input::JsonMapsInput {
|
3707 5315 | type Unconstrained = crate::input::json_maps_input_internal::Builder;
|
3708 5316 | }
|
5317 + | /* ServerCodegenVisitor.kt:370 */
|
3709 5318 | impl JsonMapsInput {
|
3710 - | /// Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
5319 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
5320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3711 5321 | pub fn builder() -> crate::input::json_maps_input::Builder {
|
5322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3712 5323 | crate::input::json_maps_input::Builder::default()
|
5324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3713 5325 | }
|
5326 + | /* ServerCodegenVisitor.kt:370 */
|
3714 5327 | }
|
3715 5328 |
|
5329 + | /* RustType.kt:516 */
|
3716 5330 | #[::pyo3::pyclass]
|
5331 + | /* PythonServerStructureGenerator.kt:63 */
|
3717 5332 | /// :param sparse_string_list typing.Optional\[typing.List\[typing.Optional\[str\]\]\]:
|
3718 5333 | /// :param sparse_short_list typing.Optional\[typing.List\[typing.Optional\[int\]\]\]:
|
3719 5334 | /// :rtype None:
|
5335 + | /* StructureGenerator.kt:197 */
|
3720 5336 | #[allow(missing_docs)] // documentation missing in model
|
5337 + | /* RustType.kt:516 */
|
3721 5338 | #[derive(
|
3722 5339 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3723 5340 | )]
|
3724 - | pub struct SparseJsonListsInput {
|
5341 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonListsInput {
|
5342 + | /* RustType.kt:516 */
|
3725 5343 | #[pyo3(get, set)]
|
5344 + | /* PythonServerStructureGenerator.kt:80 */
|
3726 5345 | /// :type typing.Optional\[typing.List\[typing.Optional\[str\]\]\]:
|
5346 + | /* StructureGenerator.kt:231 */
|
3727 5347 | #[allow(missing_docs)] // documentation missing in model
|
3728 5348 | pub sparse_string_list:
|
3729 5349 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
5350 + | /* RustType.kt:516 */
|
3730 5351 | #[pyo3(get, set)]
|
5352 + | /* PythonServerStructureGenerator.kt:80 */
|
3731 5353 | /// :type typing.Optional\[typing.List\[typing.Optional\[int\]\]\]:
|
5354 + | /* StructureGenerator.kt:231 */
|
3732 5355 | #[allow(missing_docs)] // documentation missing in model
|
3733 5356 | pub sparse_short_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
5357 + | /* StructureGenerator.kt:201 */
|
3734 5358 | }
|
5359 + | /* StructureGenerator.kt:135 */
|
3735 5360 | impl SparseJsonListsInput {
|
5361 + | /* StructureGenerator.kt:231 */
|
3736 5362 | #[allow(missing_docs)] // documentation missing in model
|
5363 + | /* StructureGenerator.kt:166 */
|
3737 5364 | pub fn sparse_string_list(
|
3738 5365 | &self,
|
3739 5366 | ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
|
5367 + | /* StructureGenerator.kt:169 */
|
3740 5368 | self.sparse_string_list.as_deref()
|
5369 + | /* StructureGenerator.kt:166 */
|
3741 5370 | }
|
5371 + | /* StructureGenerator.kt:231 */
|
3742 5372 | #[allow(missing_docs)] // documentation missing in model
|
5373 + | /* StructureGenerator.kt:166 */
|
3743 5374 | pub fn sparse_short_list(&self) -> ::std::option::Option<&[::std::option::Option<i16>]> {
|
5375 + | /* StructureGenerator.kt:169 */
|
3744 5376 | self.sparse_short_list.as_deref()
|
5377 + | /* StructureGenerator.kt:166 */
|
3745 5378 | }
|
5379 + | /* StructureGenerator.kt:135 */
|
3746 5380 | }
|
5381 + | /* RustType.kt:516 */
|
3747 5382 | #[allow(clippy::new_without_default)]
|
5383 + | /* RustType.kt:516 */
|
3748 5384 | #[allow(clippy::too_many_arguments)]
|
5385 + | /* RustType.kt:516 */
|
3749 5386 | #[::pyo3::pymethods]
|
5387 + | /* PythonServerStructureGenerator.kt:88 */
|
3750 5388 | impl SparseJsonListsInput {
|
3751 5389 | #[new]
|
3752 5390 | pub fn new(
|
3753 5391 | sparse_string_list: ::std::option::Option<
|
3754 5392 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
3755 5393 | >,
|
3756 5394 | sparse_short_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
3757 5395 | ) -> Self {
|
3758 5396 | Self {
|
3759 5397 | sparse_string_list,
|
3760 5398 | sparse_short_list,
|
3761 5399 | }
|
3762 5400 | }
|
3763 5401 | fn __repr__(&self) -> String {
|
3764 5402 | format!("{self:?}")
|
3765 5403 | }
|
3766 5404 | fn __str__(&self) -> String {
|
3767 5405 | format!("{self:?}")
|
3768 5406 | }
|
3769 5407 | }
|
5408 + | /* PythonServerStructureGenerator.kt:111 */
|
3770 5409 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SparseJsonListsInput> {
|
3771 5410 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3772 5411 | ob.extract::<SparseJsonListsInput>().map(Box::new)
|
3773 5412 | }
|
3774 5413 | }
|
3775 5414 |
|
3776 5415 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SparseJsonListsInput> {
|
3777 5416 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3778 5417 | (*self).into_py(py)
|
3779 5418 | }
|
3780 5419 | }
|
5420 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3781 5421 | impl crate::constrained::Constrained for crate::input::SparseJsonListsInput {
|
3782 5422 | type Unconstrained = crate::input::sparse_json_lists_input_internal::Builder;
|
3783 5423 | }
|
5424 + | /* ServerCodegenVisitor.kt:370 */
|
3784 5425 | impl SparseJsonListsInput {
|
3785 - | /// Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
5426 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
5427 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3786 5428 | pub fn builder() -> crate::input::sparse_json_lists_input::Builder {
|
5429 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3787 5430 | crate::input::sparse_json_lists_input::Builder::default()
|
5431 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3788 5432 | }
|
5433 + | /* ServerCodegenVisitor.kt:370 */
|
3789 5434 | }
|
3790 5435 |
|
5436 + | /* RustType.kt:516 */
|
3791 5437 | #[::pyo3::pyclass]
|
5438 + | /* PythonServerStructureGenerator.kt:63 */
|
3792 5439 | /// :param string_list typing.Optional\[typing.List\[str\]\]:
|
3793 5440 | /// :param string_set typing.Optional\[typing.List\[str\]\]:
|
3794 5441 | /// :param integer_list typing.Optional\[typing.List\[int\]\]:
|
3795 5442 | /// :param boolean_list typing.Optional\[typing.List\[bool\]\]:
|
3796 5443 | /// :param timestamp_list typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
3797 5444 | /// :param enum_list typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
3798 5445 | /// :param int_enum_list typing.Optional\[typing.List\[int\]\]:
|
3799 5446 | /// :param nested_string_list typing.Optional\[typing.List\[typing.List\[str\]\]\]:
|
3800 5447 | /// :param structure_list typing.Optional\[typing.List\[rest_json.model.StructureListMember\]\]:
|
3801 5448 | /// :rtype None:
|
5449 + | /* StructureGenerator.kt:197 */
|
3802 5450 | #[allow(missing_docs)] // documentation missing in model
|
5451 + | /* RustType.kt:516 */
|
3803 5452 | #[derive(
|
3804 5453 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3805 5454 | )]
|
3806 - | pub struct JsonListsInput {
|
5455 + | pub /* StructureGenerator.kt:201 */ struct JsonListsInput {
|
5456 + | /* RustType.kt:516 */
|
3807 5457 | #[pyo3(get, set)]
|
5458 + | /* PythonServerStructureGenerator.kt:80 */
|
3808 5459 | /// :type typing.Optional\[typing.List\[str\]\]:
|
5460 + | /* StructureGenerator.kt:231 */
|
3809 5461 | #[allow(missing_docs)] // documentation missing in model
|
3810 5462 | pub string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5463 + | /* RustType.kt:516 */
|
3811 5464 | #[pyo3(get, set)]
|
5465 + | /* PythonServerStructureGenerator.kt:80 */
|
3812 5466 | /// :type typing.Optional\[typing.List\[str\]\]:
|
5467 + | /* StructureGenerator.kt:231 */
|
3813 5468 | #[allow(missing_docs)] // documentation missing in model
|
3814 5469 | pub string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5470 + | /* RustType.kt:516 */
|
3815 5471 | #[pyo3(get, set)]
|
5472 + | /* PythonServerStructureGenerator.kt:80 */
|
3816 5473 | /// :type typing.Optional\[typing.List\[int\]\]:
|
5474 + | /* StructureGenerator.kt:231 */
|
3817 5475 | #[allow(missing_docs)] // documentation missing in model
|
3818 5476 | pub integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5477 + | /* RustType.kt:516 */
|
3819 5478 | #[pyo3(get, set)]
|
5479 + | /* PythonServerStructureGenerator.kt:80 */
|
3820 5480 | /// :type typing.Optional\[typing.List\[bool\]\]:
|
5481 + | /* StructureGenerator.kt:231 */
|
3821 5482 | #[allow(missing_docs)] // documentation missing in model
|
3822 5483 | pub boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
5484 + | /* RustType.kt:516 */
|
3823 5485 | #[pyo3(get, set)]
|
5486 + | /* PythonServerStructureGenerator.kt:80 */
|
3824 5487 | /// :type typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
5488 + | /* StructureGenerator.kt:231 */
|
3825 5489 | #[allow(missing_docs)] // documentation missing in model
|
3826 5490 | pub timestamp_list:
|
3827 5491 | ::std::option::Option<::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>>,
|
5492 + | /* RustType.kt:516 */
|
3828 5493 | #[pyo3(get, set)]
|
5494 + | /* PythonServerStructureGenerator.kt:80 */
|
3829 5495 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
5496 + | /* StructureGenerator.kt:231 */
|
3830 5497 | #[allow(missing_docs)] // documentation missing in model
|
3831 5498 | pub enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5499 + | /* RustType.kt:516 */
|
3832 5500 | #[pyo3(get, set)]
|
5501 + | /* PythonServerStructureGenerator.kt:80 */
|
3833 5502 | /// :type typing.Optional\[typing.List\[int\]\]:
|
5503 + | /* StructureGenerator.kt:231 */
|
3834 5504 | #[allow(missing_docs)] // documentation missing in model
|
3835 5505 | pub int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5506 + | /* RustType.kt:516 */
|
3836 5507 | #[pyo3(get, set)]
|
5508 + | /* PythonServerStructureGenerator.kt:80 */
|
3837 5509 | /// :type typing.Optional\[typing.List\[typing.List\[str\]\]\]:
|
3838 - | /// A list of lists of strings.
|
5510 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
3839 5511 | pub nested_string_list:
|
3840 5512 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
5513 + | /* RustType.kt:516 */
|
3841 5514 | #[pyo3(get, set)]
|
5515 + | /* PythonServerStructureGenerator.kt:80 */
|
3842 5516 | /// :type typing.Optional\[typing.List\[rest_json.model.StructureListMember\]\]:
|
5517 + | /* StructureGenerator.kt:231 */
|
3843 5518 | #[allow(missing_docs)] // documentation missing in model
|
3844 5519 | pub structure_list: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
5520 + | /* StructureGenerator.kt:201 */
|
3845 5521 | }
|
5522 + | /* StructureGenerator.kt:135 */
|
3846 5523 | impl JsonListsInput {
|
5524 + | /* StructureGenerator.kt:231 */
|
3847 5525 | #[allow(missing_docs)] // documentation missing in model
|
5526 + | /* StructureGenerator.kt:166 */
|
3848 5527 | pub fn string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5528 + | /* StructureGenerator.kt:169 */
|
3849 5529 | self.string_list.as_deref()
|
5530 + | /* StructureGenerator.kt:166 */
|
3850 5531 | }
|
5532 + | /* StructureGenerator.kt:231 */
|
3851 5533 | #[allow(missing_docs)] // documentation missing in model
|
5534 + | /* StructureGenerator.kt:166 */
|
3852 5535 | pub fn string_set(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5536 + | /* StructureGenerator.kt:169 */
|
3853 5537 | self.string_set.as_deref()
|
5538 + | /* StructureGenerator.kt:166 */
|
3854 5539 | }
|
5540 + | /* StructureGenerator.kt:231 */
|
3855 5541 | #[allow(missing_docs)] // documentation missing in model
|
5542 + | /* StructureGenerator.kt:166 */
|
3856 5543 | pub fn integer_list(&self) -> ::std::option::Option<&[i32]> {
|
5544 + | /* StructureGenerator.kt:169 */
|
3857 5545 | self.integer_list.as_deref()
|
5546 + | /* StructureGenerator.kt:166 */
|
3858 5547 | }
|
5548 + | /* StructureGenerator.kt:231 */
|
3859 5549 | #[allow(missing_docs)] // documentation missing in model
|
5550 + | /* StructureGenerator.kt:166 */
|
3860 5551 | pub fn boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
5552 + | /* StructureGenerator.kt:169 */
|
3861 5553 | self.boolean_list.as_deref()
|
5554 + | /* StructureGenerator.kt:166 */
|
3862 5555 | }
|
5556 + | /* StructureGenerator.kt:231 */
|
3863 5557 | #[allow(missing_docs)] // documentation missing in model
|
5558 + | /* StructureGenerator.kt:166 */
|
3864 5559 | pub fn timestamp_list(
|
3865 5560 | &self,
|
3866 5561 | ) -> ::std::option::Option<&[::aws_smithy_http_server_python::types::DateTime]> {
|
5562 + | /* StructureGenerator.kt:169 */
|
3867 5563 | self.timestamp_list.as_deref()
|
5564 + | /* StructureGenerator.kt:166 */
|
3868 5565 | }
|
5566 + | /* StructureGenerator.kt:231 */
|
3869 5567 | #[allow(missing_docs)] // documentation missing in model
|
5568 + | /* StructureGenerator.kt:166 */
|
3870 5569 | pub fn enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
5570 + | /* StructureGenerator.kt:169 */
|
3871 5571 | self.enum_list.as_deref()
|
5572 + | /* StructureGenerator.kt:166 */
|
3872 5573 | }
|
5574 + | /* StructureGenerator.kt:231 */
|
3873 5575 | #[allow(missing_docs)] // documentation missing in model
|
5576 + | /* StructureGenerator.kt:166 */
|
3874 5577 | pub fn int_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
5578 + | /* StructureGenerator.kt:169 */
|
3875 5579 | self.int_enum_list.as_deref()
|
5580 + | /* StructureGenerator.kt:166 */
|
3876 5581 | }
|
3877 - | /// A list of lists of strings.
|
5582 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
5583 + | /* StructureGenerator.kt:166 */
|
3878 5584 | pub fn nested_string_list(
|
3879 5585 | &self,
|
3880 5586 | ) -> ::std::option::Option<&[::std::vec::Vec<::std::string::String>]> {
|
5587 + | /* StructureGenerator.kt:169 */
|
3881 5588 | self.nested_string_list.as_deref()
|
5589 + | /* StructureGenerator.kt:166 */
|
3882 5590 | }
|
5591 + | /* StructureGenerator.kt:231 */
|
3883 5592 | #[allow(missing_docs)] // documentation missing in model
|
5593 + | /* StructureGenerator.kt:166 */
|
3884 5594 | pub fn structure_list(&self) -> ::std::option::Option<&[crate::model::StructureListMember]> {
|
5595 + | /* StructureGenerator.kt:169 */
|
3885 5596 | self.structure_list.as_deref()
|
5597 + | /* StructureGenerator.kt:166 */
|
3886 5598 | }
|
5599 + | /* StructureGenerator.kt:135 */
|
3887 5600 | }
|
5601 + | /* RustType.kt:516 */
|
3888 5602 | #[allow(clippy::new_without_default)]
|
5603 + | /* RustType.kt:516 */
|
3889 5604 | #[allow(clippy::too_many_arguments)]
|
5605 + | /* RustType.kt:516 */
|
3890 5606 | #[::pyo3::pymethods]
|
5607 + | /* PythonServerStructureGenerator.kt:88 */
|
3891 5608 | impl JsonListsInput {
|
3892 5609 | #[new]
|
3893 5610 | pub fn new(
|
3894 5611 | string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3895 5612 | string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3896 5613 | integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
3897 5614 | boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
3898 5615 | timestamp_list: ::std::option::Option<
|
3899 5616 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
3900 5617 | >,
|
3901 5618 | enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
3902 5619 | int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
3903 5620 | nested_string_list: ::std::option::Option<
|
3904 5621 | ::std::vec::Vec<::std::vec::Vec<::std::string::String>>,
|
3905 5622 | >,
|
3906 5623 | structure_list: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
3907 5624 | ) -> Self {
|
3908 5625 | Self {
|
3909 5626 | string_list,
|
3910 5627 | string_set,
|
3911 5628 | integer_list,
|
3912 5629 | boolean_list,
|
3913 5630 | timestamp_list,
|
3914 5631 | enum_list,
|
3915 5632 | int_enum_list,
|
3916 5633 | nested_string_list,
|
3917 5634 | structure_list,
|
3918 5635 | }
|
3919 5636 | }
|
3920 5637 | fn __repr__(&self) -> String {
|
3921 5638 | format!("{self:?}")
|
3922 5639 | }
|
3923 5640 | fn __str__(&self) -> String {
|
3924 5641 | format!("{self:?}")
|
3925 5642 | }
|
3926 5643 | }
|
5644 + | /* PythonServerStructureGenerator.kt:111 */
|
3927 5645 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonListsInput> {
|
3928 5646 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3929 5647 | ob.extract::<JsonListsInput>().map(Box::new)
|
3930 5648 | }
|
3931 5649 | }
|
3932 5650 |
|
3933 5651 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonListsInput> {
|
3934 5652 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3935 5653 | (*self).into_py(py)
|
3936 5654 | }
|
3937 5655 | }
|
5656 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3938 5657 | impl crate::constrained::Constrained for crate::input::JsonListsInput {
|
3939 5658 | type Unconstrained = crate::input::json_lists_input_internal::Builder;
|
3940 5659 | }
|
5660 + | /* ServerCodegenVisitor.kt:370 */
|
3941 5661 | impl JsonListsInput {
|
3942 - | /// Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
5662 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
5663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3943 5664 | pub fn builder() -> crate::input::json_lists_input::Builder {
|
5665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
3944 5666 | crate::input::json_lists_input::Builder::default()
|
5667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
3945 5668 | }
|
5669 + | /* ServerCodegenVisitor.kt:370 */
|
3946 5670 | }
|
3947 5671 |
|
5672 + | /* RustType.kt:516 */
|
3948 5673 | #[::pyo3::pyclass]
|
5674 + | /* PythonServerStructureGenerator.kt:63 */
|
3949 5675 | /// :param nested typing.Optional\[rest_json.model.RecursiveShapesInputOutputNested1\]:
|
3950 5676 | /// :rtype None:
|
5677 + | /* StructureGenerator.kt:197 */
|
3951 5678 | #[allow(missing_docs)] // documentation missing in model
|
5679 + | /* RustType.kt:516 */
|
3952 5680 | #[derive(
|
3953 5681 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3954 5682 | )]
|
3955 - | pub struct RecursiveShapesInput {
|
5683 + | pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInput {
|
5684 + | /* RustType.kt:516 */
|
3956 5685 | #[pyo3(get, set)]
|
5686 + | /* PythonServerStructureGenerator.kt:80 */
|
3957 5687 | /// :type typing.Optional\[rest_json.model.RecursiveShapesInputOutputNested1\]:
|
5688 + | /* StructureGenerator.kt:231 */
|
3958 5689 | #[allow(missing_docs)] // documentation missing in model
|
3959 5690 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
5691 + | /* StructureGenerator.kt:201 */
|
3960 5692 | }
|
5693 + | /* StructureGenerator.kt:135 */
|
3961 5694 | impl RecursiveShapesInput {
|
5695 + | /* StructureGenerator.kt:231 */
|
3962 5696 | #[allow(missing_docs)] // documentation missing in model
|
5697 + | /* StructureGenerator.kt:166 */
|
3963 5698 | pub fn nested(
|
3964 5699 | &self,
|
3965 5700 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
5701 + | /* StructureGenerator.kt:170 */
|
3966 5702 | self.nested.as_ref()
|
5703 + | /* StructureGenerator.kt:166 */
|
3967 5704 | }
|
5705 + | /* StructureGenerator.kt:135 */
|
3968 5706 | }
|
5707 + | /* RustType.kt:516 */
|
3969 5708 | #[allow(clippy::new_without_default)]
|
5709 + | /* RustType.kt:516 */
|
3970 5710 | #[allow(clippy::too_many_arguments)]
|
5711 + | /* RustType.kt:516 */
|
3971 5712 | #[::pyo3::pymethods]
|
5713 + | /* PythonServerStructureGenerator.kt:88 */
|
3972 5714 | impl RecursiveShapesInput {
|
3973 5715 | #[new]
|
3974 5716 | pub fn new(
|
3975 5717 | nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3976 5718 | ) -> Self {
|
3977 5719 | Self { nested }
|
3978 5720 | }
|
3979 5721 | fn __repr__(&self) -> String {
|
3980 5722 | format!("{self:?}")
|
3981 5723 | }
|
3982 5724 | fn __str__(&self) -> String {
|
3983 5725 | format!("{self:?}")
|
3984 5726 | }
|
3985 5727 | }
|
5728 + | /* PythonServerStructureGenerator.kt:111 */
|
3986 5729 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<RecursiveShapesInput> {
|
3987 5730 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
3988 5731 | ob.extract::<RecursiveShapesInput>().map(Box::new)
|
3989 5732 | }
|
3990 5733 | }
|
3991 5734 |
|
3992 5735 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<RecursiveShapesInput> {
|
3993 5736 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
3994 5737 | (*self).into_py(py)
|
3995 5738 | }
|
3996 5739 | }
|
5740 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3997 5741 | impl crate::constrained::Constrained for crate::input::RecursiveShapesInput {
|
3998 5742 | type Unconstrained = crate::input::recursive_shapes_input_internal::Builder;
|
3999 5743 | }
|
5744 + | /* ServerCodegenVisitor.kt:370 */
|
4000 5745 | impl RecursiveShapesInput {
|
4001 - | /// Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
5746 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
5747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4002 5748 | pub fn builder() -> crate::input::recursive_shapes_input::Builder {
|
5749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4003 5750 | crate::input::recursive_shapes_input::Builder::default()
|
5751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4004 5752 | }
|
5753 + | /* ServerCodegenVisitor.kt:370 */
|
4005 5754 | }
|
4006 5755 |
|
5756 + | /* RustType.kt:516 */
|
4007 5757 | #[::pyo3::pyclass]
|
5758 + | /* PythonServerStructureGenerator.kt:63 */
|
4008 5759 | /// :param integer_enum1 typing.Optional\[int\]:
|
4009 5760 | /// :param integer_enum2 typing.Optional\[int\]:
|
4010 5761 | /// :param integer_enum3 typing.Optional\[int\]:
|
4011 5762 | /// :param integer_enum_list typing.Optional\[typing.List\[int\]\]:
|
4012 5763 | /// :param integer_enum_set typing.Optional\[typing.List\[int\]\]:
|
4013 5764 | /// :param integer_enum_map typing.Optional\[typing.Dict\[str, int\]\]:
|
4014 5765 | /// :rtype None:
|
5766 + | /* StructureGenerator.kt:197 */
|
4015 5767 | #[allow(missing_docs)] // documentation missing in model
|
5768 + | /* RustType.kt:516 */
|
4016 5769 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4017 - | pub struct JsonIntEnumsInput {
|
5770 + | pub /* StructureGenerator.kt:201 */ struct JsonIntEnumsInput {
|
5771 + | /* RustType.kt:516 */
|
4018 5772 | #[pyo3(get, set)]
|
5773 + | /* PythonServerStructureGenerator.kt:80 */
|
4019 5774 | /// :type typing.Optional\[int\]:
|
5775 + | /* StructureGenerator.kt:231 */
|
4020 5776 | #[allow(missing_docs)] // documentation missing in model
|
4021 5777 | pub integer_enum1: ::std::option::Option<i32>,
|
5778 + | /* RustType.kt:516 */
|
4022 5779 | #[pyo3(get, set)]
|
5780 + | /* PythonServerStructureGenerator.kt:80 */
|
4023 5781 | /// :type typing.Optional\[int\]:
|
5782 + | /* StructureGenerator.kt:231 */
|
4024 5783 | #[allow(missing_docs)] // documentation missing in model
|
4025 5784 | pub integer_enum2: ::std::option::Option<i32>,
|
5785 + | /* RustType.kt:516 */
|
4026 5786 | #[pyo3(get, set)]
|
5787 + | /* PythonServerStructureGenerator.kt:80 */
|
4027 5788 | /// :type typing.Optional\[int\]:
|
5789 + | /* StructureGenerator.kt:231 */
|
4028 5790 | #[allow(missing_docs)] // documentation missing in model
|
4029 5791 | pub integer_enum3: ::std::option::Option<i32>,
|
5792 + | /* RustType.kt:516 */
|
4030 5793 | #[pyo3(get, set)]
|
5794 + | /* PythonServerStructureGenerator.kt:80 */
|
4031 5795 | /// :type typing.Optional\[typing.List\[int\]\]:
|
5796 + | /* StructureGenerator.kt:231 */
|
4032 5797 | #[allow(missing_docs)] // documentation missing in model
|
4033 5798 | pub integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5799 + | /* RustType.kt:516 */
|
4034 5800 | #[pyo3(get, set)]
|
5801 + | /* PythonServerStructureGenerator.kt:80 */
|
4035 5802 | /// :type typing.Optional\[typing.List\[int\]\]:
|
5803 + | /* StructureGenerator.kt:231 */
|
4036 5804 | #[allow(missing_docs)] // documentation missing in model
|
4037 5805 | pub integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
|
5806 + | /* RustType.kt:516 */
|
4038 5807 | #[pyo3(get, set)]
|
5808 + | /* PythonServerStructureGenerator.kt:80 */
|
4039 5809 | /// :type typing.Optional\[typing.Dict\[str, int\]\]:
|
5810 + | /* StructureGenerator.kt:231 */
|
4040 5811 | #[allow(missing_docs)] // documentation missing in model
|
4041 5812 | pub integer_enum_map:
|
4042 5813 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
5814 + | /* StructureGenerator.kt:201 */
|
4043 5815 | }
|
5816 + | /* StructureGenerator.kt:135 */
|
4044 5817 | impl JsonIntEnumsInput {
|
5818 + | /* StructureGenerator.kt:231 */
|
4045 5819 | #[allow(missing_docs)] // documentation missing in model
|
5820 + | /* StructureGenerator.kt:166 */
|
4046 5821 | pub fn integer_enum1(&self) -> ::std::option::Option<i32> {
|
5822 + | /* StructureGenerator.kt:168 */
|
4047 5823 | self.integer_enum1
|
5824 + | /* StructureGenerator.kt:166 */
|
4048 5825 | }
|
5826 + | /* StructureGenerator.kt:231 */
|
4049 5827 | #[allow(missing_docs)] // documentation missing in model
|
5828 + | /* StructureGenerator.kt:166 */
|
4050 5829 | pub fn integer_enum2(&self) -> ::std::option::Option<i32> {
|
5830 + | /* StructureGenerator.kt:168 */
|
4051 5831 | self.integer_enum2
|
5832 + | /* StructureGenerator.kt:166 */
|
4052 5833 | }
|
5834 + | /* StructureGenerator.kt:231 */
|
4053 5835 | #[allow(missing_docs)] // documentation missing in model
|
5836 + | /* StructureGenerator.kt:166 */
|
4054 5837 | pub fn integer_enum3(&self) -> ::std::option::Option<i32> {
|
5838 + | /* StructureGenerator.kt:168 */
|
4055 5839 | self.integer_enum3
|
5840 + | /* StructureGenerator.kt:166 */
|
4056 5841 | }
|
5842 + | /* StructureGenerator.kt:231 */
|
4057 5843 | #[allow(missing_docs)] // documentation missing in model
|
5844 + | /* StructureGenerator.kt:166 */
|
4058 5845 | pub fn integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
5846 + | /* StructureGenerator.kt:169 */
|
4059 5847 | self.integer_enum_list.as_deref()
|
5848 + | /* StructureGenerator.kt:166 */
|
4060 5849 | }
|
5850 + | /* StructureGenerator.kt:231 */
|
4061 5851 | #[allow(missing_docs)] // documentation missing in model
|
5852 + | /* StructureGenerator.kt:166 */
|
4062 5853 | pub fn integer_enum_set(&self) -> ::std::option::Option<&[i32]> {
|
5854 + | /* StructureGenerator.kt:169 */
|
4063 5855 | self.integer_enum_set.as_deref()
|
5856 + | /* StructureGenerator.kt:166 */
|
4064 5857 | }
|
5858 + | /* StructureGenerator.kt:231 */
|
4065 5859 | #[allow(missing_docs)] // documentation missing in model
|
5860 + | /* StructureGenerator.kt:166 */
|
4066 5861 | pub fn integer_enum_map(
|
4067 5862 | &self,
|
4068 5863 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
5864 + | /* StructureGenerator.kt:170 */
|
4069 5865 | self.integer_enum_map.as_ref()
|
5866 + | /* StructureGenerator.kt:166 */
|
4070 5867 | }
|
5868 + | /* StructureGenerator.kt:135 */
|
4071 5869 | }
|
5870 + | /* RustType.kt:516 */
|
4072 5871 | #[allow(clippy::new_without_default)]
|
5872 + | /* RustType.kt:516 */
|
4073 5873 | #[allow(clippy::too_many_arguments)]
|
5874 + | /* RustType.kt:516 */
|
4074 5875 | #[::pyo3::pymethods]
|
5876 + | /* PythonServerStructureGenerator.kt:88 */
|
4075 5877 | impl JsonIntEnumsInput {
|
4076 5878 | #[new]
|
4077 5879 | pub fn new(
|
4078 5880 | integer_enum1: ::std::option::Option<i32>,
|
4079 5881 | integer_enum2: ::std::option::Option<i32>,
|
4080 5882 | integer_enum3: ::std::option::Option<i32>,
|
4081 5883 | integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4082 5884 | integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
|
4083 5885 | integer_enum_map: ::std::option::Option<
|
4084 5886 | ::std::collections::HashMap<::std::string::String, i32>,
|
4085 5887 | >,
|
4086 5888 | ) -> Self {
|
4087 5889 | Self {
|
4088 5890 | integer_enum1,
|
4089 5891 | integer_enum2,
|
4090 5892 | integer_enum3,
|
4091 5893 | integer_enum_list,
|
4092 5894 | integer_enum_set,
|
4093 5895 | integer_enum_map,
|
4094 5896 | }
|
4095 5897 | }
|
4096 5898 | fn __repr__(&self) -> String {
|
4097 5899 | format!("{self:?}")
|
4098 5900 | }
|
4099 5901 | fn __str__(&self) -> String {
|
4100 5902 | format!("{self:?}")
|
4101 5903 | }
|
4102 5904 | }
|
5905 + | /* PythonServerStructureGenerator.kt:111 */
|
4103 5906 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonIntEnumsInput> {
|
4104 5907 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4105 5908 | ob.extract::<JsonIntEnumsInput>().map(Box::new)
|
4106 5909 | }
|
4107 5910 | }
|
4108 5911 |
|
4109 5912 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonIntEnumsInput> {
|
4110 5913 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4111 5914 | (*self).into_py(py)
|
4112 5915 | }
|
4113 5916 | }
|
5917 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4114 5918 | impl crate::constrained::Constrained for crate::input::JsonIntEnumsInput {
|
4115 5919 | type Unconstrained = crate::input::json_int_enums_input_internal::Builder;
|
4116 5920 | }
|
5921 + | /* ServerCodegenVisitor.kt:370 */
|
4117 5922 | impl JsonIntEnumsInput {
|
4118 - | /// Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
5923 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
5924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4119 5925 | pub fn builder() -> crate::input::json_int_enums_input::Builder {
|
5926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4120 5927 | crate::input::json_int_enums_input::Builder::default()
|
5928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4121 5929 | }
|
5930 + | /* ServerCodegenVisitor.kt:370 */
|
4122 5931 | }
|
4123 5932 |
|
5933 + | /* RustType.kt:516 */
|
4124 5934 | #[::pyo3::pyclass]
|
5935 + | /* PythonServerStructureGenerator.kt:63 */
|
4125 5936 | /// :param foo_enum1 typing.Optional\[rest_json.model.FooEnum\]:
|
4126 5937 | /// :param foo_enum2 typing.Optional\[rest_json.model.FooEnum\]:
|
4127 5938 | /// :param foo_enum3 typing.Optional\[rest_json.model.FooEnum\]:
|
4128 5939 | /// :param foo_enum_list typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
4129 5940 | /// :param foo_enum_set typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
4130 5941 | /// :param foo_enum_map typing.Optional\[typing.Dict\[str, rest_json.model.FooEnum\]\]:
|
4131 5942 | /// :rtype None:
|
5943 + | /* StructureGenerator.kt:197 */
|
4132 5944 | #[allow(missing_docs)] // documentation missing in model
|
5945 + | /* RustType.kt:516 */
|
4133 5946 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4134 - | pub struct JsonEnumsInput {
|
5947 + | pub /* StructureGenerator.kt:201 */ struct JsonEnumsInput {
|
5948 + | /* RustType.kt:516 */
|
4135 5949 | #[pyo3(get, set)]
|
5950 + | /* PythonServerStructureGenerator.kt:80 */
|
4136 5951 | /// :type typing.Optional\[rest_json.model.FooEnum\]:
|
5952 + | /* StructureGenerator.kt:231 */
|
4137 5953 | #[allow(missing_docs)] // documentation missing in model
|
4138 5954 | pub foo_enum1: ::std::option::Option<crate::model::FooEnum>,
|
5955 + | /* RustType.kt:516 */
|
4139 5956 | #[pyo3(get, set)]
|
5957 + | /* PythonServerStructureGenerator.kt:80 */
|
4140 5958 | /// :type typing.Optional\[rest_json.model.FooEnum\]:
|
5959 + | /* StructureGenerator.kt:231 */
|
4141 5960 | #[allow(missing_docs)] // documentation missing in model
|
4142 5961 | pub foo_enum2: ::std::option::Option<crate::model::FooEnum>,
|
5962 + | /* RustType.kt:516 */
|
4143 5963 | #[pyo3(get, set)]
|
5964 + | /* PythonServerStructureGenerator.kt:80 */
|
4144 5965 | /// :type typing.Optional\[rest_json.model.FooEnum\]:
|
5966 + | /* StructureGenerator.kt:231 */
|
4145 5967 | #[allow(missing_docs)] // documentation missing in model
|
4146 5968 | pub foo_enum3: ::std::option::Option<crate::model::FooEnum>,
|
5969 + | /* RustType.kt:516 */
|
4147 5970 | #[pyo3(get, set)]
|
5971 + | /* PythonServerStructureGenerator.kt:80 */
|
4148 5972 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
5973 + | /* StructureGenerator.kt:231 */
|
4149 5974 | #[allow(missing_docs)] // documentation missing in model
|
4150 5975 | pub foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5976 + | /* RustType.kt:516 */
|
4151 5977 | #[pyo3(get, set)]
|
5978 + | /* PythonServerStructureGenerator.kt:80 */
|
4152 5979 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
5980 + | /* StructureGenerator.kt:231 */
|
4153 5981 | #[allow(missing_docs)] // documentation missing in model
|
4154 5982 | pub foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5983 + | /* RustType.kt:516 */
|
4155 5984 | #[pyo3(get, set)]
|
5985 + | /* PythonServerStructureGenerator.kt:80 */
|
4156 5986 | /// :type typing.Optional\[typing.Dict\[str, rest_json.model.FooEnum\]\]:
|
5987 + | /* StructureGenerator.kt:231 */
|
4157 5988 | #[allow(missing_docs)] // documentation missing in model
|
4158 5989 | pub foo_enum_map: ::std::option::Option<
|
4159 5990 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
4160 5991 | >,
|
5992 + | /* StructureGenerator.kt:201 */
|
4161 5993 | }
|
5994 + | /* StructureGenerator.kt:135 */
|
4162 5995 | impl JsonEnumsInput {
|
5996 + | /* StructureGenerator.kt:231 */
|
4163 5997 | #[allow(missing_docs)] // documentation missing in model
|
5998 + | /* StructureGenerator.kt:166 */
|
4164 5999 | pub fn foo_enum1(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
6000 + | /* StructureGenerator.kt:170 */
|
4165 6001 | self.foo_enum1.as_ref()
|
6002 + | /* StructureGenerator.kt:166 */
|
4166 6003 | }
|
6004 + | /* StructureGenerator.kt:231 */
|
4167 6005 | #[allow(missing_docs)] // documentation missing in model
|
6006 + | /* StructureGenerator.kt:166 */
|
4168 6007 | pub fn foo_enum2(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
6008 + | /* StructureGenerator.kt:170 */
|
4169 6009 | self.foo_enum2.as_ref()
|
6010 + | /* StructureGenerator.kt:166 */
|
4170 6011 | }
|
6012 + | /* StructureGenerator.kt:231 */
|
4171 6013 | #[allow(missing_docs)] // documentation missing in model
|
6014 + | /* StructureGenerator.kt:166 */
|
4172 6015 | pub fn foo_enum3(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
6016 + | /* StructureGenerator.kt:170 */
|
4173 6017 | self.foo_enum3.as_ref()
|
6018 + | /* StructureGenerator.kt:166 */
|
4174 6019 | }
|
6020 + | /* StructureGenerator.kt:231 */
|
4175 6021 | #[allow(missing_docs)] // documentation missing in model
|
6022 + | /* StructureGenerator.kt:166 */
|
4176 6023 | pub fn foo_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
6024 + | /* StructureGenerator.kt:169 */
|
4177 6025 | self.foo_enum_list.as_deref()
|
6026 + | /* StructureGenerator.kt:166 */
|
4178 6027 | }
|
6028 + | /* StructureGenerator.kt:231 */
|
4179 6029 | #[allow(missing_docs)] // documentation missing in model
|
6030 + | /* StructureGenerator.kt:166 */
|
4180 6031 | pub fn foo_enum_set(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
6032 + | /* StructureGenerator.kt:169 */
|
4181 6033 | self.foo_enum_set.as_deref()
|
6034 + | /* StructureGenerator.kt:166 */
|
4182 6035 | }
|
6036 + | /* StructureGenerator.kt:231 */
|
4183 6037 | #[allow(missing_docs)] // documentation missing in model
|
6038 + | /* StructureGenerator.kt:166 */
|
4184 6039 | pub fn foo_enum_map(
|
4185 6040 | &self,
|
4186 6041 | ) -> ::std::option::Option<
|
4187 6042 | &::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
4188 6043 | > {
|
6044 + | /* StructureGenerator.kt:170 */
|
4189 6045 | self.foo_enum_map.as_ref()
|
6046 + | /* StructureGenerator.kt:166 */
|
4190 6047 | }
|
6048 + | /* StructureGenerator.kt:135 */
|
4191 6049 | }
|
6050 + | /* RustType.kt:516 */
|
4192 6051 | #[allow(clippy::new_without_default)]
|
6052 + | /* RustType.kt:516 */
|
4193 6053 | #[allow(clippy::too_many_arguments)]
|
6054 + | /* RustType.kt:516 */
|
4194 6055 | #[::pyo3::pymethods]
|
6056 + | /* PythonServerStructureGenerator.kt:88 */
|
4195 6057 | impl JsonEnumsInput {
|
4196 6058 | #[new]
|
4197 6059 | pub fn new(
|
4198 6060 | foo_enum1: ::std::option::Option<crate::model::FooEnum>,
|
4199 6061 | foo_enum2: ::std::option::Option<crate::model::FooEnum>,
|
4200 6062 | foo_enum3: ::std::option::Option<crate::model::FooEnum>,
|
4201 6063 | foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4202 6064 | foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4203 6065 | foo_enum_map: ::std::option::Option<
|
4204 6066 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
4205 6067 | >,
|
4206 6068 | ) -> Self {
|
4207 6069 | Self {
|
4208 6070 | foo_enum1,
|
4209 6071 | foo_enum2,
|
4210 6072 | foo_enum3,
|
4211 6073 | foo_enum_list,
|
4212 6074 | foo_enum_set,
|
4213 6075 | foo_enum_map,
|
4214 6076 | }
|
4215 6077 | }
|
4216 6078 | fn __repr__(&self) -> String {
|
4217 6079 | format!("{self:?}")
|
4218 6080 | }
|
4219 6081 | fn __str__(&self) -> String {
|
4220 6082 | format!("{self:?}")
|
4221 6083 | }
|
4222 6084 | }
|
6085 + | /* PythonServerStructureGenerator.kt:111 */
|
4223 6086 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonEnumsInput> {
|
4224 6087 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4225 6088 | ob.extract::<JsonEnumsInput>().map(Box::new)
|
4226 6089 | }
|
4227 6090 | }
|
4228 6091 |
|
4229 6092 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonEnumsInput> {
|
4230 6093 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4231 6094 | (*self).into_py(py)
|
4232 6095 | }
|
4233 6096 | }
|
6097 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4234 6098 | impl crate::constrained::Constrained for crate::input::JsonEnumsInput {
|
4235 6099 | type Unconstrained = crate::input::json_enums_input_internal::Builder;
|
4236 6100 | }
|
6101 + | /* ServerCodegenVisitor.kt:370 */
|
4237 6102 | impl JsonEnumsInput {
|
4238 - | /// Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
6103 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
6104 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4239 6105 | pub fn builder() -> crate::input::json_enums_input::Builder {
|
6106 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4240 6107 | crate::input::json_enums_input::Builder::default()
|
6108 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4241 6109 | }
|
6110 + | /* ServerCodegenVisitor.kt:370 */
|
4242 6111 | }
|
4243 6112 |
|
6113 + | /* RustType.kt:516 */
|
4244 6114 | #[::pyo3::pyclass]
|
6115 + | /* PythonServerStructureGenerator.kt:63 */
|
4245 6116 | /// :param normal typing.Optional\[rest_json.types.DateTime\]:
|
4246 6117 | /// :param date_time typing.Optional\[rest_json.types.DateTime\]:
|
4247 6118 | /// :param date_time_on_target typing.Optional\[rest_json.types.DateTime\]:
|
4248 6119 | /// :param epoch_seconds typing.Optional\[rest_json.types.DateTime\]:
|
4249 6120 | /// :param epoch_seconds_on_target typing.Optional\[rest_json.types.DateTime\]:
|
4250 6121 | /// :param http_date typing.Optional\[rest_json.types.DateTime\]:
|
4251 6122 | /// :param http_date_on_target typing.Optional\[rest_json.types.DateTime\]:
|
4252 6123 | /// :rtype None:
|
6124 + | /* StructureGenerator.kt:197 */
|
4253 6125 | #[allow(missing_docs)] // documentation missing in model
|
6126 + | /* RustType.kt:516 */
|
4254 6127 | #[derive(
|
4255 6128 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4256 6129 | )]
|
4257 - | pub struct JsonTimestampsInput {
|
6130 + | pub /* StructureGenerator.kt:201 */ struct JsonTimestampsInput {
|
6131 + | /* RustType.kt:516 */
|
4258 6132 | #[pyo3(get, set)]
|
6133 + | /* PythonServerStructureGenerator.kt:80 */
|
4259 6134 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6135 + | /* StructureGenerator.kt:231 */
|
4260 6136 | #[allow(missing_docs)] // documentation missing in model
|
4261 6137 | pub normal: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6138 + | /* RustType.kt:516 */
|
4262 6139 | #[pyo3(get, set)]
|
6140 + | /* PythonServerStructureGenerator.kt:80 */
|
4263 6141 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6142 + | /* StructureGenerator.kt:231 */
|
4264 6143 | #[allow(missing_docs)] // documentation missing in model
|
4265 6144 | pub date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6145 + | /* RustType.kt:516 */
|
4266 6146 | #[pyo3(get, set)]
|
6147 + | /* PythonServerStructureGenerator.kt:80 */
|
4267 6148 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6149 + | /* StructureGenerator.kt:231 */
|
4268 6150 | #[allow(missing_docs)] // documentation missing in model
|
4269 6151 | pub date_time_on_target:
|
4270 6152 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6153 + | /* RustType.kt:516 */
|
4271 6154 | #[pyo3(get, set)]
|
6155 + | /* PythonServerStructureGenerator.kt:80 */
|
4272 6156 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6157 + | /* StructureGenerator.kt:231 */
|
4273 6158 | #[allow(missing_docs)] // documentation missing in model
|
4274 6159 | pub epoch_seconds: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6160 + | /* RustType.kt:516 */
|
4275 6161 | #[pyo3(get, set)]
|
6162 + | /* PythonServerStructureGenerator.kt:80 */
|
4276 6163 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6164 + | /* StructureGenerator.kt:231 */
|
4277 6165 | #[allow(missing_docs)] // documentation missing in model
|
4278 6166 | pub epoch_seconds_on_target:
|
4279 6167 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6168 + | /* RustType.kt:516 */
|
4280 6169 | #[pyo3(get, set)]
|
6170 + | /* PythonServerStructureGenerator.kt:80 */
|
4281 6171 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6172 + | /* StructureGenerator.kt:231 */
|
4282 6173 | #[allow(missing_docs)] // documentation missing in model
|
4283 6174 | pub http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6175 + | /* RustType.kt:516 */
|
4284 6176 | #[pyo3(get, set)]
|
6177 + | /* PythonServerStructureGenerator.kt:80 */
|
4285 6178 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
6179 + | /* StructureGenerator.kt:231 */
|
4286 6180 | #[allow(missing_docs)] // documentation missing in model
|
4287 6181 | pub http_date_on_target:
|
4288 6182 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6183 + | /* StructureGenerator.kt:201 */
|
4289 6184 | }
|
6185 + | /* StructureGenerator.kt:135 */
|
4290 6186 | impl JsonTimestampsInput {
|
6187 + | /* StructureGenerator.kt:231 */
|
4291 6188 | #[allow(missing_docs)] // documentation missing in model
|
6189 + | /* StructureGenerator.kt:166 */
|
4292 6190 | pub fn normal(
|
4293 6191 | &self,
|
4294 6192 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6193 + | /* StructureGenerator.kt:170 */
|
4295 6194 | self.normal.as_ref()
|
6195 + | /* StructureGenerator.kt:166 */
|
4296 6196 | }
|
6197 + | /* StructureGenerator.kt:231 */
|
4297 6198 | #[allow(missing_docs)] // documentation missing in model
|
6199 + | /* StructureGenerator.kt:166 */
|
4298 6200 | pub fn date_time(
|
4299 6201 | &self,
|
4300 6202 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6203 + | /* StructureGenerator.kt:170 */
|
4301 6204 | self.date_time.as_ref()
|
6205 + | /* StructureGenerator.kt:166 */
|
4302 6206 | }
|
6207 + | /* StructureGenerator.kt:231 */
|
4303 6208 | #[allow(missing_docs)] // documentation missing in model
|
6209 + | /* StructureGenerator.kt:166 */
|
4304 6210 | pub fn date_time_on_target(
|
4305 6211 | &self,
|
4306 6212 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6213 + | /* StructureGenerator.kt:170 */
|
4307 6214 | self.date_time_on_target.as_ref()
|
6215 + | /* StructureGenerator.kt:166 */
|
4308 6216 | }
|
6217 + | /* StructureGenerator.kt:231 */
|
4309 6218 | #[allow(missing_docs)] // documentation missing in model
|
6219 + | /* StructureGenerator.kt:166 */
|
4310 6220 | pub fn epoch_seconds(
|
4311 6221 | &self,
|
4312 6222 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6223 + | /* StructureGenerator.kt:170 */
|
4313 6224 | self.epoch_seconds.as_ref()
|
6225 + | /* StructureGenerator.kt:166 */
|
4314 6226 | }
|
6227 + | /* StructureGenerator.kt:231 */
|
4315 6228 | #[allow(missing_docs)] // documentation missing in model
|
6229 + | /* StructureGenerator.kt:166 */
|
4316 6230 | pub fn epoch_seconds_on_target(
|
4317 6231 | &self,
|
4318 6232 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6233 + | /* StructureGenerator.kt:170 */
|
4319 6234 | self.epoch_seconds_on_target.as_ref()
|
6235 + | /* StructureGenerator.kt:166 */
|
4320 6236 | }
|
6237 + | /* StructureGenerator.kt:231 */
|
4321 6238 | #[allow(missing_docs)] // documentation missing in model
|
6239 + | /* StructureGenerator.kt:166 */
|
4322 6240 | pub fn http_date(
|
4323 6241 | &self,
|
4324 6242 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6243 + | /* StructureGenerator.kt:170 */
|
4325 6244 | self.http_date.as_ref()
|
6245 + | /* StructureGenerator.kt:166 */
|
4326 6246 | }
|
6247 + | /* StructureGenerator.kt:231 */
|
4327 6248 | #[allow(missing_docs)] // documentation missing in model
|
6249 + | /* StructureGenerator.kt:166 */
|
4328 6250 | pub fn http_date_on_target(
|
4329 6251 | &self,
|
4330 6252 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
6253 + | /* StructureGenerator.kt:170 */
|
4331 6254 | self.http_date_on_target.as_ref()
|
6255 + | /* StructureGenerator.kt:166 */
|
4332 6256 | }
|
6257 + | /* StructureGenerator.kt:135 */
|
4333 6258 | }
|
6259 + | /* RustType.kt:516 */
|
4334 6260 | #[allow(clippy::new_without_default)]
|
6261 + | /* RustType.kt:516 */
|
4335 6262 | #[allow(clippy::too_many_arguments)]
|
6263 + | /* RustType.kt:516 */
|
4336 6264 | #[::pyo3::pymethods]
|
6265 + | /* PythonServerStructureGenerator.kt:88 */
|
4337 6266 | impl JsonTimestampsInput {
|
4338 6267 | #[new]
|
4339 6268 | pub fn new(
|
4340 6269 | normal: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
4341 6270 | date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
4342 6271 | date_time_on_target: ::std::option::Option<
|
4343 6272 | ::aws_smithy_http_server_python::types::DateTime,
|
4344 6273 | >,
|
4345 6274 | epoch_seconds: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
4346 6275 | epoch_seconds_on_target: ::std::option::Option<
|
4347 6276 | ::aws_smithy_http_server_python::types::DateTime,
|
4348 6277 | >,
|
4349 6278 | http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
4350 6279 | http_date_on_target: ::std::option::Option<
|
4351 6280 | ::aws_smithy_http_server_python::types::DateTime,
|
4352 6281 | >,
|
4353 6282 | ) -> Self {
|
4354 6283 | Self {
|
4355 6284 | normal,
|
4356 6285 | date_time,
|
4357 6286 | date_time_on_target,
|
4358 6287 | epoch_seconds,
|
4359 6288 | epoch_seconds_on_target,
|
4360 6289 | http_date,
|
4361 6290 | http_date_on_target,
|
4362 6291 | }
|
4363 6292 | }
|
4364 6293 | fn __repr__(&self) -> String {
|
4365 6294 | format!("{self:?}")
|
4366 6295 | }
|
4367 6296 | fn __str__(&self) -> String {
|
4368 6297 | format!("{self:?}")
|
4369 6298 | }
|
4370 6299 | }
|
6300 + | /* PythonServerStructureGenerator.kt:111 */
|
4371 6301 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonTimestampsInput> {
|
4372 6302 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4373 6303 | ob.extract::<JsonTimestampsInput>().map(Box::new)
|
4374 6304 | }
|
4375 6305 | }
|
4376 6306 |
|
4377 6307 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonTimestampsInput> {
|
4378 6308 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4379 6309 | (*self).into_py(py)
|
4380 6310 | }
|
4381 6311 | }
|
6312 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4382 6313 | impl crate::constrained::Constrained for crate::input::JsonTimestampsInput {
|
4383 6314 | type Unconstrained = crate::input::json_timestamps_input_internal::Builder;
|
4384 6315 | }
|
6316 + | /* ServerCodegenVisitor.kt:370 */
|
4385 6317 | impl JsonTimestampsInput {
|
4386 - | /// Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
6318 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
6319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4387 6320 | pub fn builder() -> crate::input::json_timestamps_input::Builder {
|
6321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4388 6322 | crate::input::json_timestamps_input::Builder::default()
|
6323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4389 6324 | }
|
6325 + | /* ServerCodegenVisitor.kt:370 */
|
4390 6326 | }
|
4391 6327 |
|
6328 + | /* RustType.kt:516 */
|
4392 6329 | #[::pyo3::pyclass]
|
6330 + | /* PythonServerStructureGenerator.kt:63 */
|
4393 6331 | /// :param foo typing.Optional\[str\]:
|
4394 6332 | /// :param string_value typing.Optional\[str\]:
|
4395 6333 | /// :param true_boolean_value typing.Optional\[bool\]:
|
4396 6334 | /// :param false_boolean_value typing.Optional\[bool\]:
|
4397 6335 | /// :param byte_value typing.Optional\[int\]:
|
4398 6336 | /// :param short_value typing.Optional\[int\]:
|
4399 6337 | /// :param integer_value typing.Optional\[int\]:
|
4400 6338 | /// :param long_value typing.Optional\[int\]:
|
4401 6339 | /// :param float_value typing.Optional\[float\]:
|
4402 6340 | /// :param double_value typing.Optional\[float\]:
|
4403 6341 | /// :rtype None:
|
6342 + | /* StructureGenerator.kt:197 */
|
4404 6343 | #[allow(missing_docs)] // documentation missing in model
|
6344 + | /* RustType.kt:516 */
|
4405 6345 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4406 - | pub struct SimpleScalarPropertiesInput {
|
6346 + | pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
|
6347 + | /* RustType.kt:516 */
|
4407 6348 | #[pyo3(get, set)]
|
6349 + | /* PythonServerStructureGenerator.kt:80 */
|
4408 6350 | /// :type typing.Optional\[str\]:
|
6351 + | /* StructureGenerator.kt:231 */
|
4409 6352 | #[allow(missing_docs)] // documentation missing in model
|
4410 6353 | pub foo: ::std::option::Option<::std::string::String>,
|
6354 + | /* RustType.kt:516 */
|
4411 6355 | #[pyo3(get, set)]
|
6356 + | /* PythonServerStructureGenerator.kt:80 */
|
4412 6357 | /// :type typing.Optional\[str\]:
|
6358 + | /* StructureGenerator.kt:231 */
|
4413 6359 | #[allow(missing_docs)] // documentation missing in model
|
4414 6360 | pub string_value: ::std::option::Option<::std::string::String>,
|
6361 + | /* RustType.kt:516 */
|
4415 6362 | #[pyo3(get, set)]
|
6363 + | /* PythonServerStructureGenerator.kt:80 */
|
4416 6364 | /// :type typing.Optional\[bool\]:
|
6365 + | /* StructureGenerator.kt:231 */
|
4417 6366 | #[allow(missing_docs)] // documentation missing in model
|
4418 6367 | pub true_boolean_value: ::std::option::Option<bool>,
|
6368 + | /* RustType.kt:516 */
|
4419 6369 | #[pyo3(get, set)]
|
6370 + | /* PythonServerStructureGenerator.kt:80 */
|
4420 6371 | /// :type typing.Optional\[bool\]:
|
6372 + | /* StructureGenerator.kt:231 */
|
4421 6373 | #[allow(missing_docs)] // documentation missing in model
|
4422 6374 | pub false_boolean_value: ::std::option::Option<bool>,
|
6375 + | /* RustType.kt:516 */
|
4423 6376 | #[pyo3(get, set)]
|
6377 + | /* PythonServerStructureGenerator.kt:80 */
|
4424 6378 | /// :type typing.Optional\[int\]:
|
6379 + | /* StructureGenerator.kt:231 */
|
4425 6380 | #[allow(missing_docs)] // documentation missing in model
|
4426 6381 | pub byte_value: ::std::option::Option<i8>,
|
6382 + | /* RustType.kt:516 */
|
4427 6383 | #[pyo3(get, set)]
|
6384 + | /* PythonServerStructureGenerator.kt:80 */
|
4428 6385 | /// :type typing.Optional\[int\]:
|
6386 + | /* StructureGenerator.kt:231 */
|
4429 6387 | #[allow(missing_docs)] // documentation missing in model
|
4430 6388 | pub short_value: ::std::option::Option<i16>,
|
6389 + | /* RustType.kt:516 */
|
4431 6390 | #[pyo3(get, set)]
|
6391 + | /* PythonServerStructureGenerator.kt:80 */
|
4432 6392 | /// :type typing.Optional\[int\]:
|
6393 + | /* StructureGenerator.kt:231 */
|
4433 6394 | #[allow(missing_docs)] // documentation missing in model
|
4434 6395 | pub integer_value: ::std::option::Option<i32>,
|
6396 + | /* RustType.kt:516 */
|
4435 6397 | #[pyo3(get, set)]
|
6398 + | /* PythonServerStructureGenerator.kt:80 */
|
4436 6399 | /// :type typing.Optional\[int\]:
|
6400 + | /* StructureGenerator.kt:231 */
|
4437 6401 | #[allow(missing_docs)] // documentation missing in model
|
4438 6402 | pub long_value: ::std::option::Option<i64>,
|
6403 + | /* RustType.kt:516 */
|
4439 6404 | #[pyo3(get, set)]
|
6405 + | /* PythonServerStructureGenerator.kt:80 */
|
4440 6406 | /// :type typing.Optional\[float\]:
|
6407 + | /* StructureGenerator.kt:231 */
|
4441 6408 | #[allow(missing_docs)] // documentation missing in model
|
4442 6409 | pub float_value: ::std::option::Option<f32>,
|
6410 + | /* RustType.kt:516 */
|
4443 6411 | #[pyo3(get, set)]
|
6412 + | /* PythonServerStructureGenerator.kt:80 */
|
4444 6413 | /// :type typing.Optional\[float\]:
|
6414 + | /* StructureGenerator.kt:231 */
|
4445 6415 | #[allow(missing_docs)] // documentation missing in model
|
4446 6416 | pub double_value: ::std::option::Option<f64>,
|
6417 + | /* StructureGenerator.kt:201 */
|
4447 6418 | }
|
6419 + | /* StructureGenerator.kt:135 */
|
4448 6420 | impl SimpleScalarPropertiesInput {
|
6421 + | /* StructureGenerator.kt:231 */
|
4449 6422 | #[allow(missing_docs)] // documentation missing in model
|
6423 + | /* StructureGenerator.kt:166 */
|
4450 6424 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
6425 + | /* StructureGenerator.kt:169 */
|
4451 6426 | self.foo.as_deref()
|
6427 + | /* StructureGenerator.kt:166 */
|
4452 6428 | }
|
6429 + | /* StructureGenerator.kt:231 */
|
4453 6430 | #[allow(missing_docs)] // documentation missing in model
|
6431 + | /* StructureGenerator.kt:166 */
|
4454 6432 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
6433 + | /* StructureGenerator.kt:169 */
|
4455 6434 | self.string_value.as_deref()
|
6435 + | /* StructureGenerator.kt:166 */
|
4456 6436 | }
|
6437 + | /* StructureGenerator.kt:231 */
|
4457 6438 | #[allow(missing_docs)] // documentation missing in model
|
6439 + | /* StructureGenerator.kt:166 */
|
4458 6440 | pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
|
6441 + | /* StructureGenerator.kt:168 */
|
4459 6442 | self.true_boolean_value
|
6443 + | /* StructureGenerator.kt:166 */
|
4460 6444 | }
|
6445 + | /* StructureGenerator.kt:231 */
|
4461 6446 | #[allow(missing_docs)] // documentation missing in model
|
6447 + | /* StructureGenerator.kt:166 */
|
4462 6448 | pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
|
6449 + | /* StructureGenerator.kt:168 */
|
4463 6450 | self.false_boolean_value
|
6451 + | /* StructureGenerator.kt:166 */
|
4464 6452 | }
|
6453 + | /* StructureGenerator.kt:231 */
|
4465 6454 | #[allow(missing_docs)] // documentation missing in model
|
6455 + | /* StructureGenerator.kt:166 */
|
4466 6456 | pub fn byte_value(&self) -> ::std::option::Option<i8> {
|
6457 + | /* StructureGenerator.kt:168 */
|
4467 6458 | self.byte_value
|
6459 + | /* StructureGenerator.kt:166 */
|
4468 6460 | }
|
6461 + | /* StructureGenerator.kt:231 */
|
4469 6462 | #[allow(missing_docs)] // documentation missing in model
|
6463 + | /* StructureGenerator.kt:166 */
|
4470 6464 | pub fn short_value(&self) -> ::std::option::Option<i16> {
|
6465 + | /* StructureGenerator.kt:168 */
|
4471 6466 | self.short_value
|
6467 + | /* StructureGenerator.kt:166 */
|
4472 6468 | }
|
6469 + | /* StructureGenerator.kt:231 */
|
4473 6470 | #[allow(missing_docs)] // documentation missing in model
|
6471 + | /* StructureGenerator.kt:166 */
|
4474 6472 | pub fn integer_value(&self) -> ::std::option::Option<i32> {
|
6473 + | /* StructureGenerator.kt:168 */
|
4475 6474 | self.integer_value
|
6475 + | /* StructureGenerator.kt:166 */
|
4476 6476 | }
|
6477 + | /* StructureGenerator.kt:231 */
|
4477 6478 | #[allow(missing_docs)] // documentation missing in model
|
6479 + | /* StructureGenerator.kt:166 */
|
4478 6480 | pub fn long_value(&self) -> ::std::option::Option<i64> {
|
6481 + | /* StructureGenerator.kt:168 */
|
4479 6482 | self.long_value
|
6483 + | /* StructureGenerator.kt:166 */
|
4480 6484 | }
|
6485 + | /* StructureGenerator.kt:231 */
|
4481 6486 | #[allow(missing_docs)] // documentation missing in model
|
6487 + | /* StructureGenerator.kt:166 */
|
4482 6488 | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
6489 + | /* StructureGenerator.kt:168 */
|
4483 6490 | self.float_value
|
6491 + | /* StructureGenerator.kt:166 */
|
4484 6492 | }
|
6493 + | /* StructureGenerator.kt:231 */
|
4485 6494 | #[allow(missing_docs)] // documentation missing in model
|
6495 + | /* StructureGenerator.kt:166 */
|
4486 6496 | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
6497 + | /* StructureGenerator.kt:168 */
|
4487 6498 | self.double_value
|
6499 + | /* StructureGenerator.kt:166 */
|
4488 6500 | }
|
6501 + | /* StructureGenerator.kt:135 */
|
4489 6502 | }
|
6503 + | /* RustType.kt:516 */
|
4490 6504 | #[allow(clippy::new_without_default)]
|
6505 + | /* RustType.kt:516 */
|
4491 6506 | #[allow(clippy::too_many_arguments)]
|
6507 + | /* RustType.kt:516 */
|
4492 6508 | #[::pyo3::pymethods]
|
6509 + | /* PythonServerStructureGenerator.kt:88 */
|
4493 6510 | impl SimpleScalarPropertiesInput {
|
4494 6511 | #[new]
|
4495 6512 | pub fn new(
|
4496 6513 | foo: ::std::option::Option<::std::string::String>,
|
4497 6514 | string_value: ::std::option::Option<::std::string::String>,
|
4498 6515 | true_boolean_value: ::std::option::Option<bool>,
|
4499 6516 | false_boolean_value: ::std::option::Option<bool>,
|
4500 6517 | byte_value: ::std::option::Option<i8>,
|
4501 6518 | short_value: ::std::option::Option<i16>,
|
4502 6519 | integer_value: ::std::option::Option<i32>,
|
4503 6520 | long_value: ::std::option::Option<i64>,
|
4504 6521 | float_value: ::std::option::Option<f32>,
|
4505 6522 | double_value: ::std::option::Option<f64>,
|
4506 6523 | ) -> Self {
|
4507 6524 | Self {
|
4508 6525 | foo,
|
4509 6526 | string_value,
|
4510 6527 | true_boolean_value,
|
4511 6528 | false_boolean_value,
|
4512 6529 | byte_value,
|
4513 6530 | short_value,
|
4514 6531 | integer_value,
|
4515 6532 | long_value,
|
4516 6533 | float_value,
|
4517 6534 | double_value,
|
4518 6535 | }
|
4519 6536 | }
|
4520 6537 | fn __repr__(&self) -> String {
|
4521 6538 | format!("{self:?}")
|
4522 6539 | }
|
4523 6540 | fn __str__(&self) -> String {
|
4524 6541 | format!("{self:?}")
|
4525 6542 | }
|
4526 6543 | }
|
6544 + | /* PythonServerStructureGenerator.kt:111 */
|
4527 6545 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
4528 6546 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4529 6547 | ob.extract::<SimpleScalarPropertiesInput>().map(Box::new)
|
4530 6548 | }
|
4531 6549 | }
|
4532 6550 |
|
4533 6551 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
4534 6552 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4535 6553 | (*self).into_py(py)
|
4536 6554 | }
|
4537 6555 | }
|
6556 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4538 6557 | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
4539 6558 | type Unconstrained = crate::input::simple_scalar_properties_input_internal::Builder;
|
4540 6559 | }
|
6560 + | /* ServerCodegenVisitor.kt:370 */
|
4541 6561 | impl SimpleScalarPropertiesInput {
|
4542 - | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
6562 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
6563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4543 6564 | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
6565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4544 6566 | crate::input::simple_scalar_properties_input::Builder::default()
|
6567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4545 6568 | }
|
6569 + | /* ServerCodegenVisitor.kt:370 */
|
4546 6570 | }
|
4547 6571 |
|
6572 + | /* RustType.kt:516 */
|
4548 6573 | #[::pyo3::pyclass]
|
6574 + | /* PythonServerStructureGenerator.kt:63 */
|
4549 6575 | /// :rtype None:
|
6576 + | /* StructureGenerator.kt:197 */
|
4550 6577 | #[allow(missing_docs)] // documentation missing in model
|
6578 + | /* RustType.kt:516 */
|
4551 6579 | #[derive(
|
4552 6580 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4553 6581 | )]
|
4554 - | pub struct GreetingWithErrorsInput {}
|
6582 + | pub /* StructureGenerator.kt:201 */ struct GreetingWithErrorsInput {/* StructureGenerator.kt:201 */}
|
6583 + | /* RustType.kt:516 */
|
4555 6584 | #[allow(clippy::new_without_default)]
|
6585 + | /* RustType.kt:516 */
|
4556 6586 | #[allow(clippy::too_many_arguments)]
|
6587 + | /* RustType.kt:516 */
|
4557 6588 | #[::pyo3::pymethods]
|
6589 + | /* PythonServerStructureGenerator.kt:88 */
|
4558 6590 | impl GreetingWithErrorsInput {
|
4559 6591 | #[new]
|
4560 6592 | pub fn new() -> Self {
|
4561 6593 | Self {}
|
4562 6594 | }
|
4563 6595 | fn __repr__(&self) -> String {
|
4564 6596 | format!("{self:?}")
|
4565 6597 | }
|
4566 6598 | fn __str__(&self) -> String {
|
4567 6599 | format!("{self:?}")
|
4568 6600 | }
|
4569 6601 | }
|
6602 + | /* PythonServerStructureGenerator.kt:111 */
|
4570 6603 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GreetingWithErrorsInput> {
|
4571 6604 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4572 6605 | ob.extract::<GreetingWithErrorsInput>().map(Box::new)
|
4573 6606 | }
|
4574 6607 | }
|
4575 6608 |
|
4576 6609 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GreetingWithErrorsInput> {
|
4577 6610 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4578 6611 | (*self).into_py(py)
|
4579 6612 | }
|
4580 6613 | }
|
6614 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4581 6615 | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
4582 6616 | type Unconstrained = crate::input::greeting_with_errors_input_internal::Builder;
|
4583 6617 | }
|
6618 + | /* ServerCodegenVisitor.kt:370 */
|
4584 6619 | impl GreetingWithErrorsInput {
|
4585 - | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
6620 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
6621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4586 6622 | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
6623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4587 6624 | crate::input::greeting_with_errors_input::Builder::default()
|
6625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4588 6626 | }
|
6627 + | /* ServerCodegenVisitor.kt:370 */
|
4589 6628 | }
|
4590 6629 |
|
6630 + | /* RustType.kt:516 */
|
4591 6631 | #[::pyo3::pyclass]
|
4592 - | /// :param foo typing.Optional\[str\]:
|
6632 + | /* PythonServerStructureGenerator.kt:63 */
|
4593 6633 | /// :param blob rest_json.types.ByteStream:
|
6634 + | /// :param foo typing.Optional\[str\]:
|
4594 6635 | /// :rtype None:
|
6636 + | /* StructureGenerator.kt:197 */
|
4595 6637 | #[allow(missing_docs)] // documentation missing in model
|
6638 + | /* RustType.kt:516 */
|
4596 6639 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4597 - | pub struct StreamingTraitsWithMediaTypeInput {
|
6640 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsWithMediaTypeInput {
|
6641 + | /* RustType.kt:516 */
|
4598 6642 | #[pyo3(get, set)]
|
6643 + | /* PythonServerStructureGenerator.kt:80 */
|
4599 6644 | /// :type typing.Optional\[str\]:
|
6645 + | /* StructureGenerator.kt:231 */
|
4600 6646 | #[allow(missing_docs)] // documentation missing in model
|
4601 6647 | pub foo: ::std::option::Option<::std::string::String>,
|
6648 + | /* RustType.kt:516 */
|
4602 6649 | #[pyo3(get, set)]
|
6650 + | /* PythonServerStructureGenerator.kt:80 */
|
4603 6651 | /// :type rest_json.types.ByteStream:
|
6652 + | /* StructureGenerator.kt:231 */
|
4604 6653 | #[allow(missing_docs)] // documentation missing in model
|
4605 6654 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6655 + | /* StructureGenerator.kt:201 */
|
4606 6656 | }
|
6657 + | /* StructureGenerator.kt:135 */
|
4607 6658 | impl StreamingTraitsWithMediaTypeInput {
|
6659 + | /* StructureGenerator.kt:231 */
|
4608 6660 | #[allow(missing_docs)] // documentation missing in model
|
6661 + | /* StructureGenerator.kt:166 */
|
4609 6662 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
6663 + | /* StructureGenerator.kt:169 */
|
4610 6664 | self.foo.as_deref()
|
6665 + | /* StructureGenerator.kt:166 */
|
4611 6666 | }
|
6667 + | /* StructureGenerator.kt:231 */
|
4612 6668 | #[allow(missing_docs)] // documentation missing in model
|
6669 + | /* StructureGenerator.kt:166 */
|
4613 6670 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
6671 + | /* StructureGenerator.kt:172 */
|
4614 6672 | &self.blob
|
6673 + | /* StructureGenerator.kt:166 */
|
4615 6674 | }
|
6675 + | /* StructureGenerator.kt:135 */
|
4616 6676 | }
|
6677 + | /* RustType.kt:516 */
|
4617 6678 | #[allow(clippy::new_without_default)]
|
6679 + | /* RustType.kt:516 */
|
4618 6680 | #[allow(clippy::too_many_arguments)]
|
6681 + | /* RustType.kt:516 */
|
4619 6682 | #[::pyo3::pymethods]
|
6683 + | /* PythonServerStructureGenerator.kt:88 */
|
4620 6684 | impl StreamingTraitsWithMediaTypeInput {
|
4621 6685 | #[new]
|
4622 6686 | pub fn new(
|
4623 - | foo: ::std::option::Option<::std::string::String>,
|
4624 6687 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6688 + | foo: ::std::option::Option<::std::string::String>,
|
4625 6689 | ) -> Self {
|
4626 - | Self { foo, blob }
|
6690 + | Self { blob, foo }
|
4627 6691 | }
|
4628 6692 | fn __repr__(&self) -> String {
|
4629 6693 | format!("{self:?}")
|
4630 6694 | }
|
4631 6695 | fn __str__(&self) -> String {
|
4632 6696 | format!("{self:?}")
|
4633 6697 | }
|
4634 6698 | }
|
6699 + | /* PythonServerStructureGenerator.kt:111 */
|
4635 6700 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsWithMediaTypeInput> {
|
4636 6701 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4637 6702 | ob.extract::<StreamingTraitsWithMediaTypeInput>()
|
4638 6703 | .map(Box::new)
|
4639 6704 | }
|
4640 6705 | }
|
4641 6706 |
|
4642 6707 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingTraitsWithMediaTypeInput> {
|
4643 6708 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4644 6709 | (*self).into_py(py)
|
4645 6710 | }
|
4646 6711 | }
|
6712 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4647 6713 | impl crate::constrained::Constrained for crate::input::StreamingTraitsWithMediaTypeInput {
|
4648 6714 | type Unconstrained = crate::input::streaming_traits_with_media_type_input_internal::Builder;
|
4649 6715 | }
|
6716 + | /* ServerCodegenVisitor.kt:370 */
|
4650 6717 | impl StreamingTraitsWithMediaTypeInput {
|
4651 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
6718 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
6719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4652 6720 | pub fn builder() -> crate::input::streaming_traits_with_media_type_input::Builder {
|
6721 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4653 6722 | crate::input::streaming_traits_with_media_type_input::Builder::default()
|
6723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4654 6724 | }
|
6725 + | /* ServerCodegenVisitor.kt:370 */
|
4655 6726 | }
|
4656 6727 |
|
6728 + | /* RustType.kt:516 */
|
4657 6729 | #[::pyo3::pyclass]
|
4658 - | /// :param foo typing.Optional\[str\]:
|
6730 + | /* PythonServerStructureGenerator.kt:63 */
|
4659 6731 | /// :param blob rest_json.types.ByteStream:
|
6732 + | /// :param foo typing.Optional\[str\]:
|
4660 6733 | /// :rtype None:
|
6734 + | /* StructureGenerator.kt:197 */
|
4661 6735 | #[allow(missing_docs)] // documentation missing in model
|
6736 + | /* RustType.kt:516 */
|
4662 6737 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4663 - | pub struct StreamingTraitsRequireLengthInput {
|
6738 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsRequireLengthInput {
|
6739 + | /* RustType.kt:516 */
|
4664 6740 | #[pyo3(get, set)]
|
6741 + | /* PythonServerStructureGenerator.kt:80 */
|
4665 6742 | /// :type typing.Optional\[str\]:
|
6743 + | /* StructureGenerator.kt:231 */
|
4666 6744 | #[allow(missing_docs)] // documentation missing in model
|
4667 6745 | pub foo: ::std::option::Option<::std::string::String>,
|
6746 + | /* RustType.kt:516 */
|
4668 6747 | #[pyo3(get, set)]
|
6748 + | /* PythonServerStructureGenerator.kt:80 */
|
4669 6749 | /// :type rest_json.types.ByteStream:
|
6750 + | /* StructureGenerator.kt:231 */
|
4670 6751 | #[allow(missing_docs)] // documentation missing in model
|
4671 6752 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6753 + | /* StructureGenerator.kt:201 */
|
4672 6754 | }
|
6755 + | /* StructureGenerator.kt:135 */
|
4673 6756 | impl StreamingTraitsRequireLengthInput {
|
6757 + | /* StructureGenerator.kt:231 */
|
4674 6758 | #[allow(missing_docs)] // documentation missing in model
|
6759 + | /* StructureGenerator.kt:166 */
|
4675 6760 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
6761 + | /* StructureGenerator.kt:169 */
|
4676 6762 | self.foo.as_deref()
|
6763 + | /* StructureGenerator.kt:166 */
|
4677 6764 | }
|
6765 + | /* StructureGenerator.kt:231 */
|
4678 6766 | #[allow(missing_docs)] // documentation missing in model
|
6767 + | /* StructureGenerator.kt:166 */
|
4679 6768 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
6769 + | /* StructureGenerator.kt:172 */
|
4680 6770 | &self.blob
|
6771 + | /* StructureGenerator.kt:166 */
|
4681 6772 | }
|
6773 + | /* StructureGenerator.kt:135 */
|
4682 6774 | }
|
6775 + | /* RustType.kt:516 */
|
4683 6776 | #[allow(clippy::new_without_default)]
|
6777 + | /* RustType.kt:516 */
|
4684 6778 | #[allow(clippy::too_many_arguments)]
|
6779 + | /* RustType.kt:516 */
|
4685 6780 | #[::pyo3::pymethods]
|
6781 + | /* PythonServerStructureGenerator.kt:88 */
|
4686 6782 | impl StreamingTraitsRequireLengthInput {
|
4687 6783 | #[new]
|
4688 6784 | pub fn new(
|
4689 - | foo: ::std::option::Option<::std::string::String>,
|
4690 6785 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6786 + | foo: ::std::option::Option<::std::string::String>,
|
4691 6787 | ) -> Self {
|
4692 - | Self { foo, blob }
|
6788 + | Self { blob, foo }
|
4693 6789 | }
|
4694 6790 | fn __repr__(&self) -> String {
|
4695 6791 | format!("{self:?}")
|
4696 6792 | }
|
4697 6793 | fn __str__(&self) -> String {
|
4698 6794 | format!("{self:?}")
|
4699 6795 | }
|
4700 6796 | }
|
6797 + | /* PythonServerStructureGenerator.kt:111 */
|
4701 6798 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsRequireLengthInput> {
|
4702 6799 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4703 6800 | ob.extract::<StreamingTraitsRequireLengthInput>()
|
4704 6801 | .map(Box::new)
|
4705 6802 | }
|
4706 6803 | }
|
4707 6804 |
|
4708 6805 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingTraitsRequireLengthInput> {
|
4709 6806 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4710 6807 | (*self).into_py(py)
|
4711 6808 | }
|
4712 6809 | }
|
6810 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4713 6811 | impl crate::constrained::Constrained for crate::input::StreamingTraitsRequireLengthInput {
|
4714 6812 | type Unconstrained = crate::input::streaming_traits_require_length_input_internal::Builder;
|
4715 6813 | }
|
6814 + | /* ServerCodegenVisitor.kt:370 */
|
4716 6815 | impl StreamingTraitsRequireLengthInput {
|
4717 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
6816 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
6817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4718 6818 | pub fn builder() -> crate::input::streaming_traits_require_length_input::Builder {
|
6819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4719 6820 | crate::input::streaming_traits_require_length_input::Builder::default()
|
6821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4720 6822 | }
|
6823 + | /* ServerCodegenVisitor.kt:370 */
|
4721 6824 | }
|
4722 6825 |
|
6826 + | /* RustType.kt:516 */
|
4723 6827 | #[::pyo3::pyclass]
|
4724 - | /// :param foo typing.Optional\[str\]:
|
6828 + | /* PythonServerStructureGenerator.kt:63 */
|
4725 6829 | /// :param blob rest_json.types.ByteStream:
|
6830 + | /// :param foo typing.Optional\[str\]:
|
4726 6831 | /// :rtype None:
|
6832 + | /* StructureGenerator.kt:197 */
|
4727 6833 | #[allow(missing_docs)] // documentation missing in model
|
6834 + | /* RustType.kt:516 */
|
4728 6835 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
4729 - | pub struct StreamingTraitsInput {
|
6836 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsInput {
|
6837 + | /* RustType.kt:516 */
|
4730 6838 | #[pyo3(get, set)]
|
6839 + | /* PythonServerStructureGenerator.kt:80 */
|
4731 6840 | /// :type typing.Optional\[str\]:
|
6841 + | /* StructureGenerator.kt:231 */
|
4732 6842 | #[allow(missing_docs)] // documentation missing in model
|
4733 6843 | pub foo: ::std::option::Option<::std::string::String>,
|
6844 + | /* RustType.kt:516 */
|
4734 6845 | #[pyo3(get, set)]
|
6846 + | /* PythonServerStructureGenerator.kt:80 */
|
4735 6847 | /// :type rest_json.types.ByteStream:
|
6848 + | /* StructureGenerator.kt:231 */
|
4736 6849 | #[allow(missing_docs)] // documentation missing in model
|
4737 6850 | pub blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6851 + | /* StructureGenerator.kt:201 */
|
4738 6852 | }
|
6853 + | /* StructureGenerator.kt:135 */
|
4739 6854 | impl StreamingTraitsInput {
|
6855 + | /* StructureGenerator.kt:231 */
|
4740 6856 | #[allow(missing_docs)] // documentation missing in model
|
6857 + | /* StructureGenerator.kt:166 */
|
4741 6858 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
6859 + | /* StructureGenerator.kt:169 */
|
4742 6860 | self.foo.as_deref()
|
6861 + | /* StructureGenerator.kt:166 */
|
4743 6862 | }
|
6863 + | /* StructureGenerator.kt:231 */
|
4744 6864 | #[allow(missing_docs)] // documentation missing in model
|
6865 + | /* StructureGenerator.kt:166 */
|
4745 6866 | pub fn blob(&self) -> &::aws_smithy_http_server_python::types::ByteStream {
|
6867 + | /* StructureGenerator.kt:172 */
|
4746 6868 | &self.blob
|
6869 + | /* StructureGenerator.kt:166 */
|
4747 6870 | }
|
6871 + | /* StructureGenerator.kt:135 */
|
4748 6872 | }
|
6873 + | /* RustType.kt:516 */
|
4749 6874 | #[allow(clippy::new_without_default)]
|
6875 + | /* RustType.kt:516 */
|
4750 6876 | #[allow(clippy::too_many_arguments)]
|
6877 + | /* RustType.kt:516 */
|
4751 6878 | #[::pyo3::pymethods]
|
6879 + | /* PythonServerStructureGenerator.kt:88 */
|
4752 6880 | impl StreamingTraitsInput {
|
4753 6881 | #[new]
|
4754 6882 | pub fn new(
|
4755 - | foo: ::std::option::Option<::std::string::String>,
|
4756 6883 | blob: ::aws_smithy_http_server_python::types::ByteStream,
|
6884 + | foo: ::std::option::Option<::std::string::String>,
|
4757 6885 | ) -> Self {
|
4758 - | Self { foo, blob }
|
6886 + | Self { blob, foo }
|
4759 6887 | }
|
4760 6888 | fn __repr__(&self) -> String {
|
4761 6889 | format!("{self:?}")
|
4762 6890 | }
|
4763 6891 | fn __str__(&self) -> String {
|
4764 6892 | format!("{self:?}")
|
4765 6893 | }
|
4766 6894 | }
|
6895 + | /* PythonServerStructureGenerator.kt:111 */
|
4767 6896 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<StreamingTraitsInput> {
|
4768 6897 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4769 6898 | ob.extract::<StreamingTraitsInput>().map(Box::new)
|
4770 6899 | }
|
4771 6900 | }
|
4772 6901 |
|
4773 6902 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<StreamingTraitsInput> {
|
4774 6903 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4775 6904 | (*self).into_py(py)
|
4776 6905 | }
|
4777 6906 | }
|
6907 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4778 6908 | impl crate::constrained::Constrained for crate::input::StreamingTraitsInput {
|
4779 6909 | type Unconstrained = crate::input::streaming_traits_input_internal::Builder;
|
4780 6910 | }
|
6911 + | /* ServerCodegenVisitor.kt:370 */
|
4781 6912 | impl StreamingTraitsInput {
|
4782 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
6913 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
6914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4783 6915 | pub fn builder() -> crate::input::streaming_traits_input::Builder {
|
6916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4784 6917 | crate::input::streaming_traits_input::Builder::default()
|
6918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4785 6919 | }
|
6920 + | /* ServerCodegenVisitor.kt:370 */
|
4786 6921 | }
|
4787 6922 |
|
6923 + | /* RustType.kt:516 */
|
4788 6924 | #[::pyo3::pyclass]
|
6925 + | /* PythonServerStructureGenerator.kt:63 */
|
4789 6926 | /// :rtype None:
|
6927 + | /* StructureGenerator.kt:197 */
|
4790 6928 | #[allow(missing_docs)] // documentation missing in model
|
6929 + | /* RustType.kt:516 */
|
4791 6930 | #[derive(
|
4792 6931 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4793 6932 | )]
|
4794 - | pub struct HttpResponseCodeInput {}
|
6933 + | pub /* StructureGenerator.kt:201 */ struct HttpResponseCodeInput {/* StructureGenerator.kt:201 */}
|
6934 + | /* RustType.kt:516 */
|
4795 6935 | #[allow(clippy::new_without_default)]
|
6936 + | /* RustType.kt:516 */
|
4796 6937 | #[allow(clippy::too_many_arguments)]
|
6938 + | /* RustType.kt:516 */
|
4797 6939 | #[::pyo3::pymethods]
|
6940 + | /* PythonServerStructureGenerator.kt:88 */
|
4798 6941 | impl HttpResponseCodeInput {
|
4799 6942 | #[new]
|
4800 6943 | pub fn new() -> Self {
|
4801 6944 | Self {}
|
4802 6945 | }
|
4803 6946 | fn __repr__(&self) -> String {
|
4804 6947 | format!("{self:?}")
|
4805 6948 | }
|
4806 6949 | fn __str__(&self) -> String {
|
4807 6950 | format!("{self:?}")
|
4808 6951 | }
|
4809 6952 | }
|
6953 + | /* PythonServerStructureGenerator.kt:111 */
|
4810 6954 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpResponseCodeInput> {
|
4811 6955 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4812 6956 | ob.extract::<HttpResponseCodeInput>().map(Box::new)
|
4813 6957 | }
|
4814 6958 | }
|
4815 6959 |
|
4816 6960 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpResponseCodeInput> {
|
4817 6961 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4818 6962 | (*self).into_py(py)
|
4819 6963 | }
|
4820 6964 | }
|
6965 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4821 6966 | impl crate::constrained::Constrained for crate::input::HttpResponseCodeInput {
|
4822 6967 | type Unconstrained = crate::input::http_response_code_input_internal::Builder;
|
4823 6968 | }
|
6969 + | /* ServerCodegenVisitor.kt:370 */
|
4824 6970 | impl HttpResponseCodeInput {
|
4825 - | /// Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
6971 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
6972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4826 6973 | pub fn builder() -> crate::input::http_response_code_input::Builder {
|
6974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4827 6975 | crate::input::http_response_code_input::Builder::default()
|
6976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4828 6977 | }
|
6978 + | /* ServerCodegenVisitor.kt:370 */
|
4829 6979 | }
|
4830 6980 |
|
6981 + | /* RustType.kt:516 */
|
4831 6982 | #[::pyo3::pyclass]
|
6983 + | /* PythonServerStructureGenerator.kt:63 */
|
4832 6984 | /// :param nested typing.Optional\[rest_json.model.UnionPayload\]:
|
4833 6985 | /// :rtype None:
|
6986 + | /* StructureGenerator.kt:197 */
|
4834 6987 | #[allow(missing_docs)] // documentation missing in model
|
6988 + | /* RustType.kt:516 */
|
4835 6989 | #[derive(
|
4836 6990 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4837 6991 | )]
|
4838 - | pub struct HttpPayloadWithUnionInput {
|
6992 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithUnionInput {
|
6993 + | /* RustType.kt:516 */
|
4839 6994 | #[pyo3(get, set)]
|
6995 + | /* PythonServerStructureGenerator.kt:80 */
|
4840 6996 | /// :type typing.Optional\[rest_json.model.UnionPayload\]:
|
6997 + | /* StructureGenerator.kt:231 */
|
4841 6998 | #[allow(missing_docs)] // documentation missing in model
|
4842 6999 | pub nested: ::std::option::Option<crate::model::UnionPayload>,
|
7000 + | /* StructureGenerator.kt:201 */
|
4843 7001 | }
|
7002 + | /* StructureGenerator.kt:135 */
|
4844 7003 | impl HttpPayloadWithUnionInput {
|
7004 + | /* StructureGenerator.kt:231 */
|
4845 7005 | #[allow(missing_docs)] // documentation missing in model
|
7006 + | /* StructureGenerator.kt:166 */
|
4846 7007 | pub fn nested(&self) -> ::std::option::Option<&crate::model::UnionPayload> {
|
7008 + | /* StructureGenerator.kt:170 */
|
4847 7009 | self.nested.as_ref()
|
7010 + | /* StructureGenerator.kt:166 */
|
4848 7011 | }
|
7012 + | /* StructureGenerator.kt:135 */
|
4849 7013 | }
|
7014 + | /* RustType.kt:516 */
|
4850 7015 | #[allow(clippy::new_without_default)]
|
7016 + | /* RustType.kt:516 */
|
4851 7017 | #[allow(clippy::too_many_arguments)]
|
7018 + | /* RustType.kt:516 */
|
4852 7019 | #[::pyo3::pymethods]
|
7020 + | /* PythonServerStructureGenerator.kt:88 */
|
4853 7021 | impl HttpPayloadWithUnionInput {
|
4854 7022 | #[new]
|
4855 7023 | pub fn new(nested: ::std::option::Option<crate::model::UnionPayload>) -> Self {
|
4856 7024 | Self { nested }
|
4857 7025 | }
|
4858 7026 | fn __repr__(&self) -> String {
|
4859 7027 | format!("{self:?}")
|
4860 7028 | }
|
4861 7029 | fn __str__(&self) -> String {
|
4862 7030 | format!("{self:?}")
|
4863 7031 | }
|
4864 7032 | }
|
7033 + | /* PythonServerStructureGenerator.kt:111 */
|
4865 7034 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpPayloadWithUnionInput> {
|
4866 7035 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4867 7036 | ob.extract::<HttpPayloadWithUnionInput>().map(Box::new)
|
4868 7037 | }
|
4869 7038 | }
|
4870 7039 |
|
4871 7040 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPayloadWithUnionInput> {
|
4872 7041 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4873 7042 | (*self).into_py(py)
|
4874 7043 | }
|
4875 7044 | }
|
7045 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4876 7046 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithUnionInput {
|
4877 7047 | type Unconstrained = crate::input::http_payload_with_union_input_internal::Builder;
|
4878 7048 | }
|
7049 + | /* ServerCodegenVisitor.kt:370 */
|
4879 7050 | impl HttpPayloadWithUnionInput {
|
4880 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
7051 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
7052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4881 7053 | pub fn builder() -> crate::input::http_payload_with_union_input::Builder {
|
7054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4882 7055 | crate::input::http_payload_with_union_input::Builder::default()
|
7056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4883 7057 | }
|
7058 + | /* ServerCodegenVisitor.kt:370 */
|
4884 7059 | }
|
4885 7060 |
|
7061 + | /* RustType.kt:516 */
|
4886 7062 | #[::pyo3::pyclass]
|
7063 + | /* PythonServerStructureGenerator.kt:63 */
|
4887 7064 | /// :param payload typing.Optional\[str\]:
|
4888 7065 | /// :rtype None:
|
7066 + | /* StructureGenerator.kt:197 */
|
4889 7067 | #[allow(missing_docs)] // documentation missing in model
|
7068 + | /* RustType.kt:516 */
|
4890 7069 | #[derive(
|
4891 7070 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4892 7071 | )]
|
4893 - | pub struct HttpStringPayloadInput {
|
7072 + | pub /* StructureGenerator.kt:201 */ struct HttpStringPayloadInput {
|
7073 + | /* RustType.kt:516 */
|
4894 7074 | #[pyo3(get, set)]
|
7075 + | /* PythonServerStructureGenerator.kt:80 */
|
4895 7076 | /// :type typing.Optional\[str\]:
|
7077 + | /* StructureGenerator.kt:231 */
|
4896 7078 | #[allow(missing_docs)] // documentation missing in model
|
4897 7079 | pub payload: ::std::option::Option<::std::string::String>,
|
7080 + | /* StructureGenerator.kt:201 */
|
4898 7081 | }
|
7082 + | /* StructureGenerator.kt:135 */
|
4899 7083 | impl HttpStringPayloadInput {
|
7084 + | /* StructureGenerator.kt:231 */
|
4900 7085 | #[allow(missing_docs)] // documentation missing in model
|
7086 + | /* StructureGenerator.kt:166 */
|
4901 7087 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
7088 + | /* StructureGenerator.kt:169 */
|
4902 7089 | self.payload.as_deref()
|
7090 + | /* StructureGenerator.kt:166 */
|
4903 7091 | }
|
7092 + | /* StructureGenerator.kt:135 */
|
4904 7093 | }
|
7094 + | /* RustType.kt:516 */
|
4905 7095 | #[allow(clippy::new_without_default)]
|
7096 + | /* RustType.kt:516 */
|
4906 7097 | #[allow(clippy::too_many_arguments)]
|
7098 + | /* RustType.kt:516 */
|
4907 7099 | #[::pyo3::pymethods]
|
7100 + | /* PythonServerStructureGenerator.kt:88 */
|
4908 7101 | impl HttpStringPayloadInput {
|
4909 7102 | #[new]
|
4910 7103 | pub fn new(payload: ::std::option::Option<::std::string::String>) -> Self {
|
4911 7104 | Self { payload }
|
4912 7105 | }
|
4913 7106 | fn __repr__(&self) -> String {
|
4914 7107 | format!("{self:?}")
|
4915 7108 | }
|
4916 7109 | fn __str__(&self) -> String {
|
4917 7110 | format!("{self:?}")
|
4918 7111 | }
|
4919 7112 | }
|
7113 + | /* PythonServerStructureGenerator.kt:111 */
|
4920 7114 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpStringPayloadInput> {
|
4921 7115 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4922 7116 | ob.extract::<HttpStringPayloadInput>().map(Box::new)
|
4923 7117 | }
|
4924 7118 | }
|
4925 7119 |
|
4926 7120 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpStringPayloadInput> {
|
4927 7121 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4928 7122 | (*self).into_py(py)
|
4929 7123 | }
|
4930 7124 | }
|
7125 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4931 7126 | impl crate::constrained::Constrained for crate::input::HttpStringPayloadInput {
|
4932 7127 | type Unconstrained = crate::input::http_string_payload_input_internal::Builder;
|
4933 7128 | }
|
7129 + | /* ServerCodegenVisitor.kt:370 */
|
4934 7130 | impl HttpStringPayloadInput {
|
4935 - | /// Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
7131 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
7132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4936 7133 | pub fn builder() -> crate::input::http_string_payload_input::Builder {
|
7134 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4937 7135 | crate::input::http_string_payload_input::Builder::default()
|
7136 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4938 7137 | }
|
7138 + | /* ServerCodegenVisitor.kt:370 */
|
4939 7139 | }
|
4940 7140 |
|
7141 + | /* RustType.kt:516 */
|
4941 7142 | #[::pyo3::pyclass]
|
7143 + | /* PythonServerStructureGenerator.kt:63 */
|
4942 7144 | /// :param payload typing.Optional\[rest_json.model.StringEnum\]:
|
4943 7145 | /// :rtype None:
|
7146 + | /* StructureGenerator.kt:197 */
|
4944 7147 | #[allow(missing_docs)] // documentation missing in model
|
7148 + | /* RustType.kt:516 */
|
4945 7149 | #[derive(
|
4946 7150 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
4947 7151 | )]
|
4948 - | pub struct HttpEnumPayloadInput {
|
7152 + | pub /* StructureGenerator.kt:201 */ struct HttpEnumPayloadInput {
|
7153 + | /* RustType.kt:516 */
|
4949 7154 | #[pyo3(get, set)]
|
7155 + | /* PythonServerStructureGenerator.kt:80 */
|
4950 7156 | /// :type typing.Optional\[rest_json.model.StringEnum\]:
|
7157 + | /* StructureGenerator.kt:231 */
|
4951 7158 | #[allow(missing_docs)] // documentation missing in model
|
4952 7159 | pub payload: ::std::option::Option<crate::model::StringEnum>,
|
7160 + | /* StructureGenerator.kt:201 */
|
4953 7161 | }
|
7162 + | /* StructureGenerator.kt:135 */
|
4954 7163 | impl HttpEnumPayloadInput {
|
7164 + | /* StructureGenerator.kt:231 */
|
4955 7165 | #[allow(missing_docs)] // documentation missing in model
|
7166 + | /* StructureGenerator.kt:166 */
|
4956 7167 | pub fn payload(&self) -> ::std::option::Option<&crate::model::StringEnum> {
|
7168 + | /* StructureGenerator.kt:170 */
|
4957 7169 | self.payload.as_ref()
|
7170 + | /* StructureGenerator.kt:166 */
|
4958 7171 | }
|
7172 + | /* StructureGenerator.kt:135 */
|
4959 7173 | }
|
7174 + | /* RustType.kt:516 */
|
4960 7175 | #[allow(clippy::new_without_default)]
|
7176 + | /* RustType.kt:516 */
|
4961 7177 | #[allow(clippy::too_many_arguments)]
|
7178 + | /* RustType.kt:516 */
|
4962 7179 | #[::pyo3::pymethods]
|
7180 + | /* PythonServerStructureGenerator.kt:88 */
|
4963 7181 | impl HttpEnumPayloadInput {
|
4964 7182 | #[new]
|
4965 7183 | pub fn new(payload: ::std::option::Option<crate::model::StringEnum>) -> Self {
|
4966 7184 | Self { payload }
|
4967 7185 | }
|
4968 7186 | fn __repr__(&self) -> String {
|
4969 7187 | format!("{self:?}")
|
4970 7188 | }
|
4971 7189 | fn __str__(&self) -> String {
|
4972 7190 | format!("{self:?}")
|
4973 7191 | }
|
4974 7192 | }
|
7193 + | /* PythonServerStructureGenerator.kt:111 */
|
4975 7194 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpEnumPayloadInput> {
|
4976 7195 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
4977 7196 | ob.extract::<HttpEnumPayloadInput>().map(Box::new)
|
4978 7197 | }
|
4979 7198 | }
|
4980 7199 |
|
4981 7200 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpEnumPayloadInput> {
|
4982 7201 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
4983 7202 | (*self).into_py(py)
|
4984 7203 | }
|
4985 7204 | }
|
7205 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
4986 7206 | impl crate::constrained::Constrained for crate::input::HttpEnumPayloadInput {
|
4987 7207 | type Unconstrained = crate::input::http_enum_payload_input_internal::Builder;
|
4988 7208 | }
|
7209 + | /* ServerCodegenVisitor.kt:370 */
|
4989 7210 | impl HttpEnumPayloadInput {
|
4990 - | /// Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
7211 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
7212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4991 7213 | pub fn builder() -> crate::input::http_enum_payload_input::Builder {
|
7214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
4992 7215 | crate::input::http_enum_payload_input::Builder::default()
|
7216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
4993 7217 | }
|
7218 + | /* ServerCodegenVisitor.kt:370 */
|
4994 7219 | }
|
4995 7220 |
|
7221 + | /* RustType.kt:516 */
|
4996 7222 | #[::pyo3::pyclass]
|
7223 + | /* PythonServerStructureGenerator.kt:63 */
|
4997 7224 | /// :param nested typing.Optional\[rest_json.model.NestedPayload\]:
|
4998 7225 | /// :rtype None:
|
7226 + | /* StructureGenerator.kt:197 */
|
4999 7227 | #[allow(missing_docs)] // documentation missing in model
|
7228 + | /* RustType.kt:516 */
|
5000 7229 | #[derive(
|
5001 7230 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5002 7231 | )]
|
5003 - | pub struct HttpPayloadWithStructureInput {
|
7232 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithStructureInput {
|
7233 + | /* RustType.kt:516 */
|
5004 7234 | #[pyo3(get, set)]
|
7235 + | /* PythonServerStructureGenerator.kt:80 */
|
5005 7236 | /// :type typing.Optional\[rest_json.model.NestedPayload\]:
|
7237 + | /* StructureGenerator.kt:231 */
|
5006 7238 | #[allow(missing_docs)] // documentation missing in model
|
5007 7239 | pub nested: ::std::option::Option<crate::model::NestedPayload>,
|
7240 + | /* StructureGenerator.kt:201 */
|
5008 7241 | }
|
7242 + | /* StructureGenerator.kt:135 */
|
5009 7243 | impl HttpPayloadWithStructureInput {
|
7244 + | /* StructureGenerator.kt:231 */
|
5010 7245 | #[allow(missing_docs)] // documentation missing in model
|
7246 + | /* StructureGenerator.kt:166 */
|
5011 7247 | pub fn nested(&self) -> ::std::option::Option<&crate::model::NestedPayload> {
|
7248 + | /* StructureGenerator.kt:170 */
|
5012 7249 | self.nested.as_ref()
|
7250 + | /* StructureGenerator.kt:166 */
|
5013 7251 | }
|
7252 + | /* StructureGenerator.kt:135 */
|
5014 7253 | }
|
7254 + | /* RustType.kt:516 */
|
5015 7255 | #[allow(clippy::new_without_default)]
|
7256 + | /* RustType.kt:516 */
|
5016 7257 | #[allow(clippy::too_many_arguments)]
|
7258 + | /* RustType.kt:516 */
|
5017 7259 | #[::pyo3::pymethods]
|
7260 + | /* PythonServerStructureGenerator.kt:88 */
|
5018 7261 | impl HttpPayloadWithStructureInput {
|
5019 7262 | #[new]
|
5020 7263 | pub fn new(nested: ::std::option::Option<crate::model::NestedPayload>) -> Self {
|
5021 7264 | Self { nested }
|
5022 7265 | }
|
5023 7266 | fn __repr__(&self) -> String {
|
5024 7267 | format!("{self:?}")
|
5025 7268 | }
|
5026 7269 | fn __str__(&self) -> String {
|
5027 7270 | format!("{self:?}")
|
5028 7271 | }
|
5029 7272 | }
|
7273 + | /* PythonServerStructureGenerator.kt:111 */
|
5030 7274 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpPayloadWithStructureInput> {
|
5031 7275 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5032 7276 | ob.extract::<HttpPayloadWithStructureInput>().map(Box::new)
|
5033 7277 | }
|
5034 7278 | }
|
5035 7279 |
|
5036 7280 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPayloadWithStructureInput> {
|
5037 7281 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5038 7282 | (*self).into_py(py)
|
5039 7283 | }
|
5040 7284 | }
|
7285 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5041 7286 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithStructureInput {
|
5042 7287 | type Unconstrained = crate::input::http_payload_with_structure_input_internal::Builder;
|
5043 7288 | }
|
7289 + | /* ServerCodegenVisitor.kt:370 */
|
5044 7290 | impl HttpPayloadWithStructureInput {
|
5045 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
7291 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
7292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5046 7293 | pub fn builder() -> crate::input::http_payload_with_structure_input::Builder {
|
7294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5047 7295 | crate::input::http_payload_with_structure_input::Builder::default()
|
7296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5048 7297 | }
|
7298 + | /* ServerCodegenVisitor.kt:370 */
|
5049 7299 | }
|
5050 7300 |
|
7301 + | /* RustType.kt:516 */
|
5051 7302 | #[::pyo3::pyclass]
|
7303 + | /* PythonServerStructureGenerator.kt:63 */
|
5052 7304 | /// :param foo typing.Optional\[str\]:
|
5053 7305 | /// :param blob typing.Optional\[rest_json.types.Blob\]:
|
5054 7306 | /// :rtype None:
|
7307 + | /* StructureGenerator.kt:197 */
|
5055 7308 | #[allow(missing_docs)] // documentation missing in model
|
7309 + | /* RustType.kt:516 */
|
5056 7310 | #[derive(
|
5057 7311 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5058 7312 | )]
|
5059 - | pub struct HttpPayloadTraitsWithMediaTypeInput {
|
7313 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsWithMediaTypeInput {
|
7314 + | /* RustType.kt:516 */
|
5060 7315 | #[pyo3(get, set)]
|
7316 + | /* PythonServerStructureGenerator.kt:80 */
|
5061 7317 | /// :type typing.Optional\[str\]:
|
7318 + | /* StructureGenerator.kt:231 */
|
5062 7319 | #[allow(missing_docs)] // documentation missing in model
|
5063 7320 | pub foo: ::std::option::Option<::std::string::String>,
|
7321 + | /* RustType.kt:516 */
|
5064 7322 | #[pyo3(get, set)]
|
7323 + | /* PythonServerStructureGenerator.kt:80 */
|
5065 7324 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
7325 + | /* StructureGenerator.kt:231 */
|
5066 7326 | #[allow(missing_docs)] // documentation missing in model
|
5067 7327 | pub blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
7328 + | /* StructureGenerator.kt:201 */
|
5068 7329 | }
|
7330 + | /* StructureGenerator.kt:135 */
|
5069 7331 | impl HttpPayloadTraitsWithMediaTypeInput {
|
7332 + | /* StructureGenerator.kt:231 */
|
5070 7333 | #[allow(missing_docs)] // documentation missing in model
|
7334 + | /* StructureGenerator.kt:166 */
|
5071 7335 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
7336 + | /* StructureGenerator.kt:169 */
|
5072 7337 | self.foo.as_deref()
|
7338 + | /* StructureGenerator.kt:166 */
|
5073 7339 | }
|
7340 + | /* StructureGenerator.kt:231 */
|
5074 7341 | #[allow(missing_docs)] // documentation missing in model
|
7342 + | /* StructureGenerator.kt:166 */
|
5075 7343 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
7344 + | /* StructureGenerator.kt:170 */
|
5076 7345 | self.blob.as_ref()
|
7346 + | /* StructureGenerator.kt:166 */
|
5077 7347 | }
|
7348 + | /* StructureGenerator.kt:135 */
|
5078 7349 | }
|
7350 + | /* RustType.kt:516 */
|
5079 7351 | #[allow(clippy::new_without_default)]
|
7352 + | /* RustType.kt:516 */
|
5080 7353 | #[allow(clippy::too_many_arguments)]
|
7354 + | /* RustType.kt:516 */
|
5081 7355 | #[::pyo3::pymethods]
|
7356 + | /* PythonServerStructureGenerator.kt:88 */
|
5082 7357 | impl HttpPayloadTraitsWithMediaTypeInput {
|
5083 7358 | #[new]
|
5084 7359 | pub fn new(
|
5085 7360 | foo: ::std::option::Option<::std::string::String>,
|
5086 7361 | blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
5087 7362 | ) -> Self {
|
5088 7363 | Self { foo, blob }
|
5089 7364 | }
|
5090 7365 | fn __repr__(&self) -> String {
|
5091 7366 | format!("{self:?}")
|
5092 7367 | }
|
5093 7368 | fn __str__(&self) -> String {
|
5094 7369 | format!("{self:?}")
|
5095 7370 | }
|
5096 7371 | }
|
7372 + | /* PythonServerStructureGenerator.kt:111 */
|
5097 7373 | impl<'source> ::pyo3::FromPyObject<'source>
|
5098 7374 | for std::boxed::Box<HttpPayloadTraitsWithMediaTypeInput>
|
5099 7375 | {
|
5100 7376 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5101 7377 | ob.extract::<HttpPayloadTraitsWithMediaTypeInput>()
|
5102 7378 | .map(Box::new)
|
5103 7379 | }
|
5104 7380 | }
|
5105 7381 |
|
5106 7382 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPayloadTraitsWithMediaTypeInput> {
|
5107 7383 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5108 7384 | (*self).into_py(py)
|
5109 7385 | }
|
5110 7386 | }
|
7387 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5111 7388 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
5112 7389 | type Unconstrained = crate::input::http_payload_traits_with_media_type_input_internal::Builder;
|
5113 7390 | }
|
7391 + | /* ServerCodegenVisitor.kt:370 */
|
5114 7392 | impl HttpPayloadTraitsWithMediaTypeInput {
|
5115 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
7393 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
7394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5116 7395 | pub fn builder() -> crate::input::http_payload_traits_with_media_type_input::Builder {
|
7396 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5117 7397 | crate::input::http_payload_traits_with_media_type_input::Builder::default()
|
7398 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5118 7399 | }
|
7400 + | /* ServerCodegenVisitor.kt:370 */
|
5119 7401 | }
|
5120 7402 |
|
7403 + | /* RustType.kt:516 */
|
5121 7404 | #[::pyo3::pyclass]
|
7405 + | /* PythonServerStructureGenerator.kt:63 */
|
5122 7406 | /// :param foo typing.Optional\[str\]:
|
5123 7407 | /// :param blob typing.Optional\[rest_json.types.Blob\]:
|
5124 7408 | /// :rtype None:
|
7409 + | /* StructureGenerator.kt:197 */
|
5125 7410 | #[allow(missing_docs)] // documentation missing in model
|
7411 + | /* RustType.kt:516 */
|
5126 7412 | #[derive(
|
5127 7413 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5128 7414 | )]
|
5129 - | pub struct HttpPayloadTraitsInput {
|
7415 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsInput {
|
7416 + | /* RustType.kt:516 */
|
5130 7417 | #[pyo3(get, set)]
|
7418 + | /* PythonServerStructureGenerator.kt:80 */
|
5131 7419 | /// :type typing.Optional\[str\]:
|
7420 + | /* StructureGenerator.kt:231 */
|
5132 7421 | #[allow(missing_docs)] // documentation missing in model
|
5133 7422 | pub foo: ::std::option::Option<::std::string::String>,
|
7423 + | /* RustType.kt:516 */
|
5134 7424 | #[pyo3(get, set)]
|
7425 + | /* PythonServerStructureGenerator.kt:80 */
|
5135 7426 | /// :type typing.Optional\[rest_json.types.Blob\]:
|
7427 + | /* StructureGenerator.kt:231 */
|
5136 7428 | #[allow(missing_docs)] // documentation missing in model
|
5137 7429 | pub blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
7430 + | /* StructureGenerator.kt:201 */
|
5138 7431 | }
|
7432 + | /* StructureGenerator.kt:135 */
|
5139 7433 | impl HttpPayloadTraitsInput {
|
7434 + | /* StructureGenerator.kt:231 */
|
5140 7435 | #[allow(missing_docs)] // documentation missing in model
|
7436 + | /* StructureGenerator.kt:166 */
|
5141 7437 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
7438 + | /* StructureGenerator.kt:169 */
|
5142 7439 | self.foo.as_deref()
|
7440 + | /* StructureGenerator.kt:166 */
|
5143 7441 | }
|
7442 + | /* StructureGenerator.kt:231 */
|
5144 7443 | #[allow(missing_docs)] // documentation missing in model
|
7444 + | /* StructureGenerator.kt:166 */
|
5145 7445 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_http_server_python::types::Blob> {
|
7446 + | /* StructureGenerator.kt:170 */
|
5146 7447 | self.blob.as_ref()
|
7448 + | /* StructureGenerator.kt:166 */
|
5147 7449 | }
|
7450 + | /* StructureGenerator.kt:135 */
|
5148 7451 | }
|
7452 + | /* RustType.kt:516 */
|
5149 7453 | #[allow(clippy::new_without_default)]
|
7454 + | /* RustType.kt:516 */
|
5150 7455 | #[allow(clippy::too_many_arguments)]
|
7456 + | /* RustType.kt:516 */
|
5151 7457 | #[::pyo3::pymethods]
|
7458 + | /* PythonServerStructureGenerator.kt:88 */
|
5152 7459 | impl HttpPayloadTraitsInput {
|
5153 7460 | #[new]
|
5154 7461 | pub fn new(
|
5155 7462 | foo: ::std::option::Option<::std::string::String>,
|
5156 7463 | blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
5157 7464 | ) -> Self {
|
5158 7465 | Self { foo, blob }
|
5159 7466 | }
|
5160 7467 | fn __repr__(&self) -> String {
|
5161 7468 | format!("{self:?}")
|
5162 7469 | }
|
5163 7470 | fn __str__(&self) -> String {
|
5164 7471 | format!("{self:?}")
|
5165 7472 | }
|
5166 7473 | }
|
7474 + | /* PythonServerStructureGenerator.kt:111 */
|
5167 7475 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpPayloadTraitsInput> {
|
5168 7476 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5169 7477 | ob.extract::<HttpPayloadTraitsInput>().map(Box::new)
|
5170 7478 | }
|
5171 7479 | }
|
5172 7480 |
|
5173 7481 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPayloadTraitsInput> {
|
5174 7482 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5175 7483 | (*self).into_py(py)
|
5176 7484 | }
|
5177 7485 | }
|
7486 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5178 7487 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsInput {
|
5179 7488 | type Unconstrained = crate::input::http_payload_traits_input_internal::Builder;
|
5180 7489 | }
|
7490 + | /* ServerCodegenVisitor.kt:370 */
|
5181 7491 | impl HttpPayloadTraitsInput {
|
5182 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
7492 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
7493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5183 7494 | pub fn builder() -> crate::input::http_payload_traits_input::Builder {
|
7495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5184 7496 | crate::input::http_payload_traits_input::Builder::default()
|
7497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5185 7498 | }
|
7499 + | /* ServerCodegenVisitor.kt:370 */
|
5186 7500 | }
|
5187 7501 |
|
7502 + | /* RustType.kt:516 */
|
5188 7503 | #[::pyo3::pyclass]
|
7504 + | /* PythonServerStructureGenerator.kt:63 */
|
5189 7505 | /// :rtype None:
|
7506 + | /* StructureGenerator.kt:197 */
|
5190 7507 | #[allow(missing_docs)] // documentation missing in model
|
7508 + | /* RustType.kt:516 */
|
5191 7509 | #[derive(
|
5192 7510 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5193 7511 | )]
|
5194 - | pub struct HttpPrefixHeadersInResponseInput {}
|
7512 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInResponseInput {/* StructureGenerator.kt:201 */}
|
7513 + | /* RustType.kt:516 */
|
5195 7514 | #[allow(clippy::new_without_default)]
|
7515 + | /* RustType.kt:516 */
|
5196 7516 | #[allow(clippy::too_many_arguments)]
|
7517 + | /* RustType.kt:516 */
|
5197 7518 | #[::pyo3::pymethods]
|
7519 + | /* PythonServerStructureGenerator.kt:88 */
|
5198 7520 | impl HttpPrefixHeadersInResponseInput {
|
5199 7521 | #[new]
|
5200 7522 | pub fn new() -> Self {
|
5201 7523 | Self {}
|
5202 7524 | }
|
5203 7525 | fn __repr__(&self) -> String {
|
5204 7526 | format!("{self:?}")
|
5205 7527 | }
|
5206 7528 | fn __str__(&self) -> String {
|
5207 7529 | format!("{self:?}")
|
5208 7530 | }
|
5209 7531 | }
|
7532 + | /* PythonServerStructureGenerator.kt:111 */
|
5210 7533 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpPrefixHeadersInResponseInput> {
|
5211 7534 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5212 7535 | ob.extract::<HttpPrefixHeadersInResponseInput>()
|
5213 7536 | .map(Box::new)
|
5214 7537 | }
|
5215 7538 | }
|
5216 7539 |
|
5217 7540 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPrefixHeadersInResponseInput> {
|
5218 7541 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5219 7542 | (*self).into_py(py)
|
5220 7543 | }
|
5221 7544 | }
|
7545 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5222 7546 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInResponseInput {
|
5223 7547 | type Unconstrained = crate::input::http_prefix_headers_in_response_input_internal::Builder;
|
5224 7548 | }
|
7549 + | /* ServerCodegenVisitor.kt:370 */
|
5225 7550 | impl HttpPrefixHeadersInResponseInput {
|
5226 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
7551 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
7552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5227 7553 | pub fn builder() -> crate::input::http_prefix_headers_in_response_input::Builder {
|
7554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5228 7555 | crate::input::http_prefix_headers_in_response_input::Builder::default()
|
7556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5229 7557 | }
|
7558 + | /* ServerCodegenVisitor.kt:370 */
|
5230 7559 | }
|
5231 7560 |
|
7561 + | /* RustType.kt:516 */
|
5232 7562 | #[::pyo3::pyclass]
|
7563 + | /* PythonServerStructureGenerator.kt:63 */
|
5233 7564 | /// :param foo typing.Optional\[str\]:
|
5234 7565 | /// :param foo_map typing.Optional\[typing.Dict\[str, str\]\]:
|
5235 7566 | /// :rtype None:
|
7567 + | /* StructureGenerator.kt:197 */
|
5236 7568 | #[allow(missing_docs)] // documentation missing in model
|
7569 + | /* RustType.kt:516 */
|
5237 7570 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5238 - | pub struct HttpPrefixHeadersInput {
|
7571 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInput {
|
7572 + | /* RustType.kt:516 */
|
5239 7573 | #[pyo3(get, set)]
|
7574 + | /* PythonServerStructureGenerator.kt:80 */
|
5240 7575 | /// :type typing.Optional\[str\]:
|
7576 + | /* StructureGenerator.kt:231 */
|
5241 7577 | #[allow(missing_docs)] // documentation missing in model
|
5242 7578 | pub foo: ::std::option::Option<::std::string::String>,
|
7579 + | /* RustType.kt:516 */
|
5243 7580 | #[pyo3(get, set)]
|
7581 + | /* PythonServerStructureGenerator.kt:80 */
|
5244 7582 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
7583 + | /* StructureGenerator.kt:231 */
|
5245 7584 | #[allow(missing_docs)] // documentation missing in model
|
5246 7585 | pub foo_map: ::std::option::Option<
|
5247 7586 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5248 7587 | >,
|
7588 + | /* StructureGenerator.kt:201 */
|
5249 7589 | }
|
7590 + | /* StructureGenerator.kt:135 */
|
5250 7591 | impl HttpPrefixHeadersInput {
|
7592 + | /* StructureGenerator.kt:231 */
|
5251 7593 | #[allow(missing_docs)] // documentation missing in model
|
7594 + | /* StructureGenerator.kt:166 */
|
5252 7595 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
7596 + | /* StructureGenerator.kt:169 */
|
5253 7597 | self.foo.as_deref()
|
7598 + | /* StructureGenerator.kt:166 */
|
5254 7599 | }
|
7600 + | /* StructureGenerator.kt:231 */
|
5255 7601 | #[allow(missing_docs)] // documentation missing in model
|
7602 + | /* StructureGenerator.kt:166 */
|
5256 7603 | pub fn foo_map(
|
5257 7604 | &self,
|
5258 7605 | ) -> ::std::option::Option<
|
5259 7606 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5260 7607 | > {
|
7608 + | /* StructureGenerator.kt:170 */
|
5261 7609 | self.foo_map.as_ref()
|
7610 + | /* StructureGenerator.kt:166 */
|
5262 7611 | }
|
7612 + | /* StructureGenerator.kt:135 */
|
5263 7613 | }
|
7614 + | /* RustType.kt:516 */
|
5264 7615 | #[allow(clippy::new_without_default)]
|
7616 + | /* RustType.kt:516 */
|
5265 7617 | #[allow(clippy::too_many_arguments)]
|
7618 + | /* RustType.kt:516 */
|
5266 7619 | #[::pyo3::pymethods]
|
7620 + | /* PythonServerStructureGenerator.kt:88 */
|
5267 7621 | impl HttpPrefixHeadersInput {
|
5268 7622 | #[new]
|
5269 7623 | pub fn new(
|
5270 7624 | foo: ::std::option::Option<::std::string::String>,
|
5271 7625 | foo_map: ::std::option::Option<
|
5272 7626 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5273 7627 | >,
|
5274 7628 | ) -> Self {
|
5275 7629 | Self { foo, foo_map }
|
5276 7630 | }
|
5277 7631 | fn __repr__(&self) -> String {
|
5278 7632 | format!("{self:?}")
|
5279 7633 | }
|
5280 7634 | fn __str__(&self) -> String {
|
5281 7635 | format!("{self:?}")
|
5282 7636 | }
|
5283 7637 | }
|
7638 + | /* PythonServerStructureGenerator.kt:111 */
|
5284 7639 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpPrefixHeadersInput> {
|
5285 7640 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5286 7641 | ob.extract::<HttpPrefixHeadersInput>().map(Box::new)
|
5287 7642 | }
|
5288 7643 | }
|
5289 7644 |
|
5290 7645 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpPrefixHeadersInput> {
|
5291 7646 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5292 7647 | (*self).into_py(py)
|
5293 7648 | }
|
5294 7649 | }
|
7650 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5295 7651 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInput {
|
5296 7652 | type Unconstrained = crate::input::http_prefix_headers_input_internal::Builder;
|
5297 7653 | }
|
7654 + | /* ServerCodegenVisitor.kt:370 */
|
5298 7655 | impl HttpPrefixHeadersInput {
|
5299 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
7656 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
7657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5300 7658 | pub fn builder() -> crate::input::http_prefix_headers_input::Builder {
|
7659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5301 7660 | crate::input::http_prefix_headers_input::Builder::default()
|
7661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5302 7662 | }
|
7663 + | /* ServerCodegenVisitor.kt:370 */
|
5303 7664 | }
|
5304 7665 |
|
7666 + | /* RustType.kt:516 */
|
5305 7667 | #[::pyo3::pyclass]
|
7668 + | /* PythonServerStructureGenerator.kt:63 */
|
5306 7669 | /// :param qux typing.Optional\[str\]:
|
5307 7670 | /// :param foo typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
5308 7671 | /// :rtype None:
|
7672 + | /* StructureGenerator.kt:197 */
|
5309 7673 | #[allow(missing_docs)] // documentation missing in model
|
7674 + | /* RustType.kt:516 */
|
5310 7675 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5311 - | pub struct QueryParamsAsStringListMapInput {
|
7676 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsAsStringListMapInput {
|
7677 + | /* RustType.kt:516 */
|
5312 7678 | #[pyo3(get, set)]
|
7679 + | /* PythonServerStructureGenerator.kt:80 */
|
5313 7680 | /// :type typing.Optional\[str\]:
|
7681 + | /* StructureGenerator.kt:231 */
|
5314 7682 | #[allow(missing_docs)] // documentation missing in model
|
5315 7683 | pub qux: ::std::option::Option<::std::string::String>,
|
7684 + | /* RustType.kt:516 */
|
5316 7685 | #[pyo3(get, set)]
|
7686 + | /* PythonServerStructureGenerator.kt:80 */
|
5317 7687 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
7688 + | /* StructureGenerator.kt:231 */
|
5318 7689 | #[allow(missing_docs)] // documentation missing in model
|
5319 7690 | pub foo: ::std::option::Option<
|
5320 7691 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
5321 7692 | >,
|
7693 + | /* StructureGenerator.kt:201 */
|
5322 7694 | }
|
7695 + | /* StructureGenerator.kt:135 */
|
5323 7696 | impl QueryParamsAsStringListMapInput {
|
7697 + | /* StructureGenerator.kt:231 */
|
5324 7698 | #[allow(missing_docs)] // documentation missing in model
|
7699 + | /* StructureGenerator.kt:166 */
|
5325 7700 | pub fn qux(&self) -> ::std::option::Option<&str> {
|
7701 + | /* StructureGenerator.kt:169 */
|
5326 7702 | self.qux.as_deref()
|
7703 + | /* StructureGenerator.kt:166 */
|
5327 7704 | }
|
7705 + | /* StructureGenerator.kt:231 */
|
5328 7706 | #[allow(missing_docs)] // documentation missing in model
|
7707 + | /* StructureGenerator.kt:166 */
|
5329 7708 | pub fn foo(
|
5330 7709 | &self,
|
5331 7710 | ) -> ::std::option::Option<
|
5332 7711 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
5333 7712 | > {
|
7713 + | /* StructureGenerator.kt:170 */
|
5334 7714 | self.foo.as_ref()
|
7715 + | /* StructureGenerator.kt:166 */
|
5335 7716 | }
|
7717 + | /* StructureGenerator.kt:135 */
|
5336 7718 | }
|
7719 + | /* RustType.kt:516 */
|
5337 7720 | #[allow(clippy::new_without_default)]
|
7721 + | /* RustType.kt:516 */
|
5338 7722 | #[allow(clippy::too_many_arguments)]
|
7723 + | /* RustType.kt:516 */
|
5339 7724 | #[::pyo3::pymethods]
|
7725 + | /* PythonServerStructureGenerator.kt:88 */
|
5340 7726 | impl QueryParamsAsStringListMapInput {
|
5341 7727 | #[new]
|
5342 7728 | pub fn new(
|
5343 7729 | qux: ::std::option::Option<::std::string::String>,
|
5344 7730 | foo: ::std::option::Option<
|
5345 7731 | ::std::collections::HashMap<
|
5346 7732 | ::std::string::String,
|
5347 7733 | ::std::vec::Vec<::std::string::String>,
|
5348 7734 | >,
|
5349 7735 | >,
|
5350 7736 | ) -> Self {
|
5351 7737 | Self { qux, foo }
|
5352 7738 | }
|
5353 7739 | fn __repr__(&self) -> String {
|
5354 7740 | format!("{self:?}")
|
5355 7741 | }
|
5356 7742 | fn __str__(&self) -> String {
|
5357 7743 | format!("{self:?}")
|
5358 7744 | }
|
5359 7745 | }
|
7746 + | /* PythonServerStructureGenerator.kt:111 */
|
5360 7747 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<QueryParamsAsStringListMapInput> {
|
5361 7748 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5362 7749 | ob.extract::<QueryParamsAsStringListMapInput>()
|
5363 7750 | .map(Box::new)
|
5364 7751 | }
|
5365 7752 | }
|
5366 7753 |
|
5367 7754 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<QueryParamsAsStringListMapInput> {
|
5368 7755 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5369 7756 | (*self).into_py(py)
|
5370 7757 | }
|
5371 7758 | }
|
7759 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5372 7760 | impl crate::constrained::Constrained for crate::input::QueryParamsAsStringListMapInput {
|
5373 7761 | type Unconstrained = crate::input::query_params_as_string_list_map_input_internal::Builder;
|
5374 7762 | }
|
7763 + | /* ServerCodegenVisitor.kt:370 */
|
5375 7764 | impl QueryParamsAsStringListMapInput {
|
5376 - | /// Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
7765 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
7766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5377 7767 | pub fn builder() -> crate::input::query_params_as_string_list_map_input::Builder {
|
7768 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5378 7769 | crate::input::query_params_as_string_list_map_input::Builder::default()
|
7770 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5379 7771 | }
|
7772 + | /* ServerCodegenVisitor.kt:370 */
|
5380 7773 | }
|
5381 7774 |
|
7775 + | /* RustType.kt:516 */
|
5382 7776 | #[::pyo3::pyclass]
|
7777 + | /* PythonServerStructureGenerator.kt:63 */
|
5383 7778 | /// :param foo typing.Optional\[str\]:
|
5384 7779 | /// :param baz typing.Optional\[typing.Dict\[str, str\]\]:
|
5385 7780 | /// :rtype None:
|
7781 + | /* StructureGenerator.kt:197 */
|
5386 7782 | #[allow(missing_docs)] // documentation missing in model
|
7783 + | /* RustType.kt:516 */
|
5387 7784 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5388 - | pub struct QueryPrecedenceInput {
|
7785 + | pub /* StructureGenerator.kt:201 */ struct QueryPrecedenceInput {
|
7786 + | /* RustType.kt:516 */
|
5389 7787 | #[pyo3(get, set)]
|
7788 + | /* PythonServerStructureGenerator.kt:80 */
|
5390 7789 | /// :type typing.Optional\[str\]:
|
7790 + | /* StructureGenerator.kt:231 */
|
5391 7791 | #[allow(missing_docs)] // documentation missing in model
|
5392 7792 | pub foo: ::std::option::Option<::std::string::String>,
|
7793 + | /* RustType.kt:516 */
|
5393 7794 | #[pyo3(get, set)]
|
7795 + | /* PythonServerStructureGenerator.kt:80 */
|
5394 7796 | /// :type typing.Optional\[typing.Dict\[str, str\]\]:
|
7797 + | /* StructureGenerator.kt:231 */
|
5395 7798 | #[allow(missing_docs)] // documentation missing in model
|
5396 7799 | pub baz: ::std::option::Option<
|
5397 7800 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5398 7801 | >,
|
7802 + | /* StructureGenerator.kt:201 */
|
5399 7803 | }
|
7804 + | /* StructureGenerator.kt:135 */
|
5400 7805 | impl QueryPrecedenceInput {
|
7806 + | /* StructureGenerator.kt:231 */
|
5401 7807 | #[allow(missing_docs)] // documentation missing in model
|
7808 + | /* StructureGenerator.kt:166 */
|
5402 7809 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
7810 + | /* StructureGenerator.kt:169 */
|
5403 7811 | self.foo.as_deref()
|
7812 + | /* StructureGenerator.kt:166 */
|
5404 7813 | }
|
7814 + | /* StructureGenerator.kt:231 */
|
5405 7815 | #[allow(missing_docs)] // documentation missing in model
|
7816 + | /* StructureGenerator.kt:166 */
|
5406 7817 | pub fn baz(
|
5407 7818 | &self,
|
5408 7819 | ) -> ::std::option::Option<
|
5409 7820 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5410 7821 | > {
|
7822 + | /* StructureGenerator.kt:170 */
|
5411 7823 | self.baz.as_ref()
|
7824 + | /* StructureGenerator.kt:166 */
|
5412 7825 | }
|
7826 + | /* StructureGenerator.kt:135 */
|
5413 7827 | }
|
7828 + | /* RustType.kt:516 */
|
5414 7829 | #[allow(clippy::new_without_default)]
|
7830 + | /* RustType.kt:516 */
|
5415 7831 | #[allow(clippy::too_many_arguments)]
|
7832 + | /* RustType.kt:516 */
|
5416 7833 | #[::pyo3::pymethods]
|
7834 + | /* PythonServerStructureGenerator.kt:88 */
|
5417 7835 | impl QueryPrecedenceInput {
|
5418 7836 | #[new]
|
5419 7837 | pub fn new(
|
5420 7838 | foo: ::std::option::Option<::std::string::String>,
|
5421 7839 | baz: ::std::option::Option<
|
5422 7840 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
5423 7841 | >,
|
5424 7842 | ) -> Self {
|
5425 7843 | Self { foo, baz }
|
5426 7844 | }
|
5427 7845 | fn __repr__(&self) -> String {
|
5428 7846 | format!("{self:?}")
|
5429 7847 | }
|
5430 7848 | fn __str__(&self) -> String {
|
5431 7849 | format!("{self:?}")
|
5432 7850 | }
|
5433 7851 | }
|
7852 + | /* PythonServerStructureGenerator.kt:111 */
|
5434 7853 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<QueryPrecedenceInput> {
|
5435 7854 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5436 7855 | ob.extract::<QueryPrecedenceInput>().map(Box::new)
|
5437 7856 | }
|
5438 7857 | }
|
5439 7858 |
|
5440 7859 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<QueryPrecedenceInput> {
|
5441 7860 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5442 7861 | (*self).into_py(py)
|
5443 7862 | }
|
5444 7863 | }
|
7864 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5445 7865 | impl crate::constrained::Constrained for crate::input::QueryPrecedenceInput {
|
5446 7866 | type Unconstrained = crate::input::query_precedence_input_internal::Builder;
|
5447 7867 | }
|
7868 + | /* ServerCodegenVisitor.kt:370 */
|
5448 7869 | impl QueryPrecedenceInput {
|
5449 - | /// Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
7870 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
7871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5450 7872 | pub fn builder() -> crate::input::query_precedence_input::Builder {
|
7873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5451 7874 | crate::input::query_precedence_input::Builder::default()
|
7875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5452 7876 | }
|
7877 + | /* ServerCodegenVisitor.kt:370 */
|
5453 7878 | }
|
5454 7879 |
|
7880 + | /* RustType.kt:516 */
|
5455 7881 | #[::pyo3::pyclass]
|
7882 + | /* PythonServerStructureGenerator.kt:63 */
|
5456 7883 | /// :param token typing.Optional\[str\]:
|
5457 7884 | /// :rtype None:
|
7885 + | /* StructureGenerator.kt:197 */
|
5458 7886 | #[allow(missing_docs)] // documentation missing in model
|
7887 + | /* RustType.kt:516 */
|
5459 7888 | #[derive(
|
5460 7889 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5461 7890 | )]
|
5462 - | pub struct QueryIdempotencyTokenAutoFillInput {
|
7891 + | pub /* StructureGenerator.kt:201 */ struct QueryIdempotencyTokenAutoFillInput {
|
7892 + | /* RustType.kt:516 */
|
5463 7893 | #[pyo3(get, set)]
|
7894 + | /* PythonServerStructureGenerator.kt:80 */
|
5464 7895 | /// :type typing.Optional\[str\]:
|
7896 + | /* StructureGenerator.kt:231 */
|
5465 7897 | #[allow(missing_docs)] // documentation missing in model
|
5466 7898 | pub token: ::std::option::Option<::std::string::String>,
|
7899 + | /* StructureGenerator.kt:201 */
|
5467 7900 | }
|
7901 + | /* StructureGenerator.kt:135 */
|
5468 7902 | impl QueryIdempotencyTokenAutoFillInput {
|
7903 + | /* StructureGenerator.kt:231 */
|
5469 7904 | #[allow(missing_docs)] // documentation missing in model
|
7905 + | /* StructureGenerator.kt:166 */
|
5470 7906 | pub fn token(&self) -> ::std::option::Option<&str> {
|
7907 + | /* StructureGenerator.kt:169 */
|
5471 7908 | self.token.as_deref()
|
7909 + | /* StructureGenerator.kt:166 */
|
5472 7910 | }
|
7911 + | /* StructureGenerator.kt:135 */
|
5473 7912 | }
|
7913 + | /* RustType.kt:516 */
|
5474 7914 | #[allow(clippy::new_without_default)]
|
7915 + | /* RustType.kt:516 */
|
5475 7916 | #[allow(clippy::too_many_arguments)]
|
7917 + | /* RustType.kt:516 */
|
5476 7918 | #[::pyo3::pymethods]
|
7919 + | /* PythonServerStructureGenerator.kt:88 */
|
5477 7920 | impl QueryIdempotencyTokenAutoFillInput {
|
5478 7921 | #[new]
|
5479 7922 | pub fn new(token: ::std::option::Option<::std::string::String>) -> Self {
|
5480 7923 | Self { token }
|
5481 7924 | }
|
5482 7925 | fn __repr__(&self) -> String {
|
5483 7926 | format!("{self:?}")
|
5484 7927 | }
|
5485 7928 | fn __str__(&self) -> String {
|
5486 7929 | format!("{self:?}")
|
5487 7930 | }
|
5488 7931 | }
|
7932 + | /* PythonServerStructureGenerator.kt:111 */
|
5489 7933 | impl<'source> ::pyo3::FromPyObject<'source>
|
5490 7934 | for std::boxed::Box<QueryIdempotencyTokenAutoFillInput>
|
5491 7935 | {
|
5492 7936 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5493 7937 | ob.extract::<QueryIdempotencyTokenAutoFillInput>()
|
5494 7938 | .map(Box::new)
|
5495 7939 | }
|
5496 7940 | }
|
5497 7941 |
|
5498 7942 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<QueryIdempotencyTokenAutoFillInput> {
|
5499 7943 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5500 7944 | (*self).into_py(py)
|
5501 7945 | }
|
5502 7946 | }
|
7947 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5503 7948 | impl crate::constrained::Constrained for crate::input::QueryIdempotencyTokenAutoFillInput {
|
5504 7949 | type Unconstrained = crate::input::query_idempotency_token_auto_fill_input_internal::Builder;
|
5505 7950 | }
|
7951 + | /* ServerCodegenVisitor.kt:370 */
|
5506 7952 | impl QueryIdempotencyTokenAutoFillInput {
|
5507 - | /// Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
7953 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
7954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5508 7955 | pub fn builder() -> crate::input::query_idempotency_token_auto_fill_input::Builder {
|
7956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5509 7957 | crate::input::query_idempotency_token_auto_fill_input::Builder::default()
|
7958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5510 7959 | }
|
7960 + | /* ServerCodegenVisitor.kt:370 */
|
5511 7961 | }
|
5512 7962 |
|
7963 + | /* RustType.kt:516 */
|
5513 7964 | #[::pyo3::pyclass]
|
7965 + | /* PythonServerStructureGenerator.kt:63 */
|
5514 7966 | /// :param query_string_list typing.Optional\[typing.List\[str\]\]:
|
5515 7967 | /// :param query_integer_list typing.Optional\[typing.List\[int\]\]:
|
5516 7968 | /// :param query_double_list typing.Optional\[typing.List\[float\]\]:
|
5517 7969 | /// :param query_boolean_list typing.Optional\[typing.List\[bool\]\]:
|
5518 7970 | /// :param query_timestamp_list typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
5519 7971 | /// :param query_enum_list typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
5520 7972 | /// :param query_integer_enum_list typing.Optional\[typing.List\[int\]\]:
|
5521 7973 | /// :rtype None:
|
7974 + | /* StructureGenerator.kt:197 */
|
5522 7975 | #[allow(missing_docs)] // documentation missing in model
|
7976 + | /* RustType.kt:516 */
|
5523 7977 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5524 - | pub struct OmitsSerializingEmptyListsInput {
|
7978 + | pub /* StructureGenerator.kt:201 */ struct OmitsSerializingEmptyListsInput {
|
7979 + | /* RustType.kt:516 */
|
5525 7980 | #[pyo3(get, set)]
|
7981 + | /* PythonServerStructureGenerator.kt:80 */
|
5526 7982 | /// :type typing.Optional\[typing.List\[str\]\]:
|
7983 + | /* StructureGenerator.kt:231 */
|
5527 7984 | #[allow(missing_docs)] // documentation missing in model
|
5528 7985 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7986 + | /* RustType.kt:516 */
|
5529 7987 | #[pyo3(get, set)]
|
7988 + | /* PythonServerStructureGenerator.kt:80 */
|
5530 7989 | /// :type typing.Optional\[typing.List\[int\]\]:
|
7990 + | /* StructureGenerator.kt:231 */
|
5531 7991 | #[allow(missing_docs)] // documentation missing in model
|
5532 7992 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
7993 + | /* RustType.kt:516 */
|
5533 7994 | #[pyo3(get, set)]
|
7995 + | /* PythonServerStructureGenerator.kt:80 */
|
5534 7996 | /// :type typing.Optional\[typing.List\[float\]\]:
|
7997 + | /* StructureGenerator.kt:231 */
|
5535 7998 | #[allow(missing_docs)] // documentation missing in model
|
5536 7999 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
8000 + | /* RustType.kt:516 */
|
5537 8001 | #[pyo3(get, set)]
|
8002 + | /* PythonServerStructureGenerator.kt:80 */
|
5538 8003 | /// :type typing.Optional\[typing.List\[bool\]\]:
|
8004 + | /* StructureGenerator.kt:231 */
|
5539 8005 | #[allow(missing_docs)] // documentation missing in model
|
5540 8006 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
8007 + | /* RustType.kt:516 */
|
5541 8008 | #[pyo3(get, set)]
|
8009 + | /* PythonServerStructureGenerator.kt:80 */
|
5542 8010 | /// :type typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
8011 + | /* StructureGenerator.kt:231 */
|
5543 8012 | #[allow(missing_docs)] // documentation missing in model
|
5544 8013 | pub query_timestamp_list:
|
5545 8014 | ::std::option::Option<::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>>,
|
8015 + | /* RustType.kt:516 */
|
5546 8016 | #[pyo3(get, set)]
|
8017 + | /* PythonServerStructureGenerator.kt:80 */
|
5547 8018 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
8019 + | /* StructureGenerator.kt:231 */
|
5548 8020 | #[allow(missing_docs)] // documentation missing in model
|
5549 8021 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
8022 + | /* RustType.kt:516 */
|
5550 8023 | #[pyo3(get, set)]
|
8024 + | /* PythonServerStructureGenerator.kt:80 */
|
5551 8025 | /// :type typing.Optional\[typing.List\[int\]\]:
|
8026 + | /* StructureGenerator.kt:231 */
|
5552 8027 | #[allow(missing_docs)] // documentation missing in model
|
5553 8028 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
8029 + | /* StructureGenerator.kt:201 */
|
5554 8030 | }
|
8031 + | /* StructureGenerator.kt:135 */
|
5555 8032 | impl OmitsSerializingEmptyListsInput {
|
8033 + | /* StructureGenerator.kt:231 */
|
5556 8034 | #[allow(missing_docs)] // documentation missing in model
|
8035 + | /* StructureGenerator.kt:166 */
|
5557 8036 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
8037 + | /* StructureGenerator.kt:169 */
|
5558 8038 | self.query_string_list.as_deref()
|
8039 + | /* StructureGenerator.kt:166 */
|
5559 8040 | }
|
8041 + | /* StructureGenerator.kt:231 */
|
5560 8042 | #[allow(missing_docs)] // documentation missing in model
|
8043 + | /* StructureGenerator.kt:166 */
|
5561 8044 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
8045 + | /* StructureGenerator.kt:169 */
|
5562 8046 | self.query_integer_list.as_deref()
|
8047 + | /* StructureGenerator.kt:166 */
|
5563 8048 | }
|
8049 + | /* StructureGenerator.kt:231 */
|
5564 8050 | #[allow(missing_docs)] // documentation missing in model
|
8051 + | /* StructureGenerator.kt:166 */
|
5565 8052 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
8053 + | /* StructureGenerator.kt:169 */
|
5566 8054 | self.query_double_list.as_deref()
|
8055 + | /* StructureGenerator.kt:166 */
|
5567 8056 | }
|
8057 + | /* StructureGenerator.kt:231 */
|
5568 8058 | #[allow(missing_docs)] // documentation missing in model
|
8059 + | /* StructureGenerator.kt:166 */
|
5569 8060 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
8061 + | /* StructureGenerator.kt:169 */
|
5570 8062 | self.query_boolean_list.as_deref()
|
8063 + | /* StructureGenerator.kt:166 */
|
5571 8064 | }
|
8065 + | /* StructureGenerator.kt:231 */
|
5572 8066 | #[allow(missing_docs)] // documentation missing in model
|
8067 + | /* StructureGenerator.kt:166 */
|
5573 8068 | pub fn query_timestamp_list(
|
5574 8069 | &self,
|
5575 8070 | ) -> ::std::option::Option<&[::aws_smithy_http_server_python::types::DateTime]> {
|
8071 + | /* StructureGenerator.kt:169 */
|
5576 8072 | self.query_timestamp_list.as_deref()
|
8073 + | /* StructureGenerator.kt:166 */
|
5577 8074 | }
|
8075 + | /* StructureGenerator.kt:231 */
|
5578 8076 | #[allow(missing_docs)] // documentation missing in model
|
8077 + | /* StructureGenerator.kt:166 */
|
5579 8078 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
8079 + | /* StructureGenerator.kt:169 */
|
5580 8080 | self.query_enum_list.as_deref()
|
8081 + | /* StructureGenerator.kt:166 */
|
5581 8082 | }
|
8083 + | /* StructureGenerator.kt:231 */
|
5582 8084 | #[allow(missing_docs)] // documentation missing in model
|
8085 + | /* StructureGenerator.kt:166 */
|
5583 8086 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
8087 + | /* StructureGenerator.kt:169 */
|
5584 8088 | self.query_integer_enum_list.as_deref()
|
8089 + | /* StructureGenerator.kt:166 */
|
5585 8090 | }
|
8091 + | /* StructureGenerator.kt:135 */
|
5586 8092 | }
|
8093 + | /* RustType.kt:516 */
|
5587 8094 | #[allow(clippy::new_without_default)]
|
8095 + | /* RustType.kt:516 */
|
5588 8096 | #[allow(clippy::too_many_arguments)]
|
8097 + | /* RustType.kt:516 */
|
5589 8098 | #[::pyo3::pymethods]
|
8099 + | /* PythonServerStructureGenerator.kt:88 */
|
5590 8100 | impl OmitsSerializingEmptyListsInput {
|
5591 8101 | #[new]
|
5592 8102 | pub fn new(
|
5593 8103 | query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5594 8104 | query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5595 8105 | query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
5596 8106 | query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
5597 8107 | query_timestamp_list: ::std::option::Option<
|
5598 8108 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
5599 8109 | >,
|
5600 8110 | query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5601 8111 | query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5602 8112 | ) -> Self {
|
5603 8113 | Self {
|
5604 8114 | query_string_list,
|
5605 8115 | query_integer_list,
|
5606 8116 | query_double_list,
|
5607 8117 | query_boolean_list,
|
5608 8118 | query_timestamp_list,
|
5609 8119 | query_enum_list,
|
5610 8120 | query_integer_enum_list,
|
5611 8121 | }
|
5612 8122 | }
|
5613 8123 | fn __repr__(&self) -> String {
|
5614 8124 | format!("{self:?}")
|
5615 8125 | }
|
5616 8126 | fn __str__(&self) -> String {
|
5617 8127 | format!("{self:?}")
|
5618 8128 | }
|
5619 8129 | }
|
8130 + | /* PythonServerStructureGenerator.kt:111 */
|
5620 8131 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OmitsSerializingEmptyListsInput> {
|
5621 8132 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5622 8133 | ob.extract::<OmitsSerializingEmptyListsInput>()
|
5623 8134 | .map(Box::new)
|
5624 8135 | }
|
5625 8136 | }
|
5626 8137 |
|
5627 8138 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OmitsSerializingEmptyListsInput> {
|
5628 8139 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5629 8140 | (*self).into_py(py)
|
5630 8141 | }
|
5631 8142 | }
|
8143 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5632 8144 | impl crate::constrained::Constrained for crate::input::OmitsSerializingEmptyListsInput {
|
5633 8145 | type Unconstrained = crate::input::omits_serializing_empty_lists_input_internal::Builder;
|
5634 8146 | }
|
8147 + | /* ServerCodegenVisitor.kt:370 */
|
5635 8148 | impl OmitsSerializingEmptyListsInput {
|
5636 - | /// Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
8149 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
8150 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5637 8151 | pub fn builder() -> crate::input::omits_serializing_empty_lists_input::Builder {
|
8152 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5638 8153 | crate::input::omits_serializing_empty_lists_input::Builder::default()
|
8154 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5639 8155 | }
|
8156 + | /* ServerCodegenVisitor.kt:370 */
|
5640 8157 | }
|
5641 8158 |
|
8159 + | /* RustType.kt:516 */
|
5642 8160 | #[::pyo3::pyclass]
|
8161 + | /* PythonServerStructureGenerator.kt:63 */
|
5643 8162 | /// :param null_value typing.Optional\[str\]:
|
5644 8163 | /// :param empty_string typing.Optional\[str\]:
|
5645 8164 | /// :rtype None:
|
8165 + | /* StructureGenerator.kt:197 */
|
5646 8166 | #[allow(missing_docs)] // documentation missing in model
|
8167 + | /* RustType.kt:516 */
|
5647 8168 | #[derive(
|
5648 8169 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5649 8170 | )]
|
5650 - | pub struct OmitsNullSerializesEmptyStringInput {
|
8171 + | pub /* StructureGenerator.kt:201 */ struct OmitsNullSerializesEmptyStringInput {
|
8172 + | /* RustType.kt:516 */
|
5651 8173 | #[pyo3(get, set)]
|
8174 + | /* PythonServerStructureGenerator.kt:80 */
|
5652 8175 | /// :type typing.Optional\[str\]:
|
8176 + | /* StructureGenerator.kt:231 */
|
5653 8177 | #[allow(missing_docs)] // documentation missing in model
|
5654 8178 | pub null_value: ::std::option::Option<::std::string::String>,
|
8179 + | /* RustType.kt:516 */
|
5655 8180 | #[pyo3(get, set)]
|
8181 + | /* PythonServerStructureGenerator.kt:80 */
|
5656 8182 | /// :type typing.Optional\[str\]:
|
8183 + | /* StructureGenerator.kt:231 */
|
5657 8184 | #[allow(missing_docs)] // documentation missing in model
|
5658 8185 | pub empty_string: ::std::option::Option<::std::string::String>,
|
8186 + | /* StructureGenerator.kt:201 */
|
5659 8187 | }
|
8188 + | /* StructureGenerator.kt:135 */
|
5660 8189 | impl OmitsNullSerializesEmptyStringInput {
|
8190 + | /* StructureGenerator.kt:231 */
|
5661 8191 | #[allow(missing_docs)] // documentation missing in model
|
8192 + | /* StructureGenerator.kt:166 */
|
5662 8193 | pub fn null_value(&self) -> ::std::option::Option<&str> {
|
8194 + | /* StructureGenerator.kt:169 */
|
5663 8195 | self.null_value.as_deref()
|
8196 + | /* StructureGenerator.kt:166 */
|
5664 8197 | }
|
8198 + | /* StructureGenerator.kt:231 */
|
5665 8199 | #[allow(missing_docs)] // documentation missing in model
|
8200 + | /* StructureGenerator.kt:166 */
|
5666 8201 | pub fn empty_string(&self) -> ::std::option::Option<&str> {
|
8202 + | /* StructureGenerator.kt:169 */
|
5667 8203 | self.empty_string.as_deref()
|
8204 + | /* StructureGenerator.kt:166 */
|
5668 8205 | }
|
8206 + | /* StructureGenerator.kt:135 */
|
5669 8207 | }
|
8208 + | /* RustType.kt:516 */
|
5670 8209 | #[allow(clippy::new_without_default)]
|
8210 + | /* RustType.kt:516 */
|
5671 8211 | #[allow(clippy::too_many_arguments)]
|
8212 + | /* RustType.kt:516 */
|
5672 8213 | #[::pyo3::pymethods]
|
8214 + | /* PythonServerStructureGenerator.kt:88 */
|
5673 8215 | impl OmitsNullSerializesEmptyStringInput {
|
5674 8216 | #[new]
|
5675 8217 | pub fn new(
|
5676 8218 | null_value: ::std::option::Option<::std::string::String>,
|
5677 8219 | empty_string: ::std::option::Option<::std::string::String>,
|
5678 8220 | ) -> Self {
|
5679 8221 | Self {
|
5680 8222 | null_value,
|
5681 8223 | empty_string,
|
5682 8224 | }
|
5683 8225 | }
|
5684 8226 | fn __repr__(&self) -> String {
|
5685 8227 | format!("{self:?}")
|
5686 8228 | }
|
5687 8229 | fn __str__(&self) -> String {
|
5688 8230 | format!("{self:?}")
|
5689 8231 | }
|
5690 8232 | }
|
8233 + | /* PythonServerStructureGenerator.kt:111 */
|
5691 8234 | impl<'source> ::pyo3::FromPyObject<'source>
|
5692 8235 | for std::boxed::Box<OmitsNullSerializesEmptyStringInput>
|
5693 8236 | {
|
5694 8237 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5695 8238 | ob.extract::<OmitsNullSerializesEmptyStringInput>()
|
5696 8239 | .map(Box::new)
|
5697 8240 | }
|
5698 8241 | }
|
5699 8242 |
|
5700 8243 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OmitsNullSerializesEmptyStringInput> {
|
5701 8244 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5702 8245 | (*self).into_py(py)
|
5703 8246 | }
|
5704 8247 | }
|
8248 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5705 8249 | impl crate::constrained::Constrained for crate::input::OmitsNullSerializesEmptyStringInput {
|
5706 8250 | type Unconstrained = crate::input::omits_null_serializes_empty_string_input_internal::Builder;
|
5707 8251 | }
|
8252 + | /* ServerCodegenVisitor.kt:370 */
|
5708 8253 | impl OmitsNullSerializesEmptyStringInput {
|
5709 - | /// Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
8254 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
8255 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5710 8256 | pub fn builder() -> crate::input::omits_null_serializes_empty_string_input::Builder {
|
8257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5711 8258 | crate::input::omits_null_serializes_empty_string_input::Builder::default()
|
8259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5712 8260 | }
|
8261 + | /* ServerCodegenVisitor.kt:370 */
|
5713 8262 | }
|
5714 8263 |
|
8264 + | /* RustType.kt:516 */
|
5715 8265 | #[::pyo3::pyclass]
|
8266 + | /* PythonServerStructureGenerator.kt:63 */
|
5716 8267 | /// :rtype None:
|
8268 + | /* StructureGenerator.kt:197 */
|
5717 8269 | #[allow(missing_docs)] // documentation missing in model
|
8270 + | /* RustType.kt:516 */
|
5718 8271 | #[derive(
|
5719 8272 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5720 8273 | )]
|
5721 - | pub struct IgnoreQueryParamsInResponseInput {}
|
8274 + | pub /* StructureGenerator.kt:201 */ struct IgnoreQueryParamsInResponseInput {/* StructureGenerator.kt:201 */}
|
8275 + | /* RustType.kt:516 */
|
5722 8276 | #[allow(clippy::new_without_default)]
|
8277 + | /* RustType.kt:516 */
|
5723 8278 | #[allow(clippy::too_many_arguments)]
|
8279 + | /* RustType.kt:516 */
|
5724 8280 | #[::pyo3::pymethods]
|
8281 + | /* PythonServerStructureGenerator.kt:88 */
|
5725 8282 | impl IgnoreQueryParamsInResponseInput {
|
5726 8283 | #[new]
|
5727 8284 | pub fn new() -> Self {
|
5728 8285 | Self {}
|
5729 8286 | }
|
5730 8287 | fn __repr__(&self) -> String {
|
5731 8288 | format!("{self:?}")
|
5732 8289 | }
|
5733 8290 | fn __str__(&self) -> String {
|
5734 8291 | format!("{self:?}")
|
5735 8292 | }
|
5736 8293 | }
|
8294 + | /* PythonServerStructureGenerator.kt:111 */
|
5737 8295 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<IgnoreQueryParamsInResponseInput> {
|
5738 8296 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5739 8297 | ob.extract::<IgnoreQueryParamsInResponseInput>()
|
5740 8298 | .map(Box::new)
|
5741 8299 | }
|
5742 8300 | }
|
5743 8301 |
|
5744 8302 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<IgnoreQueryParamsInResponseInput> {
|
5745 8303 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5746 8304 | (*self).into_py(py)
|
5747 8305 | }
|
5748 8306 | }
|
8307 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5749 8308 | impl crate::constrained::Constrained for crate::input::IgnoreQueryParamsInResponseInput {
|
5750 8309 | type Unconstrained = crate::input::ignore_query_params_in_response_input_internal::Builder;
|
5751 8310 | }
|
8311 + | /* ServerCodegenVisitor.kt:370 */
|
5752 8312 | impl IgnoreQueryParamsInResponseInput {
|
5753 - | /// Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
8313 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
8314 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5754 8315 | pub fn builder() -> crate::input::ignore_query_params_in_response_input::Builder {
|
8316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5755 8317 | crate::input::ignore_query_params_in_response_input::Builder::default()
|
8318 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5756 8319 | }
|
8320 + | /* ServerCodegenVisitor.kt:370 */
|
5757 8321 | }
|
5758 8322 |
|
8323 + | /* RustType.kt:516 */
|
5759 8324 | #[::pyo3::pyclass]
|
8325 + | /* PythonServerStructureGenerator.kt:63 */
|
5760 8326 | /// :param baz typing.Optional\[str\]:
|
5761 8327 | /// :param maybe_set typing.Optional\[str\]:
|
5762 8328 | /// :rtype None:
|
8329 + | /* StructureGenerator.kt:197 */
|
5763 8330 | #[allow(missing_docs)] // documentation missing in model
|
8331 + | /* RustType.kt:516 */
|
5764 8332 | #[derive(
|
5765 8333 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5766 8334 | )]
|
5767 - | pub struct ConstantAndVariableQueryStringInput {
|
8335 + | pub /* StructureGenerator.kt:201 */ struct ConstantAndVariableQueryStringInput {
|
8336 + | /* RustType.kt:516 */
|
5768 8337 | #[pyo3(get, set)]
|
8338 + | /* PythonServerStructureGenerator.kt:80 */
|
5769 8339 | /// :type typing.Optional\[str\]:
|
8340 + | /* StructureGenerator.kt:231 */
|
5770 8341 | #[allow(missing_docs)] // documentation missing in model
|
5771 8342 | pub baz: ::std::option::Option<::std::string::String>,
|
8343 + | /* RustType.kt:516 */
|
5772 8344 | #[pyo3(get, set)]
|
8345 + | /* PythonServerStructureGenerator.kt:80 */
|
5773 8346 | /// :type typing.Optional\[str\]:
|
8347 + | /* StructureGenerator.kt:231 */
|
5774 8348 | #[allow(missing_docs)] // documentation missing in model
|
5775 8349 | pub maybe_set: ::std::option::Option<::std::string::String>,
|
8350 + | /* StructureGenerator.kt:201 */
|
5776 8351 | }
|
8352 + | /* StructureGenerator.kt:135 */
|
5777 8353 | impl ConstantAndVariableQueryStringInput {
|
8354 + | /* StructureGenerator.kt:231 */
|
5778 8355 | #[allow(missing_docs)] // documentation missing in model
|
8356 + | /* StructureGenerator.kt:166 */
|
5779 8357 | pub fn baz(&self) -> ::std::option::Option<&str> {
|
8358 + | /* StructureGenerator.kt:169 */
|
5780 8359 | self.baz.as_deref()
|
8360 + | /* StructureGenerator.kt:166 */
|
5781 8361 | }
|
8362 + | /* StructureGenerator.kt:231 */
|
5782 8363 | #[allow(missing_docs)] // documentation missing in model
|
8364 + | /* StructureGenerator.kt:166 */
|
5783 8365 | pub fn maybe_set(&self) -> ::std::option::Option<&str> {
|
8366 + | /* StructureGenerator.kt:169 */
|
5784 8367 | self.maybe_set.as_deref()
|
8368 + | /* StructureGenerator.kt:166 */
|
5785 8369 | }
|
8370 + | /* StructureGenerator.kt:135 */
|
5786 8371 | }
|
8372 + | /* RustType.kt:516 */
|
5787 8373 | #[allow(clippy::new_without_default)]
|
8374 + | /* RustType.kt:516 */
|
5788 8375 | #[allow(clippy::too_many_arguments)]
|
8376 + | /* RustType.kt:516 */
|
5789 8377 | #[::pyo3::pymethods]
|
8378 + | /* PythonServerStructureGenerator.kt:88 */
|
5790 8379 | impl ConstantAndVariableQueryStringInput {
|
5791 8380 | #[new]
|
5792 8381 | pub fn new(
|
5793 8382 | baz: ::std::option::Option<::std::string::String>,
|
5794 8383 | maybe_set: ::std::option::Option<::std::string::String>,
|
5795 8384 | ) -> Self {
|
5796 8385 | Self { baz, maybe_set }
|
5797 8386 | }
|
5798 8387 | fn __repr__(&self) -> String {
|
5799 8388 | format!("{self:?}")
|
5800 8389 | }
|
5801 8390 | fn __str__(&self) -> String {
|
5802 8391 | format!("{self:?}")
|
5803 8392 | }
|
5804 8393 | }
|
8394 + | /* PythonServerStructureGenerator.kt:111 */
|
5805 8395 | impl<'source> ::pyo3::FromPyObject<'source>
|
5806 8396 | for std::boxed::Box<ConstantAndVariableQueryStringInput>
|
5807 8397 | {
|
5808 8398 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5809 8399 | ob.extract::<ConstantAndVariableQueryStringInput>()
|
5810 8400 | .map(Box::new)
|
5811 8401 | }
|
5812 8402 | }
|
5813 8403 |
|
5814 8404 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstantAndVariableQueryStringInput> {
|
5815 8405 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5816 8406 | (*self).into_py(py)
|
5817 8407 | }
|
5818 8408 | }
|
8409 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5819 8410 | impl crate::constrained::Constrained for crate::input::ConstantAndVariableQueryStringInput {
|
5820 8411 | type Unconstrained = crate::input::constant_and_variable_query_string_input_internal::Builder;
|
5821 8412 | }
|
8413 + | /* ServerCodegenVisitor.kt:370 */
|
5822 8414 | impl ConstantAndVariableQueryStringInput {
|
5823 - | /// Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
8415 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
8416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5824 8417 | pub fn builder() -> crate::input::constant_and_variable_query_string_input::Builder {
|
8418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5825 8419 | crate::input::constant_and_variable_query_string_input::Builder::default()
|
8420 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5826 8421 | }
|
8422 + | /* ServerCodegenVisitor.kt:370 */
|
5827 8423 | }
|
5828 8424 |
|
8425 + | /* RustType.kt:516 */
|
5829 8426 | #[::pyo3::pyclass]
|
8427 + | /* PythonServerStructureGenerator.kt:63 */
|
5830 8428 | /// :param hello str:
|
5831 8429 | /// :rtype None:
|
8430 + | /* StructureGenerator.kt:197 */
|
5832 8431 | #[allow(missing_docs)] // documentation missing in model
|
8432 + | /* RustType.kt:516 */
|
5833 8433 | #[derive(
|
5834 8434 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5835 8435 | )]
|
5836 - | pub struct ConstantQueryStringInput {
|
8436 + | pub /* StructureGenerator.kt:201 */ struct ConstantQueryStringInput {
|
8437 + | /* RustType.kt:516 */
|
5837 8438 | #[pyo3(get, set)]
|
8439 + | /* PythonServerStructureGenerator.kt:80 */
|
5838 8440 | /// :type str:
|
8441 + | /* StructureGenerator.kt:231 */
|
5839 8442 | #[allow(missing_docs)] // documentation missing in model
|
5840 8443 | pub hello: ::std::string::String,
|
8444 + | /* StructureGenerator.kt:201 */
|
5841 8445 | }
|
8446 + | /* StructureGenerator.kt:135 */
|
5842 8447 | impl ConstantQueryStringInput {
|
8448 + | /* StructureGenerator.kt:231 */
|
5843 8449 | #[allow(missing_docs)] // documentation missing in model
|
8450 + | /* StructureGenerator.kt:166 */
|
5844 8451 | pub fn hello(&self) -> &str {
|
8452 + | /* StructureGenerator.kt:171 */
|
5845 8453 | use std::ops::Deref;
|
5846 8454 | self.hello.deref()
|
8455 + | /* StructureGenerator.kt:166 */
|
5847 8456 | }
|
8457 + | /* StructureGenerator.kt:135 */
|
5848 8458 | }
|
8459 + | /* RustType.kt:516 */
|
5849 8460 | #[allow(clippy::new_without_default)]
|
8461 + | /* RustType.kt:516 */
|
5850 8462 | #[allow(clippy::too_many_arguments)]
|
8463 + | /* RustType.kt:516 */
|
5851 8464 | #[::pyo3::pymethods]
|
8465 + | /* PythonServerStructureGenerator.kt:88 */
|
5852 8466 | impl ConstantQueryStringInput {
|
5853 8467 | #[new]
|
5854 8468 | pub fn new(hello: ::std::string::String) -> Self {
|
5855 8469 | Self { hello }
|
5856 8470 | }
|
5857 8471 | fn __repr__(&self) -> String {
|
5858 8472 | format!("{self:?}")
|
5859 8473 | }
|
5860 8474 | fn __str__(&self) -> String {
|
5861 8475 | format!("{self:?}")
|
5862 8476 | }
|
5863 8477 | }
|
8478 + | /* PythonServerStructureGenerator.kt:111 */
|
5864 8479 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstantQueryStringInput> {
|
5865 8480 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
5866 8481 | ob.extract::<ConstantQueryStringInput>().map(Box::new)
|
5867 8482 | }
|
5868 8483 | }
|
5869 8484 |
|
5870 8485 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstantQueryStringInput> {
|
5871 8486 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
5872 8487 | (*self).into_py(py)
|
5873 8488 | }
|
5874 8489 | }
|
8490 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
5875 8491 | impl crate::constrained::Constrained for crate::input::ConstantQueryStringInput {
|
5876 8492 | type Unconstrained = crate::input::constant_query_string_input_internal::Builder;
|
5877 8493 | }
|
8494 + | /* ServerCodegenVisitor.kt:370 */
|
5878 8495 | impl ConstantQueryStringInput {
|
5879 - | /// Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
8496 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
8497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5880 8498 | pub fn builder() -> crate::input::constant_query_string_input::Builder {
|
8499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
5881 8500 | crate::input::constant_query_string_input::Builder::default()
|
8501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
5882 8502 | }
|
8503 + | /* ServerCodegenVisitor.kt:370 */
|
5883 8504 | }
|
5884 8505 |
|
8506 + | /* RustType.kt:516 */
|
5885 8507 | #[::pyo3::pyclass]
|
8508 + | /* PythonServerStructureGenerator.kt:63 */
|
5886 8509 | /// :param query_string typing.Optional\[str\]:
|
5887 8510 | /// :param query_string_list typing.Optional\[typing.List\[str\]\]:
|
5888 8511 | /// :param query_string_set typing.Optional\[typing.List\[str\]\]:
|
5889 8512 | /// :param query_byte typing.Optional\[int\]:
|
5890 8513 | /// :param query_short typing.Optional\[int\]:
|
5891 8514 | /// :param query_integer typing.Optional\[int\]:
|
5892 8515 | /// :param query_integer_list typing.Optional\[typing.List\[int\]\]:
|
5893 8516 | /// :param query_integer_set typing.Optional\[typing.List\[int\]\]:
|
5894 8517 | /// :param query_long typing.Optional\[int\]:
|
5895 8518 | /// :param query_float typing.Optional\[float\]:
|
5896 8519 | /// :param query_double typing.Optional\[float\]:
|
5897 8520 | /// :param query_double_list typing.Optional\[typing.List\[float\]\]:
|
5898 8521 | /// :param query_boolean typing.Optional\[bool\]:
|
5899 8522 | /// :param query_boolean_list typing.Optional\[typing.List\[bool\]\]:
|
5900 8523 | /// :param query_timestamp typing.Optional\[rest_json.types.DateTime\]:
|
5901 8524 | /// :param query_timestamp_list typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
5902 8525 | /// :param query_enum typing.Optional\[rest_json.model.FooEnum\]:
|
5903 8526 | /// :param query_enum_list typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
5904 8527 | /// :param query_integer_enum typing.Optional\[int\]:
|
5905 8528 | /// :param query_integer_enum_list typing.Optional\[typing.List\[int\]\]:
|
5906 8529 | /// :param query_params_map_of_string_list typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
5907 8530 | /// :rtype None:
|
8531 + | /* StructureGenerator.kt:197 */
|
5908 8532 | #[allow(missing_docs)] // documentation missing in model
|
8533 + | /* RustType.kt:516 */
|
5909 8534 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5910 - | pub struct AllQueryStringTypesInput {
|
8535 + | pub /* StructureGenerator.kt:201 */ struct AllQueryStringTypesInput {
|
8536 + | /* RustType.kt:516 */
|
5911 8537 | #[pyo3(get, set)]
|
8538 + | /* PythonServerStructureGenerator.kt:80 */
|
5912 8539 | /// :type typing.Optional\[str\]:
|
8540 + | /* StructureGenerator.kt:231 */
|
5913 8541 | #[allow(missing_docs)] // documentation missing in model
|
5914 8542 | pub query_string: ::std::option::Option<::std::string::String>,
|
8543 + | /* RustType.kt:516 */
|
5915 8544 | #[pyo3(get, set)]
|
8545 + | /* PythonServerStructureGenerator.kt:80 */
|
5916 8546 | /// :type typing.Optional\[typing.List\[str\]\]:
|
8547 + | /* StructureGenerator.kt:231 */
|
5917 8548 | #[allow(missing_docs)] // documentation missing in model
|
5918 8549 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8550 + | /* RustType.kt:516 */
|
5919 8551 | #[pyo3(get, set)]
|
8552 + | /* PythonServerStructureGenerator.kt:80 */
|
5920 8553 | /// :type typing.Optional\[typing.List\[str\]\]:
|
8554 + | /* StructureGenerator.kt:231 */
|
5921 8555 | #[allow(missing_docs)] // documentation missing in model
|
5922 8556 | pub query_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
8557 + | /* RustType.kt:516 */
|
5923 8558 | #[pyo3(get, set)]
|
8559 + | /* PythonServerStructureGenerator.kt:80 */
|
5924 8560 | /// :type typing.Optional\[int\]:
|
8561 + | /* StructureGenerator.kt:231 */
|
5925 8562 | #[allow(missing_docs)] // documentation missing in model
|
5926 8563 | pub query_byte: ::std::option::Option<i8>,
|
8564 + | /* RustType.kt:516 */
|
5927 8565 | #[pyo3(get, set)]
|
8566 + | /* PythonServerStructureGenerator.kt:80 */
|
5928 8567 | /// :type typing.Optional\[int\]:
|
8568 + | /* StructureGenerator.kt:231 */
|
5929 8569 | #[allow(missing_docs)] // documentation missing in model
|
5930 8570 | pub query_short: ::std::option::Option<i16>,
|
8571 + | /* RustType.kt:516 */
|
5931 8572 | #[pyo3(get, set)]
|
8573 + | /* PythonServerStructureGenerator.kt:80 */
|
5932 8574 | /// :type typing.Optional\[int\]:
|
8575 + | /* StructureGenerator.kt:231 */
|
5933 8576 | #[allow(missing_docs)] // documentation missing in model
|
5934 8577 | pub query_integer: ::std::option::Option<i32>,
|
8578 + | /* RustType.kt:516 */
|
5935 8579 | #[pyo3(get, set)]
|
8580 + | /* PythonServerStructureGenerator.kt:80 */
|
5936 8581 | /// :type typing.Optional\[typing.List\[int\]\]:
|
8582 + | /* StructureGenerator.kt:231 */
|
5937 8583 | #[allow(missing_docs)] // documentation missing in model
|
5938 8584 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
8585 + | /* RustType.kt:516 */
|
5939 8586 | #[pyo3(get, set)]
|
8587 + | /* PythonServerStructureGenerator.kt:80 */
|
5940 8588 | /// :type typing.Optional\[typing.List\[int\]\]:
|
8589 + | /* StructureGenerator.kt:231 */
|
5941 8590 | #[allow(missing_docs)] // documentation missing in model
|
5942 8591 | pub query_integer_set: ::std::option::Option<::std::vec::Vec<i32>>,
|
8592 + | /* RustType.kt:516 */
|
5943 8593 | #[pyo3(get, set)]
|
8594 + | /* PythonServerStructureGenerator.kt:80 */
|
5944 8595 | /// :type typing.Optional\[int\]:
|
8596 + | /* StructureGenerator.kt:231 */
|
5945 8597 | #[allow(missing_docs)] // documentation missing in model
|
5946 8598 | pub query_long: ::std::option::Option<i64>,
|
8599 + | /* RustType.kt:516 */
|
5947 8600 | #[pyo3(get, set)]
|
8601 + | /* PythonServerStructureGenerator.kt:80 */
|
5948 8602 | /// :type typing.Optional\[float\]:
|
8603 + | /* StructureGenerator.kt:231 */
|
5949 8604 | #[allow(missing_docs)] // documentation missing in model
|
5950 8605 | pub query_float: ::std::option::Option<f32>,
|
8606 + | /* RustType.kt:516 */
|
5951 8607 | #[pyo3(get, set)]
|
8608 + | /* PythonServerStructureGenerator.kt:80 */
|
5952 8609 | /// :type typing.Optional\[float\]:
|
8610 + | /* StructureGenerator.kt:231 */
|
5953 8611 | #[allow(missing_docs)] // documentation missing in model
|
5954 8612 | pub query_double: ::std::option::Option<f64>,
|
8613 + | /* RustType.kt:516 */
|
5955 8614 | #[pyo3(get, set)]
|
8615 + | /* PythonServerStructureGenerator.kt:80 */
|
5956 8616 | /// :type typing.Optional\[typing.List\[float\]\]:
|
8617 + | /* StructureGenerator.kt:231 */
|
5957 8618 | #[allow(missing_docs)] // documentation missing in model
|
5958 8619 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
8620 + | /* RustType.kt:516 */
|
5959 8621 | #[pyo3(get, set)]
|
8622 + | /* PythonServerStructureGenerator.kt:80 */
|
5960 8623 | /// :type typing.Optional\[bool\]:
|
8624 + | /* StructureGenerator.kt:231 */
|
5961 8625 | #[allow(missing_docs)] // documentation missing in model
|
5962 8626 | pub query_boolean: ::std::option::Option<bool>,
|
8627 + | /* RustType.kt:516 */
|
5963 8628 | #[pyo3(get, set)]
|
8629 + | /* PythonServerStructureGenerator.kt:80 */
|
5964 8630 | /// :type typing.Optional\[typing.List\[bool\]\]:
|
8631 + | /* StructureGenerator.kt:231 */
|
5965 8632 | #[allow(missing_docs)] // documentation missing in model
|
5966 8633 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
8634 + | /* RustType.kt:516 */
|
5967 8635 | #[pyo3(get, set)]
|
8636 + | /* PythonServerStructureGenerator.kt:80 */
|
5968 8637 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
8638 + | /* StructureGenerator.kt:231 */
|
5969 8639 | #[allow(missing_docs)] // documentation missing in model
|
5970 8640 | pub query_timestamp: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
8641 + | /* RustType.kt:516 */
|
5971 8642 | #[pyo3(get, set)]
|
8643 + | /* PythonServerStructureGenerator.kt:80 */
|
5972 8644 | /// :type typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
8645 + | /* StructureGenerator.kt:231 */
|
5973 8646 | #[allow(missing_docs)] // documentation missing in model
|
5974 8647 | pub query_timestamp_list:
|
5975 8648 | ::std::option::Option<::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>>,
|
8649 + | /* RustType.kt:516 */
|
5976 8650 | #[pyo3(get, set)]
|
8651 + | /* PythonServerStructureGenerator.kt:80 */
|
5977 8652 | /// :type typing.Optional\[rest_json.model.FooEnum\]:
|
8653 + | /* StructureGenerator.kt:231 */
|
5978 8654 | #[allow(missing_docs)] // documentation missing in model
|
5979 8655 | pub query_enum: ::std::option::Option<crate::model::FooEnum>,
|
8656 + | /* RustType.kt:516 */
|
5980 8657 | #[pyo3(get, set)]
|
8658 + | /* PythonServerStructureGenerator.kt:80 */
|
5981 8659 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
8660 + | /* StructureGenerator.kt:231 */
|
5982 8661 | #[allow(missing_docs)] // documentation missing in model
|
5983 8662 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
8663 + | /* RustType.kt:516 */
|
5984 8664 | #[pyo3(get, set)]
|
8665 + | /* PythonServerStructureGenerator.kt:80 */
|
5985 8666 | /// :type typing.Optional\[int\]:
|
8667 + | /* StructureGenerator.kt:231 */
|
5986 8668 | #[allow(missing_docs)] // documentation missing in model
|
5987 8669 | pub query_integer_enum: ::std::option::Option<i32>,
|
8670 + | /* RustType.kt:516 */
|
5988 8671 | #[pyo3(get, set)]
|
8672 + | /* PythonServerStructureGenerator.kt:80 */
|
5989 8673 | /// :type typing.Optional\[typing.List\[int\]\]:
|
8674 + | /* StructureGenerator.kt:231 */
|
5990 8675 | #[allow(missing_docs)] // documentation missing in model
|
5991 8676 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
8677 + | /* RustType.kt:516 */
|
5992 8678 | #[pyo3(get, set)]
|
8679 + | /* PythonServerStructureGenerator.kt:80 */
|
5993 8680 | /// :type typing.Optional\[typing.Dict\[str, typing.List\[str\]\]\]:
|
8681 + | /* StructureGenerator.kt:231 */
|
5994 8682 | #[allow(missing_docs)] // documentation missing in model
|
5995 8683 | pub query_params_map_of_string_list: ::std::option::Option<
|
5996 8684 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
5997 8685 | >,
|
8686 + | /* StructureGenerator.kt:201 */
|
5998 8687 | }
|
8688 + | /* StructureGenerator.kt:135 */
|
5999 8689 | impl AllQueryStringTypesInput {
|
8690 + | /* StructureGenerator.kt:231 */
|
6000 8691 | #[allow(missing_docs)] // documentation missing in model
|
8692 + | /* StructureGenerator.kt:166 */
|
6001 8693 | pub fn query_string(&self) -> ::std::option::Option<&str> {
|
8694 + | /* StructureGenerator.kt:169 */
|
6002 8695 | self.query_string.as_deref()
|
8696 + | /* StructureGenerator.kt:166 */
|
6003 8697 | }
|
8698 + | /* StructureGenerator.kt:231 */
|
6004 8699 | #[allow(missing_docs)] // documentation missing in model
|
8700 + | /* StructureGenerator.kt:166 */
|
6005 8701 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
8702 + | /* StructureGenerator.kt:169 */
|
6006 8703 | self.query_string_list.as_deref()
|
8704 + | /* StructureGenerator.kt:166 */
|
6007 8705 | }
|
8706 + | /* StructureGenerator.kt:231 */
|
6008 8707 | #[allow(missing_docs)] // documentation missing in model
|
8708 + | /* StructureGenerator.kt:166 */
|
6009 8709 | pub fn query_string_set(&self) -> ::std::option::Option<&[::std::string::String]> {
|
8710 + | /* StructureGenerator.kt:169 */
|
6010 8711 | self.query_string_set.as_deref()
|
8712 + | /* StructureGenerator.kt:166 */
|
6011 8713 | }
|
8714 + | /* StructureGenerator.kt:231 */
|
6012 8715 | #[allow(missing_docs)] // documentation missing in model
|
8716 + | /* StructureGenerator.kt:166 */
|
6013 8717 | pub fn query_byte(&self) -> ::std::option::Option<i8> {
|
8718 + | /* StructureGenerator.kt:168 */
|
6014 8719 | self.query_byte
|
8720 + | /* StructureGenerator.kt:166 */
|
6015 8721 | }
|
8722 + | /* StructureGenerator.kt:231 */
|
6016 8723 | #[allow(missing_docs)] // documentation missing in model
|
8724 + | /* StructureGenerator.kt:166 */
|
6017 8725 | pub fn query_short(&self) -> ::std::option::Option<i16> {
|
8726 + | /* StructureGenerator.kt:168 */
|
6018 8727 | self.query_short
|
8728 + | /* StructureGenerator.kt:166 */
|
6019 8729 | }
|
8730 + | /* StructureGenerator.kt:231 */
|
6020 8731 | #[allow(missing_docs)] // documentation missing in model
|
8732 + | /* StructureGenerator.kt:166 */
|
6021 8733 | pub fn query_integer(&self) -> ::std::option::Option<i32> {
|
8734 + | /* StructureGenerator.kt:168 */
|
6022 8735 | self.query_integer
|
8736 + | /* StructureGenerator.kt:166 */
|
6023 8737 | }
|
8738 + | /* StructureGenerator.kt:231 */
|
6024 8739 | #[allow(missing_docs)] // documentation missing in model
|
8740 + | /* StructureGenerator.kt:166 */
|
6025 8741 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
8742 + | /* StructureGenerator.kt:169 */
|
6026 8743 | self.query_integer_list.as_deref()
|
8744 + | /* StructureGenerator.kt:166 */
|
6027 8745 | }
|
8746 + | /* StructureGenerator.kt:231 */
|
6028 8747 | #[allow(missing_docs)] // documentation missing in model
|
8748 + | /* StructureGenerator.kt:166 */
|
6029 8749 | pub fn query_integer_set(&self) -> ::std::option::Option<&[i32]> {
|
8750 + | /* StructureGenerator.kt:169 */
|
6030 8751 | self.query_integer_set.as_deref()
|
8752 + | /* StructureGenerator.kt:166 */
|
6031 8753 | }
|
8754 + | /* StructureGenerator.kt:231 */
|
6032 8755 | #[allow(missing_docs)] // documentation missing in model
|
8756 + | /* StructureGenerator.kt:166 */
|
6033 8757 | pub fn query_long(&self) -> ::std::option::Option<i64> {
|
8758 + | /* StructureGenerator.kt:168 */
|
6034 8759 | self.query_long
|
8760 + | /* StructureGenerator.kt:166 */
|
6035 8761 | }
|
8762 + | /* StructureGenerator.kt:231 */
|
6036 8763 | #[allow(missing_docs)] // documentation missing in model
|
8764 + | /* StructureGenerator.kt:166 */
|
6037 8765 | pub fn query_float(&self) -> ::std::option::Option<f32> {
|
8766 + | /* StructureGenerator.kt:168 */
|
6038 8767 | self.query_float
|
8768 + | /* StructureGenerator.kt:166 */
|
6039 8769 | }
|
8770 + | /* StructureGenerator.kt:231 */
|
6040 8771 | #[allow(missing_docs)] // documentation missing in model
|
8772 + | /* StructureGenerator.kt:166 */
|
6041 8773 | pub fn query_double(&self) -> ::std::option::Option<f64> {
|
8774 + | /* StructureGenerator.kt:168 */
|
6042 8775 | self.query_double
|
8776 + | /* StructureGenerator.kt:166 */
|
6043 8777 | }
|
8778 + | /* StructureGenerator.kt:231 */
|
6044 8779 | #[allow(missing_docs)] // documentation missing in model
|
8780 + | /* StructureGenerator.kt:166 */
|
6045 8781 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
8782 + | /* StructureGenerator.kt:169 */
|
6046 8783 | self.query_double_list.as_deref()
|
8784 + | /* StructureGenerator.kt:166 */
|
6047 8785 | }
|
8786 + | /* StructureGenerator.kt:231 */
|
6048 8787 | #[allow(missing_docs)] // documentation missing in model
|
8788 + | /* StructureGenerator.kt:166 */
|
6049 8789 | pub fn query_boolean(&self) -> ::std::option::Option<bool> {
|
8790 + | /* StructureGenerator.kt:168 */
|
6050 8791 | self.query_boolean
|
8792 + | /* StructureGenerator.kt:166 */
|
6051 8793 | }
|
8794 + | /* StructureGenerator.kt:231 */
|
6052 8795 | #[allow(missing_docs)] // documentation missing in model
|
8796 + | /* StructureGenerator.kt:166 */
|
6053 8797 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
8798 + | /* StructureGenerator.kt:169 */
|
6054 8799 | self.query_boolean_list.as_deref()
|
8800 + | /* StructureGenerator.kt:166 */
|
6055 8801 | }
|
8802 + | /* StructureGenerator.kt:231 */
|
6056 8803 | #[allow(missing_docs)] // documentation missing in model
|
8804 + | /* StructureGenerator.kt:166 */
|
6057 8805 | pub fn query_timestamp(
|
6058 8806 | &self,
|
6059 8807 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
8808 + | /* StructureGenerator.kt:170 */
|
6060 8809 | self.query_timestamp.as_ref()
|
8810 + | /* StructureGenerator.kt:166 */
|
6061 8811 | }
|
8812 + | /* StructureGenerator.kt:231 */
|
6062 8813 | #[allow(missing_docs)] // documentation missing in model
|
8814 + | /* StructureGenerator.kt:166 */
|
6063 8815 | pub fn query_timestamp_list(
|
6064 8816 | &self,
|
6065 8817 | ) -> ::std::option::Option<&[::aws_smithy_http_server_python::types::DateTime]> {
|
8818 + | /* StructureGenerator.kt:169 */
|
6066 8819 | self.query_timestamp_list.as_deref()
|
8820 + | /* StructureGenerator.kt:166 */
|
6067 8821 | }
|
8822 + | /* StructureGenerator.kt:231 */
|
6068 8823 | #[allow(missing_docs)] // documentation missing in model
|
8824 + | /* StructureGenerator.kt:166 */
|
6069 8825 | pub fn query_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
8826 + | /* StructureGenerator.kt:170 */
|
6070 8827 | self.query_enum.as_ref()
|
8828 + | /* StructureGenerator.kt:166 */
|
6071 8829 | }
|
8830 + | /* StructureGenerator.kt:231 */
|
6072 8831 | #[allow(missing_docs)] // documentation missing in model
|
8832 + | /* StructureGenerator.kt:166 */
|
6073 8833 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
8834 + | /* StructureGenerator.kt:169 */
|
6074 8835 | self.query_enum_list.as_deref()
|
8836 + | /* StructureGenerator.kt:166 */
|
6075 8837 | }
|
8838 + | /* StructureGenerator.kt:231 */
|
6076 8839 | #[allow(missing_docs)] // documentation missing in model
|
8840 + | /* StructureGenerator.kt:166 */
|
6077 8841 | pub fn query_integer_enum(&self) -> ::std::option::Option<i32> {
|
8842 + | /* StructureGenerator.kt:168 */
|
6078 8843 | self.query_integer_enum
|
8844 + | /* StructureGenerator.kt:166 */
|
6079 8845 | }
|
8846 + | /* StructureGenerator.kt:231 */
|
6080 8847 | #[allow(missing_docs)] // documentation missing in model
|
8848 + | /* StructureGenerator.kt:166 */
|
6081 8849 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
8850 + | /* StructureGenerator.kt:169 */
|
6082 8851 | self.query_integer_enum_list.as_deref()
|
8852 + | /* StructureGenerator.kt:166 */
|
6083 8853 | }
|
8854 + | /* StructureGenerator.kt:231 */
|
6084 8855 | #[allow(missing_docs)] // documentation missing in model
|
8856 + | /* StructureGenerator.kt:166 */
|
6085 8857 | pub fn query_params_map_of_string_list(
|
6086 8858 | &self,
|
6087 8859 | ) -> ::std::option::Option<
|
6088 8860 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
6089 8861 | > {
|
8862 + | /* StructureGenerator.kt:170 */
|
6090 8863 | self.query_params_map_of_string_list.as_ref()
|
8864 + | /* StructureGenerator.kt:166 */
|
6091 8865 | }
|
8866 + | /* StructureGenerator.kt:135 */
|
6092 8867 | }
|
8868 + | /* RustType.kt:516 */
|
6093 8869 | #[allow(clippy::new_without_default)]
|
8870 + | /* RustType.kt:516 */
|
6094 8871 | #[allow(clippy::too_many_arguments)]
|
8872 + | /* RustType.kt:516 */
|
6095 8873 | #[::pyo3::pymethods]
|
8874 + | /* PythonServerStructureGenerator.kt:88 */
|
6096 8875 | impl AllQueryStringTypesInput {
|
6097 8876 | #[new]
|
6098 8877 | pub fn new(
|
6099 8878 | query_string: ::std::option::Option<::std::string::String>,
|
6100 8879 | query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6101 8880 | query_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6102 8881 | query_byte: ::std::option::Option<i8>,
|
6103 8882 | query_short: ::std::option::Option<i16>,
|
6104 8883 | query_integer: ::std::option::Option<i32>,
|
6105 8884 | query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
6149 8928 | query_params_map_of_string_list,
|
6150 8929 | }
|
6151 8930 | }
|
6152 8931 | fn __repr__(&self) -> String {
|
6153 8932 | format!("{self:?}")
|
6154 8933 | }
|
6155 8934 | fn __str__(&self) -> String {
|
6156 8935 | format!("{self:?}")
|
6157 8936 | }
|
6158 8937 | }
|
8938 + | /* PythonServerStructureGenerator.kt:111 */
|
6159 8939 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<AllQueryStringTypesInput> {
|
6160 8940 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6161 8941 | ob.extract::<AllQueryStringTypesInput>().map(Box::new)
|
6162 8942 | }
|
6163 8943 | }
|
6164 8944 |
|
6165 8945 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<AllQueryStringTypesInput> {
|
6166 8946 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6167 8947 | (*self).into_py(py)
|
6168 8948 | }
|
6169 8949 | }
|
8950 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6170 8951 | impl crate::constrained::Constrained for crate::input::AllQueryStringTypesInput {
|
6171 8952 | type Unconstrained = crate::input::all_query_string_types_input_internal::Builder;
|
6172 8953 | }
|
8954 + | /* ServerCodegenVisitor.kt:370 */
|
6173 8955 | impl AllQueryStringTypesInput {
|
6174 - | /// Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
8956 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
8957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6175 8958 | pub fn builder() -> crate::input::all_query_string_types_input::Builder {
|
8959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6176 8960 | crate::input::all_query_string_types_input::Builder::default()
|
8961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6177 8962 | }
|
8963 + | /* ServerCodegenVisitor.kt:370 */
|
6178 8964 | }
|
6179 8965 |
|
8966 + | /* RustType.kt:516 */
|
6180 8967 | #[::pyo3::pyclass]
|
8968 + | /* PythonServerStructureGenerator.kt:63 */
|
6181 8969 | /// :param str str:
|
6182 8970 | /// :rtype None:
|
8971 + | /* StructureGenerator.kt:197 */
|
6183 8972 | #[allow(missing_docs)] // documentation missing in model
|
8973 + | /* RustType.kt:516 */
|
6184 8974 | #[derive(
|
6185 8975 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6186 8976 | )]
|
6187 - | pub struct HttpRequestWithRegexLiteralInput {
|
8977 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithRegexLiteralInput {
|
8978 + | /* RustType.kt:516 */
|
6188 8979 | #[pyo3(get, set)]
|
8980 + | /* PythonServerStructureGenerator.kt:80 */
|
6189 8981 | /// :type str:
|
8982 + | /* StructureGenerator.kt:231 */
|
6190 8983 | #[allow(missing_docs)] // documentation missing in model
|
6191 8984 | pub str: ::std::string::String,
|
8985 + | /* StructureGenerator.kt:201 */
|
6192 8986 | }
|
8987 + | /* StructureGenerator.kt:135 */
|
6193 8988 | impl HttpRequestWithRegexLiteralInput {
|
8989 + | /* StructureGenerator.kt:231 */
|
6194 8990 | #[allow(missing_docs)] // documentation missing in model
|
8991 + | /* StructureGenerator.kt:166 */
|
6195 8992 | pub fn str(&self) -> &str {
|
8993 + | /* StructureGenerator.kt:171 */
|
6196 8994 | use std::ops::Deref;
|
6197 8995 | self.str.deref()
|
8996 + | /* StructureGenerator.kt:166 */
|
6198 8997 | }
|
8998 + | /* StructureGenerator.kt:135 */
|
6199 8999 | }
|
9000 + | /* RustType.kt:516 */
|
6200 9001 | #[allow(clippy::new_without_default)]
|
9002 + | /* RustType.kt:516 */
|
6201 9003 | #[allow(clippy::too_many_arguments)]
|
9004 + | /* RustType.kt:516 */
|
6202 9005 | #[::pyo3::pymethods]
|
9006 + | /* PythonServerStructureGenerator.kt:88 */
|
6203 9007 | impl HttpRequestWithRegexLiteralInput {
|
6204 9008 | #[new]
|
6205 9009 | pub fn new(str: ::std::string::String) -> Self {
|
6206 9010 | Self { str }
|
6207 9011 | }
|
6208 9012 | fn __repr__(&self) -> String {
|
6209 9013 | format!("{self:?}")
|
6210 9014 | }
|
6211 9015 | fn __str__(&self) -> String {
|
6212 9016 | format!("{self:?}")
|
6213 9017 | }
|
6214 9018 | }
|
9019 + | /* PythonServerStructureGenerator.kt:111 */
|
6215 9020 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpRequestWithRegexLiteralInput> {
|
6216 9021 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6217 9022 | ob.extract::<HttpRequestWithRegexLiteralInput>()
|
6218 9023 | .map(Box::new)
|
6219 9024 | }
|
6220 9025 | }
|
6221 9026 |
|
6222 9027 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpRequestWithRegexLiteralInput> {
|
6223 9028 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6224 9029 | (*self).into_py(py)
|
6225 9030 | }
|
6226 9031 | }
|
9032 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6227 9033 | impl crate::constrained::Constrained for crate::input::HttpRequestWithRegexLiteralInput {
|
6228 9034 | type Unconstrained = crate::input::http_request_with_regex_literal_input_internal::Builder;
|
6229 9035 | }
|
9036 + | /* ServerCodegenVisitor.kt:370 */
|
6230 9037 | impl HttpRequestWithRegexLiteralInput {
|
6231 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
9038 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
9039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6232 9040 | pub fn builder() -> crate::input::http_request_with_regex_literal_input::Builder {
|
9041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6233 9042 | crate::input::http_request_with_regex_literal_input::Builder::default()
|
9043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6234 9044 | }
|
9045 + | /* ServerCodegenVisitor.kt:370 */
|
6235 9046 | }
|
6236 9047 |
|
9048 + | /* RustType.kt:516 */
|
6237 9049 | #[::pyo3::pyclass]
|
9050 + | /* PythonServerStructureGenerator.kt:63 */
|
6238 9051 | /// :param float float:
|
6239 9052 | /// :param double float:
|
6240 9053 | /// :rtype None:
|
9054 + | /* StructureGenerator.kt:197 */
|
6241 9055 | #[allow(missing_docs)] // documentation missing in model
|
9056 + | /* RustType.kt:516 */
|
6242 9057 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6243 - | pub struct HttpRequestWithFloatLabelsInput {
|
9058 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithFloatLabelsInput {
|
9059 + | /* RustType.kt:516 */
|
6244 9060 | #[pyo3(get, set)]
|
9061 + | /* PythonServerStructureGenerator.kt:80 */
|
6245 9062 | /// :type float:
|
9063 + | /* StructureGenerator.kt:231 */
|
6246 9064 | #[allow(missing_docs)] // documentation missing in model
|
6247 9065 | pub float: f32,
|
9066 + | /* RustType.kt:516 */
|
6248 9067 | #[pyo3(get, set)]
|
9068 + | /* PythonServerStructureGenerator.kt:80 */
|
6249 9069 | /// :type float:
|
9070 + | /* StructureGenerator.kt:231 */
|
6250 9071 | #[allow(missing_docs)] // documentation missing in model
|
6251 9072 | pub double: f64,
|
9073 + | /* StructureGenerator.kt:201 */
|
6252 9074 | }
|
9075 + | /* StructureGenerator.kt:135 */
|
6253 9076 | impl HttpRequestWithFloatLabelsInput {
|
9077 + | /* StructureGenerator.kt:231 */
|
6254 9078 | #[allow(missing_docs)] // documentation missing in model
|
9079 + | /* StructureGenerator.kt:166 */
|
6255 9080 | pub fn float(&self) -> f32 {
|
9081 + | /* StructureGenerator.kt:168 */
|
6256 9082 | self.float
|
9083 + | /* StructureGenerator.kt:166 */
|
6257 9084 | }
|
9085 + | /* StructureGenerator.kt:231 */
|
6258 9086 | #[allow(missing_docs)] // documentation missing in model
|
9087 + | /* StructureGenerator.kt:166 */
|
6259 9088 | pub fn double(&self) -> f64 {
|
9089 + | /* StructureGenerator.kt:168 */
|
6260 9090 | self.double
|
9091 + | /* StructureGenerator.kt:166 */
|
6261 9092 | }
|
9093 + | /* StructureGenerator.kt:135 */
|
6262 9094 | }
|
9095 + | /* RustType.kt:516 */
|
6263 9096 | #[allow(clippy::new_without_default)]
|
9097 + | /* RustType.kt:516 */
|
6264 9098 | #[allow(clippy::too_many_arguments)]
|
9099 + | /* RustType.kt:516 */
|
6265 9100 | #[::pyo3::pymethods]
|
9101 + | /* PythonServerStructureGenerator.kt:88 */
|
6266 9102 | impl HttpRequestWithFloatLabelsInput {
|
6267 9103 | #[new]
|
6268 9104 | pub fn new(float: f32, double: f64) -> Self {
|
6269 9105 | Self { float, double }
|
6270 9106 | }
|
6271 9107 | fn __repr__(&self) -> String {
|
6272 9108 | format!("{self:?}")
|
6273 9109 | }
|
6274 9110 | fn __str__(&self) -> String {
|
6275 9111 | format!("{self:?}")
|
6276 9112 | }
|
6277 9113 | }
|
9114 + | /* PythonServerStructureGenerator.kt:111 */
|
6278 9115 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpRequestWithFloatLabelsInput> {
|
6279 9116 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6280 9117 | ob.extract::<HttpRequestWithFloatLabelsInput>()
|
6281 9118 | .map(Box::new)
|
6282 9119 | }
|
6283 9120 | }
|
6284 9121 |
|
6285 9122 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpRequestWithFloatLabelsInput> {
|
6286 9123 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6287 9124 | (*self).into_py(py)
|
6288 9125 | }
|
6289 9126 | }
|
9127 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6290 9128 | impl crate::constrained::Constrained for crate::input::HttpRequestWithFloatLabelsInput {
|
6291 9129 | type Unconstrained = crate::input::http_request_with_float_labels_input_internal::Builder;
|
6292 9130 | }
|
9131 + | /* ServerCodegenVisitor.kt:370 */
|
6293 9132 | impl HttpRequestWithFloatLabelsInput {
|
6294 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
9133 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
9134 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6295 9135 | pub fn builder() -> crate::input::http_request_with_float_labels_input::Builder {
|
9136 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6296 9137 | crate::input::http_request_with_float_labels_input::Builder::default()
|
9138 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6297 9139 | }
|
9140 + | /* ServerCodegenVisitor.kt:370 */
|
6298 9141 | }
|
6299 9142 |
|
9143 + | /* RustType.kt:516 */
|
6300 9144 | #[::pyo3::pyclass]
|
9145 + | /* PythonServerStructureGenerator.kt:63 */
|
6301 9146 | /// :param foo str:
|
6302 9147 | /// :param baz str:
|
6303 9148 | /// :rtype None:
|
9149 + | /* StructureGenerator.kt:197 */
|
6304 9150 | #[allow(missing_docs)] // documentation missing in model
|
9151 + | /* RustType.kt:516 */
|
6305 9152 | #[derive(
|
6306 9153 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6307 9154 | )]
|
6308 - | pub struct HttpRequestWithGreedyLabelInPathInput {
|
9155 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithGreedyLabelInPathInput {
|
9156 + | /* RustType.kt:516 */
|
6309 9157 | #[pyo3(get, set)]
|
9158 + | /* PythonServerStructureGenerator.kt:80 */
|
6310 9159 | /// :type str:
|
9160 + | /* StructureGenerator.kt:231 */
|
6311 9161 | #[allow(missing_docs)] // documentation missing in model
|
6312 9162 | pub foo: ::std::string::String,
|
9163 + | /* RustType.kt:516 */
|
6313 9164 | #[pyo3(get, set)]
|
9165 + | /* PythonServerStructureGenerator.kt:80 */
|
6314 9166 | /// :type str:
|
9167 + | /* StructureGenerator.kt:231 */
|
6315 9168 | #[allow(missing_docs)] // documentation missing in model
|
6316 9169 | pub baz: ::std::string::String,
|
9170 + | /* StructureGenerator.kt:201 */
|
6317 9171 | }
|
9172 + | /* StructureGenerator.kt:135 */
|
6318 9173 | impl HttpRequestWithGreedyLabelInPathInput {
|
9174 + | /* StructureGenerator.kt:231 */
|
6319 9175 | #[allow(missing_docs)] // documentation missing in model
|
9176 + | /* StructureGenerator.kt:166 */
|
6320 9177 | pub fn foo(&self) -> &str {
|
9178 + | /* StructureGenerator.kt:171 */
|
6321 9179 | use std::ops::Deref;
|
6322 9180 | self.foo.deref()
|
9181 + | /* StructureGenerator.kt:166 */
|
6323 9182 | }
|
9183 + | /* StructureGenerator.kt:231 */
|
6324 9184 | #[allow(missing_docs)] // documentation missing in model
|
9185 + | /* StructureGenerator.kt:166 */
|
6325 9186 | pub fn baz(&self) -> &str {
|
9187 + | /* StructureGenerator.kt:171 */
|
6326 9188 | use std::ops::Deref;
|
6327 9189 | self.baz.deref()
|
9190 + | /* StructureGenerator.kt:166 */
|
6328 9191 | }
|
9192 + | /* StructureGenerator.kt:135 */
|
6329 9193 | }
|
9194 + | /* RustType.kt:516 */
|
6330 9195 | #[allow(clippy::new_without_default)]
|
9196 + | /* RustType.kt:516 */
|
6331 9197 | #[allow(clippy::too_many_arguments)]
|
9198 + | /* RustType.kt:516 */
|
6332 9199 | #[::pyo3::pymethods]
|
9200 + | /* PythonServerStructureGenerator.kt:88 */
|
6333 9201 | impl HttpRequestWithGreedyLabelInPathInput {
|
6334 9202 | #[new]
|
6335 9203 | pub fn new(foo: ::std::string::String, baz: ::std::string::String) -> Self {
|
6336 9204 | Self { foo, baz }
|
6337 9205 | }
|
6338 9206 | fn __repr__(&self) -> String {
|
6339 9207 | format!("{self:?}")
|
6340 9208 | }
|
6341 9209 | fn __str__(&self) -> String {
|
6342 9210 | format!("{self:?}")
|
6343 9211 | }
|
6344 9212 | }
|
9213 + | /* PythonServerStructureGenerator.kt:111 */
|
6345 9214 | impl<'source> ::pyo3::FromPyObject<'source>
|
6346 9215 | for std::boxed::Box<HttpRequestWithGreedyLabelInPathInput>
|
6347 9216 | {
|
6348 9217 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6349 9218 | ob.extract::<HttpRequestWithGreedyLabelInPathInput>()
|
6350 9219 | .map(Box::new)
|
6351 9220 | }
|
6352 9221 | }
|
6353 9222 |
|
6354 9223 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpRequestWithGreedyLabelInPathInput> {
|
6355 9224 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6356 9225 | (*self).into_py(py)
|
6357 9226 | }
|
6358 9227 | }
|
9228 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6359 9229 | impl crate::constrained::Constrained for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
6360 9230 | type Unconstrained =
|
6361 9231 | crate::input::http_request_with_greedy_label_in_path_input_internal::Builder;
|
6362 9232 | }
|
9233 + | /* ServerCodegenVisitor.kt:370 */
|
6363 9234 | impl HttpRequestWithGreedyLabelInPathInput {
|
6364 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
9235 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
9236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6365 9237 | pub fn builder() -> crate::input::http_request_with_greedy_label_in_path_input::Builder {
|
9238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6366 9239 | crate::input::http_request_with_greedy_label_in_path_input::Builder::default()
|
9240 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6367 9241 | }
|
9242 + | /* ServerCodegenVisitor.kt:370 */
|
6368 9243 | }
|
6369 9244 |
|
9245 + | /* RustType.kt:516 */
|
6370 9246 | #[::pyo3::pyclass]
|
9247 + | /* PythonServerStructureGenerator.kt:63 */
|
6371 9248 | /// :param member_epoch_seconds rest_json.types.DateTime:
|
6372 9249 | /// :param member_http_date rest_json.types.DateTime:
|
6373 9250 | /// :param member_date_time rest_json.types.DateTime:
|
6374 9251 | /// :param default_format rest_json.types.DateTime:
|
6375 9252 | /// :param target_epoch_seconds rest_json.types.DateTime:
|
6376 9253 | /// :param target_http_date rest_json.types.DateTime:
|
6377 9254 | /// :param target_date_time rest_json.types.DateTime:
|
6378 9255 | /// :rtype None:
|
9256 + | /* StructureGenerator.kt:197 */
|
6379 9257 | #[allow(missing_docs)] // documentation missing in model
|
9258 + | /* RustType.kt:516 */
|
6380 9259 | #[derive(
|
6381 9260 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6382 9261 | )]
|
6383 - | pub struct HttpRequestWithLabelsAndTimestampFormatInput {
|
9262 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsAndTimestampFormatInput {
|
9263 + | /* RustType.kt:516 */
|
6384 9264 | #[pyo3(get, set)]
|
9265 + | /* PythonServerStructureGenerator.kt:80 */
|
6385 9266 | /// :type rest_json.types.DateTime:
|
9267 + | /* StructureGenerator.kt:231 */
|
6386 9268 | #[allow(missing_docs)] // documentation missing in model
|
6387 9269 | pub member_epoch_seconds: ::aws_smithy_http_server_python::types::DateTime,
|
9270 + | /* RustType.kt:516 */
|
6388 9271 | #[pyo3(get, set)]
|
9272 + | /* PythonServerStructureGenerator.kt:80 */
|
6389 9273 | /// :type rest_json.types.DateTime:
|
9274 + | /* StructureGenerator.kt:231 */
|
6390 9275 | #[allow(missing_docs)] // documentation missing in model
|
6391 9276 | pub member_http_date: ::aws_smithy_http_server_python::types::DateTime,
|
9277 + | /* RustType.kt:516 */
|
6392 9278 | #[pyo3(get, set)]
|
9279 + | /* PythonServerStructureGenerator.kt:80 */
|
6393 9280 | /// :type rest_json.types.DateTime:
|
9281 + | /* StructureGenerator.kt:231 */
|
6394 9282 | #[allow(missing_docs)] // documentation missing in model
|
6395 9283 | pub member_date_time: ::aws_smithy_http_server_python::types::DateTime,
|
9284 + | /* RustType.kt:516 */
|
6396 9285 | #[pyo3(get, set)]
|
9286 + | /* PythonServerStructureGenerator.kt:80 */
|
6397 9287 | /// :type rest_json.types.DateTime:
|
9288 + | /* StructureGenerator.kt:231 */
|
6398 9289 | #[allow(missing_docs)] // documentation missing in model
|
6399 9290 | pub default_format: ::aws_smithy_http_server_python::types::DateTime,
|
9291 + | /* RustType.kt:516 */
|
6400 9292 | #[pyo3(get, set)]
|
9293 + | /* PythonServerStructureGenerator.kt:80 */
|
6401 9294 | /// :type rest_json.types.DateTime:
|
9295 + | /* StructureGenerator.kt:231 */
|
6402 9296 | #[allow(missing_docs)] // documentation missing in model
|
6403 9297 | pub target_epoch_seconds: ::aws_smithy_http_server_python::types::DateTime,
|
9298 + | /* RustType.kt:516 */
|
6404 9299 | #[pyo3(get, set)]
|
9300 + | /* PythonServerStructureGenerator.kt:80 */
|
6405 9301 | /// :type rest_json.types.DateTime:
|
9302 + | /* StructureGenerator.kt:231 */
|
6406 9303 | #[allow(missing_docs)] // documentation missing in model
|
6407 9304 | pub target_http_date: ::aws_smithy_http_server_python::types::DateTime,
|
9305 + | /* RustType.kt:516 */
|
6408 9306 | #[pyo3(get, set)]
|
9307 + | /* PythonServerStructureGenerator.kt:80 */
|
6409 9308 | /// :type rest_json.types.DateTime:
|
9309 + | /* StructureGenerator.kt:231 */
|
6410 9310 | #[allow(missing_docs)] // documentation missing in model
|
6411 9311 | pub target_date_time: ::aws_smithy_http_server_python::types::DateTime,
|
9312 + | /* StructureGenerator.kt:201 */
|
6412 9313 | }
|
9314 + | /* StructureGenerator.kt:135 */
|
6413 9315 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
9316 + | /* StructureGenerator.kt:231 */
|
6414 9317 | #[allow(missing_docs)] // documentation missing in model
|
9318 + | /* StructureGenerator.kt:166 */
|
6415 9319 | pub fn member_epoch_seconds(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9320 + | /* StructureGenerator.kt:172 */
|
6416 9321 | &self.member_epoch_seconds
|
9322 + | /* StructureGenerator.kt:166 */
|
6417 9323 | }
|
9324 + | /* StructureGenerator.kt:231 */
|
6418 9325 | #[allow(missing_docs)] // documentation missing in model
|
9326 + | /* StructureGenerator.kt:166 */
|
6419 9327 | pub fn member_http_date(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9328 + | /* StructureGenerator.kt:172 */
|
6420 9329 | &self.member_http_date
|
9330 + | /* StructureGenerator.kt:166 */
|
6421 9331 | }
|
9332 + | /* StructureGenerator.kt:231 */
|
6422 9333 | #[allow(missing_docs)] // documentation missing in model
|
9334 + | /* StructureGenerator.kt:166 */
|
6423 9335 | pub fn member_date_time(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9336 + | /* StructureGenerator.kt:172 */
|
6424 9337 | &self.member_date_time
|
9338 + | /* StructureGenerator.kt:166 */
|
6425 9339 | }
|
9340 + | /* StructureGenerator.kt:231 */
|
6426 9341 | #[allow(missing_docs)] // documentation missing in model
|
9342 + | /* StructureGenerator.kt:166 */
|
6427 9343 | pub fn default_format(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9344 + | /* StructureGenerator.kt:172 */
|
6428 9345 | &self.default_format
|
9346 + | /* StructureGenerator.kt:166 */
|
6429 9347 | }
|
9348 + | /* StructureGenerator.kt:231 */
|
6430 9349 | #[allow(missing_docs)] // documentation missing in model
|
9350 + | /* StructureGenerator.kt:166 */
|
6431 9351 | pub fn target_epoch_seconds(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9352 + | /* StructureGenerator.kt:172 */
|
6432 9353 | &self.target_epoch_seconds
|
9354 + | /* StructureGenerator.kt:166 */
|
6433 9355 | }
|
9356 + | /* StructureGenerator.kt:231 */
|
6434 9357 | #[allow(missing_docs)] // documentation missing in model
|
9358 + | /* StructureGenerator.kt:166 */
|
6435 9359 | pub fn target_http_date(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9360 + | /* StructureGenerator.kt:172 */
|
6436 9361 | &self.target_http_date
|
9362 + | /* StructureGenerator.kt:166 */
|
6437 9363 | }
|
9364 + | /* StructureGenerator.kt:231 */
|
6438 9365 | #[allow(missing_docs)] // documentation missing in model
|
9366 + | /* StructureGenerator.kt:166 */
|
6439 9367 | pub fn target_date_time(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9368 + | /* StructureGenerator.kt:172 */
|
6440 9369 | &self.target_date_time
|
9370 + | /* StructureGenerator.kt:166 */
|
6441 9371 | }
|
9372 + | /* StructureGenerator.kt:135 */
|
6442 9373 | }
|
9374 + | /* RustType.kt:516 */
|
6443 9375 | #[allow(clippy::new_without_default)]
|
9376 + | /* RustType.kt:516 */
|
6444 9377 | #[allow(clippy::too_many_arguments)]
|
9378 + | /* RustType.kt:516 */
|
6445 9379 | #[::pyo3::pymethods]
|
9380 + | /* PythonServerStructureGenerator.kt:88 */
|
6446 9381 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
6447 9382 | #[new]
|
6448 9383 | pub fn new(
|
6449 9384 | member_epoch_seconds: ::aws_smithy_http_server_python::types::DateTime,
|
6450 9385 | member_http_date: ::aws_smithy_http_server_python::types::DateTime,
|
6451 9386 | member_date_time: ::aws_smithy_http_server_python::types::DateTime,
|
6452 9387 | default_format: ::aws_smithy_http_server_python::types::DateTime,
|
6453 9388 | target_epoch_seconds: ::aws_smithy_http_server_python::types::DateTime,
|
6454 9389 | target_http_date: ::aws_smithy_http_server_python::types::DateTime,
|
6455 9390 | target_date_time: ::aws_smithy_http_server_python::types::DateTime,
|
6456 9391 | ) -> Self {
|
6457 9392 | Self {
|
6458 9393 | member_epoch_seconds,
|
6459 9394 | member_http_date,
|
6460 9395 | member_date_time,
|
6461 9396 | default_format,
|
6462 9397 | target_epoch_seconds,
|
6463 9398 | target_http_date,
|
6464 9399 | target_date_time,
|
6465 9400 | }
|
6466 9401 | }
|
6467 9402 | fn __repr__(&self) -> String {
|
6468 9403 | format!("{self:?}")
|
6469 9404 | }
|
6470 9405 | fn __str__(&self) -> String {
|
6471 9406 | format!("{self:?}")
|
6472 9407 | }
|
6473 9408 | }
|
9409 + | /* PythonServerStructureGenerator.kt:111 */
|
6474 9410 | impl<'source> ::pyo3::FromPyObject<'source>
|
6475 9411 | for std::boxed::Box<HttpRequestWithLabelsAndTimestampFormatInput>
|
6476 9412 | {
|
6477 9413 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6478 9414 | ob.extract::<HttpRequestWithLabelsAndTimestampFormatInput>()
|
6479 9415 | .map(Box::new)
|
6480 9416 | }
|
6481 9417 | }
|
6482 9418 |
|
6483 9419 | impl ::pyo3::IntoPy<::pyo3::PyObject>
|
6484 9420 | for std::boxed::Box<HttpRequestWithLabelsAndTimestampFormatInput>
|
6485 9421 | {
|
6486 9422 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6487 9423 | (*self).into_py(py)
|
6488 9424 | }
|
6489 9425 | }
|
9426 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6490 9427 | impl crate::constrained::Constrained
|
6491 9428 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
6492 9429 | {
|
6493 9430 | type Unconstrained =
|
6494 9431 | crate::input::http_request_with_labels_and_timestamp_format_input_internal::Builder;
|
6495 9432 | }
|
9433 + | /* ServerCodegenVisitor.kt:370 */
|
6496 9434 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
6497 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
9435 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
9436 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6498 9437 | pub fn builder() -> crate::input::http_request_with_labels_and_timestamp_format_input::Builder {
|
9438 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6499 9439 | crate::input::http_request_with_labels_and_timestamp_format_input::Builder::default()
|
9440 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6500 9441 | }
|
9442 + | /* ServerCodegenVisitor.kt:370 */
|
6501 9443 | }
|
6502 9444 |
|
9445 + | /* RustType.kt:516 */
|
6503 9446 | #[::pyo3::pyclass]
|
9447 + | /* PythonServerStructureGenerator.kt:63 */
|
6504 9448 | /// :param string str:
|
6505 9449 | /// :param short int:
|
6506 9450 | /// :param integer int:
|
6507 9451 | /// :param long int:
|
6508 9452 | /// :param float float:
|
6509 9453 | /// :param double float:
|
6510 9454 | /// :param boolean bool:
|
6511 9455 | /// :param timestamp rest_json.types.DateTime:
|
6512 9456 | /// :rtype None:
|
9457 + | /* StructureGenerator.kt:197 */
|
6513 9458 | #[allow(missing_docs)] // documentation missing in model
|
9459 + | /* RustType.kt:516 */
|
6514 9460 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6515 - | pub struct HttpRequestWithLabelsInput {
|
9461 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsInput {
|
9462 + | /* RustType.kt:516 */
|
6516 9463 | #[pyo3(get, set)]
|
9464 + | /* PythonServerStructureGenerator.kt:80 */
|
6517 9465 | /// :type str:
|
9466 + | /* StructureGenerator.kt:231 */
|
6518 9467 | #[allow(missing_docs)] // documentation missing in model
|
6519 9468 | pub string: ::std::string::String,
|
9469 + | /* RustType.kt:516 */
|
6520 9470 | #[pyo3(get, set)]
|
9471 + | /* PythonServerStructureGenerator.kt:80 */
|
6521 9472 | /// :type int:
|
9473 + | /* StructureGenerator.kt:231 */
|
6522 9474 | #[allow(missing_docs)] // documentation missing in model
|
6523 9475 | pub short: i16,
|
9476 + | /* RustType.kt:516 */
|
6524 9477 | #[pyo3(get, set)]
|
9478 + | /* PythonServerStructureGenerator.kt:80 */
|
6525 9479 | /// :type int:
|
9480 + | /* StructureGenerator.kt:231 */
|
6526 9481 | #[allow(missing_docs)] // documentation missing in model
|
6527 9482 | pub integer: i32,
|
9483 + | /* RustType.kt:516 */
|
6528 9484 | #[pyo3(get, set)]
|
9485 + | /* PythonServerStructureGenerator.kt:80 */
|
6529 9486 | /// :type int:
|
9487 + | /* StructureGenerator.kt:231 */
|
6530 9488 | #[allow(missing_docs)] // documentation missing in model
|
6531 9489 | pub long: i64,
|
9490 + | /* RustType.kt:516 */
|
6532 9491 | #[pyo3(get, set)]
|
9492 + | /* PythonServerStructureGenerator.kt:80 */
|
6533 9493 | /// :type float:
|
9494 + | /* StructureGenerator.kt:231 */
|
6534 9495 | #[allow(missing_docs)] // documentation missing in model
|
6535 9496 | pub float: f32,
|
9497 + | /* RustType.kt:516 */
|
6536 9498 | #[pyo3(get, set)]
|
9499 + | /* PythonServerStructureGenerator.kt:80 */
|
6537 9500 | /// :type float:
|
9501 + | /* StructureGenerator.kt:231 */
|
6538 9502 | #[allow(missing_docs)] // documentation missing in model
|
6539 9503 | pub double: f64,
|
9504 + | /* RustType.kt:516 */
|
6540 9505 | #[pyo3(get, set)]
|
9506 + | /* PythonServerStructureGenerator.kt:80 */
|
6541 9507 | /// :type bool:
|
6542 - | /// Serialized in the path as true or false.
|
9508 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
6543 9509 | pub boolean: bool,
|
9510 + | /* RustType.kt:516 */
|
6544 9511 | #[pyo3(get, set)]
|
9512 + | /* PythonServerStructureGenerator.kt:80 */
|
6545 9513 | /// :type rest_json.types.DateTime:
|
6546 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
9514 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
6547 9515 | pub timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
9516 + | /* StructureGenerator.kt:201 */
|
6548 9517 | }
|
9518 + | /* StructureGenerator.kt:135 */
|
6549 9519 | impl HttpRequestWithLabelsInput {
|
9520 + | /* StructureGenerator.kt:231 */
|
6550 9521 | #[allow(missing_docs)] // documentation missing in model
|
9522 + | /* StructureGenerator.kt:166 */
|
6551 9523 | pub fn string(&self) -> &str {
|
9524 + | /* StructureGenerator.kt:171 */
|
6552 9525 | use std::ops::Deref;
|
6553 9526 | self.string.deref()
|
9527 + | /* StructureGenerator.kt:166 */
|
6554 9528 | }
|
9529 + | /* StructureGenerator.kt:231 */
|
6555 9530 | #[allow(missing_docs)] // documentation missing in model
|
9531 + | /* StructureGenerator.kt:166 */
|
6556 9532 | pub fn short(&self) -> i16 {
|
9533 + | /* StructureGenerator.kt:168 */
|
6557 9534 | self.short
|
9535 + | /* StructureGenerator.kt:166 */
|
6558 9536 | }
|
9537 + | /* StructureGenerator.kt:231 */
|
6559 9538 | #[allow(missing_docs)] // documentation missing in model
|
9539 + | /* StructureGenerator.kt:166 */
|
6560 9540 | pub fn integer(&self) -> i32 {
|
9541 + | /* StructureGenerator.kt:168 */
|
6561 9542 | self.integer
|
9543 + | /* StructureGenerator.kt:166 */
|
6562 9544 | }
|
9545 + | /* StructureGenerator.kt:231 */
|
6563 9546 | #[allow(missing_docs)] // documentation missing in model
|
9547 + | /* StructureGenerator.kt:166 */
|
6564 9548 | pub fn long(&self) -> i64 {
|
9549 + | /* StructureGenerator.kt:168 */
|
6565 9550 | self.long
|
9551 + | /* StructureGenerator.kt:166 */
|
6566 9552 | }
|
9553 + | /* StructureGenerator.kt:231 */
|
6567 9554 | #[allow(missing_docs)] // documentation missing in model
|
9555 + | /* StructureGenerator.kt:166 */
|
6568 9556 | pub fn float(&self) -> f32 {
|
9557 + | /* StructureGenerator.kt:168 */
|
6569 9558 | self.float
|
9559 + | /* StructureGenerator.kt:166 */
|
6570 9560 | }
|
9561 + | /* StructureGenerator.kt:231 */
|
6571 9562 | #[allow(missing_docs)] // documentation missing in model
|
9563 + | /* StructureGenerator.kt:166 */
|
6572 9564 | pub fn double(&self) -> f64 {
|
9565 + | /* StructureGenerator.kt:168 */
|
6573 9566 | self.double
|
9567 + | /* StructureGenerator.kt:166 */
|
6574 9568 | }
|
6575 - | /// Serialized in the path as true or false.
|
9569 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
9570 + | /* StructureGenerator.kt:166 */
|
6576 9571 | pub fn boolean(&self) -> bool {
|
9572 + | /* StructureGenerator.kt:168 */
|
6577 9573 | self.boolean
|
9574 + | /* StructureGenerator.kt:166 */
|
6578 9575 | }
|
6579 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
9576 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
9577 + | /* StructureGenerator.kt:166 */
|
6580 9578 | pub fn timestamp(&self) -> &::aws_smithy_http_server_python::types::DateTime {
|
9579 + | /* StructureGenerator.kt:172 */
|
6581 9580 | &self.timestamp
|
9581 + | /* StructureGenerator.kt:166 */
|
6582 9582 | }
|
9583 + | /* StructureGenerator.kt:135 */
|
6583 9584 | }
|
9585 + | /* RustType.kt:516 */
|
6584 9586 | #[allow(clippy::new_without_default)]
|
9587 + | /* RustType.kt:516 */
|
6585 9588 | #[allow(clippy::too_many_arguments)]
|
9589 + | /* RustType.kt:516 */
|
6586 9590 | #[::pyo3::pymethods]
|
9591 + | /* PythonServerStructureGenerator.kt:88 */
|
6587 9592 | impl HttpRequestWithLabelsInput {
|
6588 9593 | #[new]
|
6589 9594 | pub fn new(
|
6590 9595 | string: ::std::string::String,
|
6591 9596 | short: i16,
|
6592 9597 | integer: i32,
|
6593 9598 | long: i64,
|
6594 9599 | float: f32,
|
6595 9600 | double: f64,
|
6596 9601 | boolean: bool,
|
6597 9602 | timestamp: ::aws_smithy_http_server_python::types::DateTime,
|
6598 9603 | ) -> Self {
|
6599 9604 | Self {
|
6600 9605 | string,
|
6601 9606 | short,
|
6602 9607 | integer,
|
6603 9608 | long,
|
6604 9609 | float,
|
6605 9610 | double,
|
6606 9611 | boolean,
|
6607 9612 | timestamp,
|
6608 9613 | }
|
6609 9614 | }
|
6610 9615 | fn __repr__(&self) -> String {
|
6611 9616 | format!("{self:?}")
|
6612 9617 | }
|
6613 9618 | fn __str__(&self) -> String {
|
6614 9619 | format!("{self:?}")
|
6615 9620 | }
|
6616 9621 | }
|
9622 + | /* PythonServerStructureGenerator.kt:111 */
|
6617 9623 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HttpRequestWithLabelsInput> {
|
6618 9624 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6619 9625 | ob.extract::<HttpRequestWithLabelsInput>().map(Box::new)
|
6620 9626 | }
|
6621 9627 | }
|
6622 9628 |
|
6623 9629 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HttpRequestWithLabelsInput> {
|
6624 9630 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6625 9631 | (*self).into_py(py)
|
6626 9632 | }
|
6627 9633 | }
|
9634 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6628 9635 | impl crate::constrained::Constrained for crate::input::HttpRequestWithLabelsInput {
|
6629 9636 | type Unconstrained = crate::input::http_request_with_labels_input_internal::Builder;
|
6630 9637 | }
|
9638 + | /* ServerCodegenVisitor.kt:370 */
|
6631 9639 | impl HttpRequestWithLabelsInput {
|
6632 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
9640 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
9641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6633 9642 | pub fn builder() -> crate::input::http_request_with_labels_input::Builder {
|
9643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6634 9644 | crate::input::http_request_with_labels_input::Builder::default()
|
9645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6635 9646 | }
|
9647 + | /* ServerCodegenVisitor.kt:370 */
|
6636 9648 | }
|
6637 9649 |
|
9650 + | /* RustType.kt:516 */
|
6638 9651 | #[::pyo3::pyclass]
|
9652 + | /* PythonServerStructureGenerator.kt:63 */
|
6639 9653 | /// :param json typing.Optional\[str\]:
|
6640 9654 | /// :rtype None:
|
9655 + | /* StructureGenerator.kt:197 */
|
6641 9656 | #[allow(missing_docs)] // documentation missing in model
|
9657 + | /* RustType.kt:516 */
|
6642 9658 | #[derive(
|
6643 9659 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6644 9660 | )]
|
6645 - | pub struct MediaTypeHeaderInput {
|
9661 + | pub /* StructureGenerator.kt:201 */ struct MediaTypeHeaderInput {
|
9662 + | /* RustType.kt:516 */
|
6646 9663 | #[pyo3(get, set)]
|
9664 + | /* PythonServerStructureGenerator.kt:80 */
|
6647 9665 | /// :type typing.Optional\[str\]:
|
9666 + | /* StructureGenerator.kt:231 */
|
6648 9667 | #[allow(missing_docs)] // documentation missing in model
|
6649 9668 | pub json: ::std::option::Option<::std::string::String>,
|
9669 + | /* StructureGenerator.kt:201 */
|
6650 9670 | }
|
9671 + | /* StructureGenerator.kt:135 */
|
6651 9672 | impl MediaTypeHeaderInput {
|
9673 + | /* StructureGenerator.kt:231 */
|
6652 9674 | #[allow(missing_docs)] // documentation missing in model
|
9675 + | /* StructureGenerator.kt:166 */
|
6653 9676 | pub fn json(&self) -> ::std::option::Option<&str> {
|
9677 + | /* StructureGenerator.kt:169 */
|
6654 9678 | self.json.as_deref()
|
9679 + | /* StructureGenerator.kt:166 */
|
6655 9680 | }
|
9681 + | /* StructureGenerator.kt:135 */
|
6656 9682 | }
|
9683 + | /* RustType.kt:516 */
|
6657 9684 | #[allow(clippy::new_without_default)]
|
9685 + | /* RustType.kt:516 */
|
6658 9686 | #[allow(clippy::too_many_arguments)]
|
9687 + | /* RustType.kt:516 */
|
6659 9688 | #[::pyo3::pymethods]
|
9689 + | /* PythonServerStructureGenerator.kt:88 */
|
6660 9690 | impl MediaTypeHeaderInput {
|
6661 9691 | #[new]
|
6662 9692 | pub fn new(json: ::std::option::Option<::std::string::String>) -> Self {
|
6663 9693 | Self { json }
|
6664 9694 | }
|
6665 9695 | fn __repr__(&self) -> String {
|
6666 9696 | format!("{self:?}")
|
6667 9697 | }
|
6668 9698 | fn __str__(&self) -> String {
|
6669 9699 | format!("{self:?}")
|
6670 9700 | }
|
6671 9701 | }
|
9702 + | /* PythonServerStructureGenerator.kt:111 */
|
6672 9703 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<MediaTypeHeaderInput> {
|
6673 9704 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6674 9705 | ob.extract::<MediaTypeHeaderInput>().map(Box::new)
|
6675 9706 | }
|
6676 9707 | }
|
6677 9708 |
|
6678 9709 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<MediaTypeHeaderInput> {
|
6679 9710 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6680 9711 | (*self).into_py(py)
|
6681 9712 | }
|
6682 9713 | }
|
9714 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6683 9715 | impl crate::constrained::Constrained for crate::input::MediaTypeHeaderInput {
|
6684 9716 | type Unconstrained = crate::input::media_type_header_input_internal::Builder;
|
6685 9717 | }
|
9718 + | /* ServerCodegenVisitor.kt:370 */
|
6686 9719 | impl MediaTypeHeaderInput {
|
6687 - | /// Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
9720 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
9721 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6688 9722 | pub fn builder() -> crate::input::media_type_header_input::Builder {
|
9723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6689 9724 | crate::input::media_type_header_input::Builder::default()
|
9725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6690 9726 | }
|
9727 + | /* ServerCodegenVisitor.kt:370 */
|
6691 9728 | }
|
6692 9729 |
|
9730 + | /* RustType.kt:516 */
|
6693 9731 | #[::pyo3::pyclass]
|
9732 + | /* PythonServerStructureGenerator.kt:63 */
|
6694 9733 | /// :param member_epoch_seconds typing.Optional\[rest_json.types.DateTime\]:
|
6695 9734 | /// :param member_http_date typing.Optional\[rest_json.types.DateTime\]:
|
6696 9735 | /// :param member_date_time typing.Optional\[rest_json.types.DateTime\]:
|
6697 9736 | /// :param default_format typing.Optional\[rest_json.types.DateTime\]:
|
6698 9737 | /// :param target_epoch_seconds typing.Optional\[rest_json.types.DateTime\]:
|
6699 9738 | /// :param target_http_date typing.Optional\[rest_json.types.DateTime\]:
|
6700 9739 | /// :param target_date_time typing.Optional\[rest_json.types.DateTime\]:
|
6701 9740 | /// :rtype None:
|
9741 + | /* StructureGenerator.kt:197 */
|
6702 9742 | #[allow(missing_docs)] // documentation missing in model
|
9743 + | /* RustType.kt:516 */
|
6703 9744 | #[derive(
|
6704 9745 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6705 9746 | )]
|
6706 - | pub struct TimestampFormatHeadersInput {
|
9747 + | pub /* StructureGenerator.kt:201 */ struct TimestampFormatHeadersInput {
|
9748 + | /* RustType.kt:516 */
|
6707 9749 | #[pyo3(get, set)]
|
9750 + | /* PythonServerStructureGenerator.kt:80 */
|
6708 9751 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9752 + | /* StructureGenerator.kt:231 */
|
6709 9753 | #[allow(missing_docs)] // documentation missing in model
|
6710 9754 | pub member_epoch_seconds:
|
6711 9755 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9756 + | /* RustType.kt:516 */
|
6712 9757 | #[pyo3(get, set)]
|
9758 + | /* PythonServerStructureGenerator.kt:80 */
|
6713 9759 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9760 + | /* StructureGenerator.kt:231 */
|
6714 9761 | #[allow(missing_docs)] // documentation missing in model
|
6715 9762 | pub member_http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9763 + | /* RustType.kt:516 */
|
6716 9764 | #[pyo3(get, set)]
|
9765 + | /* PythonServerStructureGenerator.kt:80 */
|
6717 9766 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9767 + | /* StructureGenerator.kt:231 */
|
6718 9768 | #[allow(missing_docs)] // documentation missing in model
|
6719 9769 | pub member_date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9770 + | /* RustType.kt:516 */
|
6720 9771 | #[pyo3(get, set)]
|
9772 + | /* PythonServerStructureGenerator.kt:80 */
|
6721 9773 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9774 + | /* StructureGenerator.kt:231 */
|
6722 9775 | #[allow(missing_docs)] // documentation missing in model
|
6723 9776 | pub default_format: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9777 + | /* RustType.kt:516 */
|
6724 9778 | #[pyo3(get, set)]
|
9779 + | /* PythonServerStructureGenerator.kt:80 */
|
6725 9780 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9781 + | /* StructureGenerator.kt:231 */
|
6726 9782 | #[allow(missing_docs)] // documentation missing in model
|
6727 9783 | pub target_epoch_seconds:
|
6728 9784 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9785 + | /* RustType.kt:516 */
|
6729 9786 | #[pyo3(get, set)]
|
9787 + | /* PythonServerStructureGenerator.kt:80 */
|
6730 9788 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9789 + | /* StructureGenerator.kt:231 */
|
6731 9790 | #[allow(missing_docs)] // documentation missing in model
|
6732 9791 | pub target_http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9792 + | /* RustType.kt:516 */
|
6733 9793 | #[pyo3(get, set)]
|
9794 + | /* PythonServerStructureGenerator.kt:80 */
|
6734 9795 | /// :type typing.Optional\[rest_json.types.DateTime\]:
|
9796 + | /* StructureGenerator.kt:231 */
|
6735 9797 | #[allow(missing_docs)] // documentation missing in model
|
6736 9798 | pub target_date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
9799 + | /* StructureGenerator.kt:201 */
|
6737 9800 | }
|
9801 + | /* StructureGenerator.kt:135 */
|
6738 9802 | impl TimestampFormatHeadersInput {
|
9803 + | /* StructureGenerator.kt:231 */
|
6739 9804 | #[allow(missing_docs)] // documentation missing in model
|
9805 + | /* StructureGenerator.kt:166 */
|
6740 9806 | pub fn member_epoch_seconds(
|
6741 9807 | &self,
|
6742 9808 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9809 + | /* StructureGenerator.kt:170 */
|
6743 9810 | self.member_epoch_seconds.as_ref()
|
9811 + | /* StructureGenerator.kt:166 */
|
6744 9812 | }
|
9813 + | /* StructureGenerator.kt:231 */
|
6745 9814 | #[allow(missing_docs)] // documentation missing in model
|
9815 + | /* StructureGenerator.kt:166 */
|
6746 9816 | pub fn member_http_date(
|
6747 9817 | &self,
|
6748 9818 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9819 + | /* StructureGenerator.kt:170 */
|
6749 9820 | self.member_http_date.as_ref()
|
9821 + | /* StructureGenerator.kt:166 */
|
6750 9822 | }
|
9823 + | /* StructureGenerator.kt:231 */
|
6751 9824 | #[allow(missing_docs)] // documentation missing in model
|
9825 + | /* StructureGenerator.kt:166 */
|
6752 9826 | pub fn member_date_time(
|
6753 9827 | &self,
|
6754 9828 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9829 + | /* StructureGenerator.kt:170 */
|
6755 9830 | self.member_date_time.as_ref()
|
9831 + | /* StructureGenerator.kt:166 */
|
6756 9832 | }
|
9833 + | /* StructureGenerator.kt:231 */
|
6757 9834 | #[allow(missing_docs)] // documentation missing in model
|
9835 + | /* StructureGenerator.kt:166 */
|
6758 9836 | pub fn default_format(
|
6759 9837 | &self,
|
6760 9838 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9839 + | /* StructureGenerator.kt:170 */
|
6761 9840 | self.default_format.as_ref()
|
9841 + | /* StructureGenerator.kt:166 */
|
6762 9842 | }
|
9843 + | /* StructureGenerator.kt:231 */
|
6763 9844 | #[allow(missing_docs)] // documentation missing in model
|
9845 + | /* StructureGenerator.kt:166 */
|
6764 9846 | pub fn target_epoch_seconds(
|
6765 9847 | &self,
|
6766 9848 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9849 + | /* StructureGenerator.kt:170 */
|
6767 9850 | self.target_epoch_seconds.as_ref()
|
9851 + | /* StructureGenerator.kt:166 */
|
6768 9852 | }
|
9853 + | /* StructureGenerator.kt:231 */
|
6769 9854 | #[allow(missing_docs)] // documentation missing in model
|
9855 + | /* StructureGenerator.kt:166 */
|
6770 9856 | pub fn target_http_date(
|
6771 9857 | &self,
|
6772 9858 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9859 + | /* StructureGenerator.kt:170 */
|
6773 9860 | self.target_http_date.as_ref()
|
9861 + | /* StructureGenerator.kt:166 */
|
6774 9862 | }
|
9863 + | /* StructureGenerator.kt:231 */
|
6775 9864 | #[allow(missing_docs)] // documentation missing in model
|
9865 + | /* StructureGenerator.kt:166 */
|
6776 9866 | pub fn target_date_time(
|
6777 9867 | &self,
|
6778 9868 | ) -> ::std::option::Option<&::aws_smithy_http_server_python::types::DateTime> {
|
9869 + | /* StructureGenerator.kt:170 */
|
6779 9870 | self.target_date_time.as_ref()
|
9871 + | /* StructureGenerator.kt:166 */
|
6780 9872 | }
|
9873 + | /* StructureGenerator.kt:135 */
|
6781 9874 | }
|
9875 + | /* RustType.kt:516 */
|
6782 9876 | #[allow(clippy::new_without_default)]
|
9877 + | /* RustType.kt:516 */
|
6783 9878 | #[allow(clippy::too_many_arguments)]
|
9879 + | /* RustType.kt:516 */
|
6784 9880 | #[::pyo3::pymethods]
|
9881 + | /* PythonServerStructureGenerator.kt:88 */
|
6785 9882 | impl TimestampFormatHeadersInput {
|
6786 9883 | #[new]
|
6787 9884 | pub fn new(
|
6788 9885 | member_epoch_seconds: ::std::option::Option<
|
6789 9886 | ::aws_smithy_http_server_python::types::DateTime,
|
6790 9887 | >,
|
6791 9888 | member_http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6792 9889 | member_date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6793 9890 | default_format: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6794 9891 | target_epoch_seconds: ::std::option::Option<
|
6795 9892 | ::aws_smithy_http_server_python::types::DateTime,
|
6796 9893 | >,
|
6797 9894 | target_http_date: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6798 9895 | target_date_time: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
6799 9896 | ) -> Self {
|
6800 9897 | Self {
|
6801 9898 | member_epoch_seconds,
|
6802 9899 | member_http_date,
|
6803 9900 | member_date_time,
|
6804 9901 | default_format,
|
6805 9902 | target_epoch_seconds,
|
6806 9903 | target_http_date,
|
6807 9904 | target_date_time,
|
6808 9905 | }
|
6809 9906 | }
|
6810 9907 | fn __repr__(&self) -> String {
|
6811 9908 | format!("{self:?}")
|
6812 9909 | }
|
6813 9910 | fn __str__(&self) -> String {
|
6814 9911 | format!("{self:?}")
|
6815 9912 | }
|
6816 9913 | }
|
9914 + | /* PythonServerStructureGenerator.kt:111 */
|
6817 9915 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<TimestampFormatHeadersInput> {
|
6818 9916 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6819 9917 | ob.extract::<TimestampFormatHeadersInput>().map(Box::new)
|
6820 9918 | }
|
6821 9919 | }
|
6822 9920 |
|
6823 9921 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<TimestampFormatHeadersInput> {
|
6824 9922 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6825 9923 | (*self).into_py(py)
|
6826 9924 | }
|
6827 9925 | }
|
9926 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6828 9927 | impl crate::constrained::Constrained for crate::input::TimestampFormatHeadersInput {
|
6829 9928 | type Unconstrained = crate::input::timestamp_format_headers_input_internal::Builder;
|
6830 9929 | }
|
9930 + | /* ServerCodegenVisitor.kt:370 */
|
6831 9931 | impl TimestampFormatHeadersInput {
|
6832 - | /// Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
9932 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
9933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6833 9934 | pub fn builder() -> crate::input::timestamp_format_headers_input::Builder {
|
9935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6834 9936 | crate::input::timestamp_format_headers_input::Builder::default()
|
9937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6835 9938 | }
|
9939 + | /* ServerCodegenVisitor.kt:370 */
|
6836 9940 | }
|
6837 9941 |
|
9942 + | /* RustType.kt:516 */
|
6838 9943 | #[::pyo3::pyclass]
|
9944 + | /* PythonServerStructureGenerator.kt:63 */
|
6839 9945 | /// :param a typing.Optional\[str\]:
|
6840 9946 | /// :param b typing.Optional\[str\]:
|
6841 9947 | /// :param c typing.Optional\[typing.List\[str\]\]:
|
6842 9948 | /// :rtype None:
|
9949 + | /* StructureGenerator.kt:197 */
|
6843 9950 | #[allow(missing_docs)] // documentation missing in model
|
9951 + | /* RustType.kt:516 */
|
6844 9952 | #[derive(
|
6845 9953 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6846 9954 | )]
|
6847 - | pub struct NullAndEmptyHeadersServerInput {
|
9955 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersServerInput {
|
9956 + | /* RustType.kt:516 */
|
6848 9957 | #[pyo3(get, set)]
|
9958 + | /* PythonServerStructureGenerator.kt:80 */
|
6849 9959 | /// :type typing.Optional\[str\]:
|
9960 + | /* StructureGenerator.kt:231 */
|
6850 9961 | #[allow(missing_docs)] // documentation missing in model
|
6851 9962 | pub a: ::std::option::Option<::std::string::String>,
|
9963 + | /* RustType.kt:516 */
|
6852 9964 | #[pyo3(get, set)]
|
9965 + | /* PythonServerStructureGenerator.kt:80 */
|
6853 9966 | /// :type typing.Optional\[str\]:
|
9967 + | /* StructureGenerator.kt:231 */
|
6854 9968 | #[allow(missing_docs)] // documentation missing in model
|
6855 9969 | pub b: ::std::option::Option<::std::string::String>,
|
9970 + | /* RustType.kt:516 */
|
6856 9971 | #[pyo3(get, set)]
|
9972 + | /* PythonServerStructureGenerator.kt:80 */
|
6857 9973 | /// :type typing.Optional\[typing.List\[str\]\]:
|
9974 + | /* StructureGenerator.kt:231 */
|
6858 9975 | #[allow(missing_docs)] // documentation missing in model
|
6859 9976 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9977 + | /* StructureGenerator.kt:201 */
|
6860 9978 | }
|
9979 + | /* StructureGenerator.kt:135 */
|
6861 9980 | impl NullAndEmptyHeadersServerInput {
|
9981 + | /* StructureGenerator.kt:231 */
|
6862 9982 | #[allow(missing_docs)] // documentation missing in model
|
9983 + | /* StructureGenerator.kt:166 */
|
6863 9984 | pub fn a(&self) -> ::std::option::Option<&str> {
|
9985 + | /* StructureGenerator.kt:169 */
|
6864 9986 | self.a.as_deref()
|
9987 + | /* StructureGenerator.kt:166 */
|
6865 9988 | }
|
9989 + | /* StructureGenerator.kt:231 */
|
6866 9990 | #[allow(missing_docs)] // documentation missing in model
|
9991 + | /* StructureGenerator.kt:166 */
|
6867 9992 | pub fn b(&self) -> ::std::option::Option<&str> {
|
9993 + | /* StructureGenerator.kt:169 */
|
6868 9994 | self.b.as_deref()
|
9995 + | /* StructureGenerator.kt:166 */
|
6869 9996 | }
|
9997 + | /* StructureGenerator.kt:231 */
|
6870 9998 | #[allow(missing_docs)] // documentation missing in model
|
9999 + | /* StructureGenerator.kt:166 */
|
6871 10000 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
10001 + | /* StructureGenerator.kt:169 */
|
6872 10002 | self.c.as_deref()
|
10003 + | /* StructureGenerator.kt:166 */
|
6873 10004 | }
|
10005 + | /* StructureGenerator.kt:135 */
|
6874 10006 | }
|
10007 + | /* RustType.kt:516 */
|
6875 10008 | #[allow(clippy::new_without_default)]
|
10009 + | /* RustType.kt:516 */
|
6876 10010 | #[allow(clippy::too_many_arguments)]
|
10011 + | /* RustType.kt:516 */
|
6877 10012 | #[::pyo3::pymethods]
|
10013 + | /* PythonServerStructureGenerator.kt:88 */
|
6878 10014 | impl NullAndEmptyHeadersServerInput {
|
6879 10015 | #[new]
|
6880 10016 | pub fn new(
|
6881 10017 | a: ::std::option::Option<::std::string::String>,
|
6882 10018 | b: ::std::option::Option<::std::string::String>,
|
6883 10019 | c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6884 10020 | ) -> Self {
|
6885 10021 | Self { a, b, c }
|
6886 10022 | }
|
6887 10023 | fn __repr__(&self) -> String {
|
6888 10024 | format!("{self:?}")
|
6889 10025 | }
|
6890 10026 | fn __str__(&self) -> String {
|
6891 10027 | format!("{self:?}")
|
6892 10028 | }
|
6893 10029 | }
|
10030 + | /* PythonServerStructureGenerator.kt:111 */
|
6894 10031 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NullAndEmptyHeadersServerInput> {
|
6895 10032 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6896 10033 | ob.extract::<NullAndEmptyHeadersServerInput>().map(Box::new)
|
6897 10034 | }
|
6898 10035 | }
|
6899 10036 |
|
6900 10037 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NullAndEmptyHeadersServerInput> {
|
6901 10038 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6902 10039 | (*self).into_py(py)
|
6903 10040 | }
|
6904 10041 | }
|
10042 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6905 10043 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersServerInput {
|
6906 10044 | type Unconstrained = crate::input::null_and_empty_headers_server_input_internal::Builder;
|
6907 10045 | }
|
10046 + | /* ServerCodegenVisitor.kt:370 */
|
6908 10047 | impl NullAndEmptyHeadersServerInput {
|
6909 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
10048 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
10049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6910 10050 | pub fn builder() -> crate::input::null_and_empty_headers_server_input::Builder {
|
10051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6911 10052 | crate::input::null_and_empty_headers_server_input::Builder::default()
|
10053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6912 10054 | }
|
10055 + | /* ServerCodegenVisitor.kt:370 */
|
6913 10056 | }
|
6914 10057 |
|
10058 + | /* RustType.kt:516 */
|
6915 10059 | #[::pyo3::pyclass]
|
10060 + | /* PythonServerStructureGenerator.kt:63 */
|
6916 10061 | /// :param a typing.Optional\[str\]:
|
6917 10062 | /// :param b typing.Optional\[str\]:
|
6918 10063 | /// :param c typing.Optional\[typing.List\[str\]\]:
|
6919 10064 | /// :rtype None:
|
10065 + | /* StructureGenerator.kt:197 */
|
6920 10066 | #[allow(missing_docs)] // documentation missing in model
|
10067 + | /* RustType.kt:516 */
|
6921 10068 | #[derive(
|
6922 10069 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
6923 10070 | )]
|
6924 - | pub struct NullAndEmptyHeadersClientInput {
|
10071 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersClientInput {
|
10072 + | /* RustType.kt:516 */
|
6925 10073 | #[pyo3(get, set)]
|
10074 + | /* PythonServerStructureGenerator.kt:80 */
|
6926 10075 | /// :type typing.Optional\[str\]:
|
10076 + | /* StructureGenerator.kt:231 */
|
6927 10077 | #[allow(missing_docs)] // documentation missing in model
|
6928 10078 | pub a: ::std::option::Option<::std::string::String>,
|
10079 + | /* RustType.kt:516 */
|
6929 10080 | #[pyo3(get, set)]
|
10081 + | /* PythonServerStructureGenerator.kt:80 */
|
6930 10082 | /// :type typing.Optional\[str\]:
|
10083 + | /* StructureGenerator.kt:231 */
|
6931 10084 | #[allow(missing_docs)] // documentation missing in model
|
6932 10085 | pub b: ::std::option::Option<::std::string::String>,
|
10086 + | /* RustType.kt:516 */
|
6933 10087 | #[pyo3(get, set)]
|
10088 + | /* PythonServerStructureGenerator.kt:80 */
|
6934 10089 | /// :type typing.Optional\[typing.List\[str\]\]:
|
10090 + | /* StructureGenerator.kt:231 */
|
6935 10091 | #[allow(missing_docs)] // documentation missing in model
|
6936 10092 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10093 + | /* StructureGenerator.kt:201 */
|
6937 10094 | }
|
10095 + | /* StructureGenerator.kt:135 */
|
6938 10096 | impl NullAndEmptyHeadersClientInput {
|
10097 + | /* StructureGenerator.kt:231 */
|
6939 10098 | #[allow(missing_docs)] // documentation missing in model
|
10099 + | /* StructureGenerator.kt:166 */
|
6940 10100 | pub fn a(&self) -> ::std::option::Option<&str> {
|
10101 + | /* StructureGenerator.kt:169 */
|
6941 10102 | self.a.as_deref()
|
10103 + | /* StructureGenerator.kt:166 */
|
6942 10104 | }
|
10105 + | /* StructureGenerator.kt:231 */
|
6943 10106 | #[allow(missing_docs)] // documentation missing in model
|
10107 + | /* StructureGenerator.kt:166 */
|
6944 10108 | pub fn b(&self) -> ::std::option::Option<&str> {
|
10109 + | /* StructureGenerator.kt:169 */
|
6945 10110 | self.b.as_deref()
|
10111 + | /* StructureGenerator.kt:166 */
|
6946 10112 | }
|
10113 + | /* StructureGenerator.kt:231 */
|
6947 10114 | #[allow(missing_docs)] // documentation missing in model
|
10115 + | /* StructureGenerator.kt:166 */
|
6948 10116 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
10117 + | /* StructureGenerator.kt:169 */
|
6949 10118 | self.c.as_deref()
|
10119 + | /* StructureGenerator.kt:166 */
|
6950 10120 | }
|
10121 + | /* StructureGenerator.kt:135 */
|
6951 10122 | }
|
10123 + | /* RustType.kt:516 */
|
6952 10124 | #[allow(clippy::new_without_default)]
|
10125 + | /* RustType.kt:516 */
|
6953 10126 | #[allow(clippy::too_many_arguments)]
|
10127 + | /* RustType.kt:516 */
|
6954 10128 | #[::pyo3::pymethods]
|
10129 + | /* PythonServerStructureGenerator.kt:88 */
|
6955 10130 | impl NullAndEmptyHeadersClientInput {
|
6956 10131 | #[new]
|
6957 10132 | pub fn new(
|
6958 10133 | a: ::std::option::Option<::std::string::String>,
|
6959 10134 | b: ::std::option::Option<::std::string::String>,
|
6960 10135 | c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6961 10136 | ) -> Self {
|
6962 10137 | Self { a, b, c }
|
6963 10138 | }
|
6964 10139 | fn __repr__(&self) -> String {
|
6965 10140 | format!("{self:?}")
|
6966 10141 | }
|
6967 10142 | fn __str__(&self) -> String {
|
6968 10143 | format!("{self:?}")
|
6969 10144 | }
|
6970 10145 | }
|
10146 + | /* PythonServerStructureGenerator.kt:111 */
|
6971 10147 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NullAndEmptyHeadersClientInput> {
|
6972 10148 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
6973 10149 | ob.extract::<NullAndEmptyHeadersClientInput>().map(Box::new)
|
6974 10150 | }
|
6975 10151 | }
|
6976 10152 |
|
6977 10153 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NullAndEmptyHeadersClientInput> {
|
6978 10154 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
6979 10155 | (*self).into_py(py)
|
6980 10156 | }
|
6981 10157 | }
|
10158 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
6982 10159 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersClientInput {
|
6983 10160 | type Unconstrained = crate::input::null_and_empty_headers_client_input_internal::Builder;
|
6984 10161 | }
|
10162 + | /* ServerCodegenVisitor.kt:370 */
|
6985 10163 | impl NullAndEmptyHeadersClientInput {
|
6986 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
10164 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
10165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6987 10166 | pub fn builder() -> crate::input::null_and_empty_headers_client_input::Builder {
|
10167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
6988 10168 | crate::input::null_and_empty_headers_client_input::Builder::default()
|
10169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
6989 10170 | }
|
10171 + | /* ServerCodegenVisitor.kt:370 */
|
6990 10172 | }
|
6991 10173 |
|
10174 + | /* RustType.kt:516 */
|
6992 10175 | #[::pyo3::pyclass]
|
10176 + | /* PythonServerStructureGenerator.kt:63 */
|
6993 10177 | /// :param header_string typing.Optional\[str\]:
|
6994 10178 | /// :param header_byte typing.Optional\[int\]:
|
6995 10179 | /// :param header_short typing.Optional\[int\]:
|
6996 10180 | /// :param header_integer typing.Optional\[int\]:
|
6997 10181 | /// :param header_long typing.Optional\[int\]:
|
6998 10182 | /// :param header_float typing.Optional\[float\]:
|
6999 10183 | /// :param header_double typing.Optional\[float\]:
|
7000 10184 | /// :param header_true_bool typing.Optional\[bool\]:
|
7001 10185 | /// :param header_false_bool typing.Optional\[bool\]:
|
7002 10186 | /// :param header_string_list typing.Optional\[typing.List\[str\]\]:
|
7003 10187 | /// :param header_string_set typing.Optional\[typing.List\[str\]\]:
|
7004 10188 | /// :param header_integer_list typing.Optional\[typing.List\[int\]\]:
|
7005 10189 | /// :param header_boolean_list typing.Optional\[typing.List\[bool\]\]:
|
7006 10190 | /// :param header_timestamp_list typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
7007 10191 | /// :param header_enum typing.Optional\[rest_json.model.FooEnum\]:
|
7008 10192 | /// :param header_enum_list typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
7009 10193 | /// :param header_integer_enum typing.Optional\[int\]:
|
7010 10194 | /// :param header_integer_enum_list typing.Optional\[typing.List\[int\]\]:
|
7011 10195 | /// :rtype None:
|
10196 + | /* StructureGenerator.kt:197 */
|
7012 10197 | #[allow(missing_docs)] // documentation missing in model
|
10198 + | /* RustType.kt:516 */
|
7013 10199 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7014 - | pub struct InputAndOutputWithHeadersInput {
|
10200 + | pub /* StructureGenerator.kt:201 */ struct InputAndOutputWithHeadersInput {
|
10201 + | /* RustType.kt:516 */
|
7015 10202 | #[pyo3(get, set)]
|
10203 + | /* PythonServerStructureGenerator.kt:80 */
|
7016 10204 | /// :type typing.Optional\[str\]:
|
10205 + | /* StructureGenerator.kt:231 */
|
7017 10206 | #[allow(missing_docs)] // documentation missing in model
|
7018 10207 | pub header_string: ::std::option::Option<::std::string::String>,
|
10208 + | /* RustType.kt:516 */
|
7019 10209 | #[pyo3(get, set)]
|
10210 + | /* PythonServerStructureGenerator.kt:80 */
|
7020 10211 | /// :type typing.Optional\[int\]:
|
10212 + | /* StructureGenerator.kt:231 */
|
7021 10213 | #[allow(missing_docs)] // documentation missing in model
|
7022 10214 | pub header_byte: ::std::option::Option<i8>,
|
10215 + | /* RustType.kt:516 */
|
7023 10216 | #[pyo3(get, set)]
|
10217 + | /* PythonServerStructureGenerator.kt:80 */
|
7024 10218 | /// :type typing.Optional\[int\]:
|
10219 + | /* StructureGenerator.kt:231 */
|
7025 10220 | #[allow(missing_docs)] // documentation missing in model
|
7026 10221 | pub header_short: ::std::option::Option<i16>,
|
10222 + | /* RustType.kt:516 */
|
7027 10223 | #[pyo3(get, set)]
|
10224 + | /* PythonServerStructureGenerator.kt:80 */
|
7028 10225 | /// :type typing.Optional\[int\]:
|
10226 + | /* StructureGenerator.kt:231 */
|
7029 10227 | #[allow(missing_docs)] // documentation missing in model
|
7030 10228 | pub header_integer: ::std::option::Option<i32>,
|
10229 + | /* RustType.kt:516 */
|
7031 10230 | #[pyo3(get, set)]
|
10231 + | /* PythonServerStructureGenerator.kt:80 */
|
7032 10232 | /// :type typing.Optional\[int\]:
|
10233 + | /* StructureGenerator.kt:231 */
|
7033 10234 | #[allow(missing_docs)] // documentation missing in model
|
7034 10235 | pub header_long: ::std::option::Option<i64>,
|
10236 + | /* RustType.kt:516 */
|
7035 10237 | #[pyo3(get, set)]
|
10238 + | /* PythonServerStructureGenerator.kt:80 */
|
7036 10239 | /// :type typing.Optional\[float\]:
|
10240 + | /* StructureGenerator.kt:231 */
|
7037 10241 | #[allow(missing_docs)] // documentation missing in model
|
7038 10242 | pub header_float: ::std::option::Option<f32>,
|
10243 + | /* RustType.kt:516 */
|
7039 10244 | #[pyo3(get, set)]
|
10245 + | /* PythonServerStructureGenerator.kt:80 */
|
7040 10246 | /// :type typing.Optional\[float\]:
|
10247 + | /* StructureGenerator.kt:231 */
|
7041 10248 | #[allow(missing_docs)] // documentation missing in model
|
7042 10249 | pub header_double: ::std::option::Option<f64>,
|
10250 + | /* RustType.kt:516 */
|
7043 10251 | #[pyo3(get, set)]
|
10252 + | /* PythonServerStructureGenerator.kt:80 */
|
7044 10253 | /// :type typing.Optional\[bool\]:
|
10254 + | /* StructureGenerator.kt:231 */
|
7045 10255 | #[allow(missing_docs)] // documentation missing in model
|
7046 10256 | pub header_true_bool: ::std::option::Option<bool>,
|
10257 + | /* RustType.kt:516 */
|
7047 10258 | #[pyo3(get, set)]
|
10259 + | /* PythonServerStructureGenerator.kt:80 */
|
7048 10260 | /// :type typing.Optional\[bool\]:
|
10261 + | /* StructureGenerator.kt:231 */
|
7049 10262 | #[allow(missing_docs)] // documentation missing in model
|
7050 10263 | pub header_false_bool: ::std::option::Option<bool>,
|
10264 + | /* RustType.kt:516 */
|
7051 10265 | #[pyo3(get, set)]
|
10266 + | /* PythonServerStructureGenerator.kt:80 */
|
7052 10267 | /// :type typing.Optional\[typing.List\[str\]\]:
|
10268 + | /* StructureGenerator.kt:231 */
|
7053 10269 | #[allow(missing_docs)] // documentation missing in model
|
7054 10270 | pub header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10271 + | /* RustType.kt:516 */
|
7055 10272 | #[pyo3(get, set)]
|
10273 + | /* PythonServerStructureGenerator.kt:80 */
|
7056 10274 | /// :type typing.Optional\[typing.List\[str\]\]:
|
10275 + | /* StructureGenerator.kt:231 */
|
7057 10276 | #[allow(missing_docs)] // documentation missing in model
|
7058 10277 | pub header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10278 + | /* RustType.kt:516 */
|
7059 10279 | #[pyo3(get, set)]
|
10280 + | /* PythonServerStructureGenerator.kt:80 */
|
7060 10281 | /// :type typing.Optional\[typing.List\[int\]\]:
|
10282 + | /* StructureGenerator.kt:231 */
|
7061 10283 | #[allow(missing_docs)] // documentation missing in model
|
7062 10284 | pub header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
10285 + | /* RustType.kt:516 */
|
7063 10286 | #[pyo3(get, set)]
|
10287 + | /* PythonServerStructureGenerator.kt:80 */
|
7064 10288 | /// :type typing.Optional\[typing.List\[bool\]\]:
|
10289 + | /* StructureGenerator.kt:231 */
|
7065 10290 | #[allow(missing_docs)] // documentation missing in model
|
7066 10291 | pub header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
10292 + | /* RustType.kt:516 */
|
7067 10293 | #[pyo3(get, set)]
|
10294 + | /* PythonServerStructureGenerator.kt:80 */
|
7068 10295 | /// :type typing.Optional\[typing.List\[rest_json.types.DateTime\]\]:
|
10296 + | /* StructureGenerator.kt:231 */
|
7069 10297 | #[allow(missing_docs)] // documentation missing in model
|
7070 10298 | pub header_timestamp_list:
|
7071 10299 | ::std::option::Option<::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>>,
|
10300 + | /* RustType.kt:516 */
|
7072 10301 | #[pyo3(get, set)]
|
10302 + | /* PythonServerStructureGenerator.kt:80 */
|
7073 10303 | /// :type typing.Optional\[rest_json.model.FooEnum\]:
|
10304 + | /* StructureGenerator.kt:231 */
|
7074 10305 | #[allow(missing_docs)] // documentation missing in model
|
7075 10306 | pub header_enum: ::std::option::Option<crate::model::FooEnum>,
|
10307 + | /* RustType.kt:516 */
|
7076 10308 | #[pyo3(get, set)]
|
10309 + | /* PythonServerStructureGenerator.kt:80 */
|
7077 10310 | /// :type typing.Optional\[typing.List\[rest_json.model.FooEnum\]\]:
|
10311 + | /* StructureGenerator.kt:231 */
|
7078 10312 | #[allow(missing_docs)] // documentation missing in model
|
7079 10313 | pub header_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
10314 + | /* RustType.kt:516 */
|
7080 10315 | #[pyo3(get, set)]
|
10316 + | /* PythonServerStructureGenerator.kt:80 */
|
7081 10317 | /// :type typing.Optional\[int\]:
|
10318 + | /* StructureGenerator.kt:231 */
|
7082 10319 | #[allow(missing_docs)] // documentation missing in model
|
7083 10320 | pub header_integer_enum: ::std::option::Option<i32>,
|
10321 + | /* RustType.kt:516 */
|
7084 10322 | #[pyo3(get, set)]
|
10323 + | /* PythonServerStructureGenerator.kt:80 */
|
7085 10324 | /// :type typing.Optional\[typing.List\[int\]\]:
|
10325 + | /* StructureGenerator.kt:231 */
|
7086 10326 | #[allow(missing_docs)] // documentation missing in model
|
7087 10327 | pub header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
10328 + | /* StructureGenerator.kt:201 */
|
7088 10329 | }
|
10330 + | /* StructureGenerator.kt:135 */
|
7089 10331 | impl InputAndOutputWithHeadersInput {
|
10332 + | /* StructureGenerator.kt:231 */
|
7090 10333 | #[allow(missing_docs)] // documentation missing in model
|
10334 + | /* StructureGenerator.kt:166 */
|
7091 10335 | pub fn header_string(&self) -> ::std::option::Option<&str> {
|
10336 + | /* StructureGenerator.kt:169 */
|
7092 10337 | self.header_string.as_deref()
|
10338 + | /* StructureGenerator.kt:166 */
|
7093 10339 | }
|
10340 + | /* StructureGenerator.kt:231 */
|
7094 10341 | #[allow(missing_docs)] // documentation missing in model
|
10342 + | /* StructureGenerator.kt:166 */
|
7095 10343 | pub fn header_byte(&self) -> ::std::option::Option<i8> {
|
10344 + | /* StructureGenerator.kt:168 */
|
7096 10345 | self.header_byte
|
10346 + | /* StructureGenerator.kt:166 */
|
7097 10347 | }
|
10348 + | /* StructureGenerator.kt:231 */
|
7098 10349 | #[allow(missing_docs)] // documentation missing in model
|
10350 + | /* StructureGenerator.kt:166 */
|
7099 10351 | pub fn header_short(&self) -> ::std::option::Option<i16> {
|
10352 + | /* StructureGenerator.kt:168 */
|
7100 10353 | self.header_short
|
10354 + | /* StructureGenerator.kt:166 */
|
7101 10355 | }
|
10356 + | /* StructureGenerator.kt:231 */
|
7102 10357 | #[allow(missing_docs)] // documentation missing in model
|
10358 + | /* StructureGenerator.kt:166 */
|
7103 10359 | pub fn header_integer(&self) -> ::std::option::Option<i32> {
|
10360 + | /* StructureGenerator.kt:168 */
|
7104 10361 | self.header_integer
|
10362 + | /* StructureGenerator.kt:166 */
|
7105 10363 | }
|
10364 + | /* StructureGenerator.kt:231 */
|
7106 10365 | #[allow(missing_docs)] // documentation missing in model
|
10366 + | /* StructureGenerator.kt:166 */
|
7107 10367 | pub fn header_long(&self) -> ::std::option::Option<i64> {
|
10368 + | /* StructureGenerator.kt:168 */
|
7108 10369 | self.header_long
|
10370 + | /* StructureGenerator.kt:166 */
|
7109 10371 | }
|
10372 + | /* StructureGenerator.kt:231 */
|
7110 10373 | #[allow(missing_docs)] // documentation missing in model
|
10374 + | /* StructureGenerator.kt:166 */
|
7111 10375 | pub fn header_float(&self) -> ::std::option::Option<f32> {
|
10376 + | /* StructureGenerator.kt:168 */
|
7112 10377 | self.header_float
|
10378 + | /* StructureGenerator.kt:166 */
|
7113 10379 | }
|
10380 + | /* StructureGenerator.kt:231 */
|
7114 10381 | #[allow(missing_docs)] // documentation missing in model
|
10382 + | /* StructureGenerator.kt:166 */
|
7115 10383 | pub fn header_double(&self) -> ::std::option::Option<f64> {
|
10384 + | /* StructureGenerator.kt:168 */
|
7116 10385 | self.header_double
|
10386 + | /* StructureGenerator.kt:166 */
|
7117 10387 | }
|
10388 + | /* StructureGenerator.kt:231 */
|
7118 10389 | #[allow(missing_docs)] // documentation missing in model
|
10390 + | /* StructureGenerator.kt:166 */
|
7119 10391 | pub fn header_true_bool(&self) -> ::std::option::Option<bool> {
|
10392 + | /* StructureGenerator.kt:168 */
|
7120 10393 | self.header_true_bool
|
10394 + | /* StructureGenerator.kt:166 */
|
7121 10395 | }
|
10396 + | /* StructureGenerator.kt:231 */
|
7122 10397 | #[allow(missing_docs)] // documentation missing in model
|
10398 + | /* StructureGenerator.kt:166 */
|
7123 10399 | pub fn header_false_bool(&self) -> ::std::option::Option<bool> {
|
10400 + | /* StructureGenerator.kt:168 */
|
7124 10401 | self.header_false_bool
|
10402 + | /* StructureGenerator.kt:166 */
|
7125 10403 | }
|
10404 + | /* StructureGenerator.kt:231 */
|
7126 10405 | #[allow(missing_docs)] // documentation missing in model
|
10406 + | /* StructureGenerator.kt:166 */
|
7127 10407 | pub fn header_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
10408 + | /* StructureGenerator.kt:169 */
|
7128 10409 | self.header_string_list.as_deref()
|
10410 + | /* StructureGenerator.kt:166 */
|
7129 10411 | }
|
10412 + | /* StructureGenerator.kt:231 */
|
7130 10413 | #[allow(missing_docs)] // documentation missing in model
|
10414 + | /* StructureGenerator.kt:166 */
|
7131 10415 | pub fn header_string_set(&self) -> ::std::option::Option<&[::std::string::String]> {
|
10416 + | /* StructureGenerator.kt:169 */
|
7132 10417 | self.header_string_set.as_deref()
|
10418 + | /* StructureGenerator.kt:166 */
|
7133 10419 | }
|
10420 + | /* StructureGenerator.kt:231 */
|
7134 10421 | #[allow(missing_docs)] // documentation missing in model
|
10422 + | /* StructureGenerator.kt:166 */
|
7135 10423 | pub fn header_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
10424 + | /* StructureGenerator.kt:169 */
|
7136 10425 | self.header_integer_list.as_deref()
|
10426 + | /* StructureGenerator.kt:166 */
|
7137 10427 | }
|
10428 + | /* StructureGenerator.kt:231 */
|
7138 10429 | #[allow(missing_docs)] // documentation missing in model
|
10430 + | /* StructureGenerator.kt:166 */
|
7139 10431 | pub fn header_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
10432 + | /* StructureGenerator.kt:169 */
|
7140 10433 | self.header_boolean_list.as_deref()
|
10434 + | /* StructureGenerator.kt:166 */
|
7141 10435 | }
|
10436 + | /* StructureGenerator.kt:231 */
|
7142 10437 | #[allow(missing_docs)] // documentation missing in model
|
10438 + | /* StructureGenerator.kt:166 */
|
7143 10439 | pub fn header_timestamp_list(
|
7144 10440 | &self,
|
7145 10441 | ) -> ::std::option::Option<&[::aws_smithy_http_server_python::types::DateTime]> {
|
10442 + | /* StructureGenerator.kt:169 */
|
7146 10443 | self.header_timestamp_list.as_deref()
|
10444 + | /* StructureGenerator.kt:166 */
|
7147 10445 | }
|
10446 + | /* StructureGenerator.kt:231 */
|
7148 10447 | #[allow(missing_docs)] // documentation missing in model
|
10448 + | /* StructureGenerator.kt:166 */
|
7149 10449 | pub fn header_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
10450 + | /* StructureGenerator.kt:170 */
|
7150 10451 | self.header_enum.as_ref()
|
10452 + | /* StructureGenerator.kt:166 */
|
7151 10453 | }
|
10454 + | /* StructureGenerator.kt:231 */
|
7152 10455 | #[allow(missing_docs)] // documentation missing in model
|
10456 + | /* StructureGenerator.kt:166 */
|
7153 10457 | pub fn header_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
10458 + | /* StructureGenerator.kt:169 */
|
7154 10459 | self.header_enum_list.as_deref()
|
10460 + | /* StructureGenerator.kt:166 */
|
7155 10461 | }
|
10462 + | /* StructureGenerator.kt:231 */
|
7156 10463 | #[allow(missing_docs)] // documentation missing in model
|
10464 + | /* StructureGenerator.kt:166 */
|
7157 10465 | pub fn header_integer_enum(&self) -> ::std::option::Option<i32> {
|
10466 + | /* StructureGenerator.kt:168 */
|
7158 10467 | self.header_integer_enum
|
10468 + | /* StructureGenerator.kt:166 */
|
7159 10469 | }
|
10470 + | /* StructureGenerator.kt:231 */
|
7160 10471 | #[allow(missing_docs)] // documentation missing in model
|
10472 + | /* StructureGenerator.kt:166 */
|
7161 10473 | pub fn header_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
10474 + | /* StructureGenerator.kt:169 */
|
7162 10475 | self.header_integer_enum_list.as_deref()
|
10476 + | /* StructureGenerator.kt:166 */
|
7163 10477 | }
|
10478 + | /* StructureGenerator.kt:135 */
|
7164 10479 | }
|
10480 + | /* RustType.kt:516 */
|
7165 10481 | #[allow(clippy::new_without_default)]
|
10482 + | /* RustType.kt:516 */
|
7166 10483 | #[allow(clippy::too_many_arguments)]
|
10484 + | /* RustType.kt:516 */
|
7167 10485 | #[::pyo3::pymethods]
|
10486 + | /* PythonServerStructureGenerator.kt:88 */
|
7168 10487 | impl InputAndOutputWithHeadersInput {
|
7169 10488 | #[new]
|
7170 10489 | pub fn new(
|
7171 10490 | header_string: ::std::option::Option<::std::string::String>,
|
7172 10491 | header_byte: ::std::option::Option<i8>,
|
7173 10492 | header_short: ::std::option::Option<i16>,
|
7174 10493 | header_integer: ::std::option::Option<i32>,
|
7175 10494 | header_long: ::std::option::Option<i64>,
|
7176 10495 | header_float: ::std::option::Option<f32>,
|
7177 10496 | header_double: ::std::option::Option<f64>,
|
7178 10497 | header_true_bool: ::std::option::Option<bool>,
|
7179 10498 | header_false_bool: ::std::option::Option<bool>,
|
7180 10499 | header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7181 10500 | header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7182 10501 | header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
7183 10502 | header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
7184 10503 | header_timestamp_list: ::std::option::Option<
|
7185 10504 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
7186 10505 | >,
|
7187 10506 | header_enum: ::std::option::Option<crate::model::FooEnum>,
|
7188 10507 | header_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
7189 10508 | header_integer_enum: ::std::option::Option<i32>,
|
7190 10509 | header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
7191 10510 | ) -> Self {
|
7192 10511 | Self {
|
7193 10512 | header_string,
|
7194 10513 | header_byte,
|
7195 10514 | header_short,
|
7196 10515 | header_integer,
|
7197 10516 | header_long,
|
7198 10517 | header_float,
|
7199 10518 | header_double,
|
7200 10519 | header_true_bool,
|
7201 10520 | header_false_bool,
|
7202 10521 | header_string_list,
|
7203 10522 | header_string_set,
|
7204 10523 | header_integer_list,
|
7205 10524 | header_boolean_list,
|
7206 10525 | header_timestamp_list,
|
7207 10526 | header_enum,
|
7208 10527 | header_enum_list,
|
7209 10528 | header_integer_enum,
|
7210 10529 | header_integer_enum_list,
|
7211 10530 | }
|
7212 10531 | }
|
7213 10532 | fn __repr__(&self) -> String {
|
7214 10533 | format!("{self:?}")
|
7215 10534 | }
|
7216 10535 | fn __str__(&self) -> String {
|
7217 10536 | format!("{self:?}")
|
7218 10537 | }
|
7219 10538 | }
|
10539 + | /* PythonServerStructureGenerator.kt:111 */
|
7220 10540 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<InputAndOutputWithHeadersInput> {
|
7221 10541 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
7222 10542 | ob.extract::<InputAndOutputWithHeadersInput>().map(Box::new)
|
7223 10543 | }
|
7224 10544 | }
|
7225 10545 |
|
7226 10546 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<InputAndOutputWithHeadersInput> {
|
7227 10547 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
7228 10548 | (*self).into_py(py)
|
7229 10549 | }
|
7230 10550 | }
|
10551 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
7231 10552 | impl crate::constrained::Constrained for crate::input::InputAndOutputWithHeadersInput {
|
7232 10553 | type Unconstrained = crate::input::input_and_output_with_headers_input_internal::Builder;
|
7233 10554 | }
|
10555 + | /* ServerCodegenVisitor.kt:370 */
|
7234 10556 | impl InputAndOutputWithHeadersInput {
|
7235 - | /// Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
10557 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
10558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7236 10559 | pub fn builder() -> crate::input::input_and_output_with_headers_input::Builder {
|
10560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
7237 10561 | crate::input::input_and_output_with_headers_input::Builder::default()
|
10562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7238 10563 | }
|
10564 + | /* ServerCodegenVisitor.kt:370 */
|
7239 10565 | }
|
7240 10566 |
|
10567 + | /* RustType.kt:516 */
|
7241 10568 | #[::pyo3::pyclass]
|
10569 + | /* PythonServerStructureGenerator.kt:63 */
|
7242 10570 | /// :rtype None:
|
10571 + | /* StructureGenerator.kt:197 */
|
7243 10572 | #[allow(missing_docs)] // documentation missing in model
|
10573 + | /* RustType.kt:516 */
|
7244 10574 | #[derive(
|
7245 10575 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7246 10576 | )]
|
7247 - | pub struct UnitInputAndOutputInput {}
|
10577 + | pub /* StructureGenerator.kt:201 */ struct UnitInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
10578 + | /* RustType.kt:516 */
|
7248 10579 | #[allow(clippy::new_without_default)]
|
10580 + | /* RustType.kt:516 */
|
7249 10581 | #[allow(clippy::too_many_arguments)]
|
10582 + | /* RustType.kt:516 */
|
7250 10583 | #[::pyo3::pymethods]
|
10584 + | /* PythonServerStructureGenerator.kt:88 */
|
7251 10585 | impl UnitInputAndOutputInput {
|
7252 10586 | #[new]
|
7253 10587 | pub fn new() -> Self {
|
7254 10588 | Self {}
|
7255 10589 | }
|
7256 10590 | fn __repr__(&self) -> String {
|
7257 10591 | format!("{self:?}")
|
7258 10592 | }
|
7259 10593 | fn __str__(&self) -> String {
|
7260 10594 | format!("{self:?}")
|
7261 10595 | }
|
7262 10596 | }
|
10597 + | /* PythonServerStructureGenerator.kt:111 */
|
7263 10598 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<UnitInputAndOutputInput> {
|
7264 10599 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
7265 10600 | ob.extract::<UnitInputAndOutputInput>().map(Box::new)
|
7266 10601 | }
|
7267 10602 | }
|
7268 10603 |
|
7269 10604 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<UnitInputAndOutputInput> {
|
7270 10605 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
7271 10606 | (*self).into_py(py)
|
7272 10607 | }
|
7273 10608 | }
|
10609 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
7274 10610 | impl crate::constrained::Constrained for crate::input::UnitInputAndOutputInput {
|
7275 10611 | type Unconstrained = crate::input::unit_input_and_output_input_internal::Builder;
|
7276 10612 | }
|
10613 + | /* ServerCodegenVisitor.kt:370 */
|
7277 10614 | impl UnitInputAndOutputInput {
|
7278 - | /// Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
10615 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
10616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7279 10617 | pub fn builder() -> crate::input::unit_input_and_output_input::Builder {
|
10618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
7280 10619 | crate::input::unit_input_and_output_input::Builder::default()
|
10620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7281 10621 | }
|
10622 + | /* ServerCodegenVisitor.kt:370 */
|
7282 10623 | }
|
7283 10624 |
|
10625 + | /* RustType.kt:516 */
|
7284 10626 | #[::pyo3::pyclass]
|
10627 + | /* PythonServerStructureGenerator.kt:63 */
|
7285 10628 | /// :rtype None:
|
10629 + | /* StructureGenerator.kt:197 */
|
7286 10630 | #[allow(missing_docs)] // documentation missing in model
|
10631 + | /* RustType.kt:516 */
|
7287 10632 | #[derive(
|
7288 10633 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7289 10634 | )]
|
7290 - | pub struct EmptyInputAndEmptyOutputInput {}
|
10635 + | pub /* StructureGenerator.kt:201 */ struct EmptyInputAndEmptyOutputInput {/* StructureGenerator.kt:201 */}
|
10636 + | /* RustType.kt:516 */
|
7291 10637 | #[allow(clippy::new_without_default)]
|
10638 + | /* RustType.kt:516 */
|
7292 10639 | #[allow(clippy::too_many_arguments)]
|
10640 + | /* RustType.kt:516 */
|
7293 10641 | #[::pyo3::pymethods]
|
10642 + | /* PythonServerStructureGenerator.kt:88 */
|
7294 10643 | impl EmptyInputAndEmptyOutputInput {
|
7295 10644 | #[new]
|
7296 10645 | pub fn new() -> Self {
|
7297 10646 | Self {}
|
7298 10647 | }
|
7299 10648 | fn __repr__(&self) -> String {
|
7300 10649 | format!("{self:?}")
|
7301 10650 | }
|
7302 10651 | fn __str__(&self) -> String {
|
7303 10652 | format!("{self:?}")
|
7304 10653 | }
|
7305 10654 | }
|
10655 + | /* PythonServerStructureGenerator.kt:111 */
|
7306 10656 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
7307 10657 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
7308 10658 | ob.extract::<EmptyInputAndEmptyOutputInput>().map(Box::new)
|
7309 10659 | }
|
7310 10660 | }
|
7311 10661 |
|
7312 10662 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
7313 10663 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
7314 10664 | (*self).into_py(py)
|
7315 10665 | }
|
7316 10666 | }
|
10667 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
7317 10668 | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
7318 10669 | type Unconstrained = crate::input::empty_input_and_empty_output_input_internal::Builder;
|
7319 10670 | }
|
10671 + | /* ServerCodegenVisitor.kt:370 */
|
7320 10672 | impl EmptyInputAndEmptyOutputInput {
|
7321 - | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
10673 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
10674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7322 10675 | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
10676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
7323 10677 | crate::input::empty_input_and_empty_output_input::Builder::default()
|
10678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7324 10679 | }
|
10680 + | /* ServerCodegenVisitor.kt:370 */
|
7325 10681 | }
|
7326 10682 |
|
10683 + | /* RustType.kt:516 */
|
7327 10684 | #[::pyo3::pyclass]
|
10685 + | /* PythonServerStructureGenerator.kt:63 */
|
7328 10686 | /// :rtype None:
|
10687 + | /* StructureGenerator.kt:197 */
|
7329 10688 | #[allow(missing_docs)] // documentation missing in model
|
10689 + | /* RustType.kt:516 */
|
7330 10690 | #[derive(
|
7331 10691 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7332 10692 | )]
|
7333 - | pub struct NoInputAndOutputInput {}
|
10693 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
10694 + | /* RustType.kt:516 */
|
7334 10695 | #[allow(clippy::new_without_default)]
|
10696 + | /* RustType.kt:516 */
|
7335 10697 | #[allow(clippy::too_many_arguments)]
|
10698 + | /* RustType.kt:516 */
|
7336 10699 | #[::pyo3::pymethods]
|
10700 + | /* PythonServerStructureGenerator.kt:88 */
|
7337 10701 | impl NoInputAndOutputInput {
|
7338 10702 | #[new]
|
7339 10703 | pub fn new() -> Self {
|
7340 10704 | Self {}
|
7341 10705 | }
|
7342 10706 | fn __repr__(&self) -> String {
|
7343 10707 | format!("{self:?}")
|
7344 10708 | }
|
7345 10709 | fn __str__(&self) -> String {
|
7346 10710 | format!("{self:?}")
|
7347 10711 | }
|
7348 10712 | }
|
10713 + | /* PythonServerStructureGenerator.kt:111 */
|
7349 10714 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndOutputInput> {
|
7350 10715 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
7351 10716 | ob.extract::<NoInputAndOutputInput>().map(Box::new)
|
7352 10717 | }
|
7353 10718 | }
|
7354 10719 |
|
7355 10720 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndOutputInput> {
|
7356 10721 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
7357 10722 | (*self).into_py(py)
|
7358 10723 | }
|
7359 10724 | }
|
10725 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
7360 10726 | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
7361 10727 | type Unconstrained = crate::input::no_input_and_output_input_internal::Builder;
|
7362 10728 | }
|
10729 + | /* ServerCodegenVisitor.kt:370 */
|
7363 10730 | impl NoInputAndOutputInput {
|
7364 - | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
10731 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
10732 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7365 10733 | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
10734 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
7366 10735 | crate::input::no_input_and_output_input::Builder::default()
|
10736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7367 10737 | }
|
10738 + | /* ServerCodegenVisitor.kt:370 */
|
7368 10739 | }
|
7369 10740 |
|
10741 + | /* RustType.kt:516 */
|
7370 10742 | #[::pyo3::pyclass]
|
10743 + | /* PythonServerStructureGenerator.kt:63 */
|
7371 10744 | /// :rtype None:
|
10745 + | /* StructureGenerator.kt:197 */
|
7372 10746 | #[allow(missing_docs)] // documentation missing in model
|
10747 + | /* RustType.kt:516 */
|
7373 10748 | #[derive(
|
7374 10749 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
7375 10750 | )]
|
7376 - | pub struct NoInputAndNoOutputInput {}
|
10751 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndNoOutputInput {/* StructureGenerator.kt:201 */}
|
10752 + | /* RustType.kt:516 */
|
7377 10753 | #[allow(clippy::new_without_default)]
|
10754 + | /* RustType.kt:516 */
|
7378 10755 | #[allow(clippy::too_many_arguments)]
|
10756 + | /* RustType.kt:516 */
|
7379 10757 | #[::pyo3::pymethods]
|
10758 + | /* PythonServerStructureGenerator.kt:88 */
|
7380 10759 | impl NoInputAndNoOutputInput {
|
7381 10760 | #[new]
|
7382 10761 | pub fn new() -> Self {
|
7383 10762 | Self {}
|
7384 10763 | }
|
7385 10764 | fn __repr__(&self) -> String {
|
7386 10765 | format!("{self:?}")
|
7387 10766 | }
|
7388 10767 | fn __str__(&self) -> String {
|
7389 10768 | format!("{self:?}")
|
7390 10769 | }
|
7391 10770 | }
|
10771 + | /* PythonServerStructureGenerator.kt:111 */
|
7392 10772 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndNoOutputInput> {
|
7393 10773 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
7394 10774 | ob.extract::<NoInputAndNoOutputInput>().map(Box::new)
|
7395 10775 | }
|
7396 10776 | }
|
7397 10777 |
|
7398 10778 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndNoOutputInput> {
|
7399 10779 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
7400 10780 | (*self).into_py(py)
|
7401 10781 | }
|
7402 10782 | }
|
10783 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
7403 10784 | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
7404 10785 | type Unconstrained = crate::input::no_input_and_no_output_input_internal::Builder;
|
7405 10786 | }
|
10787 + | /* ServerCodegenVisitor.kt:370 */
|
7406 10788 | impl NoInputAndNoOutputInput {
|
7407 - | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
10789 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
10790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7408 10791 | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
10792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
7409 10793 | crate::input::no_input_and_no_output_input::Builder::default()
|
10794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
7410 10795 | }
|
10796 + | /* ServerCodegenVisitor.kt:370 */
|
7411 10797 | }
|
7412 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10798 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
7413 10799 | pub(crate) mod operation_with_nested_structure_input_internal {
|
7414 10800 |
|
10801 + | /* RustType.kt:516 */
|
7415 10802 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7416 - | /// Holds one variant for each of the ways the builder can fail.
|
10803 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10804 + | /* RustType.kt:516 */
|
7417 10805 | #[non_exhaustive]
|
10806 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7418 10807 | #[allow(clippy::enum_variant_names)]
|
7419 10808 | pub(crate) enum ConstraintViolation {
|
7420 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
10809 + | /// /* ServerBuilderConstraintViolations.kt:138 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
10810 + | /* ServerBuilderConstraintViolations.kt:143 */
|
7421 10811 | MissingTopLevel,
|
7422 - | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
10812 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
10813 + | /* RustType.kt:516 */
|
7423 10814 | #[doc(hidden)]
|
10815 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7424 10816 | TopLevel(crate::model::top_level_internal::ConstraintViolation),
|
10817 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7425 10818 | }
|
10819 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7426 10820 | impl ::std::fmt::Display for ConstraintViolation {
|
10821 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7427 10822 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10823 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7428 10824 | match self {
|
7429 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
7430 - | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
7431 - | }
|
10825 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
10826 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
10827 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
10828 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7432 10829 | }
|
10830 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7433 10831 | }
|
10832 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7434 10833 | impl ::std::error::Error for ConstraintViolation {}
|
10834 + | /* ServerBuilderConstraintViolations.kt:171 */
|
7435 10835 | impl ConstraintViolation {
|
7436 10836 | pub(crate) fn as_validation_exception_field(
|
7437 10837 | self,
|
7438 10838 | path: ::std::string::String,
|
7439 10839 | ) -> crate::model::ValidationExceptionField {
|
7440 10840 | match self {
|
7441 10841 | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
7442 10842 | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
7443 10843 | path: path + "/topLevel",
|
7444 10844 | },
|
7445 10845 | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
7446 10846 | }
|
7447 10847 | }
|
7448 10848 | }
|
10849 + | /* ServerBuilderGenerator.kt:234 */
|
7449 10850 | impl ::std::convert::From<ConstraintViolation>
|
7450 10851 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7451 10852 | {
|
7452 10853 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7453 10854 | let first_validation_exception_field =
|
7454 10855 | constraint_violation.as_validation_exception_field("".to_owned());
|
7455 10856 | let validation_exception = crate::error::ValidationException {
|
7456 10857 | message: format!(
|
7457 10858 | "1 validation error detected. {}",
|
7458 10859 | &first_validation_exception_field.message
|
7459 10860 | ),
|
7460 10861 | field_list: Some(vec![first_validation_exception_field]),
|
7461 10862 | };
|
7462 10863 | Self::ConstraintViolation(
|
7463 10864 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7464 10865 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7465 10866 | )
|
7466 10867 | }
|
7467 10868 | }
|
10869 + | /* ServerBuilderGenerator.kt:244 */
|
7468 10870 | impl ::std::convert::From<Builder>
|
7469 10871 | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
7470 10872 | {
|
7471 10873 | fn from(builder: Builder) -> Self {
|
7472 10874 | Self::Unconstrained(builder)
|
7473 10875 | }
|
7474 10876 | }
|
10877 + | /* ServerBuilderGenerator.kt:446 */
|
7475 10878 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
7476 10879 | type Error = ConstraintViolation;
|
7477 10880 |
|
7478 10881 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7479 10882 | builder.build()
|
7480 10883 | }
|
7481 10884 | }
|
7482 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10885 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10886 + | /* RustType.kt:516 */
|
7483 10887 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10888 + | /* ServerBuilderGenerator.kt:211 */
|
7484 10889 | pub(crate) struct Builder {
|
10890 + | /* ServerBuilderGenerator.kt:308 */
|
7485 10891 | pub(crate) top_level:
|
7486 10892 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
10893 + | /* ServerBuilderGenerator.kt:211 */
|
7487 10894 | }
|
10895 + | /* ServerBuilderGenerator.kt:215 */
|
7488 10896 | impl Builder {
|
10897 + | /* ServerBuilderGenerator.kt:426 */
|
7489 10898 | #[allow(missing_docs)] // documentation missing in model
|
10899 + | /* ServerBuilderGenerator.kt:428 */
|
7490 10900 | pub(crate) fn set_top_level(
|
7491 10901 | mut self,
|
7492 10902 | input: impl ::std::convert::Into<
|
7493 10903 | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
7494 10904 | >,
|
7495 10905 | ) -> Self {
|
10906 + | /* ServerBuilderGenerator.kt:429 */
|
7496 10907 | self.top_level = Some(input.into());
|
7497 10908 | self
|
10909 + | /* ServerBuilderGenerator.kt:428 */
|
7498 10910 | }
|
7499 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
7500 - | ///
|
10911 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10912 + | /// /* ServerBuilderGenerator.kt:260 */
|
7501 10913 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
7502 10914 | ///
|
7503 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
10915 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
10916 + | /* ServerBuilderGenerator.kt:271 */
|
7504 10917 | pub fn build(
|
7505 10918 | self,
|
7506 10919 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
7507 10920 | self.build_enforcing_all_constraints()
|
7508 10921 | }
|
10922 + | /* ServerBuilderGenerator.kt:283 */
|
7509 10923 | fn build_enforcing_all_constraints(
|
7510 10924 | self,
|
7511 10925 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
7512 - | Ok(crate::input::OperationWithNestedStructureInput {
|
10926 + | /* ServerBuilderGenerator.kt:287 */
|
10927 + | Ok(
|
10928 + | /* ServerBuilderGenerator.kt:542 */
|
10929 + | crate::input::OperationWithNestedStructureInput {
|
10930 + | /* ServerBuilderGenerator.kt:546 */
|
7513 10931 | top_level: self
|
7514 10932 | .top_level
|
10933 + | /* ServerBuilderGenerator.kt:602 */
|
7515 10934 | .map(|v| match v {
|
7516 10935 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7517 10936 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7518 10937 | })
|
10938 + | /* ServerBuilderGenerator.kt:614 */
|
7519 10939 | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
7520 10940 | .transpose()?
|
10941 + | /* ServerBuilderGenerator.kt:569 */
|
7521 10942 | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
7522 - | })
|
10943 + | /* ServerBuilderGenerator.kt:542 */
|
10944 + | }, /* ServerBuilderGenerator.kt:287 */
|
10945 + | )
|
10946 + | /* ServerBuilderGenerator.kt:283 */
|
7523 10947 | }
|
10948 + | /* ServerBuilderGenerator.kt:215 */
|
7524 10949 | }
|
10950 + |
|
10951 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7525 10952 | }
|
7526 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10953 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
7527 10954 | pub mod operation_with_nested_structure_input {
|
7528 10955 |
|
10956 + | /* RustType.kt:516 */
|
7529 10957 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7530 - | /// Holds one variant for each of the ways the builder can fail.
|
7531 - |
|
10958 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10959 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7532 10960 | #[allow(clippy::enum_variant_names)]
|
7533 10961 | pub enum ConstraintViolation {
|
7534 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
10962 + | /// /* ServerBuilderConstraintViolations.kt:138 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
10963 + | /* ServerBuilderConstraintViolations.kt:143 */
|
7535 10964 | MissingTopLevel,
|
10965 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7536 10966 | }
|
10967 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7537 10968 | impl ::std::fmt::Display for ConstraintViolation {
|
10969 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7538 10970 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10971 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7539 10972 | match self {
|
7540 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
7541 - | }
|
10973 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
10974 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
10975 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7542 10976 | }
|
10977 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7543 10978 | }
|
10979 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7544 10980 | impl ::std::error::Error for ConstraintViolation {}
|
10981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
7545 10982 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
7546 10983 | type Error = ConstraintViolation;
|
7547 10984 |
|
7548 10985 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7549 10986 | builder.build()
|
7550 10987 | }
|
7551 10988 | }
|
7552 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10989 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
10990 + | /* RustType.kt:516 */
|
7553 10991 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7554 10993 | pub struct Builder {
|
10994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7555 10995 | pub(crate) top_level: ::std::option::Option<crate::model::TopLevel>,
|
10996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7556 10997 | }
|
10998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7557 10999 | impl Builder {
|
11000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7558 11001 | #[allow(missing_docs)] // documentation missing in model
|
11002 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7559 11003 | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
7560 - | self.top_level = Some(input);
|
11004 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11005 + | self.top_level =
|
11006 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
11007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11008 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
11009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7561 11010 | self
|
11011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7562 11012 | }
|
7563 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
7564 - | ///
|
11013 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
11014 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
7565 11015 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if you do not provide a value for all non-`Option`al members.
|
7566 11016 | ///
|
11017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7567 11018 | pub fn build(
|
7568 11019 | self,
|
7569 11020 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
7570 11021 | self.build_enforcing_required_and_enum_traits()
|
7571 11022 | }
|
11023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7572 11024 | fn build_enforcing_required_and_enum_traits(
|
7573 11025 | self,
|
7574 11026 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
7575 - | Ok(crate::input::OperationWithNestedStructureInput {
|
7576 - | top_level: self.top_level.ok_or(ConstraintViolation::MissingTopLevel)?,
|
7577 - | })
|
11027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
11028 + | Ok(
|
11029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11030 + | crate::input::OperationWithNestedStructureInput {
|
11031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11032 + | top_level: self
|
11033 + | .top_level
|
11034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11035 + | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
11036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11037 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
11038 + | )
|
11039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7578 11040 | }
|
11041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7579 11042 | }
|
11043 + |
|
11044 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7580 11045 | }
|
7581 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11046 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
7582 11047 | pub(crate) mod operation_with_defaults_input_internal {
|
7583 11048 |
|
11049 + | /* RustType.kt:516 */
|
7584 11050 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7585 - | /// Holds one variant for each of the ways the builder can fail.
|
11051 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11052 + | /* RustType.kt:516 */
|
7586 11053 | #[non_exhaustive]
|
11054 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7587 11055 | #[allow(clippy::enum_variant_names)]
|
7588 11056 | pub(crate) enum ConstraintViolation {
|
7589 - | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
11057 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
11058 + | /* RustType.kt:516 */
|
7590 11059 | #[doc(hidden)]
|
11060 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7591 11061 | Defaults(crate::model::defaults_internal::ConstraintViolation),
|
11062 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7592 11063 | }
|
11064 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7593 11065 | impl ::std::fmt::Display for ConstraintViolation {
|
11066 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7594 11067 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11068 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7595 11069 | match self {
|
7596 - | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
7597 - | }
|
11070 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
11071 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
11072 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7598 11073 | }
|
11074 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7599 11075 | }
|
11076 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7600 11077 | impl ::std::error::Error for ConstraintViolation {}
|
11078 + | /* ServerBuilderConstraintViolations.kt:171 */
|
7601 11079 | impl ConstraintViolation {
|
7602 11080 | pub(crate) fn as_validation_exception_field(
|
7603 11081 | self,
|
7604 11082 | path: ::std::string::String,
|
7605 11083 | ) -> crate::model::ValidationExceptionField {
|
7606 11084 | match self {
|
7607 11085 | ConstraintViolation::Defaults(inner) => {
|
7608 11086 | inner.as_validation_exception_field(path + "/defaults")
|
7609 11087 | }
|
7610 11088 | }
|
7611 11089 | }
|
7612 11090 | }
|
11091 + | /* ServerBuilderGenerator.kt:234 */
|
7613 11092 | impl ::std::convert::From<ConstraintViolation>
|
7614 11093 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7615 11094 | {
|
7616 11095 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7617 11096 | let first_validation_exception_field =
|
7618 11097 | constraint_violation.as_validation_exception_field("".to_owned());
|
7619 11098 | let validation_exception = crate::error::ValidationException {
|
7620 11099 | message: format!(
|
7621 11100 | "1 validation error detected. {}",
|
7622 11101 | &first_validation_exception_field.message
|
7623 11102 | ),
|
7624 11103 | field_list: Some(vec![first_validation_exception_field]),
|
7625 11104 | };
|
7626 11105 | Self::ConstraintViolation(
|
7627 11106 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7628 11107 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7629 11108 | )
|
7630 11109 | }
|
7631 11110 | }
|
11111 + | /* ServerBuilderGenerator.kt:244 */
|
7632 11112 | impl ::std::convert::From<Builder>
|
7633 11113 | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
7634 11114 | {
|
7635 11115 | fn from(builder: Builder) -> Self {
|
7636 11116 | Self::Unconstrained(builder)
|
7637 11117 | }
|
7638 11118 | }
|
11119 + | /* ServerBuilderGenerator.kt:446 */
|
7639 11120 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
7640 11121 | type Error = ConstraintViolation;
|
7641 11122 |
|
7642 11123 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7643 11124 | builder.build()
|
7644 11125 | }
|
7645 11126 | }
|
7646 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11127 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11128 + | /* RustType.kt:516 */
|
7647 11129 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11130 + | /* ServerBuilderGenerator.kt:211 */
|
7648 11131 | pub(crate) struct Builder {
|
11132 + | /* ServerBuilderGenerator.kt:308 */
|
7649 11133 | pub(crate) defaults:
|
7650 11134 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
11135 + | /* ServerBuilderGenerator.kt:308 */
|
7651 11136 | pub(crate) client_optional_defaults:
|
7652 11137 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
11138 + | /* ServerBuilderGenerator.kt:308 */
|
7653 11139 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
11140 + | /* ServerBuilderGenerator.kt:308 */
|
7654 11141 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
11142 + | /* ServerBuilderGenerator.kt:211 */
|
7655 11143 | }
|
11144 + | /* ServerBuilderGenerator.kt:215 */
|
7656 11145 | impl Builder {
|
11146 + | /* ServerBuilderGenerator.kt:426 */
|
7657 11147 | #[allow(missing_docs)] // documentation missing in model
|
11148 + | /* ServerBuilderGenerator.kt:428 */
|
7658 11149 | pub(crate) fn set_defaults(
|
7659 11150 | mut self,
|
7660 11151 | input: Option<
|
7661 11152 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
7662 11153 | >,
|
7663 11154 | ) -> Self {
|
11155 + | /* ServerBuilderGenerator.kt:429 */
|
7664 11156 | self.defaults = input.map(|v| v.into());
|
7665 11157 | self
|
11158 + | /* ServerBuilderGenerator.kt:428 */
|
7666 11159 | }
|
11160 + | /* ServerBuilderGenerator.kt:426 */
|
7667 11161 | #[allow(missing_docs)] // documentation missing in model
|
11162 + | /* ServerBuilderGenerator.kt:428 */
|
7668 11163 | pub(crate) fn set_client_optional_defaults(
|
7669 11164 | mut self,
|
7670 11165 | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
7671 11166 | ) -> Self {
|
11167 + | /* ServerBuilderGenerator.kt:429 */
|
7672 11168 | self.client_optional_defaults = input.map(|v| v.into());
|
7673 11169 | self
|
11170 + | /* ServerBuilderGenerator.kt:428 */
|
7674 11171 | }
|
11172 + | /* ServerBuilderGenerator.kt:426 */
|
7675 11173 | #[allow(missing_docs)] // documentation missing in model
|
11174 + | /* ServerBuilderGenerator.kt:428 */
|
7676 11175 | pub(crate) fn set_top_level_default(
|
7677 11176 | mut self,
|
7678 11177 | input: impl ::std::convert::Into<::std::string::String>,
|
7679 11178 | ) -> Self {
|
11179 + | /* ServerBuilderGenerator.kt:429 */
|
7680 11180 | self.top_level_default = Some(input.into());
|
7681 11181 | self
|
11182 + | /* ServerBuilderGenerator.kt:428 */
|
7682 11183 | }
|
11184 + | /* ServerBuilderGenerator.kt:426 */
|
7683 11185 | #[allow(missing_docs)] // documentation missing in model
|
11186 + | /* ServerBuilderGenerator.kt:428 */
|
7684 11187 | pub(crate) fn set_other_top_level_default(
|
7685 11188 | mut self,
|
7686 11189 | input: impl ::std::convert::Into<i32>,
|
7687 11190 | ) -> Self {
|
11191 + | /* ServerBuilderGenerator.kt:429 */
|
7688 11192 | self.other_top_level_default = Some(input.into());
|
7689 11193 | self
|
11194 + | /* ServerBuilderGenerator.kt:428 */
|
7690 11195 | }
|
7691 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
7692 - | ///
|
11196 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11197 + | /// /* ServerBuilderGenerator.kt:260 */
|
7693 11198 | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
7694 11199 | ///
|
11200 + | /* ServerBuilderGenerator.kt:271 */
|
7695 11201 | pub fn build(
|
7696 11202 | self,
|
7697 11203 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
7698 11204 | self.build_enforcing_all_constraints()
|
7699 11205 | }
|
11206 + | /* ServerBuilderGenerator.kt:283 */
|
7700 11207 | fn build_enforcing_all_constraints(
|
7701 11208 | self,
|
7702 11209 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
7703 - | Ok(crate::input::OperationWithDefaultsInput {
|
11210 + | /* ServerBuilderGenerator.kt:287 */
|
11211 + | Ok(
|
11212 + | /* ServerBuilderGenerator.kt:542 */
|
11213 + | crate::input::OperationWithDefaultsInput {
|
11214 + | /* ServerBuilderGenerator.kt:546 */
|
7704 11215 | defaults: self
|
7705 11216 | .defaults
|
11217 + | /* ServerBuilderGenerator.kt:602 */
|
7706 11218 | .map(|v| match v {
|
7707 11219 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7708 11220 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7709 11221 | })
|
11222 + | /* ServerBuilderGenerator.kt:614 */
|
7710 11223 | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
7711 11224 | .transpose()?,
|
11225 + | /* ServerBuilderGenerator.kt:546 */
|
7712 11226 | client_optional_defaults: self.client_optional_defaults,
|
7713 - | top_level_default: self.top_level_default.unwrap_or_else(
|
11227 + | /* ServerBuilderGenerator.kt:546 */
|
11228 + | top_level_default: self
|
11229 + | .top_level_default
|
11230 + | /* ServerBuilderGeneratorCommon.kt:139 */
|
11231 + | .unwrap_or_else(
|
7714 11232 | #[allow(clippy::redundant_closure)]
|
7715 11233 | || String::from("hi"),
|
7716 11234 | ),
|
7717 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
7718 - | })
|
11235 + | /* ServerBuilderGenerator.kt:546 */
|
11236 + | other_top_level_default: self
|
11237 + | .other_top_level_default
|
11238 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
11239 + | .unwrap_or(0i32),
|
11240 + | /* ServerBuilderGenerator.kt:542 */
|
11241 + | }, /* ServerBuilderGenerator.kt:287 */
|
11242 + | )
|
11243 + | /* ServerBuilderGenerator.kt:283 */
|
7719 11244 | }
|
11245 + | /* ServerBuilderGenerator.kt:215 */
|
7720 11246 | }
|
11247 + |
|
11248 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7721 11249 | }
|
7722 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11250 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
7723 11251 | pub mod operation_with_defaults_input {
|
7724 11252 |
|
11253 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
7725 11254 | impl ::std::convert::From<Builder> for crate::input::OperationWithDefaultsInput {
|
7726 11255 | fn from(builder: Builder) -> Self {
|
7727 11256 | builder.build()
|
7728 11257 | }
|
7729 11258 | }
|
7730 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11259 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11260 + | /* RustType.kt:516 */
|
7731 11261 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7732 11263 | pub struct Builder {
|
11264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7733 11265 | pub(crate) defaults: ::std::option::Option<crate::model::Defaults>,
|
11266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7734 11267 | pub(crate) client_optional_defaults:
|
7735 11268 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
11269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7736 11270 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
11271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7737 11272 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
11273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7738 11274 | }
|
11275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7739 11276 | impl Builder {
|
11277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7740 11278 | #[allow(missing_docs)] // documentation missing in model
|
11279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7741 11280 | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
7742 - | self.defaults = input;
|
11281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11282 + | self.defaults =
|
11283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7743 11285 | self
|
11286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7744 11287 | }
|
11288 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7745 11289 | #[allow(missing_docs)] // documentation missing in model
|
11290 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7746 11291 | pub fn client_optional_defaults(
|
7747 11292 | mut self,
|
7748 11293 | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
7749 11294 | ) -> Self {
|
7750 - | self.client_optional_defaults = input;
|
11295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11296 + | self.client_optional_defaults =
|
11297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7751 11299 | self
|
11300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7752 11301 | }
|
11302 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7753 11303 | #[allow(missing_docs)] // documentation missing in model
|
11304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7754 11305 | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
7755 - | self.top_level_default = Some(input);
|
11306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11307 + | self.top_level_default =
|
11308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
11309 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
11311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7756 11312 | self
|
11313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7757 11314 | }
|
11315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7758 11316 | #[allow(missing_docs)] // documentation missing in model
|
11317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7759 11318 | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
7760 - | self.other_top_level_default = Some(input);
|
11319 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11320 + | self.other_top_level_default =
|
11321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
11322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
11324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7761 11325 | self
|
11326 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7762 11327 | }
|
7763 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11328 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
11329 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7764 11330 | pub fn build(self) -> crate::input::OperationWithDefaultsInput {
|
7765 11331 | self.build_enforcing_required_and_enum_traits()
|
7766 11332 | }
|
11333 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7767 11334 | fn build_enforcing_required_and_enum_traits(
|
7768 11335 | self,
|
7769 11336 | ) -> crate::input::OperationWithDefaultsInput {
|
11337 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7770 11338 | crate::input::OperationWithDefaultsInput {
|
11339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7771 11340 | defaults: self.defaults,
|
11341 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7772 11342 | client_optional_defaults: self.client_optional_defaults,
|
7773 - | top_level_default: self.top_level_default.unwrap_or_else(
|
11343 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11344 + | top_level_default: self
|
11345 + | .top_level_default
|
11346 + | /* ServerBuilderGeneratorCommon.kt:139 */
|
11347 + | .unwrap_or_else(
|
7774 11348 | #[allow(clippy::redundant_closure)]
|
7775 11349 | || String::from("hi"),
|
7776 11350 | ),
|
7777 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
11351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11352 + | other_top_level_default: self
|
11353 + | .other_top_level_default
|
11354 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
11355 + | .unwrap_or(0i32),
|
11356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7778 11357 | }
|
11358 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7779 11359 | }
|
11360 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7780 11361 | }
|
11362 + |
|
11363 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7781 11364 | }
|
7782 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11365 + | /// /* ServerBuilderGenerator.kt:171 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
7783 11366 | pub(crate) mod content_type_parameters_input_internal {
|
7784 11367 |
|
11368 + | /* ServerBuilderGenerator.kt:461 */
|
7785 11369 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
7786 11370 | fn from(builder: Builder) -> Self {
|
7787 11371 | builder.build()
|
7788 11372 | }
|
7789 11373 | }
|
7790 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11374 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11375 + | /* RustType.kt:516 */
|
7791 11376 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11377 + | /* ServerBuilderGenerator.kt:211 */
|
7792 11378 | pub(crate) struct Builder {
|
11379 + | /* ServerBuilderGenerator.kt:308 */
|
7793 11380 | pub(crate) value: ::std::option::Option<i32>,
|
11381 + | /* ServerBuilderGenerator.kt:211 */
|
7794 11382 | }
|
11383 + | /* ServerBuilderGenerator.kt:215 */
|
7795 11384 | impl Builder {
|
11385 + | /* ServerBuilderGenerator.kt:426 */
|
7796 11386 | #[allow(missing_docs)] // documentation missing in model
|
11387 + | /* ServerBuilderGenerator.kt:428 */
|
7797 11388 | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
11389 + | /* ServerBuilderGenerator.kt:429 */
|
7798 11390 | self.value = input.map(|v| v.into());
|
7799 11391 | self
|
11392 + | /* ServerBuilderGenerator.kt:428 */
|
7800 11393 | }
|
7801 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11394 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11395 + | /* ServerBuilderGenerator.kt:271 */
|
7802 11396 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
7803 11397 | self.build_enforcing_all_constraints()
|
7804 11398 | }
|
11399 + | /* ServerBuilderGenerator.kt:283 */
|
7805 11400 | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
7806 - | crate::input::ContentTypeParametersInput { value: self.value }
|
11401 + | /* ServerBuilderGenerator.kt:542 */
|
11402 + | crate::input::ContentTypeParametersInput {
|
11403 + | /* ServerBuilderGenerator.kt:546 */
|
11404 + | value: self.value,
|
11405 + | /* ServerBuilderGenerator.kt:542 */
|
7807 11406 | }
|
11407 + | /* ServerBuilderGenerator.kt:283 */
|
7808 11408 | }
|
11409 + | /* ServerBuilderGenerator.kt:215 */
|
11410 + | }
|
11411 + |
|
11412 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7809 11413 | }
|
7810 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11414 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
7811 11415 | pub mod content_type_parameters_input {
|
7812 11416 |
|
11417 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
7813 11418 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
7814 11419 | fn from(builder: Builder) -> Self {
|
7815 11420 | builder.build()
|
7816 11421 | }
|
7817 11422 | }
|
7818 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11423 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11424 + | /* RustType.kt:516 */
|
7819 11425 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11426 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7820 11427 | pub struct Builder {
|
11428 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7821 11429 | pub(crate) value: ::std::option::Option<i32>,
|
11430 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7822 11431 | }
|
11432 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7823 11433 | impl Builder {
|
11434 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7824 11435 | #[allow(missing_docs)] // documentation missing in model
|
11436 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7825 11437 | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
7826 - | self.value = input;
|
11438 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11439 + | self.value =
|
11440 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7827 11442 | self
|
11443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7828 11444 | }
|
7829 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11445 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
11446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7830 11447 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
7831 11448 | self.build_enforcing_required_and_enum_traits()
|
7832 11449 | }
|
11450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7833 11451 | fn build_enforcing_required_and_enum_traits(
|
7834 11452 | self,
|
7835 11453 | ) -> crate::input::ContentTypeParametersInput {
|
7836 - | crate::input::ContentTypeParametersInput { value: self.value }
|
11454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11455 + | crate::input::ContentTypeParametersInput {
|
11456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11457 + | value: self.value,
|
11458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7837 11459 | }
|
11460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7838 11461 | }
|
11462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11463 + | }
|
11464 + |
|
11465 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7839 11466 | }
|
7840 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11467 + | /// /* ServerBuilderGenerator.kt:171 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
7841 11468 | pub(crate) mod put_with_content_encoding_input_internal {
|
7842 11469 |
|
11470 + | /* ServerBuilderGenerator.kt:461 */
|
7843 11471 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
7844 11472 | fn from(builder: Builder) -> Self {
|
7845 11473 | builder.build()
|
7846 11474 | }
|
7847 11475 | }
|
7848 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11476 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11477 + | /* RustType.kt:516 */
|
7849 11478 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11479 + | /* ServerBuilderGenerator.kt:211 */
|
7850 11480 | pub(crate) struct Builder {
|
11481 + | /* ServerBuilderGenerator.kt:308 */
|
7851 11482 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
11483 + | /* ServerBuilderGenerator.kt:308 */
|
7852 11484 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
11485 + | /* ServerBuilderGenerator.kt:211 */
|
7853 11486 | }
|
11487 + | /* ServerBuilderGenerator.kt:215 */
|
7854 11488 | impl Builder {
|
11489 + | /* ServerBuilderGenerator.kt:426 */
|
7855 11490 | #[allow(missing_docs)] // documentation missing in model
|
11491 + | /* ServerBuilderGenerator.kt:428 */
|
7856 11492 | pub(crate) fn set_encoding(
|
7857 11493 | mut self,
|
7858 11494 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
7859 11495 | ) -> Self {
|
11496 + | /* ServerBuilderGenerator.kt:429 */
|
7860 11497 | self.encoding = input.map(|v| v.into());
|
7861 11498 | self
|
11499 + | /* ServerBuilderGenerator.kt:428 */
|
7862 11500 | }
|
11501 + | /* ServerBuilderGenerator.kt:426 */
|
7863 11502 | #[allow(missing_docs)] // documentation missing in model
|
11503 + | /* ServerBuilderGenerator.kt:428 */
|
7864 11504 | pub(crate) fn set_data(
|
7865 11505 | mut self,
|
7866 11506 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
7867 11507 | ) -> Self {
|
11508 + | /* ServerBuilderGenerator.kt:429 */
|
7868 11509 | self.data = input.map(|v| v.into());
|
7869 11510 | self
|
11511 + | /* ServerBuilderGenerator.kt:428 */
|
7870 11512 | }
|
7871 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11513 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11514 + | /* ServerBuilderGenerator.kt:271 */
|
7872 11515 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
7873 11516 | self.build_enforcing_all_constraints()
|
7874 11517 | }
|
11518 + | /* ServerBuilderGenerator.kt:283 */
|
7875 11519 | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
11520 + | /* ServerBuilderGenerator.kt:542 */
|
7876 11521 | crate::input::PutWithContentEncodingInput {
|
11522 + | /* ServerBuilderGenerator.kt:546 */
|
7877 11523 | encoding: self.encoding,
|
11524 + | /* ServerBuilderGenerator.kt:546 */
|
7878 11525 | data: self.data,
|
11526 + | /* ServerBuilderGenerator.kt:542 */
|
7879 11527 | }
|
11528 + | /* ServerBuilderGenerator.kt:283 */
|
7880 11529 | }
|
11530 + | /* ServerBuilderGenerator.kt:215 */
|
7881 11531 | }
|
11532 + |
|
11533 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7882 11534 | }
|
7883 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11535 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
7884 11536 | pub mod put_with_content_encoding_input {
|
7885 11537 |
|
11538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
7886 11539 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
7887 11540 | fn from(builder: Builder) -> Self {
|
7888 11541 | builder.build()
|
7889 11542 | }
|
7890 11543 | }
|
7891 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11544 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11545 + | /* RustType.kt:516 */
|
7892 11546 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7893 11548 | pub struct Builder {
|
11549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7894 11550 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
11551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
7895 11552 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
11553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7896 11554 | }
|
11555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7897 11556 | impl Builder {
|
11557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7898 11558 | #[allow(missing_docs)] // documentation missing in model
|
11559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7899 11560 | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
7900 - | self.encoding = input;
|
11561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11562 + | self.encoding =
|
11563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7901 11565 | self
|
11566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7902 11567 | }
|
11568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
7903 11569 | #[allow(missing_docs)] // documentation missing in model
|
11570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7904 11571 | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
7905 - | self.data = input;
|
11572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11573 + | self.data =
|
11574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11575 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
7906 11576 | self
|
11577 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
7907 11578 | }
|
7908 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11579 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
11580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7909 11581 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
7910 11582 | self.build_enforcing_required_and_enum_traits()
|
7911 11583 | }
|
11584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7912 11585 | fn build_enforcing_required_and_enum_traits(
|
7913 11586 | self,
|
7914 11587 | ) -> crate::input::PutWithContentEncodingInput {
|
11588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7915 11589 | crate::input::PutWithContentEncodingInput {
|
11590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7916 11591 | encoding: self.encoding,
|
11592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7917 11593 | data: self.data,
|
11594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7918 11595 | }
|
11596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7919 11597 | }
|
11598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7920 11599 | }
|
11600 + |
|
11601 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7921 11602 | }
|
7922 - | /// See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11603 + | /// /* ServerBuilderGenerator.kt:171 */See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
7923 11604 | pub(crate) mod fractional_seconds_input_internal {
|
7924 11605 |
|
11606 + | /* ServerBuilderGenerator.kt:461 */
|
7925 11607 | impl ::std::convert::From<Builder> for crate::input::FractionalSecondsInput {
|
7926 11608 | fn from(builder: Builder) -> Self {
|
7927 11609 | builder.build()
|
7928 11610 | }
|
7929 11611 | }
|
7930 - | /// A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11612 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11613 + | /* RustType.kt:516 */
|
7931 11614 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7932 - | pub(crate) struct Builder {}
|
11615 + | /* ServerBuilderGenerator.kt:211 */
|
11616 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
11617 + | /* ServerBuilderGenerator.kt:215 */
|
7933 11618 | impl Builder {
|
7934 - | /// Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11619 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11620 + | /* ServerBuilderGenerator.kt:271 */
|
7935 11621 | pub fn build(self) -> crate::input::FractionalSecondsInput {
|
7936 11622 | self.build_enforcing_all_constraints()
|
7937 11623 | }
|
11624 + | /* ServerBuilderGenerator.kt:283 */
|
7938 11625 | fn build_enforcing_all_constraints(self) -> crate::input::FractionalSecondsInput {
|
7939 - | crate::input::FractionalSecondsInput {}
|
11626 + | /* ServerBuilderGenerator.kt:542 */
|
11627 + | crate::input::FractionalSecondsInput {
|
11628 + | /* ServerBuilderGenerator.kt:542 */}
|
11629 + | /* ServerBuilderGenerator.kt:283 */
|
7940 11630 | }
|
11631 + | /* ServerBuilderGenerator.kt:215 */
|
7941 11632 | }
|
11633 + |
|
11634 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7942 11635 | }
|
7943 - | /// See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11636 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
7944 11637 | pub mod fractional_seconds_input {
|
7945 11638 |
|
11639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
7946 11640 | impl ::std::convert::From<Builder> for crate::input::FractionalSecondsInput {
|
7947 11641 | fn from(builder: Builder) -> Self {
|
7948 11642 | builder.build()
|
7949 11643 | }
|
7950 11644 | }
|
7951 - | /// A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11645 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11646 + | /* RustType.kt:516 */
|
7952 11647 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7953 - | pub struct Builder {}
|
11648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11649 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
11650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7954 11651 | impl Builder {
|
7955 - | /// Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11652 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
11653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7956 11654 | pub fn build(self) -> crate::input::FractionalSecondsInput {
|
7957 11655 | self.build_enforcing_required_and_enum_traits()
|
7958 11656 | }
|
11657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7959 11658 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::FractionalSecondsInput {
|
7960 - | crate::input::FractionalSecondsInput {}
|
11659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11660 + | crate::input::FractionalSecondsInput {
|
11661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
11662 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
7961 11663 | }
|
11664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7962 11665 | }
|
11666 + |
|
11667 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7963 11668 | }
|
7964 - | /// See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11669 + | /// /* ServerBuilderGenerator.kt:171 */See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
7965 11670 | pub(crate) mod datetime_offsets_input_internal {
|
7966 11671 |
|
11672 + | /* ServerBuilderGenerator.kt:461 */
|
7967 11673 | impl ::std::convert::From<Builder> for crate::input::DatetimeOffsetsInput {
|
7968 11674 | fn from(builder: Builder) -> Self {
|
7969 11675 | builder.build()
|
7970 11676 | }
|
7971 11677 | }
|
7972 - | /// A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11678 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11679 + | /* RustType.kt:516 */
|
7973 11680 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7974 - | pub(crate) struct Builder {}
|
11681 + | /* ServerBuilderGenerator.kt:211 */
|
11682 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
11683 + | /* ServerBuilderGenerator.kt:215 */
|
7975 11684 | impl Builder {
|
7976 - | /// Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11685 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11686 + | /* ServerBuilderGenerator.kt:271 */
|
7977 11687 | pub fn build(self) -> crate::input::DatetimeOffsetsInput {
|
7978 11688 | self.build_enforcing_all_constraints()
|
7979 11689 | }
|
11690 + | /* ServerBuilderGenerator.kt:283 */
|
7980 11691 | fn build_enforcing_all_constraints(self) -> crate::input::DatetimeOffsetsInput {
|
7981 - | crate::input::DatetimeOffsetsInput {}
|
11692 + | /* ServerBuilderGenerator.kt:542 */
|
11693 + | crate::input::DatetimeOffsetsInput {
|
11694 + | /* ServerBuilderGenerator.kt:542 */}
|
11695 + | /* ServerBuilderGenerator.kt:283 */
|
7982 11696 | }
|
11697 + | /* ServerBuilderGenerator.kt:215 */
|
7983 11698 | }
|
11699 + |
|
11700 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7984 11701 | }
|
7985 - | /// See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11702 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
7986 11703 | pub mod datetime_offsets_input {
|
7987 11704 |
|
11705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
7988 11706 | impl ::std::convert::From<Builder> for crate::input::DatetimeOffsetsInput {
|
7989 11707 | fn from(builder: Builder) -> Self {
|
7990 11708 | builder.build()
|
7991 11709 | }
|
7992 11710 | }
|
7993 - | /// A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11711 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11712 + | /* RustType.kt:516 */
|
7994 11713 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7995 - | pub struct Builder {}
|
11714 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11715 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
11716 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
7996 11717 | impl Builder {
|
7997 - | /// Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11718 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
11719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
7998 11720 | pub fn build(self) -> crate::input::DatetimeOffsetsInput {
|
7999 11721 | self.build_enforcing_required_and_enum_traits()
|
8000 11722 | }
|
11723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8001 11724 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::DatetimeOffsetsInput {
|
8002 - | crate::input::DatetimeOffsetsInput {}
|
11725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11726 + | crate::input::DatetimeOffsetsInput {
|
11727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
11728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8003 11729 | }
|
11730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8004 11731 | }
|
11732 + |
|
11733 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8005 11734 | }
|
8006 - | /// See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11735 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
8007 11736 | pub(crate) mod test_post_no_input_no_payload_input_internal {
|
8008 11737 |
|
11738 + | /* ServerBuilderGenerator.kt:461 */
|
8009 11739 | impl ::std::convert::From<Builder> for crate::input::TestPostNoInputNoPayloadInput {
|
8010 11740 | fn from(builder: Builder) -> Self {
|
8011 11741 | builder.build()
|
8012 11742 | }
|
8013 11743 | }
|
8014 - | /// A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11744 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11745 + | /* RustType.kt:516 */
|
8015 11746 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8016 - | pub(crate) struct Builder {}
|
11747 + | /* ServerBuilderGenerator.kt:211 */
|
11748 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
11749 + | /* ServerBuilderGenerator.kt:215 */
|
8017 11750 | impl Builder {
|
8018 - | /// Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11751 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11752 + | /* ServerBuilderGenerator.kt:271 */
|
8019 11753 | pub fn build(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
8020 11754 | self.build_enforcing_all_constraints()
|
8021 11755 | }
|
11756 + | /* ServerBuilderGenerator.kt:283 */
|
8022 11757 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
8023 - | crate::input::TestPostNoInputNoPayloadInput {}
|
11758 + | /* ServerBuilderGenerator.kt:542 */
|
11759 + | crate::input::TestPostNoInputNoPayloadInput {
|
11760 + | /* ServerBuilderGenerator.kt:542 */}
|
11761 + | /* ServerBuilderGenerator.kt:283 */
|
8024 11762 | }
|
11763 + | /* ServerBuilderGenerator.kt:215 */
|
8025 11764 | }
|
11765 + |
|
11766 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8026 11767 | }
|
8027 - | /// See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11768 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
8028 11769 | pub mod test_post_no_input_no_payload_input {
|
8029 11770 |
|
11771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8030 11772 | impl ::std::convert::From<Builder> for crate::input::TestPostNoInputNoPayloadInput {
|
8031 11773 | fn from(builder: Builder) -> Self {
|
8032 11774 | builder.build()
|
8033 11775 | }
|
8034 11776 | }
|
8035 - | /// A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11777 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11778 + | /* RustType.kt:516 */
|
8036 11779 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8037 - | pub struct Builder {}
|
11780 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11781 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
11782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8038 11783 | impl Builder {
|
8039 - | /// Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11784 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
11785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8040 11786 | pub fn build(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
8041 11787 | self.build_enforcing_required_and_enum_traits()
|
8042 11788 | }
|
11789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8043 11790 | fn build_enforcing_required_and_enum_traits(
|
8044 11791 | self,
|
8045 11792 | ) -> crate::input::TestPostNoInputNoPayloadInput {
|
8046 - | crate::input::TestPostNoInputNoPayloadInput {}
|
11793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11794 + | crate::input::TestPostNoInputNoPayloadInput {
|
11795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
11796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8047 11797 | }
|
11798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8048 11799 | }
|
11800 + |
|
11801 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8049 11802 | }
|
8050 - | /// See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11803 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
8051 11804 | pub(crate) mod test_get_no_input_no_payload_input_internal {
|
8052 11805 |
|
11806 + | /* ServerBuilderGenerator.kt:461 */
|
8053 11807 | impl ::std::convert::From<Builder> for crate::input::TestGetNoInputNoPayloadInput {
|
8054 11808 | fn from(builder: Builder) -> Self {
|
8055 11809 | builder.build()
|
8056 11810 | }
|
8057 11811 | }
|
8058 - | /// A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11812 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11813 + | /* RustType.kt:516 */
|
8059 11814 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8060 - | pub(crate) struct Builder {}
|
11815 + | /* ServerBuilderGenerator.kt:211 */
|
11816 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
11817 + | /* ServerBuilderGenerator.kt:215 */
|
8061 11818 | impl Builder {
|
8062 - | /// Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11819 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11820 + | /* ServerBuilderGenerator.kt:271 */
|
8063 11821 | pub fn build(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
8064 11822 | self.build_enforcing_all_constraints()
|
8065 11823 | }
|
11824 + | /* ServerBuilderGenerator.kt:283 */
|
8066 11825 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
8067 - | crate::input::TestGetNoInputNoPayloadInput {}
|
11826 + | /* ServerBuilderGenerator.kt:542 */
|
11827 + | crate::input::TestGetNoInputNoPayloadInput {
|
11828 + | /* ServerBuilderGenerator.kt:542 */}
|
11829 + | /* ServerBuilderGenerator.kt:283 */
|
8068 11830 | }
|
11831 + | /* ServerBuilderGenerator.kt:215 */
|
8069 11832 | }
|
11833 + |
|
11834 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8070 11835 | }
|
8071 - | /// See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11836 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
8072 11837 | pub mod test_get_no_input_no_payload_input {
|
8073 11838 |
|
11839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8074 11840 | impl ::std::convert::From<Builder> for crate::input::TestGetNoInputNoPayloadInput {
|
8075 11841 | fn from(builder: Builder) -> Self {
|
8076 11842 | builder.build()
|
8077 11843 | }
|
8078 11844 | }
|
8079 - | /// A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11845 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11846 + | /* RustType.kt:516 */
|
8080 11847 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8081 - | pub struct Builder {}
|
11848 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11849 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
11850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8082 11851 | impl Builder {
|
8083 - | /// Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11852 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
11853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8084 11854 | pub fn build(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
8085 11855 | self.build_enforcing_required_and_enum_traits()
|
8086 11856 | }
|
11857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8087 11858 | fn build_enforcing_required_and_enum_traits(
|
8088 11859 | self,
|
8089 11860 | ) -> crate::input::TestGetNoInputNoPayloadInput {
|
8090 - | crate::input::TestGetNoInputNoPayloadInput {}
|
11861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
11862 + | crate::input::TestGetNoInputNoPayloadInput {
|
11863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
11864 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8091 11865 | }
|
11866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8092 11867 | }
|
11868 + |
|
11869 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8093 11870 | }
|
8094 - | /// See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11871 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
8095 11872 | pub(crate) mod test_post_no_payload_input_internal {
|
8096 11873 |
|
11874 + | /* ServerBuilderGenerator.kt:461 */
|
8097 11875 | impl ::std::convert::From<Builder> for crate::input::TestPostNoPayloadInput {
|
8098 11876 | fn from(builder: Builder) -> Self {
|
8099 11877 | builder.build()
|
8100 11878 | }
|
8101 11879 | }
|
8102 - | /// A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11880 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11881 + | /* RustType.kt:516 */
|
8103 11882 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11883 + | /* ServerBuilderGenerator.kt:211 */
|
8104 11884 | pub(crate) struct Builder {
|
11885 + | /* ServerBuilderGenerator.kt:308 */
|
8105 11886 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
11887 + | /* ServerBuilderGenerator.kt:211 */
|
8106 11888 | }
|
11889 + | /* ServerBuilderGenerator.kt:215 */
|
8107 11890 | impl Builder {
|
11891 + | /* ServerBuilderGenerator.kt:426 */
|
8108 11892 | #[allow(missing_docs)] // documentation missing in model
|
11893 + | /* ServerBuilderGenerator.kt:428 */
|
8109 11894 | pub(crate) fn set_test_id(
|
8110 11895 | mut self,
|
8111 11896 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8112 11897 | ) -> Self {
|
11898 + | /* ServerBuilderGenerator.kt:429 */
|
8113 11899 | self.test_id = input.map(|v| v.into());
|
8114 11900 | self
|
11901 + | /* ServerBuilderGenerator.kt:428 */
|
8115 11902 | }
|
8116 - | /// Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11903 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11904 + | /* ServerBuilderGenerator.kt:271 */
|
8117 11905 | pub fn build(self) -> crate::input::TestPostNoPayloadInput {
|
8118 11906 | self.build_enforcing_all_constraints()
|
8119 11907 | }
|
11908 + | /* ServerBuilderGenerator.kt:283 */
|
8120 11909 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoPayloadInput {
|
11910 + | /* ServerBuilderGenerator.kt:542 */
|
8121 11911 | crate::input::TestPostNoPayloadInput {
|
11912 + | /* ServerBuilderGenerator.kt:546 */
|
8122 11913 | test_id: self.test_id,
|
11914 + | /* ServerBuilderGenerator.kt:542 */
|
8123 11915 | }
|
11916 + | /* ServerBuilderGenerator.kt:283 */
|
8124 11917 | }
|
11918 + | /* ServerBuilderGenerator.kt:215 */
|
8125 11919 | }
|
11920 + |
|
11921 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8126 11922 | }
|
8127 - | /// See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11923 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
8128 11924 | pub mod test_post_no_payload_input {
|
8129 11925 |
|
11926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8130 11927 | impl ::std::convert::From<Builder> for crate::input::TestPostNoPayloadInput {
|
8131 11928 | fn from(builder: Builder) -> Self {
|
8132 11929 | builder.build()
|
8133 11930 | }
|
8134 11931 | }
|
8135 - | /// A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11932 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11933 + | /* RustType.kt:516 */
|
8136 11934 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8137 11936 | pub struct Builder {
|
11937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8138 11938 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
11939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8139 11940 | }
|
11941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8140 11942 | impl Builder {
|
11943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8141 11944 | #[allow(missing_docs)] // documentation missing in model
|
11945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8142 11946 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8143 - | self.test_id = input;
|
11947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
11948 + | self.test_id =
|
11949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
11950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8144 11951 | self
|
11952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8145 11953 | }
|
8146 - | /// Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11954 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
11955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8147 11956 | pub fn build(self) -> crate::input::TestPostNoPayloadInput {
|
8148 11957 | self.build_enforcing_required_and_enum_traits()
|
8149 11958 | }
|
11959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8150 11960 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::TestPostNoPayloadInput {
|
11961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8151 11962 | crate::input::TestPostNoPayloadInput {
|
11963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8152 11964 | test_id: self.test_id,
|
11965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8153 11966 | }
|
11967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8154 11968 | }
|
11969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8155 11970 | }
|
11971 + |
|
11972 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8156 11973 | }
|
8157 - | /// See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
11974 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
8158 11975 | pub(crate) mod test_get_no_payload_input_internal {
|
8159 11976 |
|
11977 + | /* ServerBuilderGenerator.kt:461 */
|
8160 11978 | impl ::std::convert::From<Builder> for crate::input::TestGetNoPayloadInput {
|
8161 11979 | fn from(builder: Builder) -> Self {
|
8162 11980 | builder.build()
|
8163 11981 | }
|
8164 11982 | }
|
8165 - | /// A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
11983 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
11984 + | /* RustType.kt:516 */
|
8166 11985 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11986 + | /* ServerBuilderGenerator.kt:211 */
|
8167 11987 | pub(crate) struct Builder {
|
11988 + | /* ServerBuilderGenerator.kt:308 */
|
8168 11989 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
11990 + | /* ServerBuilderGenerator.kt:211 */
|
8169 11991 | }
|
11992 + | /* ServerBuilderGenerator.kt:215 */
|
8170 11993 | impl Builder {
|
11994 + | /* ServerBuilderGenerator.kt:426 */
|
8171 11995 | #[allow(missing_docs)] // documentation missing in model
|
11996 + | /* ServerBuilderGenerator.kt:428 */
|
8172 11997 | pub(crate) fn set_test_id(
|
8173 11998 | mut self,
|
8174 11999 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8175 12000 | ) -> Self {
|
12001 + | /* ServerBuilderGenerator.kt:429 */
|
8176 12002 | self.test_id = input.map(|v| v.into());
|
8177 12003 | self
|
12004 + | /* ServerBuilderGenerator.kt:428 */
|
8178 12005 | }
|
8179 - | /// Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12006 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12007 + | /* ServerBuilderGenerator.kt:271 */
|
8180 12008 | pub fn build(self) -> crate::input::TestGetNoPayloadInput {
|
8181 12009 | self.build_enforcing_all_constraints()
|
8182 12010 | }
|
12011 + | /* ServerBuilderGenerator.kt:283 */
|
8183 12012 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoPayloadInput {
|
12013 + | /* ServerBuilderGenerator.kt:542 */
|
8184 12014 | crate::input::TestGetNoPayloadInput {
|
12015 + | /* ServerBuilderGenerator.kt:546 */
|
8185 12016 | test_id: self.test_id,
|
12017 + | /* ServerBuilderGenerator.kt:542 */
|
8186 12018 | }
|
12019 + | /* ServerBuilderGenerator.kt:283 */
|
8187 12020 | }
|
12021 + | /* ServerBuilderGenerator.kt:215 */
|
8188 12022 | }
|
12023 + |
|
12024 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8189 12025 | }
|
8190 - | /// See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12026 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
8191 12027 | pub mod test_get_no_payload_input {
|
8192 12028 |
|
12029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8193 12030 | impl ::std::convert::From<Builder> for crate::input::TestGetNoPayloadInput {
|
8194 12031 | fn from(builder: Builder) -> Self {
|
8195 12032 | builder.build()
|
8196 12033 | }
|
8197 12034 | }
|
8198 - | /// A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12035 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12036 + | /* RustType.kt:516 */
|
8199 12037 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8200 12039 | pub struct Builder {
|
12040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8201 12041 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
12042 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8202 12043 | }
|
12044 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8203 12045 | impl Builder {
|
12046 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8204 12047 | #[allow(missing_docs)] // documentation missing in model
|
12048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8205 12049 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8206 - | self.test_id = input;
|
12050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12051 + | self.test_id =
|
12052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8207 12054 | self
|
12055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8208 12056 | }
|
8209 - | /// Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12057 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
12058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8210 12059 | pub fn build(self) -> crate::input::TestGetNoPayloadInput {
|
8211 12060 | self.build_enforcing_required_and_enum_traits()
|
8212 12061 | }
|
12062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8213 12063 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::TestGetNoPayloadInput {
|
12064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8214 12065 | crate::input::TestGetNoPayloadInput {
|
12066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8215 12067 | test_id: self.test_id,
|
12068 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8216 12069 | }
|
12070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8217 12071 | }
|
12072 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8218 12073 | }
|
12074 + |
|
12075 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8219 12076 | }
|
8220 - | /// See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12077 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
8221 12078 | pub(crate) mod test_payload_blob_input_internal {
|
8222 12079 |
|
12080 + | /* ServerBuilderGenerator.kt:461 */
|
8223 12081 | impl ::std::convert::From<Builder> for crate::input::TestPayloadBlobInput {
|
8224 12082 | fn from(builder: Builder) -> Self {
|
8225 12083 | builder.build()
|
8226 12084 | }
|
8227 12085 | }
|
8228 - | /// A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12086 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12087 + | /* RustType.kt:516 */
|
8229 12088 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12089 + | /* ServerBuilderGenerator.kt:211 */
|
8230 12090 | pub(crate) struct Builder {
|
12091 + | /* ServerBuilderGenerator.kt:308 */
|
8231 12092 | pub(crate) content_type: ::std::option::Option<::std::string::String>,
|
12093 + | /* ServerBuilderGenerator.kt:308 */
|
8232 12094 | pub(crate) data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
12095 + | /* ServerBuilderGenerator.kt:211 */
|
8233 12096 | }
|
12097 + | /* ServerBuilderGenerator.kt:215 */
|
8234 12098 | impl Builder {
|
12099 + | /* ServerBuilderGenerator.kt:426 */
|
8235 12100 | #[allow(missing_docs)] // documentation missing in model
|
12101 + | /* ServerBuilderGenerator.kt:428 */
|
8236 12102 | pub(crate) fn set_content_type(
|
8237 12103 | mut self,
|
8238 12104 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8239 12105 | ) -> Self {
|
12106 + | /* ServerBuilderGenerator.kt:429 */
|
8240 12107 | self.content_type = input.map(|v| v.into());
|
8241 12108 | self
|
12109 + | /* ServerBuilderGenerator.kt:428 */
|
8242 12110 | }
|
12111 + | /* ServerBuilderGenerator.kt:426 */
|
8243 12112 | #[allow(missing_docs)] // documentation missing in model
|
12113 + | /* ServerBuilderGenerator.kt:428 */
|
8244 12114 | pub(crate) fn set_data(
|
8245 12115 | mut self,
|
8246 12116 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
8247 12117 | ) -> Self {
|
12118 + | /* ServerBuilderGenerator.kt:429 */
|
8248 12119 | self.data = input.map(|v| v.into());
|
8249 12120 | self
|
12121 + | /* ServerBuilderGenerator.kt:428 */
|
8250 12122 | }
|
8251 - | /// Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12123 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12124 + | /* ServerBuilderGenerator.kt:271 */
|
8252 12125 | pub fn build(self) -> crate::input::TestPayloadBlobInput {
|
8253 12126 | self.build_enforcing_all_constraints()
|
8254 12127 | }
|
12128 + | /* ServerBuilderGenerator.kt:283 */
|
8255 12129 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadBlobInput {
|
12130 + | /* ServerBuilderGenerator.kt:542 */
|
8256 12131 | crate::input::TestPayloadBlobInput {
|
12132 + | /* ServerBuilderGenerator.kt:546 */
|
8257 12133 | content_type: self.content_type,
|
12134 + | /* ServerBuilderGenerator.kt:546 */
|
8258 12135 | data: self.data,
|
12136 + | /* ServerBuilderGenerator.kt:542 */
|
8259 12137 | }
|
12138 + | /* ServerBuilderGenerator.kt:283 */
|
8260 12139 | }
|
12140 + | /* ServerBuilderGenerator.kt:215 */
|
8261 12141 | }
|
12142 + |
|
12143 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8262 12144 | }
|
8263 - | /// See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12145 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
8264 12146 | pub mod test_payload_blob_input {
|
8265 12147 |
|
12148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8266 12149 | impl ::std::convert::From<Builder> for crate::input::TestPayloadBlobInput {
|
8267 12150 | fn from(builder: Builder) -> Self {
|
8268 12151 | builder.build()
|
8269 12152 | }
|
8270 12153 | }
|
8271 - | /// A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12154 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12155 + | /* RustType.kt:516 */
|
8272 12156 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12157 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8273 12158 | pub struct Builder {
|
12159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8274 12160 | pub(crate) content_type: ::std::option::Option<::std::string::String>,
|
12161 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8275 12162 | pub(crate) data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
12163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8276 12164 | }
|
12165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8277 12166 | impl Builder {
|
12167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8278 12168 | #[allow(missing_docs)] // documentation missing in model
|
12169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8279 12170 | pub fn content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8280 - | self.content_type = input;
|
12171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12172 + | self.content_type =
|
12173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8281 12175 | self
|
12176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8282 12177 | }
|
12178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8283 12179 | #[allow(missing_docs)] // documentation missing in model
|
12180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8284 12181 | pub fn data(
|
8285 12182 | mut self,
|
8286 12183 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
8287 12184 | ) -> Self {
|
8288 - | self.data = input;
|
12185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12186 + | self.data =
|
12187 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8289 12189 | self
|
12190 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8290 12191 | }
|
8291 - | /// Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12192 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
12193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8292 12194 | pub fn build(self) -> crate::input::TestPayloadBlobInput {
|
8293 12195 | self.build_enforcing_required_and_enum_traits()
|
8294 12196 | }
|
12197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8295 12198 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::TestPayloadBlobInput {
|
12199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8296 12200 | crate::input::TestPayloadBlobInput {
|
12201 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8297 12202 | content_type: self.content_type,
|
12203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8298 12204 | data: self.data,
|
12205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8299 12206 | }
|
12207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8300 12208 | }
|
12209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8301 12210 | }
|
12211 + |
|
12212 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8302 12213 | }
|
8303 - | /// See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12214 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
8304 12215 | pub(crate) mod test_payload_structure_input_internal {
|
8305 12216 |
|
12217 + | /* ServerBuilderGenerator.kt:461 */
|
8306 12218 | impl ::std::convert::From<Builder> for crate::input::TestPayloadStructureInput {
|
8307 12219 | fn from(builder: Builder) -> Self {
|
8308 12220 | builder.build()
|
8309 12221 | }
|
8310 12222 | }
|
8311 - | /// A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12223 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12224 + | /* RustType.kt:516 */
|
8312 12225 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12226 + | /* ServerBuilderGenerator.kt:211 */
|
8313 12227 | pub(crate) struct Builder {
|
12228 + | /* ServerBuilderGenerator.kt:308 */
|
8314 12229 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
12230 + | /* ServerBuilderGenerator.kt:308 */
|
8315 12231 | pub(crate) payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
12232 + | /* ServerBuilderGenerator.kt:211 */
|
8316 12233 | }
|
12234 + | /* ServerBuilderGenerator.kt:215 */
|
8317 12235 | impl Builder {
|
12236 + | /* ServerBuilderGenerator.kt:426 */
|
8318 12237 | #[allow(missing_docs)] // documentation missing in model
|
12238 + | /* ServerBuilderGenerator.kt:428 */
|
8319 12239 | pub(crate) fn set_test_id(
|
8320 12240 | mut self,
|
8321 12241 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8322 12242 | ) -> Self {
|
12243 + | /* ServerBuilderGenerator.kt:429 */
|
8323 12244 | self.test_id = input.map(|v| v.into());
|
8324 12245 | self
|
12246 + | /* ServerBuilderGenerator.kt:428 */
|
8325 12247 | }
|
12248 + | /* ServerBuilderGenerator.kt:426 */
|
8326 12249 | #[allow(missing_docs)] // documentation missing in model
|
12250 + | /* ServerBuilderGenerator.kt:428 */
|
8327 12251 | pub(crate) fn set_payload_config(
|
8328 12252 | mut self,
|
8329 12253 | input: Option<impl ::std::convert::Into<crate::model::PayloadConfig>>,
|
8330 12254 | ) -> Self {
|
12255 + | /* ServerBuilderGenerator.kt:429 */
|
8331 12256 | self.payload_config = input.map(|v| v.into());
|
8332 12257 | self
|
12258 + | /* ServerBuilderGenerator.kt:428 */
|
8333 12259 | }
|
8334 - | /// Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12260 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12261 + | /* ServerBuilderGenerator.kt:271 */
|
8335 12262 | pub fn build(self) -> crate::input::TestPayloadStructureInput {
|
8336 12263 | self.build_enforcing_all_constraints()
|
8337 12264 | }
|
12265 + | /* ServerBuilderGenerator.kt:283 */
|
8338 12266 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadStructureInput {
|
12267 + | /* ServerBuilderGenerator.kt:542 */
|
8339 12268 | crate::input::TestPayloadStructureInput {
|
12269 + | /* ServerBuilderGenerator.kt:546 */
|
8340 12270 | test_id: self.test_id,
|
12271 + | /* ServerBuilderGenerator.kt:546 */
|
8341 12272 | payload_config: self.payload_config,
|
12273 + | /* ServerBuilderGenerator.kt:542 */
|
8342 12274 | }
|
12275 + | /* ServerBuilderGenerator.kt:283 */
|
8343 12276 | }
|
12277 + | /* ServerBuilderGenerator.kt:215 */
|
8344 12278 | }
|
12279 + |
|
12280 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8345 12281 | }
|
8346 - | /// See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12282 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
8347 12283 | pub mod test_payload_structure_input {
|
8348 12284 |
|
12285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8349 12286 | impl ::std::convert::From<Builder> for crate::input::TestPayloadStructureInput {
|
8350 12287 | fn from(builder: Builder) -> Self {
|
8351 12288 | builder.build()
|
8352 12289 | }
|
8353 12290 | }
|
8354 - | /// A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12291 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12292 + | /* RustType.kt:516 */
|
8355 12293 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8356 12295 | pub struct Builder {
|
12296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8357 12297 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
12298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8358 12299 | pub(crate) payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
12300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8359 12301 | }
|
12302 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8360 12303 | impl Builder {
|
12304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8361 12305 | #[allow(missing_docs)] // documentation missing in model
|
12306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8362 12307 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8363 - | self.test_id = input;
|
12308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12309 + | self.test_id =
|
12310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8364 12312 | self
|
12313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8365 12314 | }
|
12315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8366 12316 | #[allow(missing_docs)] // documentation missing in model
|
12317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8367 12318 | pub fn payload_config(
|
8368 12319 | mut self,
|
8369 12320 | input: ::std::option::Option<crate::model::PayloadConfig>,
|
8370 12321 | ) -> Self {
|
8371 - | self.payload_config = input;
|
12322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12323 + | self.payload_config =
|
12324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8372 12326 | self
|
12327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8373 12328 | }
|
8374 - | /// Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12329 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
12330 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8375 12331 | pub fn build(self) -> crate::input::TestPayloadStructureInput {
|
8376 12332 | self.build_enforcing_required_and_enum_traits()
|
8377 12333 | }
|
12334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8378 12335 | fn build_enforcing_required_and_enum_traits(
|
8379 12336 | self,
|
8380 12337 | ) -> crate::input::TestPayloadStructureInput {
|
12338 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8381 12339 | crate::input::TestPayloadStructureInput {
|
12340 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8382 12341 | test_id: self.test_id,
|
12342 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8383 12343 | payload_config: self.payload_config,
|
12344 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8384 12345 | }
|
12346 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8385 12347 | }
|
12348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8386 12349 | }
|
12350 + |
|
12351 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8387 12352 | }
|
8388 - | /// See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12353 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
8389 12354 | pub(crate) mod test_body_structure_input_internal {
|
8390 12355 |
|
12356 + | /* ServerBuilderGenerator.kt:461 */
|
8391 12357 | impl ::std::convert::From<Builder> for crate::input::TestBodyStructureInput {
|
8392 12358 | fn from(builder: Builder) -> Self {
|
8393 12359 | builder.build()
|
8394 12360 | }
|
8395 12361 | }
|
8396 - | /// A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12362 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12363 + | /* RustType.kt:516 */
|
8397 12364 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12365 + | /* ServerBuilderGenerator.kt:211 */
|
8398 12366 | pub(crate) struct Builder {
|
12367 + | /* ServerBuilderGenerator.kt:308 */
|
8399 12368 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
12369 + | /* ServerBuilderGenerator.kt:308 */
|
8400 12370 | pub(crate) test_config: ::std::option::Option<crate::model::TestConfig>,
|
12371 + | /* ServerBuilderGenerator.kt:211 */
|
8401 12372 | }
|
12373 + | /* ServerBuilderGenerator.kt:215 */
|
8402 12374 | impl Builder {
|
12375 + | /* ServerBuilderGenerator.kt:426 */
|
8403 12376 | #[allow(missing_docs)] // documentation missing in model
|
12377 + | /* ServerBuilderGenerator.kt:428 */
|
8404 12378 | pub(crate) fn set_test_id(
|
8405 12379 | mut self,
|
8406 12380 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8407 12381 | ) -> Self {
|
12382 + | /* ServerBuilderGenerator.kt:429 */
|
8408 12383 | self.test_id = input.map(|v| v.into());
|
8409 12384 | self
|
12385 + | /* ServerBuilderGenerator.kt:428 */
|
8410 12386 | }
|
12387 + | /* ServerBuilderGenerator.kt:426 */
|
8411 12388 | #[allow(missing_docs)] // documentation missing in model
|
12389 + | /* ServerBuilderGenerator.kt:428 */
|
8412 12390 | pub(crate) fn set_test_config(
|
8413 12391 | mut self,
|
8414 12392 | input: Option<impl ::std::convert::Into<crate::model::TestConfig>>,
|
8415 12393 | ) -> Self {
|
12394 + | /* ServerBuilderGenerator.kt:429 */
|
8416 12395 | self.test_config = input.map(|v| v.into());
|
8417 12396 | self
|
12397 + | /* ServerBuilderGenerator.kt:428 */
|
8418 12398 | }
|
8419 - | /// Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12399 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12400 + | /* ServerBuilderGenerator.kt:271 */
|
8420 12401 | pub fn build(self) -> crate::input::TestBodyStructureInput {
|
8421 12402 | self.build_enforcing_all_constraints()
|
8422 12403 | }
|
12404 + | /* ServerBuilderGenerator.kt:283 */
|
8423 12405 | fn build_enforcing_all_constraints(self) -> crate::input::TestBodyStructureInput {
|
12406 + | /* ServerBuilderGenerator.kt:542 */
|
8424 12407 | crate::input::TestBodyStructureInput {
|
12408 + | /* ServerBuilderGenerator.kt:546 */
|
8425 12409 | test_id: self.test_id,
|
12410 + | /* ServerBuilderGenerator.kt:546 */
|
8426 12411 | test_config: self.test_config,
|
12412 + | /* ServerBuilderGenerator.kt:542 */
|
8427 12413 | }
|
12414 + | /* ServerBuilderGenerator.kt:283 */
|
8428 12415 | }
|
12416 + | /* ServerBuilderGenerator.kt:215 */
|
8429 12417 | }
|
12418 + |
|
12419 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8430 12420 | }
|
8431 - | /// See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12421 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
8432 12422 | pub mod test_body_structure_input {
|
8433 12423 |
|
12424 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8434 12425 | impl ::std::convert::From<Builder> for crate::input::TestBodyStructureInput {
|
8435 12426 | fn from(builder: Builder) -> Self {
|
8436 12427 | builder.build()
|
8437 12428 | }
|
8438 12429 | }
|
8439 - | /// A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12430 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12431 + | /* RustType.kt:516 */
|
8440 12432 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8441 12434 | pub struct Builder {
|
12435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8442 12436 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
12437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8443 12438 | pub(crate) test_config: ::std::option::Option<crate::model::TestConfig>,
|
12439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8444 12440 | }
|
12441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8445 12442 | impl Builder {
|
12443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8446 12444 | #[allow(missing_docs)] // documentation missing in model
|
12445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8447 12446 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8448 - | self.test_id = input;
|
12447 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12448 + | self.test_id =
|
12449 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8449 12451 | self
|
12452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8450 12453 | }
|
12454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8451 12455 | #[allow(missing_docs)] // documentation missing in model
|
12456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8452 12457 | pub fn test_config(
|
8453 12458 | mut self,
|
8454 12459 | input: ::std::option::Option<crate::model::TestConfig>,
|
8455 12460 | ) -> Self {
|
8456 - | self.test_config = input;
|
12461 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12462 + | self.test_config =
|
12463 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8457 12465 | self
|
12466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8458 12467 | }
|
8459 - | /// Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12468 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
12469 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8460 12470 | pub fn build(self) -> crate::input::TestBodyStructureInput {
|
8461 12471 | self.build_enforcing_required_and_enum_traits()
|
8462 12472 | }
|
12473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8463 12474 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::TestBodyStructureInput {
|
12475 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8464 12476 | crate::input::TestBodyStructureInput {
|
12477 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8465 12478 | test_id: self.test_id,
|
12479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8466 12480 | test_config: self.test_config,
|
12481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8467 12482 | }
|
12483 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8468 12484 | }
|
12485 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8469 12486 | }
|
12487 + |
|
12488 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8470 12489 | }
|
8471 - | /// See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12490 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
8472 12491 | pub(crate) mod malformed_accept_with_generic_string_input_internal {
|
8473 12492 |
|
12493 + | /* ServerBuilderGenerator.kt:461 */
|
8474 12494 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithGenericStringInput {
|
8475 12495 | fn from(builder: Builder) -> Self {
|
8476 12496 | builder.build()
|
8477 12497 | }
|
8478 12498 | }
|
8479 - | /// A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12499 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12500 + | /* RustType.kt:516 */
|
8480 12501 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8481 - | pub(crate) struct Builder {}
|
12502 + | /* ServerBuilderGenerator.kt:211 */
|
12503 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
12504 + | /* ServerBuilderGenerator.kt:215 */
|
8482 12505 | impl Builder {
|
8483 - | /// Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12506 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12507 + | /* ServerBuilderGenerator.kt:271 */
|
8484 12508 | pub fn build(self) -> crate::input::MalformedAcceptWithGenericStringInput {
|
8485 12509 | self.build_enforcing_all_constraints()
|
8486 12510 | }
|
12511 + | /* ServerBuilderGenerator.kt:283 */
|
8487 12512 | fn build_enforcing_all_constraints(
|
8488 12513 | self,
|
8489 12514 | ) -> crate::input::MalformedAcceptWithGenericStringInput {
|
8490 - | crate::input::MalformedAcceptWithGenericStringInput {}
|
12515 + | /* ServerBuilderGenerator.kt:542 */
|
12516 + | crate::input::MalformedAcceptWithGenericStringInput {
|
12517 + | /* ServerBuilderGenerator.kt:542 */}
|
12518 + | /* ServerBuilderGenerator.kt:283 */
|
8491 12519 | }
|
12520 + | /* ServerBuilderGenerator.kt:215 */
|
8492 12521 | }
|
12522 + |
|
12523 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8493 12524 | }
|
8494 - | /// See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12525 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
8495 12526 | pub mod malformed_accept_with_generic_string_input {
|
8496 12527 |
|
12528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8497 12529 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithGenericStringInput {
|
8498 12530 | fn from(builder: Builder) -> Self {
|
8499 12531 | builder.build()
|
8500 12532 | }
|
8501 12533 | }
|
8502 - | /// A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12534 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12535 + | /* RustType.kt:516 */
|
8503 12536 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8504 - | pub struct Builder {}
|
12537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12538 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
12539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8505 12540 | impl Builder {
|
8506 - | /// Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12541 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
12542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8507 12543 | pub fn build(self) -> crate::input::MalformedAcceptWithGenericStringInput {
|
8508 12544 | self.build_enforcing_required_and_enum_traits()
|
8509 12545 | }
|
12546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8510 12547 | fn build_enforcing_required_and_enum_traits(
|
8511 12548 | self,
|
8512 12549 | ) -> crate::input::MalformedAcceptWithGenericStringInput {
|
8513 - | crate::input::MalformedAcceptWithGenericStringInput {}
|
12550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12551 + | crate::input::MalformedAcceptWithGenericStringInput {
|
12552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
12553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8514 12554 | }
|
12555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8515 12556 | }
|
12557 + |
|
12558 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8516 12559 | }
|
8517 - | /// See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12560 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
8518 12561 | pub(crate) mod malformed_accept_with_payload_input_internal {
|
8519 12562 |
|
12563 + | /* ServerBuilderGenerator.kt:461 */
|
8520 12564 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithPayloadInput {
|
8521 12565 | fn from(builder: Builder) -> Self {
|
8522 12566 | builder.build()
|
8523 12567 | }
|
8524 12568 | }
|
8525 - | /// A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12569 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12570 + | /* RustType.kt:516 */
|
8526 12571 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8527 - | pub(crate) struct Builder {}
|
12572 + | /* ServerBuilderGenerator.kt:211 */
|
12573 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
12574 + | /* ServerBuilderGenerator.kt:215 */
|
8528 12575 | impl Builder {
|
8529 - | /// Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12576 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12577 + | /* ServerBuilderGenerator.kt:271 */
|
8530 12578 | pub fn build(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
8531 12579 | self.build_enforcing_all_constraints()
|
8532 12580 | }
|
12581 + | /* ServerBuilderGenerator.kt:283 */
|
8533 12582 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
8534 - | crate::input::MalformedAcceptWithPayloadInput {}
|
12583 + | /* ServerBuilderGenerator.kt:542 */
|
12584 + | crate::input::MalformedAcceptWithPayloadInput {
|
12585 + | /* ServerBuilderGenerator.kt:542 */}
|
12586 + | /* ServerBuilderGenerator.kt:283 */
|
8535 12587 | }
|
12588 + | /* ServerBuilderGenerator.kt:215 */
|
8536 12589 | }
|
12590 + |
|
12591 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8537 12592 | }
|
8538 - | /// See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12593 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
8539 12594 | pub mod malformed_accept_with_payload_input {
|
8540 12595 |
|
12596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8541 12597 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithPayloadInput {
|
8542 12598 | fn from(builder: Builder) -> Self {
|
8543 12599 | builder.build()
|
8544 12600 | }
|
8545 12601 | }
|
8546 - | /// A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12602 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12603 + | /* RustType.kt:516 */
|
8547 12604 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8548 - | pub struct Builder {}
|
12605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12606 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
12607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8549 12608 | impl Builder {
|
8550 - | /// Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12609 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
12610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8551 12611 | pub fn build(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
8552 12612 | self.build_enforcing_required_and_enum_traits()
|
8553 12613 | }
|
12614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8554 12615 | fn build_enforcing_required_and_enum_traits(
|
8555 12616 | self,
|
8556 12617 | ) -> crate::input::MalformedAcceptWithPayloadInput {
|
8557 - | crate::input::MalformedAcceptWithPayloadInput {}
|
12618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12619 + | crate::input::MalformedAcceptWithPayloadInput {
|
12620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
12621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8558 12622 | }
|
12623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8559 12624 | }
|
12625 + |
|
12626 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8560 12627 | }
|
8561 - | /// See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12628 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
8562 12629 | pub(crate) mod malformed_accept_with_body_input_internal {
|
8563 12630 |
|
12631 + | /* ServerBuilderGenerator.kt:461 */
|
8564 12632 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithBodyInput {
|
8565 12633 | fn from(builder: Builder) -> Self {
|
8566 12634 | builder.build()
|
8567 12635 | }
|
8568 12636 | }
|
8569 - | /// A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12637 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12638 + | /* RustType.kt:516 */
|
8570 12639 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8571 - | pub(crate) struct Builder {}
|
12640 + | /* ServerBuilderGenerator.kt:211 */
|
12641 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
12642 + | /* ServerBuilderGenerator.kt:215 */
|
8572 12643 | impl Builder {
|
8573 - | /// Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12644 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12645 + | /* ServerBuilderGenerator.kt:271 */
|
8574 12646 | pub fn build(self) -> crate::input::MalformedAcceptWithBodyInput {
|
8575 12647 | self.build_enforcing_all_constraints()
|
8576 12648 | }
|
12649 + | /* ServerBuilderGenerator.kt:283 */
|
8577 12650 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithBodyInput {
|
8578 - | crate::input::MalformedAcceptWithBodyInput {}
|
12651 + | /* ServerBuilderGenerator.kt:542 */
|
12652 + | crate::input::MalformedAcceptWithBodyInput {
|
12653 + | /* ServerBuilderGenerator.kt:542 */}
|
12654 + | /* ServerBuilderGenerator.kt:283 */
|
8579 12655 | }
|
12656 + | /* ServerBuilderGenerator.kt:215 */
|
8580 12657 | }
|
12658 + |
|
12659 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8581 12660 | }
|
8582 - | /// See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12661 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
8583 12662 | pub mod malformed_accept_with_body_input {
|
8584 12663 |
|
12664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8585 12665 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithBodyInput {
|
8586 12666 | fn from(builder: Builder) -> Self {
|
8587 12667 | builder.build()
|
8588 12668 | }
|
8589 12669 | }
|
8590 - | /// A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12670 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12671 + | /* RustType.kt:516 */
|
8591 12672 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8592 - | pub struct Builder {}
|
12673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12674 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
12675 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8593 12676 | impl Builder {
|
8594 - | /// Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12677 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
12678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8595 12679 | pub fn build(self) -> crate::input::MalformedAcceptWithBodyInput {
|
8596 12680 | self.build_enforcing_required_and_enum_traits()
|
8597 12681 | }
|
12682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8598 12683 | fn build_enforcing_required_and_enum_traits(
|
8599 12684 | self,
|
8600 12685 | ) -> crate::input::MalformedAcceptWithBodyInput {
|
8601 - | crate::input::MalformedAcceptWithBodyInput {}
|
12686 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12687 + | crate::input::MalformedAcceptWithBodyInput {
|
12688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
12689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8602 12690 | }
|
12691 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8603 12692 | }
|
12693 + |
|
12694 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8604 12695 | }
|
8605 - | /// See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12696 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
8606 12697 | pub(crate) mod malformed_content_type_with_generic_string_input_internal {
|
8607 12698 |
|
12699 + | /* ServerBuilderGenerator.kt:461 */
|
8608 12700 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithGenericStringInput {
|
8609 12701 | fn from(builder: Builder) -> Self {
|
8610 12702 | builder.build()
|
8611 12703 | }
|
8612 12704 | }
|
8613 - | /// A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12705 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12706 + | /* RustType.kt:516 */
|
8614 12707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12708 + | /* ServerBuilderGenerator.kt:211 */
|
8615 12709 | pub(crate) struct Builder {
|
12710 + | /* ServerBuilderGenerator.kt:308 */
|
8616 12711 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
12712 + | /* ServerBuilderGenerator.kt:211 */
|
8617 12713 | }
|
12714 + | /* ServerBuilderGenerator.kt:215 */
|
8618 12715 | impl Builder {
|
12716 + | /* ServerBuilderGenerator.kt:426 */
|
8619 12717 | #[allow(missing_docs)] // documentation missing in model
|
12718 + | /* ServerBuilderGenerator.kt:428 */
|
8620 12719 | pub(crate) fn set_payload(
|
8621 12720 | mut self,
|
8622 12721 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8623 12722 | ) -> Self {
|
12723 + | /* ServerBuilderGenerator.kt:429 */
|
8624 12724 | self.payload = input.map(|v| v.into());
|
8625 12725 | self
|
12726 + | /* ServerBuilderGenerator.kt:428 */
|
8626 12727 | }
|
8627 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12728 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12729 + | /* ServerBuilderGenerator.kt:271 */
|
8628 12730 | pub fn build(self) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
8629 12731 | self.build_enforcing_all_constraints()
|
8630 12732 | }
|
12733 + | /* ServerBuilderGenerator.kt:283 */
|
8631 12734 | fn build_enforcing_all_constraints(
|
8632 12735 | self,
|
8633 12736 | ) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
12737 + | /* ServerBuilderGenerator.kt:542 */
|
8634 12738 | crate::input::MalformedContentTypeWithGenericStringInput {
|
12739 + | /* ServerBuilderGenerator.kt:546 */
|
8635 12740 | payload: self.payload,
|
12741 + | /* ServerBuilderGenerator.kt:542 */
|
8636 12742 | }
|
12743 + | /* ServerBuilderGenerator.kt:283 */
|
8637 12744 | }
|
12745 + | /* ServerBuilderGenerator.kt:215 */
|
8638 12746 | }
|
12747 + |
|
12748 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8639 12749 | }
|
8640 - | /// See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12750 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
8641 12751 | pub mod malformed_content_type_with_generic_string_input {
|
8642 12752 |
|
12753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8643 12754 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithGenericStringInput {
|
8644 12755 | fn from(builder: Builder) -> Self {
|
8645 12756 | builder.build()
|
8646 12757 | }
|
8647 12758 | }
|
8648 - | /// A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12759 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12760 + | /* RustType.kt:516 */
|
8649 12761 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8650 12763 | pub struct Builder {
|
12764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8651 12765 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
12766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8652 12767 | }
|
12768 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8653 12769 | impl Builder {
|
12770 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8654 12771 | #[allow(missing_docs)] // documentation missing in model
|
12772 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8655 12773 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8656 - | self.payload = input;
|
12774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12775 + | self.payload =
|
12776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8657 12778 | self
|
12779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8658 12780 | }
|
8659 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12781 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
12782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8660 12783 | pub fn build(self) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
8661 12784 | self.build_enforcing_required_and_enum_traits()
|
8662 12785 | }
|
12786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8663 12787 | fn build_enforcing_required_and_enum_traits(
|
8664 12788 | self,
|
8665 12789 | ) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
12790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8666 12791 | crate::input::MalformedContentTypeWithGenericStringInput {
|
12792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8667 12793 | payload: self.payload,
|
12794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8668 12795 | }
|
12796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8669 12797 | }
|
12798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8670 12799 | }
|
12800 + |
|
12801 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8671 12802 | }
|
8672 - | /// See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12803 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
8673 12804 | pub(crate) mod malformed_content_type_with_payload_input_internal {
|
8674 12805 |
|
12806 + | /* ServerBuilderGenerator.kt:461 */
|
8675 12807 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithPayloadInput {
|
8676 12808 | fn from(builder: Builder) -> Self {
|
8677 12809 | builder.build()
|
8678 12810 | }
|
8679 12811 | }
|
8680 - | /// A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12812 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12813 + | /* RustType.kt:516 */
|
8681 12814 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12815 + | /* ServerBuilderGenerator.kt:211 */
|
8682 12816 | pub(crate) struct Builder {
|
12817 + | /* ServerBuilderGenerator.kt:308 */
|
8683 12818 | pub(crate) payload: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
12819 + | /* ServerBuilderGenerator.kt:211 */
|
8684 12820 | }
|
12821 + | /* ServerBuilderGenerator.kt:215 */
|
8685 12822 | impl Builder {
|
12823 + | /* ServerBuilderGenerator.kt:426 */
|
8686 12824 | #[allow(missing_docs)] // documentation missing in model
|
12825 + | /* ServerBuilderGenerator.kt:428 */
|
8687 12826 | pub(crate) fn set_payload(
|
8688 12827 | mut self,
|
8689 12828 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
8690 12829 | ) -> Self {
|
12830 + | /* ServerBuilderGenerator.kt:429 */
|
8691 12831 | self.payload = input.map(|v| v.into());
|
8692 12832 | self
|
12833 + | /* ServerBuilderGenerator.kt:428 */
|
8693 12834 | }
|
8694 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12835 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12836 + | /* ServerBuilderGenerator.kt:271 */
|
8695 12837 | pub fn build(self) -> crate::input::MalformedContentTypeWithPayloadInput {
|
8696 12838 | self.build_enforcing_all_constraints()
|
8697 12839 | }
|
12840 + | /* ServerBuilderGenerator.kt:283 */
|
8698 12841 | fn build_enforcing_all_constraints(
|
8699 12842 | self,
|
8700 12843 | ) -> crate::input::MalformedContentTypeWithPayloadInput {
|
12844 + | /* ServerBuilderGenerator.kt:542 */
|
8701 12845 | crate::input::MalformedContentTypeWithPayloadInput {
|
12846 + | /* ServerBuilderGenerator.kt:546 */
|
8702 12847 | payload: self.payload,
|
12848 + | /* ServerBuilderGenerator.kt:542 */
|
8703 12849 | }
|
12850 + | /* ServerBuilderGenerator.kt:283 */
|
8704 12851 | }
|
12852 + | /* ServerBuilderGenerator.kt:215 */
|
8705 12853 | }
|
12854 + |
|
12855 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8706 12856 | }
|
8707 - | /// See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12857 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
8708 12858 | pub mod malformed_content_type_with_payload_input {
|
8709 12859 |
|
12860 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8710 12861 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithPayloadInput {
|
8711 12862 | fn from(builder: Builder) -> Self {
|
8712 12863 | builder.build()
|
8713 12864 | }
|
8714 12865 | }
|
8715 - | /// A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12866 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12867 + | /* RustType.kt:516 */
|
8716 12868 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8717 12870 | pub struct Builder {
|
12871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8718 12872 | pub(crate) payload: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
12873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8719 12874 | }
|
12875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8720 12876 | impl Builder {
|
12877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8721 12878 | #[allow(missing_docs)] // documentation missing in model
|
12879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8722 12880 | pub fn payload(
|
8723 12881 | mut self,
|
8724 12882 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
8725 12883 | ) -> Self {
|
8726 - | self.payload = input;
|
12884 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12885 + | self.payload =
|
12886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8727 12888 | self
|
12889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8728 12890 | }
|
8729 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12891 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
12892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8730 12893 | pub fn build(self) -> crate::input::MalformedContentTypeWithPayloadInput {
|
8731 12894 | self.build_enforcing_required_and_enum_traits()
|
8732 12895 | }
|
12896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8733 12897 | fn build_enforcing_required_and_enum_traits(
|
8734 12898 | self,
|
8735 12899 | ) -> crate::input::MalformedContentTypeWithPayloadInput {
|
12900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8736 12901 | crate::input::MalformedContentTypeWithPayloadInput {
|
12902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
8737 12903 | payload: self.payload,
|
12904 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8738 12905 | }
|
12906 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8739 12907 | }
|
12908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8740 12909 | }
|
12910 + |
|
12911 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8741 12912 | }
|
8742 - | /// See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12913 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
8743 12914 | pub(crate) mod malformed_content_type_with_body_input_internal {
|
8744 12915 |
|
12916 + | /* ServerBuilderGenerator.kt:461 */
|
8745 12917 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithBodyInput {
|
8746 12918 | fn from(builder: Builder) -> Self {
|
8747 12919 | builder.build()
|
8748 12920 | }
|
8749 12921 | }
|
8750 - | /// A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12922 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12923 + | /* RustType.kt:516 */
|
8751 12924 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12925 + | /* ServerBuilderGenerator.kt:211 */
|
8752 12926 | pub(crate) struct Builder {
|
12927 + | /* ServerBuilderGenerator.kt:308 */
|
8753 12928 | pub(crate) hi: ::std::option::Option<::std::string::String>,
|
12929 + | /* ServerBuilderGenerator.kt:211 */
|
8754 12930 | }
|
12931 + | /* ServerBuilderGenerator.kt:215 */
|
8755 12932 | impl Builder {
|
12933 + | /* ServerBuilderGenerator.kt:426 */
|
8756 12934 | #[allow(missing_docs)] // documentation missing in model
|
12935 + | /* ServerBuilderGenerator.kt:428 */
|
8757 12936 | pub(crate) fn set_hi(
|
8758 12937 | mut self,
|
8759 12938 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8760 12939 | ) -> Self {
|
12940 + | /* ServerBuilderGenerator.kt:429 */
|
8761 12941 | self.hi = input.map(|v| v.into());
|
8762 12942 | self
|
12943 + | /* ServerBuilderGenerator.kt:428 */
|
8763 12944 | }
|
8764 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12945 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12946 + | /* ServerBuilderGenerator.kt:271 */
|
8765 12947 | pub fn build(self) -> crate::input::MalformedContentTypeWithBodyInput {
|
8766 12948 | self.build_enforcing_all_constraints()
|
8767 12949 | }
|
12950 + | /* ServerBuilderGenerator.kt:283 */
|
8768 12951 | fn build_enforcing_all_constraints(
|
8769 12952 | self,
|
8770 12953 | ) -> crate::input::MalformedContentTypeWithBodyInput {
|
8771 - | crate::input::MalformedContentTypeWithBodyInput { hi: self.hi }
|
12954 + | /* ServerBuilderGenerator.kt:542 */
|
12955 + | crate::input::MalformedContentTypeWithBodyInput {
|
12956 + | /* ServerBuilderGenerator.kt:546 */
|
12957 + | hi: self.hi,
|
12958 + | /* ServerBuilderGenerator.kt:542 */
|
8772 12959 | }
|
12960 + | /* ServerBuilderGenerator.kt:283 */
|
8773 12961 | }
|
12962 + | /* ServerBuilderGenerator.kt:215 */
|
12963 + | }
|
12964 + |
|
12965 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8774 12966 | }
|
8775 - | /// See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12967 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
8776 12968 | pub mod malformed_content_type_with_body_input {
|
8777 12969 |
|
12970 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8778 12971 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithBodyInput {
|
8779 12972 | fn from(builder: Builder) -> Self {
|
8780 12973 | builder.build()
|
8781 12974 | }
|
8782 12975 | }
|
8783 - | /// A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12976 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12977 + | /* RustType.kt:516 */
|
8784 12978 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12979 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8785 12980 | pub struct Builder {
|
12981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8786 12982 | pub(crate) hi: ::std::option::Option<::std::string::String>,
|
12983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8787 12984 | }
|
12985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8788 12986 | impl Builder {
|
12987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8789 12988 | #[allow(missing_docs)] // documentation missing in model
|
12989 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8790 12990 | pub fn hi(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8791 - | self.hi = input;
|
12991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
12992 + | self.hi =
|
12993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
12994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8792 12995 | self
|
12996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8793 12997 | }
|
8794 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12998 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
12999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8795 13000 | pub fn build(self) -> crate::input::MalformedContentTypeWithBodyInput {
|
8796 13001 | self.build_enforcing_required_and_enum_traits()
|
8797 13002 | }
|
13003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8798 13004 | fn build_enforcing_required_and_enum_traits(
|
8799 13005 | self,
|
8800 13006 | ) -> crate::input::MalformedContentTypeWithBodyInput {
|
8801 - | crate::input::MalformedContentTypeWithBodyInput { hi: self.hi }
|
13007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13008 + | crate::input::MalformedContentTypeWithBodyInput {
|
13009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13010 + | hi: self.hi,
|
13011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
8802 13012 | }
|
13013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8803 13014 | }
|
13015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13016 + | }
|
13017 + |
|
13018 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8804 13019 | }
|
8805 - | /// See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13020 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
8806 13021 | pub(crate) mod malformed_content_type_without_body_input_internal {
|
8807 13022 |
|
13023 + | /* ServerBuilderGenerator.kt:461 */
|
8808 13024 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithoutBodyInput {
|
8809 13025 | fn from(builder: Builder) -> Self {
|
8810 13026 | builder.build()
|
8811 13027 | }
|
8812 13028 | }
|
8813 - | /// A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13029 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13030 + | /* RustType.kt:516 */
|
8814 13031 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8815 - | pub(crate) struct Builder {}
|
13032 + | /* ServerBuilderGenerator.kt:211 */
|
13033 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
13034 + | /* ServerBuilderGenerator.kt:215 */
|
8816 13035 | impl Builder {
|
8817 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13036 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13037 + | /* ServerBuilderGenerator.kt:271 */
|
8818 13038 | pub fn build(self) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
8819 13039 | self.build_enforcing_all_constraints()
|
8820 13040 | }
|
13041 + | /* ServerBuilderGenerator.kt:283 */
|
8821 13042 | fn build_enforcing_all_constraints(
|
8822 13043 | self,
|
8823 13044 | ) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
8824 - | crate::input::MalformedContentTypeWithoutBodyInput {}
|
13045 + | /* ServerBuilderGenerator.kt:542 */
|
13046 + | crate::input::MalformedContentTypeWithoutBodyInput {
|
13047 + | /* ServerBuilderGenerator.kt:542 */}
|
13048 + | /* ServerBuilderGenerator.kt:283 */
|
8825 13049 | }
|
13050 + | /* ServerBuilderGenerator.kt:215 */
|
8826 13051 | }
|
13052 + |
|
13053 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8827 13054 | }
|
8828 - | /// See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13055 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
8829 13056 | pub mod malformed_content_type_without_body_input {
|
8830 13057 |
|
13058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
8831 13059 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithoutBodyInput {
|
8832 13060 | fn from(builder: Builder) -> Self {
|
8833 13061 | builder.build()
|
8834 13062 | }
|
8835 13063 | }
|
8836 - | /// A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13064 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13065 + | /* RustType.kt:516 */
|
8837 13066 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8838 - | pub struct Builder {}
|
13067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13068 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
13069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8839 13070 | impl Builder {
|
8840 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13071 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
13072 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8841 13073 | pub fn build(self) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
8842 13074 | self.build_enforcing_required_and_enum_traits()
|
8843 13075 | }
|
13076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8844 13077 | fn build_enforcing_required_and_enum_traits(
|
8845 13078 | self,
|
8846 13079 | ) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
8847 - | crate::input::MalformedContentTypeWithoutBodyInput {}
|
13080 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13081 + | crate::input::MalformedContentTypeWithoutBodyInput {
|
13082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
13083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
8848 13084 | }
|
13085 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8849 13086 | }
|
13087 + |
|
13088 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8850 13089 | }
|
8851 - | /// See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13090 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
8852 13091 | pub(crate) mod malformed_timestamp_body_http_date_input_internal {
|
8853 13092 |
|
13093 + | /* RustType.kt:516 */
|
8854 13094 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8855 - | /// Holds one variant for each of the ways the builder can fail.
|
13095 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13096 + | /* RustType.kt:516 */
|
8856 13097 | #[non_exhaustive]
|
13098 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8857 13099 | #[allow(clippy::enum_variant_names)]
|
8858 13100 | pub(crate) enum ConstraintViolation {
|
8859 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
13101 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
13102 + | /* ServerBuilderConstraintViolations.kt:143 */
|
8860 13103 | MissingTimestamp,
|
13104 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8861 13105 | }
|
13106 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8862 13107 | impl ::std::fmt::Display for ConstraintViolation {
|
13108 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8863 13109 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13110 + | /* ServerBuilderConstraintViolations.kt:119 */
|
8864 13111 | match self {
|
8865 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
8866 - | }
|
13112 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
13113 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13114 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8867 13115 | }
|
13116 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8868 13117 | }
|
13118 + | /* ServerBuilderConstraintViolations.kt:84 */
|
8869 13119 | impl ::std::error::Error for ConstraintViolation {}
|
13120 + | /* ServerBuilderConstraintViolations.kt:171 */
|
8870 13121 | impl ConstraintViolation {
|
8871 13122 | pub(crate) fn as_validation_exception_field(
|
8872 13123 | self,
|
8873 13124 | path: ::std::string::String,
|
8874 13125 | ) -> crate::model::ValidationExceptionField {
|
8875 13126 | match self {
|
8876 13127 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
8877 13128 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
8878 13129 | path: path + "/timestamp",
|
8879 13130 | },
|
8880 13131 | }
|
8881 13132 | }
|
8882 13133 | }
|
13134 + | /* ServerBuilderGenerator.kt:234 */
|
8883 13135 | impl ::std::convert::From<ConstraintViolation>
|
8884 13136 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
8885 13137 | {
|
8886 13138 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
8887 13139 | let first_validation_exception_field =
|
8888 13140 | constraint_violation.as_validation_exception_field("".to_owned());
|
8889 13141 | let validation_exception = crate::error::ValidationException {
|
8890 13142 | message: format!(
|
8891 13143 | "1 validation error detected. {}",
|
8892 13144 | &first_validation_exception_field.message
|
8893 13145 | ),
|
8894 13146 | field_list: Some(vec![first_validation_exception_field]),
|
8895 13147 | };
|
8896 13148 | Self::ConstraintViolation(
|
8897 13149 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
8898 13150 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
8899 13151 | )
|
8900 13152 | }
|
8901 13153 | }
|
13154 + | /* ServerBuilderGenerator.kt:244 */
|
8902 13155 | impl ::std::convert::From<Builder>
|
8903 13156 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyHttpDateInput>
|
8904 13157 | {
|
8905 13158 | fn from(builder: Builder) -> Self {
|
8906 13159 | Self::Unconstrained(builder)
|
8907 13160 | }
|
8908 13161 | }
|
13162 + | /* ServerBuilderGenerator.kt:446 */
|
8909 13163 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyHttpDateInput {
|
8910 13164 | type Error = ConstraintViolation;
|
8911 13165 |
|
8912 13166 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8913 13167 | builder.build()
|
8914 13168 | }
|
8915 13169 | }
|
8916 - | /// A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13170 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13171 + | /* RustType.kt:516 */
|
8917 13172 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13173 + | /* ServerBuilderGenerator.kt:211 */
|
8918 13174 | pub(crate) struct Builder {
|
13175 + | /* ServerBuilderGenerator.kt:308 */
|
8919 13176 | pub(crate) timestamp:
|
8920 13177 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13178 + | /* ServerBuilderGenerator.kt:211 */
|
8921 13179 | }
|
13180 + | /* ServerBuilderGenerator.kt:215 */
|
8922 13181 | impl Builder {
|
13182 + | /* ServerBuilderGenerator.kt:426 */
|
8923 13183 | #[allow(missing_docs)] // documentation missing in model
|
13184 + | /* ServerBuilderGenerator.kt:428 */
|
8924 13185 | pub(crate) fn set_timestamp(
|
8925 13186 | mut self,
|
8926 13187 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
8927 13188 | ) -> Self {
|
13189 + | /* ServerBuilderGenerator.kt:429 */
|
8928 13190 | self.timestamp = Some(input.into());
|
8929 13191 | self
|
13192 + | /* ServerBuilderGenerator.kt:428 */
|
8930 13193 | }
|
8931 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
8932 - | ///
|
13194 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13195 + | /// /* ServerBuilderGenerator.kt:260 */
|
8933 13196 | /// The builder fails to construct a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) if a [`ConstraintViolation`] occurs.
|
8934 13197 | ///
|
13198 + | /* ServerBuilderGenerator.kt:271 */
|
8935 13199 | pub fn build(
|
8936 13200 | self,
|
8937 13201 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
8938 13202 | {
|
8939 13203 | self.build_enforcing_all_constraints()
|
8940 13204 | }
|
13205 + | /* ServerBuilderGenerator.kt:283 */
|
8941 13206 | fn build_enforcing_all_constraints(
|
8942 13207 | self,
|
8943 13208 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
8944 13209 | {
|
8945 - | Ok(crate::input::MalformedTimestampBodyHttpDateInput {
|
13210 + | /* ServerBuilderGenerator.kt:287 */
|
13211 + | Ok(
|
13212 + | /* ServerBuilderGenerator.kt:542 */
|
13213 + | crate::input::MalformedTimestampBodyHttpDateInput {
|
13214 + | /* ServerBuilderGenerator.kt:546 */
|
8946 13215 | timestamp: self
|
8947 13216 | .timestamp
|
13217 + | /* ServerBuilderGenerator.kt:569 */
|
8948 13218 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
8949 - | })
|
13219 + | /* ServerBuilderGenerator.kt:542 */
|
13220 + | }, /* ServerBuilderGenerator.kt:287 */
|
13221 + | )
|
13222 + | /* ServerBuilderGenerator.kt:283 */
|
8950 13223 | }
|
13224 + | /* ServerBuilderGenerator.kt:215 */
|
8951 13225 | }
|
13226 + |
|
13227 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8952 13228 | }
|
8953 - | /// See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13229 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
8954 13230 | pub mod malformed_timestamp_body_http_date_input {
|
8955 13231 |
|
13232 + | /* RustType.kt:516 */
|
8956 13233 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8957 - | /// Holds one variant for each of the ways the builder can fail.
|
8958 - |
|
13234 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13235 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8959 13236 | #[allow(clippy::enum_variant_names)]
|
8960 13237 | pub enum ConstraintViolation {
|
8961 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
13238 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
13239 + | /* ServerBuilderConstraintViolations.kt:143 */
|
8962 13240 | MissingTimestamp,
|
13241 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8963 13242 | }
|
13243 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8964 13244 | impl ::std::fmt::Display for ConstraintViolation {
|
13245 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8965 13246 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13247 + | /* ServerBuilderConstraintViolations.kt:119 */
|
8966 13248 | match self {
|
8967 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
8968 - | }
|
13249 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
13250 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13251 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8969 13252 | }
|
13253 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8970 13254 | }
|
13255 + | /* ServerBuilderConstraintViolations.kt:84 */
|
8971 13256 | impl ::std::error::Error for ConstraintViolation {}
|
13257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
8972 13258 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyHttpDateInput {
|
8973 13259 | type Error = ConstraintViolation;
|
8974 13260 |
|
8975 13261 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8976 13262 | builder.build()
|
8977 13263 | }
|
8978 13264 | }
|
8979 - | /// A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13265 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13266 + | /* RustType.kt:516 */
|
8980 13267 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13268 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8981 13269 | pub struct Builder {
|
13270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
8982 13271 | pub(crate) timestamp:
|
8983 13272 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
8984 13274 | }
|
13275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
8985 13276 | impl Builder {
|
13277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
8986 13278 | #[allow(missing_docs)] // documentation missing in model
|
13279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8987 13280 | pub fn timestamp(
|
8988 13281 | mut self,
|
8989 13282 | input: ::aws_smithy_http_server_python::types::DateTime,
|
8990 13283 | ) -> Self {
|
8991 - | self.timestamp = Some(input);
|
13284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
13285 + | self.timestamp =
|
13286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
13287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
13288 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
13289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
8992 13290 | self
|
13291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
8993 13292 | }
|
8994 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
8995 - | ///
|
13293 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
13294 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
8996 13295 | /// The builder fails to construct a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) if you do not provide a value for all non-`Option`al members.
|
8997 13296 | ///
|
13297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
8998 13298 | pub fn build(
|
8999 13299 | self,
|
9000 13300 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
9001 13301 | {
|
9002 13302 | self.build_enforcing_required_and_enum_traits()
|
9003 13303 | }
|
13304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9004 13305 | fn build_enforcing_required_and_enum_traits(
|
9005 13306 | self,
|
9006 13307 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
9007 13308 | {
|
9008 - | Ok(crate::input::MalformedTimestampBodyHttpDateInput {
|
13309 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13310 + | Ok(
|
13311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13312 + | crate::input::MalformedTimestampBodyHttpDateInput {
|
13313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9009 13314 | timestamp: self
|
9010 13315 | .timestamp
|
13316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9011 13317 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9012 - | })
|
13318 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13319 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13320 + | )
|
13321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9013 13322 | }
|
13323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9014 13324 | }
|
13325 + |
|
13326 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9015 13327 | }
|
9016 - | /// See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13328 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
9017 13329 | pub(crate) mod malformed_timestamp_body_date_time_input_internal {
|
9018 13330 |
|
13331 + | /* RustType.kt:516 */
|
9019 13332 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9020 - | /// Holds one variant for each of the ways the builder can fail.
|
13333 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13334 + | /* RustType.kt:516 */
|
9021 13335 | #[non_exhaustive]
|
13336 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9022 13337 | #[allow(clippy::enum_variant_names)]
|
9023 13338 | pub(crate) enum ConstraintViolation {
|
9024 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
13339 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
13340 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9025 13341 | MissingTimestamp,
|
13342 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9026 13343 | }
|
13344 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9027 13345 | impl ::std::fmt::Display for ConstraintViolation {
|
13346 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9028 13347 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13348 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9029 13349 | match self {
|
9030 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
9031 - | }
|
13350 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
13351 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13352 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9032 13353 | }
|
13354 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9033 13355 | }
|
13356 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9034 13357 | impl ::std::error::Error for ConstraintViolation {}
|
13358 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9035 13359 | impl ConstraintViolation {
|
9036 13360 | pub(crate) fn as_validation_exception_field(
|
9037 13361 | self,
|
9038 13362 | path: ::std::string::String,
|
9039 13363 | ) -> crate::model::ValidationExceptionField {
|
9040 13364 | match self {
|
9041 13365 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9042 13366 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9043 13367 | path: path + "/timestamp",
|
9044 13368 | },
|
9045 13369 | }
|
9046 13370 | }
|
9047 13371 | }
|
13372 + | /* ServerBuilderGenerator.kt:234 */
|
9048 13373 | impl ::std::convert::From<ConstraintViolation>
|
9049 13374 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9050 13375 | {
|
9051 13376 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9052 13377 | let first_validation_exception_field =
|
9053 13378 | constraint_violation.as_validation_exception_field("".to_owned());
|
9054 13379 | let validation_exception = crate::error::ValidationException {
|
9055 13380 | message: format!(
|
9056 13381 | "1 validation error detected. {}",
|
9057 13382 | &first_validation_exception_field.message
|
9058 13383 | ),
|
9059 13384 | field_list: Some(vec![first_validation_exception_field]),
|
9060 13385 | };
|
9061 13386 | Self::ConstraintViolation(
|
9062 13387 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9063 13388 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9064 13389 | )
|
9065 13390 | }
|
9066 13391 | }
|
13392 + | /* ServerBuilderGenerator.kt:244 */
|
9067 13393 | impl ::std::convert::From<Builder>
|
9068 13394 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDateTimeInput>
|
9069 13395 | {
|
9070 13396 | fn from(builder: Builder) -> Self {
|
9071 13397 | Self::Unconstrained(builder)
|
9072 13398 | }
|
9073 13399 | }
|
13400 + | /* ServerBuilderGenerator.kt:446 */
|
9074 13401 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDateTimeInput {
|
9075 13402 | type Error = ConstraintViolation;
|
9076 13403 |
|
9077 13404 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9078 13405 | builder.build()
|
9079 13406 | }
|
9080 13407 | }
|
9081 - | /// A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13408 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13409 + | /* RustType.kt:516 */
|
9082 13410 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13411 + | /* ServerBuilderGenerator.kt:211 */
|
9083 13412 | pub(crate) struct Builder {
|
13413 + | /* ServerBuilderGenerator.kt:308 */
|
9084 13414 | pub(crate) timestamp:
|
9085 13415 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13416 + | /* ServerBuilderGenerator.kt:211 */
|
9086 13417 | }
|
13418 + | /* ServerBuilderGenerator.kt:215 */
|
9087 13419 | impl Builder {
|
13420 + | /* ServerBuilderGenerator.kt:426 */
|
9088 13421 | #[allow(missing_docs)] // documentation missing in model
|
13422 + | /* ServerBuilderGenerator.kt:428 */
|
9089 13423 | pub(crate) fn set_timestamp(
|
9090 13424 | mut self,
|
9091 13425 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9092 13426 | ) -> Self {
|
13427 + | /* ServerBuilderGenerator.kt:429 */
|
9093 13428 | self.timestamp = Some(input.into());
|
9094 13429 | self
|
13430 + | /* ServerBuilderGenerator.kt:428 */
|
9095 13431 | }
|
9096 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
9097 - | ///
|
13432 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13433 + | /// /* ServerBuilderGenerator.kt:260 */
|
9098 13434 | /// The builder fails to construct a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) if a [`ConstraintViolation`] occurs.
|
9099 13435 | ///
|
13436 + | /* ServerBuilderGenerator.kt:271 */
|
9100 13437 | pub fn build(
|
9101 13438 | self,
|
9102 13439 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
9103 13440 | {
|
9104 13441 | self.build_enforcing_all_constraints()
|
9105 13442 | }
|
13443 + | /* ServerBuilderGenerator.kt:283 */
|
9106 13444 | fn build_enforcing_all_constraints(
|
9107 13445 | self,
|
9108 13446 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
9109 13447 | {
|
9110 - | Ok(crate::input::MalformedTimestampBodyDateTimeInput {
|
13448 + | /* ServerBuilderGenerator.kt:287 */
|
13449 + | Ok(
|
13450 + | /* ServerBuilderGenerator.kt:542 */
|
13451 + | crate::input::MalformedTimestampBodyDateTimeInput {
|
13452 + | /* ServerBuilderGenerator.kt:546 */
|
9111 13453 | timestamp: self
|
9112 13454 | .timestamp
|
13455 + | /* ServerBuilderGenerator.kt:569 */
|
9113 13456 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9114 - | })
|
13457 + | /* ServerBuilderGenerator.kt:542 */
|
13458 + | }, /* ServerBuilderGenerator.kt:287 */
|
13459 + | )
|
13460 + | /* ServerBuilderGenerator.kt:283 */
|
9115 13461 | }
|
13462 + | /* ServerBuilderGenerator.kt:215 */
|
9116 13463 | }
|
13464 + |
|
13465 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9117 13466 | }
|
9118 - | /// See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13467 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
9119 13468 | pub mod malformed_timestamp_body_date_time_input {
|
9120 13469 |
|
13470 + | /* RustType.kt:516 */
|
9121 13471 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9122 - | /// Holds one variant for each of the ways the builder can fail.
|
9123 - |
|
13472 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13473 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9124 13474 | #[allow(clippy::enum_variant_names)]
|
9125 13475 | pub enum ConstraintViolation {
|
9126 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
13476 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
13477 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9127 13478 | MissingTimestamp,
|
13479 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9128 13480 | }
|
13481 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9129 13482 | impl ::std::fmt::Display for ConstraintViolation {
|
13483 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9130 13484 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13485 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9131 13486 | match self {
|
9132 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
9133 - | }
|
13487 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
13488 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13489 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9134 13490 | }
|
13491 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9135 13492 | }
|
13493 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9136 13494 | impl ::std::error::Error for ConstraintViolation {}
|
13495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9137 13496 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDateTimeInput {
|
9138 13497 | type Error = ConstraintViolation;
|
9139 13498 |
|
9140 13499 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9141 13500 | builder.build()
|
9142 13501 | }
|
9143 13502 | }
|
9144 - | /// A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13503 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13504 + | /* RustType.kt:516 */
|
9145 13505 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9146 13507 | pub struct Builder {
|
13508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9147 13509 | pub(crate) timestamp:
|
9148 13510 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9149 13512 | }
|
13513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9150 13514 | impl Builder {
|
13515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9151 13516 | #[allow(missing_docs)] // documentation missing in model
|
13517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9152 13518 | pub fn timestamp(
|
9153 13519 | mut self,
|
9154 13520 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9155 13521 | ) -> Self {
|
9156 - | self.timestamp = Some(input);
|
13522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
13523 + | self.timestamp =
|
13524 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
13525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
13526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
13527 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9157 13528 | self
|
13529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9158 13530 | }
|
9159 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
9160 - | ///
|
13531 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
13532 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9161 13533 | /// The builder fails to construct a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) if you do not provide a value for all non-`Option`al members.
|
9162 13534 | ///
|
13535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9163 13536 | pub fn build(
|
9164 13537 | self,
|
9165 13538 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
9166 13539 | {
|
9167 13540 | self.build_enforcing_required_and_enum_traits()
|
9168 13541 | }
|
13542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9169 13543 | fn build_enforcing_required_and_enum_traits(
|
9170 13544 | self,
|
9171 13545 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
9172 13546 | {
|
9173 - | Ok(crate::input::MalformedTimestampBodyDateTimeInput {
|
13547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13548 + | Ok(
|
13549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13550 + | crate::input::MalformedTimestampBodyDateTimeInput {
|
13551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9174 13552 | timestamp: self
|
9175 13553 | .timestamp
|
13554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9176 13555 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9177 - | })
|
13556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13557 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13558 + | )
|
13559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9178 13560 | }
|
13561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9179 13562 | }
|
13563 + |
|
13564 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9180 13565 | }
|
9181 - | /// See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13566 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
9182 13567 | pub(crate) mod malformed_timestamp_body_default_input_internal {
|
9183 13568 |
|
13569 + | /* RustType.kt:516 */
|
9184 13570 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9185 - | /// Holds one variant for each of the ways the builder can fail.
|
13571 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13572 + | /* RustType.kt:516 */
|
9186 13573 | #[non_exhaustive]
|
13574 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9187 13575 | #[allow(clippy::enum_variant_names)]
|
9188 13576 | pub(crate) enum ConstraintViolation {
|
9189 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
13577 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
13578 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9190 13579 | MissingTimestamp,
|
13580 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9191 13581 | }
|
13582 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9192 13583 | impl ::std::fmt::Display for ConstraintViolation {
|
13584 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9193 13585 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13586 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9194 13587 | match self {
|
9195 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
9196 - | }
|
13588 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
13589 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13590 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9197 13591 | }
|
13592 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9198 13593 | }
|
13594 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9199 13595 | impl ::std::error::Error for ConstraintViolation {}
|
13596 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9200 13597 | impl ConstraintViolation {
|
9201 13598 | pub(crate) fn as_validation_exception_field(
|
9202 13599 | self,
|
9203 13600 | path: ::std::string::String,
|
9204 13601 | ) -> crate::model::ValidationExceptionField {
|
9205 13602 | match self {
|
9206 13603 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9207 13604 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9208 13605 | path: path + "/timestamp",
|
9209 13606 | },
|
9210 13607 | }
|
9211 13608 | }
|
9212 13609 | }
|
13610 + | /* ServerBuilderGenerator.kt:234 */
|
9213 13611 | impl ::std::convert::From<ConstraintViolation>
|
9214 13612 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9215 13613 | {
|
9216 13614 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9217 13615 | let first_validation_exception_field =
|
9218 13616 | constraint_violation.as_validation_exception_field("".to_owned());
|
9219 13617 | let validation_exception = crate::error::ValidationException {
|
9220 13618 | message: format!(
|
9221 13619 | "1 validation error detected. {}",
|
9222 13620 | &first_validation_exception_field.message
|
9223 13621 | ),
|
9224 13622 | field_list: Some(vec![first_validation_exception_field]),
|
9225 13623 | };
|
9226 13624 | Self::ConstraintViolation(
|
9227 13625 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9228 13626 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9229 13627 | )
|
9230 13628 | }
|
9231 13629 | }
|
13630 + | /* ServerBuilderGenerator.kt:244 */
|
9232 13631 | impl ::std::convert::From<Builder>
|
9233 13632 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDefaultInput>
|
9234 13633 | {
|
9235 13634 | fn from(builder: Builder) -> Self {
|
9236 13635 | Self::Unconstrained(builder)
|
9237 13636 | }
|
9238 13637 | }
|
13638 + | /* ServerBuilderGenerator.kt:446 */
|
9239 13639 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDefaultInput {
|
9240 13640 | type Error = ConstraintViolation;
|
9241 13641 |
|
9242 13642 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9243 13643 | builder.build()
|
9244 13644 | }
|
9245 13645 | }
|
9246 - | /// A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13646 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13647 + | /* RustType.kt:516 */
|
9247 13648 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13649 + | /* ServerBuilderGenerator.kt:211 */
|
9248 13650 | pub(crate) struct Builder {
|
13651 + | /* ServerBuilderGenerator.kt:308 */
|
9249 13652 | pub(crate) timestamp:
|
9250 13653 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13654 + | /* ServerBuilderGenerator.kt:211 */
|
9251 13655 | }
|
13656 + | /* ServerBuilderGenerator.kt:215 */
|
9252 13657 | impl Builder {
|
13658 + | /* ServerBuilderGenerator.kt:426 */
|
9253 13659 | #[allow(missing_docs)] // documentation missing in model
|
13660 + | /* ServerBuilderGenerator.kt:428 */
|
9254 13661 | pub(crate) fn set_timestamp(
|
9255 13662 | mut self,
|
9256 13663 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9257 13664 | ) -> Self {
|
13665 + | /* ServerBuilderGenerator.kt:429 */
|
9258 13666 | self.timestamp = Some(input.into());
|
9259 13667 | self
|
13668 + | /* ServerBuilderGenerator.kt:428 */
|
9260 13669 | }
|
9261 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
9262 - | ///
|
13670 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13671 + | /// /* ServerBuilderGenerator.kt:260 */
|
9263 13672 | /// The builder fails to construct a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) if a [`ConstraintViolation`] occurs.
|
9264 13673 | ///
|
13674 + | /* ServerBuilderGenerator.kt:271 */
|
9265 13675 | pub fn build(
|
9266 13676 | self,
|
9267 13677 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
9268 13678 | self.build_enforcing_all_constraints()
|
9269 13679 | }
|
13680 + | /* ServerBuilderGenerator.kt:283 */
|
9270 13681 | fn build_enforcing_all_constraints(
|
9271 13682 | self,
|
9272 13683 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
9273 - | Ok(crate::input::MalformedTimestampBodyDefaultInput {
|
13684 + | /* ServerBuilderGenerator.kt:287 */
|
13685 + | Ok(
|
13686 + | /* ServerBuilderGenerator.kt:542 */
|
13687 + | crate::input::MalformedTimestampBodyDefaultInput {
|
13688 + | /* ServerBuilderGenerator.kt:546 */
|
9274 13689 | timestamp: self
|
9275 13690 | .timestamp
|
13691 + | /* ServerBuilderGenerator.kt:569 */
|
9276 13692 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9277 - | })
|
13693 + | /* ServerBuilderGenerator.kt:542 */
|
13694 + | }, /* ServerBuilderGenerator.kt:287 */
|
13695 + | )
|
13696 + | /* ServerBuilderGenerator.kt:283 */
|
9278 13697 | }
|
13698 + | /* ServerBuilderGenerator.kt:215 */
|
9279 13699 | }
|
13700 + |
|
13701 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9280 13702 | }
|
9281 - | /// See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13703 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
9282 13704 | pub mod malformed_timestamp_body_default_input {
|
9283 13705 |
|
13706 + | /* RustType.kt:516 */
|
9284 13707 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9285 - | /// Holds one variant for each of the ways the builder can fail.
|
9286 - |
|
13708 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13709 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9287 13710 | #[allow(clippy::enum_variant_names)]
|
9288 13711 | pub enum ConstraintViolation {
|
9289 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
13712 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
13713 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9290 13714 | MissingTimestamp,
|
13715 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9291 13716 | }
|
13717 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9292 13718 | impl ::std::fmt::Display for ConstraintViolation {
|
13719 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9293 13720 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13721 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9294 13722 | match self {
|
9295 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
9296 - | }
|
13723 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
13724 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13725 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9297 13726 | }
|
13727 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9298 13728 | }
|
13729 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9299 13730 | impl ::std::error::Error for ConstraintViolation {}
|
13731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9300 13732 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDefaultInput {
|
9301 13733 | type Error = ConstraintViolation;
|
9302 13734 |
|
9303 13735 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9304 13736 | builder.build()
|
9305 13737 | }
|
9306 13738 | }
|
9307 - | /// A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13739 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13740 + | /* RustType.kt:516 */
|
9308 13741 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13742 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9309 13743 | pub struct Builder {
|
13744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9310 13745 | pub(crate) timestamp:
|
9311 13746 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9312 13748 | }
|
13749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9313 13750 | impl Builder {
|
13751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9314 13752 | #[allow(missing_docs)] // documentation missing in model
|
13753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9315 13754 | pub fn timestamp(
|
9316 13755 | mut self,
|
9317 13756 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9318 13757 | ) -> Self {
|
9319 - | self.timestamp = Some(input);
|
13758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
13759 + | self.timestamp =
|
13760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
13761 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
13762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
13763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9320 13764 | self
|
13765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9321 13766 | }
|
9322 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
9323 - | ///
|
13767 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
13768 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9324 13769 | /// The builder fails to construct a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) if you do not provide a value for all non-`Option`al members.
|
9325 13770 | ///
|
13771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9326 13772 | pub fn build(
|
9327 13773 | self,
|
9328 13774 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
9329 13775 | self.build_enforcing_required_and_enum_traits()
|
9330 13776 | }
|
13777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9331 13778 | fn build_enforcing_required_and_enum_traits(
|
9332 13779 | self,
|
9333 13780 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
9334 - | Ok(crate::input::MalformedTimestampBodyDefaultInput {
|
13781 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13782 + | Ok(
|
13783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13784 + | crate::input::MalformedTimestampBodyDefaultInput {
|
13785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9335 13786 | timestamp: self
|
9336 13787 | .timestamp
|
13788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9337 13789 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9338 - | })
|
13790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13791 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
13792 + | )
|
13793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9339 13794 | }
|
13795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9340 13796 | }
|
13797 + |
|
13798 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9341 13799 | }
|
9342 - | /// See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13800 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
9343 13801 | pub(crate) mod malformed_timestamp_header_epoch_input_internal {
|
9344 13802 |
|
13803 + | /* RustType.kt:516 */
|
9345 13804 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9346 - | /// Holds one variant for each of the ways the builder can fail.
|
13805 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13806 + | /* RustType.kt:516 */
|
9347 13807 | #[non_exhaustive]
|
13808 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9348 13809 | #[allow(clippy::enum_variant_names)]
|
9349 13810 | pub(crate) enum ConstraintViolation {
|
9350 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
13811 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
13812 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9351 13813 | MissingTimestamp,
|
13814 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9352 13815 | }
|
13816 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9353 13817 | impl ::std::fmt::Display for ConstraintViolation {
|
13818 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9354 13819 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13820 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9355 13821 | match self {
|
9356 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
9357 - | }
|
13822 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
13823 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13824 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9358 13825 | }
|
13826 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9359 13827 | }
|
13828 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9360 13829 | impl ::std::error::Error for ConstraintViolation {}
|
13830 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9361 13831 | impl ConstraintViolation {
|
9362 13832 | pub(crate) fn as_validation_exception_field(
|
9363 13833 | self,
|
9364 13834 | path: ::std::string::String,
|
9365 13835 | ) -> crate::model::ValidationExceptionField {
|
9366 13836 | match self {
|
9367 13837 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9368 13838 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9369 13839 | path: path + "/timestamp",
|
9370 13840 | },
|
9371 13841 | }
|
9372 13842 | }
|
9373 13843 | }
|
13844 + | /* ServerBuilderGenerator.kt:234 */
|
9374 13845 | impl ::std::convert::From<ConstraintViolation>
|
9375 13846 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9376 13847 | {
|
9377 13848 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9378 13849 | let first_validation_exception_field =
|
9379 13850 | constraint_violation.as_validation_exception_field("".to_owned());
|
9380 13851 | let validation_exception = crate::error::ValidationException {
|
9381 13852 | message: format!(
|
9382 13853 | "1 validation error detected. {}",
|
9383 13854 | &first_validation_exception_field.message
|
9384 13855 | ),
|
9385 13856 | field_list: Some(vec![first_validation_exception_field]),
|
9386 13857 | };
|
9387 13858 | Self::ConstraintViolation(
|
9388 13859 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9389 13860 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9390 13861 | )
|
9391 13862 | }
|
9392 13863 | }
|
13864 + | /* ServerBuilderGenerator.kt:244 */
|
9393 13865 | impl ::std::convert::From<Builder>
|
9394 13866 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderEpochInput>
|
9395 13867 | {
|
9396 13868 | fn from(builder: Builder) -> Self {
|
9397 13869 | Self::Unconstrained(builder)
|
9398 13870 | }
|
9399 13871 | }
|
13872 + | /* ServerBuilderGenerator.kt:446 */
|
9400 13873 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderEpochInput {
|
9401 13874 | type Error = ConstraintViolation;
|
9402 13875 |
|
9403 13876 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9404 13877 | builder.build()
|
9405 13878 | }
|
9406 13879 | }
|
9407 - | /// A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13880 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13881 + | /* RustType.kt:516 */
|
9408 13882 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13883 + | /* ServerBuilderGenerator.kt:211 */
|
9409 13884 | pub(crate) struct Builder {
|
13885 + | /* ServerBuilderGenerator.kt:308 */
|
9410 13886 | pub(crate) timestamp:
|
9411 13887 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13888 + | /* ServerBuilderGenerator.kt:211 */
|
9412 13889 | }
|
13890 + | /* ServerBuilderGenerator.kt:215 */
|
9413 13891 | impl Builder {
|
13892 + | /* ServerBuilderGenerator.kt:426 */
|
9414 13893 | #[allow(missing_docs)] // documentation missing in model
|
13894 + | /* ServerBuilderGenerator.kt:428 */
|
9415 13895 | pub(crate) fn set_timestamp(
|
9416 13896 | mut self,
|
9417 13897 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9418 13898 | ) -> Self {
|
13899 + | /* ServerBuilderGenerator.kt:429 */
|
9419 13900 | self.timestamp = Some(input.into());
|
9420 13901 | self
|
13902 + | /* ServerBuilderGenerator.kt:428 */
|
9421 13903 | }
|
9422 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
9423 - | ///
|
13904 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13905 + | /// /* ServerBuilderGenerator.kt:260 */
|
9424 13906 | /// The builder fails to construct a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) if a [`ConstraintViolation`] occurs.
|
9425 13907 | ///
|
13908 + | /* ServerBuilderGenerator.kt:271 */
|
9426 13909 | pub fn build(
|
9427 13910 | self,
|
9428 13911 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
9429 13912 | self.build_enforcing_all_constraints()
|
9430 13913 | }
|
13914 + | /* ServerBuilderGenerator.kt:283 */
|
9431 13915 | fn build_enforcing_all_constraints(
|
9432 13916 | self,
|
9433 13917 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
9434 - | Ok(crate::input::MalformedTimestampHeaderEpochInput {
|
13918 + | /* ServerBuilderGenerator.kt:287 */
|
13919 + | Ok(
|
13920 + | /* ServerBuilderGenerator.kt:542 */
|
13921 + | crate::input::MalformedTimestampHeaderEpochInput {
|
13922 + | /* ServerBuilderGenerator.kt:546 */
|
9435 13923 | timestamp: self
|
9436 13924 | .timestamp
|
13925 + | /* ServerBuilderGenerator.kt:569 */
|
9437 13926 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9438 - | })
|
13927 + | /* ServerBuilderGenerator.kt:542 */
|
13928 + | }, /* ServerBuilderGenerator.kt:287 */
|
13929 + | )
|
13930 + | /* ServerBuilderGenerator.kt:283 */
|
9439 13931 | }
|
13932 + | /* ServerBuilderGenerator.kt:215 */
|
9440 13933 | }
|
13934 + |
|
13935 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9441 13936 | }
|
9442 - | /// See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13937 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
9443 13938 | pub mod malformed_timestamp_header_epoch_input {
|
9444 13939 |
|
13940 + | /* RustType.kt:516 */
|
9445 13941 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9446 - | /// Holds one variant for each of the ways the builder can fail.
|
9447 - |
|
13942 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13943 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9448 13944 | #[allow(clippy::enum_variant_names)]
|
9449 13945 | pub enum ConstraintViolation {
|
9450 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
13946 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
13947 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9451 13948 | MissingTimestamp,
|
13949 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9452 13950 | }
|
13951 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9453 13952 | impl ::std::fmt::Display for ConstraintViolation {
|
13953 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9454 13954 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13955 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9455 13956 | match self {
|
9456 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
9457 - | }
|
13957 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
13958 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13959 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9458 13960 | }
|
13961 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9459 13962 | }
|
13963 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9460 13964 | impl ::std::error::Error for ConstraintViolation {}
|
13965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9461 13966 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderEpochInput {
|
9462 13967 | type Error = ConstraintViolation;
|
9463 13968 |
|
9464 13969 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9465 13970 | builder.build()
|
9466 13971 | }
|
9467 13972 | }
|
9468 - | /// A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13973 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
13974 + | /* RustType.kt:516 */
|
9469 13975 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9470 13977 | pub struct Builder {
|
13978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9471 13979 | pub(crate) timestamp:
|
9472 13980 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
13981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9473 13982 | }
|
13983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9474 13984 | impl Builder {
|
13985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9475 13986 | #[allow(missing_docs)] // documentation missing in model
|
13987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9476 13988 | pub fn timestamp(
|
9477 13989 | mut self,
|
9478 13990 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9479 13991 | ) -> Self {
|
9480 - | self.timestamp = Some(input);
|
13992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
13993 + | self.timestamp =
|
13994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
13995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
13996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
13997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9481 13998 | self
|
13999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9482 14000 | }
|
9483 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
9484 - | ///
|
14001 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
14002 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9485 14003 | /// The builder fails to construct a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) if you do not provide a value for all non-`Option`al members.
|
9486 14004 | ///
|
14005 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9487 14006 | pub fn build(
|
9488 14007 | self,
|
9489 14008 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
9490 14009 | self.build_enforcing_required_and_enum_traits()
|
9491 14010 | }
|
14011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9492 14012 | fn build_enforcing_required_and_enum_traits(
|
9493 14013 | self,
|
9494 14014 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
9495 - | Ok(crate::input::MalformedTimestampHeaderEpochInput {
|
14015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14016 + | Ok(
|
14017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14018 + | crate::input::MalformedTimestampHeaderEpochInput {
|
14019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9496 14020 | timestamp: self
|
9497 14021 | .timestamp
|
14022 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9498 14023 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9499 - | })
|
14024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14025 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14026 + | )
|
14027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9500 14028 | }
|
14029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9501 14030 | }
|
14031 + |
|
14032 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9502 14033 | }
|
9503 - | /// See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14034 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
9504 14035 | pub(crate) mod malformed_timestamp_header_date_time_input_internal {
|
9505 14036 |
|
14037 + | /* RustType.kt:516 */
|
9506 14038 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9507 - | /// Holds one variant for each of the ways the builder can fail.
|
14039 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14040 + | /* RustType.kt:516 */
|
9508 14041 | #[non_exhaustive]
|
14042 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9509 14043 | #[allow(clippy::enum_variant_names)]
|
9510 14044 | pub(crate) enum ConstraintViolation {
|
9511 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
14045 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
14046 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9512 14047 | MissingTimestamp,
|
14048 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9513 14049 | }
|
14050 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9514 14051 | impl ::std::fmt::Display for ConstraintViolation {
|
14052 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9515 14053 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14054 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9516 14055 | match self {
|
9517 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
9518 - | }
|
14056 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
14057 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14058 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9519 14059 | }
|
14060 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9520 14061 | }
|
14062 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9521 14063 | impl ::std::error::Error for ConstraintViolation {}
|
14064 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9522 14065 | impl ConstraintViolation {
|
9523 14066 | pub(crate) fn as_validation_exception_field(
|
9524 14067 | self,
|
9525 14068 | path: ::std::string::String,
|
9526 14069 | ) -> crate::model::ValidationExceptionField {
|
9527 14070 | match self {
|
9528 14071 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9529 14072 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9530 14073 | path: path + "/timestamp",
|
9531 14074 | },
|
9532 14075 | }
|
9533 14076 | }
|
9534 14077 | }
|
14078 + | /* ServerBuilderGenerator.kt:234 */
|
9535 14079 | impl ::std::convert::From<ConstraintViolation>
|
9536 14080 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9537 14081 | {
|
9538 14082 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9539 14083 | let first_validation_exception_field =
|
9540 14084 | constraint_violation.as_validation_exception_field("".to_owned());
|
9541 14085 | let validation_exception = crate::error::ValidationException {
|
9542 14086 | message: format!(
|
9543 14087 | "1 validation error detected. {}",
|
9544 14088 | &first_validation_exception_field.message
|
9545 14089 | ),
|
9546 14090 | field_list: Some(vec![first_validation_exception_field]),
|
9547 14091 | };
|
9548 14092 | Self::ConstraintViolation(
|
9549 14093 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9550 14094 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9551 14095 | )
|
9552 14096 | }
|
9553 14097 | }
|
14098 + | /* ServerBuilderGenerator.kt:244 */
|
9554 14099 | impl ::std::convert::From<Builder>
|
9555 14100 | for crate::constrained::MaybeConstrained<
|
9556 14101 | crate::input::MalformedTimestampHeaderDateTimeInput,
|
9557 14102 | >
|
9558 14103 | {
|
9559 14104 | fn from(builder: Builder) -> Self {
|
9560 14105 | Self::Unconstrained(builder)
|
9561 14106 | }
|
9562 14107 | }
|
14108 + | /* ServerBuilderGenerator.kt:446 */
|
9563 14109 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDateTimeInput {
|
9564 14110 | type Error = ConstraintViolation;
|
9565 14111 |
|
9566 14112 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9567 14113 | builder.build()
|
9568 14114 | }
|
9569 14115 | }
|
9570 - | /// A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14116 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14117 + | /* RustType.kt:516 */
|
9571 14118 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14119 + | /* ServerBuilderGenerator.kt:211 */
|
9572 14120 | pub(crate) struct Builder {
|
14121 + | /* ServerBuilderGenerator.kt:308 */
|
9573 14122 | pub(crate) timestamp:
|
9574 14123 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14124 + | /* ServerBuilderGenerator.kt:211 */
|
9575 14125 | }
|
14126 + | /* ServerBuilderGenerator.kt:215 */
|
9576 14127 | impl Builder {
|
14128 + | /* ServerBuilderGenerator.kt:426 */
|
9577 14129 | #[allow(missing_docs)] // documentation missing in model
|
14130 + | /* ServerBuilderGenerator.kt:428 */
|
9578 14131 | pub(crate) fn set_timestamp(
|
9579 14132 | mut self,
|
9580 14133 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9581 14134 | ) -> Self {
|
14135 + | /* ServerBuilderGenerator.kt:429 */
|
9582 14136 | self.timestamp = Some(input.into());
|
9583 14137 | self
|
14138 + | /* ServerBuilderGenerator.kt:428 */
|
9584 14139 | }
|
9585 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
9586 - | ///
|
14140 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14141 + | /// /* ServerBuilderGenerator.kt:260 */
|
9587 14142 | /// The builder fails to construct a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) if a [`ConstraintViolation`] occurs.
|
9588 14143 | ///
|
14144 + | /* ServerBuilderGenerator.kt:271 */
|
9589 14145 | pub fn build(
|
9590 14146 | self,
|
9591 14147 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
9592 14148 | {
|
9593 14149 | self.build_enforcing_all_constraints()
|
9594 14150 | }
|
14151 + | /* ServerBuilderGenerator.kt:283 */
|
9595 14152 | fn build_enforcing_all_constraints(
|
9596 14153 | self,
|
9597 14154 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
9598 14155 | {
|
9599 - | Ok(crate::input::MalformedTimestampHeaderDateTimeInput {
|
14156 + | /* ServerBuilderGenerator.kt:287 */
|
14157 + | Ok(
|
14158 + | /* ServerBuilderGenerator.kt:542 */
|
14159 + | crate::input::MalformedTimestampHeaderDateTimeInput {
|
14160 + | /* ServerBuilderGenerator.kt:546 */
|
9600 14161 | timestamp: self
|
9601 14162 | .timestamp
|
14163 + | /* ServerBuilderGenerator.kt:569 */
|
9602 14164 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9603 - | })
|
14165 + | /* ServerBuilderGenerator.kt:542 */
|
14166 + | }, /* ServerBuilderGenerator.kt:287 */
|
14167 + | )
|
14168 + | /* ServerBuilderGenerator.kt:283 */
|
9604 14169 | }
|
14170 + | /* ServerBuilderGenerator.kt:215 */
|
9605 14171 | }
|
14172 + |
|
14173 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9606 14174 | }
|
9607 - | /// See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14175 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
9608 14176 | pub mod malformed_timestamp_header_date_time_input {
|
9609 14177 |
|
14178 + | /* RustType.kt:516 */
|
9610 14179 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9611 - | /// Holds one variant for each of the ways the builder can fail.
|
9612 - |
|
14180 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14181 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9613 14182 | #[allow(clippy::enum_variant_names)]
|
9614 14183 | pub enum ConstraintViolation {
|
9615 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
14184 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
14185 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9616 14186 | MissingTimestamp,
|
14187 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9617 14188 | }
|
14189 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9618 14190 | impl ::std::fmt::Display for ConstraintViolation {
|
14191 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9619 14192 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14193 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9620 14194 | match self {
|
9621 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
9622 - | }
|
14195 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
14196 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14197 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9623 14198 | }
|
14199 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9624 14200 | }
|
14201 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9625 14202 | impl ::std::error::Error for ConstraintViolation {}
|
14203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9626 14204 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDateTimeInput {
|
9627 14205 | type Error = ConstraintViolation;
|
9628 14206 |
|
9629 14207 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9630 14208 | builder.build()
|
9631 14209 | }
|
9632 14210 | }
|
9633 - | /// A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14211 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14212 + | /* RustType.kt:516 */
|
9634 14213 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9635 14215 | pub struct Builder {
|
14216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9636 14217 | pub(crate) timestamp:
|
9637 14218 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9638 14220 | }
|
14221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9639 14222 | impl Builder {
|
14223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9640 14224 | #[allow(missing_docs)] // documentation missing in model
|
14225 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9641 14226 | pub fn timestamp(
|
9642 14227 | mut self,
|
9643 14228 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9644 14229 | ) -> Self {
|
9645 - | self.timestamp = Some(input);
|
14230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
14231 + | self.timestamp =
|
14232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
14233 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
14234 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
14235 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9646 14236 | self
|
14237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9647 14238 | }
|
9648 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
9649 - | ///
|
14239 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
14240 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9650 14241 | /// The builder fails to construct a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) if you do not provide a value for all non-`Option`al members.
|
9651 14242 | ///
|
14243 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9652 14244 | pub fn build(
|
9653 14245 | self,
|
9654 14246 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
9655 14247 | {
|
9656 14248 | self.build_enforcing_required_and_enum_traits()
|
9657 14249 | }
|
14250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9658 14251 | fn build_enforcing_required_and_enum_traits(
|
9659 14252 | self,
|
9660 14253 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
9661 14254 | {
|
9662 - | Ok(crate::input::MalformedTimestampHeaderDateTimeInput {
|
14255 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14256 + | Ok(
|
14257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14258 + | crate::input::MalformedTimestampHeaderDateTimeInput {
|
14259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9663 14260 | timestamp: self
|
9664 14261 | .timestamp
|
14262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9665 14263 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9666 - | })
|
14264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14265 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14266 + | )
|
14267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9667 14268 | }
|
14269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9668 14270 | }
|
14271 + |
|
14272 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9669 14273 | }
|
9670 - | /// See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14274 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
9671 14275 | pub(crate) mod malformed_timestamp_header_default_input_internal {
|
9672 14276 |
|
14277 + | /* RustType.kt:516 */
|
9673 14278 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9674 - | /// Holds one variant for each of the ways the builder can fail.
|
14279 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14280 + | /* RustType.kt:516 */
|
9675 14281 | #[non_exhaustive]
|
14282 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9676 14283 | #[allow(clippy::enum_variant_names)]
|
9677 14284 | pub(crate) enum ConstraintViolation {
|
9678 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
14285 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
14286 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9679 14287 | MissingTimestamp,
|
14288 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9680 14289 | }
|
14290 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9681 14291 | impl ::std::fmt::Display for ConstraintViolation {
|
14292 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9682 14293 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14294 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9683 14295 | match self {
|
9684 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
9685 - | }
|
14296 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
14297 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14298 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9686 14299 | }
|
14300 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9687 14301 | }
|
14302 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9688 14303 | impl ::std::error::Error for ConstraintViolation {}
|
14304 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9689 14305 | impl ConstraintViolation {
|
9690 14306 | pub(crate) fn as_validation_exception_field(
|
9691 14307 | self,
|
9692 14308 | path: ::std::string::String,
|
9693 14309 | ) -> crate::model::ValidationExceptionField {
|
9694 14310 | match self {
|
9695 14311 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9696 14312 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9697 14313 | path: path + "/timestamp",
|
9698 14314 | },
|
9699 14315 | }
|
9700 14316 | }
|
9701 14317 | }
|
14318 + | /* ServerBuilderGenerator.kt:234 */
|
9702 14319 | impl ::std::convert::From<ConstraintViolation>
|
9703 14320 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9704 14321 | {
|
9705 14322 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9706 14323 | let first_validation_exception_field =
|
9707 14324 | constraint_violation.as_validation_exception_field("".to_owned());
|
9708 14325 | let validation_exception = crate::error::ValidationException {
|
9709 14326 | message: format!(
|
9710 14327 | "1 validation error detected. {}",
|
9711 14328 | &first_validation_exception_field.message
|
9712 14329 | ),
|
9713 14330 | field_list: Some(vec![first_validation_exception_field]),
|
9714 14331 | };
|
9715 14332 | Self::ConstraintViolation(
|
9716 14333 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9717 14334 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9718 14335 | )
|
9719 14336 | }
|
9720 14337 | }
|
14338 + | /* ServerBuilderGenerator.kt:244 */
|
9721 14339 | impl ::std::convert::From<Builder>
|
9722 14340 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderDefaultInput>
|
9723 14341 | {
|
9724 14342 | fn from(builder: Builder) -> Self {
|
9725 14343 | Self::Unconstrained(builder)
|
9726 14344 | }
|
9727 14345 | }
|
14346 + | /* ServerBuilderGenerator.kt:446 */
|
9728 14347 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDefaultInput {
|
9729 14348 | type Error = ConstraintViolation;
|
9730 14349 |
|
9731 14350 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9732 14351 | builder.build()
|
9733 14352 | }
|
9734 14353 | }
|
9735 - | /// A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14354 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14355 + | /* RustType.kt:516 */
|
9736 14356 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14357 + | /* ServerBuilderGenerator.kt:211 */
|
9737 14358 | pub(crate) struct Builder {
|
14359 + | /* ServerBuilderGenerator.kt:308 */
|
9738 14360 | pub(crate) timestamp:
|
9739 14361 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14362 + | /* ServerBuilderGenerator.kt:211 */
|
9740 14363 | }
|
14364 + | /* ServerBuilderGenerator.kt:215 */
|
9741 14365 | impl Builder {
|
14366 + | /* ServerBuilderGenerator.kt:426 */
|
9742 14367 | #[allow(missing_docs)] // documentation missing in model
|
14368 + | /* ServerBuilderGenerator.kt:428 */
|
9743 14369 | pub(crate) fn set_timestamp(
|
9744 14370 | mut self,
|
9745 14371 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9746 14372 | ) -> Self {
|
14373 + | /* ServerBuilderGenerator.kt:429 */
|
9747 14374 | self.timestamp = Some(input.into());
|
9748 14375 | self
|
14376 + | /* ServerBuilderGenerator.kt:428 */
|
9749 14377 | }
|
9750 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
9751 - | ///
|
14378 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14379 + | /// /* ServerBuilderGenerator.kt:260 */
|
9752 14380 | /// The builder fails to construct a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) if a [`ConstraintViolation`] occurs.
|
9753 14381 | ///
|
14382 + | /* ServerBuilderGenerator.kt:271 */
|
9754 14383 | pub fn build(
|
9755 14384 | self,
|
9756 14385 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
9757 14386 | {
|
9758 14387 | self.build_enforcing_all_constraints()
|
9759 14388 | }
|
14389 + | /* ServerBuilderGenerator.kt:283 */
|
9760 14390 | fn build_enforcing_all_constraints(
|
9761 14391 | self,
|
9762 14392 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
9763 14393 | {
|
9764 - | Ok(crate::input::MalformedTimestampHeaderDefaultInput {
|
14394 + | /* ServerBuilderGenerator.kt:287 */
|
14395 + | Ok(
|
14396 + | /* ServerBuilderGenerator.kt:542 */
|
14397 + | crate::input::MalformedTimestampHeaderDefaultInput {
|
14398 + | /* ServerBuilderGenerator.kt:546 */
|
9765 14399 | timestamp: self
|
9766 14400 | .timestamp
|
14401 + | /* ServerBuilderGenerator.kt:569 */
|
9767 14402 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9768 - | })
|
14403 + | /* ServerBuilderGenerator.kt:542 */
|
14404 + | }, /* ServerBuilderGenerator.kt:287 */
|
14405 + | )
|
14406 + | /* ServerBuilderGenerator.kt:283 */
|
9769 14407 | }
|
14408 + | /* ServerBuilderGenerator.kt:215 */
|
9770 14409 | }
|
14410 + |
|
14411 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9771 14412 | }
|
9772 - | /// See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14413 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
9773 14414 | pub mod malformed_timestamp_header_default_input {
|
9774 14415 |
|
14416 + | /* RustType.kt:516 */
|
9775 14417 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9776 - | /// Holds one variant for each of the ways the builder can fail.
|
9777 - |
|
14418 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14419 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9778 14420 | #[allow(clippy::enum_variant_names)]
|
9779 14421 | pub enum ConstraintViolation {
|
9780 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
14422 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
14423 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9781 14424 | MissingTimestamp,
|
14425 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9782 14426 | }
|
14427 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9783 14428 | impl ::std::fmt::Display for ConstraintViolation {
|
14429 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9784 14430 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14431 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9785 14432 | match self {
|
9786 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
9787 - | }
|
14433 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
14434 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14435 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9788 14436 | }
|
14437 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9789 14438 | }
|
14439 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9790 14440 | impl ::std::error::Error for ConstraintViolation {}
|
14441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9791 14442 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDefaultInput {
|
9792 14443 | type Error = ConstraintViolation;
|
9793 14444 |
|
9794 14445 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9795 14446 | builder.build()
|
9796 14447 | }
|
9797 14448 | }
|
9798 - | /// A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14449 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14450 + | /* RustType.kt:516 */
|
9799 14451 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9800 14453 | pub struct Builder {
|
14454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9801 14455 | pub(crate) timestamp:
|
9802 14456 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9803 14458 | }
|
14459 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9804 14460 | impl Builder {
|
14461 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9805 14462 | #[allow(missing_docs)] // documentation missing in model
|
14463 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9806 14464 | pub fn timestamp(
|
9807 14465 | mut self,
|
9808 14466 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9809 14467 | ) -> Self {
|
9810 - | self.timestamp = Some(input);
|
14468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
14469 + | self.timestamp =
|
14470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
14471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
14472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
14473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9811 14474 | self
|
14475 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9812 14476 | }
|
9813 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
9814 - | ///
|
14477 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
14478 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9815 14479 | /// The builder fails to construct a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) if you do not provide a value for all non-`Option`al members.
|
9816 14480 | ///
|
14481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9817 14482 | pub fn build(
|
9818 14483 | self,
|
9819 14484 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
9820 14485 | {
|
9821 14486 | self.build_enforcing_required_and_enum_traits()
|
9822 14487 | }
|
14488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9823 14489 | fn build_enforcing_required_and_enum_traits(
|
9824 14490 | self,
|
9825 14491 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
9826 14492 | {
|
9827 - | Ok(crate::input::MalformedTimestampHeaderDefaultInput {
|
14493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14494 + | Ok(
|
14495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14496 + | crate::input::MalformedTimestampHeaderDefaultInput {
|
14497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9828 14498 | timestamp: self
|
9829 14499 | .timestamp
|
14500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9830 14501 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9831 - | })
|
14502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14503 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14504 + | )
|
14505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9832 14506 | }
|
14507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9833 14508 | }
|
14509 + |
|
14510 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9834 14511 | }
|
9835 - | /// See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14512 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
9836 14513 | pub(crate) mod malformed_timestamp_query_epoch_input_internal {
|
9837 14514 |
|
14515 + | /* RustType.kt:516 */
|
9838 14516 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9839 - | /// Holds one variant for each of the ways the builder can fail.
|
14517 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14518 + | /* RustType.kt:516 */
|
9840 14519 | #[non_exhaustive]
|
14520 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9841 14521 | #[allow(clippy::enum_variant_names)]
|
9842 14522 | pub(crate) enum ConstraintViolation {
|
9843 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
14523 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
14524 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9844 14525 | MissingTimestamp,
|
14526 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9845 14527 | }
|
14528 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9846 14529 | impl ::std::fmt::Display for ConstraintViolation {
|
14530 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9847 14531 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14532 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9848 14533 | match self {
|
9849 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
9850 - | }
|
14534 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
14535 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14536 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9851 14537 | }
|
14538 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9852 14539 | }
|
14540 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9853 14541 | impl ::std::error::Error for ConstraintViolation {}
|
14542 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9854 14543 | impl ConstraintViolation {
|
9855 14544 | pub(crate) fn as_validation_exception_field(
|
9856 14545 | self,
|
9857 14546 | path: ::std::string::String,
|
9858 14547 | ) -> crate::model::ValidationExceptionField {
|
9859 14548 | match self {
|
9860 14549 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
9861 14550 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
9862 14551 | path: path + "/timestamp",
|
9863 14552 | },
|
9864 14553 | }
|
9865 14554 | }
|
9866 14555 | }
|
14556 + | /* ServerBuilderGenerator.kt:234 */
|
9867 14557 | impl ::std::convert::From<ConstraintViolation>
|
9868 14558 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9869 14559 | {
|
9870 14560 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9871 14561 | let first_validation_exception_field =
|
9872 14562 | constraint_violation.as_validation_exception_field("".to_owned());
|
9873 14563 | let validation_exception = crate::error::ValidationException {
|
9874 14564 | message: format!(
|
9875 14565 | "1 validation error detected. {}",
|
9876 14566 | &first_validation_exception_field.message
|
9877 14567 | ),
|
9878 14568 | field_list: Some(vec![first_validation_exception_field]),
|
9879 14569 | };
|
9880 14570 | Self::ConstraintViolation(
|
9881 14571 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9882 14572 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9883 14573 | )
|
9884 14574 | }
|
9885 14575 | }
|
14576 + | /* ServerBuilderGenerator.kt:244 */
|
9886 14577 | impl ::std::convert::From<Builder>
|
9887 14578 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryEpochInput>
|
9888 14579 | {
|
9889 14580 | fn from(builder: Builder) -> Self {
|
9890 14581 | Self::Unconstrained(builder)
|
9891 14582 | }
|
9892 14583 | }
|
14584 + | /* ServerBuilderGenerator.kt:446 */
|
9893 14585 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryEpochInput {
|
9894 14586 | type Error = ConstraintViolation;
|
9895 14587 |
|
9896 14588 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9897 14589 | builder.build()
|
9898 14590 | }
|
9899 14591 | }
|
9900 - | /// A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14592 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14593 + | /* RustType.kt:516 */
|
9901 14594 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14595 + | /* ServerBuilderGenerator.kt:211 */
|
9902 14596 | pub(crate) struct Builder {
|
14597 + | /* ServerBuilderGenerator.kt:308 */
|
9903 14598 | pub(crate) timestamp:
|
9904 14599 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14600 + | /* ServerBuilderGenerator.kt:211 */
|
9905 14601 | }
|
14602 + | /* ServerBuilderGenerator.kt:215 */
|
9906 14603 | impl Builder {
|
14604 + | /* ServerBuilderGenerator.kt:426 */
|
9907 14605 | #[allow(missing_docs)] // documentation missing in model
|
14606 + | /* ServerBuilderGenerator.kt:428 */
|
9908 14607 | pub(crate) fn set_timestamp(
|
9909 14608 | mut self,
|
9910 14609 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
9911 14610 | ) -> Self {
|
14611 + | /* ServerBuilderGenerator.kt:429 */
|
9912 14612 | self.timestamp = Some(input.into());
|
9913 14613 | self
|
14614 + | /* ServerBuilderGenerator.kt:428 */
|
9914 14615 | }
|
9915 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
9916 - | ///
|
14616 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14617 + | /// /* ServerBuilderGenerator.kt:260 */
|
9917 14618 | /// The builder fails to construct a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) if a [`ConstraintViolation`] occurs.
|
9918 14619 | ///
|
14620 + | /* ServerBuilderGenerator.kt:271 */
|
9919 14621 | pub fn build(
|
9920 14622 | self,
|
9921 14623 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
9922 14624 | self.build_enforcing_all_constraints()
|
9923 14625 | }
|
14626 + | /* ServerBuilderGenerator.kt:283 */
|
9924 14627 | fn build_enforcing_all_constraints(
|
9925 14628 | self,
|
9926 14629 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
9927 - | Ok(crate::input::MalformedTimestampQueryEpochInput {
|
14630 + | /* ServerBuilderGenerator.kt:287 */
|
14631 + | Ok(
|
14632 + | /* ServerBuilderGenerator.kt:542 */
|
14633 + | crate::input::MalformedTimestampQueryEpochInput {
|
14634 + | /* ServerBuilderGenerator.kt:546 */
|
9928 14635 | timestamp: self
|
9929 14636 | .timestamp
|
14637 + | /* ServerBuilderGenerator.kt:569 */
|
9930 14638 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9931 - | })
|
14639 + | /* ServerBuilderGenerator.kt:542 */
|
14640 + | }, /* ServerBuilderGenerator.kt:287 */
|
14641 + | )
|
14642 + | /* ServerBuilderGenerator.kt:283 */
|
9932 14643 | }
|
14644 + | /* ServerBuilderGenerator.kt:215 */
|
9933 14645 | }
|
14646 + |
|
14647 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9934 14648 | }
|
9935 - | /// See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14649 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
9936 14650 | pub mod malformed_timestamp_query_epoch_input {
|
9937 14651 |
|
14652 + | /* RustType.kt:516 */
|
9938 14653 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9939 - | /// Holds one variant for each of the ways the builder can fail.
|
9940 - |
|
14654 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14655 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9941 14656 | #[allow(clippy::enum_variant_names)]
|
9942 14657 | pub enum ConstraintViolation {
|
9943 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
14658 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
14659 + | /* ServerBuilderConstraintViolations.kt:143 */
|
9944 14660 | MissingTimestamp,
|
14661 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9945 14662 | }
|
14663 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9946 14664 | impl ::std::fmt::Display for ConstraintViolation {
|
14665 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9947 14666 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14667 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9948 14668 | match self {
|
9949 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
9950 - | }
|
14669 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
14670 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14671 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9951 14672 | }
|
14673 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9952 14674 | }
|
14675 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9953 14676 | impl ::std::error::Error for ConstraintViolation {}
|
14677 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
9954 14678 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryEpochInput {
|
9955 14679 | type Error = ConstraintViolation;
|
9956 14680 |
|
9957 14681 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9958 14682 | builder.build()
|
9959 14683 | }
|
9960 14684 | }
|
9961 - | /// A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14685 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14686 + | /* RustType.kt:516 */
|
9962 14687 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9963 14689 | pub struct Builder {
|
14690 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
9964 14691 | pub(crate) timestamp:
|
9965 14692 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14693 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
9966 14694 | }
|
14695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9967 14696 | impl Builder {
|
14697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
9968 14698 | #[allow(missing_docs)] // documentation missing in model
|
14699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9969 14700 | pub fn timestamp(
|
9970 14701 | mut self,
|
9971 14702 | input: ::aws_smithy_http_server_python::types::DateTime,
|
9972 14703 | ) -> Self {
|
9973 - | self.timestamp = Some(input);
|
14704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
14705 + | self.timestamp =
|
14706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
14707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
14708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
14709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
9974 14710 | self
|
14711 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
9975 14712 | }
|
9976 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
9977 - | ///
|
14713 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
14714 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
9978 14715 | /// The builder fails to construct a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) if you do not provide a value for all non-`Option`al members.
|
9979 14716 | ///
|
14717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
9980 14718 | pub fn build(
|
9981 14719 | self,
|
9982 14720 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
9983 14721 | self.build_enforcing_required_and_enum_traits()
|
9984 14722 | }
|
14723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9985 14724 | fn build_enforcing_required_and_enum_traits(
|
9986 14725 | self,
|
9987 14726 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
9988 - | Ok(crate::input::MalformedTimestampQueryEpochInput {
|
14727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14728 + | Ok(
|
14729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14730 + | crate::input::MalformedTimestampQueryEpochInput {
|
14731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
9989 14732 | timestamp: self
|
9990 14733 | .timestamp
|
14734 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
9991 14735 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
9992 - | })
|
14736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14737 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14738 + | )
|
14739 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
9993 14740 | }
|
14741 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
9994 14742 | }
|
14743 + |
|
14744 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9995 14745 | }
|
9996 - | /// See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14746 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
9997 14747 | pub(crate) mod malformed_timestamp_query_http_date_input_internal {
|
9998 14748 |
|
14749 + | /* RustType.kt:516 */
|
9999 14750 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10000 - | /// Holds one variant for each of the ways the builder can fail.
|
14751 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14752 + | /* RustType.kt:516 */
|
10001 14753 | #[non_exhaustive]
|
14754 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10002 14755 | #[allow(clippy::enum_variant_names)]
|
10003 14756 | pub(crate) enum ConstraintViolation {
|
10004 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
14757 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
14758 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10005 14759 | MissingTimestamp,
|
14760 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10006 14761 | }
|
14762 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10007 14763 | impl ::std::fmt::Display for ConstraintViolation {
|
14764 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10008 14765 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14766 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10009 14767 | match self {
|
10010 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
10011 - | }
|
14768 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
14769 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14770 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10012 14771 | }
|
14772 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10013 14773 | }
|
14774 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10014 14775 | impl ::std::error::Error for ConstraintViolation {}
|
14776 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10015 14777 | impl ConstraintViolation {
|
10016 14778 | pub(crate) fn as_validation_exception_field(
|
10017 14779 | self,
|
10018 14780 | path: ::std::string::String,
|
10019 14781 | ) -> crate::model::ValidationExceptionField {
|
10020 14782 | match self {
|
10021 14783 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
10022 14784 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
10023 14785 | path: path + "/timestamp",
|
10024 14786 | },
|
10025 14787 | }
|
10026 14788 | }
|
10027 14789 | }
|
14790 + | /* ServerBuilderGenerator.kt:234 */
|
10028 14791 | impl ::std::convert::From<ConstraintViolation>
|
10029 14792 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10030 14793 | {
|
10031 14794 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10032 14795 | let first_validation_exception_field =
|
10033 14796 | constraint_violation.as_validation_exception_field("".to_owned());
|
10034 14797 | let validation_exception = crate::error::ValidationException {
|
10035 14798 | message: format!(
|
10036 14799 | "1 validation error detected. {}",
|
10037 14800 | &first_validation_exception_field.message
|
10038 14801 | ),
|
10039 14802 | field_list: Some(vec![first_validation_exception_field]),
|
10040 14803 | };
|
10041 14804 | Self::ConstraintViolation(
|
10042 14805 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10043 14806 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10044 14807 | )
|
10045 14808 | }
|
10046 14809 | }
|
14810 + | /* ServerBuilderGenerator.kt:244 */
|
10047 14811 | impl ::std::convert::From<Builder>
|
10048 14812 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryHttpDateInput>
|
10049 14813 | {
|
10050 14814 | fn from(builder: Builder) -> Self {
|
10051 14815 | Self::Unconstrained(builder)
|
10052 14816 | }
|
10053 14817 | }
|
14818 + | /* ServerBuilderGenerator.kt:446 */
|
10054 14819 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryHttpDateInput {
|
10055 14820 | type Error = ConstraintViolation;
|
10056 14821 |
|
10057 14822 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10058 14823 | builder.build()
|
10059 14824 | }
|
10060 14825 | }
|
10061 - | /// A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14826 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14827 + | /* RustType.kt:516 */
|
10062 14828 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14829 + | /* ServerBuilderGenerator.kt:211 */
|
10063 14830 | pub(crate) struct Builder {
|
14831 + | /* ServerBuilderGenerator.kt:308 */
|
10064 14832 | pub(crate) timestamp:
|
10065 14833 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14834 + | /* ServerBuilderGenerator.kt:211 */
|
10066 14835 | }
|
14836 + | /* ServerBuilderGenerator.kt:215 */
|
10067 14837 | impl Builder {
|
14838 + | /* ServerBuilderGenerator.kt:426 */
|
10068 14839 | #[allow(missing_docs)] // documentation missing in model
|
14840 + | /* ServerBuilderGenerator.kt:428 */
|
10069 14841 | pub(crate) fn set_timestamp(
|
10070 14842 | mut self,
|
10071 14843 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
10072 14844 | ) -> Self {
|
14845 + | /* ServerBuilderGenerator.kt:429 */
|
10073 14846 | self.timestamp = Some(input.into());
|
10074 14847 | self
|
14848 + | /* ServerBuilderGenerator.kt:428 */
|
10075 14849 | }
|
10076 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
10077 - | ///
|
14850 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14851 + | /// /* ServerBuilderGenerator.kt:260 */
|
10078 14852 | /// The builder fails to construct a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) if a [`ConstraintViolation`] occurs.
|
10079 14853 | ///
|
14854 + | /* ServerBuilderGenerator.kt:271 */
|
10080 14855 | pub fn build(
|
10081 14856 | self,
|
10082 14857 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
10083 14858 | {
|
10084 14859 | self.build_enforcing_all_constraints()
|
10085 14860 | }
|
14861 + | /* ServerBuilderGenerator.kt:283 */
|
10086 14862 | fn build_enforcing_all_constraints(
|
10087 14863 | self,
|
10088 14864 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
10089 14865 | {
|
10090 - | Ok(crate::input::MalformedTimestampQueryHttpDateInput {
|
14866 + | /* ServerBuilderGenerator.kt:287 */
|
14867 + | Ok(
|
14868 + | /* ServerBuilderGenerator.kt:542 */
|
14869 + | crate::input::MalformedTimestampQueryHttpDateInput {
|
14870 + | /* ServerBuilderGenerator.kt:546 */
|
10091 14871 | timestamp: self
|
10092 14872 | .timestamp
|
14873 + | /* ServerBuilderGenerator.kt:569 */
|
10093 14874 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10094 - | })
|
14875 + | /* ServerBuilderGenerator.kt:542 */
|
14876 + | }, /* ServerBuilderGenerator.kt:287 */
|
14877 + | )
|
14878 + | /* ServerBuilderGenerator.kt:283 */
|
10095 14879 | }
|
14880 + | /* ServerBuilderGenerator.kt:215 */
|
10096 14881 | }
|
14882 + |
|
14883 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10097 14884 | }
|
10098 - | /// See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14885 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
10099 14886 | pub mod malformed_timestamp_query_http_date_input {
|
10100 14887 |
|
14888 + | /* RustType.kt:516 */
|
10101 14889 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10102 - | /// Holds one variant for each of the ways the builder can fail.
|
10103 - |
|
14890 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14891 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10104 14892 | #[allow(clippy::enum_variant_names)]
|
10105 14893 | pub enum ConstraintViolation {
|
10106 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
14894 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
14895 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10107 14896 | MissingTimestamp,
|
14897 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10108 14898 | }
|
14899 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10109 14900 | impl ::std::fmt::Display for ConstraintViolation {
|
14901 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10110 14902 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14903 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10111 14904 | match self {
|
10112 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
10113 - | }
|
14905 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
14906 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14907 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10114 14908 | }
|
14909 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10115 14910 | }
|
14911 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10116 14912 | impl ::std::error::Error for ConstraintViolation {}
|
14913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
10117 14914 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryHttpDateInput {
|
10118 14915 | type Error = ConstraintViolation;
|
10119 14916 |
|
10120 14917 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10121 14918 | builder.build()
|
10122 14919 | }
|
10123 14920 | }
|
10124 - | /// A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14921 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14922 + | /* RustType.kt:516 */
|
10125 14923 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10126 14925 | pub struct Builder {
|
14926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10127 14927 | pub(crate) timestamp:
|
10128 14928 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
14929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10129 14930 | }
|
14931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10130 14932 | impl Builder {
|
14933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10131 14934 | #[allow(missing_docs)] // documentation missing in model
|
14935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10132 14936 | pub fn timestamp(
|
10133 14937 | mut self,
|
10134 14938 | input: ::aws_smithy_http_server_python::types::DateTime,
|
10135 14939 | ) -> Self {
|
10136 - | self.timestamp = Some(input);
|
14940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
14941 + | self.timestamp =
|
14942 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
14943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
14944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
14945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10137 14946 | self
|
14947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10138 14948 | }
|
10139 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
10140 - | ///
|
14949 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
14950 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
10141 14951 | /// The builder fails to construct a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) if you do not provide a value for all non-`Option`al members.
|
10142 14952 | ///
|
14953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10143 14954 | pub fn build(
|
10144 14955 | self,
|
10145 14956 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
10146 14957 | {
|
10147 14958 | self.build_enforcing_required_and_enum_traits()
|
10148 14959 | }
|
14960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10149 14961 | fn build_enforcing_required_and_enum_traits(
|
10150 14962 | self,
|
10151 14963 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
10152 14964 | {
|
10153 - | Ok(crate::input::MalformedTimestampQueryHttpDateInput {
|
14965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14966 + | Ok(
|
14967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14968 + | crate::input::MalformedTimestampQueryHttpDateInput {
|
14969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10154 14970 | timestamp: self
|
10155 14971 | .timestamp
|
14972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10156 14973 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10157 - | })
|
14974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14975 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
14976 + | )
|
14977 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10158 14978 | }
|
14979 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10159 14980 | }
|
14981 + |
|
14982 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10160 14983 | }
|
10161 - | /// See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
14984 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
10162 14985 | pub(crate) mod malformed_timestamp_query_default_input_internal {
|
10163 14986 |
|
14987 + | /* RustType.kt:516 */
|
10164 14988 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10165 - | /// Holds one variant for each of the ways the builder can fail.
|
14989 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14990 + | /* RustType.kt:516 */
|
10166 14991 | #[non_exhaustive]
|
14992 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10167 14993 | #[allow(clippy::enum_variant_names)]
|
10168 14994 | pub(crate) enum ConstraintViolation {
|
10169 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
14995 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
14996 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10170 14997 | MissingTimestamp,
|
14998 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10171 14999 | }
|
15000 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10172 15001 | impl ::std::fmt::Display for ConstraintViolation {
|
15002 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10173 15003 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15004 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10174 15005 | match self {
|
10175 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
10176 - | }
|
15006 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
15007 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15008 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10177 15009 | }
|
15010 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10178 15011 | }
|
15012 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10179 15013 | impl ::std::error::Error for ConstraintViolation {}
|
15014 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10180 15015 | impl ConstraintViolation {
|
10181 15016 | pub(crate) fn as_validation_exception_field(
|
10182 15017 | self,
|
10183 15018 | path: ::std::string::String,
|
10184 15019 | ) -> crate::model::ValidationExceptionField {
|
10185 15020 | match self {
|
10186 15021 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
10187 15022 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
10188 15023 | path: path + "/timestamp",
|
10189 15024 | },
|
10190 15025 | }
|
10191 15026 | }
|
10192 15027 | }
|
15028 + | /* ServerBuilderGenerator.kt:234 */
|
10193 15029 | impl ::std::convert::From<ConstraintViolation>
|
10194 15030 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10195 15031 | {
|
10196 15032 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10197 15033 | let first_validation_exception_field =
|
10198 15034 | constraint_violation.as_validation_exception_field("".to_owned());
|
10199 15035 | let validation_exception = crate::error::ValidationException {
|
10200 15036 | message: format!(
|
10201 15037 | "1 validation error detected. {}",
|
10202 15038 | &first_validation_exception_field.message
|
10203 15039 | ),
|
10204 15040 | field_list: Some(vec![first_validation_exception_field]),
|
10205 15041 | };
|
10206 15042 | Self::ConstraintViolation(
|
10207 15043 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10208 15044 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10209 15045 | )
|
10210 15046 | }
|
10211 15047 | }
|
15048 + | /* ServerBuilderGenerator.kt:244 */
|
10212 15049 | impl ::std::convert::From<Builder>
|
10213 15050 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryDefaultInput>
|
10214 15051 | {
|
10215 15052 | fn from(builder: Builder) -> Self {
|
10216 15053 | Self::Unconstrained(builder)
|
10217 15054 | }
|
10218 15055 | }
|
15056 + | /* ServerBuilderGenerator.kt:446 */
|
10219 15057 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryDefaultInput {
|
10220 15058 | type Error = ConstraintViolation;
|
10221 15059 |
|
10222 15060 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10223 15061 | builder.build()
|
10224 15062 | }
|
10225 15063 | }
|
10226 - | /// A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15064 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15065 + | /* RustType.kt:516 */
|
10227 15066 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15067 + | /* ServerBuilderGenerator.kt:211 */
|
10228 15068 | pub(crate) struct Builder {
|
15069 + | /* ServerBuilderGenerator.kt:308 */
|
10229 15070 | pub(crate) timestamp:
|
10230 15071 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15072 + | /* ServerBuilderGenerator.kt:211 */
|
10231 15073 | }
|
15074 + | /* ServerBuilderGenerator.kt:215 */
|
10232 15075 | impl Builder {
|
15076 + | /* ServerBuilderGenerator.kt:426 */
|
10233 15077 | #[allow(missing_docs)] // documentation missing in model
|
15078 + | /* ServerBuilderGenerator.kt:428 */
|
10234 15079 | pub(crate) fn set_timestamp(
|
10235 15080 | mut self,
|
10236 15081 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
10237 15082 | ) -> Self {
|
15083 + | /* ServerBuilderGenerator.kt:429 */
|
10238 15084 | self.timestamp = Some(input.into());
|
10239 15085 | self
|
15086 + | /* ServerBuilderGenerator.kt:428 */
|
10240 15087 | }
|
10241 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
10242 - | ///
|
15088 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15089 + | /// /* ServerBuilderGenerator.kt:260 */
|
10243 15090 | /// The builder fails to construct a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) if a [`ConstraintViolation`] occurs.
|
10244 15091 | ///
|
15092 + | /* ServerBuilderGenerator.kt:271 */
|
10245 15093 | pub fn build(
|
10246 15094 | self,
|
10247 15095 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
10248 15096 | {
|
10249 15097 | self.build_enforcing_all_constraints()
|
10250 15098 | }
|
15099 + | /* ServerBuilderGenerator.kt:283 */
|
10251 15100 | fn build_enforcing_all_constraints(
|
10252 15101 | self,
|
10253 15102 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
10254 15103 | {
|
10255 - | Ok(crate::input::MalformedTimestampQueryDefaultInput {
|
15104 + | /* ServerBuilderGenerator.kt:287 */
|
15105 + | Ok(
|
15106 + | /* ServerBuilderGenerator.kt:542 */
|
15107 + | crate::input::MalformedTimestampQueryDefaultInput {
|
15108 + | /* ServerBuilderGenerator.kt:546 */
|
10256 15109 | timestamp: self
|
10257 15110 | .timestamp
|
15111 + | /* ServerBuilderGenerator.kt:569 */
|
10258 15112 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10259 - | })
|
15113 + | /* ServerBuilderGenerator.kt:542 */
|
15114 + | }, /* ServerBuilderGenerator.kt:287 */
|
15115 + | )
|
15116 + | /* ServerBuilderGenerator.kt:283 */
|
10260 15117 | }
|
15118 + | /* ServerBuilderGenerator.kt:215 */
|
10261 15119 | }
|
15120 + |
|
15121 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10262 15122 | }
|
10263 - | /// See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15123 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
10264 15124 | pub mod malformed_timestamp_query_default_input {
|
10265 15125 |
|
15126 + | /* RustType.kt:516 */
|
10266 15127 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10267 - | /// Holds one variant for each of the ways the builder can fail.
|
10268 - |
|
15128 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15129 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10269 15130 | #[allow(clippy::enum_variant_names)]
|
10270 15131 | pub enum ConstraintViolation {
|
10271 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
15132 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
15133 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10272 15134 | MissingTimestamp,
|
15135 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10273 15136 | }
|
15137 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10274 15138 | impl ::std::fmt::Display for ConstraintViolation {
|
15139 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10275 15140 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15141 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10276 15142 | match self {
|
10277 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
10278 - | }
|
15143 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
15144 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15145 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10279 15146 | }
|
15147 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10280 15148 | }
|
15149 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10281 15150 | impl ::std::error::Error for ConstraintViolation {}
|
15151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
10282 15152 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryDefaultInput {
|
10283 15153 | type Error = ConstraintViolation;
|
10284 15154 |
|
10285 15155 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10286 15156 | builder.build()
|
10287 15157 | }
|
10288 15158 | }
|
10289 - | /// A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15159 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15160 + | /* RustType.kt:516 */
|
10290 15161 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10291 15163 | pub struct Builder {
|
15164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10292 15165 | pub(crate) timestamp:
|
10293 15166 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10294 15168 | }
|
15169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10295 15170 | impl Builder {
|
15171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10296 15172 | #[allow(missing_docs)] // documentation missing in model
|
15173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10297 15174 | pub fn timestamp(
|
10298 15175 | mut self,
|
10299 15176 | input: ::aws_smithy_http_server_python::types::DateTime,
|
10300 15177 | ) -> Self {
|
10301 - | self.timestamp = Some(input);
|
15178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
15179 + | self.timestamp =
|
15180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
15181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
15182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
15183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10302 15184 | self
|
15185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10303 15186 | }
|
10304 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
10305 - | ///
|
15187 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
15188 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
10306 15189 | /// The builder fails to construct a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) if you do not provide a value for all non-`Option`al members.
|
10307 15190 | ///
|
15191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10308 15192 | pub fn build(
|
10309 15193 | self,
|
10310 15194 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
10311 15195 | {
|
10312 15196 | self.build_enforcing_required_and_enum_traits()
|
10313 15197 | }
|
15198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10314 15199 | fn build_enforcing_required_and_enum_traits(
|
10315 15200 | self,
|
10316 15201 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
10317 15202 | {
|
10318 - | Ok(crate::input::MalformedTimestampQueryDefaultInput {
|
15203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15204 + | Ok(
|
15205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15206 + | crate::input::MalformedTimestampQueryDefaultInput {
|
15207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10319 15208 | timestamp: self
|
10320 15209 | .timestamp
|
15210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10321 15211 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10322 - | })
|
15212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15213 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15214 + | )
|
15215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10323 15216 | }
|
15217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10324 15218 | }
|
15219 + |
|
15220 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10325 15221 | }
|
10326 - | /// See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15222 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
10327 15223 | pub(crate) mod malformed_timestamp_path_epoch_input_internal {
|
10328 15224 |
|
15225 + | /* RustType.kt:516 */
|
10329 15226 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10330 - | /// Holds one variant for each of the ways the builder can fail.
|
15227 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15228 + | /* RustType.kt:516 */
|
10331 15229 | #[non_exhaustive]
|
15230 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10332 15231 | #[allow(clippy::enum_variant_names)]
|
10333 15232 | pub(crate) enum ConstraintViolation {
|
10334 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
15233 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
15234 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10335 15235 | MissingTimestamp,
|
15236 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10336 15237 | }
|
15238 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10337 15239 | impl ::std::fmt::Display for ConstraintViolation {
|
15240 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10338 15241 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15242 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10339 15243 | match self {
|
10340 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
10341 - | }
|
15244 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
15245 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15246 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10342 15247 | }
|
15248 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10343 15249 | }
|
15250 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10344 15251 | impl ::std::error::Error for ConstraintViolation {}
|
15252 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10345 15253 | impl ConstraintViolation {
|
10346 15254 | pub(crate) fn as_validation_exception_field(
|
10347 15255 | self,
|
10348 15256 | path: ::std::string::String,
|
10349 15257 | ) -> crate::model::ValidationExceptionField {
|
10350 15258 | match self {
|
10351 15259 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
10352 15260 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
10353 15261 | path: path + "/timestamp",
|
10354 15262 | },
|
10355 15263 | }
|
10356 15264 | }
|
10357 15265 | }
|
15266 + | /* ServerBuilderGenerator.kt:234 */
|
10358 15267 | impl ::std::convert::From<ConstraintViolation>
|
10359 15268 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10360 15269 | {
|
10361 15270 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10362 15271 | let first_validation_exception_field =
|
10363 15272 | constraint_violation.as_validation_exception_field("".to_owned());
|
10364 15273 | let validation_exception = crate::error::ValidationException {
|
10365 15274 | message: format!(
|
10366 15275 | "1 validation error detected. {}",
|
10367 15276 | &first_validation_exception_field.message
|
10368 15277 | ),
|
10369 15278 | field_list: Some(vec![first_validation_exception_field]),
|
10370 15279 | };
|
10371 15280 | Self::ConstraintViolation(
|
10372 15281 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10373 15282 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10374 15283 | )
|
10375 15284 | }
|
10376 15285 | }
|
15286 + | /* ServerBuilderGenerator.kt:244 */
|
10377 15287 | impl ::std::convert::From<Builder>
|
10378 15288 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathEpochInput>
|
10379 15289 | {
|
10380 15290 | fn from(builder: Builder) -> Self {
|
10381 15291 | Self::Unconstrained(builder)
|
10382 15292 | }
|
10383 15293 | }
|
15294 + | /* ServerBuilderGenerator.kt:446 */
|
10384 15295 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathEpochInput {
|
10385 15296 | type Error = ConstraintViolation;
|
10386 15297 |
|
10387 15298 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10388 15299 | builder.build()
|
10389 15300 | }
|
10390 15301 | }
|
10391 - | /// A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15302 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15303 + | /* RustType.kt:516 */
|
10392 15304 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15305 + | /* ServerBuilderGenerator.kt:211 */
|
10393 15306 | pub(crate) struct Builder {
|
15307 + | /* ServerBuilderGenerator.kt:308 */
|
10394 15308 | pub(crate) timestamp:
|
10395 15309 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15310 + | /* ServerBuilderGenerator.kt:211 */
|
10396 15311 | }
|
15312 + | /* ServerBuilderGenerator.kt:215 */
|
10397 15313 | impl Builder {
|
15314 + | /* ServerBuilderGenerator.kt:426 */
|
10398 15315 | #[allow(missing_docs)] // documentation missing in model
|
15316 + | /* ServerBuilderGenerator.kt:428 */
|
10399 15317 | pub(crate) fn set_timestamp(
|
10400 15318 | mut self,
|
10401 15319 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
10402 15320 | ) -> Self {
|
15321 + | /* ServerBuilderGenerator.kt:429 */
|
10403 15322 | self.timestamp = Some(input.into());
|
10404 15323 | self
|
15324 + | /* ServerBuilderGenerator.kt:428 */
|
10405 15325 | }
|
10406 - | /// Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
10407 - | ///
|
15326 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15327 + | /// /* ServerBuilderGenerator.kt:260 */
|
10408 15328 | /// The builder fails to construct a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) if a [`ConstraintViolation`] occurs.
|
10409 15329 | ///
|
15330 + | /* ServerBuilderGenerator.kt:271 */
|
10410 15331 | pub fn build(
|
10411 15332 | self,
|
10412 15333 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
10413 15334 | self.build_enforcing_all_constraints()
|
10414 15335 | }
|
15336 + | /* ServerBuilderGenerator.kt:283 */
|
10415 15337 | fn build_enforcing_all_constraints(
|
10416 15338 | self,
|
10417 15339 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
10418 - | Ok(crate::input::MalformedTimestampPathEpochInput {
|
15340 + | /* ServerBuilderGenerator.kt:287 */
|
15341 + | Ok(
|
15342 + | /* ServerBuilderGenerator.kt:542 */
|
15343 + | crate::input::MalformedTimestampPathEpochInput {
|
15344 + | /* ServerBuilderGenerator.kt:546 */
|
10419 15345 | timestamp: self
|
10420 15346 | .timestamp
|
15347 + | /* ServerBuilderGenerator.kt:569 */
|
10421 15348 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10422 - | })
|
15349 + | /* ServerBuilderGenerator.kt:542 */
|
15350 + | }, /* ServerBuilderGenerator.kt:287 */
|
15351 + | )
|
15352 + | /* ServerBuilderGenerator.kt:283 */
|
10423 15353 | }
|
15354 + | /* ServerBuilderGenerator.kt:215 */
|
10424 15355 | }
|
15356 + |
|
15357 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10425 15358 | }
|
10426 - | /// See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15359 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
10427 15360 | pub mod malformed_timestamp_path_epoch_input {
|
10428 15361 |
|
15362 + | /* RustType.kt:516 */
|
10429 15363 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10430 - | /// Holds one variant for each of the ways the builder can fail.
|
10431 - |
|
15364 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15365 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10432 15366 | #[allow(clippy::enum_variant_names)]
|
10433 15367 | pub enum ConstraintViolation {
|
10434 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
15368 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
15369 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10435 15370 | MissingTimestamp,
|
15371 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10436 15372 | }
|
15373 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10437 15374 | impl ::std::fmt::Display for ConstraintViolation {
|
15375 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10438 15376 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15377 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10439 15378 | match self {
|
10440 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
10441 - | }
|
15379 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
15380 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15381 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10442 15382 | }
|
15383 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10443 15384 | }
|
15385 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10444 15386 | impl ::std::error::Error for ConstraintViolation {}
|
15387 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
10445 15388 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathEpochInput {
|
10446 15389 | type Error = ConstraintViolation;
|
10447 15390 |
|
10448 15391 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10449 15392 | builder.build()
|
10450 15393 | }
|
10451 15394 | }
|
10452 - | /// A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15395 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15396 + | /* RustType.kt:516 */
|
10453 15397 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15398 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10454 15399 | pub struct Builder {
|
15400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10455 15401 | pub(crate) timestamp:
|
10456 15402 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15403 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10457 15404 | }
|
15405 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10458 15406 | impl Builder {
|
15407 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10459 15408 | #[allow(missing_docs)] // documentation missing in model
|
15409 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10460 15410 | pub fn timestamp(
|
10461 15411 | mut self,
|
10462 15412 | input: ::aws_smithy_http_server_python::types::DateTime,
|
10463 15413 | ) -> Self {
|
10464 - | self.timestamp = Some(input);
|
15414 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
15415 + | self.timestamp =
|
15416 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
15417 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
15418 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
15419 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10465 15420 | self
|
15421 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10466 15422 | }
|
10467 - | /// Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
10468 - | ///
|
15423 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
15424 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
10469 15425 | /// The builder fails to construct a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) if you do not provide a value for all non-`Option`al members.
|
10470 15426 | ///
|
15427 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10471 15428 | pub fn build(
|
10472 15429 | self,
|
10473 15430 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
10474 15431 | self.build_enforcing_required_and_enum_traits()
|
10475 15432 | }
|
15433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10476 15434 | fn build_enforcing_required_and_enum_traits(
|
10477 15435 | self,
|
10478 15436 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
10479 - | Ok(crate::input::MalformedTimestampPathEpochInput {
|
15437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15438 + | Ok(
|
15439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15440 + | crate::input::MalformedTimestampPathEpochInput {
|
15441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10480 15442 | timestamp: self
|
10481 15443 | .timestamp
|
15444 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10482 15445 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10483 - | })
|
15446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15447 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15448 + | )
|
15449 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10484 15450 | }
|
15451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10485 15452 | }
|
15453 + |
|
15454 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10486 15455 | }
|
10487 - | /// See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15456 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
10488 15457 | pub(crate) mod malformed_timestamp_path_http_date_input_internal {
|
10489 15458 |
|
15459 + | /* RustType.kt:516 */
|
10490 15460 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10491 - | /// Holds one variant for each of the ways the builder can fail.
|
15461 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15462 + | /* RustType.kt:516 */
|
10492 15463 | #[non_exhaustive]
|
15464 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10493 15465 | #[allow(clippy::enum_variant_names)]
|
10494 15466 | pub(crate) enum ConstraintViolation {
|
10495 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
15467 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
15468 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10496 15469 | MissingTimestamp,
|
15470 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10497 15471 | }
|
15472 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10498 15473 | impl ::std::fmt::Display for ConstraintViolation {
|
15474 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10499 15475 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15476 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10500 15477 | match self {
|
10501 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
10502 - | }
|
15478 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
15479 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15480 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10503 15481 | }
|
15482 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10504 15483 | }
|
15484 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10505 15485 | impl ::std::error::Error for ConstraintViolation {}
|
15486 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10506 15487 | impl ConstraintViolation {
|
10507 15488 | pub(crate) fn as_validation_exception_field(
|
10508 15489 | self,
|
10509 15490 | path: ::std::string::String,
|
10510 15491 | ) -> crate::model::ValidationExceptionField {
|
10511 15492 | match self {
|
10512 15493 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
10513 15494 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
10514 15495 | path: path + "/timestamp",
|
10515 15496 | },
|
10516 15497 | }
|
10517 15498 | }
|
10518 15499 | }
|
15500 + | /* ServerBuilderGenerator.kt:234 */
|
10519 15501 | impl ::std::convert::From<ConstraintViolation>
|
10520 15502 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10521 15503 | {
|
10522 15504 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10523 15505 | let first_validation_exception_field =
|
10524 15506 | constraint_violation.as_validation_exception_field("".to_owned());
|
10525 15507 | let validation_exception = crate::error::ValidationException {
|
10526 15508 | message: format!(
|
10527 15509 | "1 validation error detected. {}",
|
10528 15510 | &first_validation_exception_field.message
|
10529 15511 | ),
|
10530 15512 | field_list: Some(vec![first_validation_exception_field]),
|
10531 15513 | };
|
10532 15514 | Self::ConstraintViolation(
|
10533 15515 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10534 15516 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10535 15517 | )
|
10536 15518 | }
|
10537 15519 | }
|
15520 + | /* ServerBuilderGenerator.kt:244 */
|
10538 15521 | impl ::std::convert::From<Builder>
|
10539 15522 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathHttpDateInput>
|
10540 15523 | {
|
10541 15524 | fn from(builder: Builder) -> Self {
|
10542 15525 | Self::Unconstrained(builder)
|
10543 15526 | }
|
10544 15527 | }
|
15528 + | /* ServerBuilderGenerator.kt:446 */
|
10545 15529 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathHttpDateInput {
|
10546 15530 | type Error = ConstraintViolation;
|
10547 15531 |
|
10548 15532 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10549 15533 | builder.build()
|
10550 15534 | }
|
10551 15535 | }
|
10552 - | /// A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15536 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15537 + | /* RustType.kt:516 */
|
10553 15538 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15539 + | /* ServerBuilderGenerator.kt:211 */
|
10554 15540 | pub(crate) struct Builder {
|
15541 + | /* ServerBuilderGenerator.kt:308 */
|
10555 15542 | pub(crate) timestamp:
|
10556 15543 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15544 + | /* ServerBuilderGenerator.kt:211 */
|
10557 15545 | }
|
15546 + | /* ServerBuilderGenerator.kt:215 */
|
10558 15547 | impl Builder {
|
15548 + | /* ServerBuilderGenerator.kt:426 */
|
10559 15549 | #[allow(missing_docs)] // documentation missing in model
|
15550 + | /* ServerBuilderGenerator.kt:428 */
|
10560 15551 | pub(crate) fn set_timestamp(
|
10561 15552 | mut self,
|
10562 15553 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
10563 15554 | ) -> Self {
|
15555 + | /* ServerBuilderGenerator.kt:429 */
|
10564 15556 | self.timestamp = Some(input.into());
|
10565 15557 | self
|
15558 + | /* ServerBuilderGenerator.kt:428 */
|
10566 15559 | }
|
10567 - | /// Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
10568 - | ///
|
15560 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15561 + | /// /* ServerBuilderGenerator.kt:260 */
|
10569 15562 | /// The builder fails to construct a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) if a [`ConstraintViolation`] occurs.
|
10570 15563 | ///
|
15564 + | /* ServerBuilderGenerator.kt:271 */
|
10571 15565 | pub fn build(
|
10572 15566 | self,
|
10573 15567 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
10574 15568 | {
|
10575 15569 | self.build_enforcing_all_constraints()
|
10576 15570 | }
|
15571 + | /* ServerBuilderGenerator.kt:283 */
|
10577 15572 | fn build_enforcing_all_constraints(
|
10578 15573 | self,
|
10579 15574 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
10580 15575 | {
|
10581 - | Ok(crate::input::MalformedTimestampPathHttpDateInput {
|
15576 + | /* ServerBuilderGenerator.kt:287 */
|
15577 + | Ok(
|
15578 + | /* ServerBuilderGenerator.kt:542 */
|
15579 + | crate::input::MalformedTimestampPathHttpDateInput {
|
15580 + | /* ServerBuilderGenerator.kt:546 */
|
10582 15581 | timestamp: self
|
10583 15582 | .timestamp
|
15583 + | /* ServerBuilderGenerator.kt:569 */
|
10584 15584 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10585 - | })
|
15585 + | /* ServerBuilderGenerator.kt:542 */
|
15586 + | }, /* ServerBuilderGenerator.kt:287 */
|
15587 + | )
|
15588 + | /* ServerBuilderGenerator.kt:283 */
|
10586 15589 | }
|
15590 + | /* ServerBuilderGenerator.kt:215 */
|
10587 15591 | }
|
15592 + |
|
15593 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10588 15594 | }
|
10589 - | /// See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15595 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
10590 15596 | pub mod malformed_timestamp_path_http_date_input {
|
10591 15597 |
|
15598 + | /* RustType.kt:516 */
|
10592 15599 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10593 - | /// Holds one variant for each of the ways the builder can fail.
|
10594 - |
|
15600 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15601 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10595 15602 | #[allow(clippy::enum_variant_names)]
|
10596 15603 | pub enum ConstraintViolation {
|
10597 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
15604 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
15605 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10598 15606 | MissingTimestamp,
|
15607 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10599 15608 | }
|
15609 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10600 15610 | impl ::std::fmt::Display for ConstraintViolation {
|
15611 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10601 15612 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15613 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10602 15614 | match self {
|
10603 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
10604 - | }
|
15615 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
15616 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15617 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10605 15618 | }
|
15619 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10606 15620 | }
|
15621 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10607 15622 | impl ::std::error::Error for ConstraintViolation {}
|
15623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
10608 15624 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathHttpDateInput {
|
10609 15625 | type Error = ConstraintViolation;
|
10610 15626 |
|
10611 15627 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10612 15628 | builder.build()
|
10613 15629 | }
|
10614 15630 | }
|
10615 - | /// A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15631 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15632 + | /* RustType.kt:516 */
|
10616 15633 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10617 15635 | pub struct Builder {
|
15636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10618 15637 | pub(crate) timestamp:
|
10619 15638 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10620 15640 | }
|
15641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10621 15642 | impl Builder {
|
15643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10622 15644 | #[allow(missing_docs)] // documentation missing in model
|
15645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10623 15646 | pub fn timestamp(
|
10624 15647 | mut self,
|
10625 15648 | input: ::aws_smithy_http_server_python::types::DateTime,
|
10626 15649 | ) -> Self {
|
10627 - | self.timestamp = Some(input);
|
15650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
15651 + | self.timestamp =
|
15652 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
15653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
15654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
15655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10628 15656 | self
|
15657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10629 15658 | }
|
10630 - | /// Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
10631 - | ///
|
15659 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
15660 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
10632 15661 | /// The builder fails to construct a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) if you do not provide a value for all non-`Option`al members.
|
10633 15662 | ///
|
15663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10634 15664 | pub fn build(
|
10635 15665 | self,
|
10636 15666 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
10637 15667 | {
|
10638 15668 | self.build_enforcing_required_and_enum_traits()
|
10639 15669 | }
|
15670 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10640 15671 | fn build_enforcing_required_and_enum_traits(
|
10641 15672 | self,
|
10642 15673 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
10643 15674 | {
|
10644 - | Ok(crate::input::MalformedTimestampPathHttpDateInput {
|
15675 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15676 + | Ok(
|
15677 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15678 + | crate::input::MalformedTimestampPathHttpDateInput {
|
15679 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10645 15680 | timestamp: self
|
10646 15681 | .timestamp
|
15682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10647 15683 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10648 - | })
|
15684 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15685 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15686 + | )
|
15687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10649 15688 | }
|
15689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10650 15690 | }
|
15691 + |
|
15692 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10651 15693 | }
|
10652 - | /// See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15694 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
10653 15695 | pub(crate) mod malformed_timestamp_path_default_input_internal {
|
10654 15696 |
|
15697 + | /* RustType.kt:516 */
|
10655 15698 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10656 - | /// Holds one variant for each of the ways the builder can fail.
|
15699 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15700 + | /* RustType.kt:516 */
|
10657 15701 | #[non_exhaustive]
|
15702 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10658 15703 | #[allow(clippy::enum_variant_names)]
|
10659 15704 | pub(crate) enum ConstraintViolation {
|
10660 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
15705 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
15706 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10661 15707 | MissingTimestamp,
|
15708 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10662 15709 | }
|
15710 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10663 15711 | impl ::std::fmt::Display for ConstraintViolation {
|
15712 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10664 15713 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15714 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10665 15715 | match self {
|
10666 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
10667 - | }
|
15716 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
15717 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15718 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10668 15719 | }
|
15720 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10669 15721 | }
|
15722 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10670 15723 | impl ::std::error::Error for ConstraintViolation {}
|
15724 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10671 15725 | impl ConstraintViolation {
|
10672 15726 | pub(crate) fn as_validation_exception_field(
|
10673 15727 | self,
|
10674 15728 | path: ::std::string::String,
|
10675 15729 | ) -> crate::model::ValidationExceptionField {
|
10676 15730 | match self {
|
10677 15731 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
10678 15732 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
10679 15733 | path: path + "/timestamp",
|
10680 15734 | },
|
10681 15735 | }
|
10682 15736 | }
|
10683 15737 | }
|
15738 + | /* ServerBuilderGenerator.kt:234 */
|
10684 15739 | impl ::std::convert::From<ConstraintViolation>
|
10685 15740 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10686 15741 | {
|
10687 15742 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10688 15743 | let first_validation_exception_field =
|
10689 15744 | constraint_violation.as_validation_exception_field("".to_owned());
|
10690 15745 | let validation_exception = crate::error::ValidationException {
|
10691 15746 | message: format!(
|
10692 15747 | "1 validation error detected. {}",
|
10693 15748 | &first_validation_exception_field.message
|
10694 15749 | ),
|
10695 15750 | field_list: Some(vec![first_validation_exception_field]),
|
10696 15751 | };
|
10697 15752 | Self::ConstraintViolation(
|
10698 15753 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10699 15754 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10700 15755 | )
|
10701 15756 | }
|
10702 15757 | }
|
15758 + | /* ServerBuilderGenerator.kt:244 */
|
10703 15759 | impl ::std::convert::From<Builder>
|
10704 15760 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathDefaultInput>
|
10705 15761 | {
|
10706 15762 | fn from(builder: Builder) -> Self {
|
10707 15763 | Self::Unconstrained(builder)
|
10708 15764 | }
|
10709 15765 | }
|
15766 + | /* ServerBuilderGenerator.kt:446 */
|
10710 15767 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathDefaultInput {
|
10711 15768 | type Error = ConstraintViolation;
|
10712 15769 |
|
10713 15770 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10714 15771 | builder.build()
|
10715 15772 | }
|
10716 15773 | }
|
10717 - | /// A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15774 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15775 + | /* RustType.kt:516 */
|
10718 15776 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15777 + | /* ServerBuilderGenerator.kt:211 */
|
10719 15778 | pub(crate) struct Builder {
|
15779 + | /* ServerBuilderGenerator.kt:308 */
|
10720 15780 | pub(crate) timestamp:
|
10721 15781 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15782 + | /* ServerBuilderGenerator.kt:211 */
|
10722 15783 | }
|
15784 + | /* ServerBuilderGenerator.kt:215 */
|
10723 15785 | impl Builder {
|
15786 + | /* ServerBuilderGenerator.kt:426 */
|
10724 15787 | #[allow(missing_docs)] // documentation missing in model
|
15788 + | /* ServerBuilderGenerator.kt:428 */
|
10725 15789 | pub(crate) fn set_timestamp(
|
10726 15790 | mut self,
|
10727 15791 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
10728 15792 | ) -> Self {
|
15793 + | /* ServerBuilderGenerator.kt:429 */
|
10729 15794 | self.timestamp = Some(input.into());
|
10730 15795 | self
|
15796 + | /* ServerBuilderGenerator.kt:428 */
|
10731 15797 | }
|
10732 - | /// Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
10733 - | ///
|
15798 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15799 + | /// /* ServerBuilderGenerator.kt:260 */
|
10734 15800 | /// The builder fails to construct a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) if a [`ConstraintViolation`] occurs.
|
10735 15801 | ///
|
15802 + | /* ServerBuilderGenerator.kt:271 */
|
10736 15803 | pub fn build(
|
10737 15804 | self,
|
10738 15805 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
10739 15806 | self.build_enforcing_all_constraints()
|
10740 15807 | }
|
15808 + | /* ServerBuilderGenerator.kt:283 */
|
10741 15809 | fn build_enforcing_all_constraints(
|
10742 15810 | self,
|
10743 15811 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
10744 - | Ok(crate::input::MalformedTimestampPathDefaultInput {
|
15812 + | /* ServerBuilderGenerator.kt:287 */
|
15813 + | Ok(
|
15814 + | /* ServerBuilderGenerator.kt:542 */
|
15815 + | crate::input::MalformedTimestampPathDefaultInput {
|
15816 + | /* ServerBuilderGenerator.kt:546 */
|
10745 15817 | timestamp: self
|
10746 15818 | .timestamp
|
15819 + | /* ServerBuilderGenerator.kt:569 */
|
10747 15820 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10748 - | })
|
15821 + | /* ServerBuilderGenerator.kt:542 */
|
15822 + | }, /* ServerBuilderGenerator.kt:287 */
|
15823 + | )
|
15824 + | /* ServerBuilderGenerator.kt:283 */
|
10749 15825 | }
|
15826 + | /* ServerBuilderGenerator.kt:215 */
|
10750 15827 | }
|
15828 + |
|
15829 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10751 15830 | }
|
10752 - | /// See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15831 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
10753 15832 | pub mod malformed_timestamp_path_default_input {
|
10754 15833 |
|
15834 + | /* RustType.kt:516 */
|
10755 15835 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10756 - | /// Holds one variant for each of the ways the builder can fail.
|
10757 - |
|
15836 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15837 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10758 15838 | #[allow(clippy::enum_variant_names)]
|
10759 15839 | pub enum ConstraintViolation {
|
10760 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
15840 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
15841 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10761 15842 | MissingTimestamp,
|
15843 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10762 15844 | }
|
15845 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10763 15846 | impl ::std::fmt::Display for ConstraintViolation {
|
15847 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10764 15848 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15849 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10765 15850 | match self {
|
10766 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
10767 - | }
|
15851 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
15852 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15853 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10768 15854 | }
|
15855 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10769 15856 | }
|
15857 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10770 15858 | impl ::std::error::Error for ConstraintViolation {}
|
15859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
10771 15860 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathDefaultInput {
|
10772 15861 | type Error = ConstraintViolation;
|
10773 15862 |
|
10774 15863 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10775 15864 | builder.build()
|
10776 15865 | }
|
10777 15866 | }
|
10778 - | /// A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15867 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15868 + | /* RustType.kt:516 */
|
10779 15869 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15870 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10780 15871 | pub struct Builder {
|
15872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10781 15873 | pub(crate) timestamp:
|
10782 15874 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10783 15876 | }
|
15877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10784 15878 | impl Builder {
|
15879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10785 15880 | #[allow(missing_docs)] // documentation missing in model
|
15881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10786 15882 | pub fn timestamp(
|
10787 15883 | mut self,
|
10788 15884 | input: ::aws_smithy_http_server_python::types::DateTime,
|
10789 15885 | ) -> Self {
|
10790 - | self.timestamp = Some(input);
|
15886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
15887 + | self.timestamp =
|
15888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
15889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
15890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
15891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10791 15892 | self
|
15893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10792 15894 | }
|
10793 - | /// Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
10794 - | ///
|
15895 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
15896 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
10795 15897 | /// The builder fails to construct a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) if you do not provide a value for all non-`Option`al members.
|
10796 15898 | ///
|
15899 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10797 15900 | pub fn build(
|
10798 15901 | self,
|
10799 15902 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
10800 15903 | self.build_enforcing_required_and_enum_traits()
|
10801 15904 | }
|
15905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10802 15906 | fn build_enforcing_required_and_enum_traits(
|
10803 15907 | self,
|
10804 15908 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
10805 - | Ok(crate::input::MalformedTimestampPathDefaultInput {
|
15909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15910 + | Ok(
|
15911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15912 + | crate::input::MalformedTimestampPathDefaultInput {
|
15913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
10806 15914 | timestamp: self
|
10807 15915 | .timestamp
|
15916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
10808 15917 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
10809 - | })
|
15918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15919 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
15920 + | )
|
15921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10810 15922 | }
|
15923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10811 15924 | }
|
15925 + |
|
15926 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10812 15927 | }
|
10813 - | /// See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15928 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
10814 15929 | pub(crate) mod malformed_string_input_internal {
|
10815 15930 |
|
15931 + | /* ServerBuilderGenerator.kt:461 */
|
10816 15932 | impl ::std::convert::From<Builder> for crate::input::MalformedStringInput {
|
10817 15933 | fn from(builder: Builder) -> Self {
|
10818 15934 | builder.build()
|
10819 15935 | }
|
10820 15936 | }
|
10821 - | /// A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15937 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15938 + | /* RustType.kt:516 */
|
10822 15939 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15940 + | /* ServerBuilderGenerator.kt:211 */
|
10823 15941 | pub(crate) struct Builder {
|
15942 + | /* ServerBuilderGenerator.kt:308 */
|
10824 15943 | pub(crate) blob: ::std::option::Option<::std::string::String>,
|
15944 + | /* ServerBuilderGenerator.kt:211 */
|
10825 15945 | }
|
15946 + | /* ServerBuilderGenerator.kt:215 */
|
10826 15947 | impl Builder {
|
15948 + | /* ServerBuilderGenerator.kt:426 */
|
10827 15949 | #[allow(missing_docs)] // documentation missing in model
|
15950 + | /* ServerBuilderGenerator.kt:428 */
|
10828 15951 | pub(crate) fn set_blob(
|
10829 15952 | mut self,
|
10830 15953 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10831 15954 | ) -> Self {
|
15955 + | /* ServerBuilderGenerator.kt:429 */
|
10832 15956 | self.blob = input.map(|v| v.into());
|
10833 15957 | self
|
15958 + | /* ServerBuilderGenerator.kt:428 */
|
10834 15959 | }
|
10835 - | /// Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15960 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15961 + | /* ServerBuilderGenerator.kt:271 */
|
10836 15962 | pub fn build(self) -> crate::input::MalformedStringInput {
|
10837 15963 | self.build_enforcing_all_constraints()
|
10838 15964 | }
|
15965 + | /* ServerBuilderGenerator.kt:283 */
|
10839 15966 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedStringInput {
|
10840 - | crate::input::MalformedStringInput { blob: self.blob }
|
15967 + | /* ServerBuilderGenerator.kt:542 */
|
15968 + | crate::input::MalformedStringInput {
|
15969 + | /* ServerBuilderGenerator.kt:546 */
|
15970 + | blob: self.blob,
|
15971 + | /* ServerBuilderGenerator.kt:542 */
|
15972 + | }
|
15973 + | /* ServerBuilderGenerator.kt:283 */
|
10841 15974 | }
|
15975 + | /* ServerBuilderGenerator.kt:215 */
|
10842 15976 | }
|
15977 + |
|
15978 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10843 15979 | }
|
10844 - | /// See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15980 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
10845 15981 | pub mod malformed_string_input {
|
10846 15982 |
|
15983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
10847 15984 | impl ::std::convert::From<Builder> for crate::input::MalformedStringInput {
|
10848 15985 | fn from(builder: Builder) -> Self {
|
10849 15986 | builder.build()
|
10850 15987 | }
|
10851 15988 | }
|
10852 - | /// A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15989 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
15990 + | /* RustType.kt:516 */
|
10853 15991 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10854 15993 | pub struct Builder {
|
15994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
10855 15995 | pub(crate) blob: ::std::option::Option<::std::string::String>,
|
15996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
10856 15997 | }
|
15998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10857 15999 | impl Builder {
|
16000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
10858 16001 | #[allow(missing_docs)] // documentation missing in model
|
16002 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10859 16003 | pub fn blob(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10860 - | self.blob = input;
|
16004 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16005 + | self.blob =
|
16006 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
10861 16008 | self
|
16009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
10862 16010 | }
|
10863 - | /// Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
16011 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
16012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
10864 16013 | pub fn build(self) -> crate::input::MalformedStringInput {
|
10865 16014 | self.build_enforcing_required_and_enum_traits()
|
10866 16015 | }
|
16016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10867 16017 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MalformedStringInput {
|
10868 - | crate::input::MalformedStringInput { blob: self.blob }
|
16018 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16019 + | crate::input::MalformedStringInput {
|
16020 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16021 + | blob: self.blob,
|
16022 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16023 + | }
|
16024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
10869 16025 | }
|
16026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
10870 16027 | }
|
16028 + |
|
16029 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10871 16030 | }
|
10872 - | /// See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16031 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
10873 16032 | pub(crate) mod malformed_double_input_internal {
|
10874 16033 |
|
16034 + | /* RustType.kt:516 */
|
10875 16035 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10876 - | /// Holds one variant for each of the ways the builder can fail.
|
16036 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16037 + | /* RustType.kt:516 */
|
10877 16038 | #[non_exhaustive]
|
16039 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10878 16040 | #[allow(clippy::enum_variant_names)]
|
10879 16041 | pub(crate) enum ConstraintViolation {
|
10880 - | /// `double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
16042 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
16043 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10881 16044 | MissingDoubleInPath,
|
16045 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10882 16046 | }
|
16047 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10883 16048 | impl ::std::fmt::Display for ConstraintViolation {
|
16049 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10884 16050 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16051 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10885 16052 | match self {
|
10886 - | ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
10887 - | }
|
16053 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
16054 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16055 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10888 16056 | }
|
16057 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10889 16058 | }
|
16059 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10890 16060 | impl ::std::error::Error for ConstraintViolation {}
|
16061 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10891 16062 | impl ConstraintViolation {
|
10892 16063 | pub(crate) fn as_validation_exception_field(
|
10893 16064 | self,
|
10894 16065 | path: ::std::string::String,
|
10895 16066 | ) -> crate::model::ValidationExceptionField {
|
10896 16067 | match self {
|
10897 16068 | ConstraintViolation::MissingDoubleInPath => crate::model::ValidationExceptionField {
|
10898 16069 | message: format!("Value at '{}/doubleInPath' failed to satisfy constraint: Member must not be null", path),
|
10899 16070 | path: path + "/doubleInPath",
|
10900 16071 | },
|
10901 16072 | }
|
10902 16073 | }
|
10903 16074 | }
|
16075 + | /* ServerBuilderGenerator.kt:234 */
|
10904 16076 | impl ::std::convert::From<ConstraintViolation>
|
10905 16077 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10906 16078 | {
|
10907 16079 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10908 16080 | let first_validation_exception_field =
|
10909 16081 | constraint_violation.as_validation_exception_field("".to_owned());
|
10910 16082 | let validation_exception = crate::error::ValidationException {
|
10911 16083 | message: format!(
|
10912 16084 | "1 validation error detected. {}",
|
10913 16085 | &first_validation_exception_field.message
|
10914 16086 | ),
|
10915 16087 | field_list: Some(vec![first_validation_exception_field]),
|
10916 16088 | };
|
10917 16089 | Self::ConstraintViolation(
|
10918 16090 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10919 16091 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10920 16092 | )
|
10921 16093 | }
|
10922 16094 | }
|
16095 + | /* ServerBuilderGenerator.kt:244 */
|
10923 16096 | impl ::std::convert::From<Builder>
|
10924 16097 | for crate::constrained::MaybeConstrained<crate::input::MalformedDoubleInput>
|
10925 16098 | {
|
10926 16099 | fn from(builder: Builder) -> Self {
|
10927 16100 | Self::Unconstrained(builder)
|
10928 16101 | }
|
10929 16102 | }
|
16103 + | /* ServerBuilderGenerator.kt:446 */
|
10930 16104 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedDoubleInput {
|
10931 16105 | type Error = ConstraintViolation;
|
10932 16106 |
|
10933 16107 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10934 16108 | builder.build()
|
10935 16109 | }
|
10936 16110 | }
|
10937 - | /// A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16111 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16112 + | /* RustType.kt:516 */
|
10938 16113 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16114 + | /* ServerBuilderGenerator.kt:211 */
|
10939 16115 | pub(crate) struct Builder {
|
16116 + | /* ServerBuilderGenerator.kt:308 */
|
10940 16117 | pub(crate) double_in_body: ::std::option::Option<f64>,
|
16118 + | /* ServerBuilderGenerator.kt:308 */
|
10941 16119 | pub(crate) double_in_path: ::std::option::Option<f64>,
|
16120 + | /* ServerBuilderGenerator.kt:308 */
|
10942 16121 | pub(crate) double_in_query: ::std::option::Option<f64>,
|
16122 + | /* ServerBuilderGenerator.kt:308 */
|
10943 16123 | pub(crate) double_in_header: ::std::option::Option<f64>,
|
16124 + | /* ServerBuilderGenerator.kt:211 */
|
10944 16125 | }
|
16126 + | /* ServerBuilderGenerator.kt:215 */
|
10945 16127 | impl Builder {
|
16128 + | /* ServerBuilderGenerator.kt:426 */
|
10946 16129 | #[allow(missing_docs)] // documentation missing in model
|
16130 + | /* ServerBuilderGenerator.kt:428 */
|
10947 16131 | pub(crate) fn set_double_in_body(
|
10948 16132 | mut self,
|
10949 16133 | input: Option<impl ::std::convert::Into<f64>>,
|
10950 16134 | ) -> Self {
|
16135 + | /* ServerBuilderGenerator.kt:429 */
|
10951 16136 | self.double_in_body = input.map(|v| v.into());
|
10952 16137 | self
|
16138 + | /* ServerBuilderGenerator.kt:428 */
|
10953 16139 | }
|
16140 + | /* ServerBuilderGenerator.kt:426 */
|
10954 16141 | #[allow(missing_docs)] // documentation missing in model
|
16142 + | /* ServerBuilderGenerator.kt:428 */
|
10955 16143 | pub(crate) fn set_double_in_path(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
16144 + | /* ServerBuilderGenerator.kt:429 */
|
10956 16145 | self.double_in_path = Some(input.into());
|
10957 16146 | self
|
16147 + | /* ServerBuilderGenerator.kt:428 */
|
10958 16148 | }
|
16149 + | /* ServerBuilderGenerator.kt:426 */
|
10959 16150 | #[allow(missing_docs)] // documentation missing in model
|
16151 + | /* ServerBuilderGenerator.kt:428 */
|
10960 16152 | pub(crate) fn set_double_in_query(
|
10961 16153 | mut self,
|
10962 16154 | input: Option<impl ::std::convert::Into<f64>>,
|
10963 16155 | ) -> Self {
|
16156 + | /* ServerBuilderGenerator.kt:429 */
|
10964 16157 | self.double_in_query = input.map(|v| v.into());
|
10965 16158 | self
|
16159 + | /* ServerBuilderGenerator.kt:428 */
|
10966 16160 | }
|
16161 + | /* ServerBuilderGenerator.kt:426 */
|
10967 16162 | #[allow(missing_docs)] // documentation missing in model
|
16163 + | /* ServerBuilderGenerator.kt:428 */
|
10968 16164 | pub(crate) fn set_double_in_header(
|
10969 16165 | mut self,
|
10970 16166 | input: Option<impl ::std::convert::Into<f64>>,
|
10971 16167 | ) -> Self {
|
16168 + | /* ServerBuilderGenerator.kt:429 */
|
10972 16169 | self.double_in_header = input.map(|v| v.into());
|
10973 16170 | self
|
16171 + | /* ServerBuilderGenerator.kt:428 */
|
10974 16172 | }
|
10975 - | /// Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
10976 - | ///
|
16173 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16174 + | /// /* ServerBuilderGenerator.kt:260 */
|
10977 16175 | /// The builder fails to construct a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) if a [`ConstraintViolation`] occurs.
|
10978 16176 | ///
|
16177 + | /* ServerBuilderGenerator.kt:271 */
|
10979 16178 | pub fn build(self) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
10980 16179 | self.build_enforcing_all_constraints()
|
10981 16180 | }
|
16181 + | /* ServerBuilderGenerator.kt:283 */
|
10982 16182 | fn build_enforcing_all_constraints(
|
10983 16183 | self,
|
10984 16184 | ) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
10985 - | Ok(crate::input::MalformedDoubleInput {
|
16185 + | /* ServerBuilderGenerator.kt:287 */
|
16186 + | Ok(
|
16187 + | /* ServerBuilderGenerator.kt:542 */
|
16188 + | crate::input::MalformedDoubleInput {
|
16189 + | /* ServerBuilderGenerator.kt:546 */
|
10986 16190 | double_in_body: self.double_in_body,
|
16191 + | /* ServerBuilderGenerator.kt:546 */
|
10987 16192 | double_in_path: self
|
10988 16193 | .double_in_path
|
16194 + | /* ServerBuilderGenerator.kt:569 */
|
10989 16195 | .ok_or(ConstraintViolation::MissingDoubleInPath)?,
|
16196 + | /* ServerBuilderGenerator.kt:546 */
|
10990 16197 | double_in_query: self.double_in_query,
|
16198 + | /* ServerBuilderGenerator.kt:546 */
|
10991 16199 | double_in_header: self.double_in_header,
|
10992 - | })
|
16200 + | /* ServerBuilderGenerator.kt:542 */
|
16201 + | }, /* ServerBuilderGenerator.kt:287 */
|
16202 + | )
|
16203 + | /* ServerBuilderGenerator.kt:283 */
|
10993 16204 | }
|
16205 + | /* ServerBuilderGenerator.kt:215 */
|
10994 16206 | }
|
16207 + |
|
16208 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10995 16209 | }
|
10996 - | /// See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16210 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
10997 16211 | pub mod malformed_double_input {
|
10998 16212 |
|
16213 + | /* RustType.kt:516 */
|
10999 16214 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11000 - | /// Holds one variant for each of the ways the builder can fail.
|
11001 - |
|
16215 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16216 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11002 16217 | #[allow(clippy::enum_variant_names)]
|
11003 16218 | pub enum ConstraintViolation {
|
11004 - | /// `double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
16219 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
16220 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11005 16221 | MissingDoubleInPath,
|
16222 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11006 16223 | }
|
16224 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11007 16225 | impl ::std::fmt::Display for ConstraintViolation {
|
16226 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11008 16227 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16228 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11009 16229 | match self {
|
11010 - | ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
11011 - | }
|
16230 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
16231 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16232 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11012 16233 | }
|
16234 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11013 16235 | }
|
16236 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11014 16237 | impl ::std::error::Error for ConstraintViolation {}
|
16238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
11015 16239 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedDoubleInput {
|
11016 16240 | type Error = ConstraintViolation;
|
11017 16241 |
|
11018 16242 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11019 16243 | builder.build()
|
11020 16244 | }
|
11021 16245 | }
|
11022 - | /// A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16246 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16247 + | /* RustType.kt:516 */
|
11023 16248 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11024 16250 | pub struct Builder {
|
16251 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11025 16252 | pub(crate) double_in_body: ::std::option::Option<f64>,
|
16253 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11026 16254 | pub(crate) double_in_path: ::std::option::Option<f64>,
|
16255 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11027 16256 | pub(crate) double_in_query: ::std::option::Option<f64>,
|
16257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11028 16258 | pub(crate) double_in_header: ::std::option::Option<f64>,
|
16259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11029 16260 | }
|
16261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11030 16262 | impl Builder {
|
16263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11031 16264 | #[allow(missing_docs)] // documentation missing in model
|
16265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11032 16266 | pub fn double_in_body(mut self, input: ::std::option::Option<f64>) -> Self {
|
11033 - | self.double_in_body = input;
|
16267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16268 + | self.double_in_body =
|
16269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11034 16271 | self
|
16272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11035 16273 | }
|
16274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11036 16275 | #[allow(missing_docs)] // documentation missing in model
|
16276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11037 16277 | pub fn double_in_path(mut self, input: f64) -> Self {
|
11038 - | self.double_in_path = Some(input);
|
16278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16279 + | self.double_in_path =
|
16280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
16281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16282 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
16283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11039 16284 | self
|
16285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11040 16286 | }
|
16287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11041 16288 | #[allow(missing_docs)] // documentation missing in model
|
16289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11042 16290 | pub fn double_in_query(mut self, input: ::std::option::Option<f64>) -> Self {
|
11043 - | self.double_in_query = input;
|
16291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16292 + | self.double_in_query =
|
16293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11044 16295 | self
|
16296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11045 16297 | }
|
16298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11046 16299 | #[allow(missing_docs)] // documentation missing in model
|
16300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11047 16301 | pub fn double_in_header(mut self, input: ::std::option::Option<f64>) -> Self {
|
11048 - | self.double_in_header = input;
|
16302 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16303 + | self.double_in_header =
|
16304 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16305 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11049 16306 | self
|
16307 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11050 16308 | }
|
11051 - | /// Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
11052 - | ///
|
16309 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
16310 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
11053 16311 | /// The builder fails to construct a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) if you do not provide a value for all non-`Option`al members.
|
11054 16312 | ///
|
16313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11055 16314 | pub fn build(self) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
11056 16315 | self.build_enforcing_required_and_enum_traits()
|
11057 16316 | }
|
16317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11058 16318 | fn build_enforcing_required_and_enum_traits(
|
11059 16319 | self,
|
11060 16320 | ) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
11061 - | Ok(crate::input::MalformedDoubleInput {
|
16321 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16322 + | Ok(
|
16323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16324 + | crate::input::MalformedDoubleInput {
|
16325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11062 16326 | double_in_body: self.double_in_body,
|
16327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11063 16328 | double_in_path: self
|
11064 16329 | .double_in_path
|
16330 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11065 16331 | .ok_or(ConstraintViolation::MissingDoubleInPath)?,
|
16332 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11066 16333 | double_in_query: self.double_in_query,
|
16334 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11067 16335 | double_in_header: self.double_in_header,
|
11068 - | })
|
16336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16337 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16338 + | )
|
16339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11069 16340 | }
|
16341 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11070 16342 | }
|
16343 + |
|
16344 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11071 16345 | }
|
11072 - | /// See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16346 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
11073 16347 | pub(crate) mod malformed_float_input_internal {
|
11074 16348 |
|
16349 + | /* RustType.kt:516 */
|
11075 16350 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11076 - | /// Holds one variant for each of the ways the builder can fail.
|
16351 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16352 + | /* RustType.kt:516 */
|
11077 16353 | #[non_exhaustive]
|
16354 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11078 16355 | #[allow(clippy::enum_variant_names)]
|
11079 16356 | pub(crate) enum ConstraintViolation {
|
11080 - | /// `float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
16357 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
16358 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11081 16359 | MissingFloatInPath,
|
16360 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11082 16361 | }
|
16362 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11083 16363 | impl ::std::fmt::Display for ConstraintViolation {
|
16364 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11084 16365 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16366 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11085 16367 | match self {
|
11086 - | ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
11087 - | }
|
16368 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
16369 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16370 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11088 16371 | }
|
16372 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11089 16373 | }
|
16374 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11090 16375 | impl ::std::error::Error for ConstraintViolation {}
|
16376 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11091 16377 | impl ConstraintViolation {
|
11092 16378 | pub(crate) fn as_validation_exception_field(
|
11093 16379 | self,
|
11094 16380 | path: ::std::string::String,
|
11095 16381 | ) -> crate::model::ValidationExceptionField {
|
11096 16382 | match self {
|
11097 16383 | ConstraintViolation::MissingFloatInPath => crate::model::ValidationExceptionField {
|
11098 16384 | message: format!("Value at '{}/floatInPath' failed to satisfy constraint: Member must not be null", path),
|
11099 16385 | path: path + "/floatInPath",
|
11100 16386 | },
|
11101 16387 | }
|
11102 16388 | }
|
11103 16389 | }
|
16390 + | /* ServerBuilderGenerator.kt:234 */
|
11104 16391 | impl ::std::convert::From<ConstraintViolation>
|
11105 16392 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11106 16393 | {
|
11107 16394 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11108 16395 | let first_validation_exception_field =
|
11109 16396 | constraint_violation.as_validation_exception_field("".to_owned());
|
11110 16397 | let validation_exception = crate::error::ValidationException {
|
11111 16398 | message: format!(
|
11112 16399 | "1 validation error detected. {}",
|
11113 16400 | &first_validation_exception_field.message
|
11114 16401 | ),
|
11115 16402 | field_list: Some(vec![first_validation_exception_field]),
|
11116 16403 | };
|
11117 16404 | Self::ConstraintViolation(
|
11118 16405 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11119 16406 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11120 16407 | )
|
11121 16408 | }
|
11122 16409 | }
|
16410 + | /* ServerBuilderGenerator.kt:244 */
|
11123 16411 | impl ::std::convert::From<Builder>
|
11124 16412 | for crate::constrained::MaybeConstrained<crate::input::MalformedFloatInput>
|
11125 16413 | {
|
11126 16414 | fn from(builder: Builder) -> Self {
|
11127 16415 | Self::Unconstrained(builder)
|
11128 16416 | }
|
11129 16417 | }
|
16418 + | /* ServerBuilderGenerator.kt:446 */
|
11130 16419 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedFloatInput {
|
11131 16420 | type Error = ConstraintViolation;
|
11132 16421 |
|
11133 16422 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11134 16423 | builder.build()
|
11135 16424 | }
|
11136 16425 | }
|
11137 - | /// A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16426 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16427 + | /* RustType.kt:516 */
|
11138 16428 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16429 + | /* ServerBuilderGenerator.kt:211 */
|
11139 16430 | pub(crate) struct Builder {
|
16431 + | /* ServerBuilderGenerator.kt:308 */
|
11140 16432 | pub(crate) float_in_body: ::std::option::Option<f32>,
|
16433 + | /* ServerBuilderGenerator.kt:308 */
|
11141 16434 | pub(crate) float_in_path: ::std::option::Option<f32>,
|
16435 + | /* ServerBuilderGenerator.kt:308 */
|
11142 16436 | pub(crate) float_in_query: ::std::option::Option<f32>,
|
16437 + | /* ServerBuilderGenerator.kt:308 */
|
11143 16438 | pub(crate) float_in_header: ::std::option::Option<f32>,
|
16439 + | /* ServerBuilderGenerator.kt:211 */
|
11144 16440 | }
|
16441 + | /* ServerBuilderGenerator.kt:215 */
|
11145 16442 | impl Builder {
|
16443 + | /* ServerBuilderGenerator.kt:426 */
|
11146 16444 | #[allow(missing_docs)] // documentation missing in model
|
16445 + | /* ServerBuilderGenerator.kt:428 */
|
11147 16446 | pub(crate) fn set_float_in_body(
|
11148 16447 | mut self,
|
11149 16448 | input: Option<impl ::std::convert::Into<f32>>,
|
11150 16449 | ) -> Self {
|
16450 + | /* ServerBuilderGenerator.kt:429 */
|
11151 16451 | self.float_in_body = input.map(|v| v.into());
|
11152 16452 | self
|
16453 + | /* ServerBuilderGenerator.kt:428 */
|
11153 16454 | }
|
16455 + | /* ServerBuilderGenerator.kt:426 */
|
11154 16456 | #[allow(missing_docs)] // documentation missing in model
|
16457 + | /* ServerBuilderGenerator.kt:428 */
|
11155 16458 | pub(crate) fn set_float_in_path(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
16459 + | /* ServerBuilderGenerator.kt:429 */
|
11156 16460 | self.float_in_path = Some(input.into());
|
11157 16461 | self
|
16462 + | /* ServerBuilderGenerator.kt:428 */
|
11158 16463 | }
|
16464 + | /* ServerBuilderGenerator.kt:426 */
|
11159 16465 | #[allow(missing_docs)] // documentation missing in model
|
16466 + | /* ServerBuilderGenerator.kt:428 */
|
11160 16467 | pub(crate) fn set_float_in_query(
|
11161 16468 | mut self,
|
11162 16469 | input: Option<impl ::std::convert::Into<f32>>,
|
11163 16470 | ) -> Self {
|
16471 + | /* ServerBuilderGenerator.kt:429 */
|
11164 16472 | self.float_in_query = input.map(|v| v.into());
|
11165 16473 | self
|
16474 + | /* ServerBuilderGenerator.kt:428 */
|
11166 16475 | }
|
16476 + | /* ServerBuilderGenerator.kt:426 */
|
11167 16477 | #[allow(missing_docs)] // documentation missing in model
|
16478 + | /* ServerBuilderGenerator.kt:428 */
|
11168 16479 | pub(crate) fn set_float_in_header(
|
11169 16480 | mut self,
|
11170 16481 | input: Option<impl ::std::convert::Into<f32>>,
|
11171 16482 | ) -> Self {
|
16483 + | /* ServerBuilderGenerator.kt:429 */
|
11172 16484 | self.float_in_header = input.map(|v| v.into());
|
11173 16485 | self
|
16486 + | /* ServerBuilderGenerator.kt:428 */
|
11174 16487 | }
|
11175 - | /// Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
11176 - | ///
|
16488 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16489 + | /// /* ServerBuilderGenerator.kt:260 */
|
11177 16490 | /// The builder fails to construct a [`MalformedFloatInput`](crate::input::MalformedFloatInput) if a [`ConstraintViolation`] occurs.
|
11178 16491 | ///
|
16492 + | /* ServerBuilderGenerator.kt:271 */
|
11179 16493 | pub fn build(self) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
11180 16494 | self.build_enforcing_all_constraints()
|
11181 16495 | }
|
16496 + | /* ServerBuilderGenerator.kt:283 */
|
11182 16497 | fn build_enforcing_all_constraints(
|
11183 16498 | self,
|
11184 16499 | ) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
11185 - | Ok(crate::input::MalformedFloatInput {
|
16500 + | /* ServerBuilderGenerator.kt:287 */
|
16501 + | Ok(
|
16502 + | /* ServerBuilderGenerator.kt:542 */
|
16503 + | crate::input::MalformedFloatInput {
|
16504 + | /* ServerBuilderGenerator.kt:546 */
|
11186 16505 | float_in_body: self.float_in_body,
|
16506 + | /* ServerBuilderGenerator.kt:546 */
|
11187 16507 | float_in_path: self
|
11188 16508 | .float_in_path
|
16509 + | /* ServerBuilderGenerator.kt:569 */
|
11189 16510 | .ok_or(ConstraintViolation::MissingFloatInPath)?,
|
16511 + | /* ServerBuilderGenerator.kt:546 */
|
11190 16512 | float_in_query: self.float_in_query,
|
16513 + | /* ServerBuilderGenerator.kt:546 */
|
11191 16514 | float_in_header: self.float_in_header,
|
11192 - | })
|
16515 + | /* ServerBuilderGenerator.kt:542 */
|
16516 + | }, /* ServerBuilderGenerator.kt:287 */
|
16517 + | )
|
16518 + | /* ServerBuilderGenerator.kt:283 */
|
11193 16519 | }
|
16520 + | /* ServerBuilderGenerator.kt:215 */
|
11194 16521 | }
|
16522 + |
|
16523 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11195 16524 | }
|
11196 - | /// See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16525 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
11197 16526 | pub mod malformed_float_input {
|
11198 16527 |
|
16528 + | /* RustType.kt:516 */
|
11199 16529 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11200 - | /// Holds one variant for each of the ways the builder can fail.
|
11201 - |
|
16530 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16531 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11202 16532 | #[allow(clippy::enum_variant_names)]
|
11203 16533 | pub enum ConstraintViolation {
|
11204 - | /// `float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
16534 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
16535 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11205 16536 | MissingFloatInPath,
|
16537 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11206 16538 | }
|
16539 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11207 16540 | impl ::std::fmt::Display for ConstraintViolation {
|
16541 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11208 16542 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16543 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11209 16544 | match self {
|
11210 - | ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
11211 - | }
|
16545 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
16546 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16547 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11212 16548 | }
|
16549 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11213 16550 | }
|
16551 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11214 16552 | impl ::std::error::Error for ConstraintViolation {}
|
16553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
11215 16554 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedFloatInput {
|
11216 16555 | type Error = ConstraintViolation;
|
11217 16556 |
|
11218 16557 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11219 16558 | builder.build()
|
11220 16559 | }
|
11221 16560 | }
|
11222 - | /// A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16561 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16562 + | /* RustType.kt:516 */
|
11223 16563 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11224 16565 | pub struct Builder {
|
16566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11225 16567 | pub(crate) float_in_body: ::std::option::Option<f32>,
|
16568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11226 16569 | pub(crate) float_in_path: ::std::option::Option<f32>,
|
16570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11227 16571 | pub(crate) float_in_query: ::std::option::Option<f32>,
|
16572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11228 16573 | pub(crate) float_in_header: ::std::option::Option<f32>,
|
16574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11229 16575 | }
|
16576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11230 16577 | impl Builder {
|
16578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11231 16579 | #[allow(missing_docs)] // documentation missing in model
|
16580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11232 16581 | pub fn float_in_body(mut self, input: ::std::option::Option<f32>) -> Self {
|
11233 - | self.float_in_body = input;
|
16582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16583 + | self.float_in_body =
|
16584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11234 16586 | self
|
16587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11235 16588 | }
|
16589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11236 16590 | #[allow(missing_docs)] // documentation missing in model
|
16591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11237 16592 | pub fn float_in_path(mut self, input: f32) -> Self {
|
11238 - | self.float_in_path = Some(input);
|
16593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16594 + | self.float_in_path =
|
16595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
16596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16597 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
16598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11239 16599 | self
|
16600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11240 16601 | }
|
16602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11241 16603 | #[allow(missing_docs)] // documentation missing in model
|
16604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11242 16605 | pub fn float_in_query(mut self, input: ::std::option::Option<f32>) -> Self {
|
11243 - | self.float_in_query = input;
|
16606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16607 + | self.float_in_query =
|
16608 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11244 16610 | self
|
16611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11245 16612 | }
|
16613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11246 16614 | #[allow(missing_docs)] // documentation missing in model
|
16615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11247 16616 | pub fn float_in_header(mut self, input: ::std::option::Option<f32>) -> Self {
|
11248 - | self.float_in_header = input;
|
16617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16618 + | self.float_in_header =
|
16619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11249 16621 | self
|
16622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11250 16623 | }
|
11251 - | /// Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
11252 - | ///
|
16624 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
16625 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
11253 16626 | /// The builder fails to construct a [`MalformedFloatInput`](crate::input::MalformedFloatInput) if you do not provide a value for all non-`Option`al members.
|
11254 16627 | ///
|
16628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11255 16629 | pub fn build(self) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
11256 16630 | self.build_enforcing_required_and_enum_traits()
|
11257 16631 | }
|
16632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11258 16633 | fn build_enforcing_required_and_enum_traits(
|
11259 16634 | self,
|
11260 16635 | ) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
11261 - | Ok(crate::input::MalformedFloatInput {
|
16636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16637 + | Ok(
|
16638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16639 + | crate::input::MalformedFloatInput {
|
16640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11262 16641 | float_in_body: self.float_in_body,
|
16642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11263 16643 | float_in_path: self
|
11264 16644 | .float_in_path
|
16645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11265 16646 | .ok_or(ConstraintViolation::MissingFloatInPath)?,
|
16647 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11266 16648 | float_in_query: self.float_in_query,
|
16649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11267 16650 | float_in_header: self.float_in_header,
|
11268 - | })
|
16651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16652 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16653 + | )
|
16654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11269 16655 | }
|
16656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11270 16657 | }
|
16658 + |
|
16659 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11271 16660 | }
|
11272 - | /// See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16661 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
11273 16662 | pub(crate) mod malformed_long_input_internal {
|
11274 16663 |
|
16664 + | /* RustType.kt:516 */
|
11275 16665 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11276 - | /// Holds one variant for each of the ways the builder can fail.
|
16666 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16667 + | /* RustType.kt:516 */
|
11277 16668 | #[non_exhaustive]
|
16669 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11278 16670 | #[allow(clippy::enum_variant_names)]
|
11279 16671 | pub(crate) enum ConstraintViolation {
|
11280 - | /// `long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
16672 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
16673 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11281 16674 | MissingLongInPath,
|
16675 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11282 16676 | }
|
16677 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11283 16678 | impl ::std::fmt::Display for ConstraintViolation {
|
16679 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11284 16680 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16681 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11285 16682 | match self {
|
11286 - | ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
11287 - | }
|
16683 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
16684 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16685 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11288 16686 | }
|
16687 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11289 16688 | }
|
16689 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11290 16690 | impl ::std::error::Error for ConstraintViolation {}
|
16691 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11291 16692 | impl ConstraintViolation {
|
11292 16693 | pub(crate) fn as_validation_exception_field(
|
11293 16694 | self,
|
11294 16695 | path: ::std::string::String,
|
11295 16696 | ) -> crate::model::ValidationExceptionField {
|
11296 16697 | match self {
|
11297 16698 | ConstraintViolation::MissingLongInPath => crate::model::ValidationExceptionField {
|
11298 16699 | message: format!("Value at '{}/longInPath' failed to satisfy constraint: Member must not be null", path),
|
11299 16700 | path: path + "/longInPath",
|
11300 16701 | },
|
11301 16702 | }
|
11302 16703 | }
|
11303 16704 | }
|
16705 + | /* ServerBuilderGenerator.kt:234 */
|
11304 16706 | impl ::std::convert::From<ConstraintViolation>
|
11305 16707 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11306 16708 | {
|
11307 16709 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11308 16710 | let first_validation_exception_field =
|
11309 16711 | constraint_violation.as_validation_exception_field("".to_owned());
|
11310 16712 | let validation_exception = crate::error::ValidationException {
|
11311 16713 | message: format!(
|
11312 16714 | "1 validation error detected. {}",
|
11313 16715 | &first_validation_exception_field.message
|
11314 16716 | ),
|
11315 16717 | field_list: Some(vec![first_validation_exception_field]),
|
11316 16718 | };
|
11317 16719 | Self::ConstraintViolation(
|
11318 16720 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11319 16721 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11320 16722 | )
|
11321 16723 | }
|
11322 16724 | }
|
16725 + | /* ServerBuilderGenerator.kt:244 */
|
11323 16726 | impl ::std::convert::From<Builder>
|
11324 16727 | for crate::constrained::MaybeConstrained<crate::input::MalformedLongInput>
|
11325 16728 | {
|
11326 16729 | fn from(builder: Builder) -> Self {
|
11327 16730 | Self::Unconstrained(builder)
|
11328 16731 | }
|
11329 16732 | }
|
16733 + | /* ServerBuilderGenerator.kt:446 */
|
11330 16734 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedLongInput {
|
11331 16735 | type Error = ConstraintViolation;
|
11332 16736 |
|
11333 16737 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11334 16738 | builder.build()
|
11335 16739 | }
|
11336 16740 | }
|
11337 - | /// A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16741 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16742 + | /* RustType.kt:516 */
|
11338 16743 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16744 + | /* ServerBuilderGenerator.kt:211 */
|
11339 16745 | pub(crate) struct Builder {
|
16746 + | /* ServerBuilderGenerator.kt:308 */
|
11340 16747 | pub(crate) long_in_body: ::std::option::Option<i64>,
|
16748 + | /* ServerBuilderGenerator.kt:308 */
|
11341 16749 | pub(crate) long_in_path: ::std::option::Option<i64>,
|
16750 + | /* ServerBuilderGenerator.kt:308 */
|
11342 16751 | pub(crate) long_in_query: ::std::option::Option<i64>,
|
16752 + | /* ServerBuilderGenerator.kt:308 */
|
11343 16753 | pub(crate) long_in_header: ::std::option::Option<i64>,
|
16754 + | /* ServerBuilderGenerator.kt:211 */
|
11344 16755 | }
|
16756 + | /* ServerBuilderGenerator.kt:215 */
|
11345 16757 | impl Builder {
|
16758 + | /* ServerBuilderGenerator.kt:426 */
|
11346 16759 | #[allow(missing_docs)] // documentation missing in model
|
16760 + | /* ServerBuilderGenerator.kt:428 */
|
11347 16761 | pub(crate) fn set_long_in_body(
|
11348 16762 | mut self,
|
11349 16763 | input: Option<impl ::std::convert::Into<i64>>,
|
11350 16764 | ) -> Self {
|
16765 + | /* ServerBuilderGenerator.kt:429 */
|
11351 16766 | self.long_in_body = input.map(|v| v.into());
|
11352 16767 | self
|
16768 + | /* ServerBuilderGenerator.kt:428 */
|
11353 16769 | }
|
16770 + | /* ServerBuilderGenerator.kt:426 */
|
11354 16771 | #[allow(missing_docs)] // documentation missing in model
|
16772 + | /* ServerBuilderGenerator.kt:428 */
|
11355 16773 | pub(crate) fn set_long_in_path(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
16774 + | /* ServerBuilderGenerator.kt:429 */
|
11356 16775 | self.long_in_path = Some(input.into());
|
11357 16776 | self
|
16777 + | /* ServerBuilderGenerator.kt:428 */
|
11358 16778 | }
|
16779 + | /* ServerBuilderGenerator.kt:426 */
|
11359 16780 | #[allow(missing_docs)] // documentation missing in model
|
16781 + | /* ServerBuilderGenerator.kt:428 */
|
11360 16782 | pub(crate) fn set_long_in_query(
|
11361 16783 | mut self,
|
11362 16784 | input: Option<impl ::std::convert::Into<i64>>,
|
11363 16785 | ) -> Self {
|
16786 + | /* ServerBuilderGenerator.kt:429 */
|
11364 16787 | self.long_in_query = input.map(|v| v.into());
|
11365 16788 | self
|
16789 + | /* ServerBuilderGenerator.kt:428 */
|
11366 16790 | }
|
16791 + | /* ServerBuilderGenerator.kt:426 */
|
11367 16792 | #[allow(missing_docs)] // documentation missing in model
|
16793 + | /* ServerBuilderGenerator.kt:428 */
|
11368 16794 | pub(crate) fn set_long_in_header(
|
11369 16795 | mut self,
|
11370 16796 | input: Option<impl ::std::convert::Into<i64>>,
|
11371 16797 | ) -> Self {
|
16798 + | /* ServerBuilderGenerator.kt:429 */
|
11372 16799 | self.long_in_header = input.map(|v| v.into());
|
11373 16800 | self
|
16801 + | /* ServerBuilderGenerator.kt:428 */
|
11374 16802 | }
|
11375 - | /// Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
11376 - | ///
|
16803 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16804 + | /// /* ServerBuilderGenerator.kt:260 */
|
11377 16805 | /// The builder fails to construct a [`MalformedLongInput`](crate::input::MalformedLongInput) if a [`ConstraintViolation`] occurs.
|
11378 16806 | ///
|
16807 + | /* ServerBuilderGenerator.kt:271 */
|
11379 16808 | pub fn build(self) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
11380 16809 | self.build_enforcing_all_constraints()
|
11381 16810 | }
|
16811 + | /* ServerBuilderGenerator.kt:283 */
|
11382 16812 | fn build_enforcing_all_constraints(
|
11383 16813 | self,
|
11384 16814 | ) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
11385 - | Ok(crate::input::MalformedLongInput {
|
16815 + | /* ServerBuilderGenerator.kt:287 */
|
16816 + | Ok(
|
16817 + | /* ServerBuilderGenerator.kt:542 */
|
16818 + | crate::input::MalformedLongInput {
|
16819 + | /* ServerBuilderGenerator.kt:546 */
|
11386 16820 | long_in_body: self.long_in_body,
|
16821 + | /* ServerBuilderGenerator.kt:546 */
|
11387 16822 | long_in_path: self
|
11388 16823 | .long_in_path
|
16824 + | /* ServerBuilderGenerator.kt:569 */
|
11389 16825 | .ok_or(ConstraintViolation::MissingLongInPath)?,
|
16826 + | /* ServerBuilderGenerator.kt:546 */
|
11390 16827 | long_in_query: self.long_in_query,
|
16828 + | /* ServerBuilderGenerator.kt:546 */
|
11391 16829 | long_in_header: self.long_in_header,
|
11392 - | })
|
16830 + | /* ServerBuilderGenerator.kt:542 */
|
16831 + | }, /* ServerBuilderGenerator.kt:287 */
|
16832 + | )
|
16833 + | /* ServerBuilderGenerator.kt:283 */
|
11393 16834 | }
|
16835 + | /* ServerBuilderGenerator.kt:215 */
|
11394 16836 | }
|
16837 + |
|
16838 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11395 16839 | }
|
11396 - | /// See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16840 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
11397 16841 | pub mod malformed_long_input {
|
11398 16842 |
|
16843 + | /* RustType.kt:516 */
|
11399 16844 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11400 - | /// Holds one variant for each of the ways the builder can fail.
|
11401 - |
|
16845 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16846 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11402 16847 | #[allow(clippy::enum_variant_names)]
|
11403 16848 | pub enum ConstraintViolation {
|
11404 - | /// `long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
16849 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
16850 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11405 16851 | MissingLongInPath,
|
16852 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11406 16853 | }
|
16854 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11407 16855 | impl ::std::fmt::Display for ConstraintViolation {
|
16856 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11408 16857 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16858 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11409 16859 | match self {
|
11410 - | ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
11411 - | }
|
16860 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
16861 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16862 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11412 16863 | }
|
16864 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11413 16865 | }
|
16866 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11414 16867 | impl ::std::error::Error for ConstraintViolation {}
|
16868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
11415 16869 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedLongInput {
|
11416 16870 | type Error = ConstraintViolation;
|
11417 16871 |
|
11418 16872 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11419 16873 | builder.build()
|
11420 16874 | }
|
11421 16875 | }
|
11422 - | /// A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16876 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16877 + | /* RustType.kt:516 */
|
11423 16878 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11424 16880 | pub struct Builder {
|
16881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11425 16882 | pub(crate) long_in_body: ::std::option::Option<i64>,
|
16883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11426 16884 | pub(crate) long_in_path: ::std::option::Option<i64>,
|
16885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11427 16886 | pub(crate) long_in_query: ::std::option::Option<i64>,
|
16887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11428 16888 | pub(crate) long_in_header: ::std::option::Option<i64>,
|
16889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11429 16890 | }
|
16891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11430 16892 | impl Builder {
|
16893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11431 16894 | #[allow(missing_docs)] // documentation missing in model
|
16895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11432 16896 | pub fn long_in_body(mut self, input: ::std::option::Option<i64>) -> Self {
|
11433 - | self.long_in_body = input;
|
16897 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16898 + | self.long_in_body =
|
16899 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11434 16901 | self
|
16902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11435 16903 | }
|
16904 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11436 16905 | #[allow(missing_docs)] // documentation missing in model
|
16906 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11437 16907 | pub fn long_in_path(mut self, input: i64) -> Self {
|
11438 - | self.long_in_path = Some(input);
|
16908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16909 + | self.long_in_path =
|
16910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
16911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
16913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11439 16914 | self
|
16915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11440 16916 | }
|
16917 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11441 16918 | #[allow(missing_docs)] // documentation missing in model
|
16919 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11442 16920 | pub fn long_in_query(mut self, input: ::std::option::Option<i64>) -> Self {
|
11443 - | self.long_in_query = input;
|
16921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16922 + | self.long_in_query =
|
16923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11444 16925 | self
|
16926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11445 16927 | }
|
16928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11446 16929 | #[allow(missing_docs)] // documentation missing in model
|
16930 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11447 16931 | pub fn long_in_header(mut self, input: ::std::option::Option<i64>) -> Self {
|
11448 - | self.long_in_header = input;
|
16932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
16933 + | self.long_in_header =
|
16934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
16935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11449 16936 | self
|
16937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11450 16938 | }
|
11451 - | /// Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
11452 - | ///
|
16939 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
16940 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
11453 16941 | /// The builder fails to construct a [`MalformedLongInput`](crate::input::MalformedLongInput) if you do not provide a value for all non-`Option`al members.
|
11454 16942 | ///
|
16943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11455 16944 | pub fn build(self) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
11456 16945 | self.build_enforcing_required_and_enum_traits()
|
11457 16946 | }
|
16947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11458 16948 | fn build_enforcing_required_and_enum_traits(
|
11459 16949 | self,
|
11460 16950 | ) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
11461 - | Ok(crate::input::MalformedLongInput {
|
16951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16952 + | Ok(
|
16953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16954 + | crate::input::MalformedLongInput {
|
16955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11462 16956 | long_in_body: self.long_in_body,
|
16957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11463 16958 | long_in_path: self
|
11464 16959 | .long_in_path
|
16960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11465 16961 | .ok_or(ConstraintViolation::MissingLongInPath)?,
|
16962 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11466 16963 | long_in_query: self.long_in_query,
|
16964 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11467 16965 | long_in_header: self.long_in_header,
|
11468 - | })
|
16966 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16967 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
16968 + | )
|
16969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11469 16970 | }
|
16971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11470 16972 | }
|
16973 + |
|
16974 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11471 16975 | }
|
11472 - | /// See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
16976 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
11473 16977 | pub(crate) mod malformed_short_input_internal {
|
11474 16978 |
|
16979 + | /* RustType.kt:516 */
|
11475 16980 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11476 - | /// Holds one variant for each of the ways the builder can fail.
|
16981 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16982 + | /* RustType.kt:516 */
|
11477 16983 | #[non_exhaustive]
|
16984 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11478 16985 | #[allow(clippy::enum_variant_names)]
|
11479 16986 | pub(crate) enum ConstraintViolation {
|
11480 - | /// `short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
16987 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
16988 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11481 16989 | MissingShortInPath,
|
16990 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11482 16991 | }
|
16992 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11483 16993 | impl ::std::fmt::Display for ConstraintViolation {
|
16994 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11484 16995 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16996 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11485 16997 | match self {
|
11486 - | ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
11487 - | }
|
16998 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
16999 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17000 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11488 17001 | }
|
17002 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11489 17003 | }
|
17004 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11490 17005 | impl ::std::error::Error for ConstraintViolation {}
|
17006 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11491 17007 | impl ConstraintViolation {
|
11492 17008 | pub(crate) fn as_validation_exception_field(
|
11493 17009 | self,
|
11494 17010 | path: ::std::string::String,
|
11495 17011 | ) -> crate::model::ValidationExceptionField {
|
11496 17012 | match self {
|
11497 17013 | ConstraintViolation::MissingShortInPath => crate::model::ValidationExceptionField {
|
11498 17014 | message: format!("Value at '{}/shortInPath' failed to satisfy constraint: Member must not be null", path),
|
11499 17015 | path: path + "/shortInPath",
|
11500 17016 | },
|
11501 17017 | }
|
11502 17018 | }
|
11503 17019 | }
|
17020 + | /* ServerBuilderGenerator.kt:234 */
|
11504 17021 | impl ::std::convert::From<ConstraintViolation>
|
11505 17022 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11506 17023 | {
|
11507 17024 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11508 17025 | let first_validation_exception_field =
|
11509 17026 | constraint_violation.as_validation_exception_field("".to_owned());
|
11510 17027 | let validation_exception = crate::error::ValidationException {
|
11511 17028 | message: format!(
|
11512 17029 | "1 validation error detected. {}",
|
11513 17030 | &first_validation_exception_field.message
|
11514 17031 | ),
|
11515 17032 | field_list: Some(vec![first_validation_exception_field]),
|
11516 17033 | };
|
11517 17034 | Self::ConstraintViolation(
|
11518 17035 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11519 17036 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11520 17037 | )
|
11521 17038 | }
|
11522 17039 | }
|
17040 + | /* ServerBuilderGenerator.kt:244 */
|
11523 17041 | impl ::std::convert::From<Builder>
|
11524 17042 | for crate::constrained::MaybeConstrained<crate::input::MalformedShortInput>
|
11525 17043 | {
|
11526 17044 | fn from(builder: Builder) -> Self {
|
11527 17045 | Self::Unconstrained(builder)
|
11528 17046 | }
|
11529 17047 | }
|
17048 + | /* ServerBuilderGenerator.kt:446 */
|
11530 17049 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedShortInput {
|
11531 17050 | type Error = ConstraintViolation;
|
11532 17051 |
|
11533 17052 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11534 17053 | builder.build()
|
11535 17054 | }
|
11536 17055 | }
|
11537 - | /// A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17056 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17057 + | /* RustType.kt:516 */
|
11538 17058 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17059 + | /* ServerBuilderGenerator.kt:211 */
|
11539 17060 | pub(crate) struct Builder {
|
17061 + | /* ServerBuilderGenerator.kt:308 */
|
11540 17062 | pub(crate) short_in_body: ::std::option::Option<i16>,
|
17063 + | /* ServerBuilderGenerator.kt:308 */
|
11541 17064 | pub(crate) short_in_path: ::std::option::Option<i16>,
|
17065 + | /* ServerBuilderGenerator.kt:308 */
|
11542 17066 | pub(crate) short_in_query: ::std::option::Option<i16>,
|
17067 + | /* ServerBuilderGenerator.kt:308 */
|
11543 17068 | pub(crate) short_in_header: ::std::option::Option<i16>,
|
17069 + | /* ServerBuilderGenerator.kt:211 */
|
11544 17070 | }
|
17071 + | /* ServerBuilderGenerator.kt:215 */
|
11545 17072 | impl Builder {
|
17073 + | /* ServerBuilderGenerator.kt:426 */
|
11546 17074 | #[allow(missing_docs)] // documentation missing in model
|
17075 + | /* ServerBuilderGenerator.kt:428 */
|
11547 17076 | pub(crate) fn set_short_in_body(
|
11548 17077 | mut self,
|
11549 17078 | input: Option<impl ::std::convert::Into<i16>>,
|
11550 17079 | ) -> Self {
|
17080 + | /* ServerBuilderGenerator.kt:429 */
|
11551 17081 | self.short_in_body = input.map(|v| v.into());
|
11552 17082 | self
|
17083 + | /* ServerBuilderGenerator.kt:428 */
|
11553 17084 | }
|
17085 + | /* ServerBuilderGenerator.kt:426 */
|
11554 17086 | #[allow(missing_docs)] // documentation missing in model
|
17087 + | /* ServerBuilderGenerator.kt:428 */
|
11555 17088 | pub(crate) fn set_short_in_path(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
17089 + | /* ServerBuilderGenerator.kt:429 */
|
11556 17090 | self.short_in_path = Some(input.into());
|
11557 17091 | self
|
17092 + | /* ServerBuilderGenerator.kt:428 */
|
11558 17093 | }
|
17094 + | /* ServerBuilderGenerator.kt:426 */
|
11559 17095 | #[allow(missing_docs)] // documentation missing in model
|
17096 + | /* ServerBuilderGenerator.kt:428 */
|
11560 17097 | pub(crate) fn set_short_in_query(
|
11561 17098 | mut self,
|
11562 17099 | input: Option<impl ::std::convert::Into<i16>>,
|
11563 17100 | ) -> Self {
|
17101 + | /* ServerBuilderGenerator.kt:429 */
|
11564 17102 | self.short_in_query = input.map(|v| v.into());
|
11565 17103 | self
|
17104 + | /* ServerBuilderGenerator.kt:428 */
|
11566 17105 | }
|
17106 + | /* ServerBuilderGenerator.kt:426 */
|
11567 17107 | #[allow(missing_docs)] // documentation missing in model
|
17108 + | /* ServerBuilderGenerator.kt:428 */
|
11568 17109 | pub(crate) fn set_short_in_header(
|
11569 17110 | mut self,
|
11570 17111 | input: Option<impl ::std::convert::Into<i16>>,
|
11571 17112 | ) -> Self {
|
17113 + | /* ServerBuilderGenerator.kt:429 */
|
11572 17114 | self.short_in_header = input.map(|v| v.into());
|
11573 17115 | self
|
17116 + | /* ServerBuilderGenerator.kt:428 */
|
11574 17117 | }
|
11575 - | /// Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
11576 - | ///
|
17118 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17119 + | /// /* ServerBuilderGenerator.kt:260 */
|
11577 17120 | /// The builder fails to construct a [`MalformedShortInput`](crate::input::MalformedShortInput) if a [`ConstraintViolation`] occurs.
|
11578 17121 | ///
|
17122 + | /* ServerBuilderGenerator.kt:271 */
|
11579 17123 | pub fn build(self) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
11580 17124 | self.build_enforcing_all_constraints()
|
11581 17125 | }
|
17126 + | /* ServerBuilderGenerator.kt:283 */
|
11582 17127 | fn build_enforcing_all_constraints(
|
11583 17128 | self,
|
11584 17129 | ) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
11585 - | Ok(crate::input::MalformedShortInput {
|
17130 + | /* ServerBuilderGenerator.kt:287 */
|
17131 + | Ok(
|
17132 + | /* ServerBuilderGenerator.kt:542 */
|
17133 + | crate::input::MalformedShortInput {
|
17134 + | /* ServerBuilderGenerator.kt:546 */
|
11586 17135 | short_in_body: self.short_in_body,
|
17136 + | /* ServerBuilderGenerator.kt:546 */
|
11587 17137 | short_in_path: self
|
11588 17138 | .short_in_path
|
17139 + | /* ServerBuilderGenerator.kt:569 */
|
11589 17140 | .ok_or(ConstraintViolation::MissingShortInPath)?,
|
17141 + | /* ServerBuilderGenerator.kt:546 */
|
11590 17142 | short_in_query: self.short_in_query,
|
17143 + | /* ServerBuilderGenerator.kt:546 */
|
11591 17144 | short_in_header: self.short_in_header,
|
11592 - | })
|
17145 + | /* ServerBuilderGenerator.kt:542 */
|
17146 + | }, /* ServerBuilderGenerator.kt:287 */
|
17147 + | )
|
17148 + | /* ServerBuilderGenerator.kt:283 */
|
11593 17149 | }
|
17150 + | /* ServerBuilderGenerator.kt:215 */
|
11594 17151 | }
|
17152 + |
|
17153 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11595 17154 | }
|
11596 - | /// See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17155 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
11597 17156 | pub mod malformed_short_input {
|
11598 17157 |
|
17158 + | /* RustType.kt:516 */
|
11599 17159 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11600 - | /// Holds one variant for each of the ways the builder can fail.
|
11601 - |
|
17160 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17161 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11602 17162 | #[allow(clippy::enum_variant_names)]
|
11603 17163 | pub enum ConstraintViolation {
|
11604 - | /// `short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
17164 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
17165 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11605 17166 | MissingShortInPath,
|
17167 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11606 17168 | }
|
17169 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11607 17170 | impl ::std::fmt::Display for ConstraintViolation {
|
17171 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11608 17172 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17173 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11609 17174 | match self {
|
11610 - | ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
11611 - | }
|
17175 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
17176 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17177 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11612 17178 | }
|
17179 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11613 17180 | }
|
17181 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11614 17182 | impl ::std::error::Error for ConstraintViolation {}
|
17183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
11615 17184 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedShortInput {
|
11616 17185 | type Error = ConstraintViolation;
|
11617 17186 |
|
11618 17187 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11619 17188 | builder.build()
|
11620 17189 | }
|
11621 17190 | }
|
11622 - | /// A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17191 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17192 + | /* RustType.kt:516 */
|
11623 17193 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17194 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11624 17195 | pub struct Builder {
|
17196 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11625 17197 | pub(crate) short_in_body: ::std::option::Option<i16>,
|
17198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11626 17199 | pub(crate) short_in_path: ::std::option::Option<i16>,
|
17200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11627 17201 | pub(crate) short_in_query: ::std::option::Option<i16>,
|
17202 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11628 17203 | pub(crate) short_in_header: ::std::option::Option<i16>,
|
17204 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11629 17205 | }
|
17206 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11630 17207 | impl Builder {
|
17208 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11631 17209 | #[allow(missing_docs)] // documentation missing in model
|
17210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11632 17211 | pub fn short_in_body(mut self, input: ::std::option::Option<i16>) -> Self {
|
11633 - | self.short_in_body = input;
|
17212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17213 + | self.short_in_body =
|
17214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11634 17216 | self
|
17217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11635 17218 | }
|
17219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11636 17220 | #[allow(missing_docs)] // documentation missing in model
|
17221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11637 17222 | pub fn short_in_path(mut self, input: i16) -> Self {
|
11638 - | self.short_in_path = Some(input);
|
17223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17224 + | self.short_in_path =
|
17225 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
17226 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17227 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
17228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11639 17229 | self
|
17230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11640 17231 | }
|
17232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11641 17233 | #[allow(missing_docs)] // documentation missing in model
|
17234 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11642 17235 | pub fn short_in_query(mut self, input: ::std::option::Option<i16>) -> Self {
|
11643 - | self.short_in_query = input;
|
17236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17237 + | self.short_in_query =
|
17238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17239 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11644 17240 | self
|
17241 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11645 17242 | }
|
17243 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11646 17244 | #[allow(missing_docs)] // documentation missing in model
|
17245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11647 17246 | pub fn short_in_header(mut self, input: ::std::option::Option<i16>) -> Self {
|
11648 - | self.short_in_header = input;
|
17247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17248 + | self.short_in_header =
|
17249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11649 17251 | self
|
17252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11650 17253 | }
|
11651 - | /// Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
11652 - | ///
|
17254 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
17255 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
11653 17256 | /// The builder fails to construct a [`MalformedShortInput`](crate::input::MalformedShortInput) if you do not provide a value for all non-`Option`al members.
|
11654 17257 | ///
|
17258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11655 17259 | pub fn build(self) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
11656 17260 | self.build_enforcing_required_and_enum_traits()
|
11657 17261 | }
|
17262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11658 17263 | fn build_enforcing_required_and_enum_traits(
|
11659 17264 | self,
|
11660 17265 | ) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
11661 - | Ok(crate::input::MalformedShortInput {
|
17266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
17267 + | Ok(
|
17268 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17269 + | crate::input::MalformedShortInput {
|
17270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11662 17271 | short_in_body: self.short_in_body,
|
17272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11663 17273 | short_in_path: self
|
11664 17274 | .short_in_path
|
17275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11665 17276 | .ok_or(ConstraintViolation::MissingShortInPath)?,
|
17277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11666 17278 | short_in_query: self.short_in_query,
|
17279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11667 17280 | short_in_header: self.short_in_header,
|
11668 - | })
|
17281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17282 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
17283 + | )
|
17284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11669 17285 | }
|
17286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11670 17287 | }
|
17288 + |
|
17289 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11671 17290 | }
|
11672 - | /// See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17291 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
11673 17292 | pub(crate) mod malformed_byte_input_internal {
|
11674 17293 |
|
17294 + | /* RustType.kt:516 */
|
11675 17295 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11676 - | /// Holds one variant for each of the ways the builder can fail.
|
17296 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17297 + | /* RustType.kt:516 */
|
11677 17298 | #[non_exhaustive]
|
17299 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11678 17300 | #[allow(clippy::enum_variant_names)]
|
11679 17301 | pub(crate) enum ConstraintViolation {
|
11680 - | /// `byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
17302 + | /// /* ServerBuilderConstraintViolations.kt:138 */`byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
17303 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11681 17304 | MissingByteInPath,
|
17305 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11682 17306 | }
|
17307 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11683 17308 | impl ::std::fmt::Display for ConstraintViolation {
|
17309 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11684 17310 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17311 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11685 17312 | match self {
|
11686 - | ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
11687 - | }
|
17313 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
17314 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17315 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11688 17316 | }
|
17317 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11689 17318 | }
|
17319 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11690 17320 | impl ::std::error::Error for ConstraintViolation {}
|
17321 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11691 17322 | impl ConstraintViolation {
|
11692 17323 | pub(crate) fn as_validation_exception_field(
|
11693 17324 | self,
|
11694 17325 | path: ::std::string::String,
|
11695 17326 | ) -> crate::model::ValidationExceptionField {
|
11696 17327 | match self {
|
11697 17328 | ConstraintViolation::MissingByteInPath => crate::model::ValidationExceptionField {
|
11698 17329 | message: format!("Value at '{}/byteInPath' failed to satisfy constraint: Member must not be null", path),
|
11699 17330 | path: path + "/byteInPath",
|
11700 17331 | },
|
11701 17332 | }
|
11702 17333 | }
|
11703 17334 | }
|
17335 + | /* ServerBuilderGenerator.kt:234 */
|
11704 17336 | impl ::std::convert::From<ConstraintViolation>
|
11705 17337 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11706 17338 | {
|
11707 17339 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11708 17340 | let first_validation_exception_field =
|
11709 17341 | constraint_violation.as_validation_exception_field("".to_owned());
|
11710 17342 | let validation_exception = crate::error::ValidationException {
|
11711 17343 | message: format!(
|
11712 17344 | "1 validation error detected. {}",
|
11713 17345 | &first_validation_exception_field.message
|
11714 17346 | ),
|
11715 17347 | field_list: Some(vec![first_validation_exception_field]),
|
11716 17348 | };
|
11717 17349 | Self::ConstraintViolation(
|
11718 17350 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11719 17351 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11720 17352 | )
|
11721 17353 | }
|
11722 17354 | }
|
17355 + | /* ServerBuilderGenerator.kt:244 */
|
11723 17356 | impl ::std::convert::From<Builder>
|
11724 17357 | for crate::constrained::MaybeConstrained<crate::input::MalformedByteInput>
|
11725 17358 | {
|
11726 17359 | fn from(builder: Builder) -> Self {
|
11727 17360 | Self::Unconstrained(builder)
|
11728 17361 | }
|
11729 17362 | }
|
17363 + | /* ServerBuilderGenerator.kt:446 */
|
11730 17364 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedByteInput {
|
11731 17365 | type Error = ConstraintViolation;
|
11732 17366 |
|
11733 17367 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11734 17368 | builder.build()
|
11735 17369 | }
|
11736 17370 | }
|
11737 - | /// A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17371 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17372 + | /* RustType.kt:516 */
|
11738 17373 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17374 + | /* ServerBuilderGenerator.kt:211 */
|
11739 17375 | pub(crate) struct Builder {
|
17376 + | /* ServerBuilderGenerator.kt:308 */
|
11740 17377 | pub(crate) byte_in_body: ::std::option::Option<i8>,
|
17378 + | /* ServerBuilderGenerator.kt:308 */
|
11741 17379 | pub(crate) byte_in_path: ::std::option::Option<i8>,
|
17380 + | /* ServerBuilderGenerator.kt:308 */
|
11742 17381 | pub(crate) byte_in_query: ::std::option::Option<i8>,
|
17382 + | /* ServerBuilderGenerator.kt:308 */
|
11743 17383 | pub(crate) byte_in_header: ::std::option::Option<i8>,
|
17384 + | /* ServerBuilderGenerator.kt:211 */
|
11744 17385 | }
|
17386 + | /* ServerBuilderGenerator.kt:215 */
|
11745 17387 | impl Builder {
|
17388 + | /* ServerBuilderGenerator.kt:426 */
|
11746 17389 | #[allow(missing_docs)] // documentation missing in model
|
17390 + | /* ServerBuilderGenerator.kt:428 */
|
11747 17391 | pub(crate) fn set_byte_in_body(
|
11748 17392 | mut self,
|
11749 17393 | input: Option<impl ::std::convert::Into<i8>>,
|
11750 17394 | ) -> Self {
|
17395 + | /* ServerBuilderGenerator.kt:429 */
|
11751 17396 | self.byte_in_body = input.map(|v| v.into());
|
11752 17397 | self
|
17398 + | /* ServerBuilderGenerator.kt:428 */
|
11753 17399 | }
|
17400 + | /* ServerBuilderGenerator.kt:426 */
|
11754 17401 | #[allow(missing_docs)] // documentation missing in model
|
17402 + | /* ServerBuilderGenerator.kt:428 */
|
11755 17403 | pub(crate) fn set_byte_in_path(mut self, input: impl ::std::convert::Into<i8>) -> Self {
|
17404 + | /* ServerBuilderGenerator.kt:429 */
|
11756 17405 | self.byte_in_path = Some(input.into());
|
11757 17406 | self
|
17407 + | /* ServerBuilderGenerator.kt:428 */
|
11758 17408 | }
|
17409 + | /* ServerBuilderGenerator.kt:426 */
|
11759 17410 | #[allow(missing_docs)] // documentation missing in model
|
17411 + | /* ServerBuilderGenerator.kt:428 */
|
11760 17412 | pub(crate) fn set_byte_in_query(
|
11761 17413 | mut self,
|
11762 17414 | input: Option<impl ::std::convert::Into<i8>>,
|
11763 17415 | ) -> Self {
|
17416 + | /* ServerBuilderGenerator.kt:429 */
|
11764 17417 | self.byte_in_query = input.map(|v| v.into());
|
11765 17418 | self
|
17419 + | /* ServerBuilderGenerator.kt:428 */
|
11766 17420 | }
|
17421 + | /* ServerBuilderGenerator.kt:426 */
|
11767 17422 | #[allow(missing_docs)] // documentation missing in model
|
17423 + | /* ServerBuilderGenerator.kt:428 */
|
11768 17424 | pub(crate) fn set_byte_in_header(
|
11769 17425 | mut self,
|
11770 17426 | input: Option<impl ::std::convert::Into<i8>>,
|
11771 17427 | ) -> Self {
|
17428 + | /* ServerBuilderGenerator.kt:429 */
|
11772 17429 | self.byte_in_header = input.map(|v| v.into());
|
11773 17430 | self
|
17431 + | /* ServerBuilderGenerator.kt:428 */
|
11774 17432 | }
|
11775 - | /// Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
11776 - | ///
|
17433 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17434 + | /// /* ServerBuilderGenerator.kt:260 */
|
11777 17435 | /// The builder fails to construct a [`MalformedByteInput`](crate::input::MalformedByteInput) if a [`ConstraintViolation`] occurs.
|
11778 17436 | ///
|
17437 + | /* ServerBuilderGenerator.kt:271 */
|
11779 17438 | pub fn build(self) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
11780 17439 | self.build_enforcing_all_constraints()
|
11781 17440 | }
|
17441 + | /* ServerBuilderGenerator.kt:283 */
|
11782 17442 | fn build_enforcing_all_constraints(
|
11783 17443 | self,
|
11784 17444 | ) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
11785 - | Ok(crate::input::MalformedByteInput {
|
17445 + | /* ServerBuilderGenerator.kt:287 */
|
17446 + | Ok(
|
17447 + | /* ServerBuilderGenerator.kt:542 */
|
17448 + | crate::input::MalformedByteInput {
|
17449 + | /* ServerBuilderGenerator.kt:546 */
|
11786 17450 | byte_in_body: self.byte_in_body,
|
17451 + | /* ServerBuilderGenerator.kt:546 */
|
11787 17452 | byte_in_path: self
|
11788 17453 | .byte_in_path
|
17454 + | /* ServerBuilderGenerator.kt:569 */
|
11789 17455 | .ok_or(ConstraintViolation::MissingByteInPath)?,
|
17456 + | /* ServerBuilderGenerator.kt:546 */
|
11790 17457 | byte_in_query: self.byte_in_query,
|
17458 + | /* ServerBuilderGenerator.kt:546 */
|
11791 17459 | byte_in_header: self.byte_in_header,
|
11792 - | })
|
17460 + | /* ServerBuilderGenerator.kt:542 */
|
17461 + | }, /* ServerBuilderGenerator.kt:287 */
|
17462 + | )
|
17463 + | /* ServerBuilderGenerator.kt:283 */
|
11793 17464 | }
|
17465 + | /* ServerBuilderGenerator.kt:215 */
|
11794 17466 | }
|
17467 + |
|
17468 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11795 17469 | }
|
11796 - | /// See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17470 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
11797 17471 | pub mod malformed_byte_input {
|
11798 17472 |
|
17473 + | /* RustType.kt:516 */
|
11799 17474 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11800 - | /// Holds one variant for each of the ways the builder can fail.
|
11801 - |
|
17475 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17476 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11802 17477 | #[allow(clippy::enum_variant_names)]
|
11803 17478 | pub enum ConstraintViolation {
|
11804 - | /// `byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
17479 + | /// /* ServerBuilderConstraintViolations.kt:138 */`byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
17480 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11805 17481 | MissingByteInPath,
|
17482 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11806 17483 | }
|
17484 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11807 17485 | impl ::std::fmt::Display for ConstraintViolation {
|
17486 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11808 17487 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17488 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11809 17489 | match self {
|
11810 - | ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
11811 - | }
|
17490 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
17491 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17492 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11812 17493 | }
|
17494 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11813 17495 | }
|
17496 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11814 17497 | impl ::std::error::Error for ConstraintViolation {}
|
17498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
11815 17499 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedByteInput {
|
11816 17500 | type Error = ConstraintViolation;
|
11817 17501 |
|
11818 17502 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11819 17503 | builder.build()
|
11820 17504 | }
|
11821 17505 | }
|
11822 - | /// A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17506 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17507 + | /* RustType.kt:516 */
|
11823 17508 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11824 17510 | pub struct Builder {
|
17511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11825 17512 | pub(crate) byte_in_body: ::std::option::Option<i8>,
|
17513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11826 17514 | pub(crate) byte_in_path: ::std::option::Option<i8>,
|
17515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11827 17516 | pub(crate) byte_in_query: ::std::option::Option<i8>,
|
17517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11828 17518 | pub(crate) byte_in_header: ::std::option::Option<i8>,
|
17519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11829 17520 | }
|
17521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11830 17522 | impl Builder {
|
17523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11831 17524 | #[allow(missing_docs)] // documentation missing in model
|
17525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11832 17526 | pub fn byte_in_body(mut self, input: ::std::option::Option<i8>) -> Self {
|
11833 - | self.byte_in_body = input;
|
17527 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17528 + | self.byte_in_body =
|
17529 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11834 17531 | self
|
17532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11835 17533 | }
|
17534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11836 17535 | #[allow(missing_docs)] // documentation missing in model
|
17536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11837 17537 | pub fn byte_in_path(mut self, input: i8) -> Self {
|
11838 - | self.byte_in_path = Some(input);
|
17538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17539 + | self.byte_in_path =
|
17540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
17541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
17543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11839 17544 | self
|
17545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11840 17546 | }
|
17547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11841 17548 | #[allow(missing_docs)] // documentation missing in model
|
17549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11842 17550 | pub fn byte_in_query(mut self, input: ::std::option::Option<i8>) -> Self {
|
11843 - | self.byte_in_query = input;
|
17551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17552 + | self.byte_in_query =
|
17553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11844 17555 | self
|
17556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11845 17557 | }
|
17558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11846 17559 | #[allow(missing_docs)] // documentation missing in model
|
17560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11847 17561 | pub fn byte_in_header(mut self, input: ::std::option::Option<i8>) -> Self {
|
11848 - | self.byte_in_header = input;
|
17562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17563 + | self.byte_in_header =
|
17564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11849 17566 | self
|
17567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11850 17568 | }
|
11851 - | /// Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
11852 - | ///
|
17569 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
17570 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
11853 17571 | /// The builder fails to construct a [`MalformedByteInput`](crate::input::MalformedByteInput) if you do not provide a value for all non-`Option`al members.
|
11854 17572 | ///
|
17573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11855 17574 | pub fn build(self) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
11856 17575 | self.build_enforcing_required_and_enum_traits()
|
11857 17576 | }
|
17577 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11858 17578 | fn build_enforcing_required_and_enum_traits(
|
11859 17579 | self,
|
11860 17580 | ) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
11861 - | Ok(crate::input::MalformedByteInput {
|
17581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
17582 + | Ok(
|
17583 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17584 + | crate::input::MalformedByteInput {
|
17585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11862 17586 | byte_in_body: self.byte_in_body,
|
17587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11863 17588 | byte_in_path: self
|
11864 17589 | .byte_in_path
|
17590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
11865 17591 | .ok_or(ConstraintViolation::MissingByteInPath)?,
|
17592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11866 17593 | byte_in_query: self.byte_in_query,
|
17594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
11867 17595 | byte_in_header: self.byte_in_header,
|
11868 - | })
|
17596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17597 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
17598 + | )
|
17599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11869 17600 | }
|
17601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11870 17602 | }
|
17603 + |
|
17604 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11871 17605 | }
|
11872 - | /// See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17606 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
11873 17607 | pub(crate) mod malformed_blob_input_internal {
|
11874 17608 |
|
17609 + | /* ServerBuilderGenerator.kt:461 */
|
11875 17610 | impl ::std::convert::From<Builder> for crate::input::MalformedBlobInput {
|
11876 17611 | fn from(builder: Builder) -> Self {
|
11877 17612 | builder.build()
|
11878 17613 | }
|
11879 17614 | }
|
11880 - | /// A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17615 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17616 + | /* RustType.kt:516 */
|
11881 17617 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17618 + | /* ServerBuilderGenerator.kt:211 */
|
11882 17619 | pub(crate) struct Builder {
|
17620 + | /* ServerBuilderGenerator.kt:308 */
|
11883 17621 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
17622 + | /* ServerBuilderGenerator.kt:211 */
|
11884 17623 | }
|
17624 + | /* ServerBuilderGenerator.kt:215 */
|
11885 17625 | impl Builder {
|
17626 + | /* ServerBuilderGenerator.kt:426 */
|
11886 17627 | #[allow(missing_docs)] // documentation missing in model
|
17628 + | /* ServerBuilderGenerator.kt:428 */
|
11887 17629 | pub(crate) fn set_blob(
|
11888 17630 | mut self,
|
11889 17631 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
11890 17632 | ) -> Self {
|
17633 + | /* ServerBuilderGenerator.kt:429 */
|
11891 17634 | self.blob = input.map(|v| v.into());
|
11892 17635 | self
|
17636 + | /* ServerBuilderGenerator.kt:428 */
|
11893 17637 | }
|
11894 - | /// Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17638 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17639 + | /* ServerBuilderGenerator.kt:271 */
|
11895 17640 | pub fn build(self) -> crate::input::MalformedBlobInput {
|
11896 17641 | self.build_enforcing_all_constraints()
|
11897 17642 | }
|
17643 + | /* ServerBuilderGenerator.kt:283 */
|
11898 17644 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedBlobInput {
|
11899 - | crate::input::MalformedBlobInput { blob: self.blob }
|
17645 + | /* ServerBuilderGenerator.kt:542 */
|
17646 + | crate::input::MalformedBlobInput {
|
17647 + | /* ServerBuilderGenerator.kt:546 */
|
17648 + | blob: self.blob,
|
17649 + | /* ServerBuilderGenerator.kt:542 */
|
17650 + | }
|
17651 + | /* ServerBuilderGenerator.kt:283 */
|
11900 17652 | }
|
17653 + | /* ServerBuilderGenerator.kt:215 */
|
11901 17654 | }
|
17655 + |
|
17656 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11902 17657 | }
|
11903 - | /// See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17658 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
11904 17659 | pub mod malformed_blob_input {
|
11905 17660 |
|
17661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
11906 17662 | impl ::std::convert::From<Builder> for crate::input::MalformedBlobInput {
|
11907 17663 | fn from(builder: Builder) -> Self {
|
11908 17664 | builder.build()
|
11909 17665 | }
|
11910 17666 | }
|
11911 - | /// A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17667 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17668 + | /* RustType.kt:516 */
|
11912 17669 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17670 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11913 17671 | pub struct Builder {
|
17672 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11914 17673 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
17674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11915 17675 | }
|
17676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11916 17677 | impl Builder {
|
17678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11917 17679 | #[allow(missing_docs)] // documentation missing in model
|
17680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11918 17681 | pub fn blob(
|
11919 17682 | mut self,
|
11920 17683 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
11921 17684 | ) -> Self {
|
11922 - | self.blob = input;
|
17685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17686 + | self.blob =
|
17687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11923 17689 | self
|
17690 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11924 17691 | }
|
11925 - | /// Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17692 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
17693 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
11926 17694 | pub fn build(self) -> crate::input::MalformedBlobInput {
|
11927 17695 | self.build_enforcing_required_and_enum_traits()
|
11928 17696 | }
|
17697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11929 17698 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MalformedBlobInput {
|
11930 - | crate::input::MalformedBlobInput { blob: self.blob }
|
17699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17700 + | crate::input::MalformedBlobInput {
|
17701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17702 + | blob: self.blob,
|
17703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17704 + | }
|
17705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
11931 17706 | }
|
17707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11932 17708 | }
|
17709 + |
|
17710 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11933 17711 | }
|
11934 - | /// See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17712 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
11935 17713 | pub(crate) mod malformed_map_input_internal {
|
11936 17714 |
|
17715 + | /* ServerBuilderGenerator.kt:461 */
|
11937 17716 | impl ::std::convert::From<Builder> for crate::input::MalformedMapInput {
|
11938 17717 | fn from(builder: Builder) -> Self {
|
11939 17718 | builder.build()
|
11940 17719 | }
|
11941 17720 | }
|
11942 - | /// A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17721 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17722 + | /* RustType.kt:516 */
|
11943 17723 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17724 + | /* ServerBuilderGenerator.kt:211 */
|
11944 17725 | pub(crate) struct Builder {
|
17726 + | /* ServerBuilderGenerator.kt:308 */
|
11945 17727 | pub(crate) body_map: ::std::option::Option<
|
11946 17728 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
11947 17729 | >,
|
17730 + | /* ServerBuilderGenerator.kt:211 */
|
11948 17731 | }
|
17732 + | /* ServerBuilderGenerator.kt:215 */
|
11949 17733 | impl Builder {
|
17734 + | /* ServerBuilderGenerator.kt:426 */
|
11950 17735 | #[allow(missing_docs)] // documentation missing in model
|
17736 + | /* ServerBuilderGenerator.kt:428 */
|
11951 17737 | pub(crate) fn set_body_map(
|
11952 17738 | mut self,
|
11953 17739 | input: Option<
|
11954 17740 | impl ::std::convert::Into<
|
11955 17741 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
11956 17742 | >,
|
11957 17743 | >,
|
11958 17744 | ) -> Self {
|
17745 + | /* ServerBuilderGenerator.kt:429 */
|
11959 17746 | self.body_map = input.map(|v| v.into());
|
11960 17747 | self
|
17748 + | /* ServerBuilderGenerator.kt:428 */
|
11961 17749 | }
|
11962 - | /// Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17750 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17751 + | /* ServerBuilderGenerator.kt:271 */
|
11963 17752 | pub fn build(self) -> crate::input::MalformedMapInput {
|
11964 17753 | self.build_enforcing_all_constraints()
|
11965 17754 | }
|
17755 + | /* ServerBuilderGenerator.kt:283 */
|
11966 17756 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedMapInput {
|
17757 + | /* ServerBuilderGenerator.kt:542 */
|
11967 17758 | crate::input::MalformedMapInput {
|
17759 + | /* ServerBuilderGenerator.kt:546 */
|
11968 17760 | body_map: self.body_map,
|
17761 + | /* ServerBuilderGenerator.kt:542 */
|
11969 17762 | }
|
17763 + | /* ServerBuilderGenerator.kt:283 */
|
11970 17764 | }
|
17765 + | /* ServerBuilderGenerator.kt:215 */
|
11971 17766 | }
|
17767 + |
|
17768 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11972 17769 | }
|
11973 - | /// See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17770 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
11974 17771 | pub mod malformed_map_input {
|
11975 17772 |
|
17773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
11976 17774 | impl ::std::convert::From<Builder> for crate::input::MalformedMapInput {
|
11977 17775 | fn from(builder: Builder) -> Self {
|
11978 17776 | builder.build()
|
11979 17777 | }
|
11980 17778 | }
|
11981 - | /// A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17779 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17780 + | /* RustType.kt:516 */
|
11982 17781 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11983 17783 | pub struct Builder {
|
17784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
11984 17785 | pub(crate) body_map: ::std::option::Option<
|
11985 17786 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
11986 17787 | >,
|
17788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
11987 17789 | }
|
17790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
11988 17791 | impl Builder {
|
17792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
11989 17793 | #[allow(missing_docs)] // documentation missing in model
|
17794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11990 17795 | pub fn body_map(
|
11991 17796 | mut self,
|
11992 17797 | input: ::std::option::Option<
|
11993 17798 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
11994 17799 | >,
|
11995 17800 | ) -> Self {
|
11996 - | self.body_map = input;
|
17801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17802 + | self.body_map =
|
17803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17804 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
11997 17805 | self
|
17806 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
11998 17807 | }
|
11999 - | /// Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17808 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
17809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12000 17810 | pub fn build(self) -> crate::input::MalformedMapInput {
|
12001 17811 | self.build_enforcing_required_and_enum_traits()
|
12002 17812 | }
|
17813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12003 17814 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MalformedMapInput {
|
17815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12004 17816 | crate::input::MalformedMapInput {
|
17817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12005 17818 | body_map: self.body_map,
|
17819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12006 17820 | }
|
17821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12007 17822 | }
|
17823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12008 17824 | }
|
17825 + |
|
17826 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12009 17827 | }
|
12010 - | /// See [`MalformedListInput`](crate::input::MalformedListInput).
|
17828 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedListInput`](crate::input::MalformedListInput).
|
12011 17829 | pub(crate) mod malformed_list_input_internal {
|
12012 17830 |
|
17831 + | /* ServerBuilderGenerator.kt:461 */
|
12013 17832 | impl ::std::convert::From<Builder> for crate::input::MalformedListInput {
|
12014 17833 | fn from(builder: Builder) -> Self {
|
12015 17834 | builder.build()
|
12016 17835 | }
|
12017 17836 | }
|
12018 - | /// A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
17837 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
17838 + | /* RustType.kt:516 */
|
12019 17839 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17840 + | /* ServerBuilderGenerator.kt:211 */
|
12020 17841 | pub(crate) struct Builder {
|
17842 + | /* ServerBuilderGenerator.kt:308 */
|
12021 17843 | pub(crate) body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17844 + | /* ServerBuilderGenerator.kt:211 */
|
12022 17845 | }
|
17846 + | /* ServerBuilderGenerator.kt:215 */
|
12023 17847 | impl Builder {
|
17848 + | /* ServerBuilderGenerator.kt:426 */
|
12024 17849 | #[allow(missing_docs)] // documentation missing in model
|
17850 + | /* ServerBuilderGenerator.kt:428 */
|
12025 17851 | pub(crate) fn set_body_list(
|
12026 17852 | mut self,
|
12027 17853 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
12028 17854 | ) -> Self {
|
17855 + | /* ServerBuilderGenerator.kt:429 */
|
12029 17856 | self.body_list = input.map(|v| v.into());
|
12030 17857 | self
|
17858 + | /* ServerBuilderGenerator.kt:428 */
|
12031 17859 | }
|
12032 - | /// Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
17860 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
17861 + | /* ServerBuilderGenerator.kt:271 */
|
12033 17862 | pub fn build(self) -> crate::input::MalformedListInput {
|
12034 17863 | self.build_enforcing_all_constraints()
|
12035 17864 | }
|
17865 + | /* ServerBuilderGenerator.kt:283 */
|
12036 17866 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedListInput {
|
17867 + | /* ServerBuilderGenerator.kt:542 */
|
12037 17868 | crate::input::MalformedListInput {
|
17869 + | /* ServerBuilderGenerator.kt:546 */
|
12038 17870 | body_list: self.body_list,
|
17871 + | /* ServerBuilderGenerator.kt:542 */
|
12039 17872 | }
|
17873 + | /* ServerBuilderGenerator.kt:283 */
|
12040 17874 | }
|
17875 + | /* ServerBuilderGenerator.kt:215 */
|
12041 17876 | }
|
17877 + |
|
17878 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12042 17879 | }
|
12043 - | /// See [`MalformedListInput`](crate::input::MalformedListInput).
|
17880 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedListInput`](crate::input::MalformedListInput).
|
12044 17881 | pub mod malformed_list_input {
|
12045 17882 |
|
17883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12046 17884 | impl ::std::convert::From<Builder> for crate::input::MalformedListInput {
|
12047 17885 | fn from(builder: Builder) -> Self {
|
12048 17886 | builder.build()
|
12049 17887 | }
|
12050 17888 | }
|
12051 - | /// A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
17889 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
17890 + | /* RustType.kt:516 */
|
12052 17891 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12053 17893 | pub struct Builder {
|
17894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12054 17895 | pub(crate) body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12055 17897 | }
|
17898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12056 17899 | impl Builder {
|
17900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12057 17901 | #[allow(missing_docs)] // documentation missing in model
|
17902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12058 17903 | pub fn body_list(
|
12059 17904 | mut self,
|
12060 17905 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12061 17906 | ) -> Self {
|
12062 - | self.body_list = input;
|
17907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
17908 + | self.body_list =
|
17909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
17910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12063 17911 | self
|
17912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12064 17913 | }
|
12065 - | /// Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
17914 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
17915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12066 17916 | pub fn build(self) -> crate::input::MalformedListInput {
|
12067 17917 | self.build_enforcing_required_and_enum_traits()
|
12068 17918 | }
|
17919 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12069 17920 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MalformedListInput {
|
17921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12070 17922 | crate::input::MalformedListInput {
|
17923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12071 17924 | body_list: self.body_list,
|
17925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12072 17926 | }
|
17927 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12073 17928 | }
|
17929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12074 17930 | }
|
17931 + |
|
17932 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12075 17933 | }
|
12076 - | /// See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
17934 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
12077 17935 | pub(crate) mod malformed_boolean_input_internal {
|
12078 17936 |
|
17937 + | /* RustType.kt:516 */
|
12079 17938 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12080 - | /// Holds one variant for each of the ways the builder can fail.
|
17939 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17940 + | /* RustType.kt:516 */
|
12081 17941 | #[non_exhaustive]
|
17942 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12082 17943 | #[allow(clippy::enum_variant_names)]
|
12083 17944 | pub(crate) enum ConstraintViolation {
|
12084 - | /// `boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
17945 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
17946 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12085 17947 | MissingBooleanInPath,
|
17948 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12086 17949 | }
|
17950 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12087 17951 | impl ::std::fmt::Display for ConstraintViolation {
|
17952 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12088 17953 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17954 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12089 17955 | match self {
|
12090 - | ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
12091 - | }
|
17956 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
17957 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17958 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12092 17959 | }
|
17960 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12093 17961 | }
|
17962 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12094 17963 | impl ::std::error::Error for ConstraintViolation {}
|
17964 + | /* ServerBuilderConstraintViolations.kt:171 */
|
12095 17965 | impl ConstraintViolation {
|
12096 17966 | pub(crate) fn as_validation_exception_field(
|
12097 17967 | self,
|
12098 17968 | path: ::std::string::String,
|
12099 17969 | ) -> crate::model::ValidationExceptionField {
|
12100 17970 | match self {
|
12101 17971 | ConstraintViolation::MissingBooleanInPath => crate::model::ValidationExceptionField {
|
12102 17972 | message: format!("Value at '{}/booleanInPath' failed to satisfy constraint: Member must not be null", path),
|
12103 17973 | path: path + "/booleanInPath",
|
12104 17974 | },
|
12105 17975 | }
|
12106 17976 | }
|
12107 17977 | }
|
17978 + | /* ServerBuilderGenerator.kt:234 */
|
12108 17979 | impl ::std::convert::From<ConstraintViolation>
|
12109 17980 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
12110 17981 | {
|
12111 17982 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
12112 17983 | let first_validation_exception_field =
|
12113 17984 | constraint_violation.as_validation_exception_field("".to_owned());
|
12114 17985 | let validation_exception = crate::error::ValidationException {
|
12115 17986 | message: format!(
|
12116 17987 | "1 validation error detected. {}",
|
12117 17988 | &first_validation_exception_field.message
|
12118 17989 | ),
|
12119 17990 | field_list: Some(vec![first_validation_exception_field]),
|
12120 17991 | };
|
12121 17992 | Self::ConstraintViolation(
|
12122 17993 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
12123 17994 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
12124 17995 | )
|
12125 17996 | }
|
12126 17997 | }
|
17998 + | /* ServerBuilderGenerator.kt:244 */
|
12127 17999 | impl ::std::convert::From<Builder>
|
12128 18000 | for crate::constrained::MaybeConstrained<crate::input::MalformedBooleanInput>
|
12129 18001 | {
|
12130 18002 | fn from(builder: Builder) -> Self {
|
12131 18003 | Self::Unconstrained(builder)
|
12132 18004 | }
|
12133 18005 | }
|
18006 + | /* ServerBuilderGenerator.kt:446 */
|
12134 18007 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedBooleanInput {
|
12135 18008 | type Error = ConstraintViolation;
|
12136 18009 |
|
12137 18010 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12138 18011 | builder.build()
|
12139 18012 | }
|
12140 18013 | }
|
12141 - | /// A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18014 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18015 + | /* RustType.kt:516 */
|
12142 18016 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18017 + | /* ServerBuilderGenerator.kt:211 */
|
12143 18018 | pub(crate) struct Builder {
|
18019 + | /* ServerBuilderGenerator.kt:308 */
|
12144 18020 | pub(crate) boolean_in_body: ::std::option::Option<bool>,
|
18021 + | /* ServerBuilderGenerator.kt:308 */
|
12145 18022 | pub(crate) boolean_in_path: ::std::option::Option<bool>,
|
18023 + | /* ServerBuilderGenerator.kt:308 */
|
12146 18024 | pub(crate) boolean_in_query: ::std::option::Option<bool>,
|
18025 + | /* ServerBuilderGenerator.kt:308 */
|
12147 18026 | pub(crate) boolean_in_header: ::std::option::Option<bool>,
|
18027 + | /* ServerBuilderGenerator.kt:211 */
|
12148 18028 | }
|
18029 + | /* ServerBuilderGenerator.kt:215 */
|
12149 18030 | impl Builder {
|
18031 + | /* ServerBuilderGenerator.kt:426 */
|
12150 18032 | #[allow(missing_docs)] // documentation missing in model
|
18033 + | /* ServerBuilderGenerator.kt:428 */
|
12151 18034 | pub(crate) fn set_boolean_in_body(
|
12152 18035 | mut self,
|
12153 18036 | input: Option<impl ::std::convert::Into<bool>>,
|
12154 18037 | ) -> Self {
|
18038 + | /* ServerBuilderGenerator.kt:429 */
|
12155 18039 | self.boolean_in_body = input.map(|v| v.into());
|
12156 18040 | self
|
18041 + | /* ServerBuilderGenerator.kt:428 */
|
12157 18042 | }
|
18043 + | /* ServerBuilderGenerator.kt:426 */
|
12158 18044 | #[allow(missing_docs)] // documentation missing in model
|
18045 + | /* ServerBuilderGenerator.kt:428 */
|
12159 18046 | pub(crate) fn set_boolean_in_path(
|
12160 18047 | mut self,
|
12161 18048 | input: impl ::std::convert::Into<bool>,
|
12162 18049 | ) -> Self {
|
18050 + | /* ServerBuilderGenerator.kt:429 */
|
12163 18051 | self.boolean_in_path = Some(input.into());
|
12164 18052 | self
|
18053 + | /* ServerBuilderGenerator.kt:428 */
|
12165 18054 | }
|
18055 + | /* ServerBuilderGenerator.kt:426 */
|
12166 18056 | #[allow(missing_docs)] // documentation missing in model
|
18057 + | /* ServerBuilderGenerator.kt:428 */
|
12167 18058 | pub(crate) fn set_boolean_in_query(
|
12168 18059 | mut self,
|
12169 18060 | input: Option<impl ::std::convert::Into<bool>>,
|
12170 18061 | ) -> Self {
|
18062 + | /* ServerBuilderGenerator.kt:429 */
|
12171 18063 | self.boolean_in_query = input.map(|v| v.into());
|
12172 18064 | self
|
18065 + | /* ServerBuilderGenerator.kt:428 */
|
12173 18066 | }
|
18067 + | /* ServerBuilderGenerator.kt:426 */
|
12174 18068 | #[allow(missing_docs)] // documentation missing in model
|
18069 + | /* ServerBuilderGenerator.kt:428 */
|
12175 18070 | pub(crate) fn set_boolean_in_header(
|
12176 18071 | mut self,
|
12177 18072 | input: Option<impl ::std::convert::Into<bool>>,
|
12178 18073 | ) -> Self {
|
18074 + | /* ServerBuilderGenerator.kt:429 */
|
12179 18075 | self.boolean_in_header = input.map(|v| v.into());
|
12180 18076 | self
|
18077 + | /* ServerBuilderGenerator.kt:428 */
|
12181 18078 | }
|
12182 - | /// Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
12183 - | ///
|
18079 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18080 + | /// /* ServerBuilderGenerator.kt:260 */
|
12184 18081 | /// The builder fails to construct a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) if a [`ConstraintViolation`] occurs.
|
12185 18082 | ///
|
18083 + | /* ServerBuilderGenerator.kt:271 */
|
12186 18084 | pub fn build(self) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
12187 18085 | self.build_enforcing_all_constraints()
|
12188 18086 | }
|
18087 + | /* ServerBuilderGenerator.kt:283 */
|
12189 18088 | fn build_enforcing_all_constraints(
|
12190 18089 | self,
|
12191 18090 | ) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
12192 - | Ok(crate::input::MalformedBooleanInput {
|
18091 + | /* ServerBuilderGenerator.kt:287 */
|
18092 + | Ok(
|
18093 + | /* ServerBuilderGenerator.kt:542 */
|
18094 + | crate::input::MalformedBooleanInput {
|
18095 + | /* ServerBuilderGenerator.kt:546 */
|
12193 18096 | boolean_in_body: self.boolean_in_body,
|
18097 + | /* ServerBuilderGenerator.kt:546 */
|
12194 18098 | boolean_in_path: self
|
12195 18099 | .boolean_in_path
|
18100 + | /* ServerBuilderGenerator.kt:569 */
|
12196 18101 | .ok_or(ConstraintViolation::MissingBooleanInPath)?,
|
18102 + | /* ServerBuilderGenerator.kt:546 */
|
12197 18103 | boolean_in_query: self.boolean_in_query,
|
18104 + | /* ServerBuilderGenerator.kt:546 */
|
12198 18105 | boolean_in_header: self.boolean_in_header,
|
12199 - | })
|
18106 + | /* ServerBuilderGenerator.kt:542 */
|
18107 + | }, /* ServerBuilderGenerator.kt:287 */
|
18108 + | )
|
18109 + | /* ServerBuilderGenerator.kt:283 */
|
12200 18110 | }
|
18111 + | /* ServerBuilderGenerator.kt:215 */
|
12201 18112 | }
|
18113 + |
|
18114 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12202 18115 | }
|
12203 - | /// See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18116 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
12204 18117 | pub mod malformed_boolean_input {
|
12205 18118 |
|
18119 + | /* RustType.kt:516 */
|
12206 18120 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12207 - | /// Holds one variant for each of the ways the builder can fail.
|
12208 - |
|
18121 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18122 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12209 18123 | #[allow(clippy::enum_variant_names)]
|
12210 18124 | pub enum ConstraintViolation {
|
12211 - | /// `boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
18125 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
18126 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12212 18127 | MissingBooleanInPath,
|
18128 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12213 18129 | }
|
18130 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12214 18131 | impl ::std::fmt::Display for ConstraintViolation {
|
18132 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12215 18133 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18134 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12216 18135 | match self {
|
12217 - | ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
12218 - | }
|
18136 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
18137 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
18138 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12219 18139 | }
|
18140 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12220 18141 | }
|
18142 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12221 18143 | impl ::std::error::Error for ConstraintViolation {}
|
18144 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
12222 18145 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedBooleanInput {
|
12223 18146 | type Error = ConstraintViolation;
|
12224 18147 |
|
12225 18148 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12226 18149 | builder.build()
|
12227 18150 | }
|
12228 18151 | }
|
12229 - | /// A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18152 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18153 + | /* RustType.kt:516 */
|
12230 18154 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12231 18156 | pub struct Builder {
|
18157 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12232 18158 | pub(crate) boolean_in_body: ::std::option::Option<bool>,
|
18159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12233 18160 | pub(crate) boolean_in_path: ::std::option::Option<bool>,
|
18161 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12234 18162 | pub(crate) boolean_in_query: ::std::option::Option<bool>,
|
18163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12235 18164 | pub(crate) boolean_in_header: ::std::option::Option<bool>,
|
18165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12236 18166 | }
|
18167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12237 18168 | impl Builder {
|
18169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12238 18170 | #[allow(missing_docs)] // documentation missing in model
|
18171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12239 18172 | pub fn boolean_in_body(mut self, input: ::std::option::Option<bool>) -> Self {
|
12240 - | self.boolean_in_body = input;
|
18173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18174 + | self.boolean_in_body =
|
18175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12241 18177 | self
|
18178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12242 18179 | }
|
18180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12243 18181 | #[allow(missing_docs)] // documentation missing in model
|
18182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12244 18183 | pub fn boolean_in_path(mut self, input: bool) -> Self {
|
12245 - | self.boolean_in_path = Some(input);
|
18184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18185 + | self.boolean_in_path =
|
18186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
18187 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
18189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12246 18190 | self
|
18191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12247 18192 | }
|
18193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12248 18194 | #[allow(missing_docs)] // documentation missing in model
|
18195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12249 18196 | pub fn boolean_in_query(mut self, input: ::std::option::Option<bool>) -> Self {
|
12250 - | self.boolean_in_query = input;
|
18197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18198 + | self.boolean_in_query =
|
18199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12251 18201 | self
|
18202 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12252 18203 | }
|
18204 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12253 18205 | #[allow(missing_docs)] // documentation missing in model
|
18206 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12254 18207 | pub fn boolean_in_header(mut self, input: ::std::option::Option<bool>) -> Self {
|
12255 - | self.boolean_in_header = input;
|
18208 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18209 + | self.boolean_in_header =
|
18210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18211 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12256 18212 | self
|
18213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12257 18214 | }
|
12258 - | /// Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
12259 - | ///
|
18215 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
18216 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
12260 18217 | /// The builder fails to construct a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) if you do not provide a value for all non-`Option`al members.
|
12261 18218 | ///
|
18219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12262 18220 | pub fn build(self) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
12263 18221 | self.build_enforcing_required_and_enum_traits()
|
12264 18222 | }
|
18223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12265 18224 | fn build_enforcing_required_and_enum_traits(
|
12266 18225 | self,
|
12267 18226 | ) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
12268 - | Ok(crate::input::MalformedBooleanInput {
|
18227 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
18228 + | Ok(
|
18229 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18230 + | crate::input::MalformedBooleanInput {
|
18231 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12269 18232 | boolean_in_body: self.boolean_in_body,
|
18233 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12270 18234 | boolean_in_path: self
|
12271 18235 | .boolean_in_path
|
18236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
12272 18237 | .ok_or(ConstraintViolation::MissingBooleanInPath)?,
|
18238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12273 18239 | boolean_in_query: self.boolean_in_query,
|
18240 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12274 18241 | boolean_in_header: self.boolean_in_header,
|
12275 - | })
|
18242 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18243 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
18244 + | )
|
18245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12276 18246 | }
|
18247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12277 18248 | }
|
18249 + |
|
18250 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12278 18251 | }
|
12279 - | /// See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18252 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
12280 18253 | pub(crate) mod malformed_union_input_internal {
|
12281 18254 |
|
18255 + | /* ServerBuilderGenerator.kt:461 */
|
12282 18256 | impl ::std::convert::From<Builder> for crate::input::MalformedUnionInput {
|
12283 18257 | fn from(builder: Builder) -> Self {
|
12284 18258 | builder.build()
|
12285 18259 | }
|
12286 18260 | }
|
12287 - | /// A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18261 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18262 + | /* RustType.kt:516 */
|
12288 18263 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18264 + | /* ServerBuilderGenerator.kt:211 */
|
12289 18265 | pub(crate) struct Builder {
|
18266 + | /* ServerBuilderGenerator.kt:308 */
|
12290 18267 | pub(crate) union: ::std::option::Option<crate::model::SimpleUnion>,
|
18268 + | /* ServerBuilderGenerator.kt:211 */
|
12291 18269 | }
|
18270 + | /* ServerBuilderGenerator.kt:215 */
|
12292 18271 | impl Builder {
|
18272 + | /* ServerBuilderGenerator.kt:426 */
|
12293 18273 | #[allow(missing_docs)] // documentation missing in model
|
18274 + | /* ServerBuilderGenerator.kt:428 */
|
12294 18275 | pub(crate) fn set_union(
|
12295 18276 | mut self,
|
12296 18277 | input: Option<impl ::std::convert::Into<crate::model::SimpleUnion>>,
|
12297 18278 | ) -> Self {
|
18279 + | /* ServerBuilderGenerator.kt:429 */
|
12298 18280 | self.union = input.map(|v| v.into());
|
12299 18281 | self
|
18282 + | /* ServerBuilderGenerator.kt:428 */
|
12300 18283 | }
|
12301 - | /// Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18284 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18285 + | /* ServerBuilderGenerator.kt:271 */
|
12302 18286 | pub fn build(self) -> crate::input::MalformedUnionInput {
|
12303 18287 | self.build_enforcing_all_constraints()
|
12304 18288 | }
|
18289 + | /* ServerBuilderGenerator.kt:283 */
|
12305 18290 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedUnionInput {
|
12306 - | crate::input::MalformedUnionInput { union: self.union }
|
18291 + | /* ServerBuilderGenerator.kt:542 */
|
18292 + | crate::input::MalformedUnionInput {
|
18293 + | /* ServerBuilderGenerator.kt:546 */
|
18294 + | union: self.union,
|
18295 + | /* ServerBuilderGenerator.kt:542 */
|
18296 + | }
|
18297 + | /* ServerBuilderGenerator.kt:283 */
|
12307 18298 | }
|
18299 + | /* ServerBuilderGenerator.kt:215 */
|
12308 18300 | }
|
18301 + |
|
18302 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12309 18303 | }
|
12310 - | /// See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18304 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
12311 18305 | pub mod malformed_union_input {
|
12312 18306 |
|
18307 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12313 18308 | impl ::std::convert::From<Builder> for crate::input::MalformedUnionInput {
|
12314 18309 | fn from(builder: Builder) -> Self {
|
12315 18310 | builder.build()
|
12316 18311 | }
|
12317 18312 | }
|
12318 - | /// A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18313 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18314 + | /* RustType.kt:516 */
|
12319 18315 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12320 18317 | pub struct Builder {
|
18318 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12321 18319 | pub(crate) union: ::std::option::Option<crate::model::SimpleUnion>,
|
18320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12322 18321 | }
|
18322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12323 18323 | impl Builder {
|
18324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12324 18325 | #[allow(missing_docs)] // documentation missing in model
|
18326 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12325 18327 | pub fn union(mut self, input: ::std::option::Option<crate::model::SimpleUnion>) -> Self {
|
12326 - | self.union = input;
|
18328 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18329 + | self.union =
|
18330 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12327 18332 | self
|
18333 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12328 18334 | }
|
12329 - | /// Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18335 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
18336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12330 18337 | pub fn build(self) -> crate::input::MalformedUnionInput {
|
12331 18338 | self.build_enforcing_required_and_enum_traits()
|
12332 18339 | }
|
18340 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12333 18341 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MalformedUnionInput {
|
12334 - | crate::input::MalformedUnionInput { union: self.union }
|
18342 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18343 + | crate::input::MalformedUnionInput {
|
18344 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18345 + | union: self.union,
|
18346 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18347 + | }
|
18348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12335 18349 | }
|
18350 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12336 18351 | }
|
18352 + |
|
18353 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12337 18354 | }
|
12338 - | /// See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18355 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
12339 18356 | pub(crate) mod malformed_integer_input_internal {
|
12340 18357 |
|
18358 + | /* RustType.kt:516 */
|
12341 18359 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12342 - | /// Holds one variant for each of the ways the builder can fail.
|
18360 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18361 + | /* RustType.kt:516 */
|
12343 18362 | #[non_exhaustive]
|
18363 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12344 18364 | #[allow(clippy::enum_variant_names)]
|
12345 18365 | pub(crate) enum ConstraintViolation {
|
12346 - | /// `integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
18366 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
18367 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12347 18368 | MissingIntegerInPath,
|
18369 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12348 18370 | }
|
18371 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12349 18372 | impl ::std::fmt::Display for ConstraintViolation {
|
18373 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12350 18374 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18375 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12351 18376 | match self {
|
12352 - | ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
12353 - | }
|
18377 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
18378 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
18379 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12354 18380 | }
|
18381 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12355 18382 | }
|
18383 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12356 18384 | impl ::std::error::Error for ConstraintViolation {}
|
18385 + | /* ServerBuilderConstraintViolations.kt:171 */
|
12357 18386 | impl ConstraintViolation {
|
12358 18387 | pub(crate) fn as_validation_exception_field(
|
12359 18388 | self,
|
12360 18389 | path: ::std::string::String,
|
12361 18390 | ) -> crate::model::ValidationExceptionField {
|
12362 18391 | match self {
|
12363 18392 | ConstraintViolation::MissingIntegerInPath => crate::model::ValidationExceptionField {
|
12364 18393 | message: format!("Value at '{}/integerInPath' failed to satisfy constraint: Member must not be null", path),
|
12365 18394 | path: path + "/integerInPath",
|
12366 18395 | },
|
12367 18396 | }
|
12368 18397 | }
|
12369 18398 | }
|
18399 + | /* ServerBuilderGenerator.kt:234 */
|
12370 18400 | impl ::std::convert::From<ConstraintViolation>
|
12371 18401 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
12372 18402 | {
|
12373 18403 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
12374 18404 | let first_validation_exception_field =
|
12375 18405 | constraint_violation.as_validation_exception_field("".to_owned());
|
12376 18406 | let validation_exception = crate::error::ValidationException {
|
12377 18407 | message: format!(
|
12378 18408 | "1 validation error detected. {}",
|
12379 18409 | &first_validation_exception_field.message
|
12380 18410 | ),
|
12381 18411 | field_list: Some(vec![first_validation_exception_field]),
|
12382 18412 | };
|
12383 18413 | Self::ConstraintViolation(
|
12384 18414 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
12385 18415 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
12386 18416 | )
|
12387 18417 | }
|
12388 18418 | }
|
18419 + | /* ServerBuilderGenerator.kt:244 */
|
12389 18420 | impl ::std::convert::From<Builder>
|
12390 18421 | for crate::constrained::MaybeConstrained<crate::input::MalformedIntegerInput>
|
12391 18422 | {
|
12392 18423 | fn from(builder: Builder) -> Self {
|
12393 18424 | Self::Unconstrained(builder)
|
12394 18425 | }
|
12395 18426 | }
|
18427 + | /* ServerBuilderGenerator.kt:446 */
|
12396 18428 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedIntegerInput {
|
12397 18429 | type Error = ConstraintViolation;
|
12398 18430 |
|
12399 18431 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12400 18432 | builder.build()
|
12401 18433 | }
|
12402 18434 | }
|
12403 - | /// A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18435 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18436 + | /* RustType.kt:516 */
|
12404 18437 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18438 + | /* ServerBuilderGenerator.kt:211 */
|
12405 18439 | pub(crate) struct Builder {
|
18440 + | /* ServerBuilderGenerator.kt:308 */
|
12406 18441 | pub(crate) integer_in_body: ::std::option::Option<i32>,
|
18442 + | /* ServerBuilderGenerator.kt:308 */
|
12407 18443 | pub(crate) integer_in_path: ::std::option::Option<i32>,
|
18444 + | /* ServerBuilderGenerator.kt:308 */
|
12408 18445 | pub(crate) integer_in_query: ::std::option::Option<i32>,
|
18446 + | /* ServerBuilderGenerator.kt:308 */
|
12409 18447 | pub(crate) integer_in_header: ::std::option::Option<i32>,
|
18448 + | /* ServerBuilderGenerator.kt:211 */
|
12410 18449 | }
|
18450 + | /* ServerBuilderGenerator.kt:215 */
|
12411 18451 | impl Builder {
|
18452 + | /* ServerBuilderGenerator.kt:426 */
|
12412 18453 | #[allow(missing_docs)] // documentation missing in model
|
18454 + | /* ServerBuilderGenerator.kt:428 */
|
12413 18455 | pub(crate) fn set_integer_in_body(
|
12414 18456 | mut self,
|
12415 18457 | input: Option<impl ::std::convert::Into<i32>>,
|
12416 18458 | ) -> Self {
|
18459 + | /* ServerBuilderGenerator.kt:429 */
|
12417 18460 | self.integer_in_body = input.map(|v| v.into());
|
12418 18461 | self
|
18462 + | /* ServerBuilderGenerator.kt:428 */
|
12419 18463 | }
|
18464 + | /* ServerBuilderGenerator.kt:426 */
|
12420 18465 | #[allow(missing_docs)] // documentation missing in model
|
18466 + | /* ServerBuilderGenerator.kt:428 */
|
12421 18467 | pub(crate) fn set_integer_in_path(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
18468 + | /* ServerBuilderGenerator.kt:429 */
|
12422 18469 | self.integer_in_path = Some(input.into());
|
12423 18470 | self
|
18471 + | /* ServerBuilderGenerator.kt:428 */
|
12424 18472 | }
|
18473 + | /* ServerBuilderGenerator.kt:426 */
|
12425 18474 | #[allow(missing_docs)] // documentation missing in model
|
18475 + | /* ServerBuilderGenerator.kt:428 */
|
12426 18476 | pub(crate) fn set_integer_in_query(
|
12427 18477 | mut self,
|
12428 18478 | input: Option<impl ::std::convert::Into<i32>>,
|
12429 18479 | ) -> Self {
|
18480 + | /* ServerBuilderGenerator.kt:429 */
|
12430 18481 | self.integer_in_query = input.map(|v| v.into());
|
12431 18482 | self
|
18483 + | /* ServerBuilderGenerator.kt:428 */
|
12432 18484 | }
|
18485 + | /* ServerBuilderGenerator.kt:426 */
|
12433 18486 | #[allow(missing_docs)] // documentation missing in model
|
18487 + | /* ServerBuilderGenerator.kt:428 */
|
12434 18488 | pub(crate) fn set_integer_in_header(
|
12435 18489 | mut self,
|
12436 18490 | input: Option<impl ::std::convert::Into<i32>>,
|
12437 18491 | ) -> Self {
|
18492 + | /* ServerBuilderGenerator.kt:429 */
|
12438 18493 | self.integer_in_header = input.map(|v| v.into());
|
12439 18494 | self
|
18495 + | /* ServerBuilderGenerator.kt:428 */
|
12440 18496 | }
|
12441 - | /// Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
12442 - | ///
|
18497 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18498 + | /// /* ServerBuilderGenerator.kt:260 */
|
12443 18499 | /// The builder fails to construct a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) if a [`ConstraintViolation`] occurs.
|
12444 18500 | ///
|
18501 + | /* ServerBuilderGenerator.kt:271 */
|
12445 18502 | pub fn build(self) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
12446 18503 | self.build_enforcing_all_constraints()
|
12447 18504 | }
|
18505 + | /* ServerBuilderGenerator.kt:283 */
|
12448 18506 | fn build_enforcing_all_constraints(
|
12449 18507 | self,
|
12450 18508 | ) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
12451 - | Ok(crate::input::MalformedIntegerInput {
|
18509 + | /* ServerBuilderGenerator.kt:287 */
|
18510 + | Ok(
|
18511 + | /* ServerBuilderGenerator.kt:542 */
|
18512 + | crate::input::MalformedIntegerInput {
|
18513 + | /* ServerBuilderGenerator.kt:546 */
|
12452 18514 | integer_in_body: self.integer_in_body,
|
18515 + | /* ServerBuilderGenerator.kt:546 */
|
12453 18516 | integer_in_path: self
|
12454 18517 | .integer_in_path
|
18518 + | /* ServerBuilderGenerator.kt:569 */
|
12455 18519 | .ok_or(ConstraintViolation::MissingIntegerInPath)?,
|
18520 + | /* ServerBuilderGenerator.kt:546 */
|
12456 18521 | integer_in_query: self.integer_in_query,
|
18522 + | /* ServerBuilderGenerator.kt:546 */
|
12457 18523 | integer_in_header: self.integer_in_header,
|
12458 - | })
|
18524 + | /* ServerBuilderGenerator.kt:542 */
|
18525 + | }, /* ServerBuilderGenerator.kt:287 */
|
18526 + | )
|
18527 + | /* ServerBuilderGenerator.kt:283 */
|
12459 18528 | }
|
18529 + | /* ServerBuilderGenerator.kt:215 */
|
12460 18530 | }
|
18531 + |
|
18532 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12461 18533 | }
|
12462 - | /// See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18534 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
12463 18535 | pub mod malformed_integer_input {
|
12464 18536 |
|
18537 + | /* RustType.kt:516 */
|
12465 18538 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12466 - | /// Holds one variant for each of the ways the builder can fail.
|
12467 - |
|
18539 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18540 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12468 18541 | #[allow(clippy::enum_variant_names)]
|
12469 18542 | pub enum ConstraintViolation {
|
12470 - | /// `integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
18543 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
18544 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12471 18545 | MissingIntegerInPath,
|
18546 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12472 18547 | }
|
18548 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12473 18549 | impl ::std::fmt::Display for ConstraintViolation {
|
18550 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12474 18551 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18552 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12475 18553 | match self {
|
12476 - | ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
12477 - | }
|
18554 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
18555 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
18556 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12478 18557 | }
|
18558 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12479 18559 | }
|
18560 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12480 18561 | impl ::std::error::Error for ConstraintViolation {}
|
18562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
12481 18563 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedIntegerInput {
|
12482 18564 | type Error = ConstraintViolation;
|
12483 18565 |
|
12484 18566 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12485 18567 | builder.build()
|
12486 18568 | }
|
12487 18569 | }
|
12488 - | /// A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18570 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18571 + | /* RustType.kt:516 */
|
12489 18572 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12490 18574 | pub struct Builder {
|
18575 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12491 18576 | pub(crate) integer_in_body: ::std::option::Option<i32>,
|
18577 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12492 18578 | pub(crate) integer_in_path: ::std::option::Option<i32>,
|
18579 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12493 18580 | pub(crate) integer_in_query: ::std::option::Option<i32>,
|
18581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12494 18582 | pub(crate) integer_in_header: ::std::option::Option<i32>,
|
18583 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12495 18584 | }
|
18585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12496 18586 | impl Builder {
|
18587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12497 18588 | #[allow(missing_docs)] // documentation missing in model
|
18589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12498 18590 | pub fn integer_in_body(mut self, input: ::std::option::Option<i32>) -> Self {
|
12499 - | self.integer_in_body = input;
|
18591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18592 + | self.integer_in_body =
|
18593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12500 18595 | self
|
18596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12501 18597 | }
|
18598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12502 18599 | #[allow(missing_docs)] // documentation missing in model
|
18600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12503 18601 | pub fn integer_in_path(mut self, input: i32) -> Self {
|
12504 - | self.integer_in_path = Some(input);
|
18602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18603 + | self.integer_in_path =
|
18604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
18605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
18607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12505 18608 | self
|
18609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12506 18610 | }
|
18611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12507 18612 | #[allow(missing_docs)] // documentation missing in model
|
18613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12508 18614 | pub fn integer_in_query(mut self, input: ::std::option::Option<i32>) -> Self {
|
12509 - | self.integer_in_query = input;
|
18615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18616 + | self.integer_in_query =
|
18617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12510 18619 | self
|
18620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12511 18621 | }
|
18622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12512 18623 | #[allow(missing_docs)] // documentation missing in model
|
18624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12513 18625 | pub fn integer_in_header(mut self, input: ::std::option::Option<i32>) -> Self {
|
12514 - | self.integer_in_header = input;
|
18626 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18627 + | self.integer_in_header =
|
18628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12515 18630 | self
|
18631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12516 18632 | }
|
12517 - | /// Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
12518 - | ///
|
18633 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
18634 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
12519 18635 | /// The builder fails to construct a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) if you do not provide a value for all non-`Option`al members.
|
12520 18636 | ///
|
18637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12521 18638 | pub fn build(self) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
12522 18639 | self.build_enforcing_required_and_enum_traits()
|
12523 18640 | }
|
18641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12524 18642 | fn build_enforcing_required_and_enum_traits(
|
12525 18643 | self,
|
12526 18644 | ) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
12527 - | Ok(crate::input::MalformedIntegerInput {
|
18645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
18646 + | Ok(
|
18647 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18648 + | crate::input::MalformedIntegerInput {
|
18649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12528 18650 | integer_in_body: self.integer_in_body,
|
18651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12529 18652 | integer_in_path: self
|
12530 18653 | .integer_in_path
|
18654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
12531 18655 | .ok_or(ConstraintViolation::MissingIntegerInPath)?,
|
18656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12532 18657 | integer_in_query: self.integer_in_query,
|
18658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12533 18659 | integer_in_header: self.integer_in_header,
|
12534 - | })
|
18660 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18661 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
18662 + | )
|
18663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12535 18664 | }
|
18665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12536 18666 | }
|
18667 + |
|
18668 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12537 18669 | }
|
12538 - | /// See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18670 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
12539 18671 | pub(crate) mod malformed_request_body_input_internal {
|
12540 18672 |
|
18673 + | /* ServerBuilderGenerator.kt:461 */
|
12541 18674 | impl ::std::convert::From<Builder> for crate::input::MalformedRequestBodyInput {
|
12542 18675 | fn from(builder: Builder) -> Self {
|
12543 18676 | builder.build()
|
12544 18677 | }
|
12545 18678 | }
|
12546 - | /// A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18679 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18680 + | /* RustType.kt:516 */
|
12547 18681 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18682 + | /* ServerBuilderGenerator.kt:211 */
|
12548 18683 | pub(crate) struct Builder {
|
12549 - | pub(crate) int: ::std::option::Option<i32>,
|
18684 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) int: ::std::option::Option<i32>,
|
18685 + | /* ServerBuilderGenerator.kt:308 */
|
12550 18686 | pub(crate) float: ::std::option::Option<f32>,
|
18687 + | /* ServerBuilderGenerator.kt:211 */
|
12551 18688 | }
|
18689 + | /* ServerBuilderGenerator.kt:215 */
|
12552 18690 | impl Builder {
|
18691 + | /* ServerBuilderGenerator.kt:426 */
|
12553 18692 | #[allow(missing_docs)] // documentation missing in model
|
18693 + | /* ServerBuilderGenerator.kt:428 */
|
12554 18694 | pub(crate) fn set_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
18695 + | /* ServerBuilderGenerator.kt:429 */
|
12555 18696 | self.int = input.map(|v| v.into());
|
12556 18697 | self
|
18698 + | /* ServerBuilderGenerator.kt:428 */
|
12557 18699 | }
|
18700 + | /* ServerBuilderGenerator.kt:426 */
|
12558 18701 | #[allow(missing_docs)] // documentation missing in model
|
18702 + | /* ServerBuilderGenerator.kt:428 */
|
12559 18703 | pub(crate) fn set_float(mut self, input: Option<impl ::std::convert::Into<f32>>) -> Self {
|
18704 + | /* ServerBuilderGenerator.kt:429 */
|
12560 18705 | self.float = input.map(|v| v.into());
|
12561 18706 | self
|
18707 + | /* ServerBuilderGenerator.kt:428 */
|
12562 18708 | }
|
12563 - | /// Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18709 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18710 + | /* ServerBuilderGenerator.kt:271 */
|
12564 18711 | pub fn build(self) -> crate::input::MalformedRequestBodyInput {
|
12565 18712 | self.build_enforcing_all_constraints()
|
12566 18713 | }
|
18714 + | /* ServerBuilderGenerator.kt:283 */
|
12567 18715 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedRequestBodyInput {
|
18716 + | /* ServerBuilderGenerator.kt:542 */
|
12568 18717 | crate::input::MalformedRequestBodyInput {
|
18718 + | /* ServerBuilderGenerator.kt:546 */
|
12569 18719 | int: self.int,
|
18720 + | /* ServerBuilderGenerator.kt:546 */
|
12570 18721 | float: self.float,
|
18722 + | /* ServerBuilderGenerator.kt:542 */
|
12571 18723 | }
|
18724 + | /* ServerBuilderGenerator.kt:283 */
|
12572 18725 | }
|
18726 + | /* ServerBuilderGenerator.kt:215 */
|
12573 18727 | }
|
18728 + |
|
18729 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12574 18730 | }
|
12575 - | /// See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18731 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
12576 18732 | pub mod malformed_request_body_input {
|
12577 18733 |
|
18734 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12578 18735 | impl ::std::convert::From<Builder> for crate::input::MalformedRequestBodyInput {
|
12579 18736 | fn from(builder: Builder) -> Self {
|
12580 18737 | builder.build()
|
12581 18738 | }
|
12582 18739 | }
|
12583 - | /// A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18740 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18741 + | /* RustType.kt:516 */
|
12584 18742 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18743 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12585 18744 | pub struct Builder {
|
18745 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12586 18746 | pub(crate) int: ::std::option::Option<i32>,
|
18747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12587 18748 | pub(crate) float: ::std::option::Option<f32>,
|
18749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12588 18750 | }
|
18751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12589 18752 | impl Builder {
|
18753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12590 18754 | #[allow(missing_docs)] // documentation missing in model
|
18755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12591 18756 | pub fn int(mut self, input: ::std::option::Option<i32>) -> Self {
|
12592 - | self.int = input;
|
18757 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18758 + | self.int =
|
18759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12593 18761 | self
|
18762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12594 18763 | }
|
18764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12595 18765 | #[allow(missing_docs)] // documentation missing in model
|
18766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12596 18767 | pub fn float(mut self, input: ::std::option::Option<f32>) -> Self {
|
12597 - | self.float = input;
|
18768 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18769 + | self.float =
|
18770 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12598 18772 | self
|
18773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12599 18774 | }
|
12600 - | /// Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18775 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
18776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12601 18777 | pub fn build(self) -> crate::input::MalformedRequestBodyInput {
|
12602 18778 | self.build_enforcing_required_and_enum_traits()
|
12603 18779 | }
|
18780 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12604 18781 | fn build_enforcing_required_and_enum_traits(
|
12605 18782 | self,
|
12606 18783 | ) -> crate::input::MalformedRequestBodyInput {
|
18784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12607 18785 | crate::input::MalformedRequestBodyInput {
|
18786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12608 18787 | int: self.int,
|
18788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
12609 18789 | float: self.float,
|
18790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12610 18791 | }
|
18792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12611 18793 | }
|
18794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12612 18795 | }
|
18796 + |
|
18797 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12613 18798 | }
|
12614 - | /// See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18799 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
12615 18800 | pub(crate) mod http_checksum_required_input_internal {
|
12616 18801 |
|
18802 + | /* ServerBuilderGenerator.kt:461 */
|
12617 18803 | impl ::std::convert::From<Builder> for crate::input::HttpChecksumRequiredInput {
|
12618 18804 | fn from(builder: Builder) -> Self {
|
12619 18805 | builder.build()
|
12620 18806 | }
|
12621 18807 | }
|
12622 - | /// A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18808 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18809 + | /* RustType.kt:516 */
|
12623 18810 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18811 + | /* ServerBuilderGenerator.kt:211 */
|
12624 18812 | pub(crate) struct Builder {
|
18813 + | /* ServerBuilderGenerator.kt:308 */
|
12625 18814 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
18815 + | /* ServerBuilderGenerator.kt:211 */
|
12626 18816 | }
|
18817 + | /* ServerBuilderGenerator.kt:215 */
|
12627 18818 | impl Builder {
|
18819 + | /* ServerBuilderGenerator.kt:426 */
|
12628 18820 | #[allow(missing_docs)] // documentation missing in model
|
18821 + | /* ServerBuilderGenerator.kt:428 */
|
12629 18822 | pub(crate) fn set_foo(
|
12630 18823 | mut self,
|
12631 18824 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12632 18825 | ) -> Self {
|
18826 + | /* ServerBuilderGenerator.kt:429 */
|
12633 18827 | self.foo = input.map(|v| v.into());
|
12634 18828 | self
|
18829 + | /* ServerBuilderGenerator.kt:428 */
|
12635 18830 | }
|
12636 - | /// Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18831 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18832 + | /* ServerBuilderGenerator.kt:271 */
|
12637 18833 | pub fn build(self) -> crate::input::HttpChecksumRequiredInput {
|
12638 18834 | self.build_enforcing_all_constraints()
|
12639 18835 | }
|
18836 + | /* ServerBuilderGenerator.kt:283 */
|
12640 18837 | fn build_enforcing_all_constraints(self) -> crate::input::HttpChecksumRequiredInput {
|
12641 - | crate::input::HttpChecksumRequiredInput { foo: self.foo }
|
18838 + | /* ServerBuilderGenerator.kt:542 */
|
18839 + | crate::input::HttpChecksumRequiredInput {
|
18840 + | /* ServerBuilderGenerator.kt:546 */
|
18841 + | foo: self.foo,
|
18842 + | /* ServerBuilderGenerator.kt:542 */
|
18843 + | }
|
18844 + | /* ServerBuilderGenerator.kt:283 */
|
12642 18845 | }
|
18846 + | /* ServerBuilderGenerator.kt:215 */
|
12643 18847 | }
|
18848 + |
|
18849 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12644 18850 | }
|
12645 - | /// See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18851 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
12646 18852 | pub mod http_checksum_required_input {
|
12647 18853 |
|
18854 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12648 18855 | impl ::std::convert::From<Builder> for crate::input::HttpChecksumRequiredInput {
|
12649 18856 | fn from(builder: Builder) -> Self {
|
12650 18857 | builder.build()
|
12651 18858 | }
|
12652 18859 | }
|
12653 - | /// A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18860 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18861 + | /* RustType.kt:516 */
|
12654 18862 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12655 18864 | pub struct Builder {
|
18865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12656 18866 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
18867 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12657 18868 | }
|
18869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12658 18870 | impl Builder {
|
18871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12659 18872 | #[allow(missing_docs)] // documentation missing in model
|
18873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12660 18874 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
12661 - | self.foo = input;
|
18875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
18876 + | self.foo =
|
18877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
18878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12662 18879 | self
|
18880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12663 18881 | }
|
12664 - | /// Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18882 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
18883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12665 18884 | pub fn build(self) -> crate::input::HttpChecksumRequiredInput {
|
12666 18885 | self.build_enforcing_required_and_enum_traits()
|
12667 18886 | }
|
18887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12668 18888 | fn build_enforcing_required_and_enum_traits(
|
12669 18889 | self,
|
12670 18890 | ) -> crate::input::HttpChecksumRequiredInput {
|
12671 - | crate::input::HttpChecksumRequiredInput { foo: self.foo }
|
18891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18892 + | crate::input::HttpChecksumRequiredInput {
|
18893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18894 + | foo: self.foo,
|
18895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18896 + | }
|
18897 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12672 18898 | }
|
18899 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12673 18900 | }
|
18901 + |
|
18902 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12674 18903 | }
|
12675 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18904 + | /// /* ServerBuilderGenerator.kt:171 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
12676 18905 | pub(crate) mod host_with_path_operation_input_internal {
|
12677 18906 |
|
18907 + | /* ServerBuilderGenerator.kt:461 */
|
12678 18908 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
12679 18909 | fn from(builder: Builder) -> Self {
|
12680 18910 | builder.build()
|
12681 18911 | }
|
12682 18912 | }
|
12683 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18913 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18914 + | /* RustType.kt:516 */
|
12684 18915 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12685 - | pub(crate) struct Builder {}
|
18916 + | /* ServerBuilderGenerator.kt:211 */
|
18917 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
18918 + | /* ServerBuilderGenerator.kt:215 */
|
12686 18919 | impl Builder {
|
12687 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18920 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18921 + | /* ServerBuilderGenerator.kt:271 */
|
12688 18922 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
12689 18923 | self.build_enforcing_all_constraints()
|
12690 18924 | }
|
18925 + | /* ServerBuilderGenerator.kt:283 */
|
12691 18926 | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
12692 - | crate::input::HostWithPathOperationInput {}
|
18927 + | /* ServerBuilderGenerator.kt:542 */
|
18928 + | crate::input::HostWithPathOperationInput {
|
18929 + | /* ServerBuilderGenerator.kt:542 */}
|
18930 + | /* ServerBuilderGenerator.kt:283 */
|
12693 18931 | }
|
18932 + | /* ServerBuilderGenerator.kt:215 */
|
12694 18933 | }
|
18934 + |
|
18935 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12695 18936 | }
|
12696 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18937 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
12697 18938 | pub mod host_with_path_operation_input {
|
12698 18939 |
|
18940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12699 18941 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
12700 18942 | fn from(builder: Builder) -> Self {
|
12701 18943 | builder.build()
|
12702 18944 | }
|
12703 18945 | }
|
12704 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18946 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18947 + | /* RustType.kt:516 */
|
12705 18948 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12706 - | pub struct Builder {}
|
18949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18950 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
18951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12707 18952 | impl Builder {
|
12708 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18953 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
18954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12709 18955 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
12710 18956 | self.build_enforcing_required_and_enum_traits()
|
12711 18957 | }
|
18958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12712 18959 | fn build_enforcing_required_and_enum_traits(
|
12713 18960 | self,
|
12714 18961 | ) -> crate::input::HostWithPathOperationInput {
|
12715 - | crate::input::HostWithPathOperationInput {}
|
18962 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18963 + | crate::input::HostWithPathOperationInput {
|
18964 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
18965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12716 18966 | }
|
18967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12717 18968 | }
|
18969 + |
|
18970 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12718 18971 | }
|
12719 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
18972 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
12720 18973 | pub(crate) mod endpoint_with_host_label_operation_input_internal {
|
12721 18974 |
|
18975 + | /* RustType.kt:516 */
|
12722 18976 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12723 - | /// Holds one variant for each of the ways the builder can fail.
|
18977 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18978 + | /* RustType.kt:516 */
|
12724 18979 | #[non_exhaustive]
|
18980 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12725 18981 | #[allow(clippy::enum_variant_names)]
|
12726 18982 | pub(crate) enum ConstraintViolation {
|
12727 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
18983 + | /// /* ServerBuilderConstraintViolations.kt:138 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
18984 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12728 18985 | MissingLabel,
|
18986 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12729 18987 | }
|
18988 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12730 18989 | impl ::std::fmt::Display for ConstraintViolation {
|
18990 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12731 18991 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18992 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12732 18993 | match self {
|
12733 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
12734 - | }
|
18994 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
18995 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
18996 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12735 18997 | }
|
18998 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12736 18999 | }
|
19000 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12737 19001 | impl ::std::error::Error for ConstraintViolation {}
|
19002 + | /* ServerBuilderConstraintViolations.kt:171 */
|
12738 19003 | impl ConstraintViolation {
|
12739 19004 | pub(crate) fn as_validation_exception_field(
|
12740 19005 | self,
|
12741 19006 | path: ::std::string::String,
|
12742 19007 | ) -> crate::model::ValidationExceptionField {
|
12743 19008 | match self {
|
12744 19009 | ConstraintViolation::MissingLabel => crate::model::ValidationExceptionField {
|
12745 19010 | message: format!(
|
12746 19011 | "Value at '{}/label' failed to satisfy constraint: Member must not be null",
|
12747 19012 | path
|
12748 19013 | ),
|
12749 19014 | path: path + "/label",
|
12750 19015 | },
|
12751 19016 | }
|
12752 19017 | }
|
12753 19018 | }
|
19019 + | /* ServerBuilderGenerator.kt:234 */
|
12754 19020 | impl ::std::convert::From<ConstraintViolation>
|
12755 19021 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
12756 19022 | {
|
12757 19023 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
12758 19024 | let first_validation_exception_field =
|
12759 19025 | constraint_violation.as_validation_exception_field("".to_owned());
|
12760 19026 | let validation_exception = crate::error::ValidationException {
|
12761 19027 | message: format!(
|
12762 19028 | "1 validation error detected. {}",
|
12763 19029 | &first_validation_exception_field.message
|
12764 19030 | ),
|
12765 19031 | field_list: Some(vec![first_validation_exception_field]),
|
12766 19032 | };
|
12767 19033 | Self::ConstraintViolation(
|
12768 19034 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
12769 19035 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
12770 19036 | )
|
12771 19037 | }
|
12772 19038 | }
|
19039 + | /* ServerBuilderGenerator.kt:244 */
|
12773 19040 | impl ::std::convert::From<Builder>
|
12774 19041 | for crate::constrained::MaybeConstrained<crate::input::EndpointWithHostLabelOperationInput>
|
12775 19042 | {
|
12776 19043 | fn from(builder: Builder) -> Self {
|
12777 19044 | Self::Unconstrained(builder)
|
12778 19045 | }
|
12779 19046 | }
|
19047 + | /* ServerBuilderGenerator.kt:446 */
|
12780 19048 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
12781 19049 | type Error = ConstraintViolation;
|
12782 19050 |
|
12783 19051 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12784 19052 | builder.build()
|
12785 19053 | }
|
12786 19054 | }
|
12787 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19055 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19056 + | /* RustType.kt:516 */
|
12788 19057 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19058 + | /* ServerBuilderGenerator.kt:211 */
|
12789 19059 | pub(crate) struct Builder {
|
19060 + | /* ServerBuilderGenerator.kt:308 */
|
12790 19061 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
19062 + | /* ServerBuilderGenerator.kt:211 */
|
12791 19063 | }
|
19064 + | /* ServerBuilderGenerator.kt:215 */
|
12792 19065 | impl Builder {
|
19066 + | /* ServerBuilderGenerator.kt:426 */
|
12793 19067 | #[allow(missing_docs)] // documentation missing in model
|
19068 + | /* ServerBuilderGenerator.kt:428 */
|
12794 19069 | pub(crate) fn set_label(
|
12795 19070 | mut self,
|
12796 19071 | input: impl ::std::convert::Into<::std::string::String>,
|
12797 19072 | ) -> Self {
|
19073 + | /* ServerBuilderGenerator.kt:429 */
|
12798 19074 | self.label = Some(input.into());
|
12799 19075 | self
|
19076 + | /* ServerBuilderGenerator.kt:428 */
|
12800 19077 | }
|
12801 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
12802 - | ///
|
19078 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19079 + | /// /* ServerBuilderGenerator.kt:260 */
|
12803 19080 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if a [`ConstraintViolation`] occurs.
|
12804 19081 | ///
|
19082 + | /* ServerBuilderGenerator.kt:271 */
|
12805 19083 | pub fn build(
|
12806 19084 | self,
|
12807 19085 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
12808 19086 | {
|
12809 19087 | self.build_enforcing_all_constraints()
|
12810 19088 | }
|
19089 + | /* ServerBuilderGenerator.kt:283 */
|
12811 19090 | fn build_enforcing_all_constraints(
|
12812 19091 | self,
|
12813 19092 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
12814 19093 | {
|
12815 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
12816 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
12817 - | })
|
19094 + | /* ServerBuilderGenerator.kt:287 */
|
19095 + | Ok(
|
19096 + | /* ServerBuilderGenerator.kt:542 */
|
19097 + | crate::input::EndpointWithHostLabelOperationInput {
|
19098 + | /* ServerBuilderGenerator.kt:546 */
|
19099 + | label: self
|
19100 + | .label
|
19101 + | /* ServerBuilderGenerator.kt:569 */
|
19102 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
19103 + | /* ServerBuilderGenerator.kt:542 */
|
19104 + | }, /* ServerBuilderGenerator.kt:287 */
|
19105 + | )
|
19106 + | /* ServerBuilderGenerator.kt:283 */
|
12818 19107 | }
|
19108 + | /* ServerBuilderGenerator.kt:215 */
|
12819 19109 | }
|
19110 + |
|
19111 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12820 19112 | }
|
12821 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19113 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
12822 19114 | pub mod endpoint_with_host_label_operation_input {
|
12823 19115 |
|
19116 + | /* RustType.kt:516 */
|
12824 19117 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12825 - | /// Holds one variant for each of the ways the builder can fail.
|
12826 - |
|
19118 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
19119 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12827 19120 | #[allow(clippy::enum_variant_names)]
|
12828 19121 | pub enum ConstraintViolation {
|
12829 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
19122 + | /// /* ServerBuilderConstraintViolations.kt:138 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
19123 + | /* ServerBuilderConstraintViolations.kt:143 */
|
12830 19124 | MissingLabel,
|
19125 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12831 19126 | }
|
19127 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12832 19128 | impl ::std::fmt::Display for ConstraintViolation {
|
19129 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12833 19130 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
19131 + | /* ServerBuilderConstraintViolations.kt:119 */
|
12834 19132 | match self {
|
12835 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
12836 - | }
|
19133 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
19134 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
19135 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12837 19136 | }
|
19137 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12838 19138 | }
|
19139 + | /* ServerBuilderConstraintViolations.kt:84 */
|
12839 19140 | impl ::std::error::Error for ConstraintViolation {}
|
19141 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
12840 19142 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
12841 19143 | type Error = ConstraintViolation;
|
12842 19144 |
|
12843 19145 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12844 19146 | builder.build()
|
12845 19147 | }
|
12846 19148 | }
|
12847 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19149 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19150 + | /* RustType.kt:516 */
|
12848 19151 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19152 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12849 19153 | pub struct Builder {
|
19154 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12850 19155 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
19156 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12851 19157 | }
|
19158 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12852 19159 | impl Builder {
|
19160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12853 19161 | #[allow(missing_docs)] // documentation missing in model
|
19162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12854 19163 | pub fn label(mut self, input: ::std::string::String) -> Self {
|
12855 - | self.label = Some(input);
|
19164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19165 + | self.label =
|
19166 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
19167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
19169 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12856 19170 | self
|
19171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12857 19172 | }
|
12858 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
12859 - | ///
|
19173 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
19174 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
12860 19175 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if you do not provide a value for all non-`Option`al members.
|
12861 19176 | ///
|
19177 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12862 19178 | pub fn build(
|
12863 19179 | self,
|
12864 19180 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
12865 19181 | {
|
12866 19182 | self.build_enforcing_required_and_enum_traits()
|
12867 19183 | }
|
19184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12868 19185 | fn build_enforcing_required_and_enum_traits(
|
12869 19186 | self,
|
12870 19187 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
12871 19188 | {
|
12872 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
12873 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
12874 - | })
|
19189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
19190 + | Ok(
|
19191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19192 + | crate::input::EndpointWithHostLabelOperationInput {
|
19193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19194 + | label: self
|
19195 + | .label
|
19196 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
19197 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
19198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19199 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
19200 + | )
|
19201 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12875 19202 | }
|
19203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12876 19204 | }
|
19205 + |
|
19206 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12877 19207 | }
|
12878 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19208 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
12879 19209 | pub(crate) mod endpoint_operation_input_internal {
|
12880 19210 |
|
19211 + | /* ServerBuilderGenerator.kt:461 */
|
12881 19212 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
12882 19213 | fn from(builder: Builder) -> Self {
|
12883 19214 | builder.build()
|
12884 19215 | }
|
12885 19216 | }
|
12886 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19217 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19218 + | /* RustType.kt:516 */
|
12887 19219 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12888 - | pub(crate) struct Builder {}
|
19220 + | /* ServerBuilderGenerator.kt:211 */
|
19221 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19222 + | /* ServerBuilderGenerator.kt:215 */
|
12889 19223 | impl Builder {
|
12890 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19224 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19225 + | /* ServerBuilderGenerator.kt:271 */
|
12891 19226 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
12892 19227 | self.build_enforcing_all_constraints()
|
12893 19228 | }
|
19229 + | /* ServerBuilderGenerator.kt:283 */
|
12894 19230 | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
12895 - | crate::input::EndpointOperationInput {}
|
19231 + | /* ServerBuilderGenerator.kt:542 */
|
19232 + | crate::input::EndpointOperationInput {
|
19233 + | /* ServerBuilderGenerator.kt:542 */}
|
19234 + | /* ServerBuilderGenerator.kt:283 */
|
12896 19235 | }
|
19236 + | /* ServerBuilderGenerator.kt:215 */
|
12897 19237 | }
|
19238 + |
|
19239 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12898 19240 | }
|
12899 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19241 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
12900 19242 | pub mod endpoint_operation_input {
|
12901 19243 |
|
19244 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12902 19245 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
12903 19246 | fn from(builder: Builder) -> Self {
|
12904 19247 | builder.build()
|
12905 19248 | }
|
12906 19249 | }
|
12907 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19250 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19251 + | /* RustType.kt:516 */
|
12908 19252 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12909 - | pub struct Builder {}
|
19253 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19254 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
19255 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12910 19256 | impl Builder {
|
12911 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19257 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
19258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12912 19259 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
12913 19260 | self.build_enforcing_required_and_enum_traits()
|
12914 19261 | }
|
19262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12915 19263 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::EndpointOperationInput {
|
12916 - | crate::input::EndpointOperationInput {}
|
19264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19265 + | crate::input::EndpointOperationInput {
|
19266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
19267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12917 19268 | }
|
19269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12918 19270 | }
|
19271 + |
|
19272 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12919 19273 | }
|
12920 - | /// See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19274 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
12921 19275 | pub(crate) mod post_union_with_json_name_input_internal {
|
12922 19276 |
|
19277 + | /* ServerBuilderGenerator.kt:461 */
|
12923 19278 | impl ::std::convert::From<Builder> for crate::input::PostUnionWithJsonNameInput {
|
12924 19279 | fn from(builder: Builder) -> Self {
|
12925 19280 | builder.build()
|
12926 19281 | }
|
12927 19282 | }
|
12928 - | /// A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19283 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19284 + | /* RustType.kt:516 */
|
12929 19285 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19286 + | /* ServerBuilderGenerator.kt:211 */
|
12930 19287 | pub(crate) struct Builder {
|
19288 + | /* ServerBuilderGenerator.kt:308 */
|
12931 19289 | pub(crate) value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
19290 + | /* ServerBuilderGenerator.kt:211 */
|
12932 19291 | }
|
19292 + | /* ServerBuilderGenerator.kt:215 */
|
12933 19293 | impl Builder {
|
19294 + | /* ServerBuilderGenerator.kt:426 */
|
12934 19295 | #[allow(missing_docs)] // documentation missing in model
|
19296 + | /* ServerBuilderGenerator.kt:428 */
|
12935 19297 | pub(crate) fn set_value(
|
12936 19298 | mut self,
|
12937 19299 | input: Option<impl ::std::convert::Into<crate::model::UnionWithJsonName>>,
|
12938 19300 | ) -> Self {
|
19301 + | /* ServerBuilderGenerator.kt:429 */
|
12939 19302 | self.value = input.map(|v| v.into());
|
12940 19303 | self
|
19304 + | /* ServerBuilderGenerator.kt:428 */
|
12941 19305 | }
|
12942 - | /// Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19306 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19307 + | /* ServerBuilderGenerator.kt:271 */
|
12943 19308 | pub fn build(self) -> crate::input::PostUnionWithJsonNameInput {
|
12944 19309 | self.build_enforcing_all_constraints()
|
12945 19310 | }
|
19311 + | /* ServerBuilderGenerator.kt:283 */
|
12946 19312 | fn build_enforcing_all_constraints(self) -> crate::input::PostUnionWithJsonNameInput {
|
12947 - | crate::input::PostUnionWithJsonNameInput { value: self.value }
|
19313 + | /* ServerBuilderGenerator.kt:542 */
|
19314 + | crate::input::PostUnionWithJsonNameInput {
|
19315 + | /* ServerBuilderGenerator.kt:546 */
|
19316 + | value: self.value,
|
19317 + | /* ServerBuilderGenerator.kt:542 */
|
19318 + | }
|
19319 + | /* ServerBuilderGenerator.kt:283 */
|
12948 19320 | }
|
19321 + | /* ServerBuilderGenerator.kt:215 */
|
12949 19322 | }
|
19323 + |
|
19324 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12950 19325 | }
|
12951 - | /// See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19326 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
12952 19327 | pub mod post_union_with_json_name_input {
|
12953 19328 |
|
19329 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
12954 19330 | impl ::std::convert::From<Builder> for crate::input::PostUnionWithJsonNameInput {
|
12955 19331 | fn from(builder: Builder) -> Self {
|
12956 19332 | builder.build()
|
12957 19333 | }
|
12958 19334 | }
|
12959 - | /// A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19335 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19336 + | /* RustType.kt:516 */
|
12960 19337 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19338 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12961 19339 | pub struct Builder {
|
19340 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
12962 19341 | pub(crate) value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
19342 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
12963 19343 | }
|
19344 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
12964 19345 | impl Builder {
|
19346 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
12965 19347 | #[allow(missing_docs)] // documentation missing in model
|
19348 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12966 19349 | pub fn value(
|
12967 19350 | mut self,
|
12968 19351 | input: ::std::option::Option<crate::model::UnionWithJsonName>,
|
12969 19352 | ) -> Self {
|
12970 - | self.value = input;
|
19353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19354 + | self.value =
|
19355 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
12971 19357 | self
|
19358 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
12972 19359 | }
|
12973 - | /// Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19360 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
19361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
12974 19362 | pub fn build(self) -> crate::input::PostUnionWithJsonNameInput {
|
12975 19363 | self.build_enforcing_required_and_enum_traits()
|
12976 19364 | }
|
19365 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12977 19366 | fn build_enforcing_required_and_enum_traits(
|
12978 19367 | self,
|
12979 19368 | ) -> crate::input::PostUnionWithJsonNameInput {
|
12980 - | crate::input::PostUnionWithJsonNameInput { value: self.value }
|
19369 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19370 + | crate::input::PostUnionWithJsonNameInput {
|
19371 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19372 + | value: self.value,
|
19373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
12981 19374 | }
|
19375 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
12982 19376 | }
|
19377 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19378 + | }
|
19379 + |
|
19380 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12983 19381 | }
|
12984 - | /// See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19382 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
12985 19383 | pub(crate) mod post_player_action_input_internal {
|
12986 19384 |
|
19385 + | /* ServerBuilderGenerator.kt:461 */
|
12987 19386 | impl ::std::convert::From<Builder> for crate::input::PostPlayerActionInput {
|
12988 19387 | fn from(builder: Builder) -> Self {
|
12989 19388 | builder.build()
|
12990 19389 | }
|
12991 19390 | }
|
12992 - | /// A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19391 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19392 + | /* RustType.kt:516 */
|
12993 19393 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19394 + | /* ServerBuilderGenerator.kt:211 */
|
12994 19395 | pub(crate) struct Builder {
|
19396 + | /* ServerBuilderGenerator.kt:308 */
|
12995 19397 | pub(crate) action: ::std::option::Option<crate::model::PlayerAction>,
|
19398 + | /* ServerBuilderGenerator.kt:211 */
|
12996 19399 | }
|
19400 + | /* ServerBuilderGenerator.kt:215 */
|
12997 19401 | impl Builder {
|
19402 + | /* ServerBuilderGenerator.kt:426 */
|
12998 19403 | #[allow(missing_docs)] // documentation missing in model
|
19404 + | /* ServerBuilderGenerator.kt:428 */
|
12999 19405 | pub(crate) fn set_action(
|
13000 19406 | mut self,
|
13001 19407 | input: Option<impl ::std::convert::Into<crate::model::PlayerAction>>,
|
13002 19408 | ) -> Self {
|
19409 + | /* ServerBuilderGenerator.kt:429 */
|
13003 19410 | self.action = input.map(|v| v.into());
|
13004 19411 | self
|
19412 + | /* ServerBuilderGenerator.kt:428 */
|
13005 19413 | }
|
13006 - | /// Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19414 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19415 + | /* ServerBuilderGenerator.kt:271 */
|
13007 19416 | pub fn build(self) -> crate::input::PostPlayerActionInput {
|
13008 19417 | self.build_enforcing_all_constraints()
|
13009 19418 | }
|
19419 + | /* ServerBuilderGenerator.kt:283 */
|
13010 19420 | fn build_enforcing_all_constraints(self) -> crate::input::PostPlayerActionInput {
|
19421 + | /* ServerBuilderGenerator.kt:542 */
|
13011 19422 | crate::input::PostPlayerActionInput {
|
19423 + | /* ServerBuilderGenerator.kt:546 */
|
13012 19424 | action: self.action,
|
19425 + | /* ServerBuilderGenerator.kt:542 */
|
13013 19426 | }
|
19427 + | /* ServerBuilderGenerator.kt:283 */
|
13014 19428 | }
|
19429 + | /* ServerBuilderGenerator.kt:215 */
|
13015 19430 | }
|
19431 + |
|
19432 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13016 19433 | }
|
13017 - | /// See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19434 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
13018 19435 | pub mod post_player_action_input {
|
13019 19436 |
|
19437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13020 19438 | impl ::std::convert::From<Builder> for crate::input::PostPlayerActionInput {
|
13021 19439 | fn from(builder: Builder) -> Self {
|
13022 19440 | builder.build()
|
13023 19441 | }
|
13024 19442 | }
|
13025 - | /// A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19443 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19444 + | /* RustType.kt:516 */
|
13026 19445 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13027 19447 | pub struct Builder {
|
19448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13028 19449 | pub(crate) action: ::std::option::Option<crate::model::PlayerAction>,
|
19450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13029 19451 | }
|
19452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13030 19453 | impl Builder {
|
19454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13031 19455 | #[allow(missing_docs)] // documentation missing in model
|
19456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13032 19457 | pub fn action(mut self, input: ::std::option::Option<crate::model::PlayerAction>) -> Self {
|
13033 - | self.action = input;
|
19458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19459 + | self.action =
|
19460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19461 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13034 19462 | self
|
19463 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13035 19464 | }
|
13036 - | /// Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19465 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
19466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13037 19467 | pub fn build(self) -> crate::input::PostPlayerActionInput {
|
13038 19468 | self.build_enforcing_required_and_enum_traits()
|
13039 19469 | }
|
19470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13040 19471 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::PostPlayerActionInput {
|
19472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13041 19473 | crate::input::PostPlayerActionInput {
|
19474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13042 19475 | action: self.action,
|
19476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13043 19477 | }
|
19478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13044 19479 | }
|
19480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13045 19481 | }
|
19482 + |
|
19483 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13046 19484 | }
|
13047 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19485 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
13048 19486 | pub(crate) mod json_unions_input_internal {
|
13049 19487 |
|
19488 + | /* RustType.kt:516 */
|
13050 19489 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
13051 - | /// Holds one variant for each of the ways the builder can fail.
|
19490 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
19491 + | /* RustType.kt:516 */
|
13052 19492 | #[non_exhaustive]
|
19493 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13053 19494 | #[allow(clippy::enum_variant_names)]
|
13054 19495 | pub(crate) enum ConstraintViolation {
|
13055 - | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
19496 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
19497 + | /* RustType.kt:516 */
|
13056 19498 | #[doc(hidden)]
|
19499 + | /* ServerBuilderConstraintViolations.kt:164 */
|
13057 19500 | Contents(crate::model::my_union_internal::ConstraintViolation),
|
19501 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13058 19502 | }
|
19503 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13059 19504 | impl ::std::fmt::Display for ConstraintViolation {
|
19505 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13060 19506 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
19507 + | /* ServerBuilderConstraintViolations.kt:119 */
|
13061 19508 | match self {
|
13062 - | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
13063 - | }
|
19509 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
19510 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
19511 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13064 19512 | }
|
19513 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13065 19514 | }
|
19515 + | /* ServerBuilderConstraintViolations.kt:84 */
|
13066 19516 | impl ::std::error::Error for ConstraintViolation {}
|
19517 + | /* ServerBuilderConstraintViolations.kt:171 */
|
13067 19518 | impl ConstraintViolation {
|
13068 19519 | pub(crate) fn as_validation_exception_field(
|
13069 19520 | self,
|
13070 19521 | path: ::std::string::String,
|
13071 19522 | ) -> crate::model::ValidationExceptionField {
|
13072 19523 | match self {
|
13073 19524 | ConstraintViolation::Contents(inner) => {
|
13074 19525 | inner.as_validation_exception_field(path + "/contents")
|
13075 19526 | }
|
13076 19527 | }
|
13077 19528 | }
|
13078 19529 | }
|
19530 + | /* ServerBuilderGenerator.kt:234 */
|
13079 19531 | impl ::std::convert::From<ConstraintViolation>
|
13080 19532 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
13081 19533 | {
|
13082 19534 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
13083 19535 | let first_validation_exception_field =
|
13084 19536 | constraint_violation.as_validation_exception_field("".to_owned());
|
13085 19537 | let validation_exception = crate::error::ValidationException {
|
13086 19538 | message: format!(
|
13087 19539 | "1 validation error detected. {}",
|
13088 19540 | &first_validation_exception_field.message
|
13089 19541 | ),
|
13090 19542 | field_list: Some(vec![first_validation_exception_field]),
|
13091 19543 | };
|
13092 19544 | Self::ConstraintViolation(
|
13093 19545 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
13094 19546 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
13095 19547 | )
|
13096 19548 | }
|
13097 19549 | }
|
19550 + | /* ServerBuilderGenerator.kt:244 */
|
13098 19551 | impl ::std::convert::From<Builder>
|
13099 19552 | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
13100 19553 | {
|
13101 19554 | fn from(builder: Builder) -> Self {
|
13102 19555 | Self::Unconstrained(builder)
|
13103 19556 | }
|
13104 19557 | }
|
19558 + | /* ServerBuilderGenerator.kt:446 */
|
13105 19559 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
13106 19560 | type Error = ConstraintViolation;
|
13107 19561 |
|
13108 19562 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
13109 19563 | builder.build()
|
13110 19564 | }
|
13111 19565 | }
|
13112 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19566 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19567 + | /* RustType.kt:516 */
|
13113 19568 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19569 + | /* ServerBuilderGenerator.kt:211 */
|
13114 19570 | pub(crate) struct Builder {
|
19571 + | /* ServerBuilderGenerator.kt:308 */
|
13115 19572 | pub(crate) contents:
|
13116 19573 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
19574 + | /* ServerBuilderGenerator.kt:211 */
|
13117 19575 | }
|
19576 + | /* ServerBuilderGenerator.kt:215 */
|
13118 19577 | impl Builder {
|
13119 - | /// A union with a representative set of types for members.
|
19578 + | /// /* ServerBuilderGenerator.kt:426 */A union with a representative set of types for members.
|
19579 + | /* ServerBuilderGenerator.kt:428 */
|
13120 19580 | pub(crate) fn set_contents(
|
13121 19581 | mut self,
|
13122 19582 | input: Option<
|
13123 19583 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
13124 19584 | >,
|
13125 19585 | ) -> Self {
|
19586 + | /* ServerBuilderGenerator.kt:429 */
|
13126 19587 | self.contents = input.map(|v| v.into());
|
13127 19588 | self
|
19589 + | /* ServerBuilderGenerator.kt:428 */
|
13128 19590 | }
|
13129 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
13130 - | ///
|
19591 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19592 + | /// /* ServerBuilderGenerator.kt:260 */
|
13131 19593 | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
13132 19594 | ///
|
19595 + | /* ServerBuilderGenerator.kt:271 */
|
13133 19596 | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
13134 19597 | self.build_enforcing_all_constraints()
|
13135 19598 | }
|
19599 + | /* ServerBuilderGenerator.kt:283 */
|
13136 19600 | fn build_enforcing_all_constraints(
|
13137 19601 | self,
|
13138 19602 | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
13139 - | Ok(crate::input::JsonUnionsInput {
|
19603 + | /* ServerBuilderGenerator.kt:287 */
|
19604 + | Ok(
|
19605 + | /* ServerBuilderGenerator.kt:542 */
|
19606 + | crate::input::JsonUnionsInput {
|
19607 + | /* ServerBuilderGenerator.kt:546 */
|
13140 19608 | contents: self
|
13141 19609 | .contents
|
19610 + | /* ServerBuilderGenerator.kt:602 */
|
13142 19611 | .map(|v| match v {
|
13143 19612 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
13144 19613 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
13145 19614 | })
|
19615 + | /* ServerBuilderGenerator.kt:614 */
|
13146 19616 | .map(|res| res.map_err(ConstraintViolation::Contents))
|
13147 19617 | .transpose()?,
|
13148 - | })
|
19618 + | /* ServerBuilderGenerator.kt:542 */
|
19619 + | }, /* ServerBuilderGenerator.kt:287 */
|
19620 + | )
|
19621 + | /* ServerBuilderGenerator.kt:283 */
|
13149 19622 | }
|
19623 + | /* ServerBuilderGenerator.kt:215 */
|
13150 19624 | }
|
19625 + |
|
19626 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13151 19627 | }
|
13152 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19628 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
13153 19629 | pub mod json_unions_input {
|
13154 19630 |
|
19631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13155 19632 | impl ::std::convert::From<Builder> for crate::input::JsonUnionsInput {
|
13156 19633 | fn from(builder: Builder) -> Self {
|
13157 19634 | builder.build()
|
13158 19635 | }
|
13159 19636 | }
|
13160 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19637 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19638 + | /* RustType.kt:516 */
|
13161 19639 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13162 19641 | pub struct Builder {
|
19642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13163 19643 | pub(crate) contents: ::std::option::Option<crate::model::MyUnion>,
|
19644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13164 19645 | }
|
19646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13165 19647 | impl Builder {
|
13166 - | /// A union with a representative set of types for members.
|
19648 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A union with a representative set of types for members.
|
19649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13167 19650 | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
13168 - | self.contents = input;
|
19651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19652 + | self.contents =
|
19653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13169 19655 | self
|
19656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13170 19657 | }
|
13171 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19658 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
19659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13172 19660 | pub fn build(self) -> crate::input::JsonUnionsInput {
|
13173 19661 | self.build_enforcing_required_and_enum_traits()
|
13174 19662 | }
|
19663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13175 19664 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonUnionsInput {
|
19665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13176 19666 | crate::input::JsonUnionsInput {
|
19667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13177 19668 | contents: self.contents,
|
19669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13178 19670 | }
|
19671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13179 19672 | }
|
19673 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13180 19674 | }
|
19675 + |
|
19676 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13181 19677 | }
|
13182 - | /// See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19678 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
13183 19679 | pub(crate) mod document_type_as_map_value_input_internal {
|
13184 19680 |
|
19681 + | /* ServerBuilderGenerator.kt:461 */
|
13185 19682 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsMapValueInput {
|
13186 19683 | fn from(builder: Builder) -> Self {
|
13187 19684 | builder.build()
|
13188 19685 | }
|
13189 19686 | }
|
13190 - | /// A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19687 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19688 + | /* RustType.kt:516 */
|
13191 19689 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19690 + | /* ServerBuilderGenerator.kt:211 */
|
13192 19691 | pub(crate) struct Builder {
|
19692 + | /* ServerBuilderGenerator.kt:308 */
|
13193 19693 | pub(crate) doc_valued_map: ::std::option::Option<
|
13194 19694 | ::std::collections::HashMap<
|
13195 19695 | ::std::string::String,
|
13196 19696 | ::aws_smithy_http_server_python::types::Document,
|
13197 19697 | >,
|
13198 19698 | >,
|
19699 + | /* ServerBuilderGenerator.kt:211 */
|
13199 19700 | }
|
19701 + | /* ServerBuilderGenerator.kt:215 */
|
13200 19702 | impl Builder {
|
19703 + | /* ServerBuilderGenerator.kt:426 */
|
13201 19704 | #[allow(missing_docs)] // documentation missing in model
|
19705 + | /* ServerBuilderGenerator.kt:428 */
|
13202 19706 | pub(crate) fn set_doc_valued_map(
|
13203 19707 | mut self,
|
13204 19708 | input: Option<
|
13205 19709 | impl ::std::convert::Into<
|
13206 19710 | ::std::collections::HashMap<
|
13207 19711 | ::std::string::String,
|
13208 19712 | ::aws_smithy_http_server_python::types::Document,
|
13209 19713 | >,
|
13210 19714 | >,
|
13211 19715 | >,
|
13212 19716 | ) -> Self {
|
19717 + | /* ServerBuilderGenerator.kt:429 */
|
13213 19718 | self.doc_valued_map = input.map(|v| v.into());
|
13214 19719 | self
|
19720 + | /* ServerBuilderGenerator.kt:428 */
|
13215 19721 | }
|
13216 - | /// Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19722 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19723 + | /* ServerBuilderGenerator.kt:271 */
|
13217 19724 | pub fn build(self) -> crate::input::DocumentTypeAsMapValueInput {
|
13218 19725 | self.build_enforcing_all_constraints()
|
13219 19726 | }
|
19727 + | /* ServerBuilderGenerator.kt:283 */
|
13220 19728 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsMapValueInput {
|
19729 + | /* ServerBuilderGenerator.kt:542 */
|
13221 19730 | crate::input::DocumentTypeAsMapValueInput {
|
19731 + | /* ServerBuilderGenerator.kt:546 */
|
13222 19732 | doc_valued_map: self.doc_valued_map,
|
19733 + | /* ServerBuilderGenerator.kt:542 */
|
13223 19734 | }
|
19735 + | /* ServerBuilderGenerator.kt:283 */
|
13224 19736 | }
|
19737 + | /* ServerBuilderGenerator.kt:215 */
|
13225 19738 | }
|
19739 + |
|
19740 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13226 19741 | }
|
13227 - | /// See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19742 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
13228 19743 | pub mod document_type_as_map_value_input {
|
13229 19744 |
|
19745 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13230 19746 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsMapValueInput {
|
13231 19747 | fn from(builder: Builder) -> Self {
|
13232 19748 | builder.build()
|
13233 19749 | }
|
13234 19750 | }
|
13235 - | /// A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19751 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19752 + | /* RustType.kt:516 */
|
13236 19753 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13237 19755 | pub struct Builder {
|
19756 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13238 19757 | pub(crate) doc_valued_map: ::std::option::Option<
|
13239 19758 | ::std::collections::HashMap<
|
13240 19759 | ::std::string::String,
|
13241 19760 | ::aws_smithy_http_server_python::types::Document,
|
13242 19761 | >,
|
13243 19762 | >,
|
19763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13244 19764 | }
|
19765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13245 19766 | impl Builder {
|
19767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13246 19768 | #[allow(missing_docs)] // documentation missing in model
|
19769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13247 19770 | pub fn doc_valued_map(
|
13248 19771 | mut self,
|
13249 19772 | input: ::std::option::Option<
|
13250 19773 | ::std::collections::HashMap<
|
13251 19774 | ::std::string::String,
|
13252 19775 | ::aws_smithy_http_server_python::types::Document,
|
13253 19776 | >,
|
13254 19777 | >,
|
13255 19778 | ) -> Self {
|
13256 - | self.doc_valued_map = input;
|
19779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19780 + | self.doc_valued_map =
|
19781 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13257 19783 | self
|
19784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13258 19785 | }
|
13259 - | /// Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19786 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
19787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13260 19788 | pub fn build(self) -> crate::input::DocumentTypeAsMapValueInput {
|
13261 19789 | self.build_enforcing_required_and_enum_traits()
|
13262 19790 | }
|
19791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13263 19792 | fn build_enforcing_required_and_enum_traits(
|
13264 19793 | self,
|
13265 19794 | ) -> crate::input::DocumentTypeAsMapValueInput {
|
19795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13266 19796 | crate::input::DocumentTypeAsMapValueInput {
|
19797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13267 19798 | doc_valued_map: self.doc_valued_map,
|
19799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13268 19800 | }
|
19801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13269 19802 | }
|
19803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13270 19804 | }
|
19805 + |
|
19806 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13271 19807 | }
|
13272 - | /// See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19808 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
13273 19809 | pub(crate) mod document_type_as_payload_input_internal {
|
13274 19810 |
|
19811 + | /* ServerBuilderGenerator.kt:461 */
|
13275 19812 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsPayloadInput {
|
13276 19813 | fn from(builder: Builder) -> Self {
|
13277 19814 | builder.build()
|
13278 19815 | }
|
13279 19816 | }
|
13280 - | /// A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19817 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19818 + | /* RustType.kt:516 */
|
13281 19819 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19820 + | /* ServerBuilderGenerator.kt:211 */
|
13282 19821 | pub(crate) struct Builder {
|
19822 + | /* ServerBuilderGenerator.kt:308 */
|
13283 19823 | pub(crate) document_value:
|
13284 19824 | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
19825 + | /* ServerBuilderGenerator.kt:211 */
|
13285 19826 | }
|
19827 + | /* ServerBuilderGenerator.kt:215 */
|
13286 19828 | impl Builder {
|
19829 + | /* ServerBuilderGenerator.kt:426 */
|
13287 19830 | #[allow(missing_docs)] // documentation missing in model
|
19831 + | /* ServerBuilderGenerator.kt:428 */
|
13288 19832 | pub(crate) fn set_document_value(
|
13289 19833 | mut self,
|
13290 19834 | input: Option<
|
13291 19835 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::Document>,
|
13292 19836 | >,
|
13293 19837 | ) -> Self {
|
19838 + | /* ServerBuilderGenerator.kt:429 */
|
13294 19839 | self.document_value = input.map(|v| v.into());
|
13295 19840 | self
|
19841 + | /* ServerBuilderGenerator.kt:428 */
|
13296 19842 | }
|
13297 - | /// Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19843 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19844 + | /* ServerBuilderGenerator.kt:271 */
|
13298 19845 | pub fn build(self) -> crate::input::DocumentTypeAsPayloadInput {
|
13299 19846 | self.build_enforcing_all_constraints()
|
13300 19847 | }
|
19848 + | /* ServerBuilderGenerator.kt:283 */
|
13301 19849 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsPayloadInput {
|
19850 + | /* ServerBuilderGenerator.kt:542 */
|
13302 19851 | crate::input::DocumentTypeAsPayloadInput {
|
19852 + | /* ServerBuilderGenerator.kt:546 */
|
13303 19853 | document_value: self.document_value,
|
19854 + | /* ServerBuilderGenerator.kt:542 */
|
13304 19855 | }
|
19856 + | /* ServerBuilderGenerator.kt:283 */
|
13305 19857 | }
|
19858 + | /* ServerBuilderGenerator.kt:215 */
|
13306 19859 | }
|
19860 + |
|
19861 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13307 19862 | }
|
13308 - | /// See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19863 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
13309 19864 | pub mod document_type_as_payload_input {
|
13310 19865 |
|
19866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13311 19867 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsPayloadInput {
|
13312 19868 | fn from(builder: Builder) -> Self {
|
13313 19869 | builder.build()
|
13314 19870 | }
|
13315 19871 | }
|
13316 - | /// A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19872 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19873 + | /* RustType.kt:516 */
|
13317 19874 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13318 19876 | pub struct Builder {
|
19877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13319 19878 | pub(crate) document_value:
|
13320 19879 | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
19880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13321 19881 | }
|
19882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13322 19883 | impl Builder {
|
19884 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13323 19885 | #[allow(missing_docs)] // documentation missing in model
|
19886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13324 19887 | pub fn document_value(
|
13325 19888 | mut self,
|
13326 19889 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
13327 19890 | ) -> Self {
|
13328 - | self.document_value = input;
|
19891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
19892 + | self.document_value =
|
19893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
19894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13329 19895 | self
|
19896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13330 19897 | }
|
13331 - | /// Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19898 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
19899 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13332 19900 | pub fn build(self) -> crate::input::DocumentTypeAsPayloadInput {
|
13333 19901 | self.build_enforcing_required_and_enum_traits()
|
13334 19902 | }
|
19903 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13335 19904 | fn build_enforcing_required_and_enum_traits(
|
13336 19905 | self,
|
13337 19906 | ) -> crate::input::DocumentTypeAsPayloadInput {
|
19907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13338 19908 | crate::input::DocumentTypeAsPayloadInput {
|
19909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13339 19910 | document_value: self.document_value,
|
19911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13340 19912 | }
|
19913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13341 19914 | }
|
19915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13342 19916 | }
|
19917 + |
|
19918 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13343 19919 | }
|
13344 - | /// See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19920 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
13345 19921 | pub(crate) mod document_type_input_internal {
|
13346 19922 |
|
19923 + | /* ServerBuilderGenerator.kt:461 */
|
13347 19924 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeInput {
|
13348 19925 | fn from(builder: Builder) -> Self {
|
13349 19926 | builder.build()
|
13350 19927 | }
|
13351 19928 | }
|
13352 - | /// A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19929 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19930 + | /* RustType.kt:516 */
|
13353 19931 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19932 + | /* ServerBuilderGenerator.kt:211 */
|
13354 19933 | pub(crate) struct Builder {
|
19934 + | /* ServerBuilderGenerator.kt:308 */
|
13355 19935 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
19936 + | /* ServerBuilderGenerator.kt:308 */
|
13356 19937 | pub(crate) document_value:
|
13357 19938 | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
19939 + | /* ServerBuilderGenerator.kt:211 */
|
13358 19940 | }
|
19941 + | /* ServerBuilderGenerator.kt:215 */
|
13359 19942 | impl Builder {
|
19943 + | /* ServerBuilderGenerator.kt:426 */
|
13360 19944 | #[allow(missing_docs)] // documentation missing in model
|
19945 + | /* ServerBuilderGenerator.kt:428 */
|
13361 19946 | pub(crate) fn set_string_value(
|
13362 19947 | mut self,
|
13363 19948 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
13364 19949 | ) -> Self {
|
19950 + | /* ServerBuilderGenerator.kt:429 */
|
13365 19951 | self.string_value = input.map(|v| v.into());
|
13366 19952 | self
|
19953 + | /* ServerBuilderGenerator.kt:428 */
|
13367 19954 | }
|
19955 + | /* ServerBuilderGenerator.kt:426 */
|
13368 19956 | #[allow(missing_docs)] // documentation missing in model
|
19957 + | /* ServerBuilderGenerator.kt:428 */
|
13369 19958 | pub(crate) fn set_document_value(
|
13370 19959 | mut self,
|
13371 19960 | input: Option<
|
13372 19961 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::Document>,
|
13373 19962 | >,
|
13374 19963 | ) -> Self {
|
19964 + | /* ServerBuilderGenerator.kt:429 */
|
13375 19965 | self.document_value = input.map(|v| v.into());
|
13376 19966 | self
|
19967 + | /* ServerBuilderGenerator.kt:428 */
|
13377 19968 | }
|
13378 - | /// Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19969 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19970 + | /* ServerBuilderGenerator.kt:271 */
|
13379 19971 | pub fn build(self) -> crate::input::DocumentTypeInput {
|
13380 19972 | self.build_enforcing_all_constraints()
|
13381 19973 | }
|
19974 + | /* ServerBuilderGenerator.kt:283 */
|
13382 19975 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeInput {
|
19976 + | /* ServerBuilderGenerator.kt:542 */
|
13383 19977 | crate::input::DocumentTypeInput {
|
19978 + | /* ServerBuilderGenerator.kt:546 */
|
13384 19979 | string_value: self.string_value,
|
19980 + | /* ServerBuilderGenerator.kt:546 */
|
13385 19981 | document_value: self.document_value,
|
19982 + | /* ServerBuilderGenerator.kt:542 */
|
13386 19983 | }
|
19984 + | /* ServerBuilderGenerator.kt:283 */
|
13387 19985 | }
|
19986 + | /* ServerBuilderGenerator.kt:215 */
|
13388 19987 | }
|
19988 + |
|
19989 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13389 19990 | }
|
13390 - | /// See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
19991 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
13391 19992 | pub mod document_type_input {
|
13392 19993 |
|
19994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13393 19995 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeInput {
|
13394 19996 | fn from(builder: Builder) -> Self {
|
13395 19997 | builder.build()
|
13396 19998 | }
|
13397 19999 | }
|
13398 - | /// A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
20000 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
20001 + | /* RustType.kt:516 */
|
13399 20002 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13400 20004 | pub struct Builder {
|
20005 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13401 20006 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
20007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13402 20008 | pub(crate) document_value:
|
13403 20009 | ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
20010 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13404 20011 | }
|
20012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13405 20013 | impl Builder {
|
20014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13406 20015 | #[allow(missing_docs)] // documentation missing in model
|
20016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13407 20017 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
13408 - | self.string_value = input;
|
20018 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20019 + | self.string_value =
|
20020 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13409 20022 | self
|
20023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13410 20024 | }
|
20025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13411 20026 | #[allow(missing_docs)] // documentation missing in model
|
20027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13412 20028 | pub fn document_value(
|
13413 20029 | mut self,
|
13414 20030 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Document>,
|
13415 20031 | ) -> Self {
|
13416 - | self.document_value = input;
|
20032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20033 + | self.document_value =
|
20034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20035 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13417 20036 | self
|
20037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13418 20038 | }
|
13419 - | /// Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
20039 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
20040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13420 20041 | pub fn build(self) -> crate::input::DocumentTypeInput {
|
13421 20042 | self.build_enforcing_required_and_enum_traits()
|
13422 20043 | }
|
20044 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13423 20045 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::DocumentTypeInput {
|
20046 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13424 20047 | crate::input::DocumentTypeInput {
|
20048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13425 20049 | string_value: self.string_value,
|
20050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13426 20051 | document_value: self.document_value,
|
20052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13427 20053 | }
|
20054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13428 20055 | }
|
20056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13429 20057 | }
|
20058 + |
|
20059 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13430 20060 | }
|
13431 - | /// See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20061 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
13432 20062 | pub(crate) mod json_blobs_input_internal {
|
13433 20063 |
|
20064 + | /* ServerBuilderGenerator.kt:461 */
|
13434 20065 | impl ::std::convert::From<Builder> for crate::input::JsonBlobsInput {
|
13435 20066 | fn from(builder: Builder) -> Self {
|
13436 20067 | builder.build()
|
13437 20068 | }
|
13438 20069 | }
|
13439 - | /// A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20070 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20071 + | /* RustType.kt:516 */
|
13440 20072 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20073 + | /* ServerBuilderGenerator.kt:211 */
|
13441 20074 | pub(crate) struct Builder {
|
20075 + | /* ServerBuilderGenerator.kt:308 */
|
13442 20076 | pub(crate) data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
20077 + | /* ServerBuilderGenerator.kt:211 */
|
13443 20078 | }
|
20079 + | /* ServerBuilderGenerator.kt:215 */
|
13444 20080 | impl Builder {
|
20081 + | /* ServerBuilderGenerator.kt:426 */
|
13445 20082 | #[allow(missing_docs)] // documentation missing in model
|
20083 + | /* ServerBuilderGenerator.kt:428 */
|
13446 20084 | pub(crate) fn set_data(
|
13447 20085 | mut self,
|
13448 20086 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
13449 20087 | ) -> Self {
|
20088 + | /* ServerBuilderGenerator.kt:429 */
|
13450 20089 | self.data = input.map(|v| v.into());
|
13451 20090 | self
|
20091 + | /* ServerBuilderGenerator.kt:428 */
|
13452 20092 | }
|
13453 - | /// Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20093 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20094 + | /* ServerBuilderGenerator.kt:271 */
|
13454 20095 | pub fn build(self) -> crate::input::JsonBlobsInput {
|
13455 20096 | self.build_enforcing_all_constraints()
|
13456 20097 | }
|
20098 + | /* ServerBuilderGenerator.kt:283 */
|
13457 20099 | fn build_enforcing_all_constraints(self) -> crate::input::JsonBlobsInput {
|
13458 - | crate::input::JsonBlobsInput { data: self.data }
|
20100 + | /* ServerBuilderGenerator.kt:542 */
|
20101 + | crate::input::JsonBlobsInput {
|
20102 + | /* ServerBuilderGenerator.kt:546 */
|
20103 + | data: self.data,
|
20104 + | /* ServerBuilderGenerator.kt:542 */
|
20105 + | }
|
20106 + | /* ServerBuilderGenerator.kt:283 */
|
13459 20107 | }
|
20108 + | /* ServerBuilderGenerator.kt:215 */
|
13460 20109 | }
|
20110 + |
|
20111 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13461 20112 | }
|
13462 - | /// See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20113 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
13463 20114 | pub mod json_blobs_input {
|
13464 20115 |
|
20116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13465 20117 | impl ::std::convert::From<Builder> for crate::input::JsonBlobsInput {
|
13466 20118 | fn from(builder: Builder) -> Self {
|
13467 20119 | builder.build()
|
13468 20120 | }
|
13469 20121 | }
|
13470 - | /// A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20122 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20123 + | /* RustType.kt:516 */
|
13471 20124 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20125 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13472 20126 | pub struct Builder {
|
20127 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13473 20128 | pub(crate) data: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
20129 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13474 20130 | }
|
20131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13475 20132 | impl Builder {
|
20133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13476 20134 | #[allow(missing_docs)] // documentation missing in model
|
20135 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13477 20136 | pub fn data(
|
13478 20137 | mut self,
|
13479 20138 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
13480 20139 | ) -> Self {
|
13481 - | self.data = input;
|
20140 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20141 + | self.data =
|
20142 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20143 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13482 20144 | self
|
20145 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13483 20146 | }
|
13484 - | /// Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20147 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
20148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13485 20149 | pub fn build(self) -> crate::input::JsonBlobsInput {
|
13486 20150 | self.build_enforcing_required_and_enum_traits()
|
13487 20151 | }
|
20152 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13488 20153 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonBlobsInput {
|
13489 - | crate::input::JsonBlobsInput { data: self.data }
|
20154 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
20155 + | crate::input::JsonBlobsInput {
|
20156 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20157 + | data: self.data,
|
20158 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
20159 + | }
|
20160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13490 20161 | }
|
20162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13491 20163 | }
|
20164 + |
|
20165 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13492 20166 | }
|
13493 - | /// See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20167 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
13494 20168 | pub(crate) mod sparse_json_maps_input_internal {
|
13495 20169 |
|
20170 + | /* RustType.kt:516 */
|
13496 20171 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
13497 - | /// Holds one variant for each of the ways the builder can fail.
|
20172 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
20173 + | /* RustType.kt:516 */
|
13498 20174 | #[non_exhaustive]
|
20175 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13499 20176 | #[allow(clippy::enum_variant_names)]
|
13500 20177 | pub(crate) enum ConstraintViolation {
|
13501 - | /// Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
20178 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
20179 + | /* RustType.kt:516 */
|
13502 20180 | #[doc(hidden)]
|
20181 + | /* ServerBuilderConstraintViolations.kt:164 */
|
13503 20182 | SparseSetMap(crate::model::sparse_set_map_internal::ConstraintViolation),
|
20183 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13504 20184 | }
|
20185 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13505 20186 | impl ::std::fmt::Display for ConstraintViolation {
|
20187 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13506 20188 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
20189 + | /* ServerBuilderConstraintViolations.kt:119 */
|
13507 20190 | match self {
|
13508 - | ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
13509 - | }
|
20191 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
20192 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
20193 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13510 20194 | }
|
20195 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13511 20196 | }
|
20197 + | /* ServerBuilderConstraintViolations.kt:84 */
|
13512 20198 | impl ::std::error::Error for ConstraintViolation {}
|
20199 + | /* ServerBuilderConstraintViolations.kt:171 */
|
13513 20200 | impl ConstraintViolation {
|
13514 20201 | pub(crate) fn as_validation_exception_field(
|
13515 20202 | self,
|
13516 20203 | path: ::std::string::String,
|
13517 20204 | ) -> crate::model::ValidationExceptionField {
|
13518 20205 | match self {
|
13519 20206 | ConstraintViolation::SparseSetMap(inner) => {
|
13520 20207 | inner.as_validation_exception_field(path + "/sparseSetMap")
|
13521 20208 | }
|
13522 20209 | }
|
13523 20210 | }
|
13524 20211 | }
|
20212 + | /* ServerBuilderGenerator.kt:234 */
|
13525 20213 | impl ::std::convert::From<ConstraintViolation>
|
13526 20214 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
13527 20215 | {
|
13528 20216 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
13529 20217 | let first_validation_exception_field =
|
13530 20218 | constraint_violation.as_validation_exception_field("".to_owned());
|
13531 20219 | let validation_exception = crate::error::ValidationException {
|
13532 20220 | message: format!(
|
13533 20221 | "1 validation error detected. {}",
|
13534 20222 | &first_validation_exception_field.message
|
13535 20223 | ),
|
13536 20224 | field_list: Some(vec![first_validation_exception_field]),
|
13537 20225 | };
|
13538 20226 | Self::ConstraintViolation(
|
13539 20227 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
13540 20228 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
13541 20229 | )
|
13542 20230 | }
|
13543 20231 | }
|
20232 + | /* ServerBuilderGenerator.kt:244 */
|
13544 20233 | impl ::std::convert::From<Builder>
|
13545 20234 | for crate::constrained::MaybeConstrained<crate::input::SparseJsonMapsInput>
|
13546 20235 | {
|
13547 20236 | fn from(builder: Builder) -> Self {
|
13548 20237 | Self::Unconstrained(builder)
|
13549 20238 | }
|
13550 20239 | }
|
20240 + | /* ServerBuilderGenerator.kt:446 */
|
13551 20241 | impl ::std::convert::TryFrom<Builder> for crate::input::SparseJsonMapsInput {
|
13552 20242 | type Error = ConstraintViolation;
|
13553 20243 |
|
13554 20244 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
13555 20245 | builder.build()
|
13556 20246 | }
|
13557 20247 | }
|
13558 - | /// A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20248 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20249 + | /* RustType.kt:516 */
|
13559 20250 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20251 + | /* ServerBuilderGenerator.kt:211 */
|
13560 20252 | pub(crate) struct Builder {
|
20253 + | /* ServerBuilderGenerator.kt:308 */
|
13561 20254 | pub(crate) sparse_struct_map: ::std::option::Option<
|
13562 20255 | ::std::collections::HashMap<
|
13563 20256 | ::std::string::String,
|
13564 20257 | ::std::option::Option<crate::model::GreetingStruct>,
|
13565 20258 | >,
|
13566 20259 | >,
|
20260 + | /* ServerBuilderGenerator.kt:308 */
|
13567 20261 | pub(crate) sparse_number_map: ::std::option::Option<
|
13568 20262 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
13569 20263 | >,
|
20264 + | /* ServerBuilderGenerator.kt:308 */
|
13570 20265 | pub(crate) sparse_boolean_map: ::std::option::Option<
|
13571 20266 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
13572 20267 | >,
|
20268 + | /* ServerBuilderGenerator.kt:308 */
|
13573 20269 | pub(crate) sparse_string_map: ::std::option::Option<
|
13574 20270 | ::std::collections::HashMap<
|
13575 20271 | ::std::string::String,
|
13576 20272 | ::std::option::Option<::std::string::String>,
|
13577 20273 | >,
|
13578 20274 | >,
|
20275 + | /* ServerBuilderGenerator.kt:308 */
|
13579 20276 | pub(crate) sparse_set_map: ::std::option::Option<
|
13580 20277 | crate::constrained::MaybeConstrained<
|
13581 20278 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
13582 20279 | >,
|
13583 20280 | >,
|
20281 + | /* ServerBuilderGenerator.kt:211 */
|
13584 20282 | }
|
20283 + | /* ServerBuilderGenerator.kt:215 */
|
13585 20284 | impl Builder {
|
20285 + | /* ServerBuilderGenerator.kt:426 */
|
13586 20286 | #[allow(missing_docs)] // documentation missing in model
|
20287 + | /* ServerBuilderGenerator.kt:428 */
|
13587 20288 | pub(crate) fn set_sparse_struct_map(
|
13588 20289 | mut self,
|
13589 20290 | input: Option<
|
13590 20291 | impl ::std::convert::Into<
|
13591 20292 | ::std::collections::HashMap<
|
13592 20293 | ::std::string::String,
|
13593 20294 | ::std::option::Option<crate::model::GreetingStruct>,
|
13594 20295 | >,
|
13595 20296 | >,
|
13596 20297 | >,
|
13597 20298 | ) -> Self {
|
20299 + | /* ServerBuilderGenerator.kt:429 */
|
13598 20300 | self.sparse_struct_map = input.map(|v| v.into());
|
13599 20301 | self
|
20302 + | /* ServerBuilderGenerator.kt:428 */
|
13600 20303 | }
|
20304 + | /* ServerBuilderGenerator.kt:426 */
|
13601 20305 | #[allow(missing_docs)] // documentation missing in model
|
20306 + | /* ServerBuilderGenerator.kt:428 */
|
13602 20307 | pub(crate) fn set_sparse_number_map(
|
13603 20308 | mut self,
|
13604 20309 | input: Option<
|
13605 20310 | impl ::std::convert::Into<
|
13606 20311 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
13607 20312 | >,
|
13608 20313 | >,
|
13609 20314 | ) -> Self {
|
20315 + | /* ServerBuilderGenerator.kt:429 */
|
13610 20316 | self.sparse_number_map = input.map(|v| v.into());
|
13611 20317 | self
|
20318 + | /* ServerBuilderGenerator.kt:428 */
|
13612 20319 | }
|
20320 + | /* ServerBuilderGenerator.kt:426 */
|
13613 20321 | #[allow(missing_docs)] // documentation missing in model
|
20322 + | /* ServerBuilderGenerator.kt:428 */
|
13614 20323 | pub(crate) fn set_sparse_boolean_map(
|
13615 20324 | mut self,
|
13616 20325 | input: Option<
|
13617 20326 | impl ::std::convert::Into<
|
13618 20327 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
13619 20328 | >,
|
13620 20329 | >,
|
13621 20330 | ) -> Self {
|
20331 + | /* ServerBuilderGenerator.kt:429 */
|
13622 20332 | self.sparse_boolean_map = input.map(|v| v.into());
|
13623 20333 | self
|
20334 + | /* ServerBuilderGenerator.kt:428 */
|
13624 20335 | }
|
20336 + | /* ServerBuilderGenerator.kt:426 */
|
13625 20337 | #[allow(missing_docs)] // documentation missing in model
|
20338 + | /* ServerBuilderGenerator.kt:428 */
|
13626 20339 | pub(crate) fn set_sparse_string_map(
|
13627 20340 | mut self,
|
13628 20341 | input: Option<
|
13629 20342 | impl ::std::convert::Into<
|
13630 20343 | ::std::collections::HashMap<
|
13631 20344 | ::std::string::String,
|
13632 20345 | ::std::option::Option<::std::string::String>,
|
13633 20346 | >,
|
13634 20347 | >,
|
13635 20348 | >,
|
13636 20349 | ) -> Self {
|
20350 + | /* ServerBuilderGenerator.kt:429 */
|
13637 20351 | self.sparse_string_map = input.map(|v| v.into());
|
13638 20352 | self
|
20353 + | /* ServerBuilderGenerator.kt:428 */
|
13639 20354 | }
|
20355 + | /* ServerBuilderGenerator.kt:426 */
|
13640 20356 | #[allow(missing_docs)] // documentation missing in model
|
20357 + | /* ServerBuilderGenerator.kt:428 */
|
13641 20358 | pub(crate) fn set_sparse_set_map(
|
13642 20359 | mut self,
|
13643 20360 | input: Option<
|
13644 20361 | impl ::std::convert::Into<
|
13645 20362 | crate::constrained::MaybeConstrained<
|
13646 20363 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
13647 20364 | >,
|
13648 20365 | >,
|
13649 20366 | >,
|
13650 20367 | ) -> Self {
|
20368 + | /* ServerBuilderGenerator.kt:429 */
|
13651 20369 | self.sparse_set_map = input.map(|v| v.into());
|
13652 20370 | self
|
20371 + | /* ServerBuilderGenerator.kt:428 */
|
13653 20372 | }
|
13654 - | /// Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
13655 - | ///
|
20373 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20374 + | /// /* ServerBuilderGenerator.kt:260 */
|
13656 20375 | /// The builder fails to construct a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput) if a [`ConstraintViolation`] occurs.
|
13657 20376 | ///
|
20377 + | /* ServerBuilderGenerator.kt:271 */
|
13658 20378 | pub fn build(self) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
13659 20379 | self.build_enforcing_all_constraints()
|
13660 20380 | }
|
20381 + | /* ServerBuilderGenerator.kt:283 */
|
13661 20382 | fn build_enforcing_all_constraints(
|
13662 20383 | self,
|
13663 20384 | ) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
13664 - | Ok(crate::input::SparseJsonMapsInput {
|
20385 + | /* ServerBuilderGenerator.kt:287 */
|
20386 + | Ok(
|
20387 + | /* ServerBuilderGenerator.kt:542 */
|
20388 + | crate::input::SparseJsonMapsInput {
|
20389 + | /* ServerBuilderGenerator.kt:546 */
|
13665 20390 | sparse_struct_map: self.sparse_struct_map,
|
20391 + | /* ServerBuilderGenerator.kt:546 */
|
13666 20392 | sparse_number_map: self.sparse_number_map,
|
20393 + | /* ServerBuilderGenerator.kt:546 */
|
13667 20394 | sparse_boolean_map: self.sparse_boolean_map,
|
20395 + | /* ServerBuilderGenerator.kt:546 */
|
13668 20396 | sparse_string_map: self.sparse_string_map,
|
20397 + | /* ServerBuilderGenerator.kt:546 */
|
13669 20398 | sparse_set_map: self
|
13670 20399 | .sparse_set_map
|
20400 + | /* ServerBuilderGenerator.kt:602 */
|
13671 20401 | .map(|v| match v {
|
13672 20402 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
13673 20403 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
13674 20404 | })
|
20405 + | /* ServerBuilderGenerator.kt:614 */
|
13675 20406 | .map(|res| {
|
13676 20407 | res.map(|v| v.into())
|
13677 20408 | .map_err(ConstraintViolation::SparseSetMap)
|
13678 20409 | })
|
13679 20410 | .transpose()?,
|
13680 - | })
|
20411 + | /* ServerBuilderGenerator.kt:542 */
|
20412 + | }, /* ServerBuilderGenerator.kt:287 */
|
20413 + | )
|
20414 + | /* ServerBuilderGenerator.kt:283 */
|
13681 20415 | }
|
20416 + | /* ServerBuilderGenerator.kt:215 */
|
13682 20417 | }
|
20418 + |
|
20419 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13683 20420 | }
|
13684 - | /// See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20421 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
13685 20422 | pub mod sparse_json_maps_input {
|
13686 20423 |
|
20424 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13687 20425 | impl ::std::convert::From<Builder> for crate::input::SparseJsonMapsInput {
|
13688 20426 | fn from(builder: Builder) -> Self {
|
13689 20427 | builder.build()
|
13690 20428 | }
|
13691 20429 | }
|
13692 - | /// A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20430 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20431 + | /* RustType.kt:516 */
|
13693 20432 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20433 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13694 20434 | pub struct Builder {
|
20435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13695 20436 | pub(crate) sparse_struct_map: ::std::option::Option<
|
13696 20437 | ::std::collections::HashMap<
|
13697 20438 | ::std::string::String,
|
13698 20439 | ::std::option::Option<crate::model::GreetingStruct>,
|
13699 20440 | >,
|
13700 20441 | >,
|
20442 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13701 20443 | pub(crate) sparse_number_map: ::std::option::Option<
|
13702 20444 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
13703 20445 | >,
|
20446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13704 20447 | pub(crate) sparse_boolean_map: ::std::option::Option<
|
13705 20448 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
13706 20449 | >,
|
20450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13707 20451 | pub(crate) sparse_string_map: ::std::option::Option<
|
13708 20452 | ::std::collections::HashMap<
|
13709 20453 | ::std::string::String,
|
13710 20454 | ::std::option::Option<::std::string::String>,
|
13711 20455 | >,
|
13712 20456 | >,
|
20457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13713 20458 | pub(crate) sparse_set_map: ::std::option::Option<
|
13714 20459 | ::std::collections::HashMap<
|
13715 20460 | ::std::string::String,
|
13716 20461 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
13717 20462 | >,
|
13718 20463 | >,
|
20464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13719 20465 | }
|
20466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13720 20467 | impl Builder {
|
20468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13721 20469 | #[allow(missing_docs)] // documentation missing in model
|
20470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13722 20471 | pub fn sparse_struct_map(
|
13723 20472 | mut self,
|
13724 20473 | input: ::std::option::Option<
|
13725 20474 | ::std::collections::HashMap<
|
13726 20475 | ::std::string::String,
|
13727 20476 | ::std::option::Option<crate::model::GreetingStruct>,
|
13728 20477 | >,
|
13729 20478 | >,
|
13730 20479 | ) -> Self {
|
13731 - | self.sparse_struct_map = input;
|
20480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20481 + | self.sparse_struct_map =
|
20482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20483 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13732 20484 | self
|
20485 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13733 20486 | }
|
20487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13734 20488 | #[allow(missing_docs)] // documentation missing in model
|
20489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13735 20490 | pub fn sparse_number_map(
|
13736 20491 | mut self,
|
13737 20492 | input: ::std::option::Option<
|
13738 20493 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
13739 20494 | >,
|
13740 20495 | ) -> Self {
|
13741 - | self.sparse_number_map = input;
|
20496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20497 + | self.sparse_number_map =
|
20498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13742 20500 | self
|
20501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13743 20502 | }
|
20503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13744 20504 | #[allow(missing_docs)] // documentation missing in model
|
20505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13745 20506 | pub fn sparse_boolean_map(
|
13746 20507 | mut self,
|
13747 20508 | input: ::std::option::Option<
|
13748 20509 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
13749 20510 | >,
|
13750 20511 | ) -> Self {
|
13751 - | self.sparse_boolean_map = input;
|
20512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20513 + | self.sparse_boolean_map =
|
20514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13752 20516 | self
|
20517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13753 20518 | }
|
20519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13754 20520 | #[allow(missing_docs)] // documentation missing in model
|
20521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13755 20522 | pub fn sparse_string_map(
|
13756 20523 | mut self,
|
13757 20524 | input: ::std::option::Option<
|
13758 20525 | ::std::collections::HashMap<
|
13759 20526 | ::std::string::String,
|
13760 20527 | ::std::option::Option<::std::string::String>,
|
13761 20528 | >,
|
13762 20529 | >,
|
13763 20530 | ) -> Self {
|
13764 - | self.sparse_string_map = input;
|
20531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20532 + | self.sparse_string_map =
|
20533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13765 20535 | self
|
20536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13766 20537 | }
|
20538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
13767 20539 | #[allow(missing_docs)] // documentation missing in model
|
20540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13768 20541 | pub fn sparse_set_map(
|
13769 20542 | mut self,
|
13770 20543 | input: ::std::option::Option<
|
13771 20544 | ::std::collections::HashMap<
|
13772 20545 | ::std::string::String,
|
13773 20546 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
13774 20547 | >,
|
13775 20548 | >,
|
13776 20549 | ) -> Self {
|
13777 - | self.sparse_set_map = input;
|
20550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20551 + | self.sparse_set_map =
|
20552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
13778 20554 | self
|
20555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
13779 20556 | }
|
13780 - | /// Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20557 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
20558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
13781 20559 | pub fn build(self) -> crate::input::SparseJsonMapsInput {
|
13782 20560 | self.build_enforcing_required_and_enum_traits()
|
13783 20561 | }
|
20562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13784 20563 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::SparseJsonMapsInput {
|
20564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13785 20565 | crate::input::SparseJsonMapsInput {
|
20566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13786 20567 | sparse_struct_map: self.sparse_struct_map,
|
20568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13787 20569 | sparse_number_map: self.sparse_number_map,
|
20570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13788 20571 | sparse_boolean_map: self.sparse_boolean_map,
|
20572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13789 20573 | sparse_string_map: self.sparse_string_map,
|
20574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
13790 20575 | sparse_set_map: self.sparse_set_map,
|
20576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
13791 20577 | }
|
20578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
13792 20579 | }
|
20580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13793 20581 | }
|
20582 + |
|
20583 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13794 20584 | }
|
13795 - | /// See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20585 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
13796 20586 | pub(crate) mod json_maps_input_internal {
|
13797 20587 |
|
20588 + | /* RustType.kt:516 */
|
13798 20589 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
13799 - | /// Holds one variant for each of the ways the builder can fail.
|
20590 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
20591 + | /* RustType.kt:516 */
|
13800 20592 | #[non_exhaustive]
|
20593 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13801 20594 | #[allow(clippy::enum_variant_names)]
|
13802 20595 | pub(crate) enum ConstraintViolation {
|
13803 - | /// Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
20596 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
20597 + | /* RustType.kt:516 */
|
13804 20598 | #[doc(hidden)]
|
20599 + | /* ServerBuilderConstraintViolations.kt:164 */
|
13805 20600 | DenseSetMap(crate::model::dense_set_map_internal::ConstraintViolation),
|
20601 + | /* ServerBuilderConstraintViolations.kt:75 */
|
13806 20602 | }
|
20603 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13807 20604 | impl ::std::fmt::Display for ConstraintViolation {
|
20605 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13808 20606 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
20607 + | /* ServerBuilderConstraintViolations.kt:119 */
|
13809 20608 | match self {
|
13810 - | ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
13811 - | }
|
20609 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
20610 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
20611 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13812 20612 | }
|
20613 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13813 20614 | }
|
20615 + | /* ServerBuilderConstraintViolations.kt:84 */
|
13814 20616 | impl ::std::error::Error for ConstraintViolation {}
|
20617 + | /* ServerBuilderConstraintViolations.kt:171 */
|
13815 20618 | impl ConstraintViolation {
|
13816 20619 | pub(crate) fn as_validation_exception_field(
|
13817 20620 | self,
|
13818 20621 | path: ::std::string::String,
|
13819 20622 | ) -> crate::model::ValidationExceptionField {
|
13820 20623 | match self {
|
13821 20624 | ConstraintViolation::DenseSetMap(inner) => {
|
13822 20625 | inner.as_validation_exception_field(path + "/denseSetMap")
|
13823 20626 | }
|
13824 20627 | }
|
13825 20628 | }
|
13826 20629 | }
|
20630 + | /* ServerBuilderGenerator.kt:234 */
|
13827 20631 | impl ::std::convert::From<ConstraintViolation>
|
13828 20632 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
13829 20633 | {
|
13830 20634 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
13831 20635 | let first_validation_exception_field =
|
13832 20636 | constraint_violation.as_validation_exception_field("".to_owned());
|
13833 20637 | let validation_exception = crate::error::ValidationException {
|
13834 20638 | message: format!(
|
13835 20639 | "1 validation error detected. {}",
|
13836 20640 | &first_validation_exception_field.message
|
13837 20641 | ),
|
13838 20642 | field_list: Some(vec![first_validation_exception_field]),
|
13839 20643 | };
|
13840 20644 | Self::ConstraintViolation(
|
13841 20645 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
13842 20646 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
13843 20647 | )
|
13844 20648 | }
|
13845 20649 | }
|
20650 + | /* ServerBuilderGenerator.kt:244 */
|
13846 20651 | impl ::std::convert::From<Builder>
|
13847 20652 | for crate::constrained::MaybeConstrained<crate::input::JsonMapsInput>
|
13848 20653 | {
|
13849 20654 | fn from(builder: Builder) -> Self {
|
13850 20655 | Self::Unconstrained(builder)
|
13851 20656 | }
|
13852 20657 | }
|
20658 + | /* ServerBuilderGenerator.kt:446 */
|
13853 20659 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonMapsInput {
|
13854 20660 | type Error = ConstraintViolation;
|
13855 20661 |
|
13856 20662 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
13857 20663 | builder.build()
|
13858 20664 | }
|
13859 20665 | }
|
13860 - | /// A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20666 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20667 + | /* RustType.kt:516 */
|
13861 20668 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20669 + | /* ServerBuilderGenerator.kt:211 */
|
13862 20670 | pub(crate) struct Builder {
|
20671 + | /* ServerBuilderGenerator.kt:308 */
|
13863 20672 | pub(crate) dense_struct_map: ::std::option::Option<
|
13864 20673 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
13865 20674 | >,
|
20675 + | /* ServerBuilderGenerator.kt:308 */
|
13866 20676 | pub(crate) dense_number_map:
|
13867 20677 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
20678 + | /* ServerBuilderGenerator.kt:308 */
|
13868 20679 | pub(crate) dense_boolean_map:
|
13869 20680 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
20681 + | /* ServerBuilderGenerator.kt:308 */
|
13870 20682 | pub(crate) dense_string_map: ::std::option::Option<
|
13871 20683 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
13872 20684 | >,
|
20685 + | /* ServerBuilderGenerator.kt:308 */
|
13873 20686 | pub(crate) dense_set_map: ::std::option::Option<
|
13874 20687 | crate::constrained::MaybeConstrained<
|
13875 20688 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
13876 20689 | >,
|
13877 20690 | >,
|
20691 + | /* ServerBuilderGenerator.kt:211 */
|
13878 20692 | }
|
20693 + | /* ServerBuilderGenerator.kt:215 */
|
13879 20694 | impl Builder {
|
20695 + | /* ServerBuilderGenerator.kt:426 */
|
13880 20696 | #[allow(missing_docs)] // documentation missing in model
|
20697 + | /* ServerBuilderGenerator.kt:428 */
|
13881 20698 | pub(crate) fn set_dense_struct_map(
|
13882 20699 | mut self,
|
13883 20700 | input: Option<
|
13884 20701 | impl ::std::convert::Into<
|
13885 20702 | ::std::collections::HashMap<
|
13886 20703 | ::std::string::String,
|
13887 20704 | crate::model::GreetingStruct,
|
13888 20705 | >,
|
13889 20706 | >,
|
13890 20707 | >,
|
13891 20708 | ) -> Self {
|
20709 + | /* ServerBuilderGenerator.kt:429 */
|
13892 20710 | self.dense_struct_map = input.map(|v| v.into());
|
13893 20711 | self
|
20712 + | /* ServerBuilderGenerator.kt:428 */
|
13894 20713 | }
|
20714 + | /* ServerBuilderGenerator.kt:426 */
|
13895 20715 | #[allow(missing_docs)] // documentation missing in model
|
20716 + | /* ServerBuilderGenerator.kt:428 */
|
13896 20717 | pub(crate) fn set_dense_number_map(
|
13897 20718 | mut self,
|
13898 20719 | input: Option<
|
13899 20720 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
13900 20721 | >,
|
13901 20722 | ) -> Self {
|
20723 + | /* ServerBuilderGenerator.kt:429 */
|
13902 20724 | self.dense_number_map = input.map(|v| v.into());
|
13903 20725 | self
|
20726 + | /* ServerBuilderGenerator.kt:428 */
|
13904 20727 | }
|
20728 + | /* ServerBuilderGenerator.kt:426 */
|
13905 20729 | #[allow(missing_docs)] // documentation missing in model
|
20730 + | /* ServerBuilderGenerator.kt:428 */
|
13906 20731 | pub(crate) fn set_dense_boolean_map(
|
13907 20732 | mut self,
|
13908 20733 | input: Option<
|
13909 20734 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, bool>>,
|
13910 20735 | >,
|
13911 20736 | ) -> Self {
|
20737 + | /* ServerBuilderGenerator.kt:429 */
|
13912 20738 | self.dense_boolean_map = input.map(|v| v.into());
|
13913 20739 | self
|
20740 + | /* ServerBuilderGenerator.kt:428 */
|
13914 20741 | }
|
20742 + | /* ServerBuilderGenerator.kt:426 */
|
13915 20743 | #[allow(missing_docs)] // documentation missing in model
|
20744 + | /* ServerBuilderGenerator.kt:428 */
|
13916 20745 | pub(crate) fn set_dense_string_map(
|
13917 20746 | mut self,
|
13918 20747 | input: Option<
|
13919 20748 | impl ::std::convert::Into<
|
13920 20749 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
13921 20750 | >,
|
13922 20751 | >,
|
13923 20752 | ) -> Self {
|
20753 + | /* ServerBuilderGenerator.kt:429 */
|
13924 20754 | self.dense_string_map = input.map(|v| v.into());
|
13925 20755 | self
|
20756 + | /* ServerBuilderGenerator.kt:428 */
|
13926 20757 | }
|
20758 + | /* ServerBuilderGenerator.kt:426 */
|
13927 20759 | #[allow(missing_docs)] // documentation missing in model
|
20760 + | /* ServerBuilderGenerator.kt:428 */
|
13928 20761 | pub(crate) fn set_dense_set_map(
|
13929 20762 | mut self,
|
13930 20763 | input: Option<
|
13931 20764 | impl ::std::convert::Into<
|
13932 20765 | crate::constrained::MaybeConstrained<
|
13933 20766 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
13934 20767 | >,
|
13935 20768 | >,
|
13936 20769 | >,
|
13937 20770 | ) -> Self {
|
20771 + | /* ServerBuilderGenerator.kt:429 */
|
13938 20772 | self.dense_set_map = input.map(|v| v.into());
|
13939 20773 | self
|
20774 + | /* ServerBuilderGenerator.kt:428 */
|
13940 20775 | }
|
13941 - | /// Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
13942 - | ///
|
20776 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20777 + | /// /* ServerBuilderGenerator.kt:260 */
|
13943 20778 | /// The builder fails to construct a [`JsonMapsInput`](crate::input::JsonMapsInput) if a [`ConstraintViolation`] occurs.
|
13944 20779 | ///
|
20780 + | /* ServerBuilderGenerator.kt:271 */
|
13945 20781 | pub fn build(self) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
13946 20782 | self.build_enforcing_all_constraints()
|
13947 20783 | }
|
20784 + | /* ServerBuilderGenerator.kt:283 */
|
13948 20785 | fn build_enforcing_all_constraints(
|
13949 20786 | self,
|
13950 20787 | ) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
13951 - | Ok(crate::input::JsonMapsInput {
|
20788 + | /* ServerBuilderGenerator.kt:287 */
|
20789 + | Ok(
|
20790 + | /* ServerBuilderGenerator.kt:542 */
|
20791 + | crate::input::JsonMapsInput {
|
20792 + | /* ServerBuilderGenerator.kt:546 */
|
13952 20793 | dense_struct_map: self.dense_struct_map,
|
20794 + | /* ServerBuilderGenerator.kt:546 */
|
13953 20795 | dense_number_map: self.dense_number_map,
|
20796 + | /* ServerBuilderGenerator.kt:546 */
|
13954 20797 | dense_boolean_map: self.dense_boolean_map,
|
20798 + | /* ServerBuilderGenerator.kt:546 */
|
13955 20799 | dense_string_map: self.dense_string_map,
|
20800 + | /* ServerBuilderGenerator.kt:546 */
|
13956 20801 | dense_set_map: self
|
13957 20802 | .dense_set_map
|
20803 + | /* ServerBuilderGenerator.kt:602 */
|
13958 20804 | .map(|v| match v {
|
13959 20805 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
13960 20806 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
13961 20807 | })
|
20808 + | /* ServerBuilderGenerator.kt:614 */
|
13962 20809 | .map(|res| {
|
13963 20810 | res.map(|v| v.into())
|
13964 20811 | .map_err(ConstraintViolation::DenseSetMap)
|
13965 20812 | })
|
13966 20813 | .transpose()?,
|
13967 - | })
|
20814 + | /* ServerBuilderGenerator.kt:542 */
|
20815 + | }, /* ServerBuilderGenerator.kt:287 */
|
20816 + | )
|
20817 + | /* ServerBuilderGenerator.kt:283 */
|
13968 20818 | }
|
20819 + | /* ServerBuilderGenerator.kt:215 */
|
13969 20820 | }
|
20821 + |
|
20822 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
13970 20823 | }
|
13971 - | /// See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20824 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
13972 20825 | pub mod json_maps_input {
|
13973 20826 |
|
20827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
13974 20828 | impl ::std::convert::From<Builder> for crate::input::JsonMapsInput {
|
13975 20829 | fn from(builder: Builder) -> Self {
|
13976 20830 | builder.build()
|
13977 20831 | }
|
13978 20832 | }
|
13979 - | /// A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20833 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20834 + | /* RustType.kt:516 */
|
13980 20835 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13981 20837 | pub struct Builder {
|
20838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13982 20839 | pub(crate) dense_struct_map: ::std::option::Option<
|
13983 20840 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
13984 20841 | >,
|
20842 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13985 20843 | pub(crate) dense_number_map:
|
13986 20844 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
20845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13987 20846 | pub(crate) dense_boolean_map:
|
13988 20847 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
20848 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13989 20849 | pub(crate) dense_string_map: ::std::option::Option<
|
13990 20850 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
13991 20851 | >,
|
20852 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
13992 20853 | pub(crate) dense_set_map: ::std::option::Option<
|
13993 20854 | ::std::collections::HashMap<
|
13994 20855 | ::std::string::String,
|
13995 20856 | ::std::vec::Vec<::std::string::String>,
|
13996 20857 | >,
|
13997 20858 | >,
|
20859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
13998 20860 | }
|
20861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
13999 20862 | impl Builder {
|
20863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14000 20864 | #[allow(missing_docs)] // documentation missing in model
|
20865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14001 20866 | pub fn dense_struct_map(
|
14002 20867 | mut self,
|
14003 20868 | input: ::std::option::Option<
|
14004 20869 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
14005 20870 | >,
|
14006 20871 | ) -> Self {
|
14007 - | self.dense_struct_map = input;
|
20872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20873 + | self.dense_struct_map =
|
20874 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14008 20876 | self
|
20877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14009 20878 | }
|
20879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14010 20880 | #[allow(missing_docs)] // documentation missing in model
|
20881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14011 20882 | pub fn dense_number_map(
|
14012 20883 | mut self,
|
14013 20884 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
14014 20885 | ) -> Self {
|
14015 - | self.dense_number_map = input;
|
20886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20887 + | self.dense_number_map =
|
20888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20889 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14016 20890 | self
|
20891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14017 20892 | }
|
20893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14018 20894 | #[allow(missing_docs)] // documentation missing in model
|
20895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14019 20896 | pub fn dense_boolean_map(
|
14020 20897 | mut self,
|
14021 20898 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
14022 20899 | ) -> Self {
|
14023 - | self.dense_boolean_map = input;
|
20900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20901 + | self.dense_boolean_map =
|
20902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20903 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14024 20904 | self
|
20905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14025 20906 | }
|
20907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14026 20908 | #[allow(missing_docs)] // documentation missing in model
|
20909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14027 20910 | pub fn dense_string_map(
|
14028 20911 | mut self,
|
14029 20912 | input: ::std::option::Option<
|
14030 20913 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
14031 20914 | >,
|
14032 20915 | ) -> Self {
|
14033 - | self.dense_string_map = input;
|
20916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20917 + | self.dense_string_map =
|
20918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20919 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14034 20920 | self
|
20921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14035 20922 | }
|
20923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14036 20924 | #[allow(missing_docs)] // documentation missing in model
|
20925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14037 20926 | pub fn dense_set_map(
|
14038 20927 | mut self,
|
14039 20928 | input: ::std::option::Option<
|
14040 20929 | ::std::collections::HashMap<
|
14041 20930 | ::std::string::String,
|
14042 20931 | ::std::vec::Vec<::std::string::String>,
|
14043 20932 | >,
|
14044 20933 | >,
|
14045 20934 | ) -> Self {
|
14046 - | self.dense_set_map = input;
|
20935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
20936 + | self.dense_set_map =
|
20937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
20938 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14047 20939 | self
|
20940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14048 20941 | }
|
14049 - | /// Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20942 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
20943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
14050 20944 | pub fn build(self) -> crate::input::JsonMapsInput {
|
14051 20945 | self.build_enforcing_required_and_enum_traits()
|
14052 20946 | }
|
20947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14053 20948 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonMapsInput {
|
20949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14054 20950 | crate::input::JsonMapsInput {
|
20951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14055 20952 | dense_struct_map: self.dense_struct_map,
|
20953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14056 20954 | dense_number_map: self.dense_number_map,
|
20955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14057 20956 | dense_boolean_map: self.dense_boolean_map,
|
20957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14058 20958 | dense_string_map: self.dense_string_map,
|
20959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14059 20960 | dense_set_map: self.dense_set_map,
|
20961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14060 20962 | }
|
20963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14061 20964 | }
|
20965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14062 20966 | }
|
20967 + |
|
20968 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14063 20969 | }
|
14064 - | /// See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
20970 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
14065 20971 | pub(crate) mod sparse_json_lists_input_internal {
|
14066 20972 |
|
20973 + | /* ServerBuilderGenerator.kt:461 */
|
14067 20974 | impl ::std::convert::From<Builder> for crate::input::SparseJsonListsInput {
|
14068 20975 | fn from(builder: Builder) -> Self {
|
14069 20976 | builder.build()
|
14070 20977 | }
|
14071 20978 | }
|
14072 - | /// A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
20979 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
20980 + | /* RustType.kt:516 */
|
14073 20981 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20982 + | /* ServerBuilderGenerator.kt:211 */
|
14074 20983 | pub(crate) struct Builder {
|
20984 + | /* ServerBuilderGenerator.kt:308 */
|
14075 20985 | pub(crate) sparse_string_list:
|
14076 20986 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
20987 + | /* ServerBuilderGenerator.kt:308 */
|
14077 20988 | pub(crate) sparse_short_list:
|
14078 20989 | ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
20990 + | /* ServerBuilderGenerator.kt:211 */
|
14079 20991 | }
|
20992 + | /* ServerBuilderGenerator.kt:215 */
|
14080 20993 | impl Builder {
|
20994 + | /* ServerBuilderGenerator.kt:426 */
|
14081 20995 | #[allow(missing_docs)] // documentation missing in model
|
20996 + | /* ServerBuilderGenerator.kt:428 */
|
14082 20997 | pub(crate) fn set_sparse_string_list(
|
14083 20998 | mut self,
|
14084 20999 | input: Option<
|
14085 21000 | impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
14086 21001 | >,
|
14087 21002 | ) -> Self {
|
21003 + | /* ServerBuilderGenerator.kt:429 */
|
14088 21004 | self.sparse_string_list = input.map(|v| v.into());
|
14089 21005 | self
|
21006 + | /* ServerBuilderGenerator.kt:428 */
|
14090 21007 | }
|
21008 + | /* ServerBuilderGenerator.kt:426 */
|
14091 21009 | #[allow(missing_docs)] // documentation missing in model
|
21010 + | /* ServerBuilderGenerator.kt:428 */
|
14092 21011 | pub(crate) fn set_sparse_short_list(
|
14093 21012 | mut self,
|
14094 21013 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<i16>>>>,
|
14095 21014 | ) -> Self {
|
21015 + | /* ServerBuilderGenerator.kt:429 */
|
14096 21016 | self.sparse_short_list = input.map(|v| v.into());
|
14097 21017 | self
|
21018 + | /* ServerBuilderGenerator.kt:428 */
|
14098 21019 | }
|
14099 - | /// Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21020 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21021 + | /* ServerBuilderGenerator.kt:271 */
|
14100 21022 | pub fn build(self) -> crate::input::SparseJsonListsInput {
|
14101 21023 | self.build_enforcing_all_constraints()
|
14102 21024 | }
|
21025 + | /* ServerBuilderGenerator.kt:283 */
|
14103 21026 | fn build_enforcing_all_constraints(self) -> crate::input::SparseJsonListsInput {
|
21027 + | /* ServerBuilderGenerator.kt:542 */
|
14104 21028 | crate::input::SparseJsonListsInput {
|
21029 + | /* ServerBuilderGenerator.kt:546 */
|
14105 21030 | sparse_string_list: self.sparse_string_list,
|
21031 + | /* ServerBuilderGenerator.kt:546 */
|
14106 21032 | sparse_short_list: self.sparse_short_list,
|
21033 + | /* ServerBuilderGenerator.kt:542 */
|
14107 21034 | }
|
21035 + | /* ServerBuilderGenerator.kt:283 */
|
14108 21036 | }
|
21037 + | /* ServerBuilderGenerator.kt:215 */
|
14109 21038 | }
|
21039 + |
|
21040 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14110 21041 | }
|
14111 - | /// See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21042 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
14112 21043 | pub mod sparse_json_lists_input {
|
14113 21044 |
|
21045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
14114 21046 | impl ::std::convert::From<Builder> for crate::input::SparseJsonListsInput {
|
14115 21047 | fn from(builder: Builder) -> Self {
|
14116 21048 | builder.build()
|
14117 21049 | }
|
14118 21050 | }
|
14119 - | /// A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21051 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21052 + | /* RustType.kt:516 */
|
14120 21053 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14121 21055 | pub struct Builder {
|
21056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14122 21057 | pub(crate) sparse_string_list:
|
14123 21058 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
21059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14124 21060 | pub(crate) sparse_short_list:
|
14125 21061 | ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
21062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14126 21063 | }
|
21064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14127 21065 | impl Builder {
|
21066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14128 21067 | #[allow(missing_docs)] // documentation missing in model
|
21068 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14129 21069 | pub fn sparse_string_list(
|
14130 21070 | mut self,
|
14131 21071 | input: ::std::option::Option<
|
14132 21072 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
14133 21073 | >,
|
14134 21074 | ) -> Self {
|
14135 - | self.sparse_string_list = input;
|
21075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21076 + | self.sparse_string_list =
|
21077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14136 21079 | self
|
21080 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14137 21081 | }
|
21082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14138 21083 | #[allow(missing_docs)] // documentation missing in model
|
21084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14139 21085 | pub fn sparse_short_list(
|
14140 21086 | mut self,
|
14141 21087 | input: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
14142 21088 | ) -> Self {
|
14143 - | self.sparse_short_list = input;
|
21089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21090 + | self.sparse_short_list =
|
21091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21092 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14144 21093 | self
|
21094 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14145 21095 | }
|
14146 - | /// Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21096 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
21097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
14147 21098 | pub fn build(self) -> crate::input::SparseJsonListsInput {
|
14148 21099 | self.build_enforcing_required_and_enum_traits()
|
14149 21100 | }
|
21101 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14150 21102 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::SparseJsonListsInput {
|
21103 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14151 21104 | crate::input::SparseJsonListsInput {
|
21105 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14152 21106 | sparse_string_list: self.sparse_string_list,
|
21107 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14153 21108 | sparse_short_list: self.sparse_short_list,
|
21109 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14154 21110 | }
|
21111 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14155 21112 | }
|
21113 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14156 21114 | }
|
21115 + |
|
21116 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14157 21117 | }
|
14158 - | /// See [`JsonListsInput`](crate::input::JsonListsInput).
|
21118 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonListsInput`](crate::input::JsonListsInput).
|
14159 21119 | pub(crate) mod json_lists_input_internal {
|
14160 21120 |
|
21121 + | /* RustType.kt:516 */
|
14161 21122 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
14162 - | /// Holds one variant for each of the ways the builder can fail.
|
21123 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
21124 + | /* RustType.kt:516 */
|
14163 21125 | #[non_exhaustive]
|
21126 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14164 21127 | #[allow(clippy::enum_variant_names)]
|
14165 21128 | pub(crate) enum ConstraintViolation {
|
14166 - | /// Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
21129 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
21130 + | /* RustType.kt:516 */
|
14167 21131 | #[doc(hidden)]
|
21132 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14168 21133 | StringSet(crate::model::string_set_internal::ConstraintViolation),
|
14169 - | /// Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
21134 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
21135 + | /* RustType.kt:516 */
|
14170 21136 | #[doc(hidden)]
|
21137 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14171 21138 | EnumList(crate::model::foo_enum_list_internal::ConstraintViolation),
|
21139 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14172 21140 | }
|
21141 + | /* ServerBuilderConstraintViolations.kt:117 */
|
14173 21142 | impl ::std::fmt::Display for ConstraintViolation {
|
21143 + | /* ServerBuilderConstraintViolations.kt:118 */
|
14174 21144 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
21145 + | /* ServerBuilderConstraintViolations.kt:119 */
|
14175 21146 | match self {
|
14176 - | ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
14177 - | ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
14178 - | }
|
21147 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
21148 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
21149 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
21150 + | /* ServerBuilderConstraintViolations.kt:118 */
|
14179 21151 | }
|
21152 + | /* ServerBuilderConstraintViolations.kt:117 */
|
14180 21153 | }
|
21154 + | /* ServerBuilderConstraintViolations.kt:84 */
|
14181 21155 | impl ::std::error::Error for ConstraintViolation {}
|
21156 + | /* ServerBuilderConstraintViolations.kt:171 */
|
14182 21157 | impl ConstraintViolation {
|
14183 21158 | pub(crate) fn as_validation_exception_field(
|
14184 21159 | self,
|
14185 21160 | path: ::std::string::String,
|
14186 21161 | ) -> crate::model::ValidationExceptionField {
|
14187 21162 | match self {
|
14188 21163 | ConstraintViolation::StringSet(inner) => {
|
14189 21164 | inner.as_validation_exception_field(path + "/stringSet")
|
14190 21165 | }
|
14191 21166 | ConstraintViolation::EnumList(inner) => {
|
14192 21167 | inner.as_validation_exception_field(path + "/enumList")
|
14193 21168 | }
|
14194 21169 | }
|
14195 21170 | }
|
14196 21171 | }
|
21172 + | /* ServerBuilderGenerator.kt:234 */
|
14197 21173 | impl ::std::convert::From<ConstraintViolation>
|
14198 21174 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
14199 21175 | {
|
14200 21176 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
14201 21177 | let first_validation_exception_field =
|
14202 21178 | constraint_violation.as_validation_exception_field("".to_owned());
|
14203 21179 | let validation_exception = crate::error::ValidationException {
|
14204 21180 | message: format!(
|
14205 21181 | "1 validation error detected. {}",
|
14206 21182 | &first_validation_exception_field.message
|
14207 21183 | ),
|
14208 21184 | field_list: Some(vec![first_validation_exception_field]),
|
14209 21185 | };
|
14210 21186 | Self::ConstraintViolation(
|
14211 21187 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
14212 21188 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
14213 21189 | )
|
14214 21190 | }
|
14215 21191 | }
|
21192 + | /* ServerBuilderGenerator.kt:244 */
|
14216 21193 | impl ::std::convert::From<Builder>
|
14217 21194 | for crate::constrained::MaybeConstrained<crate::input::JsonListsInput>
|
14218 21195 | {
|
14219 21196 | fn from(builder: Builder) -> Self {
|
14220 21197 | Self::Unconstrained(builder)
|
14221 21198 | }
|
14222 21199 | }
|
21200 + | /* ServerBuilderGenerator.kt:446 */
|
14223 21201 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonListsInput {
|
14224 21202 | type Error = ConstraintViolation;
|
14225 21203 |
|
14226 21204 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
14227 21205 | builder.build()
|
14228 21206 | }
|
14229 21207 | }
|
14230 - | /// A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
21208 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
21209 + | /* RustType.kt:516 */
|
14231 21210 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21211 + | /* ServerBuilderGenerator.kt:211 */
|
14232 21212 | pub(crate) struct Builder {
|
21213 + | /* ServerBuilderGenerator.kt:308 */
|
14233 21214 | pub(crate) string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
21215 + | /* ServerBuilderGenerator.kt:308 */
|
14234 21216 | pub(crate) string_set:
|
14235 21217 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
21218 + | /* ServerBuilderGenerator.kt:308 */
|
14236 21219 | pub(crate) integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21220 + | /* ServerBuilderGenerator.kt:308 */
|
14237 21221 | pub(crate) boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
21222 + | /* ServerBuilderGenerator.kt:308 */
|
14238 21223 | pub(crate) timestamp_list: ::std::option::Option<
|
14239 21224 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
14240 21225 | >,
|
21226 + | /* ServerBuilderGenerator.kt:308 */
|
14241 21227 | pub(crate) enum_list: ::std::option::Option<
|
14242 21228 | crate::constrained::MaybeConstrained<
|
14243 21229 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
14244 21230 | >,
|
14245 21231 | >,
|
21232 + | /* ServerBuilderGenerator.kt:308 */
|
14246 21233 | pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21234 + | /* ServerBuilderGenerator.kt:308 */
|
14247 21235 | pub(crate) nested_string_list:
|
14248 21236 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
21237 + | /* ServerBuilderGenerator.kt:308 */
|
14249 21238 | pub(crate) structure_list:
|
14250 21239 | ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
21240 + | /* ServerBuilderGenerator.kt:211 */
|
14251 21241 | }
|
21242 + | /* ServerBuilderGenerator.kt:215 */
|
14252 21243 | impl Builder {
|
21244 + | /* ServerBuilderGenerator.kt:426 */
|
14253 21245 | #[allow(missing_docs)] // documentation missing in model
|
21246 + | /* ServerBuilderGenerator.kt:428 */
|
14254 21247 | pub(crate) fn set_string_list(
|
14255 21248 | mut self,
|
14256 21249 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
14257 21250 | ) -> Self {
|
21251 + | /* ServerBuilderGenerator.kt:429 */
|
14258 21252 | self.string_list = input.map(|v| v.into());
|
14259 21253 | self
|
21254 + | /* ServerBuilderGenerator.kt:428 */
|
14260 21255 | }
|
21256 + | /* ServerBuilderGenerator.kt:426 */
|
14261 21257 | #[allow(missing_docs)] // documentation missing in model
|
21258 + | /* ServerBuilderGenerator.kt:428 */
|
14262 21259 | pub(crate) fn set_string_set(
|
14263 21260 | mut self,
|
14264 21261 | input: Option<
|
14265 21262 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
14266 21263 | >,
|
14267 21264 | ) -> Self {
|
21265 + | /* ServerBuilderGenerator.kt:429 */
|
14268 21266 | self.string_set = input.map(|v| v.into());
|
14269 21267 | self
|
21268 + | /* ServerBuilderGenerator.kt:428 */
|
14270 21269 | }
|
21270 + | /* ServerBuilderGenerator.kt:426 */
|
14271 21271 | #[allow(missing_docs)] // documentation missing in model
|
21272 + | /* ServerBuilderGenerator.kt:428 */
|
14272 21273 | pub(crate) fn set_integer_list(
|
14273 21274 | mut self,
|
14274 21275 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
14275 21276 | ) -> Self {
|
21277 + | /* ServerBuilderGenerator.kt:429 */
|
14276 21278 | self.integer_list = input.map(|v| v.into());
|
14277 21279 | self
|
21280 + | /* ServerBuilderGenerator.kt:428 */
|
14278 21281 | }
|
21282 + | /* ServerBuilderGenerator.kt:426 */
|
14279 21283 | #[allow(missing_docs)] // documentation missing in model
|
21284 + | /* ServerBuilderGenerator.kt:428 */
|
14280 21285 | pub(crate) fn set_boolean_list(
|
14281 21286 | mut self,
|
14282 21287 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
14283 21288 | ) -> Self {
|
21289 + | /* ServerBuilderGenerator.kt:429 */
|
14284 21290 | self.boolean_list = input.map(|v| v.into());
|
14285 21291 | self
|
21292 + | /* ServerBuilderGenerator.kt:428 */
|
14286 21293 | }
|
21294 + | /* ServerBuilderGenerator.kt:426 */
|
14287 21295 | #[allow(missing_docs)] // documentation missing in model
|
21296 + | /* ServerBuilderGenerator.kt:428 */
|
14288 21297 | pub(crate) fn set_timestamp_list(
|
14289 21298 | mut self,
|
14290 21299 | input: Option<
|
14291 21300 | impl ::std::convert::Into<
|
14292 21301 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
14293 21302 | >,
|
14294 21303 | >,
|
14295 21304 | ) -> Self {
|
21305 + | /* ServerBuilderGenerator.kt:429 */
|
14296 21306 | self.timestamp_list = input.map(|v| v.into());
|
14297 21307 | self
|
21308 + | /* ServerBuilderGenerator.kt:428 */
|
14298 21309 | }
|
21310 + | /* ServerBuilderGenerator.kt:426 */
|
14299 21311 | #[allow(missing_docs)] // documentation missing in model
|
21312 + | /* ServerBuilderGenerator.kt:428 */
|
14300 21313 | pub(crate) fn set_enum_list(
|
14301 21314 | mut self,
|
14302 21315 | input: Option<
|
14303 21316 | impl ::std::convert::Into<
|
14304 21317 | crate::constrained::MaybeConstrained<
|
14305 21318 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
14306 21319 | >,
|
14307 21320 | >,
|
14308 21321 | >,
|
14309 21322 | ) -> Self {
|
21323 + | /* ServerBuilderGenerator.kt:429 */
|
14310 21324 | self.enum_list = input.map(|v| v.into());
|
14311 21325 | self
|
21326 + | /* ServerBuilderGenerator.kt:428 */
|
14312 21327 | }
|
21328 + | /* ServerBuilderGenerator.kt:426 */
|
14313 21329 | #[allow(missing_docs)] // documentation missing in model
|
21330 + | /* ServerBuilderGenerator.kt:428 */
|
14314 21331 | pub(crate) fn set_int_enum_list(
|
14315 21332 | mut self,
|
14316 21333 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
14317 21334 | ) -> Self {
|
21335 + | /* ServerBuilderGenerator.kt:429 */
|
14318 21336 | self.int_enum_list = input.map(|v| v.into());
|
14319 21337 | self
|
21338 + | /* ServerBuilderGenerator.kt:428 */
|
14320 21339 | }
|
14321 - | /// A list of lists of strings.
|
21340 + | /// /* ServerBuilderGenerator.kt:426 */A list of lists of strings.
|
21341 + | /* ServerBuilderGenerator.kt:428 */
|
14322 21342 | pub(crate) fn set_nested_string_list(
|
14323 21343 | mut self,
|
14324 21344 | input: Option<
|
14325 21345 | impl ::std::convert::Into<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
14326 21346 | >,
|
14327 21347 | ) -> Self {
|
21348 + | /* ServerBuilderGenerator.kt:429 */
|
14328 21349 | self.nested_string_list = input.map(|v| v.into());
|
14329 21350 | self
|
21351 + | /* ServerBuilderGenerator.kt:428 */
|
14330 21352 | }
|
21353 + | /* ServerBuilderGenerator.kt:426 */
|
14331 21354 | #[allow(missing_docs)] // documentation missing in model
|
21355 + | /* ServerBuilderGenerator.kt:428 */
|
14332 21356 | pub(crate) fn set_structure_list(
|
14333 21357 | mut self,
|
14334 21358 | input: Option<
|
14335 21359 | impl ::std::convert::Into<::std::vec::Vec<crate::model::StructureListMember>>,
|
14336 21360 | >,
|
14337 21361 | ) -> Self {
|
21362 + | /* ServerBuilderGenerator.kt:429 */
|
14338 21363 | self.structure_list = input.map(|v| v.into());
|
14339 21364 | self
|
21365 + | /* ServerBuilderGenerator.kt:428 */
|
14340 21366 | }
|
14341 - | /// Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
14342 - | ///
|
21367 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
21368 + | /// /* ServerBuilderGenerator.kt:260 */
|
14343 21369 | /// The builder fails to construct a [`JsonListsInput`](crate::input::JsonListsInput) if a [`ConstraintViolation`] occurs.
|
14344 21370 | ///
|
14345 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
21371 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
21372 + | /* ServerBuilderGenerator.kt:271 */
|
14346 21373 | pub fn build(self) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
14347 21374 | self.build_enforcing_all_constraints()
|
14348 21375 | }
|
21376 + | /* ServerBuilderGenerator.kt:283 */
|
14349 21377 | fn build_enforcing_all_constraints(
|
14350 21378 | self,
|
14351 21379 | ) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
14352 - | Ok(crate::input::JsonListsInput {
|
21380 + | /* ServerBuilderGenerator.kt:287 */
|
21381 + | Ok(
|
21382 + | /* ServerBuilderGenerator.kt:542 */
|
21383 + | crate::input::JsonListsInput {
|
21384 + | /* ServerBuilderGenerator.kt:546 */
|
14353 21385 | string_list: self.string_list,
|
21386 + | /* ServerBuilderGenerator.kt:546 */
|
14354 21387 | string_set: self
|
14355 21388 | .string_set
|
21389 + | /* ServerBuilderGenerator.kt:602 */
|
14356 21390 | .map(|v| match v {
|
14357 21391 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
14358 21392 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
14359 21393 | })
|
21394 + | /* ServerBuilderGenerator.kt:614 */
|
14360 21395 | .map(|res| res.map_err(ConstraintViolation::StringSet))
|
14361 21396 | .transpose()?
|
21397 + | /* ServerBuilderGenerator.kt:630 */
|
14362 21398 | .map(|v: crate::model::StringSet| v.into()),
|
21399 + | /* ServerBuilderGenerator.kt:546 */
|
14363 21400 | integer_list: self.integer_list,
|
21401 + | /* ServerBuilderGenerator.kt:546 */
|
14364 21402 | boolean_list: self.boolean_list,
|
21403 + | /* ServerBuilderGenerator.kt:546 */
|
14365 21404 | timestamp_list: self.timestamp_list,
|
21405 + | /* ServerBuilderGenerator.kt:546 */
|
14366 21406 | enum_list: self
|
14367 21407 | .enum_list
|
21408 + | /* ServerBuilderGenerator.kt:602 */
|
14368 21409 | .map(|v| match v {
|
14369 21410 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
14370 21411 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
14371 21412 | })
|
21413 + | /* ServerBuilderGenerator.kt:614 */
|
14372 21414 | .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::EnumList))
|
14373 21415 | .transpose()?,
|
21416 + | /* ServerBuilderGenerator.kt:546 */
|
14374 21417 | int_enum_list: self.int_enum_list,
|
21418 + | /* ServerBuilderGenerator.kt:546 */
|
14375 21419 | nested_string_list: self.nested_string_list,
|
21420 + | /* ServerBuilderGenerator.kt:546 */
|
14376 21421 | structure_list: self.structure_list,
|
14377 - | })
|
21422 + | /* ServerBuilderGenerator.kt:542 */
|
21423 + | }, /* ServerBuilderGenerator.kt:287 */
|
21424 + | )
|
21425 + | /* ServerBuilderGenerator.kt:283 */
|
14378 21426 | }
|
21427 + | /* ServerBuilderGenerator.kt:215 */
|
14379 21428 | }
|
21429 + |
|
21430 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14380 21431 | }
|
14381 - | /// See [`JsonListsInput`](crate::input::JsonListsInput).
|
21432 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonListsInput`](crate::input::JsonListsInput).
|
14382 21433 | pub mod json_lists_input {
|
14383 21434 |
|
21435 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
14384 21436 | impl ::std::convert::From<Builder> for crate::input::JsonListsInput {
|
14385 21437 | fn from(builder: Builder) -> Self {
|
14386 21438 | builder.build()
|
14387 21439 | }
|
14388 21440 | }
|
14389 - | /// A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
21441 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
21442 + | /* RustType.kt:516 */
|
14390 21443 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21444 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14391 21445 | pub struct Builder {
|
21446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14392 21447 | pub(crate) string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
21448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14393 21449 | pub(crate) string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
21450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14394 21451 | pub(crate) integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21452 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14395 21453 | pub(crate) boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
21454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14396 21455 | pub(crate) timestamp_list: ::std::option::Option<
|
14397 21456 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
14398 21457 | >,
|
21458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14399 21459 | pub(crate) enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
21460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14400 21461 | pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14401 21463 | pub(crate) nested_string_list:
|
14402 21464 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
21465 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14403 21466 | pub(crate) structure_list:
|
14404 21467 | ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
21468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14405 21469 | }
|
21470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14406 21471 | impl Builder {
|
21472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14407 21473 | #[allow(missing_docs)] // documentation missing in model
|
21474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14408 21475 | pub fn string_list(
|
14409 21476 | mut self,
|
14410 21477 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
14411 21478 | ) -> Self {
|
14412 - | self.string_list = input;
|
21479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21480 + | self.string_list =
|
21481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14413 21483 | self
|
21484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14414 21485 | }
|
21486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14415 21487 | #[allow(missing_docs)] // documentation missing in model
|
21488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14416 21489 | pub fn string_set(
|
14417 21490 | mut self,
|
14418 21491 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
14419 21492 | ) -> Self {
|
14420 - | self.string_set = input;
|
21493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21494 + | self.string_set =
|
21495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14421 21497 | self
|
21498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14422 21499 | }
|
21500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14423 21501 | #[allow(missing_docs)] // documentation missing in model
|
21502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14424 21503 | pub fn integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
14425 - | self.integer_list = input;
|
21504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21505 + | self.integer_list =
|
21506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14426 21508 | self
|
21509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14427 21510 | }
|
21511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14428 21512 | #[allow(missing_docs)] // documentation missing in model
|
21513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14429 21514 | pub fn boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
|
14430 - | self.boolean_list = input;
|
21515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21516 + | self.boolean_list =
|
21517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14431 21519 | self
|
21520 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14432 21521 | }
|
21522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14433 21523 | #[allow(missing_docs)] // documentation missing in model
|
21524 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14434 21525 | pub fn timestamp_list(
|
14435 21526 | mut self,
|
14436 21527 | input: ::std::option::Option<
|
14437 21528 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
14438 21529 | >,
|
14439 21530 | ) -> Self {
|
14440 - | self.timestamp_list = input;
|
21531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21532 + | self.timestamp_list =
|
21533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14441 21535 | self
|
21536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14442 21537 | }
|
21538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14443 21539 | #[allow(missing_docs)] // documentation missing in model
|
21540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14444 21541 | pub fn enum_list(
|
14445 21542 | mut self,
|
14446 21543 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
14447 21544 | ) -> Self {
|
14448 - | self.enum_list = input;
|
21545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21546 + | self.enum_list =
|
21547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21548 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14449 21549 | self
|
21550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14450 21551 | }
|
21552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14451 21553 | #[allow(missing_docs)] // documentation missing in model
|
21554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14452 21555 | pub fn int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
14453 - | self.int_enum_list = input;
|
21556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21557 + | self.int_enum_list =
|
21558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14454 21560 | self
|
21561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14455 21562 | }
|
14456 - | /// A list of lists of strings.
|
21563 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A list of lists of strings.
|
21564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14457 21565 | pub fn nested_string_list(
|
14458 21566 | mut self,
|
14459 21567 | input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
14460 21568 | ) -> Self {
|
14461 - | self.nested_string_list = input;
|
21569 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21570 + | self.nested_string_list =
|
21571 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14462 21573 | self
|
21574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14463 21575 | }
|
21576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14464 21577 | #[allow(missing_docs)] // documentation missing in model
|
21578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14465 21579 | pub fn structure_list(
|
14466 21580 | mut self,
|
14467 21581 | input: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
14468 21582 | ) -> Self {
|
14469 - | self.structure_list = input;
|
21583 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21584 + | self.structure_list =
|
21585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14470 21587 | self
|
21588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14471 21589 | }
|
14472 - | /// Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
21590 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
21591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
14473 21592 | pub fn build(self) -> crate::input::JsonListsInput {
|
14474 21593 | self.build_enforcing_required_and_enum_traits()
|
14475 21594 | }
|
21595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14476 21596 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonListsInput {
|
21597 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14477 21598 | crate::input::JsonListsInput {
|
21599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14478 21600 | string_list: self.string_list,
|
21601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14479 21602 | string_set: self.string_set,
|
21603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14480 21604 | integer_list: self.integer_list,
|
21605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14481 21606 | boolean_list: self.boolean_list,
|
21607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14482 21608 | timestamp_list: self.timestamp_list,
|
21609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14483 21610 | enum_list: self.enum_list,
|
21611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14484 21612 | int_enum_list: self.int_enum_list,
|
21613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14485 21614 | nested_string_list: self.nested_string_list,
|
21615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14486 21616 | structure_list: self.structure_list,
|
21617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14487 21618 | }
|
21619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14488 21620 | }
|
21621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14489 21622 | }
|
21623 + |
|
21624 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14490 21625 | }
|
14491 - | /// See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21626 + | /// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
14492 21627 | pub(crate) mod recursive_shapes_input_internal {
|
14493 21628 |
|
21629 + | /* ServerBuilderGenerator.kt:461 */
|
14494 21630 | impl ::std::convert::From<Builder> for crate::input::RecursiveShapesInput {
|
14495 21631 | fn from(builder: Builder) -> Self {
|
14496 21632 | builder.build()
|
14497 21633 | }
|
14498 21634 | }
|
14499 - | /// A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21635 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21636 + | /* RustType.kt:516 */
|
14500 21637 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21638 + | /* ServerBuilderGenerator.kt:211 */
|
14501 21639 | pub(crate) struct Builder {
|
21640 + | /* ServerBuilderGenerator.kt:308 */
|
14502 21641 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
21642 + | /* ServerBuilderGenerator.kt:211 */
|
14503 21643 | }
|
21644 + | /* ServerBuilderGenerator.kt:215 */
|
14504 21645 | impl Builder {
|
21646 + | /* ServerBuilderGenerator.kt:426 */
|
14505 21647 | #[allow(missing_docs)] // documentation missing in model
|
21648 + | /* ServerBuilderGenerator.kt:428 */
|
14506 21649 | pub(crate) fn set_nested(
|
14507 21650 | mut self,
|
14508 21651 | input: Option<
|
14509 21652 | impl ::std::convert::Into<crate::model::RecursiveShapesInputOutputNested1>,
|
14510 21653 | >,
|
14511 21654 | ) -> Self {
|
21655 + | /* ServerBuilderGenerator.kt:429 */
|
14512 21656 | self.nested = input.map(|v| v.into());
|
14513 21657 | self
|
21658 + | /* ServerBuilderGenerator.kt:428 */
|
14514 21659 | }
|
14515 - | /// Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21660 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21661 + | /* ServerBuilderGenerator.kt:271 */
|
14516 21662 | pub fn build(self) -> crate::input::RecursiveShapesInput {
|
14517 21663 | self.build_enforcing_all_constraints()
|
14518 21664 | }
|
21665 + | /* ServerBuilderGenerator.kt:283 */
|
14519 21666 | fn build_enforcing_all_constraints(self) -> crate::input::RecursiveShapesInput {
|
21667 + | /* ServerBuilderGenerator.kt:542 */
|
14520 21668 | crate::input::RecursiveShapesInput {
|
21669 + | /* ServerBuilderGenerator.kt:546 */
|
14521 21670 | nested: self.nested,
|
21671 + | /* ServerBuilderGenerator.kt:542 */
|
14522 21672 | }
|
21673 + | /* ServerBuilderGenerator.kt:283 */
|
14523 21674 | }
|
21675 + | /* ServerBuilderGenerator.kt:215 */
|
14524 21676 | }
|
21677 + |
|
21678 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14525 21679 | }
|
14526 - | /// See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21680 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
14527 21681 | pub mod recursive_shapes_input {
|
14528 21682 |
|
21683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
14529 21684 | impl ::std::convert::From<Builder> for crate::input::RecursiveShapesInput {
|
14530 21685 | fn from(builder: Builder) -> Self {
|
14531 21686 | builder.build()
|
14532 21687 | }
|
14533 21688 | }
|
14534 - | /// A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21689 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21690 + | /* RustType.kt:516 */
|
14535 21691 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14536 21693 | pub struct Builder {
|
21694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14537 21695 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
21696 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14538 21697 | }
|
21698 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14539 21699 | impl Builder {
|
21700 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14540 21701 | #[allow(missing_docs)] // documentation missing in model
|
21702 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14541 21703 | pub fn nested(
|
14542 21704 | mut self,
|
14543 21705 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
14544 21706 | ) -> Self {
|
14545 - | self.nested = input;
|
21707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
21708 + | self.nested =
|
21709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
21710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14546 21711 | self
|
21712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14547 21713 | }
|
14548 - | /// Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21714 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
21715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
14549 21716 | pub fn build(self) -> crate::input::RecursiveShapesInput {
|
14550 21717 | self.build_enforcing_required_and_enum_traits()
|
14551 21718 | }
|
21719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14552 21720 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::RecursiveShapesInput {
|
21721 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14553 21722 | crate::input::RecursiveShapesInput {
|
21723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14554 21724 | nested: self.nested,
|
21725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14555 21726 | }
|
21727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14556 21728 | }
|
21729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14557 21730 | }
|
21731 + |
|
21732 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14558 21733 | }
|
14559 - | /// See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21734 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
14560 21735 | pub(crate) mod json_int_enums_input_internal {
|
14561 21736 |
|
21737 + | /* RustType.kt:516 */
|
14562 21738 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
14563 - | /// Holds one variant for each of the ways the builder can fail.
|
21739 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
21740 + | /* RustType.kt:516 */
|
14564 21741 | #[non_exhaustive]
|
21742 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14565 21743 | #[allow(clippy::enum_variant_names)]
|
14566 21744 | pub(crate) enum ConstraintViolation {
|
14567 - | /// Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
21745 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
21746 + | /* RustType.kt:516 */
|
14568 21747 | #[doc(hidden)]
|
21748 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14569 21749 | IntegerEnumSet(crate::model::integer_enum_set_internal::ConstraintViolation),
|
21750 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14570 21751 | }
|
21752 + | /* ServerBuilderConstraintViolations.kt:117 */
|
14571 21753 | impl ::std::fmt::Display for ConstraintViolation {
|
21754 + | /* ServerBuilderConstraintViolations.kt:118 */
|
14572 21755 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
21756 + | /* ServerBuilderConstraintViolations.kt:119 */
|
14573 21757 | match self {
|
14574 - | ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
14575 - | }
|
21758 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
21759 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
21760 + | /* ServerBuilderConstraintViolations.kt:118 */
|
14576 21761 | }
|
21762 + | /* ServerBuilderConstraintViolations.kt:117 */
|
14577 21763 | }
|
21764 + | /* ServerBuilderConstraintViolations.kt:84 */
|
14578 21765 | impl ::std::error::Error for ConstraintViolation {}
|
21766 + | /* ServerBuilderConstraintViolations.kt:171 */
|
14579 21767 | impl ConstraintViolation {
|
14580 21768 | pub(crate) fn as_validation_exception_field(
|
14581 21769 | self,
|
14582 21770 | path: ::std::string::String,
|
14583 21771 | ) -> crate::model::ValidationExceptionField {
|
14584 21772 | match self {
|
14585 21773 | ConstraintViolation::IntegerEnumSet(inner) => {
|
14586 21774 | inner.as_validation_exception_field(path + "/integerEnumSet")
|
14587 21775 | }
|
14588 21776 | }
|
14589 21777 | }
|
14590 21778 | }
|
21779 + | /* ServerBuilderGenerator.kt:234 */
|
14591 21780 | impl ::std::convert::From<ConstraintViolation>
|
14592 21781 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
14593 21782 | {
|
14594 21783 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
14595 21784 | let first_validation_exception_field =
|
14596 21785 | constraint_violation.as_validation_exception_field("".to_owned());
|
14597 21786 | let validation_exception = crate::error::ValidationException {
|
14598 21787 | message: format!(
|
14599 21788 | "1 validation error detected. {}",
|
14600 21789 | &first_validation_exception_field.message
|
14601 21790 | ),
|
14602 21791 | field_list: Some(vec![first_validation_exception_field]),
|
14603 21792 | };
|
14604 21793 | Self::ConstraintViolation(
|
14605 21794 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
14606 21795 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
14607 21796 | )
|
14608 21797 | }
|
14609 21798 | }
|
21799 + | /* ServerBuilderGenerator.kt:244 */
|
14610 21800 | impl ::std::convert::From<Builder>
|
14611 21801 | for crate::constrained::MaybeConstrained<crate::input::JsonIntEnumsInput>
|
14612 21802 | {
|
14613 21803 | fn from(builder: Builder) -> Self {
|
14614 21804 | Self::Unconstrained(builder)
|
14615 21805 | }
|
14616 21806 | }
|
21807 + | /* ServerBuilderGenerator.kt:446 */
|
14617 21808 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonIntEnumsInput {
|
14618 21809 | type Error = ConstraintViolation;
|
14619 21810 |
|
14620 21811 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
14621 21812 | builder.build()
|
14622 21813 | }
|
14623 21814 | }
|
14624 - | /// A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21815 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21816 + | /* RustType.kt:516 */
|
14625 21817 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21818 + | /* ServerBuilderGenerator.kt:211 */
|
14626 21819 | pub(crate) struct Builder {
|
21820 + | /* ServerBuilderGenerator.kt:308 */
|
14627 21821 | pub(crate) integer_enum1: ::std::option::Option<i32>,
|
21822 + | /* ServerBuilderGenerator.kt:308 */
|
14628 21823 | pub(crate) integer_enum2: ::std::option::Option<i32>,
|
21824 + | /* ServerBuilderGenerator.kt:308 */
|
14629 21825 | pub(crate) integer_enum3: ::std::option::Option<i32>,
|
21826 + | /* ServerBuilderGenerator.kt:308 */
|
14630 21827 | pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21828 + | /* ServerBuilderGenerator.kt:308 */
|
14631 21829 | pub(crate) integer_enum_set: ::std::option::Option<
|
14632 21830 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
14633 21831 | >,
|
21832 + | /* ServerBuilderGenerator.kt:308 */
|
14634 21833 | pub(crate) integer_enum_map:
|
14635 21834 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
21835 + | /* ServerBuilderGenerator.kt:211 */
|
14636 21836 | }
|
21837 + | /* ServerBuilderGenerator.kt:215 */
|
14637 21838 | impl Builder {
|
21839 + | /* ServerBuilderGenerator.kt:426 */
|
14638 21840 | #[allow(missing_docs)] // documentation missing in model
|
21841 + | /* ServerBuilderGenerator.kt:428 */
|
14639 21842 | pub(crate) fn set_integer_enum1(
|
14640 21843 | mut self,
|
14641 21844 | input: Option<impl ::std::convert::Into<i32>>,
|
14642 21845 | ) -> Self {
|
21846 + | /* ServerBuilderGenerator.kt:429 */
|
14643 21847 | self.integer_enum1 = input.map(|v| v.into());
|
14644 21848 | self
|
21849 + | /* ServerBuilderGenerator.kt:428 */
|
14645 21850 | }
|
21851 + | /* ServerBuilderGenerator.kt:426 */
|
14646 21852 | #[allow(missing_docs)] // documentation missing in model
|
21853 + | /* ServerBuilderGenerator.kt:428 */
|
14647 21854 | pub(crate) fn set_integer_enum2(
|
14648 21855 | mut self,
|
14649 21856 | input: Option<impl ::std::convert::Into<i32>>,
|
14650 21857 | ) -> Self {
|
21858 + | /* ServerBuilderGenerator.kt:429 */
|
14651 21859 | self.integer_enum2 = input.map(|v| v.into());
|
14652 21860 | self
|
21861 + | /* ServerBuilderGenerator.kt:428 */
|
14653 21862 | }
|
21863 + | /* ServerBuilderGenerator.kt:426 */
|
14654 21864 | #[allow(missing_docs)] // documentation missing in model
|
21865 + | /* ServerBuilderGenerator.kt:428 */
|
14655 21866 | pub(crate) fn set_integer_enum3(
|
14656 21867 | mut self,
|
14657 21868 | input: Option<impl ::std::convert::Into<i32>>,
|
14658 21869 | ) -> Self {
|
21870 + | /* ServerBuilderGenerator.kt:429 */
|
14659 21871 | self.integer_enum3 = input.map(|v| v.into());
|
14660 21872 | self
|
21873 + | /* ServerBuilderGenerator.kt:428 */
|
14661 21874 | }
|
21875 + | /* ServerBuilderGenerator.kt:426 */
|
14662 21876 | #[allow(missing_docs)] // documentation missing in model
|
21877 + | /* ServerBuilderGenerator.kt:428 */
|
14663 21878 | pub(crate) fn set_integer_enum_list(
|
14664 21879 | mut self,
|
14665 21880 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
14666 21881 | ) -> Self {
|
21882 + | /* ServerBuilderGenerator.kt:429 */
|
14667 21883 | self.integer_enum_list = input.map(|v| v.into());
|
14668 21884 | self
|
21885 + | /* ServerBuilderGenerator.kt:428 */
|
14669 21886 | }
|
21887 + | /* ServerBuilderGenerator.kt:426 */
|
14670 21888 | #[allow(missing_docs)] // documentation missing in model
|
21889 + | /* ServerBuilderGenerator.kt:428 */
|
14671 21890 | pub(crate) fn set_integer_enum_set(
|
14672 21891 | mut self,
|
14673 21892 | input: Option<
|
14674 21893 | impl ::std::convert::Into<
|
14675 21894 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
14676 21895 | >,
|
14677 21896 | >,
|
14678 21897 | ) -> Self {
|
21898 + | /* ServerBuilderGenerator.kt:429 */
|
14679 21899 | self.integer_enum_set = input.map(|v| v.into());
|
14680 21900 | self
|
21901 + | /* ServerBuilderGenerator.kt:428 */
|
14681 21902 | }
|
21903 + | /* ServerBuilderGenerator.kt:426 */
|
14682 21904 | #[allow(missing_docs)] // documentation missing in model
|
21905 + | /* ServerBuilderGenerator.kt:428 */
|
14683 21906 | pub(crate) fn set_integer_enum_map(
|
14684 21907 | mut self,
|
14685 21908 | input: Option<
|
14686 21909 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
14687 21910 | >,
|
14688 21911 | ) -> Self {
|
21912 + | /* ServerBuilderGenerator.kt:429 */
|
14689 21913 | self.integer_enum_map = input.map(|v| v.into());
|
14690 21914 | self
|
21915 + | /* ServerBuilderGenerator.kt:428 */
|
14691 21916 | }
|
14692 - | /// Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
14693 - | ///
|
21917 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21918 + | /// /* ServerBuilderGenerator.kt:260 */
|
14694 21919 | /// The builder fails to construct a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput) if a [`ConstraintViolation`] occurs.
|
14695 21920 | ///
|
21921 + | /* ServerBuilderGenerator.kt:271 */
|
14696 21922 | pub fn build(self) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
14697 21923 | self.build_enforcing_all_constraints()
|
14698 21924 | }
|
21925 + | /* ServerBuilderGenerator.kt:283 */
|
14699 21926 | fn build_enforcing_all_constraints(
|
14700 21927 | self,
|
14701 21928 | ) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
14702 - | Ok(crate::input::JsonIntEnumsInput {
|
21929 + | /* ServerBuilderGenerator.kt:287 */
|
21930 + | Ok(
|
21931 + | /* ServerBuilderGenerator.kt:542 */
|
21932 + | crate::input::JsonIntEnumsInput {
|
21933 + | /* ServerBuilderGenerator.kt:546 */
|
14703 21934 | integer_enum1: self.integer_enum1,
|
21935 + | /* ServerBuilderGenerator.kt:546 */
|
14704 21936 | integer_enum2: self.integer_enum2,
|
21937 + | /* ServerBuilderGenerator.kt:546 */
|
14705 21938 | integer_enum3: self.integer_enum3,
|
21939 + | /* ServerBuilderGenerator.kt:546 */
|
14706 21940 | integer_enum_list: self.integer_enum_list,
|
21941 + | /* ServerBuilderGenerator.kt:546 */
|
14707 21942 | integer_enum_set: self
|
14708 21943 | .integer_enum_set
|
21944 + | /* ServerBuilderGenerator.kt:602 */
|
14709 21945 | .map(|v| match v {
|
14710 21946 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
14711 21947 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
14712 21948 | })
|
21949 + | /* ServerBuilderGenerator.kt:614 */
|
14713 21950 | .map(|res| res.map_err(ConstraintViolation::IntegerEnumSet))
|
14714 21951 | .transpose()?
|
21952 + | /* ServerBuilderGenerator.kt:630 */
|
14715 21953 | .map(|v: crate::model::IntegerEnumSet| v.into()),
|
21954 + | /* ServerBuilderGenerator.kt:546 */
|
14716 21955 | integer_enum_map: self.integer_enum_map,
|
14717 - | })
|
21956 + | /* ServerBuilderGenerator.kt:542 */
|
21957 + | }, /* ServerBuilderGenerator.kt:287 */
|
21958 + | )
|
21959 + | /* ServerBuilderGenerator.kt:283 */
|
14718 21960 | }
|
21961 + | /* ServerBuilderGenerator.kt:215 */
|
14719 21962 | }
|
21963 + |
|
21964 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14720 21965 | }
|
14721 - | /// See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21966 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
14722 21967 | pub mod json_int_enums_input {
|
14723 21968 |
|
21969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
14724 21970 | impl ::std::convert::From<Builder> for crate::input::JsonIntEnumsInput {
|
14725 21971 | fn from(builder: Builder) -> Self {
|
14726 21972 | builder.build()
|
14727 21973 | }
|
14728 21974 | }
|
14729 - | /// A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21975 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
21976 + | /* RustType.kt:516 */
|
14730 21977 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
21978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14731 21979 | pub struct Builder {
|
21980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14732 21981 | pub(crate) integer_enum1: ::std::option::Option<i32>,
|
21982 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14733 21983 | pub(crate) integer_enum2: ::std::option::Option<i32>,
|
21984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14734 21985 | pub(crate) integer_enum3: ::std::option::Option<i32>,
|
21986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14735 21987 | pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
21988 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14736 21989 | pub(crate) integer_enum_set: ::std::option::Option<::std::vec::Vec<i32>>,
|
21990 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
14737 21991 | pub(crate) integer_enum_map:
|
14738 21992 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
21993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
14739 21994 | }
|
21995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14740 21996 | impl Builder {
|
21997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14741 21998 | #[allow(missing_docs)] // documentation missing in model
|
21999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14742 22000 | pub fn integer_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
|
14743 - | self.integer_enum1 = input;
|
22001 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22002 + | self.integer_enum1 =
|
22003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22004 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14744 22005 | self
|
22006 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14745 22007 | }
|
22008 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14746 22009 | #[allow(missing_docs)] // documentation missing in model
|
22010 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14747 22011 | pub fn integer_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
|
14748 - | self.integer_enum2 = input;
|
22012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22013 + | self.integer_enum2 =
|
22014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14749 22016 | self
|
22017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14750 22018 | }
|
22019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14751 22020 | #[allow(missing_docs)] // documentation missing in model
|
22021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14752 22022 | pub fn integer_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
|
14753 - | self.integer_enum3 = input;
|
22023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22024 + | self.integer_enum3 =
|
22025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14754 22027 | self
|
22028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14755 22029 | }
|
22030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14756 22031 | #[allow(missing_docs)] // documentation missing in model
|
22032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14757 22033 | pub fn integer_enum_list(
|
14758 22034 | mut self,
|
14759 22035 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
14760 22036 | ) -> Self {
|
14761 - | self.integer_enum_list = input;
|
22037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22038 + | self.integer_enum_list =
|
22039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14762 22041 | self
|
22042 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14763 22043 | }
|
22044 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14764 22045 | #[allow(missing_docs)] // documentation missing in model
|
22046 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14765 22047 | pub fn integer_enum_set(
|
14766 22048 | mut self,
|
14767 22049 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
14768 22050 | ) -> Self {
|
14769 - | self.integer_enum_set = input;
|
22051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22052 + | self.integer_enum_set =
|
22053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14770 22055 | self
|
22056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14771 22057 | }
|
22058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
14772 22059 | #[allow(missing_docs)] // documentation missing in model
|
22060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14773 22061 | pub fn integer_enum_map(
|
14774 22062 | mut self,
|
14775 22063 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
14776 22064 | ) -> Self {
|
14777 - | self.integer_enum_map = input;
|
22065 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22066 + | self.integer_enum_map =
|
22067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22068 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
14778 22069 | self
|
22070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
14779 22071 | }
|
14780 - | /// Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
22072 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
22073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
14781 22074 | pub fn build(self) -> crate::input::JsonIntEnumsInput {
|
14782 22075 | self.build_enforcing_required_and_enum_traits()
|
14783 22076 | }
|
22077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14784 22078 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonIntEnumsInput {
|
22079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14785 22080 | crate::input::JsonIntEnumsInput {
|
22081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14786 22082 | integer_enum1: self.integer_enum1,
|
22083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14787 22084 | integer_enum2: self.integer_enum2,
|
22085 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14788 22086 | integer_enum3: self.integer_enum3,
|
22087 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14789 22088 | integer_enum_list: self.integer_enum_list,
|
22089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14790 22090 | integer_enum_set: self.integer_enum_set,
|
22091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
14791 22092 | integer_enum_map: self.integer_enum_map,
|
22093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
14792 22094 | }
|
22095 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
14793 22096 | }
|
22097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
14794 22098 | }
|
22099 + |
|
22100 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
14795 22101 | }
|
14796 - | /// See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22102 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
14797 22103 | pub(crate) mod json_enums_input_internal {
|
14798 22104 |
|
22105 + | /* RustType.kt:516 */
|
14799 22106 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
14800 - | /// Holds one variant for each of the ways the builder can fail.
|
22107 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
22108 + | /* RustType.kt:516 */
|
14801 22109 | #[non_exhaustive]
|
22110 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14802 22111 | #[allow(clippy::enum_variant_names)]
|
14803 22112 | pub(crate) enum ConstraintViolation {
|
14804 - | /// Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
22113 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
22114 + | /* RustType.kt:516 */
|
14805 22115 | #[doc(hidden)]
|
22116 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14806 22117 | FooEnum1(crate::model::foo_enum_internal::ConstraintViolation),
|
14807 - | /// Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
22118 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
22119 + | /* RustType.kt:516 */
|
14808 22120 | #[doc(hidden)]
|
22121 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14809 22122 | FooEnum2(crate::model::foo_enum_internal::ConstraintViolation),
|
14810 - | /// Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
22123 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
22124 + | /* RustType.kt:516 */
|
14811 22125 | #[doc(hidden)]
|
22126 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14812 22127 | FooEnum3(crate::model::foo_enum_internal::ConstraintViolation),
|
14813 - | /// Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
22128 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
22129 + | /* RustType.kt:516 */
|
14814 22130 | #[doc(hidden)]
|
22131 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14815 22132 | FooEnumList(crate::model::foo_enum_list_internal::ConstraintViolation),
|
14816 - | /// Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
22133 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
22134 + | /* RustType.kt:516 */
|
14817 22135 | #[doc(hidden)]
|
22136 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14818 22137 | FooEnumSet(crate::model::foo_enum_set_internal::ConstraintViolation),
|
14819 - | /// Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
22138 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
22139 + | /* RustType.kt:516 */
|
14820 22140 | #[doc(hidden)]
|
22141 + | /* ServerBuilderConstraintViolations.kt:164 */
|
14821 22142 | FooEnumMap(crate::model::foo_enum_map_internal::ConstraintViolation),
|
22143 + | /* ServerBuilderConstraintViolations.kt:75 */
|
14822 22144 | }
|
22145 + | /* ServerBuilderConstraintViolations.kt:117 */
|
14823 22146 | impl ::std::fmt::Display for ConstraintViolation {
|
22147 + | /* ServerBuilderConstraintViolations.kt:118 */
|
14824 22148 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
22149 + | /* ServerBuilderConstraintViolations.kt:119 */
|
14825 22150 | match self {
|
14826 - | ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
14827 - | ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
14828 - | ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
14829 - | ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
14830 - | ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
14831 - | ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
14832 - | }
|
14833 - | }
|
14834 - | }
|
22151 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
22152 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
22153 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
22154 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
22155 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
22156 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
22157 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
22158 + | /* ServerBuilderConstraintViolations.kt:118 */
|
22159 + | }
|
22160 + | /* ServerBuilderConstraintViolations.kt:117 */
|
22161 + | }
|
22162 + | /* ServerBuilderConstraintViolations.kt:84 */
|
14835 22163 | impl ::std::error::Error for ConstraintViolation {}
|
22164 + | /* ServerBuilderConstraintViolations.kt:171 */
|
14836 22165 | impl ConstraintViolation {
|
14837 22166 | pub(crate) fn as_validation_exception_field(
|
14838 22167 | self,
|
14839 22168 | path: ::std::string::String,
|
14840 22169 | ) -> crate::model::ValidationExceptionField {
|
14841 22170 | match self {
|
14842 22171 | ConstraintViolation::FooEnum1(inner) => {
|
14843 22172 | inner.as_validation_exception_field(path + "/fooEnum1")
|
14844 22173 | }
|
14845 22174 | ConstraintViolation::FooEnum2(inner) => {
|
14846 22175 | inner.as_validation_exception_field(path + "/fooEnum2")
|
14847 22176 | }
|
14848 22177 | ConstraintViolation::FooEnum3(inner) => {
|
14849 22178 | inner.as_validation_exception_field(path + "/fooEnum3")
|
14850 22179 | }
|
14851 22180 | ConstraintViolation::FooEnumList(inner) => {
|
14852 22181 | inner.as_validation_exception_field(path + "/fooEnumList")
|
14853 22182 | }
|
14854 22183 | ConstraintViolation::FooEnumSet(inner) => {
|
14855 22184 | inner.as_validation_exception_field(path + "/fooEnumSet")
|
14856 22185 | }
|
14857 22186 | ConstraintViolation::FooEnumMap(inner) => {
|
14858 22187 | inner.as_validation_exception_field(path + "/fooEnumMap")
|
14859 22188 | }
|
14860 22189 | }
|
14861 22190 | }
|
14862 22191 | }
|
22192 + | /* ServerBuilderGenerator.kt:234 */
|
14863 22193 | impl ::std::convert::From<ConstraintViolation>
|
14864 22194 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
14865 22195 | {
|
14866 22196 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
14867 22197 | let first_validation_exception_field =
|
14868 22198 | constraint_violation.as_validation_exception_field("".to_owned());
|
14869 22199 | let validation_exception = crate::error::ValidationException {
|
14870 22200 | message: format!(
|
14871 22201 | "1 validation error detected. {}",
|
14872 22202 | &first_validation_exception_field.message
|
14873 22203 | ),
|
14874 22204 | field_list: Some(vec![first_validation_exception_field]),
|
14875 22205 | };
|
14876 22206 | Self::ConstraintViolation(
|
14877 22207 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
14878 22208 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
14879 22209 | )
|
14880 22210 | }
|
14881 22211 | }
|
22212 + | /* ServerBuilderGenerator.kt:244 */
|
14882 22213 | impl ::std::convert::From<Builder>
|
14883 22214 | for crate::constrained::MaybeConstrained<crate::input::JsonEnumsInput>
|
14884 22215 | {
|
14885 22216 | fn from(builder: Builder) -> Self {
|
14886 22217 | Self::Unconstrained(builder)
|
14887 22218 | }
|
14888 22219 | }
|
22220 + | /* ServerBuilderGenerator.kt:446 */
|
14889 22221 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonEnumsInput {
|
14890 22222 | type Error = ConstraintViolation;
|
14891 22223 |
|
14892 22224 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
14893 22225 | builder.build()
|
14894 22226 | }
|
14895 22227 | }
|
14896 - | /// A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22228 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22229 + | /* RustType.kt:516 */
|
14897 22230 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
22231 + | /* ServerBuilderGenerator.kt:211 */
|
14898 22232 | pub(crate) struct Builder {
|
22233 + | /* ServerBuilderGenerator.kt:308 */
|
14899 22234 | pub(crate) foo_enum1:
|
14900 22235 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
22236 + | /* ServerBuilderGenerator.kt:308 */
|
14901 22237 | pub(crate) foo_enum2:
|
14902 22238 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
22239 + | /* ServerBuilderGenerator.kt:308 */
|
14903 22240 | pub(crate) foo_enum3:
|
14904 22241 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
22242 + | /* ServerBuilderGenerator.kt:308 */
|
14905 22243 | pub(crate) foo_enum_list: ::std::option::Option<
|
14906 22244 | crate::constrained::MaybeConstrained<
|
14907 22245 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
14908 22246 | >,
|
14909 22247 | >,
|
22248 + | /* ServerBuilderGenerator.kt:308 */
|
14910 22249 | pub(crate) foo_enum_set:
|
14911 22250 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnumSet>>,
|
22251 + | /* ServerBuilderGenerator.kt:308 */
|
14912 22252 | pub(crate) foo_enum_map: ::std::option::Option<
|
14913 22253 | crate::constrained::MaybeConstrained<
|
14914 22254 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
14915 22255 | >,
|
14916 22256 | >,
|
22257 + | /* ServerBuilderGenerator.kt:211 */
|
14917 22258 | }
|
22259 + | /* ServerBuilderGenerator.kt:215 */
|
14918 22260 | impl Builder {
|
22261 + | /* ServerBuilderGenerator.kt:426 */
|
14919 22262 | #[allow(missing_docs)] // documentation missing in model
|
22263 + | /* ServerBuilderGenerator.kt:428 */
|
14920 22264 | pub(crate) fn set_foo_enum1(
|
14921 22265 | mut self,
|
14922 22266 | input: Option<
|
14923 22267 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
14924 22268 | >,
|
14925 22269 | ) -> Self {
|
22270 + | /* ServerBuilderGenerator.kt:429 */
|
14926 22271 | self.foo_enum1 = input.map(|v| v.into());
|
14927 22272 | self
|
22273 + | /* ServerBuilderGenerator.kt:428 */
|
14928 22274 | }
|
22275 + | /* ServerBuilderGenerator.kt:426 */
|
14929 22276 | #[allow(missing_docs)] // documentation missing in model
|
22277 + | /* ServerBuilderGenerator.kt:428 */
|
14930 22278 | pub(crate) fn set_foo_enum2(
|
14931 22279 | mut self,
|
14932 22280 | input: Option<
|
14933 22281 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
14934 22282 | >,
|
14935 22283 | ) -> Self {
|
22284 + | /* ServerBuilderGenerator.kt:429 */
|
14936 22285 | self.foo_enum2 = input.map(|v| v.into());
|
14937 22286 | self
|
22287 + | /* ServerBuilderGenerator.kt:428 */
|
14938 22288 | }
|
22289 + | /* ServerBuilderGenerator.kt:426 */
|
14939 22290 | #[allow(missing_docs)] // documentation missing in model
|
22291 + | /* ServerBuilderGenerator.kt:428 */
|
14940 22292 | pub(crate) fn set_foo_enum3(
|
14941 22293 | mut self,
|
14942 22294 | input: Option<
|
14943 22295 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
14944 22296 | >,
|
14945 22297 | ) -> Self {
|
22298 + | /* ServerBuilderGenerator.kt:429 */
|
14946 22299 | self.foo_enum3 = input.map(|v| v.into());
|
14947 22300 | self
|
22301 + | /* ServerBuilderGenerator.kt:428 */
|
14948 22302 | }
|
22303 + | /* ServerBuilderGenerator.kt:426 */
|
14949 22304 | #[allow(missing_docs)] // documentation missing in model
|
22305 + | /* ServerBuilderGenerator.kt:428 */
|
14950 22306 | pub(crate) fn set_foo_enum_list(
|
14951 22307 | mut self,
|
14952 22308 | input: Option<
|
14953 22309 | impl ::std::convert::Into<
|
14954 22310 | crate::constrained::MaybeConstrained<
|
14955 22311 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
14956 22312 | >,
|
14957 22313 | >,
|
14958 22314 | >,
|
14959 22315 | ) -> Self {
|
22316 + | /* ServerBuilderGenerator.kt:429 */
|
14960 22317 | self.foo_enum_list = input.map(|v| v.into());
|
14961 22318 | self
|
22319 + | /* ServerBuilderGenerator.kt:428 */
|
14962 22320 | }
|
22321 + | /* ServerBuilderGenerator.kt:426 */
|
14963 22322 | #[allow(missing_docs)] // documentation missing in model
|
22323 + | /* ServerBuilderGenerator.kt:428 */
|
14964 22324 | pub(crate) fn set_foo_enum_set(
|
14965 22325 | mut self,
|
14966 22326 | input: Option<
|
14967 22327 | impl ::std::convert::Into<
|
14968 22328 | crate::constrained::MaybeConstrained<crate::model::FooEnumSet>,
|
14969 22329 | >,
|
14970 22330 | >,
|
14971 22331 | ) -> Self {
|
22332 + | /* ServerBuilderGenerator.kt:429 */
|
14972 22333 | self.foo_enum_set = input.map(|v| v.into());
|
14973 22334 | self
|
22335 + | /* ServerBuilderGenerator.kt:428 */
|
14974 22336 | }
|
22337 + | /* ServerBuilderGenerator.kt:426 */
|
14975 22338 | #[allow(missing_docs)] // documentation missing in model
|
22339 + | /* ServerBuilderGenerator.kt:428 */
|
14976 22340 | pub(crate) fn set_foo_enum_map(
|
14977 22341 | mut self,
|
14978 22342 | input: Option<
|
14979 22343 | impl ::std::convert::Into<
|
14980 22344 | crate::constrained::MaybeConstrained<
|
14981 22345 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
14982 22346 | >,
|
14983 22347 | >,
|
14984 22348 | >,
|
14985 22349 | ) -> Self {
|
22350 + | /* ServerBuilderGenerator.kt:429 */
|
14986 22351 | self.foo_enum_map = input.map(|v| v.into());
|
14987 22352 | self
|
22353 + | /* ServerBuilderGenerator.kt:428 */
|
14988 22354 | }
|
14989 - | /// Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
14990 - | ///
|
22355 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22356 + | /// /* ServerBuilderGenerator.kt:260 */
|
14991 22357 | /// The builder fails to construct a [`JsonEnumsInput`](crate::input::JsonEnumsInput) if a [`ConstraintViolation`] occurs.
|
14992 22358 | ///
|
14993 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
22359 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
22360 + | /* ServerBuilderGenerator.kt:271 */
|
14994 22361 | pub fn build(self) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
14995 22362 | self.build_enforcing_all_constraints()
|
14996 22363 | }
|
22364 + | /* ServerBuilderGenerator.kt:283 */
|
14997 22365 | fn build_enforcing_all_constraints(
|
14998 22366 | self,
|
14999 22367 | ) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
15000 - | Ok(crate::input::JsonEnumsInput {
|
22368 + | /* ServerBuilderGenerator.kt:287 */
|
22369 + | Ok(
|
22370 + | /* ServerBuilderGenerator.kt:542 */
|
22371 + | crate::input::JsonEnumsInput {
|
22372 + | /* ServerBuilderGenerator.kt:546 */
|
15001 22373 | foo_enum1: self
|
15002 22374 | .foo_enum1
|
22375 + | /* ServerBuilderGenerator.kt:602 */
|
15003 22376 | .map(|v| match v {
|
15004 22377 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15005 22378 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15006 22379 | })
|
22380 + | /* ServerBuilderGenerator.kt:614 */
|
15007 22381 | .map(|res| res.map_err(ConstraintViolation::FooEnum1))
|
15008 22382 | .transpose()?,
|
22383 + | /* ServerBuilderGenerator.kt:546 */
|
15009 22384 | foo_enum2: self
|
15010 22385 | .foo_enum2
|
22386 + | /* ServerBuilderGenerator.kt:602 */
|
15011 22387 | .map(|v| match v {
|
15012 22388 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15013 22389 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15014 22390 | })
|
22391 + | /* ServerBuilderGenerator.kt:614 */
|
15015 22392 | .map(|res| res.map_err(ConstraintViolation::FooEnum2))
|
15016 22393 | .transpose()?,
|
22394 + | /* ServerBuilderGenerator.kt:546 */
|
15017 22395 | foo_enum3: self
|
15018 22396 | .foo_enum3
|
22397 + | /* ServerBuilderGenerator.kt:602 */
|
15019 22398 | .map(|v| match v {
|
15020 22399 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15021 22400 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15022 22401 | })
|
22402 + | /* ServerBuilderGenerator.kt:614 */
|
15023 22403 | .map(|res| res.map_err(ConstraintViolation::FooEnum3))
|
15024 22404 | .transpose()?,
|
22405 + | /* ServerBuilderGenerator.kt:546 */
|
15025 22406 | foo_enum_list: self
|
15026 22407 | .foo_enum_list
|
22408 + | /* ServerBuilderGenerator.kt:602 */
|
15027 22409 | .map(|v| match v {
|
15028 22410 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15029 22411 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15030 22412 | })
|
22413 + | /* ServerBuilderGenerator.kt:614 */
|
15031 22414 | .map(|res| {
|
15032 22415 | res.map(|v| v.into())
|
15033 22416 | .map_err(ConstraintViolation::FooEnumList)
|
15034 22417 | })
|
15035 22418 | .transpose()?,
|
22419 + | /* ServerBuilderGenerator.kt:546 */
|
15036 22420 | foo_enum_set: self
|
15037 22421 | .foo_enum_set
|
22422 + | /* ServerBuilderGenerator.kt:602 */
|
15038 22423 | .map(|v| match v {
|
15039 22424 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15040 22425 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15041 22426 | })
|
22427 + | /* ServerBuilderGenerator.kt:614 */
|
15042 22428 | .map(|res| res.map_err(ConstraintViolation::FooEnumSet))
|
15043 22429 | .transpose()?
|
22430 + | /* ServerBuilderGenerator.kt:630 */
|
15044 22431 | .map(|v: crate::model::FooEnumSet| v.into()),
|
22432 + | /* ServerBuilderGenerator.kt:546 */
|
15045 22433 | foo_enum_map: self
|
15046 22434 | .foo_enum_map
|
22435 + | /* ServerBuilderGenerator.kt:602 */
|
15047 22436 | .map(|v| match v {
|
15048 22437 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
15049 22438 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
15050 22439 | })
|
22440 + | /* ServerBuilderGenerator.kt:614 */
|
15051 22441 | .map(|res| {
|
15052 22442 | res.map(|v| v.into())
|
15053 22443 | .map_err(ConstraintViolation::FooEnumMap)
|
15054 22444 | })
|
15055 22445 | .transpose()?,
|
15056 - | })
|
22446 + | /* ServerBuilderGenerator.kt:542 */
|
22447 + | }, /* ServerBuilderGenerator.kt:287 */
|
22448 + | )
|
22449 + | /* ServerBuilderGenerator.kt:283 */
|
15057 22450 | }
|
22451 + | /* ServerBuilderGenerator.kt:215 */
|
15058 22452 | }
|
22453 + |
|
22454 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15059 22455 | }
|
15060 - | /// See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22456 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
15061 22457 | pub mod json_enums_input {
|
15062 22458 |
|
22459 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15063 22460 | impl ::std::convert::From<Builder> for crate::input::JsonEnumsInput {
|
15064 22461 | fn from(builder: Builder) -> Self {
|
15065 22462 | builder.build()
|
15066 22463 | }
|
15067 22464 | }
|
15068 - | /// A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22465 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22466 + | /* RustType.kt:516 */
|
15069 22467 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
22468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15070 22469 | pub struct Builder {
|
22470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15071 22471 | pub(crate) foo_enum1: ::std::option::Option<crate::model::FooEnum>,
|
22472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15072 22473 | pub(crate) foo_enum2: ::std::option::Option<crate::model::FooEnum>,
|
22474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15073 22475 | pub(crate) foo_enum3: ::std::option::Option<crate::model::FooEnum>,
|
22476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15074 22477 | pub(crate) foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
22478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15075 22479 | pub(crate) foo_enum_set: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
22480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15076 22481 | pub(crate) foo_enum_map: ::std::option::Option<
|
15077 22482 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
15078 22483 | >,
|
22484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15079 22485 | }
|
22486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15080 22487 | impl Builder {
|
22488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15081 22489 | #[allow(missing_docs)] // documentation missing in model
|
22490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15082 22491 | pub fn foo_enum1(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
15083 - | self.foo_enum1 = input;
|
22492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22493 + | self.foo_enum1 =
|
22494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15084 22496 | self
|
22497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15085 22498 | }
|
22499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15086 22500 | #[allow(missing_docs)] // documentation missing in model
|
22501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15087 22502 | pub fn foo_enum2(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
15088 - | self.foo_enum2 = input;
|
22503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22504 + | self.foo_enum2 =
|
22505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15089 22507 | self
|
22508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15090 22509 | }
|
22510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15091 22511 | #[allow(missing_docs)] // documentation missing in model
|
22512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15092 22513 | pub fn foo_enum3(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
15093 - | self.foo_enum3 = input;
|
22514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22515 + | self.foo_enum3 =
|
22516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15094 22518 | self
|
22519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15095 22520 | }
|
22521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15096 22522 | #[allow(missing_docs)] // documentation missing in model
|
22523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15097 22524 | pub fn foo_enum_list(
|
15098 22525 | mut self,
|
15099 22526 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
15100 22527 | ) -> Self {
|
15101 - | self.foo_enum_list = input;
|
22528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22529 + | self.foo_enum_list =
|
22530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15102 22532 | self
|
22533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15103 22534 | }
|
22535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15104 22536 | #[allow(missing_docs)] // documentation missing in model
|
22537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15105 22538 | pub fn foo_enum_set(
|
15106 22539 | mut self,
|
15107 22540 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
15108 22541 | ) -> Self {
|
15109 - | self.foo_enum_set = input;
|
22542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22543 + | self.foo_enum_set =
|
22544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15110 22546 | self
|
22547 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15111 22548 | }
|
22549 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15112 22550 | #[allow(missing_docs)] // documentation missing in model
|
22551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15113 22552 | pub fn foo_enum_map(
|
15114 22553 | mut self,
|
15115 22554 | input: ::std::option::Option<
|
15116 22555 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
15117 22556 | >,
|
15118 22557 | ) -> Self {
|
15119 - | self.foo_enum_map = input;
|
22558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22559 + | self.foo_enum_map =
|
22560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15120 22562 | self
|
22563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15121 22564 | }
|
15122 - | /// Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22565 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
22566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15123 22567 | pub fn build(self) -> crate::input::JsonEnumsInput {
|
15124 22568 | self.build_enforcing_required_and_enum_traits()
|
15125 22569 | }
|
22570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15126 22571 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonEnumsInput {
|
22572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15127 22573 | crate::input::JsonEnumsInput {
|
22574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15128 22575 | foo_enum1: self.foo_enum1,
|
22576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15129 22577 | foo_enum2: self.foo_enum2,
|
22578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15130 22579 | foo_enum3: self.foo_enum3,
|
22580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15131 22581 | foo_enum_list: self.foo_enum_list,
|
22582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15132 22583 | foo_enum_set: self.foo_enum_set,
|
22584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15133 22585 | foo_enum_map: self.foo_enum_map,
|
22586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15134 22587 | }
|
22588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15135 22589 | }
|
22590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15136 22591 | }
|
22592 + |
|
22593 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15137 22594 | }
|
15138 - | /// See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22595 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
15139 22596 | pub(crate) mod json_timestamps_input_internal {
|
15140 22597 |
|
22598 + | /* ServerBuilderGenerator.kt:461 */
|
15141 22599 | impl ::std::convert::From<Builder> for crate::input::JsonTimestampsInput {
|
15142 22600 | fn from(builder: Builder) -> Self {
|
15143 22601 | builder.build()
|
15144 22602 | }
|
15145 22603 | }
|
15146 - | /// A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22604 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22605 + | /* RustType.kt:516 */
|
15147 22606 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
22607 + | /* ServerBuilderGenerator.kt:211 */
|
15148 22608 | pub(crate) struct Builder {
|
22609 + | /* ServerBuilderGenerator.kt:308 */
|
15149 22610 | pub(crate) normal: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22611 + | /* ServerBuilderGenerator.kt:308 */
|
15150 22612 | pub(crate) date_time:
|
15151 22613 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22614 + | /* ServerBuilderGenerator.kt:308 */
|
15152 22615 | pub(crate) date_time_on_target:
|
15153 22616 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22617 + | /* ServerBuilderGenerator.kt:308 */
|
15154 22618 | pub(crate) epoch_seconds:
|
15155 22619 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22620 + | /* ServerBuilderGenerator.kt:308 */
|
15156 22621 | pub(crate) epoch_seconds_on_target:
|
15157 22622 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22623 + | /* ServerBuilderGenerator.kt:308 */
|
15158 22624 | pub(crate) http_date:
|
15159 22625 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22626 + | /* ServerBuilderGenerator.kt:308 */
|
15160 22627 | pub(crate) http_date_on_target:
|
15161 22628 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22629 + | /* ServerBuilderGenerator.kt:211 */
|
15162 22630 | }
|
22631 + | /* ServerBuilderGenerator.kt:215 */
|
15163 22632 | impl Builder {
|
22633 + | /* ServerBuilderGenerator.kt:426 */
|
15164 22634 | #[allow(missing_docs)] // documentation missing in model
|
22635 + | /* ServerBuilderGenerator.kt:428 */
|
15165 22636 | pub(crate) fn set_normal(
|
15166 22637 | mut self,
|
15167 22638 | input: Option<
|
15168 22639 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15169 22640 | >,
|
15170 22641 | ) -> Self {
|
22642 + | /* ServerBuilderGenerator.kt:429 */
|
15171 22643 | self.normal = input.map(|v| v.into());
|
15172 22644 | self
|
22645 + | /* ServerBuilderGenerator.kt:428 */
|
15173 22646 | }
|
22647 + | /* ServerBuilderGenerator.kt:426 */
|
15174 22648 | #[allow(missing_docs)] // documentation missing in model
|
22649 + | /* ServerBuilderGenerator.kt:428 */
|
15175 22650 | pub(crate) fn set_date_time(
|
15176 22651 | mut self,
|
15177 22652 | input: Option<
|
15178 22653 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15179 22654 | >,
|
15180 22655 | ) -> Self {
|
22656 + | /* ServerBuilderGenerator.kt:429 */
|
15181 22657 | self.date_time = input.map(|v| v.into());
|
15182 22658 | self
|
22659 + | /* ServerBuilderGenerator.kt:428 */
|
15183 22660 | }
|
22661 + | /* ServerBuilderGenerator.kt:426 */
|
15184 22662 | #[allow(missing_docs)] // documentation missing in model
|
22663 + | /* ServerBuilderGenerator.kt:428 */
|
15185 22664 | pub(crate) fn set_date_time_on_target(
|
15186 22665 | mut self,
|
15187 22666 | input: Option<
|
15188 22667 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15189 22668 | >,
|
15190 22669 | ) -> Self {
|
22670 + | /* ServerBuilderGenerator.kt:429 */
|
15191 22671 | self.date_time_on_target = input.map(|v| v.into());
|
15192 22672 | self
|
22673 + | /* ServerBuilderGenerator.kt:428 */
|
15193 22674 | }
|
22675 + | /* ServerBuilderGenerator.kt:426 */
|
15194 22676 | #[allow(missing_docs)] // documentation missing in model
|
22677 + | /* ServerBuilderGenerator.kt:428 */
|
15195 22678 | pub(crate) fn set_epoch_seconds(
|
15196 22679 | mut self,
|
15197 22680 | input: Option<
|
15198 22681 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15199 22682 | >,
|
15200 22683 | ) -> Self {
|
22684 + | /* ServerBuilderGenerator.kt:429 */
|
15201 22685 | self.epoch_seconds = input.map(|v| v.into());
|
15202 22686 | self
|
22687 + | /* ServerBuilderGenerator.kt:428 */
|
15203 22688 | }
|
22689 + | /* ServerBuilderGenerator.kt:426 */
|
15204 22690 | #[allow(missing_docs)] // documentation missing in model
|
22691 + | /* ServerBuilderGenerator.kt:428 */
|
15205 22692 | pub(crate) fn set_epoch_seconds_on_target(
|
15206 22693 | mut self,
|
15207 22694 | input: Option<
|
15208 22695 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15209 22696 | >,
|
15210 22697 | ) -> Self {
|
22698 + | /* ServerBuilderGenerator.kt:429 */
|
15211 22699 | self.epoch_seconds_on_target = input.map(|v| v.into());
|
15212 22700 | self
|
22701 + | /* ServerBuilderGenerator.kt:428 */
|
15213 22702 | }
|
22703 + | /* ServerBuilderGenerator.kt:426 */
|
15214 22704 | #[allow(missing_docs)] // documentation missing in model
|
22705 + | /* ServerBuilderGenerator.kt:428 */
|
15215 22706 | pub(crate) fn set_http_date(
|
15216 22707 | mut self,
|
15217 22708 | input: Option<
|
15218 22709 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15219 22710 | >,
|
15220 22711 | ) -> Self {
|
22712 + | /* ServerBuilderGenerator.kt:429 */
|
15221 22713 | self.http_date = input.map(|v| v.into());
|
15222 22714 | self
|
22715 + | /* ServerBuilderGenerator.kt:428 */
|
15223 22716 | }
|
22717 + | /* ServerBuilderGenerator.kt:426 */
|
15224 22718 | #[allow(missing_docs)] // documentation missing in model
|
22719 + | /* ServerBuilderGenerator.kt:428 */
|
15225 22720 | pub(crate) fn set_http_date_on_target(
|
15226 22721 | mut self,
|
15227 22722 | input: Option<
|
15228 22723 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
15229 22724 | >,
|
15230 22725 | ) -> Self {
|
22726 + | /* ServerBuilderGenerator.kt:429 */
|
15231 22727 | self.http_date_on_target = input.map(|v| v.into());
|
15232 22728 | self
|
22729 + | /* ServerBuilderGenerator.kt:428 */
|
15233 22730 | }
|
15234 - | /// Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22731 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22732 + | /* ServerBuilderGenerator.kt:271 */
|
15235 22733 | pub fn build(self) -> crate::input::JsonTimestampsInput {
|
15236 22734 | self.build_enforcing_all_constraints()
|
15237 22735 | }
|
22736 + | /* ServerBuilderGenerator.kt:283 */
|
15238 22737 | fn build_enforcing_all_constraints(self) -> crate::input::JsonTimestampsInput {
|
22738 + | /* ServerBuilderGenerator.kt:542 */
|
15239 22739 | crate::input::JsonTimestampsInput {
|
22740 + | /* ServerBuilderGenerator.kt:546 */
|
15240 22741 | normal: self.normal,
|
22742 + | /* ServerBuilderGenerator.kt:546 */
|
15241 22743 | date_time: self.date_time,
|
22744 + | /* ServerBuilderGenerator.kt:546 */
|
15242 22745 | date_time_on_target: self.date_time_on_target,
|
22746 + | /* ServerBuilderGenerator.kt:546 */
|
15243 22747 | epoch_seconds: self.epoch_seconds,
|
22748 + | /* ServerBuilderGenerator.kt:546 */
|
15244 22749 | epoch_seconds_on_target: self.epoch_seconds_on_target,
|
22750 + | /* ServerBuilderGenerator.kt:546 */
|
15245 22751 | http_date: self.http_date,
|
22752 + | /* ServerBuilderGenerator.kt:546 */
|
15246 22753 | http_date_on_target: self.http_date_on_target,
|
22754 + | /* ServerBuilderGenerator.kt:542 */
|
15247 22755 | }
|
22756 + | /* ServerBuilderGenerator.kt:283 */
|
15248 22757 | }
|
22758 + | /* ServerBuilderGenerator.kt:215 */
|
15249 22759 | }
|
22760 + |
|
22761 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15250 22762 | }
|
15251 - | /// See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22763 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
15252 22764 | pub mod json_timestamps_input {
|
15253 22765 |
|
22766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15254 22767 | impl ::std::convert::From<Builder> for crate::input::JsonTimestampsInput {
|
15255 22768 | fn from(builder: Builder) -> Self {
|
15256 22769 | builder.build()
|
15257 22770 | }
|
15258 22771 | }
|
15259 - | /// A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22772 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22773 + | /* RustType.kt:516 */
|
15260 22774 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
22775 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15261 22776 | pub struct Builder {
|
22777 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15262 22778 | pub(crate) normal: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22779 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15263 22780 | pub(crate) date_time:
|
15264 22781 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15265 22783 | pub(crate) date_time_on_target:
|
15266 22784 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15267 22786 | pub(crate) epoch_seconds:
|
15268 22787 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15269 22789 | pub(crate) epoch_seconds_on_target:
|
15270 22790 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15271 22792 | pub(crate) http_date:
|
15272 22793 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15273 22795 | pub(crate) http_date_on_target:
|
15274 22796 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
22797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15275 22798 | }
|
22799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15276 22800 | impl Builder {
|
22801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15277 22802 | #[allow(missing_docs)] // documentation missing in model
|
22803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15278 22804 | pub fn normal(
|
15279 22805 | mut self,
|
15280 22806 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15281 22807 | ) -> Self {
|
15282 - | self.normal = input;
|
22808 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22809 + | self.normal =
|
22810 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15283 22812 | self
|
22813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15284 22814 | }
|
22815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15285 22816 | #[allow(missing_docs)] // documentation missing in model
|
22817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15286 22818 | pub fn date_time(
|
15287 22819 | mut self,
|
15288 22820 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15289 22821 | ) -> Self {
|
15290 - | self.date_time = input;
|
22822 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22823 + | self.date_time =
|
22824 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15291 22826 | self
|
22827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15292 22828 | }
|
22829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15293 22830 | #[allow(missing_docs)] // documentation missing in model
|
22831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15294 22832 | pub fn date_time_on_target(
|
15295 22833 | mut self,
|
15296 22834 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15297 22835 | ) -> Self {
|
15298 - | self.date_time_on_target = input;
|
22836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22837 + | self.date_time_on_target =
|
22838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15299 22840 | self
|
22841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15300 22842 | }
|
22843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15301 22844 | #[allow(missing_docs)] // documentation missing in model
|
22845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15302 22846 | pub fn epoch_seconds(
|
15303 22847 | mut self,
|
15304 22848 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15305 22849 | ) -> Self {
|
15306 - | self.epoch_seconds = input;
|
22850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22851 + | self.epoch_seconds =
|
22852 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15307 22854 | self
|
22855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15308 22856 | }
|
22857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15309 22858 | #[allow(missing_docs)] // documentation missing in model
|
22859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15310 22860 | pub fn epoch_seconds_on_target(
|
15311 22861 | mut self,
|
15312 22862 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15313 22863 | ) -> Self {
|
15314 - | self.epoch_seconds_on_target = input;
|
22864 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22865 + | self.epoch_seconds_on_target =
|
22866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22867 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15315 22868 | self
|
22869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15316 22870 | }
|
22871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15317 22872 | #[allow(missing_docs)] // documentation missing in model
|
22873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15318 22874 | pub fn http_date(
|
15319 22875 | mut self,
|
15320 22876 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15321 22877 | ) -> Self {
|
15322 - | self.http_date = input;
|
22878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22879 + | self.http_date =
|
22880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15323 22882 | self
|
22883 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15324 22884 | }
|
22885 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15325 22886 | #[allow(missing_docs)] // documentation missing in model
|
22887 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15326 22888 | pub fn http_date_on_target(
|
15327 22889 | mut self,
|
15328 22890 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
15329 22891 | ) -> Self {
|
15330 - | self.http_date_on_target = input;
|
22892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
22893 + | self.http_date_on_target =
|
22894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
22895 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15331 22896 | self
|
22897 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15332 22898 | }
|
15333 - | /// Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22899 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
22900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15334 22901 | pub fn build(self) -> crate::input::JsonTimestampsInput {
|
15335 22902 | self.build_enforcing_required_and_enum_traits()
|
15336 22903 | }
|
22904 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15337 22905 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonTimestampsInput {
|
22906 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15338 22907 | crate::input::JsonTimestampsInput {
|
22908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15339 22909 | normal: self.normal,
|
22910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15340 22911 | date_time: self.date_time,
|
22912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15341 22913 | date_time_on_target: self.date_time_on_target,
|
22914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15342 22915 | epoch_seconds: self.epoch_seconds,
|
22916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15343 22917 | epoch_seconds_on_target: self.epoch_seconds_on_target,
|
22918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15344 22919 | http_date: self.http_date,
|
22920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15345 22921 | http_date_on_target: self.http_date_on_target,
|
22922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15346 22923 | }
|
22924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15347 22925 | }
|
22926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15348 22927 | }
|
22928 + |
|
22929 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15349 22930 | }
|
15350 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
22931 + | /// /* ServerBuilderGenerator.kt:171 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
15351 22932 | pub(crate) mod simple_scalar_properties_input_internal {
|
15352 22933 |
|
22934 + | /* ServerBuilderGenerator.kt:461 */
|
15353 22935 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
15354 22936 | fn from(builder: Builder) -> Self {
|
15355 22937 | builder.build()
|
15356 22938 | }
|
15357 22939 | }
|
15358 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
22940 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
22941 + | /* RustType.kt:516 */
|
15359 22942 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
22943 + | /* ServerBuilderGenerator.kt:211 */
|
15360 22944 | pub(crate) struct Builder {
|
22945 + | /* ServerBuilderGenerator.kt:308 */
|
15361 22946 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
22947 + | /* ServerBuilderGenerator.kt:308 */
|
15362 22948 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
22949 + | /* ServerBuilderGenerator.kt:308 */
|
15363 22950 | pub(crate) true_boolean_value: ::std::option::Option<bool>,
|
22951 + | /* ServerBuilderGenerator.kt:308 */
|
15364 22952 | pub(crate) false_boolean_value: ::std::option::Option<bool>,
|
15365 - | pub(crate) byte_value: ::std::option::Option<i8>,
|
22953 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) byte_value: ::std::option::Option<i8>,
|
22954 + | /* ServerBuilderGenerator.kt:308 */
|
15366 22955 | pub(crate) short_value: ::std::option::Option<i16>,
|
22956 + | /* ServerBuilderGenerator.kt:308 */
|
15367 22957 | pub(crate) integer_value: ::std::option::Option<i32>,
|
22958 + | /* ServerBuilderGenerator.kt:308 */
|
15368 22959 | pub(crate) long_value: ::std::option::Option<i64>,
|
22960 + | /* ServerBuilderGenerator.kt:308 */
|
15369 22961 | pub(crate) float_value: ::std::option::Option<f32>,
|
22962 + | /* ServerBuilderGenerator.kt:308 */
|
15370 22963 | pub(crate) double_value: ::std::option::Option<f64>,
|
22964 + | /* ServerBuilderGenerator.kt:211 */
|
15371 22965 | }
|
22966 + | /* ServerBuilderGenerator.kt:215 */
|
15372 22967 | impl Builder {
|
22968 + | /* ServerBuilderGenerator.kt:426 */
|
15373 22969 | #[allow(missing_docs)] // documentation missing in model
|
22970 + | /* ServerBuilderGenerator.kt:428 */
|
15374 22971 | pub(crate) fn set_foo(
|
15375 22972 | mut self,
|
15376 22973 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15377 22974 | ) -> Self {
|
22975 + | /* ServerBuilderGenerator.kt:429 */
|
15378 22976 | self.foo = input.map(|v| v.into());
|
15379 22977 | self
|
22978 + | /* ServerBuilderGenerator.kt:428 */
|
15380 22979 | }
|
22980 + | /* ServerBuilderGenerator.kt:426 */
|
15381 22981 | #[allow(missing_docs)] // documentation missing in model
|
22982 + | /* ServerBuilderGenerator.kt:428 */
|
15382 22983 | pub(crate) fn set_string_value(
|
15383 22984 | mut self,
|
15384 22985 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15385 22986 | ) -> Self {
|
22987 + | /* ServerBuilderGenerator.kt:429 */
|
15386 22988 | self.string_value = input.map(|v| v.into());
|
15387 22989 | self
|
22990 + | /* ServerBuilderGenerator.kt:428 */
|
15388 22991 | }
|
22992 + | /* ServerBuilderGenerator.kt:426 */
|
15389 22993 | #[allow(missing_docs)] // documentation missing in model
|
22994 + | /* ServerBuilderGenerator.kt:428 */
|
15390 22995 | pub(crate) fn set_true_boolean_value(
|
15391 22996 | mut self,
|
15392 22997 | input: Option<impl ::std::convert::Into<bool>>,
|
15393 22998 | ) -> Self {
|
22999 + | /* ServerBuilderGenerator.kt:429 */
|
15394 23000 | self.true_boolean_value = input.map(|v| v.into());
|
15395 23001 | self
|
23002 + | /* ServerBuilderGenerator.kt:428 */
|
15396 23003 | }
|
23004 + | /* ServerBuilderGenerator.kt:426 */
|
15397 23005 | #[allow(missing_docs)] // documentation missing in model
|
23006 + | /* ServerBuilderGenerator.kt:428 */
|
15398 23007 | pub(crate) fn set_false_boolean_value(
|
15399 23008 | mut self,
|
15400 23009 | input: Option<impl ::std::convert::Into<bool>>,
|
15401 23010 | ) -> Self {
|
23011 + | /* ServerBuilderGenerator.kt:429 */
|
15402 23012 | self.false_boolean_value = input.map(|v| v.into());
|
15403 23013 | self
|
23014 + | /* ServerBuilderGenerator.kt:428 */
|
15404 23015 | }
|
23016 + | /* ServerBuilderGenerator.kt:426 */
|
15405 23017 | #[allow(missing_docs)] // documentation missing in model
|
23018 + | /* ServerBuilderGenerator.kt:428 */
|
15406 23019 | pub(crate) fn set_byte_value(
|
15407 23020 | mut self,
|
15408 23021 | input: Option<impl ::std::convert::Into<i8>>,
|
15409 23022 | ) -> Self {
|
23023 + | /* ServerBuilderGenerator.kt:429 */
|
15410 23024 | self.byte_value = input.map(|v| v.into());
|
15411 23025 | self
|
23026 + | /* ServerBuilderGenerator.kt:428 */
|
15412 23027 | }
|
23028 + | /* ServerBuilderGenerator.kt:426 */
|
15413 23029 | #[allow(missing_docs)] // documentation missing in model
|
23030 + | /* ServerBuilderGenerator.kt:428 */
|
15414 23031 | pub(crate) fn set_short_value(
|
15415 23032 | mut self,
|
15416 23033 | input: Option<impl ::std::convert::Into<i16>>,
|
15417 23034 | ) -> Self {
|
23035 + | /* ServerBuilderGenerator.kt:429 */
|
15418 23036 | self.short_value = input.map(|v| v.into());
|
15419 23037 | self
|
23038 + | /* ServerBuilderGenerator.kt:428 */
|
15420 23039 | }
|
23040 + | /* ServerBuilderGenerator.kt:426 */
|
15421 23041 | #[allow(missing_docs)] // documentation missing in model
|
23042 + | /* ServerBuilderGenerator.kt:428 */
|
15422 23043 | pub(crate) fn set_integer_value(
|
15423 23044 | mut self,
|
15424 23045 | input: Option<impl ::std::convert::Into<i32>>,
|
15425 23046 | ) -> Self {
|
23047 + | /* ServerBuilderGenerator.kt:429 */
|
15426 23048 | self.integer_value = input.map(|v| v.into());
|
15427 23049 | self
|
23050 + | /* ServerBuilderGenerator.kt:428 */
|
15428 23051 | }
|
23052 + | /* ServerBuilderGenerator.kt:426 */
|
15429 23053 | #[allow(missing_docs)] // documentation missing in model
|
23054 + | /* ServerBuilderGenerator.kt:428 */
|
15430 23055 | pub(crate) fn set_long_value(
|
15431 23056 | mut self,
|
15432 23057 | input: Option<impl ::std::convert::Into<i64>>,
|
15433 23058 | ) -> Self {
|
23059 + | /* ServerBuilderGenerator.kt:429 */
|
15434 23060 | self.long_value = input.map(|v| v.into());
|
15435 23061 | self
|
23062 + | /* ServerBuilderGenerator.kt:428 */
|
15436 23063 | }
|
23064 + | /* ServerBuilderGenerator.kt:426 */
|
15437 23065 | #[allow(missing_docs)] // documentation missing in model
|
23066 + | /* ServerBuilderGenerator.kt:428 */
|
15438 23067 | pub(crate) fn set_float_value(
|
15439 23068 | mut self,
|
15440 23069 | input: Option<impl ::std::convert::Into<f32>>,
|
15441 23070 | ) -> Self {
|
23071 + | /* ServerBuilderGenerator.kt:429 */
|
15442 23072 | self.float_value = input.map(|v| v.into());
|
15443 23073 | self
|
23074 + | /* ServerBuilderGenerator.kt:428 */
|
15444 23075 | }
|
23076 + | /* ServerBuilderGenerator.kt:426 */
|
15445 23077 | #[allow(missing_docs)] // documentation missing in model
|
23078 + | /* ServerBuilderGenerator.kt:428 */
|
15446 23079 | pub(crate) fn set_double_value(
|
15447 23080 | mut self,
|
15448 23081 | input: Option<impl ::std::convert::Into<f64>>,
|
15449 23082 | ) -> Self {
|
23083 + | /* ServerBuilderGenerator.kt:429 */
|
15450 23084 | self.double_value = input.map(|v| v.into());
|
15451 23085 | self
|
23086 + | /* ServerBuilderGenerator.kt:428 */
|
15452 23087 | }
|
15453 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23088 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23089 + | /* ServerBuilderGenerator.kt:271 */
|
15454 23090 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
15455 23091 | self.build_enforcing_all_constraints()
|
15456 23092 | }
|
23093 + | /* ServerBuilderGenerator.kt:283 */
|
15457 23094 | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
23095 + | /* ServerBuilderGenerator.kt:542 */
|
15458 23096 | crate::input::SimpleScalarPropertiesInput {
|
23097 + | /* ServerBuilderGenerator.kt:546 */
|
15459 23098 | foo: self.foo,
|
23099 + | /* ServerBuilderGenerator.kt:546 */
|
15460 23100 | string_value: self.string_value,
|
23101 + | /* ServerBuilderGenerator.kt:546 */
|
15461 23102 | true_boolean_value: self.true_boolean_value,
|
23103 + | /* ServerBuilderGenerator.kt:546 */
|
15462 23104 | false_boolean_value: self.false_boolean_value,
|
23105 + | /* ServerBuilderGenerator.kt:546 */
|
15463 23106 | byte_value: self.byte_value,
|
23107 + | /* ServerBuilderGenerator.kt:546 */
|
15464 23108 | short_value: self.short_value,
|
23109 + | /* ServerBuilderGenerator.kt:546 */
|
15465 23110 | integer_value: self.integer_value,
|
23111 + | /* ServerBuilderGenerator.kt:546 */
|
15466 23112 | long_value: self.long_value,
|
23113 + | /* ServerBuilderGenerator.kt:546 */
|
15467 23114 | float_value: self.float_value,
|
23115 + | /* ServerBuilderGenerator.kt:546 */
|
15468 23116 | double_value: self.double_value,
|
23117 + | /* ServerBuilderGenerator.kt:542 */
|
15469 23118 | }
|
23119 + | /* ServerBuilderGenerator.kt:283 */
|
15470 23120 | }
|
23121 + | /* ServerBuilderGenerator.kt:215 */
|
15471 23122 | }
|
23123 + |
|
23124 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15472 23125 | }
|
15473 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23126 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
15474 23127 | pub mod simple_scalar_properties_input {
|
15475 23128 |
|
23129 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15476 23130 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
15477 23131 | fn from(builder: Builder) -> Self {
|
15478 23132 | builder.build()
|
15479 23133 | }
|
15480 23134 | }
|
15481 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23135 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23136 + | /* RustType.kt:516 */
|
15482 23137 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23138 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15483 23139 | pub struct Builder {
|
23140 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15484 23141 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23142 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15485 23143 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
23144 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15486 23145 | pub(crate) true_boolean_value: ::std::option::Option<bool>,
|
23146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15487 23147 | pub(crate) false_boolean_value: ::std::option::Option<bool>,
|
23148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15488 23149 | pub(crate) byte_value: ::std::option::Option<i8>,
|
23150 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15489 23151 | pub(crate) short_value: ::std::option::Option<i16>,
|
23152 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15490 23153 | pub(crate) integer_value: ::std::option::Option<i32>,
|
23154 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15491 23155 | pub(crate) long_value: ::std::option::Option<i64>,
|
23156 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15492 23157 | pub(crate) float_value: ::std::option::Option<f32>,
|
23158 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15493 23159 | pub(crate) double_value: ::std::option::Option<f64>,
|
23160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15494 23161 | }
|
23162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15495 23163 | impl Builder {
|
23164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15496 23165 | #[allow(missing_docs)] // documentation missing in model
|
23166 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15497 23167 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
15498 - | self.foo = input;
|
23168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23169 + | self.foo =
|
23170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23171 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15499 23172 | self
|
23173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15500 23174 | }
|
23175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15501 23176 | #[allow(missing_docs)] // documentation missing in model
|
23177 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15502 23178 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
15503 - | self.string_value = input;
|
23179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23180 + | self.string_value =
|
23181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15504 23183 | self
|
23184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15505 23185 | }
|
23186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15506 23187 | #[allow(missing_docs)] // documentation missing in model
|
23188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15507 23189 | pub fn true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
15508 - | self.true_boolean_value = input;
|
23190 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23191 + | self.true_boolean_value =
|
23192 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15509 23194 | self
|
23195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15510 23196 | }
|
23197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15511 23198 | #[allow(missing_docs)] // documentation missing in model
|
23199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15512 23200 | pub fn false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
15513 - | self.false_boolean_value = input;
|
23201 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23202 + | self.false_boolean_value =
|
23203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23204 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15514 23205 | self
|
23206 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15515 23207 | }
|
23208 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15516 23209 | #[allow(missing_docs)] // documentation missing in model
|
23210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15517 23211 | pub fn byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
|
15518 - | self.byte_value = input;
|
23212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23213 + | self.byte_value =
|
23214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23215 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15519 23216 | self
|
23217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15520 23218 | }
|
23219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15521 23220 | #[allow(missing_docs)] // documentation missing in model
|
23221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15522 23222 | pub fn short_value(mut self, input: ::std::option::Option<i16>) -> Self {
|
15523 - | self.short_value = input;
|
23223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23224 + | self.short_value =
|
23225 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23226 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15524 23227 | self
|
23228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15525 23229 | }
|
23230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15526 23231 | #[allow(missing_docs)] // documentation missing in model
|
23232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15527 23233 | pub fn integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
|
15528 - | self.integer_value = input;
|
23234 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23235 + | self.integer_value =
|
23236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15529 23238 | self
|
23239 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15530 23240 | }
|
23241 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15531 23242 | #[allow(missing_docs)] // documentation missing in model
|
23243 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15532 23244 | pub fn long_value(mut self, input: ::std::option::Option<i64>) -> Self {
|
15533 - | self.long_value = input;
|
23245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23246 + | self.long_value =
|
23247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15534 23249 | self
|
23250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15535 23251 | }
|
23252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15536 23253 | #[allow(missing_docs)] // documentation missing in model
|
23254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15537 23255 | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
15538 - | self.float_value = input;
|
23256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23257 + | self.float_value =
|
23258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15539 23260 | self
|
23261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15540 23262 | }
|
23263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15541 23264 | #[allow(missing_docs)] // documentation missing in model
|
23265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15542 23266 | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
15543 - | self.double_value = input;
|
23267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23268 + | self.double_value =
|
23269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15544 23271 | self
|
23272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15545 23273 | }
|
15546 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23274 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
23275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15547 23276 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
15548 23277 | self.build_enforcing_required_and_enum_traits()
|
15549 23278 | }
|
23279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15550 23280 | fn build_enforcing_required_and_enum_traits(
|
15551 23281 | self,
|
15552 23282 | ) -> crate::input::SimpleScalarPropertiesInput {
|
23283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15553 23284 | crate::input::SimpleScalarPropertiesInput {
|
23285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15554 23286 | foo: self.foo,
|
23287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15555 23288 | string_value: self.string_value,
|
23289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15556 23290 | true_boolean_value: self.true_boolean_value,
|
23291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15557 23292 | false_boolean_value: self.false_boolean_value,
|
23293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15558 23294 | byte_value: self.byte_value,
|
23295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15559 23296 | short_value: self.short_value,
|
23297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15560 23298 | integer_value: self.integer_value,
|
23299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15561 23300 | long_value: self.long_value,
|
23301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15562 23302 | float_value: self.float_value,
|
23303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15563 23304 | double_value: self.double_value,
|
23305 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15564 23306 | }
|
23307 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15565 23308 | }
|
23309 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15566 23310 | }
|
23311 + |
|
23312 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15567 23313 | }
|
15568 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23314 + | /// /* ServerBuilderGenerator.kt:171 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
15569 23315 | pub(crate) mod greeting_with_errors_input_internal {
|
15570 23316 |
|
23317 + | /* ServerBuilderGenerator.kt:461 */
|
15571 23318 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
15572 23319 | fn from(builder: Builder) -> Self {
|
15573 23320 | builder.build()
|
15574 23321 | }
|
15575 23322 | }
|
15576 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23323 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23324 + | /* RustType.kt:516 */
|
15577 23325 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15578 - | pub(crate) struct Builder {}
|
23326 + | /* ServerBuilderGenerator.kt:211 */
|
23327 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
23328 + | /* ServerBuilderGenerator.kt:215 */
|
15579 23329 | impl Builder {
|
15580 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23330 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23331 + | /* ServerBuilderGenerator.kt:271 */
|
15581 23332 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
15582 23333 | self.build_enforcing_all_constraints()
|
15583 23334 | }
|
23335 + | /* ServerBuilderGenerator.kt:283 */
|
15584 23336 | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
15585 - | crate::input::GreetingWithErrorsInput {}
|
23337 + | /* ServerBuilderGenerator.kt:542 */
|
23338 + | crate::input::GreetingWithErrorsInput {
|
23339 + | /* ServerBuilderGenerator.kt:542 */}
|
23340 + | /* ServerBuilderGenerator.kt:283 */
|
15586 23341 | }
|
23342 + | /* ServerBuilderGenerator.kt:215 */
|
15587 23343 | }
|
23344 + |
|
23345 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15588 23346 | }
|
15589 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23347 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
15590 23348 | pub mod greeting_with_errors_input {
|
15591 23349 |
|
23350 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15592 23351 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
15593 23352 | fn from(builder: Builder) -> Self {
|
15594 23353 | builder.build()
|
15595 23354 | }
|
15596 23355 | }
|
15597 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23356 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23357 + | /* RustType.kt:516 */
|
15598 23358 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15599 - | pub struct Builder {}
|
23359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
23360 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
23361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15600 23362 | impl Builder {
|
15601 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23363 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
23364 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15602 23365 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
15603 23366 | self.build_enforcing_required_and_enum_traits()
|
15604 23367 | }
|
23368 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15605 23369 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::GreetingWithErrorsInput {
|
15606 - | crate::input::GreetingWithErrorsInput {}
|
23370 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
23371 + | crate::input::GreetingWithErrorsInput {
|
23372 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
23373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15607 23374 | }
|
23375 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15608 23376 | }
|
23377 + |
|
23378 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15609 23379 | }
|
15610 - | /// See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23380 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
15611 23381 | pub(crate) mod streaming_traits_with_media_type_input_internal {
|
15612 23382 |
|
23383 + | /* ServerBuilderGenerator.kt:461 */
|
15613 23384 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsWithMediaTypeInput {
|
15614 23385 | fn from(builder: Builder) -> Self {
|
15615 23386 | builder.build()
|
15616 23387 | }
|
15617 23388 | }
|
15618 - | /// A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23389 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23390 + | /* RustType.kt:516 */
|
15619 23391 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23392 + | /* ServerBuilderGenerator.kt:211 */
|
15620 23393 | pub(crate) struct Builder {
|
23394 + | /* ServerBuilderGenerator.kt:308 */
|
15621 23395 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23396 + | /* ServerBuilderGenerator.kt:308 */
|
15622 23397 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23398 + | /* ServerBuilderGenerator.kt:211 */
|
15623 23399 | }
|
23400 + | /* ServerBuilderGenerator.kt:215 */
|
15624 23401 | impl Builder {
|
23402 + | /* ServerBuilderGenerator.kt:426 */
|
15625 23403 | #[allow(missing_docs)] // documentation missing in model
|
23404 + | /* ServerBuilderGenerator.kt:428 */
|
15626 23405 | pub(crate) fn set_foo(
|
15627 23406 | mut self,
|
15628 23407 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15629 23408 | ) -> Self {
|
23409 + | /* ServerBuilderGenerator.kt:429 */
|
15630 23410 | self.foo = input.map(|v| v.into());
|
15631 23411 | self
|
23412 + | /* ServerBuilderGenerator.kt:428 */
|
15632 23413 | }
|
23414 + | /* ServerBuilderGenerator.kt:426 */
|
15633 23415 | #[allow(missing_docs)] // documentation missing in model
|
23416 + | /* ServerBuilderGenerator.kt:428 */
|
15634 23417 | pub(crate) fn set_blob(
|
15635 23418 | mut self,
|
15636 23419 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
15637 23420 | ) -> Self {
|
23421 + | /* ServerBuilderGenerator.kt:429 */
|
15638 23422 | self.blob = Some(input.into());
|
15639 23423 | self
|
23424 + | /* ServerBuilderGenerator.kt:428 */
|
15640 23425 | }
|
15641 - | /// Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23426 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23427 + | /* ServerBuilderGenerator.kt:271 */
|
15642 23428 | pub fn build(self) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
15643 23429 | self.build_enforcing_all_constraints()
|
15644 23430 | }
|
23431 + | /* ServerBuilderGenerator.kt:283 */
|
15645 23432 | fn build_enforcing_all_constraints(
|
15646 23433 | self,
|
15647 23434 | ) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
23435 + | /* ServerBuilderGenerator.kt:542 */
|
15648 23436 | crate::input::StreamingTraitsWithMediaTypeInput {
|
23437 + | /* ServerBuilderGenerator.kt:546 */
|
15649 23438 | foo: self.foo,
|
15650 - | blob: self.blob.unwrap_or_default(),
|
23439 + | /* ServerBuilderGenerator.kt:546 */
|
23440 + | blob: self
|
23441 + | .blob
|
23442 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23443 + | .unwrap_or_default(),
|
23444 + | /* ServerBuilderGenerator.kt:542 */
|
15651 23445 | }
|
23446 + | /* ServerBuilderGenerator.kt:283 */
|
15652 23447 | }
|
23448 + | /* ServerBuilderGenerator.kt:215 */
|
15653 23449 | }
|
23450 + |
|
23451 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15654 23452 | }
|
15655 - | /// See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23453 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
15656 23454 | pub mod streaming_traits_with_media_type_input {
|
15657 23455 |
|
23456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15658 23457 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsWithMediaTypeInput {
|
15659 23458 | fn from(builder: Builder) -> Self {
|
15660 23459 | builder.build()
|
15661 23460 | }
|
15662 23461 | }
|
15663 - | /// A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23462 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23463 + | /* RustType.kt:516 */
|
15664 23464 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23465 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15665 23466 | pub struct Builder {
|
23467 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15666 23468 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23469 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15667 23470 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15668 23472 | }
|
23473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15669 23474 | impl Builder {
|
23475 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15670 23476 | #[allow(missing_docs)] // documentation missing in model
|
23477 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15671 23478 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
15672 - | self.foo = input;
|
23479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23480 + | self.foo =
|
23481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15673 23483 | self
|
23484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15674 23485 | }
|
23486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15675 23487 | #[allow(missing_docs)] // documentation missing in model
|
23488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15676 23489 | pub fn blob(mut self, input: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
15677 - | self.blob = Some(input);
|
23490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23491 + | self.blob =
|
23492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
23493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
23495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15678 23496 | self
|
23497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15679 23498 | }
|
15680 - | /// Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23499 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
23500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15681 23501 | pub fn build(self) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
15682 23502 | self.build_enforcing_required_and_enum_traits()
|
15683 23503 | }
|
23504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15684 23505 | fn build_enforcing_required_and_enum_traits(
|
15685 23506 | self,
|
15686 23507 | ) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
23508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15687 23509 | crate::input::StreamingTraitsWithMediaTypeInput {
|
23510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15688 23511 | foo: self.foo,
|
15689 - | blob: self.blob.unwrap_or_default(),
|
23512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
23513 + | blob: self
|
23514 + | .blob
|
23515 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23516 + | .unwrap_or_default(),
|
23517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15690 23518 | }
|
23519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15691 23520 | }
|
23521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15692 23522 | }
|
23523 + |
|
23524 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15693 23525 | }
|
15694 - | /// See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23526 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
15695 23527 | pub(crate) mod streaming_traits_require_length_input_internal {
|
15696 23528 |
|
23529 + | /* ServerBuilderGenerator.kt:461 */
|
15697 23530 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsRequireLengthInput {
|
15698 23531 | fn from(builder: Builder) -> Self {
|
15699 23532 | builder.build()
|
15700 23533 | }
|
15701 23534 | }
|
15702 - | /// A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23535 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23536 + | /* RustType.kt:516 */
|
15703 23537 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23538 + | /* ServerBuilderGenerator.kt:211 */
|
15704 23539 | pub(crate) struct Builder {
|
23540 + | /* ServerBuilderGenerator.kt:308 */
|
15705 23541 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23542 + | /* ServerBuilderGenerator.kt:308 */
|
15706 23543 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23544 + | /* ServerBuilderGenerator.kt:211 */
|
15707 23545 | }
|
23546 + | /* ServerBuilderGenerator.kt:215 */
|
15708 23547 | impl Builder {
|
23548 + | /* ServerBuilderGenerator.kt:426 */
|
15709 23549 | #[allow(missing_docs)] // documentation missing in model
|
23550 + | /* ServerBuilderGenerator.kt:428 */
|
15710 23551 | pub(crate) fn set_foo(
|
15711 23552 | mut self,
|
15712 23553 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15713 23554 | ) -> Self {
|
23555 + | /* ServerBuilderGenerator.kt:429 */
|
15714 23556 | self.foo = input.map(|v| v.into());
|
15715 23557 | self
|
23558 + | /* ServerBuilderGenerator.kt:428 */
|
15716 23559 | }
|
23560 + | /* ServerBuilderGenerator.kt:426 */
|
15717 23561 | #[allow(missing_docs)] // documentation missing in model
|
23562 + | /* ServerBuilderGenerator.kt:428 */
|
15718 23563 | pub(crate) fn set_blob(
|
15719 23564 | mut self,
|
15720 23565 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
15721 23566 | ) -> Self {
|
23567 + | /* ServerBuilderGenerator.kt:429 */
|
15722 23568 | self.blob = Some(input.into());
|
15723 23569 | self
|
23570 + | /* ServerBuilderGenerator.kt:428 */
|
15724 23571 | }
|
15725 - | /// Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23572 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23573 + | /* ServerBuilderGenerator.kt:271 */
|
15726 23574 | pub fn build(self) -> crate::input::StreamingTraitsRequireLengthInput {
|
15727 23575 | self.build_enforcing_all_constraints()
|
15728 23576 | }
|
23577 + | /* ServerBuilderGenerator.kt:283 */
|
15729 23578 | fn build_enforcing_all_constraints(
|
15730 23579 | self,
|
15731 23580 | ) -> crate::input::StreamingTraitsRequireLengthInput {
|
23581 + | /* ServerBuilderGenerator.kt:542 */
|
15732 23582 | crate::input::StreamingTraitsRequireLengthInput {
|
23583 + | /* ServerBuilderGenerator.kt:546 */
|
15733 23584 | foo: self.foo,
|
15734 - | blob: self.blob.unwrap_or_default(),
|
23585 + | /* ServerBuilderGenerator.kt:546 */
|
23586 + | blob: self
|
23587 + | .blob
|
23588 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23589 + | .unwrap_or_default(),
|
23590 + | /* ServerBuilderGenerator.kt:542 */
|
15735 23591 | }
|
23592 + | /* ServerBuilderGenerator.kt:283 */
|
15736 23593 | }
|
23594 + | /* ServerBuilderGenerator.kt:215 */
|
15737 23595 | }
|
23596 + |
|
23597 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15738 23598 | }
|
15739 - | /// See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23599 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
15740 23600 | pub mod streaming_traits_require_length_input {
|
15741 23601 |
|
23602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15742 23603 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsRequireLengthInput {
|
15743 23604 | fn from(builder: Builder) -> Self {
|
15744 23605 | builder.build()
|
15745 23606 | }
|
15746 23607 | }
|
15747 - | /// A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23608 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23609 + | /* RustType.kt:516 */
|
15748 23610 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15749 23612 | pub struct Builder {
|
23613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15750 23614 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15751 23616 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15752 23618 | }
|
23619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15753 23620 | impl Builder {
|
23621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15754 23622 | #[allow(missing_docs)] // documentation missing in model
|
23623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15755 23624 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
15756 - | self.foo = input;
|
23625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23626 + | self.foo =
|
23627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15757 23629 | self
|
23630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15758 23631 | }
|
23632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15759 23633 | #[allow(missing_docs)] // documentation missing in model
|
23634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15760 23635 | pub fn blob(mut self, input: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
15761 - | self.blob = Some(input);
|
23636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23637 + | self.blob =
|
23638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
23639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
23641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15762 23642 | self
|
23643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15763 23644 | }
|
15764 - | /// Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23645 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
23646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15765 23647 | pub fn build(self) -> crate::input::StreamingTraitsRequireLengthInput {
|
15766 23648 | self.build_enforcing_required_and_enum_traits()
|
15767 23649 | }
|
23650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15768 23651 | fn build_enforcing_required_and_enum_traits(
|
15769 23652 | self,
|
15770 23653 | ) -> crate::input::StreamingTraitsRequireLengthInput {
|
23654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15771 23655 | crate::input::StreamingTraitsRequireLengthInput {
|
23656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15772 23657 | foo: self.foo,
|
15773 - | blob: self.blob.unwrap_or_default(),
|
23658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
23659 + | blob: self
|
23660 + | .blob
|
23661 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23662 + | .unwrap_or_default(),
|
23663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15774 23664 | }
|
23665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15775 23666 | }
|
23667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15776 23668 | }
|
23669 + |
|
23670 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15777 23671 | }
|
15778 - | /// See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23672 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
15779 23673 | pub(crate) mod streaming_traits_input_internal {
|
15780 23674 |
|
23675 + | /* ServerBuilderGenerator.kt:461 */
|
15781 23676 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsInput {
|
15782 23677 | fn from(builder: Builder) -> Self {
|
15783 23678 | builder.build()
|
15784 23679 | }
|
15785 23680 | }
|
15786 - | /// A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23681 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23682 + | /* RustType.kt:516 */
|
15787 23683 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23684 + | /* ServerBuilderGenerator.kt:211 */
|
15788 23685 | pub(crate) struct Builder {
|
23686 + | /* ServerBuilderGenerator.kt:308 */
|
15789 23687 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23688 + | /* ServerBuilderGenerator.kt:308 */
|
15790 23689 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23690 + | /* ServerBuilderGenerator.kt:211 */
|
15791 23691 | }
|
23692 + | /* ServerBuilderGenerator.kt:215 */
|
15792 23693 | impl Builder {
|
23694 + | /* ServerBuilderGenerator.kt:426 */
|
15793 23695 | #[allow(missing_docs)] // documentation missing in model
|
23696 + | /* ServerBuilderGenerator.kt:428 */
|
15794 23697 | pub(crate) fn set_foo(
|
15795 23698 | mut self,
|
15796 23699 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15797 23700 | ) -> Self {
|
23701 + | /* ServerBuilderGenerator.kt:429 */
|
15798 23702 | self.foo = input.map(|v| v.into());
|
15799 23703 | self
|
23704 + | /* ServerBuilderGenerator.kt:428 */
|
15800 23705 | }
|
23706 + | /* ServerBuilderGenerator.kt:426 */
|
15801 23707 | #[allow(missing_docs)] // documentation missing in model
|
23708 + | /* ServerBuilderGenerator.kt:428 */
|
15802 23709 | pub(crate) fn set_blob(
|
15803 23710 | mut self,
|
15804 23711 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::ByteStream>,
|
15805 23712 | ) -> Self {
|
23713 + | /* ServerBuilderGenerator.kt:429 */
|
15806 23714 | self.blob = Some(input.into());
|
15807 23715 | self
|
23716 + | /* ServerBuilderGenerator.kt:428 */
|
15808 23717 | }
|
15809 - | /// Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23718 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23719 + | /* ServerBuilderGenerator.kt:271 */
|
15810 23720 | pub fn build(self) -> crate::input::StreamingTraitsInput {
|
15811 23721 | self.build_enforcing_all_constraints()
|
15812 23722 | }
|
23723 + | /* ServerBuilderGenerator.kt:283 */
|
15813 23724 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingTraitsInput {
|
23725 + | /* ServerBuilderGenerator.kt:542 */
|
15814 23726 | crate::input::StreamingTraitsInput {
|
23727 + | /* ServerBuilderGenerator.kt:546 */
|
15815 23728 | foo: self.foo,
|
15816 - | blob: self.blob.unwrap_or_default(),
|
23729 + | /* ServerBuilderGenerator.kt:546 */
|
23730 + | blob: self
|
23731 + | .blob
|
23732 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23733 + | .unwrap_or_default(),
|
23734 + | /* ServerBuilderGenerator.kt:542 */
|
15817 23735 | }
|
23736 + | /* ServerBuilderGenerator.kt:283 */
|
15818 23737 | }
|
23738 + | /* ServerBuilderGenerator.kt:215 */
|
15819 23739 | }
|
23740 + |
|
23741 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15820 23742 | }
|
15821 - | /// See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23743 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
15822 23744 | pub mod streaming_traits_input {
|
15823 23745 |
|
23746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15824 23747 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsInput {
|
15825 23748 | fn from(builder: Builder) -> Self {
|
15826 23749 | builder.build()
|
15827 23750 | }
|
15828 23751 | }
|
15829 - | /// A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23752 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23753 + | /* RustType.kt:516 */
|
15830 23754 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15831 23756 | pub struct Builder {
|
23757 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15832 23758 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
23759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15833 23760 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::ByteStream>,
|
23761 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15834 23762 | }
|
23763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15835 23764 | impl Builder {
|
23765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15836 23766 | #[allow(missing_docs)] // documentation missing in model
|
23767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15837 23768 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
15838 - | self.foo = input;
|
23769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23770 + | self.foo =
|
23771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23772 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15839 23773 | self
|
23774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15840 23775 | }
|
23776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15841 23777 | #[allow(missing_docs)] // documentation missing in model
|
23778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15842 23779 | pub fn blob(mut self, input: ::aws_smithy_http_server_python::types::ByteStream) -> Self {
|
15843 - | self.blob = Some(input);
|
23780 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23781 + | self.blob =
|
23782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
23783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
23785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15844 23786 | self
|
23787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15845 23788 | }
|
15846 - | /// Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23789 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
23790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15847 23791 | pub fn build(self) -> crate::input::StreamingTraitsInput {
|
15848 23792 | self.build_enforcing_required_and_enum_traits()
|
15849 23793 | }
|
23794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15850 23795 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::StreamingTraitsInput {
|
23796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15851 23797 | crate::input::StreamingTraitsInput {
|
23798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15852 23799 | foo: self.foo,
|
15853 - | blob: self.blob.unwrap_or_default(),
|
23800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
23801 + | blob: self
|
23802 + | .blob
|
23803 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
23804 + | .unwrap_or_default(),
|
23805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15854 23806 | }
|
23807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15855 23808 | }
|
23809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15856 23810 | }
|
23811 + |
|
23812 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15857 23813 | }
|
15858 - | /// See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23814 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
15859 23815 | pub(crate) mod http_response_code_input_internal {
|
15860 23816 |
|
23817 + | /* ServerBuilderGenerator.kt:461 */
|
15861 23818 | impl ::std::convert::From<Builder> for crate::input::HttpResponseCodeInput {
|
15862 23819 | fn from(builder: Builder) -> Self {
|
15863 23820 | builder.build()
|
15864 23821 | }
|
15865 23822 | }
|
15866 - | /// A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23823 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23824 + | /* RustType.kt:516 */
|
15867 23825 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15868 - | pub(crate) struct Builder {}
|
23826 + | /* ServerBuilderGenerator.kt:211 */
|
23827 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
23828 + | /* ServerBuilderGenerator.kt:215 */
|
15869 23829 | impl Builder {
|
15870 - | /// Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23830 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23831 + | /* ServerBuilderGenerator.kt:271 */
|
15871 23832 | pub fn build(self) -> crate::input::HttpResponseCodeInput {
|
15872 23833 | self.build_enforcing_all_constraints()
|
15873 23834 | }
|
23835 + | /* ServerBuilderGenerator.kt:283 */
|
15874 23836 | fn build_enforcing_all_constraints(self) -> crate::input::HttpResponseCodeInput {
|
15875 - | crate::input::HttpResponseCodeInput {}
|
23837 + | /* ServerBuilderGenerator.kt:542 */
|
23838 + | crate::input::HttpResponseCodeInput {
|
23839 + | /* ServerBuilderGenerator.kt:542 */}
|
23840 + | /* ServerBuilderGenerator.kt:283 */
|
15876 23841 | }
|
23842 + | /* ServerBuilderGenerator.kt:215 */
|
15877 23843 | }
|
23844 + |
|
23845 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15878 23846 | }
|
15879 - | /// See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23847 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
15880 23848 | pub mod http_response_code_input {
|
15881 23849 |
|
23850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15882 23851 | impl ::std::convert::From<Builder> for crate::input::HttpResponseCodeInput {
|
15883 23852 | fn from(builder: Builder) -> Self {
|
15884 23853 | builder.build()
|
15885 23854 | }
|
15886 23855 | }
|
15887 - | /// A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23856 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23857 + | /* RustType.kt:516 */
|
15888 23858 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15889 - | pub struct Builder {}
|
23859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
23860 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
23861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15890 23862 | impl Builder {
|
15891 - | /// Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23863 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
23864 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15892 23865 | pub fn build(self) -> crate::input::HttpResponseCodeInput {
|
15893 23866 | self.build_enforcing_required_and_enum_traits()
|
15894 23867 | }
|
23868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15895 23869 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::HttpResponseCodeInput {
|
15896 - | crate::input::HttpResponseCodeInput {}
|
23870 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
23871 + | crate::input::HttpResponseCodeInput {
|
23872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
23873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15897 23874 | }
|
23875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15898 23876 | }
|
23877 + |
|
23878 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15899 23879 | }
|
15900 - | /// See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23880 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
15901 23881 | pub(crate) mod http_payload_with_union_input_internal {
|
15902 23882 |
|
23883 + | /* ServerBuilderGenerator.kt:461 */
|
15903 23884 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithUnionInput {
|
15904 23885 | fn from(builder: Builder) -> Self {
|
15905 23886 | builder.build()
|
15906 23887 | }
|
15907 23888 | }
|
15908 - | /// A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23889 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23890 + | /* RustType.kt:516 */
|
15909 23891 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23892 + | /* ServerBuilderGenerator.kt:211 */
|
15910 23893 | pub(crate) struct Builder {
|
23894 + | /* ServerBuilderGenerator.kt:308 */
|
15911 23895 | pub(crate) nested: ::std::option::Option<crate::model::UnionPayload>,
|
23896 + | /* ServerBuilderGenerator.kt:211 */
|
15912 23897 | }
|
23898 + | /* ServerBuilderGenerator.kt:215 */
|
15913 23899 | impl Builder {
|
23900 + | /* ServerBuilderGenerator.kt:426 */
|
15914 23901 | #[allow(missing_docs)] // documentation missing in model
|
23902 + | /* ServerBuilderGenerator.kt:428 */
|
15915 23903 | pub(crate) fn set_nested(
|
15916 23904 | mut self,
|
15917 23905 | input: Option<impl ::std::convert::Into<crate::model::UnionPayload>>,
|
15918 23906 | ) -> Self {
|
23907 + | /* ServerBuilderGenerator.kt:429 */
|
15919 23908 | self.nested = input.map(|v| v.into());
|
15920 23909 | self
|
23910 + | /* ServerBuilderGenerator.kt:428 */
|
15921 23911 | }
|
15922 - | /// Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23912 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23913 + | /* ServerBuilderGenerator.kt:271 */
|
15923 23914 | pub fn build(self) -> crate::input::HttpPayloadWithUnionInput {
|
15924 23915 | self.build_enforcing_all_constraints()
|
15925 23916 | }
|
23917 + | /* ServerBuilderGenerator.kt:283 */
|
15926 23918 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithUnionInput {
|
23919 + | /* ServerBuilderGenerator.kt:542 */
|
15927 23920 | crate::input::HttpPayloadWithUnionInput {
|
23921 + | /* ServerBuilderGenerator.kt:546 */
|
15928 23922 | nested: self.nested,
|
23923 + | /* ServerBuilderGenerator.kt:542 */
|
15929 23924 | }
|
23925 + | /* ServerBuilderGenerator.kt:283 */
|
15930 23926 | }
|
23927 + | /* ServerBuilderGenerator.kt:215 */
|
15931 23928 | }
|
23929 + |
|
23930 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15932 23931 | }
|
15933 - | /// See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23932 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
15934 23933 | pub mod http_payload_with_union_input {
|
15935 23934 |
|
23935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
15936 23936 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithUnionInput {
|
15937 23937 | fn from(builder: Builder) -> Self {
|
15938 23938 | builder.build()
|
15939 23939 | }
|
15940 23940 | }
|
15941 - | /// A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23941 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23942 + | /* RustType.kt:516 */
|
15942 23943 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15943 23945 | pub struct Builder {
|
23946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
15944 23947 | pub(crate) nested: ::std::option::Option<crate::model::UnionPayload>,
|
23948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
15945 23949 | }
|
23950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15946 23951 | impl Builder {
|
23952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
15947 23953 | #[allow(missing_docs)] // documentation missing in model
|
23954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15948 23955 | pub fn nested(mut self, input: ::std::option::Option<crate::model::UnionPayload>) -> Self {
|
15949 - | self.nested = input;
|
23956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
23957 + | self.nested =
|
23958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
23959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
15950 23960 | self
|
23961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
15951 23962 | }
|
15952 - | /// Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23963 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
23964 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
15953 23965 | pub fn build(self) -> crate::input::HttpPayloadWithUnionInput {
|
15954 23966 | self.build_enforcing_required_and_enum_traits()
|
15955 23967 | }
|
23968 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15956 23969 | fn build_enforcing_required_and_enum_traits(
|
15957 23970 | self,
|
15958 23971 | ) -> crate::input::HttpPayloadWithUnionInput {
|
23972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15959 23973 | crate::input::HttpPayloadWithUnionInput {
|
23974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
15960 23975 | nested: self.nested,
|
23976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
15961 23977 | }
|
23978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
15962 23979 | }
|
23980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
15963 23981 | }
|
23982 + |
|
23983 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15964 23984 | }
|
15965 - | /// See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
23985 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
15966 23986 | pub(crate) mod http_string_payload_input_internal {
|
15967 23987 |
|
23988 + | /* ServerBuilderGenerator.kt:461 */
|
15968 23989 | impl ::std::convert::From<Builder> for crate::input::HttpStringPayloadInput {
|
15969 23990 | fn from(builder: Builder) -> Self {
|
15970 23991 | builder.build()
|
15971 23992 | }
|
15972 23993 | }
|
15973 - | /// A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
23994 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
23995 + | /* RustType.kt:516 */
|
15974 23996 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
23997 + | /* ServerBuilderGenerator.kt:211 */
|
15975 23998 | pub(crate) struct Builder {
|
23999 + | /* ServerBuilderGenerator.kt:308 */
|
15976 24000 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
24001 + | /* ServerBuilderGenerator.kt:211 */
|
15977 24002 | }
|
24003 + | /* ServerBuilderGenerator.kt:215 */
|
15978 24004 | impl Builder {
|
24005 + | /* ServerBuilderGenerator.kt:426 */
|
15979 24006 | #[allow(missing_docs)] // documentation missing in model
|
24007 + | /* ServerBuilderGenerator.kt:428 */
|
15980 24008 | pub(crate) fn set_payload(
|
15981 24009 | mut self,
|
15982 24010 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
15983 24011 | ) -> Self {
|
24012 + | /* ServerBuilderGenerator.kt:429 */
|
15984 24013 | self.payload = input.map(|v| v.into());
|
15985 24014 | self
|
24015 + | /* ServerBuilderGenerator.kt:428 */
|
15986 24016 | }
|
15987 - | /// Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24017 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24018 + | /* ServerBuilderGenerator.kt:271 */
|
15988 24019 | pub fn build(self) -> crate::input::HttpStringPayloadInput {
|
15989 24020 | self.build_enforcing_all_constraints()
|
15990 24021 | }
|
24022 + | /* ServerBuilderGenerator.kt:283 */
|
15991 24023 | fn build_enforcing_all_constraints(self) -> crate::input::HttpStringPayloadInput {
|
24024 + | /* ServerBuilderGenerator.kt:542 */
|
15992 24025 | crate::input::HttpStringPayloadInput {
|
24026 + | /* ServerBuilderGenerator.kt:546 */
|
15993 24027 | payload: self.payload,
|
24028 + | /* ServerBuilderGenerator.kt:542 */
|
15994 24029 | }
|
24030 + | /* ServerBuilderGenerator.kt:283 */
|
15995 24031 | }
|
24032 + | /* ServerBuilderGenerator.kt:215 */
|
15996 24033 | }
|
24034 + |
|
24035 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
15997 24036 | }
|
15998 - | /// See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24037 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
15999 24038 | pub mod http_string_payload_input {
|
16000 24039 |
|
24040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16001 24041 | impl ::std::convert::From<Builder> for crate::input::HttpStringPayloadInput {
|
16002 24042 | fn from(builder: Builder) -> Self {
|
16003 24043 | builder.build()
|
16004 24044 | }
|
16005 24045 | }
|
16006 - | /// A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24046 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24047 + | /* RustType.kt:516 */
|
16007 24048 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16008 24050 | pub struct Builder {
|
24051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16009 24052 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
24053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16010 24054 | }
|
24055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16011 24056 | impl Builder {
|
24057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16012 24058 | #[allow(missing_docs)] // documentation missing in model
|
24059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16013 24060 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16014 - | self.payload = input;
|
24061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24062 + | self.payload =
|
24063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16015 24065 | self
|
24066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16016 24067 | }
|
16017 - | /// Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24068 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
24069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16018 24070 | pub fn build(self) -> crate::input::HttpStringPayloadInput {
|
16019 24071 | self.build_enforcing_required_and_enum_traits()
|
16020 24072 | }
|
24073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16021 24074 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::HttpStringPayloadInput {
|
24075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16022 24076 | crate::input::HttpStringPayloadInput {
|
24077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16023 24078 | payload: self.payload,
|
24079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16024 24080 | }
|
24081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16025 24082 | }
|
24083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16026 24084 | }
|
24085 + |
|
24086 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16027 24087 | }
|
16028 - | /// See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24088 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
16029 24089 | pub(crate) mod http_enum_payload_input_internal {
|
16030 24090 |
|
24091 + | /* RustType.kt:516 */
|
16031 24092 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
16032 - | /// Holds one variant for each of the ways the builder can fail.
|
24093 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
24094 + | /* RustType.kt:516 */
|
16033 24095 | #[non_exhaustive]
|
24096 + | /* ServerBuilderConstraintViolations.kt:75 */
|
16034 24097 | #[allow(clippy::enum_variant_names)]
|
16035 24098 | pub(crate) enum ConstraintViolation {
|
16036 - | /// Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
24099 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
24100 + | /* RustType.kt:516 */
|
16037 24101 | #[doc(hidden)]
|
24102 + | /* ServerBuilderConstraintViolations.kt:164 */
|
16038 24103 | Payload(crate::model::string_enum_internal::ConstraintViolation),
|
24104 + | /* ServerBuilderConstraintViolations.kt:75 */
|
16039 24105 | }
|
24106 + | /* ServerBuilderConstraintViolations.kt:117 */
|
16040 24107 | impl ::std::fmt::Display for ConstraintViolation {
|
24108 + | /* ServerBuilderConstraintViolations.kt:118 */
|
16041 24109 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
24110 + | /* ServerBuilderConstraintViolations.kt:119 */
|
16042 24111 | match self {
|
16043 - | ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
16044 - | }
|
24112 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
24113 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
24114 + | /* ServerBuilderConstraintViolations.kt:118 */
|
16045 24115 | }
|
24116 + | /* ServerBuilderConstraintViolations.kt:117 */
|
16046 24117 | }
|
24118 + | /* ServerBuilderConstraintViolations.kt:84 */
|
16047 24119 | impl ::std::error::Error for ConstraintViolation {}
|
24120 + | /* ServerBuilderConstraintViolations.kt:171 */
|
16048 24121 | impl ConstraintViolation {
|
16049 24122 | pub(crate) fn as_validation_exception_field(
|
16050 24123 | self,
|
16051 24124 | path: ::std::string::String,
|
16052 24125 | ) -> crate::model::ValidationExceptionField {
|
16053 24126 | match self {
|
16054 24127 | ConstraintViolation::Payload(inner) => {
|
16055 24128 | inner.as_validation_exception_field(path + "/payload")
|
16056 24129 | }
|
16057 24130 | }
|
16058 24131 | }
|
16059 24132 | }
|
24133 + | /* ServerBuilderGenerator.kt:234 */
|
16060 24134 | impl ::std::convert::From<ConstraintViolation>
|
16061 24135 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
16062 24136 | {
|
16063 24137 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
16064 24138 | let first_validation_exception_field =
|
16065 24139 | constraint_violation.as_validation_exception_field("".to_owned());
|
16066 24140 | let validation_exception = crate::error::ValidationException {
|
16067 24141 | message: format!(
|
16068 24142 | "1 validation error detected. {}",
|
16069 24143 | &first_validation_exception_field.message
|
16070 24144 | ),
|
16071 24145 | field_list: Some(vec![first_validation_exception_field]),
|
16072 24146 | };
|
16073 24147 | Self::ConstraintViolation(
|
16074 24148 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
16075 24149 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
16076 24150 | )
|
16077 24151 | }
|
16078 24152 | }
|
24153 + | /* ServerBuilderGenerator.kt:244 */
|
16079 24154 | impl ::std::convert::From<Builder>
|
16080 24155 | for crate::constrained::MaybeConstrained<crate::input::HttpEnumPayloadInput>
|
16081 24156 | {
|
16082 24157 | fn from(builder: Builder) -> Self {
|
16083 24158 | Self::Unconstrained(builder)
|
16084 24159 | }
|
16085 24160 | }
|
24161 + | /* ServerBuilderGenerator.kt:446 */
|
16086 24162 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpEnumPayloadInput {
|
16087 24163 | type Error = ConstraintViolation;
|
16088 24164 |
|
16089 24165 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
16090 24166 | builder.build()
|
16091 24167 | }
|
16092 24168 | }
|
16093 - | /// A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24169 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24170 + | /* RustType.kt:516 */
|
16094 24171 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24172 + | /* ServerBuilderGenerator.kt:211 */
|
16095 24173 | pub(crate) struct Builder {
|
24174 + | /* ServerBuilderGenerator.kt:308 */
|
16096 24175 | pub(crate) payload:
|
16097 24176 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringEnum>>,
|
24177 + | /* ServerBuilderGenerator.kt:211 */
|
16098 24178 | }
|
24179 + | /* ServerBuilderGenerator.kt:215 */
|
16099 24180 | impl Builder {
|
24181 + | /* ServerBuilderGenerator.kt:426 */
|
16100 24182 | #[allow(missing_docs)] // documentation missing in model
|
24183 + | /* ServerBuilderGenerator.kt:428 */
|
16101 24184 | pub(crate) fn set_payload(
|
16102 24185 | mut self,
|
16103 24186 | input: Option<
|
16104 24187 | impl ::std::convert::Into<
|
16105 24188 | crate::constrained::MaybeConstrained<crate::model::StringEnum>,
|
16106 24189 | >,
|
16107 24190 | >,
|
16108 24191 | ) -> Self {
|
24192 + | /* ServerBuilderGenerator.kt:429 */
|
16109 24193 | self.payload = input.map(|v| v.into());
|
16110 24194 | self
|
24195 + | /* ServerBuilderGenerator.kt:428 */
|
16111 24196 | }
|
16112 - | /// Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
16113 - | ///
|
24197 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24198 + | /// /* ServerBuilderGenerator.kt:260 */
|
16114 24199 | /// The builder fails to construct a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput) if a [`ConstraintViolation`] occurs.
|
16115 24200 | ///
|
24201 + | /* ServerBuilderGenerator.kt:271 */
|
16116 24202 | pub fn build(self) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
16117 24203 | self.build_enforcing_all_constraints()
|
16118 24204 | }
|
24205 + | /* ServerBuilderGenerator.kt:283 */
|
16119 24206 | fn build_enforcing_all_constraints(
|
16120 24207 | self,
|
16121 24208 | ) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
16122 - | Ok(crate::input::HttpEnumPayloadInput {
|
24209 + | /* ServerBuilderGenerator.kt:287 */
|
24210 + | Ok(
|
24211 + | /* ServerBuilderGenerator.kt:542 */
|
24212 + | crate::input::HttpEnumPayloadInput {
|
24213 + | /* ServerBuilderGenerator.kt:546 */
|
16123 24214 | payload: self
|
16124 24215 | .payload
|
24216 + | /* ServerBuilderGenerator.kt:602 */
|
16125 24217 | .map(|v| match v {
|
16126 24218 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
16127 24219 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
16128 24220 | })
|
24221 + | /* ServerBuilderGenerator.kt:614 */
|
16129 24222 | .map(|res| res.map_err(ConstraintViolation::Payload))
|
16130 24223 | .transpose()?,
|
16131 - | })
|
24224 + | /* ServerBuilderGenerator.kt:542 */
|
24225 + | }, /* ServerBuilderGenerator.kt:287 */
|
24226 + | )
|
24227 + | /* ServerBuilderGenerator.kt:283 */
|
16132 24228 | }
|
24229 + | /* ServerBuilderGenerator.kt:215 */
|
16133 24230 | }
|
24231 + |
|
24232 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16134 24233 | }
|
16135 - | /// See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24234 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
16136 24235 | pub mod http_enum_payload_input {
|
16137 24236 |
|
24237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16138 24238 | impl ::std::convert::From<Builder> for crate::input::HttpEnumPayloadInput {
|
16139 24239 | fn from(builder: Builder) -> Self {
|
16140 24240 | builder.build()
|
16141 24241 | }
|
16142 24242 | }
|
16143 - | /// A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24243 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24244 + | /* RustType.kt:516 */
|
16144 24245 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16145 24247 | pub struct Builder {
|
24248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16146 24249 | pub(crate) payload: ::std::option::Option<crate::model::StringEnum>,
|
24250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16147 24251 | }
|
24252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16148 24253 | impl Builder {
|
24254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16149 24255 | #[allow(missing_docs)] // documentation missing in model
|
24256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16150 24257 | pub fn payload(mut self, input: ::std::option::Option<crate::model::StringEnum>) -> Self {
|
16151 - | self.payload = input;
|
24258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24259 + | self.payload =
|
24260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16152 24262 | self
|
24263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16153 24264 | }
|
16154 - | /// Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24265 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
24266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16155 24267 | pub fn build(self) -> crate::input::HttpEnumPayloadInput {
|
16156 24268 | self.build_enforcing_required_and_enum_traits()
|
16157 24269 | }
|
24270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16158 24271 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::HttpEnumPayloadInput {
|
24272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16159 24273 | crate::input::HttpEnumPayloadInput {
|
24274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16160 24275 | payload: self.payload,
|
24276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16161 24277 | }
|
24278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16162 24279 | }
|
24280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16163 24281 | }
|
24282 + |
|
24283 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16164 24284 | }
|
16165 - | /// See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24285 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
16166 24286 | pub(crate) mod http_payload_with_structure_input_internal {
|
16167 24287 |
|
24288 + | /* ServerBuilderGenerator.kt:461 */
|
16168 24289 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithStructureInput {
|
16169 24290 | fn from(builder: Builder) -> Self {
|
16170 24291 | builder.build()
|
16171 24292 | }
|
16172 24293 | }
|
16173 - | /// A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24294 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24295 + | /* RustType.kt:516 */
|
16174 24296 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24297 + | /* ServerBuilderGenerator.kt:211 */
|
16175 24298 | pub(crate) struct Builder {
|
24299 + | /* ServerBuilderGenerator.kt:308 */
|
16176 24300 | pub(crate) nested: ::std::option::Option<crate::model::NestedPayload>,
|
24301 + | /* ServerBuilderGenerator.kt:211 */
|
16177 24302 | }
|
24303 + | /* ServerBuilderGenerator.kt:215 */
|
16178 24304 | impl Builder {
|
24305 + | /* ServerBuilderGenerator.kt:426 */
|
16179 24306 | #[allow(missing_docs)] // documentation missing in model
|
24307 + | /* ServerBuilderGenerator.kt:428 */
|
16180 24308 | pub(crate) fn set_nested(
|
16181 24309 | mut self,
|
16182 24310 | input: Option<impl ::std::convert::Into<crate::model::NestedPayload>>,
|
16183 24311 | ) -> Self {
|
24312 + | /* ServerBuilderGenerator.kt:429 */
|
16184 24313 | self.nested = input.map(|v| v.into());
|
16185 24314 | self
|
24315 + | /* ServerBuilderGenerator.kt:428 */
|
16186 24316 | }
|
16187 - | /// Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24317 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24318 + | /* ServerBuilderGenerator.kt:271 */
|
16188 24319 | pub fn build(self) -> crate::input::HttpPayloadWithStructureInput {
|
16189 24320 | self.build_enforcing_all_constraints()
|
16190 24321 | }
|
24322 + | /* ServerBuilderGenerator.kt:283 */
|
16191 24323 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithStructureInput {
|
24324 + | /* ServerBuilderGenerator.kt:542 */
|
16192 24325 | crate::input::HttpPayloadWithStructureInput {
|
24326 + | /* ServerBuilderGenerator.kt:546 */
|
16193 24327 | nested: self.nested,
|
24328 + | /* ServerBuilderGenerator.kt:542 */
|
16194 24329 | }
|
24330 + | /* ServerBuilderGenerator.kt:283 */
|
16195 24331 | }
|
24332 + | /* ServerBuilderGenerator.kt:215 */
|
16196 24333 | }
|
24334 + |
|
24335 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16197 24336 | }
|
16198 - | /// See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24337 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
16199 24338 | pub mod http_payload_with_structure_input {
|
16200 24339 |
|
24340 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16201 24341 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithStructureInput {
|
16202 24342 | fn from(builder: Builder) -> Self {
|
16203 24343 | builder.build()
|
16204 24344 | }
|
16205 24345 | }
|
16206 - | /// A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24346 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24347 + | /* RustType.kt:516 */
|
16207 24348 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24349 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16208 24350 | pub struct Builder {
|
24351 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16209 24352 | pub(crate) nested: ::std::option::Option<crate::model::NestedPayload>,
|
24353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16210 24354 | }
|
24355 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16211 24356 | impl Builder {
|
24357 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16212 24358 | #[allow(missing_docs)] // documentation missing in model
|
24359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16213 24360 | pub fn nested(mut self, input: ::std::option::Option<crate::model::NestedPayload>) -> Self {
|
16214 - | self.nested = input;
|
24361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24362 + | self.nested =
|
24363 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24364 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16215 24365 | self
|
24366 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16216 24367 | }
|
16217 - | /// Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24368 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
24369 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16218 24370 | pub fn build(self) -> crate::input::HttpPayloadWithStructureInput {
|
16219 24371 | self.build_enforcing_required_and_enum_traits()
|
16220 24372 | }
|
24373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16221 24374 | fn build_enforcing_required_and_enum_traits(
|
16222 24375 | self,
|
16223 24376 | ) -> crate::input::HttpPayloadWithStructureInput {
|
24377 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16224 24378 | crate::input::HttpPayloadWithStructureInput {
|
24379 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16225 24380 | nested: self.nested,
|
24381 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16226 24382 | }
|
24383 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16227 24384 | }
|
24385 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16228 24386 | }
|
24387 + |
|
24388 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16229 24389 | }
|
16230 - | /// See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24390 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
16231 24391 | pub(crate) mod http_payload_traits_with_media_type_input_internal {
|
16232 24392 |
|
24393 + | /* ServerBuilderGenerator.kt:461 */
|
16233 24394 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
16234 24395 | fn from(builder: Builder) -> Self {
|
16235 24396 | builder.build()
|
16236 24397 | }
|
16237 24398 | }
|
16238 - | /// A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24399 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24400 + | /* RustType.kt:516 */
|
16239 24401 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24402 + | /* ServerBuilderGenerator.kt:211 */
|
16240 24403 | pub(crate) struct Builder {
|
24404 + | /* ServerBuilderGenerator.kt:308 */
|
16241 24405 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24406 + | /* ServerBuilderGenerator.kt:308 */
|
16242 24407 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
24408 + | /* ServerBuilderGenerator.kt:211 */
|
16243 24409 | }
|
24410 + | /* ServerBuilderGenerator.kt:215 */
|
16244 24411 | impl Builder {
|
24412 + | /* ServerBuilderGenerator.kt:426 */
|
16245 24413 | #[allow(missing_docs)] // documentation missing in model
|
24414 + | /* ServerBuilderGenerator.kt:428 */
|
16246 24415 | pub(crate) fn set_foo(
|
16247 24416 | mut self,
|
16248 24417 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16249 24418 | ) -> Self {
|
24419 + | /* ServerBuilderGenerator.kt:429 */
|
16250 24420 | self.foo = input.map(|v| v.into());
|
16251 24421 | self
|
24422 + | /* ServerBuilderGenerator.kt:428 */
|
16252 24423 | }
|
24424 + | /* ServerBuilderGenerator.kt:426 */
|
16253 24425 | #[allow(missing_docs)] // documentation missing in model
|
24426 + | /* ServerBuilderGenerator.kt:428 */
|
16254 24427 | pub(crate) fn set_blob(
|
16255 24428 | mut self,
|
16256 24429 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
16257 24430 | ) -> Self {
|
24431 + | /* ServerBuilderGenerator.kt:429 */
|
16258 24432 | self.blob = input.map(|v| v.into());
|
16259 24433 | self
|
24434 + | /* ServerBuilderGenerator.kt:428 */
|
16260 24435 | }
|
16261 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24436 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24437 + | /* ServerBuilderGenerator.kt:271 */
|
16262 24438 | pub fn build(self) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
16263 24439 | self.build_enforcing_all_constraints()
|
16264 24440 | }
|
24441 + | /* ServerBuilderGenerator.kt:283 */
|
16265 24442 | fn build_enforcing_all_constraints(
|
16266 24443 | self,
|
16267 24444 | ) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
24445 + | /* ServerBuilderGenerator.kt:542 */
|
16268 24446 | crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
24447 + | /* ServerBuilderGenerator.kt:546 */
|
16269 24448 | foo: self.foo,
|
24449 + | /* ServerBuilderGenerator.kt:546 */
|
16270 24450 | blob: self.blob,
|
24451 + | /* ServerBuilderGenerator.kt:542 */
|
16271 24452 | }
|
24453 + | /* ServerBuilderGenerator.kt:283 */
|
16272 24454 | }
|
24455 + | /* ServerBuilderGenerator.kt:215 */
|
16273 24456 | }
|
24457 + |
|
24458 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16274 24459 | }
|
16275 - | /// See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24460 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
16276 24461 | pub mod http_payload_traits_with_media_type_input {
|
16277 24462 |
|
24463 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16278 24464 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
16279 24465 | fn from(builder: Builder) -> Self {
|
16280 24466 | builder.build()
|
16281 24467 | }
|
16282 24468 | }
|
16283 - | /// A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24469 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24470 + | /* RustType.kt:516 */
|
16284 24471 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16285 24473 | pub struct Builder {
|
24474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16286 24475 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16287 24477 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
24478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16288 24479 | }
|
24480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16289 24481 | impl Builder {
|
24482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16290 24483 | #[allow(missing_docs)] // documentation missing in model
|
24484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16291 24485 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16292 - | self.foo = input;
|
24486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24487 + | self.foo =
|
24488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16293 24490 | self
|
24491 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16294 24492 | }
|
24493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16295 24494 | #[allow(missing_docs)] // documentation missing in model
|
24495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16296 24496 | pub fn blob(
|
16297 24497 | mut self,
|
16298 24498 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
16299 24499 | ) -> Self {
|
16300 - | self.blob = input;
|
24500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24501 + | self.blob =
|
24502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16301 24504 | self
|
24505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16302 24506 | }
|
16303 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24507 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
24508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16304 24509 | pub fn build(self) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
16305 24510 | self.build_enforcing_required_and_enum_traits()
|
16306 24511 | }
|
24512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16307 24513 | fn build_enforcing_required_and_enum_traits(
|
16308 24514 | self,
|
16309 24515 | ) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
24516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16310 24517 | crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
24518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16311 24519 | foo: self.foo,
|
24520 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16312 24521 | blob: self.blob,
|
24522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16313 24523 | }
|
24524 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16314 24525 | }
|
24526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16315 24527 | }
|
24528 + |
|
24529 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16316 24530 | }
|
16317 - | /// See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24531 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
16318 24532 | pub(crate) mod http_payload_traits_input_internal {
|
16319 24533 |
|
24534 + | /* ServerBuilderGenerator.kt:461 */
|
16320 24535 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsInput {
|
16321 24536 | fn from(builder: Builder) -> Self {
|
16322 24537 | builder.build()
|
16323 24538 | }
|
16324 24539 | }
|
16325 - | /// A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24540 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24541 + | /* RustType.kt:516 */
|
16326 24542 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24543 + | /* ServerBuilderGenerator.kt:211 */
|
16327 24544 | pub(crate) struct Builder {
|
24545 + | /* ServerBuilderGenerator.kt:308 */
|
16328 24546 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24547 + | /* ServerBuilderGenerator.kt:308 */
|
16329 24548 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
24549 + | /* ServerBuilderGenerator.kt:211 */
|
16330 24550 | }
|
24551 + | /* ServerBuilderGenerator.kt:215 */
|
16331 24552 | impl Builder {
|
24553 + | /* ServerBuilderGenerator.kt:426 */
|
16332 24554 | #[allow(missing_docs)] // documentation missing in model
|
24555 + | /* ServerBuilderGenerator.kt:428 */
|
16333 24556 | pub(crate) fn set_foo(
|
16334 24557 | mut self,
|
16335 24558 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16336 24559 | ) -> Self {
|
24560 + | /* ServerBuilderGenerator.kt:429 */
|
16337 24561 | self.foo = input.map(|v| v.into());
|
16338 24562 | self
|
24563 + | /* ServerBuilderGenerator.kt:428 */
|
16339 24564 | }
|
24565 + | /* ServerBuilderGenerator.kt:426 */
|
16340 24566 | #[allow(missing_docs)] // documentation missing in model
|
24567 + | /* ServerBuilderGenerator.kt:428 */
|
16341 24568 | pub(crate) fn set_blob(
|
16342 24569 | mut self,
|
16343 24570 | input: Option<impl ::std::convert::Into<::aws_smithy_http_server_python::types::Blob>>,
|
16344 24571 | ) -> Self {
|
24572 + | /* ServerBuilderGenerator.kt:429 */
|
16345 24573 | self.blob = input.map(|v| v.into());
|
16346 24574 | self
|
24575 + | /* ServerBuilderGenerator.kt:428 */
|
16347 24576 | }
|
16348 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24577 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24578 + | /* ServerBuilderGenerator.kt:271 */
|
16349 24579 | pub fn build(self) -> crate::input::HttpPayloadTraitsInput {
|
16350 24580 | self.build_enforcing_all_constraints()
|
16351 24581 | }
|
24582 + | /* ServerBuilderGenerator.kt:283 */
|
16352 24583 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadTraitsInput {
|
24584 + | /* ServerBuilderGenerator.kt:542 */
|
16353 24585 | crate::input::HttpPayloadTraitsInput {
|
24586 + | /* ServerBuilderGenerator.kt:546 */
|
16354 24587 | foo: self.foo,
|
24588 + | /* ServerBuilderGenerator.kt:546 */
|
16355 24589 | blob: self.blob,
|
24590 + | /* ServerBuilderGenerator.kt:542 */
|
16356 24591 | }
|
24592 + | /* ServerBuilderGenerator.kt:283 */
|
16357 24593 | }
|
24594 + | /* ServerBuilderGenerator.kt:215 */
|
16358 24595 | }
|
24596 + |
|
24597 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16359 24598 | }
|
16360 - | /// See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24599 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
16361 24600 | pub mod http_payload_traits_input {
|
16362 24601 |
|
24602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16363 24603 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsInput {
|
16364 24604 | fn from(builder: Builder) -> Self {
|
16365 24605 | builder.build()
|
16366 24606 | }
|
16367 24607 | }
|
16368 - | /// A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24608 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24609 + | /* RustType.kt:516 */
|
16369 24610 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16370 24612 | pub struct Builder {
|
24613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16371 24614 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16372 24616 | pub(crate) blob: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
24617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16373 24618 | }
|
24619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16374 24620 | impl Builder {
|
24621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16375 24622 | #[allow(missing_docs)] // documentation missing in model
|
24623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16376 24624 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16377 - | self.foo = input;
|
24625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24626 + | self.foo =
|
24627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16378 24629 | self
|
24630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16379 24631 | }
|
24632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16380 24633 | #[allow(missing_docs)] // documentation missing in model
|
24634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16381 24635 | pub fn blob(
|
16382 24636 | mut self,
|
16383 24637 | input: ::std::option::Option<::aws_smithy_http_server_python::types::Blob>,
|
16384 24638 | ) -> Self {
|
16385 - | self.blob = input;
|
24639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24640 + | self.blob =
|
24641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16386 24643 | self
|
24644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16387 24645 | }
|
16388 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24646 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
24647 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16389 24648 | pub fn build(self) -> crate::input::HttpPayloadTraitsInput {
|
16390 24649 | self.build_enforcing_required_and_enum_traits()
|
16391 24650 | }
|
24651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16392 24652 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::HttpPayloadTraitsInput {
|
24653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16393 24654 | crate::input::HttpPayloadTraitsInput {
|
24655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16394 24656 | foo: self.foo,
|
24657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16395 24658 | blob: self.blob,
|
24659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16396 24660 | }
|
24661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16397 24662 | }
|
24663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16398 24664 | }
|
24665 + |
|
24666 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16399 24667 | }
|
16400 - | /// See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24668 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
16401 24669 | pub(crate) mod http_prefix_headers_in_response_input_internal {
|
16402 24670 |
|
24671 + | /* ServerBuilderGenerator.kt:461 */
|
16403 24672 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInResponseInput {
|
16404 24673 | fn from(builder: Builder) -> Self {
|
16405 24674 | builder.build()
|
16406 24675 | }
|
16407 24676 | }
|
16408 - | /// A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24677 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24678 + | /* RustType.kt:516 */
|
16409 24679 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16410 - | pub(crate) struct Builder {}
|
24680 + | /* ServerBuilderGenerator.kt:211 */
|
24681 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
24682 + | /* ServerBuilderGenerator.kt:215 */
|
16411 24683 | impl Builder {
|
16412 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24684 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24685 + | /* ServerBuilderGenerator.kt:271 */
|
16413 24686 | pub fn build(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
16414 24687 | self.build_enforcing_all_constraints()
|
16415 24688 | }
|
24689 + | /* ServerBuilderGenerator.kt:283 */
|
16416 24690 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
16417 - | crate::input::HttpPrefixHeadersInResponseInput {}
|
24691 + | /* ServerBuilderGenerator.kt:542 */
|
24692 + | crate::input::HttpPrefixHeadersInResponseInput {
|
24693 + | /* ServerBuilderGenerator.kt:542 */}
|
24694 + | /* ServerBuilderGenerator.kt:283 */
|
16418 24695 | }
|
24696 + | /* ServerBuilderGenerator.kt:215 */
|
16419 24697 | }
|
24698 + |
|
24699 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16420 24700 | }
|
16421 - | /// See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24701 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
16422 24702 | pub mod http_prefix_headers_in_response_input {
|
16423 24703 |
|
24704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16424 24705 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInResponseInput {
|
16425 24706 | fn from(builder: Builder) -> Self {
|
16426 24707 | builder.build()
|
16427 24708 | }
|
16428 24709 | }
|
16429 - | /// A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24710 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24711 + | /* RustType.kt:516 */
|
16430 24712 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16431 - | pub struct Builder {}
|
24713 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
24714 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
24715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16432 24716 | impl Builder {
|
16433 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24717 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
24718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16434 24719 | pub fn build(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
16435 24720 | self.build_enforcing_required_and_enum_traits()
|
16436 24721 | }
|
24722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16437 24723 | fn build_enforcing_required_and_enum_traits(
|
16438 24724 | self,
|
16439 24725 | ) -> crate::input::HttpPrefixHeadersInResponseInput {
|
16440 - | crate::input::HttpPrefixHeadersInResponseInput {}
|
24726 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
24727 + | crate::input::HttpPrefixHeadersInResponseInput {
|
24728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
24729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16441 24730 | }
|
24731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16442 24732 | }
|
24733 + |
|
24734 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16443 24735 | }
|
16444 - | /// See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24736 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
16445 24737 | pub(crate) mod http_prefix_headers_input_internal {
|
16446 24738 |
|
24739 + | /* ServerBuilderGenerator.kt:461 */
|
16447 24740 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInput {
|
16448 24741 | fn from(builder: Builder) -> Self {
|
16449 24742 | builder.build()
|
16450 24743 | }
|
16451 24744 | }
|
16452 - | /// A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24745 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24746 + | /* RustType.kt:516 */
|
16453 24747 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24748 + | /* ServerBuilderGenerator.kt:211 */
|
16454 24749 | pub(crate) struct Builder {
|
24750 + | /* ServerBuilderGenerator.kt:308 */
|
16455 24751 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24752 + | /* ServerBuilderGenerator.kt:308 */
|
16456 24753 | pub(crate) foo_map: ::std::option::Option<
|
16457 24754 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16458 24755 | >,
|
24756 + | /* ServerBuilderGenerator.kt:211 */
|
16459 24757 | }
|
24758 + | /* ServerBuilderGenerator.kt:215 */
|
16460 24759 | impl Builder {
|
24760 + | /* ServerBuilderGenerator.kt:426 */
|
16461 24761 | #[allow(missing_docs)] // documentation missing in model
|
24762 + | /* ServerBuilderGenerator.kt:428 */
|
16462 24763 | pub(crate) fn set_foo(
|
16463 24764 | mut self,
|
16464 24765 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16465 24766 | ) -> Self {
|
24767 + | /* ServerBuilderGenerator.kt:429 */
|
16466 24768 | self.foo = input.map(|v| v.into());
|
16467 24769 | self
|
24770 + | /* ServerBuilderGenerator.kt:428 */
|
16468 24771 | }
|
24772 + | /* ServerBuilderGenerator.kt:426 */
|
16469 24773 | #[allow(missing_docs)] // documentation missing in model
|
24774 + | /* ServerBuilderGenerator.kt:428 */
|
16470 24775 | pub(crate) fn set_foo_map(
|
16471 24776 | mut self,
|
16472 24777 | input: Option<
|
16473 24778 | impl ::std::convert::Into<
|
16474 24779 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16475 24780 | >,
|
16476 24781 | >,
|
16477 24782 | ) -> Self {
|
24783 + | /* ServerBuilderGenerator.kt:429 */
|
16478 24784 | self.foo_map = input.map(|v| v.into());
|
16479 24785 | self
|
24786 + | /* ServerBuilderGenerator.kt:428 */
|
16480 24787 | }
|
16481 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24788 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24789 + | /* ServerBuilderGenerator.kt:271 */
|
16482 24790 | pub fn build(self) -> crate::input::HttpPrefixHeadersInput {
|
16483 24791 | self.build_enforcing_all_constraints()
|
16484 24792 | }
|
24793 + | /* ServerBuilderGenerator.kt:283 */
|
16485 24794 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInput {
|
24795 + | /* ServerBuilderGenerator.kt:542 */
|
16486 24796 | crate::input::HttpPrefixHeadersInput {
|
24797 + | /* ServerBuilderGenerator.kt:546 */
|
16487 24798 | foo: self.foo,
|
24799 + | /* ServerBuilderGenerator.kt:546 */
|
16488 24800 | foo_map: self.foo_map,
|
24801 + | /* ServerBuilderGenerator.kt:542 */
|
16489 24802 | }
|
24803 + | /* ServerBuilderGenerator.kt:283 */
|
16490 24804 | }
|
24805 + | /* ServerBuilderGenerator.kt:215 */
|
16491 24806 | }
|
24807 + |
|
24808 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16492 24809 | }
|
16493 - | /// See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24810 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
16494 24811 | pub mod http_prefix_headers_input {
|
16495 24812 |
|
24813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16496 24814 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInput {
|
16497 24815 | fn from(builder: Builder) -> Self {
|
16498 24816 | builder.build()
|
16499 24817 | }
|
16500 24818 | }
|
16501 - | /// A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24819 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24820 + | /* RustType.kt:516 */
|
16502 24821 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24822 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16503 24823 | pub struct Builder {
|
24824 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16504 24825 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
24826 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16505 24827 | pub(crate) foo_map: ::std::option::Option<
|
16506 24828 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16507 24829 | >,
|
24830 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16508 24831 | }
|
24832 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16509 24833 | impl Builder {
|
24834 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16510 24835 | #[allow(missing_docs)] // documentation missing in model
|
24836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16511 24837 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16512 - | self.foo = input;
|
24838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24839 + | self.foo =
|
24840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16513 24842 | self
|
24843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16514 24844 | }
|
24845 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16515 24846 | #[allow(missing_docs)] // documentation missing in model
|
24847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16516 24848 | pub fn foo_map(
|
16517 24849 | mut self,
|
16518 24850 | input: ::std::option::Option<
|
16519 24851 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16520 24852 | >,
|
16521 24853 | ) -> Self {
|
16522 - | self.foo_map = input;
|
24854 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24855 + | self.foo_map =
|
24856 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16523 24858 | self
|
24859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16524 24860 | }
|
16525 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24861 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
24862 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16526 24863 | pub fn build(self) -> crate::input::HttpPrefixHeadersInput {
|
16527 24864 | self.build_enforcing_required_and_enum_traits()
|
16528 24865 | }
|
24866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16529 24867 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::HttpPrefixHeadersInput {
|
24868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16530 24869 | crate::input::HttpPrefixHeadersInput {
|
24870 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16531 24871 | foo: self.foo,
|
24872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16532 24873 | foo_map: self.foo_map,
|
24874 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16533 24875 | }
|
24876 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16534 24877 | }
|
24878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16535 24879 | }
|
24880 + |
|
24881 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16536 24882 | }
|
16537 - | /// See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24883 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
16538 24884 | pub(crate) mod query_params_as_string_list_map_input_internal {
|
16539 24885 |
|
24886 + | /* ServerBuilderGenerator.kt:461 */
|
16540 24887 | impl ::std::convert::From<Builder> for crate::input::QueryParamsAsStringListMapInput {
|
16541 24888 | fn from(builder: Builder) -> Self {
|
16542 24889 | builder.build()
|
16543 24890 | }
|
16544 24891 | }
|
16545 - | /// A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24892 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24893 + | /* RustType.kt:516 */
|
16546 24894 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24895 + | /* ServerBuilderGenerator.kt:211 */
|
16547 24896 | pub(crate) struct Builder {
|
24897 + | /* ServerBuilderGenerator.kt:308 */
|
16548 24898 | pub(crate) qux: ::std::option::Option<::std::string::String>,
|
24899 + | /* ServerBuilderGenerator.kt:308 */
|
16549 24900 | pub(crate) foo: ::std::option::Option<
|
16550 24901 | ::std::collections::HashMap<
|
16551 24902 | ::std::string::String,
|
16552 24903 | ::std::vec::Vec<::std::string::String>,
|
16553 24904 | >,
|
16554 24905 | >,
|
24906 + | /* ServerBuilderGenerator.kt:211 */
|
16555 24907 | }
|
24908 + | /* ServerBuilderGenerator.kt:215 */
|
16556 24909 | impl Builder {
|
24910 + | /* ServerBuilderGenerator.kt:426 */
|
16557 24911 | #[allow(missing_docs)] // documentation missing in model
|
24912 + | /* ServerBuilderGenerator.kt:428 */
|
16558 24913 | pub(crate) fn set_qux(
|
16559 24914 | mut self,
|
16560 24915 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16561 24916 | ) -> Self {
|
24917 + | /* ServerBuilderGenerator.kt:429 */
|
16562 24918 | self.qux = input.map(|v| v.into());
|
16563 24919 | self
|
24920 + | /* ServerBuilderGenerator.kt:428 */
|
16564 24921 | }
|
24922 + | /* ServerBuilderGenerator.kt:426 */
|
16565 24923 | #[allow(missing_docs)] // documentation missing in model
|
24924 + | /* ServerBuilderGenerator.kt:428 */
|
16566 24925 | pub(crate) fn set_foo(
|
16567 24926 | mut self,
|
16568 24927 | input: Option<
|
16569 24928 | impl ::std::convert::Into<
|
16570 24929 | ::std::collections::HashMap<
|
16571 24930 | ::std::string::String,
|
16572 24931 | ::std::vec::Vec<::std::string::String>,
|
16573 24932 | >,
|
16574 24933 | >,
|
16575 24934 | >,
|
16576 24935 | ) -> Self {
|
24936 + | /* ServerBuilderGenerator.kt:429 */
|
16577 24937 | self.foo = input.map(|v| v.into());
|
16578 24938 | self
|
24939 + | /* ServerBuilderGenerator.kt:428 */
|
16579 24940 | }
|
16580 - | /// Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24941 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24942 + | /* ServerBuilderGenerator.kt:271 */
|
16581 24943 | pub fn build(self) -> crate::input::QueryParamsAsStringListMapInput {
|
16582 24944 | self.build_enforcing_all_constraints()
|
16583 24945 | }
|
24946 + | /* ServerBuilderGenerator.kt:283 */
|
16584 24947 | fn build_enforcing_all_constraints(self) -> crate::input::QueryParamsAsStringListMapInput {
|
24948 + | /* ServerBuilderGenerator.kt:542 */
|
16585 24949 | crate::input::QueryParamsAsStringListMapInput {
|
24950 + | /* ServerBuilderGenerator.kt:546 */
|
16586 24951 | qux: self.qux,
|
24952 + | /* ServerBuilderGenerator.kt:546 */
|
16587 24953 | foo: self.foo,
|
24954 + | /* ServerBuilderGenerator.kt:542 */
|
16588 24955 | }
|
24956 + | /* ServerBuilderGenerator.kt:283 */
|
16589 24957 | }
|
24958 + | /* ServerBuilderGenerator.kt:215 */
|
16590 24959 | }
|
24960 + |
|
24961 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16591 24962 | }
|
16592 - | /// See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24963 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
16593 24964 | pub mod query_params_as_string_list_map_input {
|
16594 24965 |
|
24966 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16595 24967 | impl ::std::convert::From<Builder> for crate::input::QueryParamsAsStringListMapInput {
|
16596 24968 | fn from(builder: Builder) -> Self {
|
16597 24969 | builder.build()
|
16598 24970 | }
|
16599 24971 | }
|
16600 - | /// A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24972 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
24973 + | /* RustType.kt:516 */
|
16601 24974 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
24975 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16602 24976 | pub struct Builder {
|
24977 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16603 24978 | pub(crate) qux: ::std::option::Option<::std::string::String>,
|
24979 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16604 24980 | pub(crate) foo: ::std::option::Option<
|
16605 24981 | ::std::collections::HashMap<
|
16606 24982 | ::std::string::String,
|
16607 24983 | ::std::vec::Vec<::std::string::String>,
|
16608 24984 | >,
|
16609 24985 | >,
|
24986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16610 24987 | }
|
24988 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16611 24989 | impl Builder {
|
24990 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16612 24991 | #[allow(missing_docs)] // documentation missing in model
|
24992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16613 24993 | pub fn qux(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16614 - | self.qux = input;
|
24994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
24995 + | self.qux =
|
24996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
24997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16615 24998 | self
|
24999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16616 25000 | }
|
25001 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16617 25002 | #[allow(missing_docs)] // documentation missing in model
|
25003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16618 25004 | pub fn foo(
|
16619 25005 | mut self,
|
16620 25006 | input: ::std::option::Option<
|
16621 25007 | ::std::collections::HashMap<
|
16622 25008 | ::std::string::String,
|
16623 25009 | ::std::vec::Vec<::std::string::String>,
|
16624 25010 | >,
|
16625 25011 | >,
|
16626 25012 | ) -> Self {
|
16627 - | self.foo = input;
|
25013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25014 + | self.foo =
|
25015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16628 25017 | self
|
25018 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16629 25019 | }
|
16630 - | /// Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
25020 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
25021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16631 25022 | pub fn build(self) -> crate::input::QueryParamsAsStringListMapInput {
|
16632 25023 | self.build_enforcing_required_and_enum_traits()
|
16633 25024 | }
|
25025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16634 25026 | fn build_enforcing_required_and_enum_traits(
|
16635 25027 | self,
|
16636 25028 | ) -> crate::input::QueryParamsAsStringListMapInput {
|
25029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16637 25030 | crate::input::QueryParamsAsStringListMapInput {
|
25031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16638 25032 | qux: self.qux,
|
25033 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16639 25034 | foo: self.foo,
|
25035 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16640 25036 | }
|
25037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16641 25038 | }
|
25039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16642 25040 | }
|
25041 + |
|
25042 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16643 25043 | }
|
16644 - | /// See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25044 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
16645 25045 | pub(crate) mod query_precedence_input_internal {
|
16646 25046 |
|
25047 + | /* ServerBuilderGenerator.kt:461 */
|
16647 25048 | impl ::std::convert::From<Builder> for crate::input::QueryPrecedenceInput {
|
16648 25049 | fn from(builder: Builder) -> Self {
|
16649 25050 | builder.build()
|
16650 25051 | }
|
16651 25052 | }
|
16652 - | /// A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25053 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25054 + | /* RustType.kt:516 */
|
16653 25055 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25056 + | /* ServerBuilderGenerator.kt:211 */
|
16654 25057 | pub(crate) struct Builder {
|
25058 + | /* ServerBuilderGenerator.kt:308 */
|
16655 25059 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
25060 + | /* ServerBuilderGenerator.kt:308 */
|
16656 25061 | pub(crate) baz: ::std::option::Option<
|
16657 25062 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16658 25063 | >,
|
25064 + | /* ServerBuilderGenerator.kt:211 */
|
16659 25065 | }
|
25066 + | /* ServerBuilderGenerator.kt:215 */
|
16660 25067 | impl Builder {
|
25068 + | /* ServerBuilderGenerator.kt:426 */
|
16661 25069 | #[allow(missing_docs)] // documentation missing in model
|
25070 + | /* ServerBuilderGenerator.kt:428 */
|
16662 25071 | pub(crate) fn set_foo(
|
16663 25072 | mut self,
|
16664 25073 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16665 25074 | ) -> Self {
|
25075 + | /* ServerBuilderGenerator.kt:429 */
|
16666 25076 | self.foo = input.map(|v| v.into());
|
16667 25077 | self
|
25078 + | /* ServerBuilderGenerator.kt:428 */
|
16668 25079 | }
|
25080 + | /* ServerBuilderGenerator.kt:426 */
|
16669 25081 | #[allow(missing_docs)] // documentation missing in model
|
25082 + | /* ServerBuilderGenerator.kt:428 */
|
16670 25083 | pub(crate) fn set_baz(
|
16671 25084 | mut self,
|
16672 25085 | input: Option<
|
16673 25086 | impl ::std::convert::Into<
|
16674 25087 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16675 25088 | >,
|
16676 25089 | >,
|
16677 25090 | ) -> Self {
|
25091 + | /* ServerBuilderGenerator.kt:429 */
|
16678 25092 | self.baz = input.map(|v| v.into());
|
16679 25093 | self
|
25094 + | /* ServerBuilderGenerator.kt:428 */
|
16680 25095 | }
|
16681 - | /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25096 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25097 + | /* ServerBuilderGenerator.kt:271 */
|
16682 25098 | pub fn build(self) -> crate::input::QueryPrecedenceInput {
|
16683 25099 | self.build_enforcing_all_constraints()
|
16684 25100 | }
|
25101 + | /* ServerBuilderGenerator.kt:283 */
|
16685 25102 | fn build_enforcing_all_constraints(self) -> crate::input::QueryPrecedenceInput {
|
25103 + | /* ServerBuilderGenerator.kt:542 */
|
16686 25104 | crate::input::QueryPrecedenceInput {
|
25105 + | /* ServerBuilderGenerator.kt:546 */
|
16687 25106 | foo: self.foo,
|
25107 + | /* ServerBuilderGenerator.kt:546 */
|
16688 25108 | baz: self.baz,
|
25109 + | /* ServerBuilderGenerator.kt:542 */
|
16689 25110 | }
|
25111 + | /* ServerBuilderGenerator.kt:283 */
|
16690 25112 | }
|
25113 + | /* ServerBuilderGenerator.kt:215 */
|
16691 25114 | }
|
25115 + |
|
25116 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16692 25117 | }
|
16693 - | /// See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25118 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
16694 25119 | pub mod query_precedence_input {
|
16695 25120 |
|
25121 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16696 25122 | impl ::std::convert::From<Builder> for crate::input::QueryPrecedenceInput {
|
16697 25123 | fn from(builder: Builder) -> Self {
|
16698 25124 | builder.build()
|
16699 25125 | }
|
16700 25126 | }
|
16701 - | /// A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25127 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25128 + | /* RustType.kt:516 */
|
16702 25129 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25130 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16703 25131 | pub struct Builder {
|
25132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16704 25133 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
25134 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16705 25135 | pub(crate) baz: ::std::option::Option<
|
16706 25136 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16707 25137 | >,
|
25138 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16708 25139 | }
|
25140 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16709 25141 | impl Builder {
|
25142 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16710 25143 | #[allow(missing_docs)] // documentation missing in model
|
25144 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16711 25145 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16712 - | self.foo = input;
|
25146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25147 + | self.foo =
|
25148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25149 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16713 25150 | self
|
25151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16714 25152 | }
|
25153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16715 25154 | #[allow(missing_docs)] // documentation missing in model
|
25155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16716 25156 | pub fn baz(
|
16717 25157 | mut self,
|
16718 25158 | input: ::std::option::Option<
|
16719 25159 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
16720 25160 | >,
|
16721 25161 | ) -> Self {
|
16722 - | self.baz = input;
|
25162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25163 + | self.baz =
|
25164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16723 25166 | self
|
25167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16724 25168 | }
|
16725 - | /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25169 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
25170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16726 25171 | pub fn build(self) -> crate::input::QueryPrecedenceInput {
|
16727 25172 | self.build_enforcing_required_and_enum_traits()
|
16728 25173 | }
|
25174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16729 25175 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::QueryPrecedenceInput {
|
25176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16730 25177 | crate::input::QueryPrecedenceInput {
|
25178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16731 25179 | foo: self.foo,
|
25180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
16732 25181 | baz: self.baz,
|
25182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
16733 25183 | }
|
25184 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16734 25185 | }
|
25186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16735 25187 | }
|
25188 + |
|
25189 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16736 25190 | }
|
16737 - | /// See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25191 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
16738 25192 | pub(crate) mod query_idempotency_token_auto_fill_input_internal {
|
16739 25193 |
|
25194 + | /* ServerBuilderGenerator.kt:461 */
|
16740 25195 | impl ::std::convert::From<Builder> for crate::input::QueryIdempotencyTokenAutoFillInput {
|
16741 25196 | fn from(builder: Builder) -> Self {
|
16742 25197 | builder.build()
|
16743 25198 | }
|
16744 25199 | }
|
16745 - | /// A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25200 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25201 + | /* RustType.kt:516 */
|
16746 25202 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25203 + | /* ServerBuilderGenerator.kt:211 */
|
16747 25204 | pub(crate) struct Builder {
|
25205 + | /* ServerBuilderGenerator.kt:308 */
|
16748 25206 | pub(crate) token: ::std::option::Option<::std::string::String>,
|
25207 + | /* ServerBuilderGenerator.kt:211 */
|
16749 25208 | }
|
25209 + | /* ServerBuilderGenerator.kt:215 */
|
16750 25210 | impl Builder {
|
25211 + | /* ServerBuilderGenerator.kt:426 */
|
16751 25212 | #[allow(missing_docs)] // documentation missing in model
|
25213 + | /* ServerBuilderGenerator.kt:428 */
|
16752 25214 | pub(crate) fn set_token(
|
16753 25215 | mut self,
|
16754 25216 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
16755 25217 | ) -> Self {
|
25218 + | /* ServerBuilderGenerator.kt:429 */
|
16756 25219 | self.token = input.map(|v| v.into());
|
16757 25220 | self
|
25221 + | /* ServerBuilderGenerator.kt:428 */
|
16758 25222 | }
|
16759 - | /// Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25223 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25224 + | /* ServerBuilderGenerator.kt:271 */
|
16760 25225 | pub fn build(self) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
16761 25226 | self.build_enforcing_all_constraints()
|
16762 25227 | }
|
25228 + | /* ServerBuilderGenerator.kt:283 */
|
16763 25229 | fn build_enforcing_all_constraints(
|
16764 25230 | self,
|
16765 25231 | ) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
16766 - | crate::input::QueryIdempotencyTokenAutoFillInput { token: self.token }
|
25232 + | /* ServerBuilderGenerator.kt:542 */
|
25233 + | crate::input::QueryIdempotencyTokenAutoFillInput {
|
25234 + | /* ServerBuilderGenerator.kt:546 */
|
25235 + | token: self.token,
|
25236 + | /* ServerBuilderGenerator.kt:542 */
|
25237 + | }
|
25238 + | /* ServerBuilderGenerator.kt:283 */
|
16767 25239 | }
|
25240 + | /* ServerBuilderGenerator.kt:215 */
|
16768 25241 | }
|
25242 + |
|
25243 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16769 25244 | }
|
16770 - | /// See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25245 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
16771 25246 | pub mod query_idempotency_token_auto_fill_input {
|
16772 25247 |
|
25248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16773 25249 | impl ::std::convert::From<Builder> for crate::input::QueryIdempotencyTokenAutoFillInput {
|
16774 25250 | fn from(builder: Builder) -> Self {
|
16775 25251 | builder.build()
|
16776 25252 | }
|
16777 25253 | }
|
16778 - | /// A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25254 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25255 + | /* RustType.kt:516 */
|
16779 25256 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16780 25258 | pub struct Builder {
|
25259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16781 25260 | pub(crate) token: ::std::option::Option<::std::string::String>,
|
25261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16782 25262 | }
|
25263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16783 25264 | impl Builder {
|
25265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
16784 25266 | #[allow(missing_docs)] // documentation missing in model
|
25267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16785 25268 | pub fn token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
16786 - | self.token = input;
|
25269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25270 + | self.token =
|
25271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
16787 25273 | self
|
25274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
16788 25275 | }
|
16789 - | /// Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25276 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
25277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
16790 25278 | pub fn build(self) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
16791 25279 | self.build_enforcing_required_and_enum_traits()
|
16792 25280 | }
|
25281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16793 25282 | fn build_enforcing_required_and_enum_traits(
|
16794 25283 | self,
|
16795 25284 | ) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
16796 - | crate::input::QueryIdempotencyTokenAutoFillInput { token: self.token }
|
25285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
25286 + | crate::input::QueryIdempotencyTokenAutoFillInput {
|
25287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
25288 + | token: self.token,
|
25289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
25290 + | }
|
25291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
16797 25292 | }
|
25293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
16798 25294 | }
|
25295 + |
|
25296 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16799 25297 | }
|
16800 - | /// See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25298 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
16801 25299 | pub(crate) mod omits_serializing_empty_lists_input_internal {
|
16802 25300 |
|
25301 + | /* RustType.kt:516 */
|
16803 25302 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
16804 - | /// Holds one variant for each of the ways the builder can fail.
|
25303 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
25304 + | /* RustType.kt:516 */
|
16805 25305 | #[non_exhaustive]
|
25306 + | /* ServerBuilderConstraintViolations.kt:75 */
|
16806 25307 | #[allow(clippy::enum_variant_names)]
|
16807 25308 | pub(crate) enum ConstraintViolation {
|
16808 - | /// Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
25309 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
25310 + | /* RustType.kt:516 */
|
16809 25311 | #[doc(hidden)]
|
25312 + | /* ServerBuilderConstraintViolations.kt:164 */
|
16810 25313 | QueryEnumList(crate::model::foo_enum_list_internal::ConstraintViolation),
|
25314 + | /* ServerBuilderConstraintViolations.kt:75 */
|
16811 25315 | }
|
25316 + | /* ServerBuilderConstraintViolations.kt:117 */
|
16812 25317 | impl ::std::fmt::Display for ConstraintViolation {
|
25318 + | /* ServerBuilderConstraintViolations.kt:118 */
|
16813 25319 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
25320 + | /* ServerBuilderConstraintViolations.kt:119 */
|
16814 25321 | match self {
|
16815 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
16816 - | }
|
25322 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
25323 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
25324 + | /* ServerBuilderConstraintViolations.kt:118 */
|
16817 25325 | }
|
25326 + | /* ServerBuilderConstraintViolations.kt:117 */
|
16818 25327 | }
|
25328 + | /* ServerBuilderConstraintViolations.kt:84 */
|
16819 25329 | impl ::std::error::Error for ConstraintViolation {}
|
25330 + | /* ServerBuilderConstraintViolations.kt:171 */
|
16820 25331 | impl ConstraintViolation {
|
16821 25332 | pub(crate) fn as_validation_exception_field(
|
16822 25333 | self,
|
16823 25334 | path: ::std::string::String,
|
16824 25335 | ) -> crate::model::ValidationExceptionField {
|
16825 25336 | match self {
|
16826 25337 | ConstraintViolation::QueryEnumList(inner) => {
|
16827 25338 | inner.as_validation_exception_field(path + "/queryEnumList")
|
16828 25339 | }
|
16829 25340 | }
|
16830 25341 | }
|
16831 25342 | }
|
25343 + | /* ServerBuilderGenerator.kt:234 */
|
16832 25344 | impl ::std::convert::From<ConstraintViolation>
|
16833 25345 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
16834 25346 | {
|
16835 25347 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
16836 25348 | let first_validation_exception_field =
|
16837 25349 | constraint_violation.as_validation_exception_field("".to_owned());
|
16838 25350 | let validation_exception = crate::error::ValidationException {
|
16839 25351 | message: format!(
|
16840 25352 | "1 validation error detected. {}",
|
16841 25353 | &first_validation_exception_field.message
|
16842 25354 | ),
|
16843 25355 | field_list: Some(vec![first_validation_exception_field]),
|
16844 25356 | };
|
16845 25357 | Self::ConstraintViolation(
|
16846 25358 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
16847 25359 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
16848 25360 | )
|
16849 25361 | }
|
16850 25362 | }
|
25363 + | /* ServerBuilderGenerator.kt:244 */
|
16851 25364 | impl ::std::convert::From<Builder>
|
16852 25365 | for crate::constrained::MaybeConstrained<crate::input::OmitsSerializingEmptyListsInput>
|
16853 25366 | {
|
16854 25367 | fn from(builder: Builder) -> Self {
|
16855 25368 | Self::Unconstrained(builder)
|
16856 25369 | }
|
16857 25370 | }
|
25371 + | /* ServerBuilderGenerator.kt:446 */
|
16858 25372 | impl ::std::convert::TryFrom<Builder> for crate::input::OmitsSerializingEmptyListsInput {
|
16859 25373 | type Error = ConstraintViolation;
|
16860 25374 |
|
16861 25375 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
16862 25376 | builder.build()
|
16863 25377 | }
|
16864 25378 | }
|
16865 - | /// A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25379 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25380 + | /* RustType.kt:516 */
|
16866 25381 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25382 + | /* ServerBuilderGenerator.kt:211 */
|
16867 25383 | pub(crate) struct Builder {
|
25384 + | /* ServerBuilderGenerator.kt:308 */
|
16868 25385 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
25386 + | /* ServerBuilderGenerator.kt:308 */
|
16869 25387 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
25388 + | /* ServerBuilderGenerator.kt:308 */
|
16870 25389 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
25390 + | /* ServerBuilderGenerator.kt:308 */
|
16871 25391 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
25392 + | /* ServerBuilderGenerator.kt:308 */
|
16872 25393 | pub(crate) query_timestamp_list: ::std::option::Option<
|
16873 25394 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
16874 25395 | >,
|
25396 + | /* ServerBuilderGenerator.kt:308 */
|
16875 25397 | pub(crate) query_enum_list: ::std::option::Option<
|
16876 25398 | crate::constrained::MaybeConstrained<
|
16877 25399 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
16878 25400 | >,
|
16879 25401 | >,
|
25402 + | /* ServerBuilderGenerator.kt:308 */
|
16880 25403 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
25404 + | /* ServerBuilderGenerator.kt:211 */
|
16881 25405 | }
|
25406 + | /* ServerBuilderGenerator.kt:215 */
|
16882 25407 | impl Builder {
|
25408 + | /* ServerBuilderGenerator.kt:426 */
|
16883 25409 | #[allow(missing_docs)] // documentation missing in model
|
25410 + | /* ServerBuilderGenerator.kt:428 */
|
16884 25411 | pub(crate) fn set_query_string_list(
|
16885 25412 | mut self,
|
16886 25413 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
16887 25414 | ) -> Self {
|
25415 + | /* ServerBuilderGenerator.kt:429 */
|
16888 25416 | self.query_string_list = input.map(|v| v.into());
|
16889 25417 | self
|
25418 + | /* ServerBuilderGenerator.kt:428 */
|
16890 25419 | }
|
25420 + | /* ServerBuilderGenerator.kt:426 */
|
16891 25421 | #[allow(missing_docs)] // documentation missing in model
|
25422 + | /* ServerBuilderGenerator.kt:428 */
|
16892 25423 | pub(crate) fn set_query_integer_list(
|
16893 25424 | mut self,
|
16894 25425 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
16895 25426 | ) -> Self {
|
25427 + | /* ServerBuilderGenerator.kt:429 */
|
16896 25428 | self.query_integer_list = input.map(|v| v.into());
|
16897 25429 | self
|
25430 + | /* ServerBuilderGenerator.kt:428 */
|
16898 25431 | }
|
25432 + | /* ServerBuilderGenerator.kt:426 */
|
16899 25433 | #[allow(missing_docs)] // documentation missing in model
|
25434 + | /* ServerBuilderGenerator.kt:428 */
|
16900 25435 | pub(crate) fn set_query_double_list(
|
16901 25436 | mut self,
|
16902 25437 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
16903 25438 | ) -> Self {
|
25439 + | /* ServerBuilderGenerator.kt:429 */
|
16904 25440 | self.query_double_list = input.map(|v| v.into());
|
16905 25441 | self
|
25442 + | /* ServerBuilderGenerator.kt:428 */
|
16906 25443 | }
|
25444 + | /* ServerBuilderGenerator.kt:426 */
|
16907 25445 | #[allow(missing_docs)] // documentation missing in model
|
25446 + | /* ServerBuilderGenerator.kt:428 */
|
16908 25447 | pub(crate) fn set_query_boolean_list(
|
16909 25448 | mut self,
|
16910 25449 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
16911 25450 | ) -> Self {
|
25451 + | /* ServerBuilderGenerator.kt:429 */
|
16912 25452 | self.query_boolean_list = input.map(|v| v.into());
|
16913 25453 | self
|
25454 + | /* ServerBuilderGenerator.kt:428 */
|
16914 25455 | }
|
25456 + | /* ServerBuilderGenerator.kt:426 */
|
16915 25457 | #[allow(missing_docs)] // documentation missing in model
|
25458 + | /* ServerBuilderGenerator.kt:428 */
|
16916 25459 | pub(crate) fn set_query_timestamp_list(
|
16917 25460 | mut self,
|
16918 25461 | input: Option<
|
16919 25462 | impl ::std::convert::Into<
|
16920 25463 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
16921 25464 | >,
|
16922 25465 | >,
|
16923 25466 | ) -> Self {
|
25467 + | /* ServerBuilderGenerator.kt:429 */
|
16924 25468 | self.query_timestamp_list = input.map(|v| v.into());
|
16925 25469 | self
|
25470 + | /* ServerBuilderGenerator.kt:428 */
|
16926 25471 | }
|
25472 + | /* ServerBuilderGenerator.kt:426 */
|
16927 25473 | #[allow(missing_docs)] // documentation missing in model
|
25474 + | /* ServerBuilderGenerator.kt:428 */
|
16928 25475 | pub(crate) fn set_query_enum_list(
|
16929 25476 | mut self,
|
16930 25477 | input: Option<
|
16931 25478 | impl ::std::convert::Into<
|
16932 25479 | crate::constrained::MaybeConstrained<
|
16933 25480 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
16934 25481 | >,
|
16935 25482 | >,
|
16936 25483 | >,
|
16937 25484 | ) -> Self {
|
25485 + | /* ServerBuilderGenerator.kt:429 */
|
16938 25486 | self.query_enum_list = input.map(|v| v.into());
|
16939 25487 | self
|
25488 + | /* ServerBuilderGenerator.kt:428 */
|
16940 25489 | }
|
25490 + | /* ServerBuilderGenerator.kt:426 */
|
16941 25491 | #[allow(missing_docs)] // documentation missing in model
|
25492 + | /* ServerBuilderGenerator.kt:428 */
|
16942 25493 | pub(crate) fn set_query_integer_enum_list(
|
16943 25494 | mut self,
|
16944 25495 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
16945 25496 | ) -> Self {
|
25497 + | /* ServerBuilderGenerator.kt:429 */
|
16946 25498 | self.query_integer_enum_list = input.map(|v| v.into());
|
16947 25499 | self
|
25500 + | /* ServerBuilderGenerator.kt:428 */
|
16948 25501 | }
|
16949 - | /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
16950 - | ///
|
25502 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25503 + | /// /* ServerBuilderGenerator.kt:260 */
|
16951 25504 | /// The builder fails to construct a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput) if a [`ConstraintViolation`] occurs.
|
16952 25505 | ///
|
25506 + | /* ServerBuilderGenerator.kt:271 */
|
16953 25507 | pub fn build(
|
16954 25508 | self,
|
16955 25509 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
16956 25510 | self.build_enforcing_all_constraints()
|
16957 25511 | }
|
25512 + | /* ServerBuilderGenerator.kt:283 */
|
16958 25513 | fn build_enforcing_all_constraints(
|
16959 25514 | self,
|
16960 25515 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
16961 - | Ok(crate::input::OmitsSerializingEmptyListsInput {
|
25516 + | /* ServerBuilderGenerator.kt:287 */
|
25517 + | Ok(
|
25518 + | /* ServerBuilderGenerator.kt:542 */
|
25519 + | crate::input::OmitsSerializingEmptyListsInput {
|
25520 + | /* ServerBuilderGenerator.kt:546 */
|
16962 25521 | query_string_list: self.query_string_list,
|
25522 + | /* ServerBuilderGenerator.kt:546 */
|
16963 25523 | query_integer_list: self.query_integer_list,
|
25524 + | /* ServerBuilderGenerator.kt:546 */
|
16964 25525 | query_double_list: self.query_double_list,
|
25526 + | /* ServerBuilderGenerator.kt:546 */
|
16965 25527 | query_boolean_list: self.query_boolean_list,
|
25528 + | /* ServerBuilderGenerator.kt:546 */
|
16966 25529 | query_timestamp_list: self.query_timestamp_list,
|
25530 + | /* ServerBuilderGenerator.kt:546 */
|
16967 25531 | query_enum_list: self
|
16968 25532 | .query_enum_list
|
25533 + | /* ServerBuilderGenerator.kt:602 */
|
16969 25534 | .map(|v| match v {
|
16970 25535 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
16971 25536 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
16972 25537 | })
|
25538 + | /* ServerBuilderGenerator.kt:614 */
|
16973 25539 | .map(|res| {
|
16974 25540 | res.map(|v| v.into())
|
16975 25541 | .map_err(ConstraintViolation::QueryEnumList)
|
16976 25542 | })
|
16977 25543 | .transpose()?,
|
25544 + | /* ServerBuilderGenerator.kt:546 */
|
16978 25545 | query_integer_enum_list: self.query_integer_enum_list,
|
16979 - | })
|
25546 + | /* ServerBuilderGenerator.kt:542 */
|
25547 + | }, /* ServerBuilderGenerator.kt:287 */
|
25548 + | )
|
25549 + | /* ServerBuilderGenerator.kt:283 */
|
16980 25550 | }
|
25551 + | /* ServerBuilderGenerator.kt:215 */
|
16981 25552 | }
|
25553 + |
|
25554 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
16982 25555 | }
|
16983 - | /// See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25556 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
16984 25557 | pub mod omits_serializing_empty_lists_input {
|
16985 25558 |
|
25559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
16986 25560 | impl ::std::convert::From<Builder> for crate::input::OmitsSerializingEmptyListsInput {
|
16987 25561 | fn from(builder: Builder) -> Self {
|
16988 25562 | builder.build()
|
16989 25563 | }
|
16990 25564 | }
|
16991 - | /// A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25565 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25566 + | /* RustType.kt:516 */
|
16992 25567 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
16993 25569 | pub struct Builder {
|
25570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16994 25571 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
25572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16995 25573 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
25574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16996 25575 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
25576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16997 25577 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
25578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
16998 25579 | pub(crate) query_timestamp_list: ::std::option::Option<
|
16999 25580 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17000 25581 | >,
|
25582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17001 25583 | pub(crate) query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
25584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17002 25585 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
25586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17003 25587 | }
|
25588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17004 25589 | impl Builder {
|
25590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17005 25591 | #[allow(missing_docs)] // documentation missing in model
|
25592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17006 25593 | pub fn query_string_list(
|
17007 25594 | mut self,
|
17008 25595 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17009 25596 | ) -> Self {
|
17010 - | self.query_string_list = input;
|
25597 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25598 + | self.query_string_list =
|
25599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17011 25601 | self
|
25602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17012 25603 | }
|
25604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17013 25605 | #[allow(missing_docs)] // documentation missing in model
|
25606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17014 25607 | pub fn query_integer_list(
|
17015 25608 | mut self,
|
17016 25609 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
17017 25610 | ) -> Self {
|
17018 - | self.query_integer_list = input;
|
25611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25612 + | self.query_integer_list =
|
25613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17019 25615 | self
|
25616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17020 25617 | }
|
25618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17021 25619 | #[allow(missing_docs)] // documentation missing in model
|
25620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17022 25621 | pub fn query_double_list(
|
17023 25622 | mut self,
|
17024 25623 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
17025 25624 | ) -> Self {
|
17026 - | self.query_double_list = input;
|
25625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25626 + | self.query_double_list =
|
25627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17027 25629 | self
|
25630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17028 25631 | }
|
25632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17029 25633 | #[allow(missing_docs)] // documentation missing in model
|
25634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17030 25635 | pub fn query_boolean_list(
|
17031 25636 | mut self,
|
17032 25637 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
17033 25638 | ) -> Self {
|
17034 - | self.query_boolean_list = input;
|
25639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25640 + | self.query_boolean_list =
|
25641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17035 25643 | self
|
25644 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17036 25645 | }
|
25646 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17037 25647 | #[allow(missing_docs)] // documentation missing in model
|
25648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17038 25649 | pub fn query_timestamp_list(
|
17039 25650 | mut self,
|
17040 25651 | input: ::std::option::Option<
|
17041 25652 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17042 25653 | >,
|
17043 25654 | ) -> Self {
|
17044 - | self.query_timestamp_list = input;
|
25655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25656 + | self.query_timestamp_list =
|
25657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25658 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17045 25659 | self
|
25660 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17046 25661 | }
|
25662 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17047 25663 | #[allow(missing_docs)] // documentation missing in model
|
25664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17048 25665 | pub fn query_enum_list(
|
17049 25666 | mut self,
|
17050 25667 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
17051 25668 | ) -> Self {
|
17052 - | self.query_enum_list = input;
|
25669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25670 + | self.query_enum_list =
|
25671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25672 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17053 25673 | self
|
25674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17054 25675 | }
|
25676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17055 25677 | #[allow(missing_docs)] // documentation missing in model
|
25678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17056 25679 | pub fn query_integer_enum_list(
|
17057 25680 | mut self,
|
17058 25681 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
17059 25682 | ) -> Self {
|
17060 - | self.query_integer_enum_list = input;
|
25683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25684 + | self.query_integer_enum_list =
|
25685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25686 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17061 25687 | self
|
25688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17062 25689 | }
|
17063 - | /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25690 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
25691 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
17064 25692 | pub fn build(self) -> crate::input::OmitsSerializingEmptyListsInput {
|
17065 25693 | self.build_enforcing_required_and_enum_traits()
|
17066 25694 | }
|
25695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17067 25696 | fn build_enforcing_required_and_enum_traits(
|
17068 25697 | self,
|
17069 25698 | ) -> crate::input::OmitsSerializingEmptyListsInput {
|
25699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17070 25700 | crate::input::OmitsSerializingEmptyListsInput {
|
25701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17071 25702 | query_string_list: self.query_string_list,
|
25703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17072 25704 | query_integer_list: self.query_integer_list,
|
25705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17073 25706 | query_double_list: self.query_double_list,
|
25707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17074 25708 | query_boolean_list: self.query_boolean_list,
|
25709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17075 25710 | query_timestamp_list: self.query_timestamp_list,
|
25711 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17076 25712 | query_enum_list: self.query_enum_list,
|
25713 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17077 25714 | query_integer_enum_list: self.query_integer_enum_list,
|
25715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17078 25716 | }
|
25717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17079 25718 | }
|
25719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17080 25720 | }
|
25721 + |
|
25722 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17081 25723 | }
|
17082 - | /// See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25724 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
17083 25725 | pub(crate) mod omits_null_serializes_empty_string_input_internal {
|
17084 25726 |
|
25727 + | /* ServerBuilderGenerator.kt:461 */
|
17085 25728 | impl ::std::convert::From<Builder> for crate::input::OmitsNullSerializesEmptyStringInput {
|
17086 25729 | fn from(builder: Builder) -> Self {
|
17087 25730 | builder.build()
|
17088 25731 | }
|
17089 25732 | }
|
17090 - | /// A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25733 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25734 + | /* RustType.kt:516 */
|
17091 25735 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25736 + | /* ServerBuilderGenerator.kt:211 */
|
17092 25737 | pub(crate) struct Builder {
|
25738 + | /* ServerBuilderGenerator.kt:308 */
|
17093 25739 | pub(crate) null_value: ::std::option::Option<::std::string::String>,
|
25740 + | /* ServerBuilderGenerator.kt:308 */
|
17094 25741 | pub(crate) empty_string: ::std::option::Option<::std::string::String>,
|
25742 + | /* ServerBuilderGenerator.kt:211 */
|
17095 25743 | }
|
25744 + | /* ServerBuilderGenerator.kt:215 */
|
17096 25745 | impl Builder {
|
25746 + | /* ServerBuilderGenerator.kt:426 */
|
17097 25747 | #[allow(missing_docs)] // documentation missing in model
|
25748 + | /* ServerBuilderGenerator.kt:428 */
|
17098 25749 | pub(crate) fn set_null_value(
|
17099 25750 | mut self,
|
17100 25751 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
17101 25752 | ) -> Self {
|
25753 + | /* ServerBuilderGenerator.kt:429 */
|
17102 25754 | self.null_value = input.map(|v| v.into());
|
17103 25755 | self
|
25756 + | /* ServerBuilderGenerator.kt:428 */
|
17104 25757 | }
|
25758 + | /* ServerBuilderGenerator.kt:426 */
|
17105 25759 | #[allow(missing_docs)] // documentation missing in model
|
25760 + | /* ServerBuilderGenerator.kt:428 */
|
17106 25761 | pub(crate) fn set_empty_string(
|
17107 25762 | mut self,
|
17108 25763 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
17109 25764 | ) -> Self {
|
25765 + | /* ServerBuilderGenerator.kt:429 */
|
17110 25766 | self.empty_string = input.map(|v| v.into());
|
17111 25767 | self
|
25768 + | /* ServerBuilderGenerator.kt:428 */
|
17112 25769 | }
|
17113 - | /// Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25770 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25771 + | /* ServerBuilderGenerator.kt:271 */
|
17114 25772 | pub fn build(self) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
17115 25773 | self.build_enforcing_all_constraints()
|
17116 25774 | }
|
25775 + | /* ServerBuilderGenerator.kt:283 */
|
17117 25776 | fn build_enforcing_all_constraints(
|
17118 25777 | self,
|
17119 25778 | ) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
25779 + | /* ServerBuilderGenerator.kt:542 */
|
17120 25780 | crate::input::OmitsNullSerializesEmptyStringInput {
|
25781 + | /* ServerBuilderGenerator.kt:546 */
|
17121 25782 | null_value: self.null_value,
|
25783 + | /* ServerBuilderGenerator.kt:546 */
|
17122 25784 | empty_string: self.empty_string,
|
25785 + | /* ServerBuilderGenerator.kt:542 */
|
17123 25786 | }
|
25787 + | /* ServerBuilderGenerator.kt:283 */
|
17124 25788 | }
|
25789 + | /* ServerBuilderGenerator.kt:215 */
|
17125 25790 | }
|
25791 + |
|
25792 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17126 25793 | }
|
17127 - | /// See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25794 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
17128 25795 | pub mod omits_null_serializes_empty_string_input {
|
17129 25796 |
|
25797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
17130 25798 | impl ::std::convert::From<Builder> for crate::input::OmitsNullSerializesEmptyStringInput {
|
17131 25799 | fn from(builder: Builder) -> Self {
|
17132 25800 | builder.build()
|
17133 25801 | }
|
17134 25802 | }
|
17135 - | /// A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25803 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25804 + | /* RustType.kt:516 */
|
17136 25805 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25806 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17137 25807 | pub struct Builder {
|
25808 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17138 25809 | pub(crate) null_value: ::std::option::Option<::std::string::String>,
|
25810 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17139 25811 | pub(crate) empty_string: ::std::option::Option<::std::string::String>,
|
25812 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17140 25813 | }
|
25814 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17141 25815 | impl Builder {
|
25816 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17142 25817 | #[allow(missing_docs)] // documentation missing in model
|
25818 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17143 25819 | pub fn null_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
17144 - | self.null_value = input;
|
25820 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25821 + | self.null_value =
|
25822 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25823 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17145 25824 | self
|
25825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17146 25826 | }
|
25827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17147 25828 | #[allow(missing_docs)] // documentation missing in model
|
25829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17148 25830 | pub fn empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
17149 - | self.empty_string = input;
|
25831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
25832 + | self.empty_string =
|
25833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
25834 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17150 25835 | self
|
25836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17151 25837 | }
|
17152 - | /// Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25838 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
25839 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
17153 25840 | pub fn build(self) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
17154 25841 | self.build_enforcing_required_and_enum_traits()
|
17155 25842 | }
|
25843 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17156 25844 | fn build_enforcing_required_and_enum_traits(
|
17157 25845 | self,
|
17158 25846 | ) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
25847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17159 25848 | crate::input::OmitsNullSerializesEmptyStringInput {
|
25849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17160 25850 | null_value: self.null_value,
|
25851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17161 25852 | empty_string: self.empty_string,
|
25853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17162 25854 | }
|
25855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17163 25856 | }
|
25857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17164 25858 | }
|
25859 + |
|
25860 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17165 25861 | }
|
17166 - | /// See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25862 + | /// /* ServerBuilderGenerator.kt:171 */See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
17167 25863 | pub(crate) mod ignore_query_params_in_response_input_internal {
|
17168 25864 |
|
25865 + | /* ServerBuilderGenerator.kt:461 */
|
17169 25866 | impl ::std::convert::From<Builder> for crate::input::IgnoreQueryParamsInResponseInput {
|
17170 25867 | fn from(builder: Builder) -> Self {
|
17171 25868 | builder.build()
|
17172 25869 | }
|
17173 25870 | }
|
17174 - | /// A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25871 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25872 + | /* RustType.kt:516 */
|
17175 25873 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17176 - | pub(crate) struct Builder {}
|
25874 + | /* ServerBuilderGenerator.kt:211 */
|
25875 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
25876 + | /* ServerBuilderGenerator.kt:215 */
|
17177 25877 | impl Builder {
|
17178 - | /// Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25878 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25879 + | /* ServerBuilderGenerator.kt:271 */
|
17179 25880 | pub fn build(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
17180 25881 | self.build_enforcing_all_constraints()
|
17181 25882 | }
|
25883 + | /* ServerBuilderGenerator.kt:283 */
|
17182 25884 | fn build_enforcing_all_constraints(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
17183 - | crate::input::IgnoreQueryParamsInResponseInput {}
|
25885 + | /* ServerBuilderGenerator.kt:542 */
|
25886 + | crate::input::IgnoreQueryParamsInResponseInput {
|
25887 + | /* ServerBuilderGenerator.kt:542 */}
|
25888 + | /* ServerBuilderGenerator.kt:283 */
|
17184 25889 | }
|
25890 + | /* ServerBuilderGenerator.kt:215 */
|
17185 25891 | }
|
25892 + |
|
25893 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17186 25894 | }
|
17187 - | /// See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25895 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
17188 25896 | pub mod ignore_query_params_in_response_input {
|
17189 25897 |
|
25898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
17190 25899 | impl ::std::convert::From<Builder> for crate::input::IgnoreQueryParamsInResponseInput {
|
17191 25900 | fn from(builder: Builder) -> Self {
|
17192 25901 | builder.build()
|
17193 25902 | }
|
17194 25903 | }
|
17195 - | /// A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25904 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25905 + | /* RustType.kt:516 */
|
17196 25906 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17197 - | pub struct Builder {}
|
25907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
25908 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
25909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17198 25910 | impl Builder {
|
17199 - | /// Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25911 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
25912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
17200 25913 | pub fn build(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
17201 25914 | self.build_enforcing_required_and_enum_traits()
|
17202 25915 | }
|
25916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17203 25917 | fn build_enforcing_required_and_enum_traits(
|
17204 25918 | self,
|
17205 25919 | ) -> crate::input::IgnoreQueryParamsInResponseInput {
|
17206 - | crate::input::IgnoreQueryParamsInResponseInput {}
|
25920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
25921 + | crate::input::IgnoreQueryParamsInResponseInput {
|
25922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
25923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17207 25924 | }
|
25925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17208 25926 | }
|
25927 + |
|
25928 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17209 25929 | }
|
17210 - | /// See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
25930 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
17211 25931 | pub(crate) mod constant_and_variable_query_string_input_internal {
|
17212 25932 |
|
25933 + | /* ServerBuilderGenerator.kt:461 */
|
17213 25934 | impl ::std::convert::From<Builder> for crate::input::ConstantAndVariableQueryStringInput {
|
17214 25935 | fn from(builder: Builder) -> Self {
|
17215 25936 | builder.build()
|
17216 25937 | }
|
17217 25938 | }
|
17218 - | /// A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
25939 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
25940 + | /* RustType.kt:516 */
|
17219 25941 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
25942 + | /* ServerBuilderGenerator.kt:211 */
|
17220 25943 | pub(crate) struct Builder {
|
25944 + | /* ServerBuilderGenerator.kt:308 */
|
17221 25945 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
25946 + | /* ServerBuilderGenerator.kt:308 */
|
17222 25947 | pub(crate) maybe_set: ::std::option::Option<::std::string::String>,
|
25948 + | /* ServerBuilderGenerator.kt:211 */
|
17223 25949 | }
|
25950 + | /* ServerBuilderGenerator.kt:215 */
|
17224 25951 | impl Builder {
|
25952 + | /* ServerBuilderGenerator.kt:426 */
|
17225 25953 | #[allow(missing_docs)] // documentation missing in model
|
25954 + | /* ServerBuilderGenerator.kt:428 */
|
17226 25955 | pub(crate) fn set_baz(
|
17227 25956 | mut self,
|
17228 25957 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
17229 25958 | ) -> Self {
|
25959 + | /* ServerBuilderGenerator.kt:429 */
|
17230 25960 | self.baz = input.map(|v| v.into());
|
17231 25961 | self
|
25962 + | /* ServerBuilderGenerator.kt:428 */
|
17232 25963 | }
|
25964 + | /* ServerBuilderGenerator.kt:426 */
|
17233 25965 | #[allow(missing_docs)] // documentation missing in model
|
25966 + | /* ServerBuilderGenerator.kt:428 */
|
17234 25967 | pub(crate) fn set_maybe_set(
|
17235 25968 | mut self,
|
17236 25969 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
17237 25970 | ) -> Self {
|
25971 + | /* ServerBuilderGenerator.kt:429 */
|
17238 25972 | self.maybe_set = input.map(|v| v.into());
|
17239 25973 | self
|
25974 + | /* ServerBuilderGenerator.kt:428 */
|
17240 25975 | }
|
17241 - | /// Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
25976 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
25977 + | /* ServerBuilderGenerator.kt:271 */
|
17242 25978 | pub fn build(self) -> crate::input::ConstantAndVariableQueryStringInput {
|
17243 25979 | self.build_enforcing_all_constraints()
|
17244 25980 | }
|
25981 + | /* ServerBuilderGenerator.kt:283 */
|
17245 25982 | fn build_enforcing_all_constraints(
|
17246 25983 | self,
|
17247 25984 | ) -> crate::input::ConstantAndVariableQueryStringInput {
|
25985 + | /* ServerBuilderGenerator.kt:542 */
|
17248 25986 | crate::input::ConstantAndVariableQueryStringInput {
|
25987 + | /* ServerBuilderGenerator.kt:546 */
|
17249 25988 | baz: self.baz,
|
25989 + | /* ServerBuilderGenerator.kt:546 */
|
17250 25990 | maybe_set: self.maybe_set,
|
25991 + | /* ServerBuilderGenerator.kt:542 */
|
17251 25992 | }
|
25993 + | /* ServerBuilderGenerator.kt:283 */
|
17252 25994 | }
|
25995 + | /* ServerBuilderGenerator.kt:215 */
|
17253 25996 | }
|
25997 + |
|
25998 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17254 25999 | }
|
17255 - | /// See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
26000 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
17256 26001 | pub mod constant_and_variable_query_string_input {
|
17257 26002 |
|
26003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
17258 26004 | impl ::std::convert::From<Builder> for crate::input::ConstantAndVariableQueryStringInput {
|
17259 26005 | fn from(builder: Builder) -> Self {
|
17260 26006 | builder.build()
|
17261 26007 | }
|
17262 26008 | }
|
17263 - | /// A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
26009 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
26010 + | /* RustType.kt:516 */
|
17264 26011 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
26012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17265 26013 | pub struct Builder {
|
26014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17266 26015 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
26016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17267 26017 | pub(crate) maybe_set: ::std::option::Option<::std::string::String>,
|
26018 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17268 26019 | }
|
26020 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17269 26021 | impl Builder {
|
26022 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17270 26023 | #[allow(missing_docs)] // documentation missing in model
|
26024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17271 26025 | pub fn baz(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
17272 - | self.baz = input;
|
26026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26027 + | self.baz =
|
26028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17273 26030 | self
|
26031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17274 26032 | }
|
26033 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17275 26034 | #[allow(missing_docs)] // documentation missing in model
|
26035 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17276 26036 | pub fn maybe_set(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
17277 - | self.maybe_set = input;
|
26037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26038 + | self.maybe_set =
|
26039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17278 26041 | self
|
26042 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17279 26043 | }
|
17280 - | /// Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
26044 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
26045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
17281 26046 | pub fn build(self) -> crate::input::ConstantAndVariableQueryStringInput {
|
17282 26047 | self.build_enforcing_required_and_enum_traits()
|
17283 26048 | }
|
26049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17284 26050 | fn build_enforcing_required_and_enum_traits(
|
17285 26051 | self,
|
17286 26052 | ) -> crate::input::ConstantAndVariableQueryStringInput {
|
26053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17287 26054 | crate::input::ConstantAndVariableQueryStringInput {
|
26055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17288 26056 | baz: self.baz,
|
26057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
17289 26058 | maybe_set: self.maybe_set,
|
26059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
17290 26060 | }
|
26061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17291 26062 | }
|
26063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17292 26064 | }
|
26065 + |
|
26066 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17293 26067 | }
|
17294 - | /// See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26068 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
17295 26069 | pub(crate) mod constant_query_string_input_internal {
|
17296 26070 |
|
26071 + | /* RustType.kt:516 */
|
17297 26072 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
17298 - | /// Holds one variant for each of the ways the builder can fail.
|
26073 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
26074 + | /* RustType.kt:516 */
|
17299 26075 | #[non_exhaustive]
|
26076 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17300 26077 | #[allow(clippy::enum_variant_names)]
|
17301 26078 | pub(crate) enum ConstraintViolation {
|
17302 - | /// `hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
26079 + | /// /* ServerBuilderConstraintViolations.kt:138 */`hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
26080 + | /* ServerBuilderConstraintViolations.kt:143 */
|
17303 26081 | MissingHello,
|
26082 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17304 26083 | }
|
26084 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17305 26085 | impl ::std::fmt::Display for ConstraintViolation {
|
26086 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17306 26087 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
26088 + | /* ServerBuilderConstraintViolations.kt:119 */
|
17307 26089 | match self {
|
17308 - | ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
17309 - | }
|
26090 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
26091 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
26092 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17310 26093 | }
|
26094 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17311 26095 | }
|
26096 + | /* ServerBuilderConstraintViolations.kt:84 */
|
17312 26097 | impl ::std::error::Error for ConstraintViolation {}
|
26098 + | /* ServerBuilderConstraintViolations.kt:171 */
|
17313 26099 | impl ConstraintViolation {
|
17314 26100 | pub(crate) fn as_validation_exception_field(
|
17315 26101 | self,
|
17316 26102 | path: ::std::string::String,
|
17317 26103 | ) -> crate::model::ValidationExceptionField {
|
17318 26104 | match self {
|
17319 26105 | ConstraintViolation::MissingHello => crate::model::ValidationExceptionField {
|
17320 26106 | message: format!(
|
17321 26107 | "Value at '{}/hello' failed to satisfy constraint: Member must not be null",
|
17322 26108 | path
|
17323 26109 | ),
|
17324 26110 | path: path + "/hello",
|
17325 26111 | },
|
17326 26112 | }
|
17327 26113 | }
|
17328 26114 | }
|
26115 + | /* ServerBuilderGenerator.kt:234 */
|
17329 26116 | impl ::std::convert::From<ConstraintViolation>
|
17330 26117 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
17331 26118 | {
|
17332 26119 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
17333 26120 | let first_validation_exception_field =
|
17334 26121 | constraint_violation.as_validation_exception_field("".to_owned());
|
17335 26122 | let validation_exception = crate::error::ValidationException {
|
17336 26123 | message: format!(
|
17337 26124 | "1 validation error detected. {}",
|
17338 26125 | &first_validation_exception_field.message
|
17339 26126 | ),
|
17340 26127 | field_list: Some(vec![first_validation_exception_field]),
|
17341 26128 | };
|
17342 26129 | Self::ConstraintViolation(
|
17343 26130 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
17344 26131 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
17345 26132 | )
|
17346 26133 | }
|
17347 26134 | }
|
26135 + | /* ServerBuilderGenerator.kt:244 */
|
17348 26136 | impl ::std::convert::From<Builder>
|
17349 26137 | for crate::constrained::MaybeConstrained<crate::input::ConstantQueryStringInput>
|
17350 26138 | {
|
17351 26139 | fn from(builder: Builder) -> Self {
|
17352 26140 | Self::Unconstrained(builder)
|
17353 26141 | }
|
17354 26142 | }
|
26143 + | /* ServerBuilderGenerator.kt:446 */
|
17355 26144 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstantQueryStringInput {
|
17356 26145 | type Error = ConstraintViolation;
|
17357 26146 |
|
17358 26147 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
17359 26148 | builder.build()
|
17360 26149 | }
|
17361 26150 | }
|
17362 - | /// A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26151 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26152 + | /* RustType.kt:516 */
|
17363 26153 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
26154 + | /* ServerBuilderGenerator.kt:211 */
|
17364 26155 | pub(crate) struct Builder {
|
26156 + | /* ServerBuilderGenerator.kt:308 */
|
17365 26157 | pub(crate) hello: ::std::option::Option<::std::string::String>,
|
26158 + | /* ServerBuilderGenerator.kt:211 */
|
17366 26159 | }
|
26160 + | /* ServerBuilderGenerator.kt:215 */
|
17367 26161 | impl Builder {
|
26162 + | /* ServerBuilderGenerator.kt:426 */
|
17368 26163 | #[allow(missing_docs)] // documentation missing in model
|
26164 + | /* ServerBuilderGenerator.kt:428 */
|
17369 26165 | pub(crate) fn set_hello(
|
17370 26166 | mut self,
|
17371 26167 | input: impl ::std::convert::Into<::std::string::String>,
|
17372 26168 | ) -> Self {
|
26169 + | /* ServerBuilderGenerator.kt:429 */
|
17373 26170 | self.hello = Some(input.into());
|
17374 26171 | self
|
26172 + | /* ServerBuilderGenerator.kt:428 */
|
17375 26173 | }
|
17376 - | /// Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
17377 - | ///
|
26174 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26175 + | /// /* ServerBuilderGenerator.kt:260 */
|
17378 26176 | /// The builder fails to construct a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) if a [`ConstraintViolation`] occurs.
|
17379 26177 | ///
|
26178 + | /* ServerBuilderGenerator.kt:271 */
|
17380 26179 | pub fn build(self) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
17381 26180 | self.build_enforcing_all_constraints()
|
17382 26181 | }
|
26182 + | /* ServerBuilderGenerator.kt:283 */
|
17383 26183 | fn build_enforcing_all_constraints(
|
17384 26184 | self,
|
17385 26185 | ) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
17386 - | Ok(crate::input::ConstantQueryStringInput {
|
17387 - | hello: self.hello.ok_or(ConstraintViolation::MissingHello)?,
|
17388 - | })
|
26186 + | /* ServerBuilderGenerator.kt:287 */
|
26187 + | Ok(
|
26188 + | /* ServerBuilderGenerator.kt:542 */
|
26189 + | crate::input::ConstantQueryStringInput {
|
26190 + | /* ServerBuilderGenerator.kt:546 */
|
26191 + | hello: self
|
26192 + | .hello
|
26193 + | /* ServerBuilderGenerator.kt:569 */
|
26194 + | .ok_or(ConstraintViolation::MissingHello)?,
|
26195 + | /* ServerBuilderGenerator.kt:542 */
|
26196 + | }, /* ServerBuilderGenerator.kt:287 */
|
26197 + | )
|
26198 + | /* ServerBuilderGenerator.kt:283 */
|
17389 26199 | }
|
26200 + | /* ServerBuilderGenerator.kt:215 */
|
17390 26201 | }
|
26202 + |
|
26203 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17391 26204 | }
|
17392 - | /// See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26205 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
17393 26206 | pub mod constant_query_string_input {
|
17394 26207 |
|
26208 + | /* RustType.kt:516 */
|
17395 26209 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
17396 - | /// Holds one variant for each of the ways the builder can fail.
|
17397 - |
|
26210 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
26211 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17398 26212 | #[allow(clippy::enum_variant_names)]
|
17399 26213 | pub enum ConstraintViolation {
|
17400 - | /// `hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
26214 + | /// /* ServerBuilderConstraintViolations.kt:138 */`hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
26215 + | /* ServerBuilderConstraintViolations.kt:143 */
|
17401 26216 | MissingHello,
|
26217 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17402 26218 | }
|
26219 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17403 26220 | impl ::std::fmt::Display for ConstraintViolation {
|
26221 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17404 26222 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
26223 + | /* ServerBuilderConstraintViolations.kt:119 */
|
17405 26224 | match self {
|
17406 - | ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
17407 - | }
|
26225 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
26226 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
26227 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17408 26228 | }
|
26229 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17409 26230 | }
|
26231 + | /* ServerBuilderConstraintViolations.kt:84 */
|
17410 26232 | impl ::std::error::Error for ConstraintViolation {}
|
26233 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
17411 26234 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstantQueryStringInput {
|
17412 26235 | type Error = ConstraintViolation;
|
17413 26236 |
|
17414 26237 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
17415 26238 | builder.build()
|
17416 26239 | }
|
17417 26240 | }
|
17418 - | /// A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26241 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26242 + | /* RustType.kt:516 */
|
17419 26243 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
26244 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17420 26245 | pub struct Builder {
|
26246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17421 26247 | pub(crate) hello: ::std::option::Option<::std::string::String>,
|
26248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17422 26249 | }
|
26250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17423 26251 | impl Builder {
|
26252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17424 26253 | #[allow(missing_docs)] // documentation missing in model
|
26254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17425 26255 | pub fn hello(mut self, input: ::std::string::String) -> Self {
|
17426 - | self.hello = Some(input);
|
26256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26257 + | self.hello =
|
26258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
26259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
26261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17427 26262 | self
|
26263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17428 26264 | }
|
17429 - | /// Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
17430 - | ///
|
26265 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
26266 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
17431 26267 | /// The builder fails to construct a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) if you do not provide a value for all non-`Option`al members.
|
17432 26268 | ///
|
26269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
17433 26270 | pub fn build(self) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
17434 26271 | self.build_enforcing_required_and_enum_traits()
|
17435 26272 | }
|
26273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17436 26274 | fn build_enforcing_required_and_enum_traits(
|
17437 26275 | self,
|
17438 26276 | ) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
17439 - | Ok(crate::input::ConstantQueryStringInput {
|
17440 - | hello: self.hello.ok_or(ConstraintViolation::MissingHello)?,
|
17441 - | })
|
26277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
26278 + | Ok(
|
26279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
26280 + | crate::input::ConstantQueryStringInput {
|
26281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
26282 + | hello: self
|
26283 + | .hello
|
26284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
26285 + | .ok_or(ConstraintViolation::MissingHello)?,
|
26286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
26287 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
26288 + | )
|
26289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
17442 26290 | }
|
26291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17443 26292 | }
|
26293 + |
|
26294 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17444 26295 | }
|
17445 - | /// See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26296 + | /// /* ServerBuilderGenerator.kt:171 */See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
17446 26297 | pub(crate) mod all_query_string_types_input_internal {
|
17447 26298 |
|
26299 + | /* RustType.kt:516 */
|
17448 26300 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
17449 - | /// Holds one variant for each of the ways the builder can fail.
|
26301 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
26302 + | /* RustType.kt:516 */
|
17450 26303 | #[non_exhaustive]
|
26304 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17451 26305 | #[allow(clippy::enum_variant_names)]
|
17452 26306 | pub(crate) enum ConstraintViolation {
|
17453 - | /// Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
26307 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
26308 + | /* RustType.kt:516 */
|
17454 26309 | #[doc(hidden)]
|
26310 + | /* ServerBuilderConstraintViolations.kt:164 */
|
17455 26311 | QueryStringSet(crate::model::string_set_internal::ConstraintViolation),
|
17456 - | /// Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
26312 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
26313 + | /* RustType.kt:516 */
|
17457 26314 | #[doc(hidden)]
|
26315 + | /* ServerBuilderConstraintViolations.kt:164 */
|
17458 26316 | QueryIntegerSet(crate::model::integer_set_internal::ConstraintViolation),
|
17459 - | /// Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
26317 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
26318 + | /* RustType.kt:516 */
|
17460 26319 | #[doc(hidden)]
|
26320 + | /* ServerBuilderConstraintViolations.kt:164 */
|
17461 26321 | QueryEnum(crate::model::foo_enum_internal::ConstraintViolation),
|
17462 - | /// Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
26322 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
26323 + | /* RustType.kt:516 */
|
17463 26324 | #[doc(hidden)]
|
26325 + | /* ServerBuilderConstraintViolations.kt:164 */
|
17464 26326 | QueryEnumList(crate::model::foo_enum_list_internal::ConstraintViolation),
|
26327 + | /* ServerBuilderConstraintViolations.kt:75 */
|
17465 26328 | }
|
26329 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17466 26330 | impl ::std::fmt::Display for ConstraintViolation {
|
26331 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17467 26332 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
26333 + | /* ServerBuilderConstraintViolations.kt:119 */
|
17468 26334 | match self {
|
17469 - | ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
17470 - | ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
17471 - | ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
17472 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
17473 - | }
|
26335 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
26336 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
26337 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
26338 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
26339 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
26340 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17474 26341 | }
|
26342 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17475 26343 | }
|
26344 + | /* ServerBuilderConstraintViolations.kt:84 */
|
17476 26345 | impl ::std::error::Error for ConstraintViolation {}
|
26346 + | /* ServerBuilderConstraintViolations.kt:171 */
|
17477 26347 | impl ConstraintViolation {
|
17478 26348 | pub(crate) fn as_validation_exception_field(
|
17479 26349 | self,
|
17480 26350 | path: ::std::string::String,
|
17481 26351 | ) -> crate::model::ValidationExceptionField {
|
17482 26352 | match self {
|
17483 26353 | ConstraintViolation::QueryStringSet(inner) => {
|
17484 26354 | inner.as_validation_exception_field(path + "/queryStringSet")
|
17485 26355 | }
|
17486 26356 | ConstraintViolation::QueryIntegerSet(inner) => {
|
17487 26357 | inner.as_validation_exception_field(path + "/queryIntegerSet")
|
17488 26358 | }
|
17489 26359 | ConstraintViolation::QueryEnum(inner) => {
|
17490 26360 | inner.as_validation_exception_field(path + "/queryEnum")
|
17491 26361 | }
|
17492 26362 | ConstraintViolation::QueryEnumList(inner) => {
|
17493 26363 | inner.as_validation_exception_field(path + "/queryEnumList")
|
17494 26364 | }
|
17495 26365 | }
|
17496 26366 | }
|
17497 26367 | }
|
26368 + | /* ServerBuilderGenerator.kt:234 */
|
17498 26369 | impl ::std::convert::From<ConstraintViolation>
|
17499 26370 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
17500 26371 | {
|
17501 26372 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
17502 26373 | let first_validation_exception_field =
|
17503 26374 | constraint_violation.as_validation_exception_field("".to_owned());
|
17504 26375 | let validation_exception = crate::error::ValidationException {
|
17505 26376 | message: format!(
|
17506 26377 | "1 validation error detected. {}",
|
17507 26378 | &first_validation_exception_field.message
|
17508 26379 | ),
|
17509 26380 | field_list: Some(vec![first_validation_exception_field]),
|
17510 26381 | };
|
17511 26382 | Self::ConstraintViolation(
|
17512 26383 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
17513 26384 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
17514 26385 | )
|
17515 26386 | }
|
17516 26387 | }
|
26388 + | /* ServerBuilderGenerator.kt:244 */
|
17517 26389 | impl ::std::convert::From<Builder>
|
17518 26390 | for crate::constrained::MaybeConstrained<crate::input::AllQueryStringTypesInput>
|
17519 26391 | {
|
17520 26392 | fn from(builder: Builder) -> Self {
|
17521 26393 | Self::Unconstrained(builder)
|
17522 26394 | }
|
17523 26395 | }
|
26396 + | /* ServerBuilderGenerator.kt:446 */
|
17524 26397 | impl ::std::convert::TryFrom<Builder> for crate::input::AllQueryStringTypesInput {
|
17525 26398 | type Error = ConstraintViolation;
|
17526 26399 |
|
17527 26400 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
17528 26401 | builder.build()
|
17529 26402 | }
|
17530 26403 | }
|
17531 - | /// A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26404 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26405 + | /* RustType.kt:516 */
|
17532 26406 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
26407 + | /* ServerBuilderGenerator.kt:211 */
|
17533 26408 | pub(crate) struct Builder {
|
26409 + | /* ServerBuilderGenerator.kt:308 */
|
17534 26410 | pub(crate) query_string: ::std::option::Option<::std::string::String>,
|
26411 + | /* ServerBuilderGenerator.kt:308 */
|
17535 26412 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
26413 + | /* ServerBuilderGenerator.kt:308 */
|
17536 26414 | pub(crate) query_string_set:
|
17537 26415 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
17538 - | pub(crate) query_byte: ::std::option::Option<i8>,
|
26416 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) query_byte: ::std::option::Option<i8>,
|
26417 + | /* ServerBuilderGenerator.kt:308 */
|
17539 26418 | pub(crate) query_short: ::std::option::Option<i16>,
|
26419 + | /* ServerBuilderGenerator.kt:308 */
|
17540 26420 | pub(crate) query_integer: ::std::option::Option<i32>,
|
26421 + | /* ServerBuilderGenerator.kt:308 */
|
17541 26422 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
26423 + | /* ServerBuilderGenerator.kt:308 */
|
17542 26424 | pub(crate) query_integer_set:
|
17543 26425 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::IntegerSet>>,
|
26426 + | /* ServerBuilderGenerator.kt:308 */
|
17544 26427 | pub(crate) query_long: ::std::option::Option<i64>,
|
26428 + | /* ServerBuilderGenerator.kt:308 */
|
17545 26429 | pub(crate) query_float: ::std::option::Option<f32>,
|
26430 + | /* ServerBuilderGenerator.kt:308 */
|
17546 26431 | pub(crate) query_double: ::std::option::Option<f64>,
|
26432 + | /* ServerBuilderGenerator.kt:308 */
|
17547 26433 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
26434 + | /* ServerBuilderGenerator.kt:308 */
|
17548 26435 | pub(crate) query_boolean: ::std::option::Option<bool>,
|
26436 + | /* ServerBuilderGenerator.kt:308 */
|
17549 26437 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
26438 + | /* ServerBuilderGenerator.kt:308 */
|
17550 26439 | pub(crate) query_timestamp:
|
17551 26440 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
26441 + | /* ServerBuilderGenerator.kt:308 */
|
17552 26442 | pub(crate) query_timestamp_list: ::std::option::Option<
|
17553 26443 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17554 26444 | >,
|
26445 + | /* ServerBuilderGenerator.kt:308 */
|
17555 26446 | pub(crate) query_enum:
|
17556 26447 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
26448 + | /* ServerBuilderGenerator.kt:308 */
|
17557 26449 | pub(crate) query_enum_list: ::std::option::Option<
|
17558 26450 | crate::constrained::MaybeConstrained<
|
17559 26451 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
17560 26452 | >,
|
17561 26453 | >,
|
26454 + | /* ServerBuilderGenerator.kt:308 */
|
17562 26455 | pub(crate) query_integer_enum: ::std::option::Option<i32>,
|
26456 + | /* ServerBuilderGenerator.kt:308 */
|
17563 26457 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
26458 + | /* ServerBuilderGenerator.kt:308 */
|
17564 26459 | pub(crate) query_params_map_of_string_list: ::std::option::Option<
|
17565 26460 | ::std::collections::HashMap<
|
17566 26461 | ::std::string::String,
|
17567 26462 | ::std::vec::Vec<::std::string::String>,
|
17568 26463 | >,
|
17569 26464 | >,
|
26465 + | /* ServerBuilderGenerator.kt:211 */
|
17570 26466 | }
|
26467 + | /* ServerBuilderGenerator.kt:215 */
|
17571 26468 | impl Builder {
|
26469 + | /* ServerBuilderGenerator.kt:426 */
|
17572 26470 | #[allow(missing_docs)] // documentation missing in model
|
26471 + | /* ServerBuilderGenerator.kt:428 */
|
17573 26472 | pub(crate) fn set_query_string(
|
17574 26473 | mut self,
|
17575 26474 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
17576 26475 | ) -> Self {
|
26476 + | /* ServerBuilderGenerator.kt:429 */
|
17577 26477 | self.query_string = input.map(|v| v.into());
|
17578 26478 | self
|
26479 + | /* ServerBuilderGenerator.kt:428 */
|
17579 26480 | }
|
26481 + | /* ServerBuilderGenerator.kt:426 */
|
17580 26482 | #[allow(missing_docs)] // documentation missing in model
|
26483 + | /* ServerBuilderGenerator.kt:428 */
|
17581 26484 | pub(crate) fn set_query_string_list(
|
17582 26485 | mut self,
|
17583 26486 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
17584 26487 | ) -> Self {
|
26488 + | /* ServerBuilderGenerator.kt:429 */
|
17585 26489 | self.query_string_list = input.map(|v| v.into());
|
17586 26490 | self
|
26491 + | /* ServerBuilderGenerator.kt:428 */
|
17587 26492 | }
|
26493 + | /* ServerBuilderGenerator.kt:426 */
|
17588 26494 | #[allow(missing_docs)] // documentation missing in model
|
26495 + | /* ServerBuilderGenerator.kt:428 */
|
17589 26496 | pub(crate) fn set_query_string_set(
|
17590 26497 | mut self,
|
17591 26498 | input: Option<
|
17592 26499 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
17593 26500 | >,
|
17594 26501 | ) -> Self {
|
26502 + | /* ServerBuilderGenerator.kt:429 */
|
17595 26503 | self.query_string_set = input.map(|v| v.into());
|
17596 26504 | self
|
26505 + | /* ServerBuilderGenerator.kt:428 */
|
17597 26506 | }
|
26507 + | /* ServerBuilderGenerator.kt:426 */
|
17598 26508 | #[allow(missing_docs)] // documentation missing in model
|
26509 + | /* ServerBuilderGenerator.kt:428 */
|
17599 26510 | pub(crate) fn set_query_byte(
|
17600 26511 | mut self,
|
17601 26512 | input: Option<impl ::std::convert::Into<i8>>,
|
17602 26513 | ) -> Self {
|
26514 + | /* ServerBuilderGenerator.kt:429 */
|
17603 26515 | self.query_byte = input.map(|v| v.into());
|
17604 26516 | self
|
26517 + | /* ServerBuilderGenerator.kt:428 */
|
17605 26518 | }
|
26519 + | /* ServerBuilderGenerator.kt:426 */
|
17606 26520 | #[allow(missing_docs)] // documentation missing in model
|
26521 + | /* ServerBuilderGenerator.kt:428 */
|
17607 26522 | pub(crate) fn set_query_short(
|
17608 26523 | mut self,
|
17609 26524 | input: Option<impl ::std::convert::Into<i16>>,
|
17610 26525 | ) -> Self {
|
26526 + | /* ServerBuilderGenerator.kt:429 */
|
17611 26527 | self.query_short = input.map(|v| v.into());
|
17612 26528 | self
|
26529 + | /* ServerBuilderGenerator.kt:428 */
|
17613 26530 | }
|
26531 + | /* ServerBuilderGenerator.kt:426 */
|
17614 26532 | #[allow(missing_docs)] // documentation missing in model
|
26533 + | /* ServerBuilderGenerator.kt:428 */
|
17615 26534 | pub(crate) fn set_query_integer(
|
17616 26535 | mut self,
|
17617 26536 | input: Option<impl ::std::convert::Into<i32>>,
|
17618 26537 | ) -> Self {
|
26538 + | /* ServerBuilderGenerator.kt:429 */
|
17619 26539 | self.query_integer = input.map(|v| v.into());
|
17620 26540 | self
|
26541 + | /* ServerBuilderGenerator.kt:428 */
|
17621 26542 | }
|
26543 + | /* ServerBuilderGenerator.kt:426 */
|
17622 26544 | #[allow(missing_docs)] // documentation missing in model
|
26545 + | /* ServerBuilderGenerator.kt:428 */
|
17623 26546 | pub(crate) fn set_query_integer_list(
|
17624 26547 | mut self,
|
17625 26548 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
17626 26549 | ) -> Self {
|
26550 + | /* ServerBuilderGenerator.kt:429 */
|
17627 26551 | self.query_integer_list = input.map(|v| v.into());
|
17628 26552 | self
|
26553 + | /* ServerBuilderGenerator.kt:428 */
|
17629 26554 | }
|
26555 + | /* ServerBuilderGenerator.kt:426 */
|
17630 26556 | #[allow(missing_docs)] // documentation missing in model
|
26557 + | /* ServerBuilderGenerator.kt:428 */
|
17631 26558 | pub(crate) fn set_query_integer_set(
|
17632 26559 | mut self,
|
17633 26560 | input: Option<
|
17634 26561 | impl ::std::convert::Into<
|
17635 26562 | crate::constrained::MaybeConstrained<crate::model::IntegerSet>,
|
17636 26563 | >,
|
17637 26564 | >,
|
17638 26565 | ) -> Self {
|
26566 + | /* ServerBuilderGenerator.kt:429 */
|
17639 26567 | self.query_integer_set = input.map(|v| v.into());
|
17640 26568 | self
|
26569 + | /* ServerBuilderGenerator.kt:428 */
|
17641 26570 | }
|
26571 + | /* ServerBuilderGenerator.kt:426 */
|
17642 26572 | #[allow(missing_docs)] // documentation missing in model
|
26573 + | /* ServerBuilderGenerator.kt:428 */
|
17643 26574 | pub(crate) fn set_query_long(
|
17644 26575 | mut self,
|
17645 26576 | input: Option<impl ::std::convert::Into<i64>>,
|
17646 26577 | ) -> Self {
|
26578 + | /* ServerBuilderGenerator.kt:429 */
|
17647 26579 | self.query_long = input.map(|v| v.into());
|
17648 26580 | self
|
26581 + | /* ServerBuilderGenerator.kt:428 */
|
17649 26582 | }
|
26583 + | /* ServerBuilderGenerator.kt:426 */
|
17650 26584 | #[allow(missing_docs)] // documentation missing in model
|
26585 + | /* ServerBuilderGenerator.kt:428 */
|
17651 26586 | pub(crate) fn set_query_float(
|
17652 26587 | mut self,
|
17653 26588 | input: Option<impl ::std::convert::Into<f32>>,
|
17654 26589 | ) -> Self {
|
26590 + | /* ServerBuilderGenerator.kt:429 */
|
17655 26591 | self.query_float = input.map(|v| v.into());
|
17656 26592 | self
|
26593 + | /* ServerBuilderGenerator.kt:428 */
|
17657 26594 | }
|
26595 + | /* ServerBuilderGenerator.kt:426 */
|
17658 26596 | #[allow(missing_docs)] // documentation missing in model
|
26597 + | /* ServerBuilderGenerator.kt:428 */
|
17659 26598 | pub(crate) fn set_query_double(
|
17660 26599 | mut self,
|
17661 26600 | input: Option<impl ::std::convert::Into<f64>>,
|
17662 26601 | ) -> Self {
|
26602 + | /* ServerBuilderGenerator.kt:429 */
|
17663 26603 | self.query_double = input.map(|v| v.into());
|
17664 26604 | self
|
26605 + | /* ServerBuilderGenerator.kt:428 */
|
17665 26606 | }
|
26607 + | /* ServerBuilderGenerator.kt:426 */
|
17666 26608 | #[allow(missing_docs)] // documentation missing in model
|
26609 + | /* ServerBuilderGenerator.kt:428 */
|
17667 26610 | pub(crate) fn set_query_double_list(
|
17668 26611 | mut self,
|
17669 26612 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
17670 26613 | ) -> Self {
|
26614 + | /* ServerBuilderGenerator.kt:429 */
|
17671 26615 | self.query_double_list = input.map(|v| v.into());
|
17672 26616 | self
|
26617 + | /* ServerBuilderGenerator.kt:428 */
|
17673 26618 | }
|
26619 + | /* ServerBuilderGenerator.kt:426 */
|
17674 26620 | #[allow(missing_docs)] // documentation missing in model
|
26621 + | /* ServerBuilderGenerator.kt:428 */
|
17675 26622 | pub(crate) fn set_query_boolean(
|
17676 26623 | mut self,
|
17677 26624 | input: Option<impl ::std::convert::Into<bool>>,
|
17678 26625 | ) -> Self {
|
26626 + | /* ServerBuilderGenerator.kt:429 */
|
17679 26627 | self.query_boolean = input.map(|v| v.into());
|
17680 26628 | self
|
26629 + | /* ServerBuilderGenerator.kt:428 */
|
17681 26630 | }
|
26631 + | /* ServerBuilderGenerator.kt:426 */
|
17682 26632 | #[allow(missing_docs)] // documentation missing in model
|
26633 + | /* ServerBuilderGenerator.kt:428 */
|
17683 26634 | pub(crate) fn set_query_boolean_list(
|
17684 26635 | mut self,
|
17685 26636 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
17686 26637 | ) -> Self {
|
26638 + | /* ServerBuilderGenerator.kt:429 */
|
17687 26639 | self.query_boolean_list = input.map(|v| v.into());
|
17688 26640 | self
|
26641 + | /* ServerBuilderGenerator.kt:428 */
|
17689 26642 | }
|
26643 + | /* ServerBuilderGenerator.kt:426 */
|
17690 26644 | #[allow(missing_docs)] // documentation missing in model
|
26645 + | /* ServerBuilderGenerator.kt:428 */
|
17691 26646 | pub(crate) fn set_query_timestamp(
|
17692 26647 | mut self,
|
17693 26648 | input: Option<
|
17694 26649 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
17695 26650 | >,
|
17696 26651 | ) -> Self {
|
26652 + | /* ServerBuilderGenerator.kt:429 */
|
17697 26653 | self.query_timestamp = input.map(|v| v.into());
|
17698 26654 | self
|
26655 + | /* ServerBuilderGenerator.kt:428 */
|
17699 26656 | }
|
26657 + | /* ServerBuilderGenerator.kt:426 */
|
17700 26658 | #[allow(missing_docs)] // documentation missing in model
|
26659 + | /* ServerBuilderGenerator.kt:428 */
|
17701 26660 | pub(crate) fn set_query_timestamp_list(
|
17702 26661 | mut self,
|
17703 26662 | input: Option<
|
17704 26663 | impl ::std::convert::Into<
|
17705 26664 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17706 26665 | >,
|
17707 26666 | >,
|
17708 26667 | ) -> Self {
|
26668 + | /* ServerBuilderGenerator.kt:429 */
|
17709 26669 | self.query_timestamp_list = input.map(|v| v.into());
|
17710 26670 | self
|
26671 + | /* ServerBuilderGenerator.kt:428 */
|
17711 26672 | }
|
26673 + | /* ServerBuilderGenerator.kt:426 */
|
17712 26674 | #[allow(missing_docs)] // documentation missing in model
|
26675 + | /* ServerBuilderGenerator.kt:428 */
|
17713 26676 | pub(crate) fn set_query_enum(
|
17714 26677 | mut self,
|
17715 26678 | input: Option<
|
17716 26679 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
17717 26680 | >,
|
17718 26681 | ) -> Self {
|
26682 + | /* ServerBuilderGenerator.kt:429 */
|
17719 26683 | self.query_enum = input.map(|v| v.into());
|
17720 26684 | self
|
26685 + | /* ServerBuilderGenerator.kt:428 */
|
17721 26686 | }
|
26687 + | /* ServerBuilderGenerator.kt:426 */
|
17722 26688 | #[allow(missing_docs)] // documentation missing in model
|
26689 + | /* ServerBuilderGenerator.kt:428 */
|
17723 26690 | pub(crate) fn set_query_enum_list(
|
17724 26691 | mut self,
|
17725 26692 | input: Option<
|
17726 26693 | impl ::std::convert::Into<
|
17727 26694 | crate::constrained::MaybeConstrained<
|
17728 26695 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
17729 26696 | >,
|
17730 26697 | >,
|
17731 26698 | >,
|
17732 26699 | ) -> Self {
|
26700 + | /* ServerBuilderGenerator.kt:429 */
|
17733 26701 | self.query_enum_list = input.map(|v| v.into());
|
17734 26702 | self
|
26703 + | /* ServerBuilderGenerator.kt:428 */
|
17735 26704 | }
|
26705 + | /* ServerBuilderGenerator.kt:426 */
|
17736 26706 | #[allow(missing_docs)] // documentation missing in model
|
26707 + | /* ServerBuilderGenerator.kt:428 */
|
17737 26708 | pub(crate) fn set_query_integer_enum(
|
17738 26709 | mut self,
|
17739 26710 | input: Option<impl ::std::convert::Into<i32>>,
|
17740 26711 | ) -> Self {
|
26712 + | /* ServerBuilderGenerator.kt:429 */
|
17741 26713 | self.query_integer_enum = input.map(|v| v.into());
|
17742 26714 | self
|
26715 + | /* ServerBuilderGenerator.kt:428 */
|
17743 26716 | }
|
26717 + | /* ServerBuilderGenerator.kt:426 */
|
17744 26718 | #[allow(missing_docs)] // documentation missing in model
|
26719 + | /* ServerBuilderGenerator.kt:428 */
|
17745 26720 | pub(crate) fn set_query_integer_enum_list(
|
17746 26721 | mut self,
|
17747 26722 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
17748 26723 | ) -> Self {
|
26724 + | /* ServerBuilderGenerator.kt:429 */
|
17749 26725 | self.query_integer_enum_list = input.map(|v| v.into());
|
17750 26726 | self
|
26727 + | /* ServerBuilderGenerator.kt:428 */
|
17751 26728 | }
|
26729 + | /* ServerBuilderGenerator.kt:426 */
|
17752 26730 | #[allow(missing_docs)] // documentation missing in model
|
26731 + | /* ServerBuilderGenerator.kt:428 */
|
17753 26732 | pub(crate) fn set_query_params_map_of_string_list(
|
17754 26733 | mut self,
|
17755 26734 | input: Option<
|
17756 26735 | impl ::std::convert::Into<
|
17757 26736 | ::std::collections::HashMap<
|
17758 26737 | ::std::string::String,
|
17759 26738 | ::std::vec::Vec<::std::string::String>,
|
17760 26739 | >,
|
17761 26740 | >,
|
17762 26741 | >,
|
17763 26742 | ) -> Self {
|
26743 + | /* ServerBuilderGenerator.kt:429 */
|
17764 26744 | self.query_params_map_of_string_list = input.map(|v| v.into());
|
17765 26745 | self
|
26746 + | /* ServerBuilderGenerator.kt:428 */
|
17766 26747 | }
|
17767 - | /// Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
17768 - | ///
|
26748 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26749 + | /// /* ServerBuilderGenerator.kt:260 */
|
17769 26750 | /// The builder fails to construct a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput) if a [`ConstraintViolation`] occurs.
|
17770 26751 | ///
|
17771 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
26752 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
26753 + | /* ServerBuilderGenerator.kt:271 */
|
17772 26754 | pub fn build(self) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
17773 26755 | self.build_enforcing_all_constraints()
|
17774 26756 | }
|
26757 + | /* ServerBuilderGenerator.kt:283 */
|
17775 26758 | fn build_enforcing_all_constraints(
|
17776 26759 | self,
|
17777 26760 | ) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
17778 - | Ok(crate::input::AllQueryStringTypesInput {
|
26761 + | /* ServerBuilderGenerator.kt:287 */
|
26762 + | Ok(
|
26763 + | /* ServerBuilderGenerator.kt:542 */
|
26764 + | crate::input::AllQueryStringTypesInput {
|
26765 + | /* ServerBuilderGenerator.kt:546 */
|
17779 26766 | query_string: self.query_string,
|
26767 + | /* ServerBuilderGenerator.kt:546 */
|
17780 26768 | query_string_list: self.query_string_list,
|
26769 + | /* ServerBuilderGenerator.kt:546 */
|
17781 26770 | query_string_set: self
|
17782 26771 | .query_string_set
|
26772 + | /* ServerBuilderGenerator.kt:602 */
|
17783 26773 | .map(|v| match v {
|
17784 26774 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
17785 26775 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
17786 26776 | })
|
26777 + | /* ServerBuilderGenerator.kt:614 */
|
17787 26778 | .map(|res| res.map_err(ConstraintViolation::QueryStringSet))
|
17788 26779 | .transpose()?
|
26780 + | /* ServerBuilderGenerator.kt:630 */
|
17789 26781 | .map(|v: crate::model::StringSet| v.into()),
|
26782 + | /* ServerBuilderGenerator.kt:546 */
|
17790 26783 | query_byte: self.query_byte,
|
26784 + | /* ServerBuilderGenerator.kt:546 */
|
17791 26785 | query_short: self.query_short,
|
26786 + | /* ServerBuilderGenerator.kt:546 */
|
17792 26787 | query_integer: self.query_integer,
|
26788 + | /* ServerBuilderGenerator.kt:546 */
|
17793 26789 | query_integer_list: self.query_integer_list,
|
26790 + | /* ServerBuilderGenerator.kt:546 */
|
17794 26791 | query_integer_set: self
|
17795 26792 | .query_integer_set
|
26793 + | /* ServerBuilderGenerator.kt:602 */
|
17796 26794 | .map(|v| match v {
|
17797 26795 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
17798 26796 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
17799 26797 | })
|
26798 + | /* ServerBuilderGenerator.kt:614 */
|
17800 26799 | .map(|res| res.map_err(ConstraintViolation::QueryIntegerSet))
|
17801 26800 | .transpose()?
|
26801 + | /* ServerBuilderGenerator.kt:630 */
|
17802 26802 | .map(|v: crate::model::IntegerSet| v.into()),
|
26803 + | /* ServerBuilderGenerator.kt:546 */
|
17803 26804 | query_long: self.query_long,
|
26805 + | /* ServerBuilderGenerator.kt:546 */
|
17804 26806 | query_float: self.query_float,
|
26807 + | /* ServerBuilderGenerator.kt:546 */
|
17805 26808 | query_double: self.query_double,
|
26809 + | /* ServerBuilderGenerator.kt:546 */
|
17806 26810 | query_double_list: self.query_double_list,
|
26811 + | /* ServerBuilderGenerator.kt:546 */
|
17807 26812 | query_boolean: self.query_boolean,
|
26813 + | /* ServerBuilderGenerator.kt:546 */
|
17808 26814 | query_boolean_list: self.query_boolean_list,
|
26815 + | /* ServerBuilderGenerator.kt:546 */
|
17809 26816 | query_timestamp: self.query_timestamp,
|
26817 + | /* ServerBuilderGenerator.kt:546 */
|
17810 26818 | query_timestamp_list: self.query_timestamp_list,
|
26819 + | /* ServerBuilderGenerator.kt:546 */
|
17811 26820 | query_enum: self
|
17812 26821 | .query_enum
|
26822 + | /* ServerBuilderGenerator.kt:602 */
|
17813 26823 | .map(|v| match v {
|
17814 26824 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
17815 26825 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
17816 26826 | })
|
26827 + | /* ServerBuilderGenerator.kt:614 */
|
17817 26828 | .map(|res| res.map_err(ConstraintViolation::QueryEnum))
|
17818 26829 | .transpose()?,
|
26830 + | /* ServerBuilderGenerator.kt:546 */
|
17819 26831 | query_enum_list: self
|
17820 26832 | .query_enum_list
|
26833 + | /* ServerBuilderGenerator.kt:602 */
|
17821 26834 | .map(|v| match v {
|
17822 26835 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
17823 26836 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
17824 26837 | })
|
26838 + | /* ServerBuilderGenerator.kt:614 */
|
17825 26839 | .map(|res| {
|
17826 26840 | res.map(|v| v.into())
|
17827 26841 | .map_err(ConstraintViolation::QueryEnumList)
|
17828 26842 | })
|
17829 26843 | .transpose()?,
|
26844 + | /* ServerBuilderGenerator.kt:546 */
|
17830 26845 | query_integer_enum: self.query_integer_enum,
|
26846 + | /* ServerBuilderGenerator.kt:546 */
|
17831 26847 | query_integer_enum_list: self.query_integer_enum_list,
|
26848 + | /* ServerBuilderGenerator.kt:546 */
|
17832 26849 | query_params_map_of_string_list: self.query_params_map_of_string_list,
|
17833 - | })
|
26850 + | /* ServerBuilderGenerator.kt:542 */
|
26851 + | }, /* ServerBuilderGenerator.kt:287 */
|
26852 + | )
|
26853 + | /* ServerBuilderGenerator.kt:283 */
|
17834 26854 | }
|
26855 + | /* ServerBuilderGenerator.kt:215 */
|
17835 26856 | }
|
26857 + |
|
26858 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
17836 26859 | }
|
17837 - | /// See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26860 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
17838 26861 | pub mod all_query_string_types_input {
|
17839 26862 |
|
26863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
17840 26864 | impl ::std::convert::From<Builder> for crate::input::AllQueryStringTypesInput {
|
17841 26865 | fn from(builder: Builder) -> Self {
|
17842 26866 | builder.build()
|
17843 26867 | }
|
17844 26868 | }
|
17845 - | /// A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26869 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
26870 + | /* RustType.kt:516 */
|
17846 26871 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
26872 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17847 26873 | pub struct Builder {
|
26874 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17848 26875 | pub(crate) query_string: ::std::option::Option<::std::string::String>,
|
26876 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17849 26877 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
26878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17850 26879 | pub(crate) query_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
26880 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17851 26881 | pub(crate) query_byte: ::std::option::Option<i8>,
|
26882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17852 26883 | pub(crate) query_short: ::std::option::Option<i16>,
|
26884 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17853 26885 | pub(crate) query_integer: ::std::option::Option<i32>,
|
26886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17854 26887 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
26888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17855 26889 | pub(crate) query_integer_set: ::std::option::Option<::std::vec::Vec<i32>>,
|
26890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17856 26891 | pub(crate) query_long: ::std::option::Option<i64>,
|
26892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17857 26893 | pub(crate) query_float: ::std::option::Option<f32>,
|
26894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17858 26895 | pub(crate) query_double: ::std::option::Option<f64>,
|
26896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17859 26897 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
26898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17860 26899 | pub(crate) query_boolean: ::std::option::Option<bool>,
|
26900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17861 26901 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
26902 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17862 26903 | pub(crate) query_timestamp:
|
17863 26904 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
26905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17864 26906 | pub(crate) query_timestamp_list: ::std::option::Option<
|
17865 26907 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17866 26908 | >,
|
26909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17867 26910 | pub(crate) query_enum: ::std::option::Option<crate::model::FooEnum>,
|
26911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17868 26912 | pub(crate) query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
26913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17869 26914 | pub(crate) query_integer_enum: ::std::option::Option<i32>,
|
26915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17870 26916 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
26917 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
17871 26918 | pub(crate) query_params_map_of_string_list: ::std::option::Option<
|
17872 26919 | ::std::collections::HashMap<
|
17873 26920 | ::std::string::String,
|
17874 26921 | ::std::vec::Vec<::std::string::String>,
|
17875 26922 | >,
|
17876 26923 | >,
|
26924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
17877 26925 | }
|
26926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
17878 26927 | impl Builder {
|
26928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17879 26929 | #[allow(missing_docs)] // documentation missing in model
|
26930 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17880 26931 | pub fn query_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
17881 - | self.query_string = input;
|
26932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26933 + | self.query_string =
|
26934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17882 26936 | self
|
26937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17883 26938 | }
|
26939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17884 26940 | #[allow(missing_docs)] // documentation missing in model
|
26941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17885 26942 | pub fn query_string_list(
|
17886 26943 | mut self,
|
17887 26944 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17888 26945 | ) -> Self {
|
17889 - | self.query_string_list = input;
|
26946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26947 + | self.query_string_list =
|
26948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17890 26950 | self
|
26951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17891 26952 | }
|
26953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17892 26954 | #[allow(missing_docs)] // documentation missing in model
|
26955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17893 26956 | pub fn query_string_set(
|
17894 26957 | mut self,
|
17895 26958 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17896 26959 | ) -> Self {
|
17897 - | self.query_string_set = input;
|
26960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26961 + | self.query_string_set =
|
26962 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17898 26964 | self
|
26965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17899 26966 | }
|
26967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17900 26968 | #[allow(missing_docs)] // documentation missing in model
|
26969 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17901 26970 | pub fn query_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
17902 - | self.query_byte = input;
|
26971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26972 + | self.query_byte =
|
26973 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17903 26975 | self
|
26976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17904 26977 | }
|
26978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17905 26979 | #[allow(missing_docs)] // documentation missing in model
|
26980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17906 26981 | pub fn query_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
17907 - | self.query_short = input;
|
26982 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26983 + | self.query_short =
|
26984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17908 26986 | self
|
26987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17909 26988 | }
|
26989 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17910 26990 | #[allow(missing_docs)] // documentation missing in model
|
26991 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17911 26992 | pub fn query_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
17912 - | self.query_integer = input;
|
26993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
26994 + | self.query_integer =
|
26995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
26996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17913 26997 | self
|
26998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17914 26999 | }
|
27000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17915 27001 | #[allow(missing_docs)] // documentation missing in model
|
27002 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17916 27003 | pub fn query_integer_list(
|
17917 27004 | mut self,
|
17918 27005 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
17919 27006 | ) -> Self {
|
17920 - | self.query_integer_list = input;
|
27007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27008 + | self.query_integer_list =
|
27009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27010 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17921 27011 | self
|
27012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17922 27013 | }
|
27014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17923 27015 | #[allow(missing_docs)] // documentation missing in model
|
27016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17924 27017 | pub fn query_integer_set(
|
17925 27018 | mut self,
|
17926 27019 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
17927 27020 | ) -> Self {
|
17928 - | self.query_integer_set = input;
|
27021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27022 + | self.query_integer_set =
|
27023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17929 27025 | self
|
27026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17930 27027 | }
|
27028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17931 27029 | #[allow(missing_docs)] // documentation missing in model
|
27030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17932 27031 | pub fn query_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
17933 - | self.query_long = input;
|
27032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27033 + | self.query_long =
|
27034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27035 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17934 27036 | self
|
27037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17935 27038 | }
|
27039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17936 27040 | #[allow(missing_docs)] // documentation missing in model
|
27041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17937 27042 | pub fn query_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
17938 - | self.query_float = input;
|
27043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27044 + | self.query_float =
|
27045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27046 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17939 27047 | self
|
27048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17940 27049 | }
|
27050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17941 27051 | #[allow(missing_docs)] // documentation missing in model
|
27052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17942 27053 | pub fn query_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
17943 - | self.query_double = input;
|
27054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27055 + | self.query_double =
|
27056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17944 27058 | self
|
27059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17945 27060 | }
|
27061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17946 27062 | #[allow(missing_docs)] // documentation missing in model
|
27063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17947 27064 | pub fn query_double_list(
|
17948 27065 | mut self,
|
17949 27066 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
17950 27067 | ) -> Self {
|
17951 - | self.query_double_list = input;
|
27068 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27069 + | self.query_double_list =
|
27070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27071 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17952 27072 | self
|
27073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17953 27074 | }
|
27075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17954 27076 | #[allow(missing_docs)] // documentation missing in model
|
27077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17955 27078 | pub fn query_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
|
17956 - | self.query_boolean = input;
|
27079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27080 + | self.query_boolean =
|
27081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17957 27083 | self
|
27084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17958 27085 | }
|
27086 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17959 27087 | #[allow(missing_docs)] // documentation missing in model
|
27088 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17960 27089 | pub fn query_boolean_list(
|
17961 27090 | mut self,
|
17962 27091 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
17963 27092 | ) -> Self {
|
17964 - | self.query_boolean_list = input;
|
27093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27094 + | self.query_boolean_list =
|
27095 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27096 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17965 27097 | self
|
27098 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17966 27099 | }
|
27100 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17967 27101 | #[allow(missing_docs)] // documentation missing in model
|
27102 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17968 27103 | pub fn query_timestamp(
|
17969 27104 | mut self,
|
17970 27105 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
17971 27106 | ) -> Self {
|
17972 - | self.query_timestamp = input;
|
27107 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27108 + | self.query_timestamp =
|
27109 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27110 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17973 27111 | self
|
27112 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17974 27113 | }
|
27114 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17975 27115 | #[allow(missing_docs)] // documentation missing in model
|
27116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17976 27117 | pub fn query_timestamp_list(
|
17977 27118 | mut self,
|
17978 27119 | input: ::std::option::Option<
|
17979 27120 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
17980 27121 | >,
|
17981 27122 | ) -> Self {
|
17982 - | self.query_timestamp_list = input;
|
27123 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27124 + | self.query_timestamp_list =
|
27125 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27126 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17983 27127 | self
|
27128 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17984 27129 | }
|
27130 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17985 27131 | #[allow(missing_docs)] // documentation missing in model
|
27132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17986 27133 | pub fn query_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
17987 - | self.query_enum = input;
|
27134 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27135 + | self.query_enum =
|
27136 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27137 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17988 27138 | self
|
27139 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17989 27140 | }
|
27141 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17990 27142 | #[allow(missing_docs)] // documentation missing in model
|
27143 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17991 27144 | pub fn query_enum_list(
|
17992 27145 | mut self,
|
17993 27146 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
17994 27147 | ) -> Self {
|
17995 - | self.query_enum_list = input;
|
27148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27149 + | self.query_enum_list =
|
27150 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
17996 27152 | self
|
27153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17997 27154 | }
|
27155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
17998 27156 | #[allow(missing_docs)] // documentation missing in model
|
27157 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
17999 27158 | pub fn query_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
18000 - | self.query_integer_enum = input;
|
27159 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27160 + | self.query_integer_enum =
|
27161 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27162 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18001 27163 | self
|
27164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18002 27165 | }
|
27166 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18003 27167 | #[allow(missing_docs)] // documentation missing in model
|
27168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18004 27169 | pub fn query_integer_enum_list(
|
18005 27170 | mut self,
|
18006 27171 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
18007 27172 | ) -> Self {
|
18008 - | self.query_integer_enum_list = input;
|
27173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27174 + | self.query_integer_enum_list =
|
27175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27176 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18009 27177 | self
|
27178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18010 27179 | }
|
27180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18011 27181 | #[allow(missing_docs)] // documentation missing in model
|
27182 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18012 27183 | pub fn query_params_map_of_string_list(
|
18013 27184 | mut self,
|
18014 27185 | input: ::std::option::Option<
|
18015 27186 | ::std::collections::HashMap<
|
18016 27187 | ::std::string::String,
|
18017 27188 | ::std::vec::Vec<::std::string::String>,
|
18018 27189 | >,
|
18019 27190 | >,
|
18020 27191 | ) -> Self {
|
18021 - | self.query_params_map_of_string_list = input;
|
27192 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27193 + | self.query_params_map_of_string_list =
|
27194 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18022 27196 | self
|
27197 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18023 27198 | }
|
18024 - | /// Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
27199 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
27200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
18025 27201 | pub fn build(self) -> crate::input::AllQueryStringTypesInput {
|
18026 27202 | self.build_enforcing_required_and_enum_traits()
|
18027 27203 | }
|
27204 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18028 27205 | fn build_enforcing_required_and_enum_traits(
|
18029 27206 | self,
|
18030 27207 | ) -> crate::input::AllQueryStringTypesInput {
|
27208 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18031 27209 | crate::input::AllQueryStringTypesInput {
|
27210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18032 27211 | query_string: self.query_string,
|
27212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18033 27213 | query_string_list: self.query_string_list,
|
27214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18034 27215 | query_string_set: self.query_string_set,
|
27216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18035 27217 | query_byte: self.query_byte,
|
27218 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18036 27219 | query_short: self.query_short,
|
27220 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18037 27221 | query_integer: self.query_integer,
|
27222 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18038 27223 | query_integer_list: self.query_integer_list,
|
27224 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18039 27225 | query_integer_set: self.query_integer_set,
|
27226 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18040 27227 | query_long: self.query_long,
|
27228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18041 27229 | query_float: self.query_float,
|
27230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18042 27231 | query_double: self.query_double,
|
27232 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18043 27233 | query_double_list: self.query_double_list,
|
27234 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18044 27235 | query_boolean: self.query_boolean,
|
27236 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18045 27237 | query_boolean_list: self.query_boolean_list,
|
27238 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18046 27239 | query_timestamp: self.query_timestamp,
|
27240 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18047 27241 | query_timestamp_list: self.query_timestamp_list,
|
27242 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18048 27243 | query_enum: self.query_enum,
|
27244 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18049 27245 | query_enum_list: self.query_enum_list,
|
27246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18050 27247 | query_integer_enum: self.query_integer_enum,
|
27248 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18051 27249 | query_integer_enum_list: self.query_integer_enum_list,
|
27250 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18052 27251 | query_params_map_of_string_list: self.query_params_map_of_string_list,
|
27252 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
18053 27253 | }
|
27254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18054 27255 | }
|
27256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18055 27257 | }
|
27258 + |
|
27259 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18056 27260 | }
|
18057 - | /// See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27261 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
18058 27262 | pub(crate) mod http_request_with_regex_literal_input_internal {
|
18059 27263 |
|
27264 + | /* RustType.kt:516 */
|
18060 27265 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18061 - | /// Holds one variant for each of the ways the builder can fail.
|
27266 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27267 + | /* RustType.kt:516 */
|
18062 27268 | #[non_exhaustive]
|
27269 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18063 27270 | #[allow(clippy::enum_variant_names)]
|
18064 27271 | pub(crate) enum ConstraintViolation {
|
18065 - | /// `str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
27272 + | /// /* ServerBuilderConstraintViolations.kt:138 */`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
27273 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18066 27274 | MissingStr,
|
27275 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18067 27276 | }
|
27277 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18068 27278 | impl ::std::fmt::Display for ConstraintViolation {
|
27279 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18069 27280 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27281 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18070 27282 | match self {
|
18071 - | ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
18072 - | }
|
27283 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
27284 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27285 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18073 27286 | }
|
27287 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18074 27288 | }
|
27289 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18075 27290 | impl ::std::error::Error for ConstraintViolation {}
|
27291 + | /* ServerBuilderConstraintViolations.kt:171 */
|
18076 27292 | impl ConstraintViolation {
|
18077 27293 | pub(crate) fn as_validation_exception_field(
|
18078 27294 | self,
|
18079 27295 | path: ::std::string::String,
|
18080 27296 | ) -> crate::model::ValidationExceptionField {
|
18081 27297 | match self {
|
18082 27298 | ConstraintViolation::MissingStr => crate::model::ValidationExceptionField {
|
18083 27299 | message: format!(
|
18084 27300 | "Value at '{}/str' failed to satisfy constraint: Member must not be null",
|
18085 27301 | path
|
18086 27302 | ),
|
18087 27303 | path: path + "/str",
|
18088 27304 | },
|
18089 27305 | }
|
18090 27306 | }
|
18091 27307 | }
|
27308 + | /* ServerBuilderGenerator.kt:234 */
|
18092 27309 | impl ::std::convert::From<ConstraintViolation>
|
18093 27310 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
18094 27311 | {
|
18095 27312 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
18096 27313 | let first_validation_exception_field =
|
18097 27314 | constraint_violation.as_validation_exception_field("".to_owned());
|
18098 27315 | let validation_exception = crate::error::ValidationException {
|
18099 27316 | message: format!(
|
18100 27317 | "1 validation error detected. {}",
|
18101 27318 | &first_validation_exception_field.message
|
18102 27319 | ),
|
18103 27320 | field_list: Some(vec![first_validation_exception_field]),
|
18104 27321 | };
|
18105 27322 | Self::ConstraintViolation(
|
18106 27323 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
18107 27324 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
18108 27325 | )
|
18109 27326 | }
|
18110 27327 | }
|
27328 + | /* ServerBuilderGenerator.kt:244 */
|
18111 27329 | impl ::std::convert::From<Builder>
|
18112 27330 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithRegexLiteralInput>
|
18113 27331 | {
|
18114 27332 | fn from(builder: Builder) -> Self {
|
18115 27333 | Self::Unconstrained(builder)
|
18116 27334 | }
|
18117 27335 | }
|
27336 + | /* ServerBuilderGenerator.kt:446 */
|
18118 27337 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithRegexLiteralInput {
|
18119 27338 | type Error = ConstraintViolation;
|
18120 27339 |
|
18121 27340 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18122 27341 | builder.build()
|
18123 27342 | }
|
18124 27343 | }
|
18125 - | /// A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27344 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27345 + | /* RustType.kt:516 */
|
18126 27346 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27347 + | /* ServerBuilderGenerator.kt:211 */
|
18127 27348 | pub(crate) struct Builder {
|
27349 + | /* ServerBuilderGenerator.kt:308 */
|
18128 27350 | pub(crate) str: ::std::option::Option<::std::string::String>,
|
27351 + | /* ServerBuilderGenerator.kt:211 */
|
18129 27352 | }
|
27353 + | /* ServerBuilderGenerator.kt:215 */
|
18130 27354 | impl Builder {
|
27355 + | /* ServerBuilderGenerator.kt:426 */
|
18131 27356 | #[allow(missing_docs)] // documentation missing in model
|
27357 + | /* ServerBuilderGenerator.kt:428 */
|
18132 27358 | pub(crate) fn set_str(
|
18133 27359 | mut self,
|
18134 27360 | input: impl ::std::convert::Into<::std::string::String>,
|
18135 27361 | ) -> Self {
|
27362 + | /* ServerBuilderGenerator.kt:429 */
|
18136 27363 | self.str = Some(input.into());
|
18137 27364 | self
|
27365 + | /* ServerBuilderGenerator.kt:428 */
|
18138 27366 | }
|
18139 - | /// Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
18140 - | ///
|
27367 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27368 + | /// /* ServerBuilderGenerator.kt:260 */
|
18141 27369 | /// The builder fails to construct a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) if a [`ConstraintViolation`] occurs.
|
18142 27370 | ///
|
27371 + | /* ServerBuilderGenerator.kt:271 */
|
18143 27372 | pub fn build(
|
18144 27373 | self,
|
18145 27374 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
18146 27375 | self.build_enforcing_all_constraints()
|
18147 27376 | }
|
27377 + | /* ServerBuilderGenerator.kt:283 */
|
18148 27378 | fn build_enforcing_all_constraints(
|
18149 27379 | self,
|
18150 27380 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
18151 - | Ok(crate::input::HttpRequestWithRegexLiteralInput {
|
18152 - | str: self.str.ok_or(ConstraintViolation::MissingStr)?,
|
18153 - | })
|
27381 + | /* ServerBuilderGenerator.kt:287 */
|
27382 + | Ok(
|
27383 + | /* ServerBuilderGenerator.kt:542 */
|
27384 + | crate::input::HttpRequestWithRegexLiteralInput {
|
27385 + | /* ServerBuilderGenerator.kt:546 */
|
27386 + | str: self
|
27387 + | .str
|
27388 + | /* ServerBuilderGenerator.kt:569 */
|
27389 + | .ok_or(ConstraintViolation::MissingStr)?,
|
27390 + | /* ServerBuilderGenerator.kt:542 */
|
27391 + | }, /* ServerBuilderGenerator.kt:287 */
|
27392 + | )
|
27393 + | /* ServerBuilderGenerator.kt:283 */
|
18154 27394 | }
|
27395 + | /* ServerBuilderGenerator.kt:215 */
|
18155 27396 | }
|
27397 + |
|
27398 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18156 27399 | }
|
18157 - | /// See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27400 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
18158 27401 | pub mod http_request_with_regex_literal_input {
|
18159 27402 |
|
27403 + | /* RustType.kt:516 */
|
18160 27404 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18161 - | /// Holds one variant for each of the ways the builder can fail.
|
18162 - |
|
27405 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27406 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18163 27407 | #[allow(clippy::enum_variant_names)]
|
18164 27408 | pub enum ConstraintViolation {
|
18165 - | /// `str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
27409 + | /// /* ServerBuilderConstraintViolations.kt:138 */`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
27410 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18166 27411 | MissingStr,
|
27412 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18167 27413 | }
|
27414 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18168 27415 | impl ::std::fmt::Display for ConstraintViolation {
|
27416 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18169 27417 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27418 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18170 27419 | match self {
|
18171 - | ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
18172 - | }
|
27420 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
27421 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27422 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18173 27423 | }
|
27424 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18174 27425 | }
|
27426 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18175 27427 | impl ::std::error::Error for ConstraintViolation {}
|
27428 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
18176 27429 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithRegexLiteralInput {
|
18177 27430 | type Error = ConstraintViolation;
|
18178 27431 |
|
18179 27432 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18180 27433 | builder.build()
|
18181 27434 | }
|
18182 27435 | }
|
18183 - | /// A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27436 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27437 + | /* RustType.kt:516 */
|
18184 27438 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18185 27440 | pub struct Builder {
|
27441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18186 27442 | pub(crate) str: ::std::option::Option<::std::string::String>,
|
27443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18187 27444 | }
|
27445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18188 27446 | impl Builder {
|
27447 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18189 27448 | #[allow(missing_docs)] // documentation missing in model
|
27449 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18190 27450 | pub fn str(mut self, input: ::std::string::String) -> Self {
|
18191 - | self.str = Some(input);
|
27451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27452 + | self.str =
|
27453 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
27454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27455 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
27456 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18192 27457 | self
|
27458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18193 27459 | }
|
18194 - | /// Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
18195 - | ///
|
27460 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
27461 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
18196 27462 | /// The builder fails to construct a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) if you do not provide a value for all non-`Option`al members.
|
18197 27463 | ///
|
27464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
18198 27465 | pub fn build(
|
18199 27466 | self,
|
18200 27467 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
18201 27468 | self.build_enforcing_required_and_enum_traits()
|
18202 27469 | }
|
27470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18203 27471 | fn build_enforcing_required_and_enum_traits(
|
18204 27472 | self,
|
18205 27473 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
18206 - | Ok(crate::input::HttpRequestWithRegexLiteralInput {
|
18207 - | str: self.str.ok_or(ConstraintViolation::MissingStr)?,
|
18208 - | })
|
27474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
27475 + | Ok(
|
27476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
27477 + | crate::input::HttpRequestWithRegexLiteralInput {
|
27478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
27479 + | str: self
|
27480 + | .str
|
27481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
27482 + | .ok_or(ConstraintViolation::MissingStr)?,
|
27483 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
27484 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
27485 + | )
|
27486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18209 27487 | }
|
27488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18210 27489 | }
|
27490 + |
|
27491 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18211 27492 | }
|
18212 - | /// See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27493 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
18213 27494 | pub(crate) mod http_request_with_float_labels_input_internal {
|
18214 27495 |
|
27496 + | /* RustType.kt:516 */
|
18215 27497 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18216 - | /// Holds one variant for each of the ways the builder can fail.
|
27498 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27499 + | /* RustType.kt:516 */
|
18217 27500 | #[non_exhaustive]
|
27501 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18218 27502 | #[allow(clippy::enum_variant_names)]
|
18219 27503 | pub(crate) enum ConstraintViolation {
|
18220 - | /// `float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27504 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27505 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18221 27506 | MissingFloat,
|
18222 - | /// `double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27507 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27508 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18223 27509 | MissingDouble,
|
27510 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18224 27511 | }
|
27512 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18225 27513 | impl ::std::fmt::Display for ConstraintViolation {
|
27514 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18226 27515 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27516 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18227 27517 | match self {
|
18228 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
18229 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
18230 - | }
|
27518 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
27519 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
27520 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27521 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18231 27522 | }
|
27523 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18232 27524 | }
|
27525 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18233 27526 | impl ::std::error::Error for ConstraintViolation {}
|
27527 + | /* ServerBuilderConstraintViolations.kt:171 */
|
18234 27528 | impl ConstraintViolation {
|
18235 27529 | pub(crate) fn as_validation_exception_field(
|
18236 27530 | self,
|
18237 27531 | path: ::std::string::String,
|
18238 27532 | ) -> crate::model::ValidationExceptionField {
|
18239 27533 | match self {
|
18240 27534 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
18241 27535 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
18242 27536 | path: path + "/float",
|
18243 27537 | },
|
18244 27538 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
18245 27539 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
18246 27540 | path: path + "/double",
|
18247 27541 | },
|
18248 27542 | }
|
18249 27543 | }
|
18250 27544 | }
|
27545 + | /* ServerBuilderGenerator.kt:234 */
|
18251 27546 | impl ::std::convert::From<ConstraintViolation>
|
18252 27547 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
18253 27548 | {
|
18254 27549 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
18255 27550 | let first_validation_exception_field =
|
18256 27551 | constraint_violation.as_validation_exception_field("".to_owned());
|
18257 27552 | let validation_exception = crate::error::ValidationException {
|
18258 27553 | message: format!(
|
18259 27554 | "1 validation error detected. {}",
|
18260 27555 | &first_validation_exception_field.message
|
18261 27556 | ),
|
18262 27557 | field_list: Some(vec![first_validation_exception_field]),
|
18263 27558 | };
|
18264 27559 | Self::ConstraintViolation(
|
18265 27560 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
18266 27561 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
18267 27562 | )
|
18268 27563 | }
|
18269 27564 | }
|
27565 + | /* ServerBuilderGenerator.kt:244 */
|
18270 27566 | impl ::std::convert::From<Builder>
|
18271 27567 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithFloatLabelsInput>
|
18272 27568 | {
|
18273 27569 | fn from(builder: Builder) -> Self {
|
18274 27570 | Self::Unconstrained(builder)
|
18275 27571 | }
|
18276 27572 | }
|
27573 + | /* ServerBuilderGenerator.kt:446 */
|
18277 27574 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithFloatLabelsInput {
|
18278 27575 | type Error = ConstraintViolation;
|
18279 27576 |
|
18280 27577 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18281 27578 | builder.build()
|
18282 27579 | }
|
18283 27580 | }
|
18284 - | /// A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27581 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27582 + | /* RustType.kt:516 */
|
18285 27583 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27584 + | /* ServerBuilderGenerator.kt:211 */
|
18286 27585 | pub(crate) struct Builder {
|
18287 - | pub(crate) float: ::std::option::Option<f32>,
|
27586 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
27587 + | /* ServerBuilderGenerator.kt:308 */
|
18288 27588 | pub(crate) double: ::std::option::Option<f64>,
|
27589 + | /* ServerBuilderGenerator.kt:211 */
|
18289 27590 | }
|
27591 + | /* ServerBuilderGenerator.kt:215 */
|
18290 27592 | impl Builder {
|
27593 + | /* ServerBuilderGenerator.kt:426 */
|
18291 27594 | #[allow(missing_docs)] // documentation missing in model
|
27595 + | /* ServerBuilderGenerator.kt:428 */
|
18292 27596 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
27597 + | /* ServerBuilderGenerator.kt:429 */
|
18293 27598 | self.float = Some(input.into());
|
18294 27599 | self
|
27600 + | /* ServerBuilderGenerator.kt:428 */
|
18295 27601 | }
|
27602 + | /* ServerBuilderGenerator.kt:426 */
|
18296 27603 | #[allow(missing_docs)] // documentation missing in model
|
27604 + | /* ServerBuilderGenerator.kt:428 */
|
18297 27605 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
27606 + | /* ServerBuilderGenerator.kt:429 */
|
18298 27607 | self.double = Some(input.into());
|
18299 27608 | self
|
27609 + | /* ServerBuilderGenerator.kt:428 */
|
18300 27610 | }
|
18301 - | /// Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
18302 - | ///
|
27611 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27612 + | /// /* ServerBuilderGenerator.kt:260 */
|
18303 27613 | /// The builder fails to construct a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) if a [`ConstraintViolation`] occurs.
|
18304 27614 | ///
|
18305 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
27615 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
27616 + | /* ServerBuilderGenerator.kt:271 */
|
18306 27617 | pub fn build(
|
18307 27618 | self,
|
18308 27619 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
18309 27620 | self.build_enforcing_all_constraints()
|
18310 27621 | }
|
27622 + | /* ServerBuilderGenerator.kt:283 */
|
18311 27623 | fn build_enforcing_all_constraints(
|
18312 27624 | self,
|
18313 27625 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
18314 - | Ok(crate::input::HttpRequestWithFloatLabelsInput {
|
18315 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
18316 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
18317 - | })
|
27626 + | /* ServerBuilderGenerator.kt:287 */
|
27627 + | Ok(
|
27628 + | /* ServerBuilderGenerator.kt:542 */
|
27629 + | crate::input::HttpRequestWithFloatLabelsInput {
|
27630 + | /* ServerBuilderGenerator.kt:546 */
|
27631 + | float: self
|
27632 + | .float
|
27633 + | /* ServerBuilderGenerator.kt:569 */
|
27634 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
27635 + | /* ServerBuilderGenerator.kt:546 */
|
27636 + | double: self
|
27637 + | .double
|
27638 + | /* ServerBuilderGenerator.kt:569 */
|
27639 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
27640 + | /* ServerBuilderGenerator.kt:542 */
|
27641 + | }, /* ServerBuilderGenerator.kt:287 */
|
27642 + | )
|
27643 + | /* ServerBuilderGenerator.kt:283 */
|
18318 27644 | }
|
27645 + | /* ServerBuilderGenerator.kt:215 */
|
18319 27646 | }
|
27647 + |
|
27648 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18320 27649 | }
|
18321 - | /// See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27650 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
18322 27651 | pub mod http_request_with_float_labels_input {
|
18323 27652 |
|
27653 + | /* RustType.kt:516 */
|
18324 27654 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18325 - | /// Holds one variant for each of the ways the builder can fail.
|
18326 - |
|
27655 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27656 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18327 27657 | #[allow(clippy::enum_variant_names)]
|
18328 27658 | pub enum ConstraintViolation {
|
18329 - | /// `float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27659 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27660 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18330 27661 | MissingFloat,
|
18331 - | /// `double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27662 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
27663 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18332 27664 | MissingDouble,
|
27665 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18333 27666 | }
|
27667 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18334 27668 | impl ::std::fmt::Display for ConstraintViolation {
|
27669 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18335 27670 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27671 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18336 27672 | match self {
|
18337 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
18338 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
18339 - | }
|
27673 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
27674 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
27675 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27676 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18340 27677 | }
|
27678 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18341 27679 | }
|
27680 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18342 27681 | impl ::std::error::Error for ConstraintViolation {}
|
27682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
18343 27683 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithFloatLabelsInput {
|
18344 27684 | type Error = ConstraintViolation;
|
18345 27685 |
|
18346 27686 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18347 27687 | builder.build()
|
18348 27688 | }
|
18349 27689 | }
|
18350 - | /// A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27690 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27691 + | /* RustType.kt:516 */
|
18351 27692 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27693 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18352 27694 | pub struct Builder {
|
27695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18353 27696 | pub(crate) float: ::std::option::Option<f32>,
|
27697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18354 27698 | pub(crate) double: ::std::option::Option<f64>,
|
27699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18355 27700 | }
|
27701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18356 27702 | impl Builder {
|
27703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18357 27704 | #[allow(missing_docs)] // documentation missing in model
|
27705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18358 27706 | pub fn float(mut self, input: f32) -> Self {
|
18359 - | self.float = Some(input);
|
27707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27708 + | self.float =
|
27709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
27710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27711 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
27712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18360 27713 | self
|
27714 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18361 27715 | }
|
27716 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18362 27717 | #[allow(missing_docs)] // documentation missing in model
|
27718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18363 27719 | pub fn double(mut self, input: f64) -> Self {
|
18364 - | self.double = Some(input);
|
27720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27721 + | self.double =
|
27722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
27723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
27724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
27725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18365 27726 | self
|
27727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18366 27728 | }
|
18367 - | /// Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
18368 - | ///
|
27729 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
27730 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
18369 27731 | /// The builder fails to construct a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) if you do not provide a value for all non-`Option`al members.
|
18370 27732 | ///
|
27733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
18371 27734 | pub fn build(
|
18372 27735 | self,
|
18373 27736 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
18374 27737 | self.build_enforcing_required_and_enum_traits()
|
18375 27738 | }
|
27739 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18376 27740 | fn build_enforcing_required_and_enum_traits(
|
18377 27741 | self,
|
18378 27742 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
18379 - | Ok(crate::input::HttpRequestWithFloatLabelsInput {
|
18380 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
18381 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
18382 - | })
|
27743 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
27744 + | Ok(
|
27745 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
27746 + | crate::input::HttpRequestWithFloatLabelsInput {
|
27747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
27748 + | float: self
|
27749 + | .float
|
27750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
27751 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
27752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
27753 + | double: self
|
27754 + | .double
|
27755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
27756 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
27757 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
27758 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
27759 + | )
|
27760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18383 27761 | }
|
27762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18384 27763 | }
|
27764 + |
|
27765 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18385 27766 | }
|
18386 - | /// See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27767 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
18387 27768 | pub(crate) mod http_request_with_greedy_label_in_path_input_internal {
|
18388 27769 |
|
27770 + | /* RustType.kt:516 */
|
18389 27771 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18390 - | /// Holds one variant for each of the ways the builder can fail.
|
27772 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27773 + | /* RustType.kt:516 */
|
18391 27774 | #[non_exhaustive]
|
27775 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18392 27776 | #[allow(clippy::enum_variant_names)]
|
18393 27777 | pub(crate) enum ConstraintViolation {
|
18394 - | /// `foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27778 + | /// /* ServerBuilderConstraintViolations.kt:138 */`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27779 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18395 27780 | MissingFoo,
|
18396 - | /// `baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27781 + | /// /* ServerBuilderConstraintViolations.kt:138 */`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27782 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18397 27783 | MissingBaz,
|
27784 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18398 27785 | }
|
27786 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18399 27787 | impl ::std::fmt::Display for ConstraintViolation {
|
27788 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18400 27789 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27790 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18401 27791 | match self {
|
18402 - | ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
18403 - | ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
18404 - | }
|
27792 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
27793 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
27794 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27795 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18405 27796 | }
|
27797 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18406 27798 | }
|
27799 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18407 27800 | impl ::std::error::Error for ConstraintViolation {}
|
27801 + | /* ServerBuilderConstraintViolations.kt:171 */
|
18408 27802 | impl ConstraintViolation {
|
18409 27803 | pub(crate) fn as_validation_exception_field(
|
18410 27804 | self,
|
18411 27805 | path: ::std::string::String,
|
18412 27806 | ) -> crate::model::ValidationExceptionField {
|
18413 27807 | match self {
|
18414 27808 | ConstraintViolation::MissingFoo => crate::model::ValidationExceptionField {
|
18415 27809 | message: format!(
|
18416 27810 | "Value at '{}/foo' failed to satisfy constraint: Member must not be null",
|
18417 27811 | path
|
18418 27812 | ),
|
18419 27813 | path: path + "/foo",
|
18420 27814 | },
|
18421 27815 | ConstraintViolation::MissingBaz => crate::model::ValidationExceptionField {
|
18422 27816 | message: format!(
|
18423 27817 | "Value at '{}/baz' failed to satisfy constraint: Member must not be null",
|
18424 27818 | path
|
18425 27819 | ),
|
18426 27820 | path: path + "/baz",
|
18427 27821 | },
|
18428 27822 | }
|
18429 27823 | }
|
18430 27824 | }
|
27825 + | /* ServerBuilderGenerator.kt:234 */
|
18431 27826 | impl ::std::convert::From<ConstraintViolation>
|
18432 27827 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
18433 27828 | {
|
18434 27829 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
18435 27830 | let first_validation_exception_field =
|
18436 27831 | constraint_violation.as_validation_exception_field("".to_owned());
|
18437 27832 | let validation_exception = crate::error::ValidationException {
|
18438 27833 | message: format!(
|
18439 27834 | "1 validation error detected. {}",
|
18440 27835 | &first_validation_exception_field.message
|
18441 27836 | ),
|
18442 27837 | field_list: Some(vec![first_validation_exception_field]),
|
18443 27838 | };
|
18444 27839 | Self::ConstraintViolation(
|
18445 27840 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
18446 27841 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
18447 27842 | )
|
18448 27843 | }
|
18449 27844 | }
|
27845 + | /* ServerBuilderGenerator.kt:244 */
|
18450 27846 | impl ::std::convert::From<Builder>
|
18451 27847 | for crate::constrained::MaybeConstrained<
|
18452 27848 | crate::input::HttpRequestWithGreedyLabelInPathInput,
|
18453 27849 | >
|
18454 27850 | {
|
18455 27851 | fn from(builder: Builder) -> Self {
|
18456 27852 | Self::Unconstrained(builder)
|
18457 27853 | }
|
18458 27854 | }
|
27855 + | /* ServerBuilderGenerator.kt:446 */
|
18459 27856 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
18460 27857 | type Error = ConstraintViolation;
|
18461 27858 |
|
18462 27859 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18463 27860 | builder.build()
|
18464 27861 | }
|
18465 27862 | }
|
18466 - | /// A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27863 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27864 + | /* RustType.kt:516 */
|
18467 27865 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27866 + | /* ServerBuilderGenerator.kt:211 */
|
18468 27867 | pub(crate) struct Builder {
|
27868 + | /* ServerBuilderGenerator.kt:308 */
|
18469 27869 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
27870 + | /* ServerBuilderGenerator.kt:308 */
|
18470 27871 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
27872 + | /* ServerBuilderGenerator.kt:211 */
|
18471 27873 | }
|
27874 + | /* ServerBuilderGenerator.kt:215 */
|
18472 27875 | impl Builder {
|
27876 + | /* ServerBuilderGenerator.kt:426 */
|
18473 27877 | #[allow(missing_docs)] // documentation missing in model
|
27878 + | /* ServerBuilderGenerator.kt:428 */
|
18474 27879 | pub(crate) fn set_foo(
|
18475 27880 | mut self,
|
18476 27881 | input: impl ::std::convert::Into<::std::string::String>,
|
18477 27882 | ) -> Self {
|
27883 + | /* ServerBuilderGenerator.kt:429 */
|
18478 27884 | self.foo = Some(input.into());
|
18479 27885 | self
|
27886 + | /* ServerBuilderGenerator.kt:428 */
|
18480 27887 | }
|
27888 + | /* ServerBuilderGenerator.kt:426 */
|
18481 27889 | #[allow(missing_docs)] // documentation missing in model
|
27890 + | /* ServerBuilderGenerator.kt:428 */
|
18482 27891 | pub(crate) fn set_baz(
|
18483 27892 | mut self,
|
18484 27893 | input: impl ::std::convert::Into<::std::string::String>,
|
18485 27894 | ) -> Self {
|
27895 + | /* ServerBuilderGenerator.kt:429 */
|
18486 27896 | self.baz = Some(input.into());
|
18487 27897 | self
|
27898 + | /* ServerBuilderGenerator.kt:428 */
|
18488 27899 | }
|
18489 - | /// Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
18490 - | ///
|
27900 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27901 + | /// /* ServerBuilderGenerator.kt:260 */
|
18491 27902 | /// The builder fails to construct a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) if a [`ConstraintViolation`] occurs.
|
18492 27903 | ///
|
18493 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
27904 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
27905 + | /* ServerBuilderGenerator.kt:271 */
|
18494 27906 | pub fn build(
|
18495 27907 | self,
|
18496 27908 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
18497 27909 | {
|
18498 27910 | self.build_enforcing_all_constraints()
|
18499 27911 | }
|
27912 + | /* ServerBuilderGenerator.kt:283 */
|
18500 27913 | fn build_enforcing_all_constraints(
|
18501 27914 | self,
|
18502 27915 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
18503 27916 | {
|
18504 - | Ok(crate::input::HttpRequestWithGreedyLabelInPathInput {
|
18505 - | foo: self.foo.ok_or(ConstraintViolation::MissingFoo)?,
|
18506 - | baz: self.baz.ok_or(ConstraintViolation::MissingBaz)?,
|
18507 - | })
|
27917 + | /* ServerBuilderGenerator.kt:287 */
|
27918 + | Ok(
|
27919 + | /* ServerBuilderGenerator.kt:542 */
|
27920 + | crate::input::HttpRequestWithGreedyLabelInPathInput {
|
27921 + | /* ServerBuilderGenerator.kt:546 */
|
27922 + | foo: self
|
27923 + | .foo
|
27924 + | /* ServerBuilderGenerator.kt:569 */
|
27925 + | .ok_or(ConstraintViolation::MissingFoo)?,
|
27926 + | /* ServerBuilderGenerator.kt:546 */
|
27927 + | baz: self
|
27928 + | .baz
|
27929 + | /* ServerBuilderGenerator.kt:569 */
|
27930 + | .ok_or(ConstraintViolation::MissingBaz)?,
|
27931 + | /* ServerBuilderGenerator.kt:542 */
|
27932 + | }, /* ServerBuilderGenerator.kt:287 */
|
27933 + | )
|
27934 + | /* ServerBuilderGenerator.kt:283 */
|
18508 27935 | }
|
27936 + | /* ServerBuilderGenerator.kt:215 */
|
18509 27937 | }
|
27938 + |
|
27939 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18510 27940 | }
|
18511 - | /// See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27941 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
18512 27942 | pub mod http_request_with_greedy_label_in_path_input {
|
18513 27943 |
|
27944 + | /* RustType.kt:516 */
|
18514 27945 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18515 - | /// Holds one variant for each of the ways the builder can fail.
|
18516 - |
|
27946 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
27947 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18517 27948 | #[allow(clippy::enum_variant_names)]
|
18518 27949 | pub enum ConstraintViolation {
|
18519 - | /// `foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27950 + | /// /* ServerBuilderConstraintViolations.kt:138 */`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27951 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18520 27952 | MissingFoo,
|
18521 - | /// `baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27953 + | /// /* ServerBuilderConstraintViolations.kt:138 */`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
27954 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18522 27955 | MissingBaz,
|
27956 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18523 27957 | }
|
27958 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18524 27959 | impl ::std::fmt::Display for ConstraintViolation {
|
27960 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18525 27961 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
27962 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18526 27963 | match self {
|
18527 - | ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
18528 - | ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
18529 - | }
|
27964 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
27965 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
27966 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
27967 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18530 27968 | }
|
27969 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18531 27970 | }
|
27971 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18532 27972 | impl ::std::error::Error for ConstraintViolation {}
|
27973 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
18533 27974 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
18534 27975 | type Error = ConstraintViolation;
|
18535 27976 |
|
18536 27977 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18537 27978 | builder.build()
|
18538 27979 | }
|
18539 27980 | }
|
18540 - | /// A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27981 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
27982 + | /* RustType.kt:516 */
|
18541 27983 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
27984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18542 27985 | pub struct Builder {
|
27986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18543 27987 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
27988 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18544 27989 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
27990 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18545 27991 | }
|
27992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18546 27993 | impl Builder {
|
27994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18547 27995 | #[allow(missing_docs)] // documentation missing in model
|
27996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18548 27997 | pub fn foo(mut self, input: ::std::string::String) -> Self {
|
18549 - | self.foo = Some(input);
|
27998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
27999 + | self.foo =
|
28000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28001 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28002 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18550 28004 | self
|
28005 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18551 28006 | }
|
28007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18552 28008 | #[allow(missing_docs)] // documentation missing in model
|
28009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18553 28010 | pub fn baz(mut self, input: ::std::string::String) -> Self {
|
18554 - | self.baz = Some(input);
|
28011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28012 + | self.baz =
|
28013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28014 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18555 28017 | self
|
28018 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18556 28019 | }
|
18557 - | /// Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
18558 - | ///
|
28020 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
28021 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
18559 28022 | /// The builder fails to construct a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) if you do not provide a value for all non-`Option`al members.
|
18560 28023 | ///
|
28024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
18561 28025 | pub fn build(
|
18562 28026 | self,
|
18563 28027 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
18564 28028 | {
|
18565 28029 | self.build_enforcing_required_and_enum_traits()
|
18566 28030 | }
|
28031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18567 28032 | fn build_enforcing_required_and_enum_traits(
|
18568 28033 | self,
|
18569 28034 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
18570 28035 | {
|
18571 - | Ok(crate::input::HttpRequestWithGreedyLabelInPathInput {
|
18572 - | foo: self.foo.ok_or(ConstraintViolation::MissingFoo)?,
|
18573 - | baz: self.baz.ok_or(ConstraintViolation::MissingBaz)?,
|
18574 - | })
|
28036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
28037 + | Ok(
|
28038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
28039 + | crate::input::HttpRequestWithGreedyLabelInPathInput {
|
28040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
28041 + | foo: self
|
28042 + | .foo
|
28043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
28044 + | .ok_or(ConstraintViolation::MissingFoo)?,
|
28045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
28046 + | baz: self
|
28047 + | .baz
|
28048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
28049 + | .ok_or(ConstraintViolation::MissingBaz)?,
|
28050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
28051 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
28052 + | )
|
28053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18575 28054 | }
|
28055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18576 28056 | }
|
28057 + |
|
28058 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18577 28059 | }
|
18578 - | /// See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28060 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
18579 28061 | pub(crate) mod http_request_with_labels_and_timestamp_format_input_internal {
|
18580 28062 |
|
28063 + | /* RustType.kt:516 */
|
18581 28064 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18582 - | /// Holds one variant for each of the ways the builder can fail.
|
28065 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
28066 + | /* RustType.kt:516 */
|
18583 28067 | #[non_exhaustive]
|
28068 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18584 28069 | #[allow(clippy::enum_variant_names)]
|
18585 28070 | pub(crate) enum ConstraintViolation {
|
18586 - | /// `member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28071 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28072 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18587 28073 | MissingMemberEpochSeconds,
|
18588 - | /// `member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28074 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28075 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18589 28076 | MissingMemberHttpDate,
|
18590 - | /// `member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28077 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28078 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18591 28079 | MissingMemberDateTime,
|
18592 - | /// `default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28080 + | /// /* ServerBuilderConstraintViolations.kt:138 */`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28081 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18593 28082 | MissingDefaultFormat,
|
18594 - | /// `target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28083 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28084 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18595 28085 | MissingTargetEpochSeconds,
|
18596 - | /// `target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28086 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28087 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18597 28088 | MissingTargetHttpDate,
|
18598 - | /// `target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28089 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28090 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18599 28091 | MissingTargetDateTime,
|
28092 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18600 28093 | }
|
28094 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18601 28095 | impl ::std::fmt::Display for ConstraintViolation {
|
28096 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18602 28097 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
28098 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18603 28099 | match self {
|
18604 - | ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18605 - | ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18606 - | ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18607 - | ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18608 - | ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18609 - | ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18610 - | ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18611 - | }
|
18612 - | }
|
18613 - | }
|
28100 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28101 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28102 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28103 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28104 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28105 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28106 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28107 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
28108 + | /* ServerBuilderConstraintViolations.kt:118 */
|
28109 + | }
|
28110 + | /* ServerBuilderConstraintViolations.kt:117 */
|
28111 + | }
|
28112 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18614 28113 | impl ::std::error::Error for ConstraintViolation {}
|
28114 + | /* ServerBuilderConstraintViolations.kt:171 */
|
18615 28115 | impl ConstraintViolation {
|
18616 28116 | pub(crate) fn as_validation_exception_field(
|
18617 28117 | self,
|
18618 28118 | path: ::std::string::String,
|
18619 28119 | ) -> crate::model::ValidationExceptionField {
|
18620 28120 | match self {
|
18621 28121 | ConstraintViolation::MissingMemberEpochSeconds => crate::model::ValidationExceptionField {
|
18622 28122 | message: format!("Value at '{}/memberEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
18623 28123 | path: path + "/memberEpochSeconds",
|
18624 28124 | },
|
18625 28125 | ConstraintViolation::MissingMemberHttpDate => crate::model::ValidationExceptionField {
|
18626 28126 | message: format!("Value at '{}/memberHttpDate' failed to satisfy constraint: Member must not be null", path),
|
18627 28127 | path: path + "/memberHttpDate",
|
18628 28128 | },
|
18629 28129 | ConstraintViolation::MissingMemberDateTime => crate::model::ValidationExceptionField {
|
18630 28130 | message: format!("Value at '{}/memberDateTime' failed to satisfy constraint: Member must not be null", path),
|
18631 28131 | path: path + "/memberDateTime",
|
18632 28132 | },
|
18633 28133 | ConstraintViolation::MissingDefaultFormat => crate::model::ValidationExceptionField {
|
18634 28134 | message: format!("Value at '{}/defaultFormat' failed to satisfy constraint: Member must not be null", path),
|
18635 28135 | path: path + "/defaultFormat",
|
18636 28136 | },
|
18637 28137 | ConstraintViolation::MissingTargetEpochSeconds => crate::model::ValidationExceptionField {
|
18638 28138 | message: format!("Value at '{}/targetEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
18639 28139 | path: path + "/targetEpochSeconds",
|
18640 28140 | },
|
18641 28141 | ConstraintViolation::MissingTargetHttpDate => crate::model::ValidationExceptionField {
|
18642 28142 | message: format!("Value at '{}/targetHttpDate' failed to satisfy constraint: Member must not be null", path),
|
18643 28143 | path: path + "/targetHttpDate",
|
18644 28144 | },
|
18645 28145 | ConstraintViolation::MissingTargetDateTime => crate::model::ValidationExceptionField {
|
18646 28146 | message: format!("Value at '{}/targetDateTime' failed to satisfy constraint: Member must not be null", path),
|
18647 28147 | path: path + "/targetDateTime",
|
18648 28148 | },
|
18649 28149 | }
|
18650 28150 | }
|
18651 28151 | }
|
28152 + | /* ServerBuilderGenerator.kt:234 */
|
18652 28153 | impl ::std::convert::From<ConstraintViolation>
|
18653 28154 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
18654 28155 | {
|
18655 28156 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
18656 28157 | let first_validation_exception_field =
|
18657 28158 | constraint_violation.as_validation_exception_field("".to_owned());
|
18658 28159 | let validation_exception = crate::error::ValidationException {
|
18659 28160 | message: format!(
|
18660 28161 | "1 validation error detected. {}",
|
18661 28162 | &first_validation_exception_field.message
|
18662 28163 | ),
|
18663 28164 | field_list: Some(vec![first_validation_exception_field]),
|
18664 28165 | };
|
18665 28166 | Self::ConstraintViolation(
|
18666 28167 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
18667 28168 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
18668 28169 | )
|
18669 28170 | }
|
18670 28171 | }
|
28172 + | /* ServerBuilderGenerator.kt:244 */
|
18671 28173 | impl ::std::convert::From<Builder>
|
18672 28174 | for crate::constrained::MaybeConstrained<
|
18673 28175 | crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
|
18674 28176 | >
|
18675 28177 | {
|
18676 28178 | fn from(builder: Builder) -> Self {
|
18677 28179 | Self::Unconstrained(builder)
|
18678 28180 | }
|
18679 28181 | }
|
28182 + | /* ServerBuilderGenerator.kt:446 */
|
18680 28183 | impl ::std::convert::TryFrom<Builder>
|
18681 28184 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
18682 28185 | {
|
18683 28186 | type Error = ConstraintViolation;
|
18684 28187 |
|
18685 28188 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18686 28189 | builder.build()
|
18687 28190 | }
|
18688 28191 | }
|
18689 - | /// A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28192 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28193 + | /* RustType.kt:516 */
|
18690 28194 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
28195 + | /* ServerBuilderGenerator.kt:211 */
|
18691 28196 | pub(crate) struct Builder {
|
28197 + | /* ServerBuilderGenerator.kt:308 */
|
18692 28198 | pub(crate) member_epoch_seconds:
|
18693 28199 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28200 + | /* ServerBuilderGenerator.kt:308 */
|
18694 28201 | pub(crate) member_http_date:
|
18695 28202 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28203 + | /* ServerBuilderGenerator.kt:308 */
|
18696 28204 | pub(crate) member_date_time:
|
18697 28205 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28206 + | /* ServerBuilderGenerator.kt:308 */
|
18698 28207 | pub(crate) default_format:
|
18699 28208 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28209 + | /* ServerBuilderGenerator.kt:308 */
|
18700 28210 | pub(crate) target_epoch_seconds:
|
18701 28211 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28212 + | /* ServerBuilderGenerator.kt:308 */
|
18702 28213 | pub(crate) target_http_date:
|
18703 28214 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28215 + | /* ServerBuilderGenerator.kt:308 */
|
18704 28216 | pub(crate) target_date_time:
|
18705 28217 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28218 + | /* ServerBuilderGenerator.kt:211 */
|
18706 28219 | }
|
28220 + | /* ServerBuilderGenerator.kt:215 */
|
18707 28221 | impl Builder {
|
28222 + | /* ServerBuilderGenerator.kt:426 */
|
18708 28223 | #[allow(missing_docs)] // documentation missing in model
|
28224 + | /* ServerBuilderGenerator.kt:428 */
|
18709 28225 | pub(crate) fn set_member_epoch_seconds(
|
18710 28226 | mut self,
|
18711 28227 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18712 28228 | ) -> Self {
|
28229 + | /* ServerBuilderGenerator.kt:429 */
|
18713 28230 | self.member_epoch_seconds = Some(input.into());
|
18714 28231 | self
|
28232 + | /* ServerBuilderGenerator.kt:428 */
|
18715 28233 | }
|
28234 + | /* ServerBuilderGenerator.kt:426 */
|
18716 28235 | #[allow(missing_docs)] // documentation missing in model
|
28236 + | /* ServerBuilderGenerator.kt:428 */
|
18717 28237 | pub(crate) fn set_member_http_date(
|
18718 28238 | mut self,
|
18719 28239 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18720 28240 | ) -> Self {
|
28241 + | /* ServerBuilderGenerator.kt:429 */
|
18721 28242 | self.member_http_date = Some(input.into());
|
18722 28243 | self
|
28244 + | /* ServerBuilderGenerator.kt:428 */
|
18723 28245 | }
|
28246 + | /* ServerBuilderGenerator.kt:426 */
|
18724 28247 | #[allow(missing_docs)] // documentation missing in model
|
28248 + | /* ServerBuilderGenerator.kt:428 */
|
18725 28249 | pub(crate) fn set_member_date_time(
|
18726 28250 | mut self,
|
18727 28251 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18728 28252 | ) -> Self {
|
28253 + | /* ServerBuilderGenerator.kt:429 */
|
18729 28254 | self.member_date_time = Some(input.into());
|
18730 28255 | self
|
28256 + | /* ServerBuilderGenerator.kt:428 */
|
18731 28257 | }
|
28258 + | /* ServerBuilderGenerator.kt:426 */
|
18732 28259 | #[allow(missing_docs)] // documentation missing in model
|
28260 + | /* ServerBuilderGenerator.kt:428 */
|
18733 28261 | pub(crate) fn set_default_format(
|
18734 28262 | mut self,
|
18735 28263 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18736 28264 | ) -> Self {
|
28265 + | /* ServerBuilderGenerator.kt:429 */
|
18737 28266 | self.default_format = Some(input.into());
|
18738 28267 | self
|
28268 + | /* ServerBuilderGenerator.kt:428 */
|
18739 28269 | }
|
28270 + | /* ServerBuilderGenerator.kt:426 */
|
18740 28271 | #[allow(missing_docs)] // documentation missing in model
|
28272 + | /* ServerBuilderGenerator.kt:428 */
|
18741 28273 | pub(crate) fn set_target_epoch_seconds(
|
18742 28274 | mut self,
|
18743 28275 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18744 28276 | ) -> Self {
|
28277 + | /* ServerBuilderGenerator.kt:429 */
|
18745 28278 | self.target_epoch_seconds = Some(input.into());
|
18746 28279 | self
|
28280 + | /* ServerBuilderGenerator.kt:428 */
|
18747 28281 | }
|
28282 + | /* ServerBuilderGenerator.kt:426 */
|
18748 28283 | #[allow(missing_docs)] // documentation missing in model
|
28284 + | /* ServerBuilderGenerator.kt:428 */
|
18749 28285 | pub(crate) fn set_target_http_date(
|
18750 28286 | mut self,
|
18751 28287 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18752 28288 | ) -> Self {
|
28289 + | /* ServerBuilderGenerator.kt:429 */
|
18753 28290 | self.target_http_date = Some(input.into());
|
18754 28291 | self
|
28292 + | /* ServerBuilderGenerator.kt:428 */
|
18755 28293 | }
|
28294 + | /* ServerBuilderGenerator.kt:426 */
|
18756 28295 | #[allow(missing_docs)] // documentation missing in model
|
28296 + | /* ServerBuilderGenerator.kt:428 */
|
18757 28297 | pub(crate) fn set_target_date_time(
|
18758 28298 | mut self,
|
18759 28299 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
18760 28300 | ) -> Self {
|
28301 + | /* ServerBuilderGenerator.kt:429 */
|
18761 28302 | self.target_date_time = Some(input.into());
|
18762 28303 | self
|
28304 + | /* ServerBuilderGenerator.kt:428 */
|
18763 28305 | }
|
18764 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
18765 - | ///
|
28306 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28307 + | /// /* ServerBuilderGenerator.kt:260 */
|
18766 28308 | /// The builder fails to construct a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) if a [`ConstraintViolation`] occurs.
|
18767 28309 | ///
|
18768 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
28310 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
28311 + | /* ServerBuilderGenerator.kt:271 */
|
18769 28312 | pub fn build(
|
18770 28313 | self,
|
18771 28314 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
18772 28315 | {
|
18773 28316 | self.build_enforcing_all_constraints()
|
18774 28317 | }
|
28318 + | /* ServerBuilderGenerator.kt:283 */
|
18775 28319 | fn build_enforcing_all_constraints(
|
18776 28320 | self,
|
18777 28321 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
18778 28322 | {
|
18779 - | Ok(crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
28323 + | /* ServerBuilderGenerator.kt:287 */
|
28324 + | Ok(
|
28325 + | /* ServerBuilderGenerator.kt:542 */
|
28326 + | crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
28327 + | /* ServerBuilderGenerator.kt:546 */
|
18780 28328 | member_epoch_seconds: self
|
18781 28329 | .member_epoch_seconds
|
28330 + | /* ServerBuilderGenerator.kt:569 */
|
18782 28331 | .ok_or(ConstraintViolation::MissingMemberEpochSeconds)?,
|
28332 + | /* ServerBuilderGenerator.kt:546 */
|
18783 28333 | member_http_date: self
|
18784 28334 | .member_http_date
|
28335 + | /* ServerBuilderGenerator.kt:569 */
|
18785 28336 | .ok_or(ConstraintViolation::MissingMemberHttpDate)?,
|
28337 + | /* ServerBuilderGenerator.kt:546 */
|
18786 28338 | member_date_time: self
|
18787 28339 | .member_date_time
|
28340 + | /* ServerBuilderGenerator.kt:569 */
|
18788 28341 | .ok_or(ConstraintViolation::MissingMemberDateTime)?,
|
28342 + | /* ServerBuilderGenerator.kt:546 */
|
18789 28343 | default_format: self
|
18790 28344 | .default_format
|
28345 + | /* ServerBuilderGenerator.kt:569 */
|
18791 28346 | .ok_or(ConstraintViolation::MissingDefaultFormat)?,
|
28347 + | /* ServerBuilderGenerator.kt:546 */
|
18792 28348 | target_epoch_seconds: self
|
18793 28349 | .target_epoch_seconds
|
28350 + | /* ServerBuilderGenerator.kt:569 */
|
18794 28351 | .ok_or(ConstraintViolation::MissingTargetEpochSeconds)?,
|
28352 + | /* ServerBuilderGenerator.kt:546 */
|
18795 28353 | target_http_date: self
|
18796 28354 | .target_http_date
|
28355 + | /* ServerBuilderGenerator.kt:569 */
|
18797 28356 | .ok_or(ConstraintViolation::MissingTargetHttpDate)?,
|
28357 + | /* ServerBuilderGenerator.kt:546 */
|
18798 28358 | target_date_time: self
|
18799 28359 | .target_date_time
|
28360 + | /* ServerBuilderGenerator.kt:569 */
|
18800 28361 | .ok_or(ConstraintViolation::MissingTargetDateTime)?,
|
18801 - | })
|
28362 + | /* ServerBuilderGenerator.kt:542 */
|
28363 + | }, /* ServerBuilderGenerator.kt:287 */
|
28364 + | )
|
28365 + | /* ServerBuilderGenerator.kt:283 */
|
18802 28366 | }
|
28367 + | /* ServerBuilderGenerator.kt:215 */
|
18803 28368 | }
|
28369 + |
|
28370 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18804 28371 | }
|
18805 - | /// See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28372 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
18806 28373 | pub mod http_request_with_labels_and_timestamp_format_input {
|
18807 28374 |
|
28375 + | /* RustType.kt:516 */
|
18808 28376 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18809 - | /// Holds one variant for each of the ways the builder can fail.
|
18810 - |
|
28377 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
28378 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18811 28379 | #[allow(clippy::enum_variant_names)]
|
18812 28380 | pub enum ConstraintViolation {
|
18813 - | /// `member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28381 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28382 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18814 28383 | MissingMemberEpochSeconds,
|
18815 - | /// `member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28384 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28385 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18816 28386 | MissingMemberHttpDate,
|
18817 - | /// `member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28387 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28388 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18818 28389 | MissingMemberDateTime,
|
18819 - | /// `default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28390 + | /// /* ServerBuilderConstraintViolations.kt:138 */`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28391 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18820 28392 | MissingDefaultFormat,
|
18821 - | /// `target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28393 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28394 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18822 28395 | MissingTargetEpochSeconds,
|
18823 - | /// `target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28396 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28397 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18824 28398 | MissingTargetHttpDate,
|
18825 - | /// `target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28399 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
28400 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18826 28401 | MissingTargetDateTime,
|
28402 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18827 28403 | }
|
28404 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18828 28405 | impl ::std::fmt::Display for ConstraintViolation {
|
28406 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18829 28407 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
28408 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18830 28409 | match self {
|
18831 - | ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18832 - | ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18833 - | ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18834 - | ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18835 - | ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18836 - | ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18837 - | ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
18838 - | }
|
18839 - | }
|
18840 - | }
|
28410 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28411 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28412 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28413 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28414 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28415 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28416 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
28417 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
28418 + | /* ServerBuilderConstraintViolations.kt:118 */
|
28419 + | }
|
28420 + | /* ServerBuilderConstraintViolations.kt:117 */
|
28421 + | }
|
28422 + | /* ServerBuilderConstraintViolations.kt:84 */
|
18841 28423 | impl ::std::error::Error for ConstraintViolation {}
|
28424 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
18842 28425 | impl ::std::convert::TryFrom<Builder>
|
18843 28426 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
18844 28427 | {
|
18845 28428 | type Error = ConstraintViolation;
|
18846 28429 |
|
18847 28430 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
18848 28431 | builder.build()
|
18849 28432 | }
|
18850 28433 | }
|
18851 - | /// A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28434 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28435 + | /* RustType.kt:516 */
|
18852 28436 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
28437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18853 28438 | pub struct Builder {
|
28439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18854 28440 | pub(crate) member_epoch_seconds:
|
18855 28441 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28442 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18856 28443 | pub(crate) member_http_date:
|
18857 28444 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28445 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18858 28446 | pub(crate) member_date_time:
|
18859 28447 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18860 28449 | pub(crate) default_format:
|
18861 28450 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18862 28452 | pub(crate) target_epoch_seconds:
|
18863 28453 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18864 28455 | pub(crate) target_http_date:
|
18865 28456 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
18866 28458 | pub(crate) target_date_time:
|
18867 28459 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
18868 28461 | }
|
28462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18869 28463 | impl Builder {
|
28464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18870 28465 | #[allow(missing_docs)] // documentation missing in model
|
28466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18871 28467 | pub fn member_epoch_seconds(
|
18872 28468 | mut self,
|
18873 28469 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18874 28470 | ) -> Self {
|
18875 - | self.member_epoch_seconds = Some(input);
|
28471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28472 + | self.member_epoch_seconds =
|
28473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28474 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28475 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18876 28477 | self
|
28478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18877 28479 | }
|
28480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18878 28481 | #[allow(missing_docs)] // documentation missing in model
|
28482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18879 28483 | pub fn member_http_date(
|
18880 28484 | mut self,
|
18881 28485 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18882 28486 | ) -> Self {
|
18883 - | self.member_http_date = Some(input);
|
28487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28488 + | self.member_http_date =
|
28489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28491 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18884 28493 | self
|
28494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18885 28495 | }
|
28496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18886 28497 | #[allow(missing_docs)] // documentation missing in model
|
28498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18887 28499 | pub fn member_date_time(
|
18888 28500 | mut self,
|
18889 28501 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18890 28502 | ) -> Self {
|
18891 - | self.member_date_time = Some(input);
|
28503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28504 + | self.member_date_time =
|
28505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18892 28509 | self
|
28510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18893 28511 | }
|
28512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18894 28513 | #[allow(missing_docs)] // documentation missing in model
|
28514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18895 28515 | pub fn default_format(
|
18896 28516 | mut self,
|
18897 28517 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18898 28518 | ) -> Self {
|
18899 - | self.default_format = Some(input);
|
28519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28520 + | self.default_format =
|
28521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28522 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28524 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18900 28525 | self
|
28526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18901 28527 | }
|
28528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18902 28529 | #[allow(missing_docs)] // documentation missing in model
|
28530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18903 28531 | pub fn target_epoch_seconds(
|
18904 28532 | mut self,
|
18905 28533 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18906 28534 | ) -> Self {
|
18907 - | self.target_epoch_seconds = Some(input);
|
28535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28536 + | self.target_epoch_seconds =
|
28537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18908 28541 | self
|
28542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18909 28543 | }
|
28544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18910 28545 | #[allow(missing_docs)] // documentation missing in model
|
28546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18911 28547 | pub fn target_http_date(
|
18912 28548 | mut self,
|
18913 28549 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18914 28550 | ) -> Self {
|
18915 - | self.target_http_date = Some(input);
|
28551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28552 + | self.target_http_date =
|
28553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18916 28557 | self
|
28558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18917 28559 | }
|
28560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
18918 28561 | #[allow(missing_docs)] // documentation missing in model
|
28562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18919 28563 | pub fn target_date_time(
|
18920 28564 | mut self,
|
18921 28565 | input: ::aws_smithy_http_server_python::types::DateTime,
|
18922 28566 | ) -> Self {
|
18923 - | self.target_date_time = Some(input);
|
28567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
28568 + | self.target_date_time =
|
28569 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
28570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
28571 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
28572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
18924 28573 | self
|
28574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
18925 28575 | }
|
18926 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
18927 - | ///
|
28576 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
28577 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
18928 28578 | /// The builder fails to construct a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) if you do not provide a value for all non-`Option`al members.
|
18929 28579 | ///
|
28580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
18930 28581 | pub fn build(
|
18931 28582 | self,
|
18932 28583 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
18933 28584 | {
|
18934 28585 | self.build_enforcing_required_and_enum_traits()
|
18935 28586 | }
|
28587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18936 28588 | fn build_enforcing_required_and_enum_traits(
|
18937 28589 | self,
|
18938 28590 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
18939 28591 | {
|
18940 - | Ok(crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
28592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
28593 + | Ok(
|
28594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
28595 + | crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
28596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18941 28597 | member_epoch_seconds: self
|
18942 28598 | .member_epoch_seconds
|
28599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18943 28600 | .ok_or(ConstraintViolation::MissingMemberEpochSeconds)?,
|
28601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18944 28602 | member_http_date: self
|
18945 28603 | .member_http_date
|
28604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18946 28605 | .ok_or(ConstraintViolation::MissingMemberHttpDate)?,
|
28606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18947 28607 | member_date_time: self
|
18948 28608 | .member_date_time
|
28609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18949 28610 | .ok_or(ConstraintViolation::MissingMemberDateTime)?,
|
28611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18950 28612 | default_format: self
|
18951 28613 | .default_format
|
28614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18952 28615 | .ok_or(ConstraintViolation::MissingDefaultFormat)?,
|
28616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18953 28617 | target_epoch_seconds: self
|
18954 28618 | .target_epoch_seconds
|
28619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18955 28620 | .ok_or(ConstraintViolation::MissingTargetEpochSeconds)?,
|
28621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18956 28622 | target_http_date: self
|
18957 28623 | .target_http_date
|
28624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18958 28625 | .ok_or(ConstraintViolation::MissingTargetHttpDate)?,
|
28626 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
18959 28627 | target_date_time: self
|
18960 28628 | .target_date_time
|
28629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
18961 28630 | .ok_or(ConstraintViolation::MissingTargetDateTime)?,
|
18962 - | })
|
28631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
28632 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
28633 + | )
|
28634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
18963 28635 | }
|
28636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
18964 28637 | }
|
28638 + |
|
28639 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
18965 28640 | }
|
18966 - | /// See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
28641 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18967 28642 | pub(crate) mod http_request_with_labels_input_internal {
|
18968 28643 |
|
28644 + | /* RustType.kt:516 */
|
18969 28645 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
18970 - | /// Holds one variant for each of the ways the builder can fail.
|
28646 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
28647 + | /* RustType.kt:516 */
|
18971 28648 | #[non_exhaustive]
|
28649 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18972 28650 | #[allow(clippy::enum_variant_names)]
|
18973 28651 | pub(crate) enum ConstraintViolation {
|
18974 - | /// `string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28652 + | /// /* ServerBuilderConstraintViolations.kt:138 */`string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28653 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18975 28654 | MissingString,
|
18976 - | /// `short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28655 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28656 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18977 28657 | MissingShort,
|
18978 - | /// `integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28658 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28659 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18979 28660 | MissingInteger,
|
18980 - | /// `long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28661 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28662 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18981 28663 | MissingLong,
|
18982 - | /// `float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28664 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28665 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18983 28666 | MissingFloat,
|
18984 - | /// `double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28667 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28668 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18985 28669 | MissingDouble,
|
18986 - | /// `boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28670 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28671 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18987 28672 | MissingBoolean,
|
18988 - | /// `timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28673 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28674 + | /* ServerBuilderConstraintViolations.kt:143 */
|
18989 28675 | MissingTimestamp,
|
28676 + | /* ServerBuilderConstraintViolations.kt:75 */
|
18990 28677 | }
|
28678 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18991 28679 | impl ::std::fmt::Display for ConstraintViolation {
|
28680 + | /* ServerBuilderConstraintViolations.kt:118 */
|
18992 28681 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
28682 + | /* ServerBuilderConstraintViolations.kt:119 */
|
18993 28683 | match self {
|
18994 - | ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18995 - | ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18996 - | ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18997 - | ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18998 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18999 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19000 - | ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19001 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19002 - | }
|
19003 - | }
|
19004 - | }
|
28684 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28685 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28686 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28687 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28688 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28689 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28690 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28691 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28692 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
28693 + | /* ServerBuilderConstraintViolations.kt:118 */
|
28694 + | }
|
28695 + | /* ServerBuilderConstraintViolations.kt:117 */
|
28696 + | }
|
28697 + | /* ServerBuilderConstraintViolations.kt:84 */
|
19005 28698 | impl ::std::error::Error for ConstraintViolation {}
|
28699 + | /* ServerBuilderConstraintViolations.kt:171 */
|
19006 28700 | impl ConstraintViolation {
|
19007 28701 | pub(crate) fn as_validation_exception_field(
|
19008 28702 | self,
|
19009 28703 | path: ::std::string::String,
|
19010 28704 | ) -> crate::model::ValidationExceptionField {
|
19011 28705 | match self {
|
19012 28706 | ConstraintViolation::MissingString => crate::model::ValidationExceptionField {
|
19013 28707 | message: format!("Value at '{}/string' failed to satisfy constraint: Member must not be null", path),
|
19014 28708 | path: path + "/string",
|
19015 28709 | },
|
19016 28710 | ConstraintViolation::MissingShort => crate::model::ValidationExceptionField {
|
19017 28711 | message: format!("Value at '{}/short' failed to satisfy constraint: Member must not be null", path),
|
19018 28712 | path: path + "/short",
|
19019 28713 | },
|
19020 28714 | ConstraintViolation::MissingInteger => crate::model::ValidationExceptionField {
|
19021 28715 | message: format!("Value at '{}/integer' failed to satisfy constraint: Member must not be null", path),
|
19022 28716 | path: path + "/integer",
|
19023 28717 | },
|
19024 28718 | ConstraintViolation::MissingLong => crate::model::ValidationExceptionField {
|
19025 28719 | message: format!("Value at '{}/long' failed to satisfy constraint: Member must not be null", path),
|
19026 28720 | path: path + "/long",
|
19027 28721 | },
|
19028 28722 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
19029 28723 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
19030 28724 | path: path + "/float",
|
19031 28725 | },
|
19032 28726 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
19033 28727 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
19034 28728 | path: path + "/double",
|
19035 28729 | },
|
19036 28730 | ConstraintViolation::MissingBoolean => crate::model::ValidationExceptionField {
|
19037 28731 | message: format!("Value at '{}/boolean' failed to satisfy constraint: Member must not be null", path),
|
19038 28732 | path: path + "/boolean",
|
19039 28733 | },
|
19040 28734 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
19041 28735 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
19042 28736 | path: path + "/timestamp",
|
19043 28737 | },
|
19044 28738 | }
|
19045 28739 | }
|
19046 28740 | }
|
28741 + | /* ServerBuilderGenerator.kt:234 */
|
19047 28742 | impl ::std::convert::From<ConstraintViolation>
|
19048 28743 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
19049 28744 | {
|
19050 28745 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
19051 28746 | let first_validation_exception_field =
|
19052 28747 | constraint_violation.as_validation_exception_field("".to_owned());
|
19053 28748 | let validation_exception = crate::error::ValidationException {
|
19054 28749 | message: format!(
|
19055 28750 | "1 validation error detected. {}",
|
19056 28751 | &first_validation_exception_field.message
|
19057 28752 | ),
|
19058 28753 | field_list: Some(vec![first_validation_exception_field]),
|
19059 28754 | };
|
19060 28755 | Self::ConstraintViolation(
|
19061 28756 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
19062 28757 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
19063 28758 | )
|
19064 28759 | }
|
19065 28760 | }
|
28761 + | /* ServerBuilderGenerator.kt:244 */
|
19066 28762 | impl ::std::convert::From<Builder>
|
19067 28763 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithLabelsInput>
|
19068 28764 | {
|
19069 28765 | fn from(builder: Builder) -> Self {
|
19070 28766 | Self::Unconstrained(builder)
|
19071 28767 | }
|
19072 28768 | }
|
28769 + | /* ServerBuilderGenerator.kt:446 */
|
19073 28770 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithLabelsInput {
|
19074 28771 | type Error = ConstraintViolation;
|
19075 28772 |
|
19076 28773 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
19077 28774 | builder.build()
|
19078 28775 | }
|
19079 28776 | }
|
19080 - | /// A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
28777 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
28778 + | /* RustType.kt:516 */
|
19081 28779 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
28780 + | /* ServerBuilderGenerator.kt:211 */
|
19082 28781 | pub(crate) struct Builder {
|
28782 + | /* ServerBuilderGenerator.kt:308 */
|
19083 28783 | pub(crate) string: ::std::option::Option<::std::string::String>,
|
19084 - | pub(crate) short: ::std::option::Option<i16>,
|
19085 - | pub(crate) integer: ::std::option::Option<i32>,
|
19086 - | pub(crate) long: ::std::option::Option<i64>,
|
19087 - | pub(crate) float: ::std::option::Option<f32>,
|
19088 - | pub(crate) double: ::std::option::Option<f64>,
|
19089 - | pub(crate) boolean: ::std::option::Option<bool>,
|
28784 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) short: ::std::option::Option<i16>,
|
28785 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) integer: ::std::option::Option<i32>,
|
28786 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) long: ::std::option::Option<i64>,
|
28787 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
28788 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) double: ::std::option::Option<f64>,
|
28789 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) boolean: ::std::option::Option<bool>,
|
28790 + | /* ServerBuilderGenerator.kt:308 */
|
19090 28791 | pub(crate) timestamp:
|
19091 28792 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
28793 + | /* ServerBuilderGenerator.kt:211 */
|
19092 28794 | }
|
28795 + | /* ServerBuilderGenerator.kt:215 */
|
19093 28796 | impl Builder {
|
28797 + | /* ServerBuilderGenerator.kt:426 */
|
19094 28798 | #[allow(missing_docs)] // documentation missing in model
|
28799 + | /* ServerBuilderGenerator.kt:428 */
|
19095 28800 | pub(crate) fn set_string(
|
19096 28801 | mut self,
|
19097 28802 | input: impl ::std::convert::Into<::std::string::String>,
|
19098 28803 | ) -> Self {
|
28804 + | /* ServerBuilderGenerator.kt:429 */
|
19099 28805 | self.string = Some(input.into());
|
19100 28806 | self
|
28807 + | /* ServerBuilderGenerator.kt:428 */
|
19101 28808 | }
|
28809 + | /* ServerBuilderGenerator.kt:426 */
|
19102 28810 | #[allow(missing_docs)] // documentation missing in model
|
28811 + | /* ServerBuilderGenerator.kt:428 */
|
19103 28812 | pub(crate) fn set_short(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
28813 + | /* ServerBuilderGenerator.kt:429 */
|
19104 28814 | self.short = Some(input.into());
|
19105 28815 | self
|
28816 + | /* ServerBuilderGenerator.kt:428 */
|
19106 28817 | }
|
28818 + | /* ServerBuilderGenerator.kt:426 */
|
19107 28819 | #[allow(missing_docs)] // documentation missing in model
|
28820 + | /* ServerBuilderGenerator.kt:428 */
|
19108 28821 | pub(crate) fn set_integer(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
28822 + | /* ServerBuilderGenerator.kt:429 */
|
19109 28823 | self.integer = Some(input.into());
|
19110 28824 | self
|
28825 + | /* ServerBuilderGenerator.kt:428 */
|
19111 28826 | }
|
28827 + | /* ServerBuilderGenerator.kt:426 */
|
19112 28828 | #[allow(missing_docs)] // documentation missing in model
|
28829 + | /* ServerBuilderGenerator.kt:428 */
|
19113 28830 | pub(crate) fn set_long(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
28831 + | /* ServerBuilderGenerator.kt:429 */
|
19114 28832 | self.long = Some(input.into());
|
19115 28833 | self
|
28834 + | /* ServerBuilderGenerator.kt:428 */
|
19116 28835 | }
|
28836 + | /* ServerBuilderGenerator.kt:426 */
|
19117 28837 | #[allow(missing_docs)] // documentation missing in model
|
28838 + | /* ServerBuilderGenerator.kt:428 */
|
19118 28839 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
28840 + | /* ServerBuilderGenerator.kt:429 */
|
19119 28841 | self.float = Some(input.into());
|
19120 28842 | self
|
28843 + | /* ServerBuilderGenerator.kt:428 */
|
19121 28844 | }
|
28845 + | /* ServerBuilderGenerator.kt:426 */
|
19122 28846 | #[allow(missing_docs)] // documentation missing in model
|
28847 + | /* ServerBuilderGenerator.kt:428 */
|
19123 28848 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
28849 + | /* ServerBuilderGenerator.kt:429 */
|
19124 28850 | self.double = Some(input.into());
|
19125 28851 | self
|
28852 + | /* ServerBuilderGenerator.kt:428 */
|
19126 28853 | }
|
19127 - | /// Serialized in the path as true or false.
|
28854 + | /// /* ServerBuilderGenerator.kt:426 */Serialized in the path as true or false.
|
28855 + | /* ServerBuilderGenerator.kt:428 */
|
19128 28856 | pub(crate) fn set_boolean(mut self, input: impl ::std::convert::Into<bool>) -> Self {
|
28857 + | /* ServerBuilderGenerator.kt:429 */
|
19129 28858 | self.boolean = Some(input.into());
|
19130 28859 | self
|
28860 + | /* ServerBuilderGenerator.kt:428 */
|
19131 28861 | }
|
19132 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
28862 + | /// /* ServerBuilderGenerator.kt:426 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
28863 + | /* ServerBuilderGenerator.kt:428 */
|
19133 28864 | pub(crate) fn set_timestamp(
|
19134 28865 | mut self,
|
19135 28866 | input: impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19136 28867 | ) -> Self {
|
28868 + | /* ServerBuilderGenerator.kt:429 */
|
19137 28869 | self.timestamp = Some(input.into());
|
19138 28870 | self
|
28871 + | /* ServerBuilderGenerator.kt:428 */
|
19139 28872 | }
|
19140 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
19141 - | ///
|
28873 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
28874 + | /// /* ServerBuilderGenerator.kt:260 */
|
19142 28875 | /// The builder fails to construct a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) if a [`ConstraintViolation`] occurs.
|
19143 28876 | ///
|
19144 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
28877 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
28878 + | /* ServerBuilderGenerator.kt:271 */
|
19145 28879 | pub fn build(
|
19146 28880 | self,
|
19147 28881 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
19148 28882 | self.build_enforcing_all_constraints()
|
19149 28883 | }
|
28884 + | /* ServerBuilderGenerator.kt:283 */
|
19150 28885 | fn build_enforcing_all_constraints(
|
19151 28886 | self,
|
19152 28887 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
19153 - | Ok(crate::input::HttpRequestWithLabelsInput {
|
19154 - | string: self.string.ok_or(ConstraintViolation::MissingString)?,
|
19155 - | short: self.short.ok_or(ConstraintViolation::MissingShort)?,
|
19156 - | integer: self.integer.ok_or(ConstraintViolation::MissingInteger)?,
|
19157 - | long: self.long.ok_or(ConstraintViolation::MissingLong)?,
|
19158 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
19159 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
19160 - | boolean: self.boolean.ok_or(ConstraintViolation::MissingBoolean)?,
|
28888 + | /* ServerBuilderGenerator.kt:287 */
|
28889 + | Ok(
|
28890 + | /* ServerBuilderGenerator.kt:542 */
|
28891 + | crate::input::HttpRequestWithLabelsInput {
|
28892 + | /* ServerBuilderGenerator.kt:546 */
|
28893 + | string: self
|
28894 + | .string
|
28895 + | /* ServerBuilderGenerator.kt:569 */
|
28896 + | .ok_or(ConstraintViolation::MissingString)?,
|
28897 + | /* ServerBuilderGenerator.kt:546 */
|
28898 + | short: self
|
28899 + | .short
|
28900 + | /* ServerBuilderGenerator.kt:569 */
|
28901 + | .ok_or(ConstraintViolation::MissingShort)?,
|
28902 + | /* ServerBuilderGenerator.kt:546 */
|
28903 + | integer: self
|
28904 + | .integer
|
28905 + | /* ServerBuilderGenerator.kt:569 */
|
28906 + | .ok_or(ConstraintViolation::MissingInteger)?,
|
28907 + | /* ServerBuilderGenerator.kt:546 */
|
28908 + | long: self
|
28909 + | .long
|
28910 + | /* ServerBuilderGenerator.kt:569 */
|
28911 + | .ok_or(ConstraintViolation::MissingLong)?,
|
28912 + | /* ServerBuilderGenerator.kt:546 */
|
28913 + | float: self
|
28914 + | .float
|
28915 + | /* ServerBuilderGenerator.kt:569 */
|
28916 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
28917 + | /* ServerBuilderGenerator.kt:546 */
|
28918 + | double: self
|
28919 + | .double
|
28920 + | /* ServerBuilderGenerator.kt:569 */
|
28921 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
28922 + | /* ServerBuilderGenerator.kt:546 */
|
28923 + | boolean: self
|
28924 + | .boolean
|
28925 + | /* ServerBuilderGenerator.kt:569 */
|
28926 + | .ok_or(ConstraintViolation::MissingBoolean)?,
|
28927 + | /* ServerBuilderGenerator.kt:546 */
|
19161 28928 | timestamp: self
|
19162 28929 | .timestamp
|
28930 + | /* ServerBuilderGenerator.kt:569 */
|
19163 28931 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
19164 - | })
|
28932 + | /* ServerBuilderGenerator.kt:542 */
|
28933 + | }, /* ServerBuilderGenerator.kt:287 */
|
28934 + | )
|
28935 + | /* ServerBuilderGenerator.kt:283 */
|
19165 28936 | }
|
28937 + | /* ServerBuilderGenerator.kt:215 */
|
19166 28938 | }
|
28939 + |
|
28940 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19167 28941 | }
|
19168 - | /// See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
28942 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
19169 28943 | pub mod http_request_with_labels_input {
|
19170 28944 |
|
28945 + | /* RustType.kt:516 */
|
19171 28946 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
19172 - | /// Holds one variant for each of the ways the builder can fail.
|
19173 - |
|
28947 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
28948 + | /* ServerBuilderConstraintViolations.kt:75 */
|
19174 28949 | #[allow(clippy::enum_variant_names)]
|
19175 28950 | pub enum ConstraintViolation {
|
19176 - | /// `string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28951 + | /// /* ServerBuilderConstraintViolations.kt:138 */`string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28952 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19177 28953 | MissingString,
|
19178 - | /// `short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28954 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28955 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19179 28956 | MissingShort,
|
19180 - | /// `integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28957 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28958 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19181 28959 | MissingInteger,
|
19182 - | /// `long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28960 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28961 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19183 28962 | MissingLong,
|
19184 - | /// `float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28963 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28964 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19185 28965 | MissingFloat,
|
19186 - | /// `double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28966 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28967 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19187 28968 | MissingDouble,
|
19188 - | /// `boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28969 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28970 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19189 28971 | MissingBoolean,
|
19190 - | /// `timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28972 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
28973 + | /* ServerBuilderConstraintViolations.kt:143 */
|
19191 28974 | MissingTimestamp,
|
28975 + | /* ServerBuilderConstraintViolations.kt:75 */
|
19192 28976 | }
|
28977 + | /* ServerBuilderConstraintViolations.kt:117 */
|
19193 28978 | impl ::std::fmt::Display for ConstraintViolation {
|
28979 + | /* ServerBuilderConstraintViolations.kt:118 */
|
19194 28980 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
28981 + | /* ServerBuilderConstraintViolations.kt:119 */
|
19195 28982 | match self {
|
19196 - | ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19197 - | ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19198 - | ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19199 - | ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19200 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19201 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19202 - | ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19203 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
19204 - | }
|
19205 - | }
|
19206 - | }
|
28983 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28984 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28985 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28986 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28987 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28988 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28989 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28990 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
28991 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
28992 + | /* ServerBuilderConstraintViolations.kt:118 */
|
28993 + | }
|
28994 + | /* ServerBuilderConstraintViolations.kt:117 */
|
28995 + | }
|
28996 + | /* ServerBuilderConstraintViolations.kt:84 */
|
19207 28997 | impl ::std::error::Error for ConstraintViolation {}
|
28998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
19208 28999 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithLabelsInput {
|
19209 29000 | type Error = ConstraintViolation;
|
19210 29001 |
|
19211 29002 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
19212 29003 | builder.build()
|
19213 29004 | }
|
19214 29005 | }
|
19215 - | /// A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
29006 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
29007 + | /* RustType.kt:516 */
|
19216 29008 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19217 29010 | pub struct Builder {
|
29011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19218 29012 | pub(crate) string: ::std::option::Option<::std::string::String>,
|
29013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19219 29014 | pub(crate) short: ::std::option::Option<i16>,
|
29015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19220 29016 | pub(crate) integer: ::std::option::Option<i32>,
|
29017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19221 29018 | pub(crate) long: ::std::option::Option<i64>,
|
29019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19222 29020 | pub(crate) float: ::std::option::Option<f32>,
|
29021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19223 29022 | pub(crate) double: ::std::option::Option<f64>,
|
29023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19224 29024 | pub(crate) boolean: ::std::option::Option<bool>,
|
29025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19225 29026 | pub(crate) timestamp:
|
19226 29027 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19227 29029 | }
|
29030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19228 29031 | impl Builder {
|
29032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19229 29033 | #[allow(missing_docs)] // documentation missing in model
|
29034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19230 29035 | pub fn string(mut self, input: ::std::string::String) -> Self {
|
19231 - | self.string = Some(input);
|
29036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29037 + | self.string =
|
29038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19232 29042 | self
|
29043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19233 29044 | }
|
29045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19234 29046 | #[allow(missing_docs)] // documentation missing in model
|
29047 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19235 29048 | pub fn short(mut self, input: i16) -> Self {
|
19236 - | self.short = Some(input);
|
29049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29050 + | self.short =
|
29051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19237 29055 | self
|
29056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19238 29057 | }
|
29058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19239 29059 | #[allow(missing_docs)] // documentation missing in model
|
29060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19240 29061 | pub fn integer(mut self, input: i32) -> Self {
|
19241 - | self.integer = Some(input);
|
29062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29063 + | self.integer =
|
29064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29065 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19242 29068 | self
|
29069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19243 29070 | }
|
29071 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19244 29072 | #[allow(missing_docs)] // documentation missing in model
|
29073 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19245 29074 | pub fn long(mut self, input: i64) -> Self {
|
19246 - | self.long = Some(input);
|
29075 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29076 + | self.long =
|
29077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29080 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19247 29081 | self
|
29082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19248 29083 | }
|
29084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19249 29085 | #[allow(missing_docs)] // documentation missing in model
|
29086 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19250 29087 | pub fn float(mut self, input: f32) -> Self {
|
19251 - | self.float = Some(input);
|
29088 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29089 + | self.float =
|
29090 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29092 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19252 29094 | self
|
29095 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19253 29096 | }
|
29097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19254 29098 | #[allow(missing_docs)] // documentation missing in model
|
29099 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19255 29100 | pub fn double(mut self, input: f64) -> Self {
|
19256 - | self.double = Some(input);
|
29101 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29102 + | self.double =
|
29103 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29104 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29105 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29106 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19257 29107 | self
|
29108 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19258 29109 | }
|
19259 - | /// Serialized in the path as true or false.
|
29110 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */Serialized in the path as true or false.
|
29111 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19260 29112 | pub fn boolean(mut self, input: bool) -> Self {
|
19261 - | self.boolean = Some(input);
|
29113 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29114 + | self.boolean =
|
29115 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29117 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29118 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19262 29119 | self
|
29120 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19263 29121 | }
|
19264 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
29122 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
29123 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19265 29124 | pub fn timestamp(
|
19266 29125 | mut self,
|
19267 29126 | input: ::aws_smithy_http_server_python::types::DateTime,
|
19268 29127 | ) -> Self {
|
19269 - | self.timestamp = Some(input);
|
29128 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29129 + | self.timestamp =
|
29130 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
29131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
29133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19270 29134 | self
|
29135 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19271 29136 | }
|
19272 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
19273 - | ///
|
29137 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
29138 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
19274 29139 | /// The builder fails to construct a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) if you do not provide a value for all non-`Option`al members.
|
19275 29140 | ///
|
29141 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
19276 29142 | pub fn build(
|
19277 29143 | self,
|
19278 29144 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
19279 29145 | self.build_enforcing_required_and_enum_traits()
|
19280 29146 | }
|
29147 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19281 29148 | fn build_enforcing_required_and_enum_traits(
|
19282 29149 | self,
|
19283 29150 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
19284 - | Ok(crate::input::HttpRequestWithLabelsInput {
|
19285 - | string: self.string.ok_or(ConstraintViolation::MissingString)?,
|
19286 - | short: self.short.ok_or(ConstraintViolation::MissingShort)?,
|
19287 - | integer: self.integer.ok_or(ConstraintViolation::MissingInteger)?,
|
19288 - | long: self.long.ok_or(ConstraintViolation::MissingLong)?,
|
19289 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
19290 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
19291 - | boolean: self.boolean.ok_or(ConstraintViolation::MissingBoolean)?,
|
29151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
29152 + | Ok(
|
29153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
29154 + | crate::input::HttpRequestWithLabelsInput {
|
29155 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29156 + | string: self
|
29157 + | .string
|
29158 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29159 + | .ok_or(ConstraintViolation::MissingString)?,
|
29160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29161 + | short: self
|
29162 + | .short
|
29163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29164 + | .ok_or(ConstraintViolation::MissingShort)?,
|
29165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29166 + | integer: self
|
29167 + | .integer
|
29168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29169 + | .ok_or(ConstraintViolation::MissingInteger)?,
|
29170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29171 + | long: self
|
29172 + | .long
|
29173 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29174 + | .ok_or(ConstraintViolation::MissingLong)?,
|
29175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29176 + | float: self
|
29177 + | .float
|
29178 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29179 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
29180 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29181 + | double: self
|
29182 + | .double
|
29183 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29184 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
29185 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29186 + | boolean: self
|
29187 + | .boolean
|
29188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
29189 + | .ok_or(ConstraintViolation::MissingBoolean)?,
|
29190 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19292 29191 | timestamp: self
|
19293 29192 | .timestamp
|
29193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
19294 29194 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
19295 - | })
|
29195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
29196 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
29197 + | )
|
29198 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19296 29199 | }
|
29200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19297 29201 | }
|
29202 + |
|
29203 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19298 29204 | }
|
19299 - | /// See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29205 + | /// /* ServerBuilderGenerator.kt:171 */See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
19300 29206 | pub(crate) mod media_type_header_input_internal {
|
19301 29207 |
|
29208 + | /* ServerBuilderGenerator.kt:461 */
|
19302 29209 | impl ::std::convert::From<Builder> for crate::input::MediaTypeHeaderInput {
|
19303 29210 | fn from(builder: Builder) -> Self {
|
19304 29211 | builder.build()
|
19305 29212 | }
|
19306 29213 | }
|
19307 - | /// A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29214 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29215 + | /* RustType.kt:516 */
|
19308 29216 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29217 + | /* ServerBuilderGenerator.kt:211 */
|
19309 29218 | pub(crate) struct Builder {
|
29219 + | /* ServerBuilderGenerator.kt:308 */
|
19310 29220 | pub(crate) json: ::std::option::Option<::std::string::String>,
|
29221 + | /* ServerBuilderGenerator.kt:211 */
|
19311 29222 | }
|
29223 + | /* ServerBuilderGenerator.kt:215 */
|
19312 29224 | impl Builder {
|
29225 + | /* ServerBuilderGenerator.kt:426 */
|
19313 29226 | #[allow(missing_docs)] // documentation missing in model
|
29227 + | /* ServerBuilderGenerator.kt:428 */
|
19314 29228 | pub(crate) fn set_json(
|
19315 29229 | mut self,
|
19316 29230 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19317 29231 | ) -> Self {
|
29232 + | /* ServerBuilderGenerator.kt:429 */
|
19318 29233 | self.json = input.map(|v| v.into());
|
19319 29234 | self
|
29235 + | /* ServerBuilderGenerator.kt:428 */
|
19320 29236 | }
|
19321 - | /// Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29237 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29238 + | /* ServerBuilderGenerator.kt:271 */
|
19322 29239 | pub fn build(self) -> crate::input::MediaTypeHeaderInput {
|
19323 29240 | self.build_enforcing_all_constraints()
|
19324 29241 | }
|
29242 + | /* ServerBuilderGenerator.kt:283 */
|
19325 29243 | fn build_enforcing_all_constraints(self) -> crate::input::MediaTypeHeaderInput {
|
19326 - | crate::input::MediaTypeHeaderInput { json: self.json }
|
29244 + | /* ServerBuilderGenerator.kt:542 */
|
29245 + | crate::input::MediaTypeHeaderInput {
|
29246 + | /* ServerBuilderGenerator.kt:546 */
|
29247 + | json: self.json,
|
29248 + | /* ServerBuilderGenerator.kt:542 */
|
29249 + | }
|
29250 + | /* ServerBuilderGenerator.kt:283 */
|
19327 29251 | }
|
29252 + | /* ServerBuilderGenerator.kt:215 */
|
19328 29253 | }
|
29254 + |
|
29255 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19329 29256 | }
|
19330 - | /// See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29257 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
19331 29258 | pub mod media_type_header_input {
|
19332 29259 |
|
29260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
19333 29261 | impl ::std::convert::From<Builder> for crate::input::MediaTypeHeaderInput {
|
19334 29262 | fn from(builder: Builder) -> Self {
|
19335 29263 | builder.build()
|
19336 29264 | }
|
19337 29265 | }
|
19338 - | /// A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29266 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29267 + | /* RustType.kt:516 */
|
19339 29268 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19340 29270 | pub struct Builder {
|
29271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19341 29272 | pub(crate) json: ::std::option::Option<::std::string::String>,
|
29273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19342 29274 | }
|
29275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19343 29276 | impl Builder {
|
29277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19344 29278 | #[allow(missing_docs)] // documentation missing in model
|
29279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19345 29280 | pub fn json(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
19346 - | self.json = input;
|
29281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29282 + | self.json =
|
29283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19347 29285 | self
|
29286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19348 29287 | }
|
19349 - | /// Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29288 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
29289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
19350 29290 | pub fn build(self) -> crate::input::MediaTypeHeaderInput {
|
19351 29291 | self.build_enforcing_required_and_enum_traits()
|
19352 29292 | }
|
29293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19353 29294 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::MediaTypeHeaderInput {
|
19354 - | crate::input::MediaTypeHeaderInput { json: self.json }
|
29295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
29296 + | crate::input::MediaTypeHeaderInput {
|
29297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
29298 + | json: self.json,
|
29299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
29300 + | }
|
29301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19355 29302 | }
|
29303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19356 29304 | }
|
29305 + |
|
29306 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19357 29307 | }
|
19358 - | /// See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29308 + | /// /* ServerBuilderGenerator.kt:171 */See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
19359 29309 | pub(crate) mod timestamp_format_headers_input_internal {
|
19360 29310 |
|
29311 + | /* ServerBuilderGenerator.kt:461 */
|
19361 29312 | impl ::std::convert::From<Builder> for crate::input::TimestampFormatHeadersInput {
|
19362 29313 | fn from(builder: Builder) -> Self {
|
19363 29314 | builder.build()
|
19364 29315 | }
|
19365 29316 | }
|
19366 - | /// A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29317 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29318 + | /* RustType.kt:516 */
|
19367 29319 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29320 + | /* ServerBuilderGenerator.kt:211 */
|
19368 29321 | pub(crate) struct Builder {
|
29322 + | /* ServerBuilderGenerator.kt:308 */
|
19369 29323 | pub(crate) member_epoch_seconds:
|
19370 29324 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29325 + | /* ServerBuilderGenerator.kt:308 */
|
19371 29326 | pub(crate) member_http_date:
|
19372 29327 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29328 + | /* ServerBuilderGenerator.kt:308 */
|
19373 29329 | pub(crate) member_date_time:
|
19374 29330 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29331 + | /* ServerBuilderGenerator.kt:308 */
|
19375 29332 | pub(crate) default_format:
|
19376 29333 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29334 + | /* ServerBuilderGenerator.kt:308 */
|
19377 29335 | pub(crate) target_epoch_seconds:
|
19378 29336 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29337 + | /* ServerBuilderGenerator.kt:308 */
|
19379 29338 | pub(crate) target_http_date:
|
19380 29339 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29340 + | /* ServerBuilderGenerator.kt:308 */
|
19381 29341 | pub(crate) target_date_time:
|
19382 29342 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29343 + | /* ServerBuilderGenerator.kt:211 */
|
19383 29344 | }
|
29345 + | /* ServerBuilderGenerator.kt:215 */
|
19384 29346 | impl Builder {
|
29347 + | /* ServerBuilderGenerator.kt:426 */
|
19385 29348 | #[allow(missing_docs)] // documentation missing in model
|
29349 + | /* ServerBuilderGenerator.kt:428 */
|
19386 29350 | pub(crate) fn set_member_epoch_seconds(
|
19387 29351 | mut self,
|
19388 29352 | input: Option<
|
19389 29353 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19390 29354 | >,
|
19391 29355 | ) -> Self {
|
29356 + | /* ServerBuilderGenerator.kt:429 */
|
19392 29357 | self.member_epoch_seconds = input.map(|v| v.into());
|
19393 29358 | self
|
29359 + | /* ServerBuilderGenerator.kt:428 */
|
19394 29360 | }
|
29361 + | /* ServerBuilderGenerator.kt:426 */
|
19395 29362 | #[allow(missing_docs)] // documentation missing in model
|
29363 + | /* ServerBuilderGenerator.kt:428 */
|
19396 29364 | pub(crate) fn set_member_http_date(
|
19397 29365 | mut self,
|
19398 29366 | input: Option<
|
19399 29367 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19400 29368 | >,
|
19401 29369 | ) -> Self {
|
29370 + | /* ServerBuilderGenerator.kt:429 */
|
19402 29371 | self.member_http_date = input.map(|v| v.into());
|
19403 29372 | self
|
29373 + | /* ServerBuilderGenerator.kt:428 */
|
19404 29374 | }
|
29375 + | /* ServerBuilderGenerator.kt:426 */
|
19405 29376 | #[allow(missing_docs)] // documentation missing in model
|
29377 + | /* ServerBuilderGenerator.kt:428 */
|
19406 29378 | pub(crate) fn set_member_date_time(
|
19407 29379 | mut self,
|
19408 29380 | input: Option<
|
19409 29381 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19410 29382 | >,
|
19411 29383 | ) -> Self {
|
29384 + | /* ServerBuilderGenerator.kt:429 */
|
19412 29385 | self.member_date_time = input.map(|v| v.into());
|
19413 29386 | self
|
29387 + | /* ServerBuilderGenerator.kt:428 */
|
19414 29388 | }
|
29389 + | /* ServerBuilderGenerator.kt:426 */
|
19415 29390 | #[allow(missing_docs)] // documentation missing in model
|
29391 + | /* ServerBuilderGenerator.kt:428 */
|
19416 29392 | pub(crate) fn set_default_format(
|
19417 29393 | mut self,
|
19418 29394 | input: Option<
|
19419 29395 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19420 29396 | >,
|
19421 29397 | ) -> Self {
|
29398 + | /* ServerBuilderGenerator.kt:429 */
|
19422 29399 | self.default_format = input.map(|v| v.into());
|
19423 29400 | self
|
29401 + | /* ServerBuilderGenerator.kt:428 */
|
19424 29402 | }
|
29403 + | /* ServerBuilderGenerator.kt:426 */
|
19425 29404 | #[allow(missing_docs)] // documentation missing in model
|
29405 + | /* ServerBuilderGenerator.kt:428 */
|
19426 29406 | pub(crate) fn set_target_epoch_seconds(
|
19427 29407 | mut self,
|
19428 29408 | input: Option<
|
19429 29409 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19430 29410 | >,
|
19431 29411 | ) -> Self {
|
29412 + | /* ServerBuilderGenerator.kt:429 */
|
19432 29413 | self.target_epoch_seconds = input.map(|v| v.into());
|
19433 29414 | self
|
29415 + | /* ServerBuilderGenerator.kt:428 */
|
19434 29416 | }
|
29417 + | /* ServerBuilderGenerator.kt:426 */
|
19435 29418 | #[allow(missing_docs)] // documentation missing in model
|
29419 + | /* ServerBuilderGenerator.kt:428 */
|
19436 29420 | pub(crate) fn set_target_http_date(
|
19437 29421 | mut self,
|
19438 29422 | input: Option<
|
19439 29423 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19440 29424 | >,
|
19441 29425 | ) -> Self {
|
29426 + | /* ServerBuilderGenerator.kt:429 */
|
19442 29427 | self.target_http_date = input.map(|v| v.into());
|
19443 29428 | self
|
29429 + | /* ServerBuilderGenerator.kt:428 */
|
19444 29430 | }
|
29431 + | /* ServerBuilderGenerator.kt:426 */
|
19445 29432 | #[allow(missing_docs)] // documentation missing in model
|
29433 + | /* ServerBuilderGenerator.kt:428 */
|
19446 29434 | pub(crate) fn set_target_date_time(
|
19447 29435 | mut self,
|
19448 29436 | input: Option<
|
19449 29437 | impl ::std::convert::Into<::aws_smithy_http_server_python::types::DateTime>,
|
19450 29438 | >,
|
19451 29439 | ) -> Self {
|
29440 + | /* ServerBuilderGenerator.kt:429 */
|
19452 29441 | self.target_date_time = input.map(|v| v.into());
|
19453 29442 | self
|
29443 + | /* ServerBuilderGenerator.kt:428 */
|
19454 29444 | }
|
19455 - | /// Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29445 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29446 + | /* ServerBuilderGenerator.kt:271 */
|
19456 29447 | pub fn build(self) -> crate::input::TimestampFormatHeadersInput {
|
19457 29448 | self.build_enforcing_all_constraints()
|
19458 29449 | }
|
29450 + | /* ServerBuilderGenerator.kt:283 */
|
19459 29451 | fn build_enforcing_all_constraints(self) -> crate::input::TimestampFormatHeadersInput {
|
29452 + | /* ServerBuilderGenerator.kt:542 */
|
19460 29453 | crate::input::TimestampFormatHeadersInput {
|
29454 + | /* ServerBuilderGenerator.kt:546 */
|
19461 29455 | member_epoch_seconds: self.member_epoch_seconds,
|
29456 + | /* ServerBuilderGenerator.kt:546 */
|
19462 29457 | member_http_date: self.member_http_date,
|
29458 + | /* ServerBuilderGenerator.kt:546 */
|
19463 29459 | member_date_time: self.member_date_time,
|
29460 + | /* ServerBuilderGenerator.kt:546 */
|
19464 29461 | default_format: self.default_format,
|
29462 + | /* ServerBuilderGenerator.kt:546 */
|
19465 29463 | target_epoch_seconds: self.target_epoch_seconds,
|
29464 + | /* ServerBuilderGenerator.kt:546 */
|
19466 29465 | target_http_date: self.target_http_date,
|
29466 + | /* ServerBuilderGenerator.kt:546 */
|
19467 29467 | target_date_time: self.target_date_time,
|
29468 + | /* ServerBuilderGenerator.kt:542 */
|
19468 29469 | }
|
29470 + | /* ServerBuilderGenerator.kt:283 */
|
19469 29471 | }
|
29472 + | /* ServerBuilderGenerator.kt:215 */
|
19470 29473 | }
|
29474 + |
|
29475 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19471 29476 | }
|
19472 - | /// See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29477 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
19473 29478 | pub mod timestamp_format_headers_input {
|
19474 29479 |
|
29480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
19475 29481 | impl ::std::convert::From<Builder> for crate::input::TimestampFormatHeadersInput {
|
19476 29482 | fn from(builder: Builder) -> Self {
|
19477 29483 | builder.build()
|
19478 29484 | }
|
19479 29485 | }
|
19480 - | /// A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29486 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29487 + | /* RustType.kt:516 */
|
19481 29488 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19482 29490 | pub struct Builder {
|
29491 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19483 29492 | pub(crate) member_epoch_seconds:
|
19484 29493 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19485 29495 | pub(crate) member_http_date:
|
19486 29496 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19487 29498 | pub(crate) member_date_time:
|
19488 29499 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19489 29501 | pub(crate) default_format:
|
19490 29502 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19491 29504 | pub(crate) target_epoch_seconds:
|
19492 29505 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19493 29507 | pub(crate) target_http_date:
|
19494 29508 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19495 29510 | pub(crate) target_date_time:
|
19496 29511 | ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
29512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19497 29513 | }
|
29514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19498 29515 | impl Builder {
|
29516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19499 29517 | #[allow(missing_docs)] // documentation missing in model
|
29518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19500 29519 | pub fn member_epoch_seconds(
|
19501 29520 | mut self,
|
19502 29521 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19503 29522 | ) -> Self {
|
19504 - | self.member_epoch_seconds = input;
|
29523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29524 + | self.member_epoch_seconds =
|
29525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29526 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19505 29527 | self
|
29528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19506 29529 | }
|
29530 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19507 29531 | #[allow(missing_docs)] // documentation missing in model
|
29532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19508 29533 | pub fn member_http_date(
|
19509 29534 | mut self,
|
19510 29535 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19511 29536 | ) -> Self {
|
19512 - | self.member_http_date = input;
|
29537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29538 + | self.member_http_date =
|
29539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19513 29541 | self
|
29542 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19514 29543 | }
|
29544 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19515 29545 | #[allow(missing_docs)] // documentation missing in model
|
29546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19516 29547 | pub fn member_date_time(
|
19517 29548 | mut self,
|
19518 29549 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19519 29550 | ) -> Self {
|
19520 - | self.member_date_time = input;
|
29551 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29552 + | self.member_date_time =
|
29553 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19521 29555 | self
|
29556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19522 29557 | }
|
29558 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19523 29559 | #[allow(missing_docs)] // documentation missing in model
|
29560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19524 29561 | pub fn default_format(
|
19525 29562 | mut self,
|
19526 29563 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19527 29564 | ) -> Self {
|
19528 - | self.default_format = input;
|
29565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29566 + | self.default_format =
|
29567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19529 29569 | self
|
29570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19530 29571 | }
|
29572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19531 29573 | #[allow(missing_docs)] // documentation missing in model
|
29574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19532 29575 | pub fn target_epoch_seconds(
|
19533 29576 | mut self,
|
19534 29577 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19535 29578 | ) -> Self {
|
19536 - | self.target_epoch_seconds = input;
|
29579 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29580 + | self.target_epoch_seconds =
|
29581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19537 29583 | self
|
29584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19538 29585 | }
|
29586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19539 29587 | #[allow(missing_docs)] // documentation missing in model
|
29588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19540 29589 | pub fn target_http_date(
|
19541 29590 | mut self,
|
19542 29591 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19543 29592 | ) -> Self {
|
19544 - | self.target_http_date = input;
|
29593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29594 + | self.target_http_date =
|
29595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19545 29597 | self
|
29598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19546 29599 | }
|
29600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19547 29601 | #[allow(missing_docs)] // documentation missing in model
|
29602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19548 29603 | pub fn target_date_time(
|
19549 29604 | mut self,
|
19550 29605 | input: ::std::option::Option<::aws_smithy_http_server_python::types::DateTime>,
|
19551 29606 | ) -> Self {
|
19552 - | self.target_date_time = input;
|
29607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29608 + | self.target_date_time =
|
29609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19553 29611 | self
|
29612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19554 29613 | }
|
19555 - | /// Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29614 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
29615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
19556 29616 | pub fn build(self) -> crate::input::TimestampFormatHeadersInput {
|
19557 29617 | self.build_enforcing_required_and_enum_traits()
|
19558 29618 | }
|
29619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19559 29620 | fn build_enforcing_required_and_enum_traits(
|
19560 29621 | self,
|
19561 29622 | ) -> crate::input::TimestampFormatHeadersInput {
|
29623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19562 29624 | crate::input::TimestampFormatHeadersInput {
|
29625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19563 29626 | member_epoch_seconds: self.member_epoch_seconds,
|
29627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19564 29628 | member_http_date: self.member_http_date,
|
29629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19565 29630 | member_date_time: self.member_date_time,
|
29631 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19566 29632 | default_format: self.default_format,
|
29633 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19567 29634 | target_epoch_seconds: self.target_epoch_seconds,
|
29635 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19568 29636 | target_http_date: self.target_http_date,
|
29637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19569 29638 | target_date_time: self.target_date_time,
|
29639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19570 29640 | }
|
29641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19571 29642 | }
|
29643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19572 29644 | }
|
29645 + |
|
29646 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19573 29647 | }
|
19574 - | /// See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29648 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
19575 29649 | pub(crate) mod null_and_empty_headers_server_input_internal {
|
19576 29650 |
|
29651 + | /* ServerBuilderGenerator.kt:461 */
|
19577 29652 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersServerInput {
|
19578 29653 | fn from(builder: Builder) -> Self {
|
19579 29654 | builder.build()
|
19580 29655 | }
|
19581 29656 | }
|
19582 - | /// A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29657 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29658 + | /* RustType.kt:516 */
|
19583 29659 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29660 + | /* ServerBuilderGenerator.kt:211 */
|
19584 29661 | pub(crate) struct Builder {
|
29662 + | /* ServerBuilderGenerator.kt:308 */
|
19585 29663 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
29664 + | /* ServerBuilderGenerator.kt:308 */
|
19586 29665 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
29666 + | /* ServerBuilderGenerator.kt:308 */
|
19587 29667 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
29668 + | /* ServerBuilderGenerator.kt:211 */
|
19588 29669 | }
|
29670 + | /* ServerBuilderGenerator.kt:215 */
|
19589 29671 | impl Builder {
|
29672 + | /* ServerBuilderGenerator.kt:426 */
|
19590 29673 | #[allow(missing_docs)] // documentation missing in model
|
29674 + | /* ServerBuilderGenerator.kt:428 */
|
19591 29675 | pub(crate) fn set_a(
|
19592 29676 | mut self,
|
19593 29677 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19594 29678 | ) -> Self {
|
29679 + | /* ServerBuilderGenerator.kt:429 */
|
19595 29680 | self.a = input.map(|v| v.into());
|
19596 29681 | self
|
29682 + | /* ServerBuilderGenerator.kt:428 */
|
19597 29683 | }
|
29684 + | /* ServerBuilderGenerator.kt:426 */
|
19598 29685 | #[allow(missing_docs)] // documentation missing in model
|
29686 + | /* ServerBuilderGenerator.kt:428 */
|
19599 29687 | pub(crate) fn set_b(
|
19600 29688 | mut self,
|
19601 29689 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19602 29690 | ) -> Self {
|
29691 + | /* ServerBuilderGenerator.kt:429 */
|
19603 29692 | self.b = input.map(|v| v.into());
|
19604 29693 | self
|
29694 + | /* ServerBuilderGenerator.kt:428 */
|
19605 29695 | }
|
29696 + | /* ServerBuilderGenerator.kt:426 */
|
19606 29697 | #[allow(missing_docs)] // documentation missing in model
|
29698 + | /* ServerBuilderGenerator.kt:428 */
|
19607 29699 | pub(crate) fn set_c(
|
19608 29700 | mut self,
|
19609 29701 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
19610 29702 | ) -> Self {
|
29703 + | /* ServerBuilderGenerator.kt:429 */
|
19611 29704 | self.c = input.map(|v| v.into());
|
19612 29705 | self
|
29706 + | /* ServerBuilderGenerator.kt:428 */
|
19613 29707 | }
|
19614 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29708 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29709 + | /* ServerBuilderGenerator.kt:271 */
|
19615 29710 | pub fn build(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
19616 29711 | self.build_enforcing_all_constraints()
|
19617 29712 | }
|
29713 + | /* ServerBuilderGenerator.kt:283 */
|
19618 29714 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
29715 + | /* ServerBuilderGenerator.kt:542 */
|
19619 29716 | crate::input::NullAndEmptyHeadersServerInput {
|
29717 + | /* ServerBuilderGenerator.kt:546 */
|
19620 29718 | a: self.a,
|
29719 + | /* ServerBuilderGenerator.kt:546 */
|
19621 29720 | b: self.b,
|
29721 + | /* ServerBuilderGenerator.kt:546 */
|
19622 29722 | c: self.c,
|
29723 + | /* ServerBuilderGenerator.kt:542 */
|
19623 29724 | }
|
29725 + | /* ServerBuilderGenerator.kt:283 */
|
19624 29726 | }
|
29727 + | /* ServerBuilderGenerator.kt:215 */
|
19625 29728 | }
|
29729 + |
|
29730 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19626 29731 | }
|
19627 - | /// See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29732 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
19628 29733 | pub mod null_and_empty_headers_server_input {
|
19629 29734 |
|
29735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
19630 29736 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersServerInput {
|
19631 29737 | fn from(builder: Builder) -> Self {
|
19632 29738 | builder.build()
|
19633 29739 | }
|
19634 29740 | }
|
19635 - | /// A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29741 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29742 + | /* RustType.kt:516 */
|
19636 29743 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19637 29745 | pub struct Builder {
|
29746 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19638 29747 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
29748 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19639 29749 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
29750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19640 29751 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
29752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19641 29753 | }
|
29754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19642 29755 | impl Builder {
|
29756 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19643 29757 | #[allow(missing_docs)] // documentation missing in model
|
29758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19644 29759 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
19645 - | self.a = input;
|
29760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29761 + | self.a =
|
29762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29763 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19646 29764 | self
|
29765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19647 29766 | }
|
29767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19648 29768 | #[allow(missing_docs)] // documentation missing in model
|
29769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19649 29770 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
19650 - | self.b = input;
|
29771 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29772 + | self.b =
|
29773 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19651 29775 | self
|
29776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19652 29777 | }
|
29778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19653 29779 | #[allow(missing_docs)] // documentation missing in model
|
29780 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19654 29781 | pub fn c(
|
19655 29782 | mut self,
|
19656 29783 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19657 29784 | ) -> Self {
|
19658 - | self.c = input;
|
29785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29786 + | self.c =
|
29787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19659 29789 | self
|
29790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19660 29791 | }
|
19661 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29792 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
29793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
19662 29794 | pub fn build(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
19663 29795 | self.build_enforcing_required_and_enum_traits()
|
19664 29796 | }
|
29797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19665 29798 | fn build_enforcing_required_and_enum_traits(
|
19666 29799 | self,
|
19667 29800 | ) -> crate::input::NullAndEmptyHeadersServerInput {
|
29801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19668 29802 | crate::input::NullAndEmptyHeadersServerInput {
|
29803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19669 29804 | a: self.a,
|
29805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19670 29806 | b: self.b,
|
29807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19671 29808 | c: self.c,
|
29809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19672 29810 | }
|
29811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19673 29812 | }
|
29813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19674 29814 | }
|
29815 + |
|
29816 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19675 29817 | }
|
19676 - | /// See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29818 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19677 29819 | pub(crate) mod null_and_empty_headers_client_input_internal {
|
19678 29820 |
|
29821 + | /* ServerBuilderGenerator.kt:461 */
|
19679 29822 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersClientInput {
|
19680 29823 | fn from(builder: Builder) -> Self {
|
19681 29824 | builder.build()
|
19682 29825 | }
|
19683 29826 | }
|
19684 - | /// A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29827 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29828 + | /* RustType.kt:516 */
|
19685 29829 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29830 + | /* ServerBuilderGenerator.kt:211 */
|
19686 29831 | pub(crate) struct Builder {
|
29832 + | /* ServerBuilderGenerator.kt:308 */
|
19687 29833 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
29834 + | /* ServerBuilderGenerator.kt:308 */
|
19688 29835 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
29836 + | /* ServerBuilderGenerator.kt:308 */
|
19689 29837 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
29838 + | /* ServerBuilderGenerator.kt:211 */
|
19690 29839 | }
|
29840 + | /* ServerBuilderGenerator.kt:215 */
|
19691 29841 | impl Builder {
|
29842 + | /* ServerBuilderGenerator.kt:426 */
|
19692 29843 | #[allow(missing_docs)] // documentation missing in model
|
29844 + | /* ServerBuilderGenerator.kt:428 */
|
19693 29845 | pub(crate) fn set_a(
|
19694 29846 | mut self,
|
19695 29847 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19696 29848 | ) -> Self {
|
29849 + | /* ServerBuilderGenerator.kt:429 */
|
19697 29850 | self.a = input.map(|v| v.into());
|
19698 29851 | self
|
29852 + | /* ServerBuilderGenerator.kt:428 */
|
19699 29853 | }
|
29854 + | /* ServerBuilderGenerator.kt:426 */
|
19700 29855 | #[allow(missing_docs)] // documentation missing in model
|
29856 + | /* ServerBuilderGenerator.kt:428 */
|
19701 29857 | pub(crate) fn set_b(
|
19702 29858 | mut self,
|
19703 29859 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19704 29860 | ) -> Self {
|
29861 + | /* ServerBuilderGenerator.kt:429 */
|
19705 29862 | self.b = input.map(|v| v.into());
|
19706 29863 | self
|
29864 + | /* ServerBuilderGenerator.kt:428 */
|
19707 29865 | }
|
29866 + | /* ServerBuilderGenerator.kt:426 */
|
19708 29867 | #[allow(missing_docs)] // documentation missing in model
|
29868 + | /* ServerBuilderGenerator.kt:428 */
|
19709 29869 | pub(crate) fn set_c(
|
19710 29870 | mut self,
|
19711 29871 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
19712 29872 | ) -> Self {
|
29873 + | /* ServerBuilderGenerator.kt:429 */
|
19713 29874 | self.c = input.map(|v| v.into());
|
19714 29875 | self
|
29876 + | /* ServerBuilderGenerator.kt:428 */
|
19715 29877 | }
|
19716 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29878 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29879 + | /* ServerBuilderGenerator.kt:271 */
|
19717 29880 | pub fn build(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
19718 29881 | self.build_enforcing_all_constraints()
|
19719 29882 | }
|
29883 + | /* ServerBuilderGenerator.kt:283 */
|
19720 29884 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
29885 + | /* ServerBuilderGenerator.kt:542 */
|
19721 29886 | crate::input::NullAndEmptyHeadersClientInput {
|
29887 + | /* ServerBuilderGenerator.kt:546 */
|
19722 29888 | a: self.a,
|
29889 + | /* ServerBuilderGenerator.kt:546 */
|
19723 29890 | b: self.b,
|
29891 + | /* ServerBuilderGenerator.kt:546 */
|
19724 29892 | c: self.c,
|
29893 + | /* ServerBuilderGenerator.kt:542 */
|
19725 29894 | }
|
29895 + | /* ServerBuilderGenerator.kt:283 */
|
19726 29896 | }
|
29897 + | /* ServerBuilderGenerator.kt:215 */
|
19727 29898 | }
|
29899 + |
|
29900 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19728 29901 | }
|
19729 - | /// See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29902 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19730 29903 | pub mod null_and_empty_headers_client_input {
|
19731 29904 |
|
29905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
19732 29906 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersClientInput {
|
19733 29907 | fn from(builder: Builder) -> Self {
|
19734 29908 | builder.build()
|
19735 29909 | }
|
19736 29910 | }
|
19737 - | /// A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29911 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29912 + | /* RustType.kt:516 */
|
19738 29913 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
29914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19739 29915 | pub struct Builder {
|
29916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19740 29917 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
29918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19741 29919 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
29920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
19742 29921 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
29922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
19743 29923 | }
|
29924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19744 29925 | impl Builder {
|
29926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19745 29927 | #[allow(missing_docs)] // documentation missing in model
|
29928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19746 29929 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
19747 - | self.a = input;
|
29930 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29931 + | self.a =
|
29932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19748 29934 | self
|
29935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19749 29936 | }
|
29937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19750 29938 | #[allow(missing_docs)] // documentation missing in model
|
29939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19751 29940 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
19752 - | self.b = input;
|
29941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29942 + | self.b =
|
29943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19753 29945 | self
|
29946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19754 29947 | }
|
29948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
19755 29949 | #[allow(missing_docs)] // documentation missing in model
|
29950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19756 29951 | pub fn c(
|
19757 29952 | mut self,
|
19758 29953 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19759 29954 | ) -> Self {
|
19760 - | self.c = input;
|
29955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
29956 + | self.c =
|
29957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
29958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
19761 29959 | self
|
29960 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
19762 29961 | }
|
19763 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29962 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
29963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
19764 29964 | pub fn build(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
19765 29965 | self.build_enforcing_required_and_enum_traits()
|
19766 29966 | }
|
29967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19767 29968 | fn build_enforcing_required_and_enum_traits(
|
19768 29969 | self,
|
19769 29970 | ) -> crate::input::NullAndEmptyHeadersClientInput {
|
29971 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19770 29972 | crate::input::NullAndEmptyHeadersClientInput {
|
29973 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19771 29974 | a: self.a,
|
29975 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19772 29976 | b: self.b,
|
29977 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
19773 29978 | c: self.c,
|
29979 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
19774 29980 | }
|
29981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
19775 29982 | }
|
29983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
19776 29984 | }
|
29985 + |
|
29986 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
19777 29987 | }
|
19778 - | /// See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
29988 + | /// /* ServerBuilderGenerator.kt:171 */See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19779 29989 | pub(crate) mod input_and_output_with_headers_input_internal {
|
19780 29990 |
|
29991 + | /* RustType.kt:516 */
|
19781 29992 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
19782 - | /// Holds one variant for each of the ways the builder can fail.
|
29993 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
29994 + | /* RustType.kt:516 */
|
19783 29995 | #[non_exhaustive]
|
29996 + | /* ServerBuilderConstraintViolations.kt:75 */
|
19784 29997 | #[allow(clippy::enum_variant_names)]
|
19785 29998 | pub(crate) enum ConstraintViolation {
|
19786 - | /// Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
29999 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
30000 + | /* RustType.kt:516 */
|
19787 30001 | #[doc(hidden)]
|
30002 + | /* ServerBuilderConstraintViolations.kt:164 */
|
19788 30003 | HeaderStringSet(crate::model::string_set_internal::ConstraintViolation),
|
19789 - | /// Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
30004 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
30005 + | /* RustType.kt:516 */
|
19790 30006 | #[doc(hidden)]
|
30007 + | /* ServerBuilderConstraintViolations.kt:164 */
|
19791 30008 | HeaderEnum(crate::model::foo_enum_internal::ConstraintViolation),
|
19792 - | /// Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
30009 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
30010 + | /* RustType.kt:516 */
|
19793 30011 | #[doc(hidden)]
|
30012 + | /* ServerBuilderConstraintViolations.kt:164 */
|
19794 30013 | HeaderEnumList(crate::model::foo_enum_list_internal::ConstraintViolation),
|
30014 + | /* ServerBuilderConstraintViolations.kt:75 */
|
19795 30015 | }
|
30016 + | /* ServerBuilderConstraintViolations.kt:117 */
|
19796 30017 | impl ::std::fmt::Display for ConstraintViolation {
|
30018 + | /* ServerBuilderConstraintViolations.kt:118 */
|
19797 30019 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
30020 + | /* ServerBuilderConstraintViolations.kt:119 */
|
19798 30021 | match self {
|
19799 - | ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
19800 - | ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
19801 - | ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
19802 - | }
|
30022 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
30023 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
30024 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
30025 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
30026 + | /* ServerBuilderConstraintViolations.kt:118 */
|
19803 30027 | }
|
30028 + | /* ServerBuilderConstraintViolations.kt:117 */
|
19804 30029 | }
|
30030 + | /* ServerBuilderConstraintViolations.kt:84 */
|
19805 30031 | impl ::std::error::Error for ConstraintViolation {}
|
30032 + | /* ServerBuilderConstraintViolations.kt:171 */
|
19806 30033 | impl ConstraintViolation {
|
19807 30034 | pub(crate) fn as_validation_exception_field(
|
19808 30035 | self,
|
19809 30036 | path: ::std::string::String,
|
19810 30037 | ) -> crate::model::ValidationExceptionField {
|
19811 30038 | match self {
|
19812 30039 | ConstraintViolation::HeaderStringSet(inner) => {
|
19813 30040 | inner.as_validation_exception_field(path + "/headerStringSet")
|
19814 30041 | }
|
19815 30042 | ConstraintViolation::HeaderEnum(inner) => {
|
19816 30043 | inner.as_validation_exception_field(path + "/headerEnum")
|
19817 30044 | }
|
19818 30045 | ConstraintViolation::HeaderEnumList(inner) => {
|
19819 30046 | inner.as_validation_exception_field(path + "/headerEnumList")
|
19820 30047 | }
|
19821 30048 | }
|
19822 30049 | }
|
19823 30050 | }
|
30051 + | /* ServerBuilderGenerator.kt:234 */
|
19824 30052 | impl ::std::convert::From<ConstraintViolation>
|
19825 30053 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
19826 30054 | {
|
19827 30055 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
19828 30056 | let first_validation_exception_field =
|
19829 30057 | constraint_violation.as_validation_exception_field("".to_owned());
|
19830 30058 | let validation_exception = crate::error::ValidationException {
|
19831 30059 | message: format!(
|
19832 30060 | "1 validation error detected. {}",
|
19833 30061 | &first_validation_exception_field.message
|
19834 30062 | ),
|
19835 30063 | field_list: Some(vec![first_validation_exception_field]),
|
19836 30064 | };
|
19837 30065 | Self::ConstraintViolation(
|
19838 30066 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
19839 30067 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
19840 30068 | )
|
19841 30069 | }
|
19842 30070 | }
|
30071 + | /* ServerBuilderGenerator.kt:244 */
|
19843 30072 | impl ::std::convert::From<Builder>
|
19844 30073 | for crate::constrained::MaybeConstrained<crate::input::InputAndOutputWithHeadersInput>
|
19845 30074 | {
|
19846 30075 | fn from(builder: Builder) -> Self {
|
19847 30076 | Self::Unconstrained(builder)
|
19848 30077 | }
|
19849 30078 | }
|
30079 + | /* ServerBuilderGenerator.kt:446 */
|
19850 30080 | impl ::std::convert::TryFrom<Builder> for crate::input::InputAndOutputWithHeadersInput {
|
19851 30081 | type Error = ConstraintViolation;
|
19852 30082 |
|
19853 30083 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
19854 30084 | builder.build()
|
19855 30085 | }
|
19856 30086 | }
|
19857 - | /// A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30087 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30088 + | /* RustType.kt:516 */
|
19858 30089 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
30090 + | /* ServerBuilderGenerator.kt:211 */
|
19859 30091 | pub(crate) struct Builder {
|
30092 + | /* ServerBuilderGenerator.kt:308 */
|
19860 30093 | pub(crate) header_string: ::std::option::Option<::std::string::String>,
|
30094 + | /* ServerBuilderGenerator.kt:308 */
|
19861 30095 | pub(crate) header_byte: ::std::option::Option<i8>,
|
30096 + | /* ServerBuilderGenerator.kt:308 */
|
19862 30097 | pub(crate) header_short: ::std::option::Option<i16>,
|
30098 + | /* ServerBuilderGenerator.kt:308 */
|
19863 30099 | pub(crate) header_integer: ::std::option::Option<i32>,
|
30100 + | /* ServerBuilderGenerator.kt:308 */
|
19864 30101 | pub(crate) header_long: ::std::option::Option<i64>,
|
30102 + | /* ServerBuilderGenerator.kt:308 */
|
19865 30103 | pub(crate) header_float: ::std::option::Option<f32>,
|
30104 + | /* ServerBuilderGenerator.kt:308 */
|
19866 30105 | pub(crate) header_double: ::std::option::Option<f64>,
|
30106 + | /* ServerBuilderGenerator.kt:308 */
|
19867 30107 | pub(crate) header_true_bool: ::std::option::Option<bool>,
|
30108 + | /* ServerBuilderGenerator.kt:308 */
|
19868 30109 | pub(crate) header_false_bool: ::std::option::Option<bool>,
|
30110 + | /* ServerBuilderGenerator.kt:308 */
|
19869 30111 | pub(crate) header_string_list:
|
19870 30112 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
30113 + | /* ServerBuilderGenerator.kt:308 */
|
19871 30114 | pub(crate) header_string_set:
|
19872 30115 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
30116 + | /* ServerBuilderGenerator.kt:308 */
|
19873 30117 | pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
30118 + | /* ServerBuilderGenerator.kt:308 */
|
19874 30119 | pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
30120 + | /* ServerBuilderGenerator.kt:308 */
|
19875 30121 | pub(crate) header_timestamp_list: ::std::option::Option<
|
19876 30122 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
19877 30123 | >,
|
30124 + | /* ServerBuilderGenerator.kt:308 */
|
19878 30125 | pub(crate) header_enum:
|
19879 30126 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
30127 + | /* ServerBuilderGenerator.kt:308 */
|
19880 30128 | pub(crate) header_enum_list: ::std::option::Option<
|
19881 30129 | crate::constrained::MaybeConstrained<
|
19882 30130 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
19883 30131 | >,
|
19884 30132 | >,
|
30133 + | /* ServerBuilderGenerator.kt:308 */
|
19885 30134 | pub(crate) header_integer_enum: ::std::option::Option<i32>,
|
30135 + | /* ServerBuilderGenerator.kt:308 */
|
19886 30136 | pub(crate) header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
30137 + | /* ServerBuilderGenerator.kt:211 */
|
19887 30138 | }
|
30139 + | /* ServerBuilderGenerator.kt:215 */
|
19888 30140 | impl Builder {
|
30141 + | /* ServerBuilderGenerator.kt:426 */
|
19889 30142 | #[allow(missing_docs)] // documentation missing in model
|
30143 + | /* ServerBuilderGenerator.kt:428 */
|
19890 30144 | pub(crate) fn set_header_string(
|
19891 30145 | mut self,
|
19892 30146 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
19893 30147 | ) -> Self {
|
30148 + | /* ServerBuilderGenerator.kt:429 */
|
19894 30149 | self.header_string = input.map(|v| v.into());
|
19895 30150 | self
|
30151 + | /* ServerBuilderGenerator.kt:428 */
|
19896 30152 | }
|
30153 + | /* ServerBuilderGenerator.kt:426 */
|
19897 30154 | #[allow(missing_docs)] // documentation missing in model
|
30155 + | /* ServerBuilderGenerator.kt:428 */
|
19898 30156 | pub(crate) fn set_header_byte(
|
19899 30157 | mut self,
|
19900 30158 | input: Option<impl ::std::convert::Into<i8>>,
|
19901 30159 | ) -> Self {
|
30160 + | /* ServerBuilderGenerator.kt:429 */
|
19902 30161 | self.header_byte = input.map(|v| v.into());
|
19903 30162 | self
|
30163 + | /* ServerBuilderGenerator.kt:428 */
|
19904 30164 | }
|
30165 + | /* ServerBuilderGenerator.kt:426 */
|
19905 30166 | #[allow(missing_docs)] // documentation missing in model
|
30167 + | /* ServerBuilderGenerator.kt:428 */
|
19906 30168 | pub(crate) fn set_header_short(
|
19907 30169 | mut self,
|
19908 30170 | input: Option<impl ::std::convert::Into<i16>>,
|
19909 30171 | ) -> Self {
|
30172 + | /* ServerBuilderGenerator.kt:429 */
|
19910 30173 | self.header_short = input.map(|v| v.into());
|
19911 30174 | self
|
30175 + | /* ServerBuilderGenerator.kt:428 */
|
19912 30176 | }
|
30177 + | /* ServerBuilderGenerator.kt:426 */
|
19913 30178 | #[allow(missing_docs)] // documentation missing in model
|
30179 + | /* ServerBuilderGenerator.kt:428 */
|
19914 30180 | pub(crate) fn set_header_integer(
|
19915 30181 | mut self,
|
19916 30182 | input: Option<impl ::std::convert::Into<i32>>,
|
19917 30183 | ) -> Self {
|
30184 + | /* ServerBuilderGenerator.kt:429 */
|
19918 30185 | self.header_integer = input.map(|v| v.into());
|
19919 30186 | self
|
30187 + | /* ServerBuilderGenerator.kt:428 */
|
19920 30188 | }
|
30189 + | /* ServerBuilderGenerator.kt:426 */
|
19921 30190 | #[allow(missing_docs)] // documentation missing in model
|
30191 + | /* ServerBuilderGenerator.kt:428 */
|
19922 30192 | pub(crate) fn set_header_long(
|
19923 30193 | mut self,
|
19924 30194 | input: Option<impl ::std::convert::Into<i64>>,
|
19925 30195 | ) -> Self {
|
30196 + | /* ServerBuilderGenerator.kt:429 */
|
19926 30197 | self.header_long = input.map(|v| v.into());
|
19927 30198 | self
|
30199 + | /* ServerBuilderGenerator.kt:428 */
|
19928 30200 | }
|
30201 + | /* ServerBuilderGenerator.kt:426 */
|
19929 30202 | #[allow(missing_docs)] // documentation missing in model
|
30203 + | /* ServerBuilderGenerator.kt:428 */
|
19930 30204 | pub(crate) fn set_header_float(
|
19931 30205 | mut self,
|
19932 30206 | input: Option<impl ::std::convert::Into<f32>>,
|
19933 30207 | ) -> Self {
|
30208 + | /* ServerBuilderGenerator.kt:429 */
|
19934 30209 | self.header_float = input.map(|v| v.into());
|
19935 30210 | self
|
30211 + | /* ServerBuilderGenerator.kt:428 */
|
19936 30212 | }
|
30213 + | /* ServerBuilderGenerator.kt:426 */
|
19937 30214 | #[allow(missing_docs)] // documentation missing in model
|
30215 + | /* ServerBuilderGenerator.kt:428 */
|
19938 30216 | pub(crate) fn set_header_double(
|
19939 30217 | mut self,
|
19940 30218 | input: Option<impl ::std::convert::Into<f64>>,
|
19941 30219 | ) -> Self {
|
30220 + | /* ServerBuilderGenerator.kt:429 */
|
19942 30221 | self.header_double = input.map(|v| v.into());
|
19943 30222 | self
|
30223 + | /* ServerBuilderGenerator.kt:428 */
|
19944 30224 | }
|
30225 + | /* ServerBuilderGenerator.kt:426 */
|
19945 30226 | #[allow(missing_docs)] // documentation missing in model
|
30227 + | /* ServerBuilderGenerator.kt:428 */
|
19946 30228 | pub(crate) fn set_header_true_bool(
|
19947 30229 | mut self,
|
19948 30230 | input: Option<impl ::std::convert::Into<bool>>,
|
19949 30231 | ) -> Self {
|
30232 + | /* ServerBuilderGenerator.kt:429 */
|
19950 30233 | self.header_true_bool = input.map(|v| v.into());
|
19951 30234 | self
|
30235 + | /* ServerBuilderGenerator.kt:428 */
|
19952 30236 | }
|
30237 + | /* ServerBuilderGenerator.kt:426 */
|
19953 30238 | #[allow(missing_docs)] // documentation missing in model
|
30239 + | /* ServerBuilderGenerator.kt:428 */
|
19954 30240 | pub(crate) fn set_header_false_bool(
|
19955 30241 | mut self,
|
19956 30242 | input: Option<impl ::std::convert::Into<bool>>,
|
19957 30243 | ) -> Self {
|
30244 + | /* ServerBuilderGenerator.kt:429 */
|
19958 30245 | self.header_false_bool = input.map(|v| v.into());
|
19959 30246 | self
|
30247 + | /* ServerBuilderGenerator.kt:428 */
|
19960 30248 | }
|
30249 + | /* ServerBuilderGenerator.kt:426 */
|
19961 30250 | #[allow(missing_docs)] // documentation missing in model
|
30251 + | /* ServerBuilderGenerator.kt:428 */
|
19962 30252 | pub(crate) fn set_header_string_list(
|
19963 30253 | mut self,
|
19964 30254 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
19965 30255 | ) -> Self {
|
30256 + | /* ServerBuilderGenerator.kt:429 */
|
19966 30257 | self.header_string_list = input.map(|v| v.into());
|
19967 30258 | self
|
30259 + | /* ServerBuilderGenerator.kt:428 */
|
19968 30260 | }
|
30261 + | /* ServerBuilderGenerator.kt:426 */
|
19969 30262 | #[allow(missing_docs)] // documentation missing in model
|
30263 + | /* ServerBuilderGenerator.kt:428 */
|
19970 30264 | pub(crate) fn set_header_string_set(
|
19971 30265 | mut self,
|
19972 30266 | input: Option<
|
19973 30267 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
19974 30268 | >,
|
19975 30269 | ) -> Self {
|
30270 + | /* ServerBuilderGenerator.kt:429 */
|
19976 30271 | self.header_string_set = input.map(|v| v.into());
|
19977 30272 | self
|
30273 + | /* ServerBuilderGenerator.kt:428 */
|
19978 30274 | }
|
30275 + | /* ServerBuilderGenerator.kt:426 */
|
19979 30276 | #[allow(missing_docs)] // documentation missing in model
|
30277 + | /* ServerBuilderGenerator.kt:428 */
|
19980 30278 | pub(crate) fn set_header_integer_list(
|
19981 30279 | mut self,
|
19982 30280 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
19983 30281 | ) -> Self {
|
30282 + | /* ServerBuilderGenerator.kt:429 */
|
19984 30283 | self.header_integer_list = input.map(|v| v.into());
|
19985 30284 | self
|
30285 + | /* ServerBuilderGenerator.kt:428 */
|
19986 30286 | }
|
30287 + | /* ServerBuilderGenerator.kt:426 */
|
19987 30288 | #[allow(missing_docs)] // documentation missing in model
|
30289 + | /* ServerBuilderGenerator.kt:428 */
|
19988 30290 | pub(crate) fn set_header_boolean_list(
|
19989 30291 | mut self,
|
19990 30292 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
19991 30293 | ) -> Self {
|
30294 + | /* ServerBuilderGenerator.kt:429 */
|
19992 30295 | self.header_boolean_list = input.map(|v| v.into());
|
19993 30296 | self
|
30297 + | /* ServerBuilderGenerator.kt:428 */
|
19994 30298 | }
|
30299 + | /* ServerBuilderGenerator.kt:426 */
|
19995 30300 | #[allow(missing_docs)] // documentation missing in model
|
30301 + | /* ServerBuilderGenerator.kt:428 */
|
19996 30302 | pub(crate) fn set_header_timestamp_list(
|
19997 30303 | mut self,
|
19998 30304 | input: Option<
|
19999 30305 | impl ::std::convert::Into<
|
20000 30306 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
20001 30307 | >,
|
20002 30308 | >,
|
20003 30309 | ) -> Self {
|
30310 + | /* ServerBuilderGenerator.kt:429 */
|
20004 30311 | self.header_timestamp_list = input.map(|v| v.into());
|
20005 30312 | self
|
30313 + | /* ServerBuilderGenerator.kt:428 */
|
20006 30314 | }
|
30315 + | /* ServerBuilderGenerator.kt:426 */
|
20007 30316 | #[allow(missing_docs)] // documentation missing in model
|
30317 + | /* ServerBuilderGenerator.kt:428 */
|
20008 30318 | pub(crate) fn set_header_enum(
|
20009 30319 | mut self,
|
20010 30320 | input: Option<
|
20011 30321 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
20012 30322 | >,
|
20013 30323 | ) -> Self {
|
30324 + | /* ServerBuilderGenerator.kt:429 */
|
20014 30325 | self.header_enum = input.map(|v| v.into());
|
20015 30326 | self
|
30327 + | /* ServerBuilderGenerator.kt:428 */
|
20016 30328 | }
|
30329 + | /* ServerBuilderGenerator.kt:426 */
|
20017 30330 | #[allow(missing_docs)] // documentation missing in model
|
30331 + | /* ServerBuilderGenerator.kt:428 */
|
20018 30332 | pub(crate) fn set_header_enum_list(
|
20019 30333 | mut self,
|
20020 30334 | input: Option<
|
20021 30335 | impl ::std::convert::Into<
|
20022 30336 | crate::constrained::MaybeConstrained<
|
20023 30337 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
20024 30338 | >,
|
20025 30339 | >,
|
20026 30340 | >,
|
20027 30341 | ) -> Self {
|
30342 + | /* ServerBuilderGenerator.kt:429 */
|
20028 30343 | self.header_enum_list = input.map(|v| v.into());
|
20029 30344 | self
|
30345 + | /* ServerBuilderGenerator.kt:428 */
|
20030 30346 | }
|
30347 + | /* ServerBuilderGenerator.kt:426 */
|
20031 30348 | #[allow(missing_docs)] // documentation missing in model
|
30349 + | /* ServerBuilderGenerator.kt:428 */
|
20032 30350 | pub(crate) fn set_header_integer_enum(
|
20033 30351 | mut self,
|
20034 30352 | input: Option<impl ::std::convert::Into<i32>>,
|
20035 30353 | ) -> Self {
|
30354 + | /* ServerBuilderGenerator.kt:429 */
|
20036 30355 | self.header_integer_enum = input.map(|v| v.into());
|
20037 30356 | self
|
30357 + | /* ServerBuilderGenerator.kt:428 */
|
20038 30358 | }
|
30359 + | /* ServerBuilderGenerator.kt:426 */
|
20039 30360 | #[allow(missing_docs)] // documentation missing in model
|
30361 + | /* ServerBuilderGenerator.kt:428 */
|
20040 30362 | pub(crate) fn set_header_integer_enum_list(
|
20041 30363 | mut self,
|
20042 30364 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
20043 30365 | ) -> Self {
|
30366 + | /* ServerBuilderGenerator.kt:429 */
|
20044 30367 | self.header_integer_enum_list = input.map(|v| v.into());
|
20045 30368 | self
|
30369 + | /* ServerBuilderGenerator.kt:428 */
|
20046 30370 | }
|
20047 - | /// Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
20048 - | ///
|
30371 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30372 + | /// /* ServerBuilderGenerator.kt:260 */
|
20049 30373 | /// The builder fails to construct a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput) if a [`ConstraintViolation`] occurs.
|
20050 30374 | ///
|
20051 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
30375 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
30376 + | /* ServerBuilderGenerator.kt:271 */
|
20052 30377 | pub fn build(
|
20053 30378 | self,
|
20054 30379 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
20055 30380 | self.build_enforcing_all_constraints()
|
20056 30381 | }
|
30382 + | /* ServerBuilderGenerator.kt:283 */
|
20057 30383 | fn build_enforcing_all_constraints(
|
20058 30384 | self,
|
20059 30385 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
20060 - | Ok(crate::input::InputAndOutputWithHeadersInput {
|
30386 + | /* ServerBuilderGenerator.kt:287 */
|
30387 + | Ok(
|
30388 + | /* ServerBuilderGenerator.kt:542 */
|
30389 + | crate::input::InputAndOutputWithHeadersInput {
|
30390 + | /* ServerBuilderGenerator.kt:546 */
|
20061 30391 | header_string: self.header_string,
|
30392 + | /* ServerBuilderGenerator.kt:546 */
|
20062 30393 | header_byte: self.header_byte,
|
30394 + | /* ServerBuilderGenerator.kt:546 */
|
20063 30395 | header_short: self.header_short,
|
30396 + | /* ServerBuilderGenerator.kt:546 */
|
20064 30397 | header_integer: self.header_integer,
|
30398 + | /* ServerBuilderGenerator.kt:546 */
|
20065 30399 | header_long: self.header_long,
|
30400 + | /* ServerBuilderGenerator.kt:546 */
|
20066 30401 | header_float: self.header_float,
|
30402 + | /* ServerBuilderGenerator.kt:546 */
|
20067 30403 | header_double: self.header_double,
|
30404 + | /* ServerBuilderGenerator.kt:546 */
|
20068 30405 | header_true_bool: self.header_true_bool,
|
30406 + | /* ServerBuilderGenerator.kt:546 */
|
20069 30407 | header_false_bool: self.header_false_bool,
|
30408 + | /* ServerBuilderGenerator.kt:546 */
|
20070 30409 | header_string_list: self.header_string_list,
|
30410 + | /* ServerBuilderGenerator.kt:546 */
|
20071 30411 | header_string_set: self
|
20072 30412 | .header_string_set
|
30413 + | /* ServerBuilderGenerator.kt:602 */
|
20073 30414 | .map(|v| match v {
|
20074 30415 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
20075 30416 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
20076 30417 | })
|
30418 + | /* ServerBuilderGenerator.kt:614 */
|
20077 30419 | .map(|res| res.map_err(ConstraintViolation::HeaderStringSet))
|
20078 30420 | .transpose()?
|
30421 + | /* ServerBuilderGenerator.kt:630 */
|
20079 30422 | .map(|v: crate::model::StringSet| v.into()),
|
30423 + | /* ServerBuilderGenerator.kt:546 */
|
20080 30424 | header_integer_list: self.header_integer_list,
|
30425 + | /* ServerBuilderGenerator.kt:546 */
|
20081 30426 | header_boolean_list: self.header_boolean_list,
|
30427 + | /* ServerBuilderGenerator.kt:546 */
|
20082 30428 | header_timestamp_list: self.header_timestamp_list,
|
30429 + | /* ServerBuilderGenerator.kt:546 */
|
20083 30430 | header_enum: self
|
20084 30431 | .header_enum
|
30432 + | /* ServerBuilderGenerator.kt:602 */
|
20085 30433 | .map(|v| match v {
|
20086 30434 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
20087 30435 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
20088 30436 | })
|
30437 + | /* ServerBuilderGenerator.kt:614 */
|
20089 30438 | .map(|res| res.map_err(ConstraintViolation::HeaderEnum))
|
20090 30439 | .transpose()?,
|
30440 + | /* ServerBuilderGenerator.kt:546 */
|
20091 30441 | header_enum_list: self
|
20092 30442 | .header_enum_list
|
30443 + | /* ServerBuilderGenerator.kt:602 */
|
20093 30444 | .map(|v| match v {
|
20094 30445 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
20095 30446 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
20096 30447 | })
|
30448 + | /* ServerBuilderGenerator.kt:614 */
|
20097 30449 | .map(|res| {
|
20098 30450 | res.map(|v| v.into())
|
20099 30451 | .map_err(ConstraintViolation::HeaderEnumList)
|
20100 30452 | })
|
20101 30453 | .transpose()?,
|
30454 + | /* ServerBuilderGenerator.kt:546 */
|
20102 30455 | header_integer_enum: self.header_integer_enum,
|
30456 + | /* ServerBuilderGenerator.kt:546 */
|
20103 30457 | header_integer_enum_list: self.header_integer_enum_list,
|
20104 - | })
|
30458 + | /* ServerBuilderGenerator.kt:542 */
|
30459 + | }, /* ServerBuilderGenerator.kt:287 */
|
30460 + | )
|
30461 + | /* ServerBuilderGenerator.kt:283 */
|
20105 30462 | }
|
30463 + | /* ServerBuilderGenerator.kt:215 */
|
20106 30464 | }
|
30465 + |
|
30466 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20107 30467 | }
|
20108 - | /// See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30468 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
20109 30469 | pub mod input_and_output_with_headers_input {
|
20110 30470 |
|
30471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
20111 30472 | impl ::std::convert::From<Builder> for crate::input::InputAndOutputWithHeadersInput {
|
20112 30473 | fn from(builder: Builder) -> Self {
|
20113 30474 | builder.build()
|
20114 30475 | }
|
20115 30476 | }
|
20116 - | /// A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30477 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30478 + | /* RustType.kt:516 */
|
20117 30479 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
30480 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
20118 30481 | pub struct Builder {
|
30482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20119 30483 | pub(crate) header_string: ::std::option::Option<::std::string::String>,
|
30484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20120 30485 | pub(crate) header_byte: ::std::option::Option<i8>,
|
30486 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20121 30487 | pub(crate) header_short: ::std::option::Option<i16>,
|
30488 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20122 30489 | pub(crate) header_integer: ::std::option::Option<i32>,
|
30490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20123 30491 | pub(crate) header_long: ::std::option::Option<i64>,
|
30492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20124 30493 | pub(crate) header_float: ::std::option::Option<f32>,
|
30494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20125 30495 | pub(crate) header_double: ::std::option::Option<f64>,
|
30496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20126 30497 | pub(crate) header_true_bool: ::std::option::Option<bool>,
|
30498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20127 30499 | pub(crate) header_false_bool: ::std::option::Option<bool>,
|
30500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20128 30501 | pub(crate) header_string_list:
|
20129 30502 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
30503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20130 30504 | pub(crate) header_string_set: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
30505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20131 30506 | pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
30507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20132 30508 | pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
30509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20133 30510 | pub(crate) header_timestamp_list: ::std::option::Option<
|
20134 30511 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
20135 30512 | >,
|
30513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20136 30514 | pub(crate) header_enum: ::std::option::Option<crate::model::FooEnum>,
|
30515 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20137 30516 | pub(crate) header_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
30517 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20138 30518 | pub(crate) header_integer_enum: ::std::option::Option<i32>,
|
30519 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
20139 30520 | pub(crate) header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
30521 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
20140 30522 | }
|
30523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20141 30524 | impl Builder {
|
30525 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20142 30526 | #[allow(missing_docs)] // documentation missing in model
|
30527 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20143 30528 | pub fn header_string(
|
20144 30529 | mut self,
|
20145 30530 | input: ::std::option::Option<::std::string::String>,
|
20146 30531 | ) -> Self {
|
20147 - | self.header_string = input;
|
30532 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30533 + | self.header_string =
|
30534 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30535 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20148 30536 | self
|
30537 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20149 30538 | }
|
30539 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20150 30540 | #[allow(missing_docs)] // documentation missing in model
|
30541 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20151 30542 | pub fn header_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
20152 - | self.header_byte = input;
|
30543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30544 + | self.header_byte =
|
30545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30546 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20153 30547 | self
|
30548 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20154 30549 | }
|
30550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20155 30551 | #[allow(missing_docs)] // documentation missing in model
|
30552 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20156 30553 | pub fn header_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
20157 - | self.header_short = input;
|
30554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30555 + | self.header_short =
|
30556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30557 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20158 30558 | self
|
30559 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20159 30560 | }
|
30561 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20160 30562 | #[allow(missing_docs)] // documentation missing in model
|
30563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20161 30564 | pub fn header_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
20162 - | self.header_integer = input;
|
30565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30566 + | self.header_integer =
|
30567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20163 30569 | self
|
30570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20164 30571 | }
|
30572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20165 30573 | #[allow(missing_docs)] // documentation missing in model
|
30574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20166 30575 | pub fn header_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
20167 - | self.header_long = input;
|
30576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30577 + | self.header_long =
|
30578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30579 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20168 30580 | self
|
30581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20169 30582 | }
|
30583 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20170 30584 | #[allow(missing_docs)] // documentation missing in model
|
30585 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20171 30586 | pub fn header_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
20172 - | self.header_float = input;
|
30587 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30588 + | self.header_float =
|
30589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20173 30591 | self
|
30592 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20174 30593 | }
|
30594 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20175 30595 | #[allow(missing_docs)] // documentation missing in model
|
30596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20176 30597 | pub fn header_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
20177 - | self.header_double = input;
|
30598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30599 + | self.header_double =
|
30600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20178 30602 | self
|
30603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20179 30604 | }
|
30605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20180 30606 | #[allow(missing_docs)] // documentation missing in model
|
30607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20181 30608 | pub fn header_true_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
20182 - | self.header_true_bool = input;
|
30609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30610 + | self.header_true_bool =
|
30611 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20183 30613 | self
|
30614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20184 30615 | }
|
30616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20185 30617 | #[allow(missing_docs)] // documentation missing in model
|
30618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20186 30619 | pub fn header_false_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
20187 - | self.header_false_bool = input;
|
30620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30621 + | self.header_false_bool =
|
30622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20188 30624 | self
|
30625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20189 30626 | }
|
30627 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20190 30628 | #[allow(missing_docs)] // documentation missing in model
|
30629 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20191 30630 | pub fn header_string_list(
|
20192 30631 | mut self,
|
20193 30632 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
20194 30633 | ) -> Self {
|
20195 - | self.header_string_list = input;
|
30634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30635 + | self.header_string_list =
|
30636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20196 30638 | self
|
30639 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20197 30640 | }
|
30641 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20198 30642 | #[allow(missing_docs)] // documentation missing in model
|
30643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20199 30644 | pub fn header_string_set(
|
20200 30645 | mut self,
|
20201 30646 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
20202 30647 | ) -> Self {
|
20203 - | self.header_string_set = input;
|
30648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30649 + | self.header_string_set =
|
30650 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20204 30652 | self
|
30653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20205 30654 | }
|
30655 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20206 30656 | #[allow(missing_docs)] // documentation missing in model
|
30657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20207 30658 | pub fn header_integer_list(
|
20208 30659 | mut self,
|
20209 30660 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
20210 30661 | ) -> Self {
|
20211 - | self.header_integer_list = input;
|
30662 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30663 + | self.header_integer_list =
|
30664 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20212 30666 | self
|
30667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20213 30668 | }
|
30669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20214 30670 | #[allow(missing_docs)] // documentation missing in model
|
30671 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20215 30672 | pub fn header_boolean_list(
|
20216 30673 | mut self,
|
20217 30674 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
20218 30675 | ) -> Self {
|
20219 - | self.header_boolean_list = input;
|
30676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30677 + | self.header_boolean_list =
|
30678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30679 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20220 30680 | self
|
30681 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20221 30682 | }
|
30683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20222 30684 | #[allow(missing_docs)] // documentation missing in model
|
30685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20223 30686 | pub fn header_timestamp_list(
|
20224 30687 | mut self,
|
20225 30688 | input: ::std::option::Option<
|
20226 30689 | ::std::vec::Vec<::aws_smithy_http_server_python::types::DateTime>,
|
20227 30690 | >,
|
20228 30691 | ) -> Self {
|
20229 - | self.header_timestamp_list = input;
|
30692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30693 + | self.header_timestamp_list =
|
30694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20230 30696 | self
|
30697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20231 30698 | }
|
30699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20232 30700 | #[allow(missing_docs)] // documentation missing in model
|
30701 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20233 30702 | pub fn header_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
20234 - | self.header_enum = input;
|
30703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30704 + | self.header_enum =
|
30705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20235 30707 | self
|
30708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20236 30709 | }
|
30710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20237 30711 | #[allow(missing_docs)] // documentation missing in model
|
30712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20238 30713 | pub fn header_enum_list(
|
20239 30714 | mut self,
|
20240 30715 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
20241 30716 | ) -> Self {
|
20242 - | self.header_enum_list = input;
|
30717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30718 + | self.header_enum_list =
|
30719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20243 30721 | self
|
30722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20244 30723 | }
|
30724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20245 30725 | #[allow(missing_docs)] // documentation missing in model
|
30726 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20246 30727 | pub fn header_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
20247 - | self.header_integer_enum = input;
|
30728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30729 + | self.header_integer_enum =
|
30730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20248 30732 | self
|
30733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20249 30734 | }
|
30735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
20250 30736 | #[allow(missing_docs)] // documentation missing in model
|
30737 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20251 30738 | pub fn header_integer_enum_list(
|
20252 30739 | mut self,
|
20253 30740 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
20254 30741 | ) -> Self {
|
20255 - | self.header_integer_enum_list = input;
|
30742 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
30743 + | self.header_integer_enum_list =
|
30744 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
30745 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
20256 30746 | self
|
30747 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
20257 30748 | }
|
20258 - | /// Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30749 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
30750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
20259 30751 | pub fn build(self) -> crate::input::InputAndOutputWithHeadersInput {
|
20260 30752 | self.build_enforcing_required_and_enum_traits()
|
20261 30753 | }
|
30754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20262 30755 | fn build_enforcing_required_and_enum_traits(
|
20263 30756 | self,
|
20264 30757 | ) -> crate::input::InputAndOutputWithHeadersInput {
|
30758 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
20265 30759 | crate::input::InputAndOutputWithHeadersInput {
|
30760 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20266 30761 | header_string: self.header_string,
|
30762 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20267 30763 | header_byte: self.header_byte,
|
30764 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20268 30765 | header_short: self.header_short,
|
30766 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20269 30767 | header_integer: self.header_integer,
|
30768 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20270 30769 | header_long: self.header_long,
|
30770 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20271 30771 | header_float: self.header_float,
|
30772 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20272 30773 | header_double: self.header_double,
|
30774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20273 30775 | header_true_bool: self.header_true_bool,
|
30776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20274 30777 | header_false_bool: self.header_false_bool,
|
30778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20275 30779 | header_string_list: self.header_string_list,
|
30780 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20276 30781 | header_string_set: self.header_string_set,
|
30782 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20277 30783 | header_integer_list: self.header_integer_list,
|
30784 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20278 30785 | header_boolean_list: self.header_boolean_list,
|
30786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20279 30787 | header_timestamp_list: self.header_timestamp_list,
|
30788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20280 30789 | header_enum: self.header_enum,
|
30790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20281 30791 | header_enum_list: self.header_enum_list,
|
30792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20282 30793 | header_integer_enum: self.header_integer_enum,
|
30794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
20283 30795 | header_integer_enum_list: self.header_integer_enum_list,
|
30796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
20284 30797 | }
|
30798 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20285 30799 | }
|
30800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20286 30801 | }
|
30802 + |
|
30803 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20287 30804 | }
|
20288 - | /// See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30805 + | /// /* ServerBuilderGenerator.kt:171 */See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
20289 30806 | pub(crate) mod unit_input_and_output_input_internal {
|
20290 30807 |
|
30808 + | /* ServerBuilderGenerator.kt:461 */
|
20291 30809 | impl ::std::convert::From<Builder> for crate::input::UnitInputAndOutputInput {
|
20292 30810 | fn from(builder: Builder) -> Self {
|
20293 30811 | builder.build()
|
20294 30812 | }
|
20295 30813 | }
|
20296 - | /// A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30814 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30815 + | /* RustType.kt:516 */
|
20297 30816 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20298 - | pub(crate) struct Builder {}
|
30817 + | /* ServerBuilderGenerator.kt:211 */
|
30818 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
30819 + | /* ServerBuilderGenerator.kt:215 */
|
20299 30820 | impl Builder {
|
20300 - | /// Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30821 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30822 + | /* ServerBuilderGenerator.kt:271 */
|
20301 30823 | pub fn build(self) -> crate::input::UnitInputAndOutputInput {
|
20302 30824 | self.build_enforcing_all_constraints()
|
20303 30825 | }
|
30826 + | /* ServerBuilderGenerator.kt:283 */
|
20304 30827 | fn build_enforcing_all_constraints(self) -> crate::input::UnitInputAndOutputInput {
|
20305 - | crate::input::UnitInputAndOutputInput {}
|
30828 + | /* ServerBuilderGenerator.kt:542 */
|
30829 + | crate::input::UnitInputAndOutputInput {
|
30830 + | /* ServerBuilderGenerator.kt:542 */}
|
30831 + | /* ServerBuilderGenerator.kt:283 */
|
20306 30832 | }
|
30833 + | /* ServerBuilderGenerator.kt:215 */
|
20307 30834 | }
|
30835 + |
|
30836 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20308 30837 | }
|
20309 - | /// See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30838 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
20310 30839 | pub mod unit_input_and_output_input {
|
20311 30840 |
|
30841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
20312 30842 | impl ::std::convert::From<Builder> for crate::input::UnitInputAndOutputInput {
|
20313 30843 | fn from(builder: Builder) -> Self {
|
20314 30844 | builder.build()
|
20315 30845 | }
|
20316 30846 | }
|
20317 - | /// A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30847 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30848 + | /* RustType.kt:516 */
|
20318 30849 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20319 - | pub struct Builder {}
|
30850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
30851 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
30852 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20320 30853 | impl Builder {
|
20321 - | /// Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30854 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
30855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
20322 30856 | pub fn build(self) -> crate::input::UnitInputAndOutputInput {
|
20323 30857 | self.build_enforcing_required_and_enum_traits()
|
20324 30858 | }
|
30859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20325 30860 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::UnitInputAndOutputInput {
|
20326 - | crate::input::UnitInputAndOutputInput {}
|
30861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
30862 + | crate::input::UnitInputAndOutputInput {
|
30863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
30864 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20327 30865 | }
|
30866 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20328 30867 | }
|
30868 + |
|
30869 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20329 30870 | }
|
20330 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30871 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
20331 30872 | pub(crate) mod empty_input_and_empty_output_input_internal {
|
20332 30873 |
|
30874 + | /* ServerBuilderGenerator.kt:461 */
|
20333 30875 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
20334 30876 | fn from(builder: Builder) -> Self {
|
20335 30877 | builder.build()
|
20336 30878 | }
|
20337 30879 | }
|
20338 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30880 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30881 + | /* RustType.kt:516 */
|
20339 30882 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20340 - | pub(crate) struct Builder {}
|
30883 + | /* ServerBuilderGenerator.kt:211 */
|
30884 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
30885 + | /* ServerBuilderGenerator.kt:215 */
|
20341 30886 | impl Builder {
|
20342 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30887 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30888 + | /* ServerBuilderGenerator.kt:271 */
|
20343 30889 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
20344 30890 | self.build_enforcing_all_constraints()
|
20345 30891 | }
|
30892 + | /* ServerBuilderGenerator.kt:283 */
|
20346 30893 | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
20347 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
30894 + | /* ServerBuilderGenerator.kt:542 */
|
30895 + | crate::input::EmptyInputAndEmptyOutputInput {
|
30896 + | /* ServerBuilderGenerator.kt:542 */}
|
30897 + | /* ServerBuilderGenerator.kt:283 */
|
20348 30898 | }
|
30899 + | /* ServerBuilderGenerator.kt:215 */
|
20349 30900 | }
|
30901 + |
|
30902 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20350 30903 | }
|
20351 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30904 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
20352 30905 | pub mod empty_input_and_empty_output_input {
|
20353 30906 |
|
30907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
20354 30908 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
20355 30909 | fn from(builder: Builder) -> Self {
|
20356 30910 | builder.build()
|
20357 30911 | }
|
20358 30912 | }
|
20359 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30913 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30914 + | /* RustType.kt:516 */
|
20360 30915 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20361 - | pub struct Builder {}
|
30916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
30917 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
30918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20362 30919 | impl Builder {
|
20363 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30920 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
30921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
20364 30922 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
20365 30923 | self.build_enforcing_required_and_enum_traits()
|
20366 30924 | }
|
30925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20367 30926 | fn build_enforcing_required_and_enum_traits(
|
20368 30927 | self,
|
20369 30928 | ) -> crate::input::EmptyInputAndEmptyOutputInput {
|
20370 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
30929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
30930 + | crate::input::EmptyInputAndEmptyOutputInput {
|
30931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
30932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20371 30933 | }
|
30934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20372 30935 | }
|
30936 + |
|
30937 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20373 30938 | }
|
20374 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30939 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
20375 30940 | pub(crate) mod no_input_and_output_input_internal {
|
20376 30941 |
|
30942 + | /* ServerBuilderGenerator.kt:461 */
|
20377 30943 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
20378 30944 | fn from(builder: Builder) -> Self {
|
20379 30945 | builder.build()
|
20380 30946 | }
|
20381 30947 | }
|
20382 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30948 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30949 + | /* RustType.kt:516 */
|
20383 30950 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20384 - | pub(crate) struct Builder {}
|
30951 + | /* ServerBuilderGenerator.kt:211 */
|
30952 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
30953 + | /* ServerBuilderGenerator.kt:215 */
|
20385 30954 | impl Builder {
|
20386 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30955 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30956 + | /* ServerBuilderGenerator.kt:271 */
|
20387 30957 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
20388 30958 | self.build_enforcing_all_constraints()
|
20389 30959 | }
|
30960 + | /* ServerBuilderGenerator.kt:283 */
|
20390 30961 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
20391 - | crate::input::NoInputAndOutputInput {}
|
30962 + | /* ServerBuilderGenerator.kt:542 */
|
30963 + | crate::input::NoInputAndOutputInput {
|
30964 + | /* ServerBuilderGenerator.kt:542 */}
|
30965 + | /* ServerBuilderGenerator.kt:283 */
|
20392 30966 | }
|
30967 + | /* ServerBuilderGenerator.kt:215 */
|
20393 30968 | }
|
30969 + |
|
30970 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20394 30971 | }
|
20395 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30972 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
20396 30973 | pub mod no_input_and_output_input {
|
20397 30974 |
|
30975 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
20398 30976 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
20399 30977 | fn from(builder: Builder) -> Self {
|
20400 30978 | builder.build()
|
20401 30979 | }
|
20402 30980 | }
|
20403 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30981 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30982 + | /* RustType.kt:516 */
|
20404 30983 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20405 - | pub struct Builder {}
|
30984 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
30985 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
30986 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20406 30987 | impl Builder {
|
20407 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30988 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
30989 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
20408 30990 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
20409 30991 | self.build_enforcing_required_and_enum_traits()
|
20410 30992 | }
|
30993 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20411 30994 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndOutputInput {
|
20412 - | crate::input::NoInputAndOutputInput {}
|
30995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
30996 + | crate::input::NoInputAndOutputInput {
|
30997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
30998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20413 30999 | }
|
31000 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20414 31001 | }
|
31002 + |
|
31003 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20415 31004 | }
|
20416 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31005 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20417 31006 | pub(crate) mod no_input_and_no_output_input_internal {
|
20418 31007 |
|
31008 + | /* ServerBuilderGenerator.kt:461 */
|
20419 31009 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
20420 31010 | fn from(builder: Builder) -> Self {
|
20421 31011 | builder.build()
|
20422 31012 | }
|
20423 31013 | }
|
20424 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31014 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31015 + | /* RustType.kt:516 */
|
20425 31016 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20426 - | pub(crate) struct Builder {}
|
31017 + | /* ServerBuilderGenerator.kt:211 */
|
31018 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
31019 + | /* ServerBuilderGenerator.kt:215 */
|
20427 31020 | impl Builder {
|
20428 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31021 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31022 + | /* ServerBuilderGenerator.kt:271 */
|
20429 31023 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
20430 31024 | self.build_enforcing_all_constraints()
|
20431 31025 | }
|
31026 + | /* ServerBuilderGenerator.kt:283 */
|
20432 31027 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
20433 - | crate::input::NoInputAndNoOutputInput {}
|
31028 + | /* ServerBuilderGenerator.kt:542 */
|
31029 + | crate::input::NoInputAndNoOutputInput {
|
31030 + | /* ServerBuilderGenerator.kt:542 */}
|
31031 + | /* ServerBuilderGenerator.kt:283 */
|
20434 31032 | }
|
31033 + | /* ServerBuilderGenerator.kt:215 */
|
20435 31034 | }
|
31035 + |
|
31036 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20436 31037 | }
|
20437 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31038 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20438 31039 | pub mod no_input_and_no_output_input {
|
20439 31040 |
|
31041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
20440 31042 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
20441 31043 | fn from(builder: Builder) -> Self {
|
20442 31044 | builder.build()
|
20443 31045 | }
|
20444 31046 | }
|
20445 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31047 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31048 + | /* RustType.kt:516 */
|
20446 31049 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
20447 - | pub struct Builder {}
|
31050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
31051 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
31052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20448 31053 | impl Builder {
|
20449 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31054 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
31055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
20450 31056 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
20451 31057 | self.build_enforcing_required_and_enum_traits()
|
20452 31058 | }
|
31059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20453 31060 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndNoOutputInput {
|
20454 - | crate::input::NoInputAndNoOutputInput {}
|
31061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
31062 + | crate::input::NoInputAndNoOutputInput {
|
31063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
31064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
20455 31065 | }
|
31066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
20456 31067 | }
|
31068 + |
|
31069 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
20457 31070 | }
|