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 json_rpc10.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 json_rpc10.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]
|
83 + | /* PythonServerStructureGenerator.kt:63 */
|
57 84 | /// :rtype None:
|
85 + | /* StructureGenerator.kt:197 */
|
58 86 | #[allow(missing_docs)] // documentation missing in model
|
87 + | /* RustType.kt:516 */
|
59 88 | #[derive(
|
60 89 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
61 90 | )]
|
62 - | pub struct OperationWithRequiredMembersInput {}
|
91 + | pub /* StructureGenerator.kt:201 */ struct OperationWithRequiredMembersInput {/* StructureGenerator.kt:201 */}
|
92 + | /* RustType.kt:516 */
|
63 93 | #[allow(clippy::new_without_default)]
|
94 + | /* RustType.kt:516 */
|
64 95 | #[allow(clippy::too_many_arguments)]
|
96 + | /* RustType.kt:516 */
|
65 97 | #[::pyo3::pymethods]
|
98 + | /* PythonServerStructureGenerator.kt:88 */
|
66 99 | impl OperationWithRequiredMembersInput {
|
67 100 | #[new]
|
68 101 | pub fn new() -> Self {
|
69 102 | Self {}
|
70 103 | }
|
71 104 | fn __repr__(&self) -> String {
|
72 105 | format!("{self:?}")
|
73 106 | }
|
74 107 | fn __str__(&self) -> String {
|
75 108 | format!("{self:?}")
|
76 109 | }
|
77 110 | }
|
111 + | /* PythonServerStructureGenerator.kt:111 */
|
78 112 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
79 113 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
80 114 | ob.extract::<OperationWithRequiredMembersInput>()
|
81 115 | .map(Box::new)
|
82 116 | }
|
83 117 | }
|
84 118 |
|
85 119 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithRequiredMembersInput> {
|
86 120 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
87 121 | (*self).into_py(py)
|
88 122 | }
|
89 123 | }
|
124 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
90 125 | impl crate::constrained::Constrained for crate::input::OperationWithRequiredMembersInput {
|
91 126 | type Unconstrained = crate::input::operation_with_required_members_input_internal::Builder;
|
92 127 | }
|
128 + | /* ServerCodegenVisitor.kt:370 */
|
93 129 | impl OperationWithRequiredMembersInput {
|
94 - | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
130 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
95 132 | pub fn builder() -> crate::input::operation_with_required_members_input::Builder {
|
133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
96 134 | crate::input::operation_with_required_members_input::Builder::default()
|
135 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
97 136 | }
|
137 + | /* ServerCodegenVisitor.kt:370 */
|
98 138 | }
|
99 139 |
|
140 + | /* RustType.kt:516 */
|
100 141 | #[::pyo3::pyclass]
|
101 - | /// :param defaults typing.Optional\[json_rpc10.model.Defaults\]:
|
102 - | /// :param client_optional_defaults typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
142 + | /* PythonServerStructureGenerator.kt:63 */
|
103 143 | /// :param top_level_default str:
|
104 144 | /// :param other_top_level_default int:
|
145 + | /// :param defaults typing.Optional\[json_rpc10.model.Defaults\]:
|
146 + | /// :param client_optional_defaults typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
105 147 | /// :rtype None:
|
148 + | /* StructureGenerator.kt:197 */
|
106 149 | #[allow(missing_docs)] // documentation missing in model
|
150 + | /* RustType.kt:516 */
|
107 151 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
108 - | pub struct OperationWithDefaultsInput {
|
152 + | pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
|
153 + | /* RustType.kt:516 */
|
109 154 | #[pyo3(get, set)]
|
155 + | /* PythonServerStructureGenerator.kt:80 */
|
110 156 | /// :type typing.Optional\[json_rpc10.model.Defaults\]:
|
157 + | /* StructureGenerator.kt:231 */
|
111 158 | #[allow(missing_docs)] // documentation missing in model
|
112 159 | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
160 + | /* RustType.kt:516 */
|
113 161 | #[pyo3(get, set)]
|
162 + | /* PythonServerStructureGenerator.kt:80 */
|
114 163 | /// :type typing.Optional\[json_rpc10.model.ClientOptionalDefaults\]:
|
164 + | /* StructureGenerator.kt:231 */
|
115 165 | #[allow(missing_docs)] // documentation missing in model
|
116 166 | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
167 + | /* RustType.kt:516 */
|
117 168 | #[pyo3(get, set)]
|
169 + | /* PythonServerStructureGenerator.kt:80 */
|
118 170 | /// :type str:
|
171 + | /* StructureGenerator.kt:231 */
|
119 172 | #[allow(missing_docs)] // documentation missing in model
|
120 173 | pub top_level_default: ::std::string::String,
|
174 + | /* RustType.kt:516 */
|
121 175 | #[pyo3(get, set)]
|
176 + | /* PythonServerStructureGenerator.kt:80 */
|
122 177 | /// :type int:
|
178 + | /* StructureGenerator.kt:231 */
|
123 179 | #[allow(missing_docs)] // documentation missing in model
|
124 180 | pub other_top_level_default: i32,
|
181 + | /* StructureGenerator.kt:201 */
|
125 182 | }
|
183 + | /* StructureGenerator.kt:135 */
|
126 184 | impl OperationWithDefaultsInput {
|
185 + | /* StructureGenerator.kt:231 */
|
127 186 | #[allow(missing_docs)] // documentation missing in model
|
187 + | /* StructureGenerator.kt:166 */
|
128 188 | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
189 + | /* StructureGenerator.kt:170 */
|
129 190 | self.defaults.as_ref()
|
191 + | /* StructureGenerator.kt:166 */
|
130 192 | }
|
193 + | /* StructureGenerator.kt:231 */
|
131 194 | #[allow(missing_docs)] // documentation missing in model
|
195 + | /* StructureGenerator.kt:166 */
|
132 196 | pub fn client_optional_defaults(
|
133 197 | &self,
|
134 198 | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
199 + | /* StructureGenerator.kt:170 */
|
135 200 | self.client_optional_defaults.as_ref()
|
201 + | /* StructureGenerator.kt:166 */
|
136 202 | }
|
203 + | /* StructureGenerator.kt:231 */
|
137 204 | #[allow(missing_docs)] // documentation missing in model
|
205 + | /* StructureGenerator.kt:166 */
|
138 206 | pub fn top_level_default(&self) -> &str {
|
207 + | /* StructureGenerator.kt:171 */
|
139 208 | use std::ops::Deref;
|
140 209 | self.top_level_default.deref()
|
210 + | /* StructureGenerator.kt:166 */
|
141 211 | }
|
212 + | /* StructureGenerator.kt:231 */
|
142 213 | #[allow(missing_docs)] // documentation missing in model
|
214 + | /* StructureGenerator.kt:166 */
|
143 215 | pub fn other_top_level_default(&self) -> i32 {
|
216 + | /* StructureGenerator.kt:168 */
|
144 217 | self.other_top_level_default
|
218 + | /* StructureGenerator.kt:166 */
|
145 219 | }
|
220 + | /* StructureGenerator.kt:135 */
|
146 221 | }
|
222 + | /* RustType.kt:516 */
|
147 223 | #[allow(clippy::new_without_default)]
|
224 + | /* RustType.kt:516 */
|
148 225 | #[allow(clippy::too_many_arguments)]
|
226 + | /* RustType.kt:516 */
|
149 227 | #[::pyo3::pymethods]
|
228 + | /* PythonServerStructureGenerator.kt:88 */
|
150 229 | impl OperationWithDefaultsInput {
|
151 230 | #[new]
|
152 231 | pub fn new(
|
153 - | defaults: ::std::option::Option<crate::model::Defaults>,
|
154 - | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
155 232 | top_level_default: ::std::string::String,
|
156 233 | other_top_level_default: i32,
|
234 + | defaults: ::std::option::Option<crate::model::Defaults>,
|
235 + | client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
157 236 | ) -> Self {
|
158 237 | Self {
|
159 - | defaults,
|
160 - | client_optional_defaults,
|
161 238 | top_level_default,
|
162 239 | other_top_level_default,
|
240 + | defaults,
|
241 + | client_optional_defaults,
|
163 242 | }
|
164 243 | }
|
165 244 | fn __repr__(&self) -> String {
|
166 245 | format!("{self:?}")
|
167 246 | }
|
168 247 | fn __str__(&self) -> String {
|
169 248 | format!("{self:?}")
|
170 249 | }
|
171 250 | }
|
251 + | /* PythonServerStructureGenerator.kt:111 */
|
172 252 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsInput> {
|
173 253 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
174 254 | ob.extract::<OperationWithDefaultsInput>().map(Box::new)
|
175 255 | }
|
176 256 | }
|
177 257 |
|
178 258 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<OperationWithDefaultsInput> {
|
179 259 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
180 260 | (*self).into_py(py)
|
181 261 | }
|
182 262 | }
|
263 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
183 264 | impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
|
184 265 | type Unconstrained = crate::input::operation_with_defaults_input_internal::Builder;
|
185 266 | }
|
267 + | /* ServerCodegenVisitor.kt:370 */
|
186 268 | impl OperationWithDefaultsInput {
|
187 - | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
269 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
188 271 | pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
|
272 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
189 273 | crate::input::operation_with_defaults_input::Builder::default()
|
274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
190 275 | }
|
276 + | /* ServerCodegenVisitor.kt:370 */
|
191 277 | }
|
192 278 |
|
279 + | /* RustType.kt:516 */
|
193 280 | #[::pyo3::pyclass]
|
281 + | /* PythonServerStructureGenerator.kt:63 */
|
194 282 | /// :param value typing.Optional\[int\]:
|
195 283 | /// :rtype None:
|
284 + | /* StructureGenerator.kt:197 */
|
196 285 | #[allow(missing_docs)] // documentation missing in model
|
286 + | /* RustType.kt:516 */
|
197 287 | #[derive(
|
198 288 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
199 289 | )]
|
200 - | pub struct ContentTypeParametersInput {
|
290 + | pub /* StructureGenerator.kt:201 */ struct ContentTypeParametersInput {
|
291 + | /* RustType.kt:516 */
|
201 292 | #[pyo3(get, set)]
|
293 + | /* PythonServerStructureGenerator.kt:80 */
|
202 294 | /// :type typing.Optional\[int\]:
|
295 + | /* StructureGenerator.kt:231 */
|
203 296 | #[allow(missing_docs)] // documentation missing in model
|
204 297 | pub value: ::std::option::Option<i32>,
|
298 + | /* StructureGenerator.kt:201 */
|
205 299 | }
|
300 + | /* StructureGenerator.kt:135 */
|
206 301 | impl ContentTypeParametersInput {
|
302 + | /* StructureGenerator.kt:231 */
|
207 303 | #[allow(missing_docs)] // documentation missing in model
|
304 + | /* StructureGenerator.kt:166 */
|
208 305 | pub fn value(&self) -> ::std::option::Option<i32> {
|
306 + | /* StructureGenerator.kt:168 */
|
209 307 | self.value
|
308 + | /* StructureGenerator.kt:166 */
|
210 309 | }
|
310 + | /* StructureGenerator.kt:135 */
|
211 311 | }
|
312 + | /* RustType.kt:516 */
|
212 313 | #[allow(clippy::new_without_default)]
|
314 + | /* RustType.kt:516 */
|
213 315 | #[allow(clippy::too_many_arguments)]
|
316 + | /* RustType.kt:516 */
|
214 317 | #[::pyo3::pymethods]
|
318 + | /* PythonServerStructureGenerator.kt:88 */
|
215 319 | impl ContentTypeParametersInput {
|
216 320 | #[new]
|
217 321 | pub fn new(value: ::std::option::Option<i32>) -> Self {
|
218 322 | Self { value }
|
219 323 | }
|
220 324 | fn __repr__(&self) -> String {
|
221 325 | format!("{self:?}")
|
222 326 | }
|
223 327 | fn __str__(&self) -> String {
|
224 328 | format!("{self:?}")
|
225 329 | }
|
226 330 | }
|
331 + | /* PythonServerStructureGenerator.kt:111 */
|
227 332 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ContentTypeParametersInput> {
|
228 333 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
229 334 | ob.extract::<ContentTypeParametersInput>().map(Box::new)
|
230 335 | }
|
231 336 | }
|
232 337 |
|
233 338 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ContentTypeParametersInput> {
|
234 339 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
235 340 | (*self).into_py(py)
|
236 341 | }
|
237 342 | }
|
343 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
238 344 | impl crate::constrained::Constrained for crate::input::ContentTypeParametersInput {
|
239 345 | type Unconstrained = crate::input::content_type_parameters_input_internal::Builder;
|
240 346 | }
|
347 + | /* ServerCodegenVisitor.kt:370 */
|
241 348 | impl ContentTypeParametersInput {
|
242 - | /// Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
349 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
350 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
243 351 | pub fn builder() -> crate::input::content_type_parameters_input::Builder {
|
352 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
244 353 | crate::input::content_type_parameters_input::Builder::default()
|
354 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
245 355 | }
|
356 + | /* ServerCodegenVisitor.kt:370 */
|
246 357 | }
|
247 358 |
|
359 + | /* RustType.kt:516 */
|
248 360 | #[::pyo3::pyclass]
|
361 + | /* PythonServerStructureGenerator.kt:63 */
|
249 362 | /// :param encoding typing.Optional\[str\]:
|
250 363 | /// :param data typing.Optional\[str\]:
|
251 364 | /// :rtype None:
|
365 + | /* StructureGenerator.kt:197 */
|
252 366 | #[allow(missing_docs)] // documentation missing in model
|
367 + | /* RustType.kt:516 */
|
253 368 | #[derive(
|
254 369 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
255 370 | )]
|
256 - | pub struct PutWithContentEncodingInput {
|
371 + | pub /* StructureGenerator.kt:201 */ struct PutWithContentEncodingInput {
|
372 + | /* RustType.kt:516 */
|
257 373 | #[pyo3(get, set)]
|
374 + | /* PythonServerStructureGenerator.kt:80 */
|
258 375 | /// :type typing.Optional\[str\]:
|
376 + | /* StructureGenerator.kt:231 */
|
259 377 | #[allow(missing_docs)] // documentation missing in model
|
260 378 | pub encoding: ::std::option::Option<::std::string::String>,
|
379 + | /* RustType.kt:516 */
|
261 380 | #[pyo3(get, set)]
|
381 + | /* PythonServerStructureGenerator.kt:80 */
|
262 382 | /// :type typing.Optional\[str\]:
|
383 + | /* StructureGenerator.kt:231 */
|
263 384 | #[allow(missing_docs)] // documentation missing in model
|
264 385 | pub data: ::std::option::Option<::std::string::String>,
|
386 + | /* StructureGenerator.kt:201 */
|
265 387 | }
|
388 + | /* StructureGenerator.kt:135 */
|
266 389 | impl PutWithContentEncodingInput {
|
390 + | /* StructureGenerator.kt:231 */
|
267 391 | #[allow(missing_docs)] // documentation missing in model
|
392 + | /* StructureGenerator.kt:166 */
|
268 393 | pub fn encoding(&self) -> ::std::option::Option<&str> {
|
394 + | /* StructureGenerator.kt:169 */
|
269 395 | self.encoding.as_deref()
|
396 + | /* StructureGenerator.kt:166 */
|
270 397 | }
|
398 + | /* StructureGenerator.kt:231 */
|
271 399 | #[allow(missing_docs)] // documentation missing in model
|
400 + | /* StructureGenerator.kt:166 */
|
272 401 | pub fn data(&self) -> ::std::option::Option<&str> {
|
402 + | /* StructureGenerator.kt:169 */
|
273 403 | self.data.as_deref()
|
404 + | /* StructureGenerator.kt:166 */
|
274 405 | }
|
406 + | /* StructureGenerator.kt:135 */
|
275 407 | }
|
408 + | /* RustType.kt:516 */
|
276 409 | #[allow(clippy::new_without_default)]
|
410 + | /* RustType.kt:516 */
|
277 411 | #[allow(clippy::too_many_arguments)]
|
412 + | /* RustType.kt:516 */
|
278 413 | #[::pyo3::pymethods]
|
414 + | /* PythonServerStructureGenerator.kt:88 */
|
279 415 | impl PutWithContentEncodingInput {
|
280 416 | #[new]
|
281 417 | pub fn new(
|
282 418 | encoding: ::std::option::Option<::std::string::String>,
|
283 419 | data: ::std::option::Option<::std::string::String>,
|
284 420 | ) -> Self {
|
285 421 | Self { encoding, data }
|
286 422 | }
|
287 423 | fn __repr__(&self) -> String {
|
288 424 | format!("{self:?}")
|
289 425 | }
|
290 426 | fn __str__(&self) -> String {
|
291 427 | format!("{self:?}")
|
292 428 | }
|
293 429 | }
|
430 + | /* PythonServerStructureGenerator.kt:111 */
|
294 431 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<PutWithContentEncodingInput> {
|
295 432 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
296 433 | ob.extract::<PutWithContentEncodingInput>().map(Box::new)
|
297 434 | }
|
298 435 | }
|
299 436 |
|
300 437 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<PutWithContentEncodingInput> {
|
301 438 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
302 439 | (*self).into_py(py)
|
303 440 | }
|
304 441 | }
|
442 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
305 443 | impl crate::constrained::Constrained for crate::input::PutWithContentEncodingInput {
|
306 444 | type Unconstrained = crate::input::put_with_content_encoding_input_internal::Builder;
|
307 445 | }
|
446 + | /* ServerCodegenVisitor.kt:370 */
|
308 447 | impl PutWithContentEncodingInput {
|
309 - | /// Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
448 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
449 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
310 450 | pub fn builder() -> crate::input::put_with_content_encoding_input::Builder {
|
451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
311 452 | crate::input::put_with_content_encoding_input::Builder::default()
|
453 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
312 454 | }
|
455 + | /* ServerCodegenVisitor.kt:370 */
|
313 456 | }
|
314 457 |
|
458 + | /* RustType.kt:516 */
|
315 459 | #[::pyo3::pyclass]
|
460 + | /* PythonServerStructureGenerator.kt:63 */
|
316 461 | /// :rtype None:
|
462 + | /* StructureGenerator.kt:197 */
|
317 463 | #[allow(missing_docs)] // documentation missing in model
|
464 + | /* RustType.kt:516 */
|
318 465 | #[derive(
|
319 466 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
320 467 | )]
|
321 - | pub struct HostWithPathOperationInput {}
|
468 + | pub /* StructureGenerator.kt:201 */ struct HostWithPathOperationInput {/* StructureGenerator.kt:201 */}
|
469 + | /* RustType.kt:516 */
|
322 470 | #[allow(clippy::new_without_default)]
|
471 + | /* RustType.kt:516 */
|
323 472 | #[allow(clippy::too_many_arguments)]
|
473 + | /* RustType.kt:516 */
|
324 474 | #[::pyo3::pymethods]
|
475 + | /* PythonServerStructureGenerator.kt:88 */
|
325 476 | impl HostWithPathOperationInput {
|
326 477 | #[new]
|
327 478 | pub fn new() -> Self {
|
328 479 | Self {}
|
329 480 | }
|
330 481 | fn __repr__(&self) -> String {
|
331 482 | format!("{self:?}")
|
332 483 | }
|
333 484 | fn __str__(&self) -> String {
|
334 485 | format!("{self:?}")
|
335 486 | }
|
336 487 | }
|
488 + | /* PythonServerStructureGenerator.kt:111 */
|
337 489 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<HostWithPathOperationInput> {
|
338 490 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
339 491 | ob.extract::<HostWithPathOperationInput>().map(Box::new)
|
340 492 | }
|
341 493 | }
|
342 494 |
|
343 495 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<HostWithPathOperationInput> {
|
344 496 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
345 497 | (*self).into_py(py)
|
346 498 | }
|
347 499 | }
|
500 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
348 501 | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
349 502 | type Unconstrained = crate::input::host_with_path_operation_input_internal::Builder;
|
350 503 | }
|
504 + | /* ServerCodegenVisitor.kt:370 */
|
351 505 | impl HostWithPathOperationInput {
|
352 - | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
506 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
353 508 | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
509 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
354 510 | crate::input::host_with_path_operation_input::Builder::default()
|
511 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
355 512 | }
|
513 + | /* ServerCodegenVisitor.kt:370 */
|
356 514 | }
|
357 515 |
|
516 + | /* RustType.kt:516 */
|
358 517 | #[::pyo3::pyclass]
|
518 + | /* PythonServerStructureGenerator.kt:63 */
|
359 519 | /// :param label str:
|
360 520 | /// :rtype None:
|
521 + | /* StructureGenerator.kt:197 */
|
361 522 | #[allow(missing_docs)] // documentation missing in model
|
523 + | /* RustType.kt:516 */
|
362 524 | #[derive(
|
363 525 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
364 526 | )]
|
365 - | pub struct EndpointWithHostLabelOperationInput {
|
527 + | pub /* StructureGenerator.kt:201 */ struct EndpointWithHostLabelOperationInput {
|
528 + | /* RustType.kt:516 */
|
366 529 | #[pyo3(get, set)]
|
530 + | /* PythonServerStructureGenerator.kt:80 */
|
367 531 | /// :type str:
|
532 + | /* StructureGenerator.kt:231 */
|
368 533 | #[allow(missing_docs)] // documentation missing in model
|
369 534 | pub label: ::std::string::String,
|
535 + | /* StructureGenerator.kt:201 */
|
370 536 | }
|
537 + | /* StructureGenerator.kt:135 */
|
371 538 | impl EndpointWithHostLabelOperationInput {
|
539 + | /* StructureGenerator.kt:231 */
|
372 540 | #[allow(missing_docs)] // documentation missing in model
|
541 + | /* StructureGenerator.kt:166 */
|
373 542 | pub fn label(&self) -> &str {
|
543 + | /* StructureGenerator.kt:171 */
|
374 544 | use std::ops::Deref;
|
375 545 | self.label.deref()
|
546 + | /* StructureGenerator.kt:166 */
|
376 547 | }
|
548 + | /* StructureGenerator.kt:135 */
|
377 549 | }
|
550 + | /* RustType.kt:516 */
|
378 551 | #[allow(clippy::new_without_default)]
|
552 + | /* RustType.kt:516 */
|
379 553 | #[allow(clippy::too_many_arguments)]
|
554 + | /* RustType.kt:516 */
|
380 555 | #[::pyo3::pymethods]
|
556 + | /* PythonServerStructureGenerator.kt:88 */
|
381 557 | impl EndpointWithHostLabelOperationInput {
|
382 558 | #[new]
|
383 559 | pub fn new(label: ::std::string::String) -> Self {
|
384 560 | Self { label }
|
385 561 | }
|
386 562 | fn __repr__(&self) -> String {
|
387 563 | format!("{self:?}")
|
388 564 | }
|
389 565 | fn __str__(&self) -> String {
|
390 566 | format!("{self:?}")
|
391 567 | }
|
392 568 | }
|
569 + | /* PythonServerStructureGenerator.kt:111 */
|
393 570 | impl<'source> ::pyo3::FromPyObject<'source>
|
394 571 | for std::boxed::Box<EndpointWithHostLabelOperationInput>
|
395 572 | {
|
396 573 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
397 574 | ob.extract::<EndpointWithHostLabelOperationInput>()
|
398 575 | .map(Box::new)
|
399 576 | }
|
400 577 | }
|
401 578 |
|
402 579 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointWithHostLabelOperationInput> {
|
403 580 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
404 581 | (*self).into_py(py)
|
405 582 | }
|
406 583 | }
|
584 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
407 585 | impl crate::constrained::Constrained for crate::input::EndpointWithHostLabelOperationInput {
|
408 586 | type Unconstrained = crate::input::endpoint_with_host_label_operation_input_internal::Builder;
|
409 587 | }
|
588 + | /* ServerCodegenVisitor.kt:370 */
|
410 589 | impl EndpointWithHostLabelOperationInput {
|
411 - | /// Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
590 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
412 592 | pub fn builder() -> crate::input::endpoint_with_host_label_operation_input::Builder {
|
593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
413 594 | crate::input::endpoint_with_host_label_operation_input::Builder::default()
|
595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
414 596 | }
|
597 + | /* ServerCodegenVisitor.kt:370 */
|
415 598 | }
|
416 599 |
|
600 + | /* RustType.kt:516 */
|
417 601 | #[::pyo3::pyclass]
|
602 + | /* PythonServerStructureGenerator.kt:63 */
|
418 603 | /// :rtype None:
|
604 + | /* StructureGenerator.kt:197 */
|
419 605 | #[allow(missing_docs)] // documentation missing in model
|
606 + | /* RustType.kt:516 */
|
420 607 | #[derive(
|
421 608 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
422 609 | )]
|
423 - | pub struct EndpointOperationInput {}
|
610 + | pub /* StructureGenerator.kt:201 */ struct EndpointOperationInput {/* StructureGenerator.kt:201 */}
|
611 + | /* RustType.kt:516 */
|
424 612 | #[allow(clippy::new_without_default)]
|
613 + | /* RustType.kt:516 */
|
425 614 | #[allow(clippy::too_many_arguments)]
|
615 + | /* RustType.kt:516 */
|
426 616 | #[::pyo3::pymethods]
|
617 + | /* PythonServerStructureGenerator.kt:88 */
|
427 618 | impl EndpointOperationInput {
|
428 619 | #[new]
|
429 620 | pub fn new() -> Self {
|
430 621 | Self {}
|
431 622 | }
|
432 623 | fn __repr__(&self) -> String {
|
433 624 | format!("{self:?}")
|
434 625 | }
|
435 626 | fn __str__(&self) -> String {
|
436 627 | format!("{self:?}")
|
437 628 | }
|
438 629 | }
|
630 + | /* PythonServerStructureGenerator.kt:111 */
|
439 631 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EndpointOperationInput> {
|
440 632 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
441 633 | ob.extract::<EndpointOperationInput>().map(Box::new)
|
442 634 | }
|
443 635 | }
|
444 636 |
|
445 637 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EndpointOperationInput> {
|
446 638 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
447 639 | (*self).into_py(py)
|
448 640 | }
|
449 641 | }
|
642 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
450 643 | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
451 644 | type Unconstrained = crate::input::endpoint_operation_input_internal::Builder;
|
452 645 | }
|
646 + | /* ServerCodegenVisitor.kt:370 */
|
453 647 | impl EndpointOperationInput {
|
454 - | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
648 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
455 650 | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
456 652 | crate::input::endpoint_operation_input::Builder::default()
|
653 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
457 654 | }
|
655 + | /* ServerCodegenVisitor.kt:370 */
|
458 656 | }
|
459 657 |
|
658 + | /* RustType.kt:516 */
|
460 659 | #[::pyo3::pyclass]
|
660 + | /* PythonServerStructureGenerator.kt:63 */
|
461 661 | /// :param contents typing.Optional\[json_rpc10.model.MyUnion\]:
|
462 662 | /// :rtype None:
|
663 + | /* StructureGenerator.kt:197 */
|
463 664 | #[allow(missing_docs)] // documentation missing in model
|
665 + | /* RustType.kt:516 */
|
464 666 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
465 - | pub struct JsonUnionsInput {
|
667 + | pub /* StructureGenerator.kt:201 */ struct JsonUnionsInput {
|
668 + | /* RustType.kt:516 */
|
466 669 | #[pyo3(get, set)]
|
670 + | /* PythonServerStructureGenerator.kt:80 */
|
467 671 | /// :type typing.Optional\[json_rpc10.model.MyUnion\]:
|
468 - | /// A union with a representative set of types for members.
|
672 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
469 673 | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
674 + | /* StructureGenerator.kt:201 */
|
470 675 | }
|
676 + | /* StructureGenerator.kt:135 */
|
471 677 | impl JsonUnionsInput {
|
472 - | /// A union with a representative set of types for members.
|
678 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
679 + | /* StructureGenerator.kt:166 */
|
473 680 | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
681 + | /* StructureGenerator.kt:170 */
|
474 682 | self.contents.as_ref()
|
683 + | /* StructureGenerator.kt:166 */
|
475 684 | }
|
685 + | /* StructureGenerator.kt:135 */
|
476 686 | }
|
687 + | /* RustType.kt:516 */
|
477 688 | #[allow(clippy::new_without_default)]
|
689 + | /* RustType.kt:516 */
|
478 690 | #[allow(clippy::too_many_arguments)]
|
691 + | /* RustType.kt:516 */
|
479 692 | #[::pyo3::pymethods]
|
693 + | /* PythonServerStructureGenerator.kt:88 */
|
480 694 | impl JsonUnionsInput {
|
481 695 | #[new]
|
482 696 | pub fn new(contents: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
483 697 | Self { contents }
|
484 698 | }
|
485 699 | fn __repr__(&self) -> String {
|
486 700 | format!("{self:?}")
|
487 701 | }
|
488 702 | fn __str__(&self) -> String {
|
489 703 | format!("{self:?}")
|
490 704 | }
|
491 705 | }
|
706 + | /* PythonServerStructureGenerator.kt:111 */
|
492 707 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<JsonUnionsInput> {
|
493 708 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
494 709 | ob.extract::<JsonUnionsInput>().map(Box::new)
|
495 710 | }
|
496 711 | }
|
497 712 |
|
498 713 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<JsonUnionsInput> {
|
499 714 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
500 715 | (*self).into_py(py)
|
501 716 | }
|
502 717 | }
|
718 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
503 719 | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
504 720 | type Unconstrained = crate::input::json_unions_input_internal::Builder;
|
505 721 | }
|
722 + | /* ServerCodegenVisitor.kt:370 */
|
506 723 | impl JsonUnionsInput {
|
507 - | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
724 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
508 726 | pub fn builder() -> crate::input::json_unions_input::Builder {
|
727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
509 728 | crate::input::json_unions_input::Builder::default()
|
729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
510 730 | }
|
731 + | /* ServerCodegenVisitor.kt:370 */
|
511 732 | }
|
512 733 |
|
734 + | /* RustType.kt:516 */
|
513 735 | #[::pyo3::pyclass]
|
736 + | /* PythonServerStructureGenerator.kt:63 */
|
514 737 | /// :param greeting typing.Optional\[str\]:
|
515 738 | /// :rtype None:
|
739 + | /* StructureGenerator.kt:197 */
|
516 740 | #[allow(missing_docs)] // documentation missing in model
|
741 + | /* RustType.kt:516 */
|
517 742 | #[derive(
|
518 743 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
519 744 | )]
|
520 - | pub struct GreetingWithErrorsInput {
|
745 + | pub /* StructureGenerator.kt:201 */ struct GreetingWithErrorsInput {
|
746 + | /* RustType.kt:516 */
|
521 747 | #[pyo3(get, set)]
|
748 + | /* PythonServerStructureGenerator.kt:80 */
|
522 749 | /// :type typing.Optional\[str\]:
|
750 + | /* StructureGenerator.kt:231 */
|
523 751 | #[allow(missing_docs)] // documentation missing in model
|
524 752 | pub greeting: ::std::option::Option<::std::string::String>,
|
753 + | /* StructureGenerator.kt:201 */
|
525 754 | }
|
755 + | /* StructureGenerator.kt:135 */
|
526 756 | impl GreetingWithErrorsInput {
|
757 + | /* StructureGenerator.kt:231 */
|
527 758 | #[allow(missing_docs)] // documentation missing in model
|
759 + | /* StructureGenerator.kt:166 */
|
528 760 | pub fn greeting(&self) -> ::std::option::Option<&str> {
|
761 + | /* StructureGenerator.kt:169 */
|
529 762 | self.greeting.as_deref()
|
763 + | /* StructureGenerator.kt:166 */
|
530 764 | }
|
765 + | /* StructureGenerator.kt:135 */
|
531 766 | }
|
767 + | /* RustType.kt:516 */
|
532 768 | #[allow(clippy::new_without_default)]
|
769 + | /* RustType.kt:516 */
|
533 770 | #[allow(clippy::too_many_arguments)]
|
771 + | /* RustType.kt:516 */
|
534 772 | #[::pyo3::pymethods]
|
773 + | /* PythonServerStructureGenerator.kt:88 */
|
535 774 | impl GreetingWithErrorsInput {
|
536 775 | #[new]
|
537 776 | pub fn new(greeting: ::std::option::Option<::std::string::String>) -> Self {
|
538 777 | Self { greeting }
|
539 778 | }
|
540 779 | fn __repr__(&self) -> String {
|
541 780 | format!("{self:?}")
|
542 781 | }
|
543 782 | fn __str__(&self) -> String {
|
544 783 | format!("{self:?}")
|
545 784 | }
|
546 785 | }
|
786 + | /* PythonServerStructureGenerator.kt:111 */
|
547 787 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<GreetingWithErrorsInput> {
|
548 788 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
549 789 | ob.extract::<GreetingWithErrorsInput>().map(Box::new)
|
550 790 | }
|
551 791 | }
|
552 792 |
|
553 793 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<GreetingWithErrorsInput> {
|
554 794 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
555 795 | (*self).into_py(py)
|
556 796 | }
|
557 797 | }
|
798 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
558 799 | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
559 800 | type Unconstrained = crate::input::greeting_with_errors_input_internal::Builder;
|
560 801 | }
|
802 + | /* ServerCodegenVisitor.kt:370 */
|
561 803 | impl GreetingWithErrorsInput {
|
562 - | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
804 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
563 806 | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
564 808 | crate::input::greeting_with_errors_input::Builder::default()
|
809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
565 810 | }
|
811 + | /* ServerCodegenVisitor.kt:370 */
|
566 812 | }
|
567 813 |
|
814 + | /* RustType.kt:516 */
|
568 815 | #[::pyo3::pyclass]
|
816 + | /* PythonServerStructureGenerator.kt:63 */
|
569 817 | /// :param float_value typing.Optional\[float\]:
|
570 818 | /// :param double_value typing.Optional\[float\]:
|
571 819 | /// :rtype None:
|
820 + | /* StructureGenerator.kt:197 */
|
572 821 | #[allow(missing_docs)] // documentation missing in model
|
822 + | /* RustType.kt:516 */
|
573 823 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
574 - | pub struct SimpleScalarPropertiesInput {
|
824 + | pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
|
825 + | /* RustType.kt:516 */
|
575 826 | #[pyo3(get, set)]
|
827 + | /* PythonServerStructureGenerator.kt:80 */
|
576 828 | /// :type typing.Optional\[float\]:
|
829 + | /* StructureGenerator.kt:231 */
|
577 830 | #[allow(missing_docs)] // documentation missing in model
|
578 831 | pub float_value: ::std::option::Option<f32>,
|
832 + | /* RustType.kt:516 */
|
579 833 | #[pyo3(get, set)]
|
834 + | /* PythonServerStructureGenerator.kt:80 */
|
580 835 | /// :type typing.Optional\[float\]:
|
836 + | /* StructureGenerator.kt:231 */
|
581 837 | #[allow(missing_docs)] // documentation missing in model
|
582 838 | pub double_value: ::std::option::Option<f64>,
|
839 + | /* StructureGenerator.kt:201 */
|
583 840 | }
|
841 + | /* StructureGenerator.kt:135 */
|
584 842 | impl SimpleScalarPropertiesInput {
|
843 + | /* StructureGenerator.kt:231 */
|
585 844 | #[allow(missing_docs)] // documentation missing in model
|
845 + | /* StructureGenerator.kt:166 */
|
586 846 | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
847 + | /* StructureGenerator.kt:168 */
|
587 848 | self.float_value
|
849 + | /* StructureGenerator.kt:166 */
|
588 850 | }
|
851 + | /* StructureGenerator.kt:231 */
|
589 852 | #[allow(missing_docs)] // documentation missing in model
|
853 + | /* StructureGenerator.kt:166 */
|
590 854 | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
855 + | /* StructureGenerator.kt:168 */
|
591 856 | self.double_value
|
857 + | /* StructureGenerator.kt:166 */
|
592 858 | }
|
859 + | /* StructureGenerator.kt:135 */
|
593 860 | }
|
861 + | /* RustType.kt:516 */
|
594 862 | #[allow(clippy::new_without_default)]
|
863 + | /* RustType.kt:516 */
|
595 864 | #[allow(clippy::too_many_arguments)]
|
865 + | /* RustType.kt:516 */
|
596 866 | #[::pyo3::pymethods]
|
867 + | /* PythonServerStructureGenerator.kt:88 */
|
597 868 | impl SimpleScalarPropertiesInput {
|
598 869 | #[new]
|
599 870 | pub fn new(
|
600 871 | float_value: ::std::option::Option<f32>,
|
601 872 | double_value: ::std::option::Option<f64>,
|
602 873 | ) -> Self {
|
603 874 | Self {
|
604 875 | float_value,
|
605 876 | double_value,
|
606 877 | }
|
607 878 | }
|
608 879 | fn __repr__(&self) -> String {
|
609 880 | format!("{self:?}")
|
610 881 | }
|
611 882 | fn __str__(&self) -> String {
|
612 883 | format!("{self:?}")
|
613 884 | }
|
614 885 | }
|
886 + | /* PythonServerStructureGenerator.kt:111 */
|
615 887 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
616 888 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
617 889 | ob.extract::<SimpleScalarPropertiesInput>().map(Box::new)
|
618 890 | }
|
619 891 | }
|
620 892 |
|
621 893 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<SimpleScalarPropertiesInput> {
|
622 894 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
623 895 | (*self).into_py(py)
|
624 896 | }
|
625 897 | }
|
898 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
626 899 | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
627 900 | type Unconstrained = crate::input::simple_scalar_properties_input_internal::Builder;
|
628 901 | }
|
902 + | /* ServerCodegenVisitor.kt:370 */
|
629 903 | impl SimpleScalarPropertiesInput {
|
630 - | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
904 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
631 906 | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
632 908 | crate::input::simple_scalar_properties_input::Builder::default()
|
909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
633 910 | }
|
911 + | /* ServerCodegenVisitor.kt:370 */
|
634 912 | }
|
635 913 |
|
914 + | /* RustType.kt:516 */
|
636 915 | #[::pyo3::pyclass]
|
916 + | /* PythonServerStructureGenerator.kt:63 */
|
637 917 | /// :rtype None:
|
918 + | /* StructureGenerator.kt:197 */
|
638 919 | #[allow(missing_docs)] // documentation missing in model
|
920 + | /* RustType.kt:516 */
|
639 921 | #[derive(
|
640 922 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
641 923 | )]
|
642 - | pub struct EmptyInputAndEmptyOutputInput {}
|
924 + | pub /* StructureGenerator.kt:201 */ struct EmptyInputAndEmptyOutputInput {/* StructureGenerator.kt:201 */}
|
925 + | /* RustType.kt:516 */
|
643 926 | #[allow(clippy::new_without_default)]
|
927 + | /* RustType.kt:516 */
|
644 928 | #[allow(clippy::too_many_arguments)]
|
929 + | /* RustType.kt:516 */
|
645 930 | #[::pyo3::pymethods]
|
931 + | /* PythonServerStructureGenerator.kt:88 */
|
646 932 | impl EmptyInputAndEmptyOutputInput {
|
647 933 | #[new]
|
648 934 | pub fn new() -> Self {
|
649 935 | Self {}
|
650 936 | }
|
651 937 | fn __repr__(&self) -> String {
|
652 938 | format!("{self:?}")
|
653 939 | }
|
654 940 | fn __str__(&self) -> String {
|
655 941 | format!("{self:?}")
|
656 942 | }
|
657 943 | }
|
944 + | /* PythonServerStructureGenerator.kt:111 */
|
658 945 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
659 946 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
660 947 | ob.extract::<EmptyInputAndEmptyOutputInput>().map(Box::new)
|
661 948 | }
|
662 949 | }
|
663 950 |
|
664 951 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<EmptyInputAndEmptyOutputInput> {
|
665 952 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
666 953 | (*self).into_py(py)
|
667 954 | }
|
668 955 | }
|
956 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
669 957 | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
670 958 | type Unconstrained = crate::input::empty_input_and_empty_output_input_internal::Builder;
|
671 959 | }
|
960 + | /* ServerCodegenVisitor.kt:370 */
|
672 961 | impl EmptyInputAndEmptyOutputInput {
|
673 - | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
962 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
674 964 | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
675 966 | crate::input::empty_input_and_empty_output_input::Builder::default()
|
967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
676 968 | }
|
969 + | /* ServerCodegenVisitor.kt:370 */
|
677 970 | }
|
678 971 |
|
972 + | /* RustType.kt:516 */
|
679 973 | #[::pyo3::pyclass]
|
974 + | /* PythonServerStructureGenerator.kt:63 */
|
680 975 | /// :rtype None:
|
976 + | /* StructureGenerator.kt:197 */
|
681 977 | #[allow(missing_docs)] // documentation missing in model
|
978 + | /* RustType.kt:516 */
|
682 979 | #[derive(
|
683 980 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
684 981 | )]
|
685 - | pub struct NoInputAndOutputInput {}
|
982 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
983 + | /* RustType.kt:516 */
|
686 984 | #[allow(clippy::new_without_default)]
|
985 + | /* RustType.kt:516 */
|
687 986 | #[allow(clippy::too_many_arguments)]
|
987 + | /* RustType.kt:516 */
|
688 988 | #[::pyo3::pymethods]
|
989 + | /* PythonServerStructureGenerator.kt:88 */
|
689 990 | impl NoInputAndOutputInput {
|
690 991 | #[new]
|
691 992 | pub fn new() -> Self {
|
692 993 | Self {}
|
693 994 | }
|
694 995 | fn __repr__(&self) -> String {
|
695 996 | format!("{self:?}")
|
696 997 | }
|
697 998 | fn __str__(&self) -> String {
|
698 999 | format!("{self:?}")
|
699 1000 | }
|
700 1001 | }
|
1002 + | /* PythonServerStructureGenerator.kt:111 */
|
701 1003 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndOutputInput> {
|
702 1004 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
703 1005 | ob.extract::<NoInputAndOutputInput>().map(Box::new)
|
704 1006 | }
|
705 1007 | }
|
706 1008 |
|
707 1009 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndOutputInput> {
|
708 1010 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
709 1011 | (*self).into_py(py)
|
710 1012 | }
|
711 1013 | }
|
1014 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
712 1015 | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
713 1016 | type Unconstrained = crate::input::no_input_and_output_input_internal::Builder;
|
714 1017 | }
|
1018 + | /* ServerCodegenVisitor.kt:370 */
|
715 1019 | impl NoInputAndOutputInput {
|
716 - | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
1020 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
1021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
717 1022 | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
1023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
718 1024 | crate::input::no_input_and_output_input::Builder::default()
|
1025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
719 1026 | }
|
1027 + | /* ServerCodegenVisitor.kt:370 */
|
720 1028 | }
|
721 1029 |
|
1030 + | /* RustType.kt:516 */
|
722 1031 | #[::pyo3::pyclass]
|
1032 + | /* PythonServerStructureGenerator.kt:63 */
|
723 1033 | /// :rtype None:
|
1034 + | /* StructureGenerator.kt:197 */
|
724 1035 | #[allow(missing_docs)] // documentation missing in model
|
1036 + | /* RustType.kt:516 */
|
725 1037 | #[derive(
|
726 1038 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
727 1039 | )]
|
728 - | pub struct NoInputAndNoOutputInput {}
|
1040 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndNoOutputInput {/* StructureGenerator.kt:201 */}
|
1041 + | /* RustType.kt:516 */
|
729 1042 | #[allow(clippy::new_without_default)]
|
1043 + | /* RustType.kt:516 */
|
730 1044 | #[allow(clippy::too_many_arguments)]
|
1045 + | /* RustType.kt:516 */
|
731 1046 | #[::pyo3::pymethods]
|
1047 + | /* PythonServerStructureGenerator.kt:88 */
|
732 1048 | impl NoInputAndNoOutputInput {
|
733 1049 | #[new]
|
734 1050 | pub fn new() -> Self {
|
735 1051 | Self {}
|
736 1052 | }
|
737 1053 | fn __repr__(&self) -> String {
|
738 1054 | format!("{self:?}")
|
739 1055 | }
|
740 1056 | fn __str__(&self) -> String {
|
741 1057 | format!("{self:?}")
|
742 1058 | }
|
743 1059 | }
|
1060 + | /* PythonServerStructureGenerator.kt:111 */
|
744 1061 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<NoInputAndNoOutputInput> {
|
745 1062 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
746 1063 | ob.extract::<NoInputAndNoOutputInput>().map(Box::new)
|
747 1064 | }
|
748 1065 | }
|
749 1066 |
|
750 1067 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<NoInputAndNoOutputInput> {
|
751 1068 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
752 1069 | (*self).into_py(py)
|
753 1070 | }
|
754 1071 | }
|
1072 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
755 1073 | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
756 1074 | type Unconstrained = crate::input::no_input_and_no_output_input_internal::Builder;
|
757 1075 | }
|
1076 + | /* ServerCodegenVisitor.kt:370 */
|
758 1077 | impl NoInputAndNoOutputInput {
|
759 - | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
1078 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
1079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
760 1080 | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
1081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
761 1082 | crate::input::no_input_and_no_output_input::Builder::default()
|
1083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
762 1084 | }
|
1085 + | /* ServerCodegenVisitor.kt:370 */
|
763 1086 | }
|
764 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1087 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
765 1088 | pub(crate) mod operation_with_nested_structure_input_internal {
|
766 1089 |
|
1090 + | /* RustType.kt:516 */
|
767 1091 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
768 - | /// Holds one variant for each of the ways the builder can fail.
|
1092 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1093 + | /* RustType.kt:516 */
|
769 1094 | #[non_exhaustive]
|
1095 + | /* ServerBuilderConstraintViolations.kt:75 */
|
770 1096 | #[allow(clippy::enum_variant_names)]
|
771 1097 | pub(crate) enum ConstraintViolation {
|
772 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1098 + | /// /* ServerBuilderConstraintViolations.kt:138 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1099 + | /* ServerBuilderConstraintViolations.kt:143 */
|
773 1100 | MissingTopLevel,
|
774 - | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
1101 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
1102 + | /* RustType.kt:516 */
|
775 1103 | #[doc(hidden)]
|
1104 + | /* ServerBuilderConstraintViolations.kt:164 */
|
776 1105 | TopLevel(crate::model::top_level_internal::ConstraintViolation),
|
1106 + | /* ServerBuilderConstraintViolations.kt:75 */
|
777 1107 | }
|
1108 + | /* ServerBuilderConstraintViolations.kt:117 */
|
778 1109 | impl ::std::fmt::Display for ConstraintViolation {
|
1110 + | /* ServerBuilderConstraintViolations.kt:118 */
|
779 1111 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1112 + | /* ServerBuilderConstraintViolations.kt:119 */
|
780 1113 | match self {
|
781 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
782 - | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
783 - | }
|
1114 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
1115 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
1116 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1117 + | /* ServerBuilderConstraintViolations.kt:118 */
|
784 1118 | }
|
1119 + | /* ServerBuilderConstraintViolations.kt:117 */
|
785 1120 | }
|
1121 + | /* ServerBuilderConstraintViolations.kt:84 */
|
786 1122 | impl ::std::error::Error for ConstraintViolation {}
|
1123 + | /* ServerBuilderConstraintViolations.kt:171 */
|
787 1124 | impl ConstraintViolation {
|
788 1125 | pub(crate) fn as_validation_exception_field(
|
789 1126 | self,
|
790 1127 | path: ::std::string::String,
|
791 1128 | ) -> crate::model::ValidationExceptionField {
|
792 1129 | match self {
|
793 1130 | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
794 1131 | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
795 1132 | path: path + "/topLevel",
|
796 1133 | },
|
797 1134 | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
798 1135 | }
|
799 1136 | }
|
800 1137 | }
|
1138 + | /* ServerBuilderGenerator.kt:234 */
|
801 1139 | impl ::std::convert::From<ConstraintViolation>
|
802 1140 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
803 1141 | {
|
804 1142 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
805 1143 | let first_validation_exception_field =
|
806 1144 | constraint_violation.as_validation_exception_field("".to_owned());
|
807 1145 | let validation_exception = crate::error::ValidationException {
|
808 1146 | message: format!(
|
809 1147 | "1 validation error detected. {}",
|
810 1148 | &first_validation_exception_field.message
|
811 1149 | ),
|
812 1150 | field_list: Some(vec![first_validation_exception_field]),
|
813 1151 | };
|
814 1152 | Self::ConstraintViolation(
|
815 1153 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
816 1154 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
817 1155 | )
|
818 1156 | }
|
819 1157 | }
|
1158 + | /* ServerBuilderGenerator.kt:244 */
|
820 1159 | impl ::std::convert::From<Builder>
|
821 1160 | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
822 1161 | {
|
823 1162 | fn from(builder: Builder) -> Self {
|
824 1163 | Self::Unconstrained(builder)
|
825 1164 | }
|
826 1165 | }
|
1166 + | /* ServerBuilderGenerator.kt:446 */
|
827 1167 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
828 1168 | type Error = ConstraintViolation;
|
829 1169 |
|
830 1170 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
831 1171 | builder.build()
|
832 1172 | }
|
833 1173 | }
|
834 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1174 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1175 + | /* RustType.kt:516 */
|
835 1176 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1177 + | /* ServerBuilderGenerator.kt:211 */
|
836 1178 | pub(crate) struct Builder {
|
1179 + | /* ServerBuilderGenerator.kt:308 */
|
837 1180 | pub(crate) top_level:
|
838 1181 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
1182 + | /* ServerBuilderGenerator.kt:211 */
|
839 1183 | }
|
1184 + | /* ServerBuilderGenerator.kt:215 */
|
840 1185 | impl Builder {
|
1186 + | /* ServerBuilderGenerator.kt:426 */
|
841 1187 | #[allow(missing_docs)] // documentation missing in model
|
1188 + | /* ServerBuilderGenerator.kt:428 */
|
842 1189 | pub(crate) fn set_top_level(
|
843 1190 | mut self,
|
844 1191 | input: impl ::std::convert::Into<
|
845 1192 | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
846 1193 | >,
|
847 1194 | ) -> Self {
|
1195 + | /* ServerBuilderGenerator.kt:429 */
|
848 1196 | self.top_level = Some(input.into());
|
849 1197 | self
|
1198 + | /* ServerBuilderGenerator.kt:428 */
|
850 1199 | }
|
851 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
852 - | ///
|
1200 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1201 + | /// /* ServerBuilderGenerator.kt:260 */
|
853 1202 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
854 1203 | ///
|
855 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1204 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
1205 + | /* ServerBuilderGenerator.kt:271 */
|
856 1206 | pub fn build(
|
857 1207 | self,
|
858 1208 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
859 1209 | self.build_enforcing_all_constraints()
|
860 1210 | }
|
1211 + | /* ServerBuilderGenerator.kt:283 */
|
861 1212 | fn build_enforcing_all_constraints(
|
862 1213 | self,
|
863 1214 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
864 - | Ok(crate::input::OperationWithNestedStructureInput {
|
1215 + | /* ServerBuilderGenerator.kt:287 */
|
1216 + | Ok(
|
1217 + | /* ServerBuilderGenerator.kt:542 */
|
1218 + | crate::input::OperationWithNestedStructureInput {
|
1219 + | /* ServerBuilderGenerator.kt:546 */
|
865 1220 | top_level: self
|
866 1221 | .top_level
|
1222 + | /* ServerBuilderGenerator.kt:602 */
|
867 1223 | .map(|v| match v {
|
868 1224 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
869 1225 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
870 1226 | })
|
1227 + | /* ServerBuilderGenerator.kt:614 */
|
871 1228 | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
872 1229 | .transpose()?
|
1230 + | /* ServerBuilderGenerator.kt:569 */
|
873 1231 | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
874 - | })
|
1232 + | /* ServerBuilderGenerator.kt:542 */
|
1233 + | }, /* ServerBuilderGenerator.kt:287 */
|
1234 + | )
|
1235 + | /* ServerBuilderGenerator.kt:283 */
|
875 1236 | }
|
1237 + | /* ServerBuilderGenerator.kt:215 */
|
876 1238 | }
|
1239 + |
|
1240 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
877 1241 | }
|
878 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1242 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
879 1243 | pub mod operation_with_nested_structure_input {
|
880 1244 |
|
1245 + | /* RustType.kt:516 */
|
881 1246 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
882 - | /// Holds one variant for each of the ways the builder can fail.
|
883 - |
|
1247 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1248 + | /* ServerBuilderConstraintViolations.kt:75 */
|
884 1249 | #[allow(clippy::enum_variant_names)]
|
885 1250 | pub enum ConstraintViolation {
|
886 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1251 + | /// /* ServerBuilderConstraintViolations.kt:138 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
1252 + | /* ServerBuilderConstraintViolations.kt:143 */
|
887 1253 | MissingTopLevel,
|
1254 + | /* ServerBuilderConstraintViolations.kt:75 */
|
888 1255 | }
|
1256 + | /* ServerBuilderConstraintViolations.kt:117 */
|
889 1257 | impl ::std::fmt::Display for ConstraintViolation {
|
1258 + | /* ServerBuilderConstraintViolations.kt:118 */
|
890 1259 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1260 + | /* ServerBuilderConstraintViolations.kt:119 */
|
891 1261 | match self {
|
892 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
893 - | }
|
1262 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
1263 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1264 + | /* ServerBuilderConstraintViolations.kt:118 */
|
894 1265 | }
|
1266 + | /* ServerBuilderConstraintViolations.kt:117 */
|
895 1267 | }
|
1268 + | /* ServerBuilderConstraintViolations.kt:84 */
|
896 1269 | impl ::std::error::Error for ConstraintViolation {}
|
1270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
897 1271 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
898 1272 | type Error = ConstraintViolation;
|
899 1273 |
|
900 1274 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
901 1275 | builder.build()
|
902 1276 | }
|
903 1277 | }
|
904 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1278 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1279 + | /* RustType.kt:516 */
|
905 1280 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
906 1282 | pub struct Builder {
|
1283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
907 1284 | pub(crate) top_level: ::std::option::Option<crate::model::TopLevel>,
|
1285 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
908 1286 | }
|
1287 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
909 1288 | impl Builder {
|
1289 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
910 1290 | #[allow(missing_docs)] // documentation missing in model
|
1291 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
911 1292 | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
912 - | self.top_level = Some(input);
|
1293 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1294 + | self.top_level =
|
1295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
1296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
1298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
913 1299 | self
|
1300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
914 1301 | }
|
915 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
916 - | ///
|
1302 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
1303 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
917 1304 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if you do not provide a value for all non-`Option`al members.
|
918 1305 | ///
|
1306 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
919 1307 | pub fn build(
|
920 1308 | self,
|
921 1309 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
922 1310 | self.build_enforcing_required_and_enum_traits()
|
923 1311 | }
|
1312 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
924 1313 | fn build_enforcing_required_and_enum_traits(
|
925 1314 | self,
|
926 1315 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
927 - | Ok(crate::input::OperationWithNestedStructureInput {
|
928 - | top_level: self.top_level.ok_or(ConstraintViolation::MissingTopLevel)?,
|
929 - | })
|
1316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
1317 + | Ok(
|
1318 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1319 + | crate::input::OperationWithNestedStructureInput {
|
1320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1321 + | top_level: self
|
1322 + | .top_level
|
1323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
1324 + | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
1325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1326 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
1327 + | )
|
1328 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
930 1329 | }
|
1330 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
931 1331 | }
|
1332 + |
|
1333 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
932 1334 | }
|
933 - | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1335 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
934 1336 | pub(crate) mod operation_with_required_members_input_internal {
|
935 1337 |
|
1338 + | /* ServerBuilderGenerator.kt:461 */
|
936 1339 | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
937 1340 | fn from(builder: Builder) -> Self {
|
938 1341 | builder.build()
|
939 1342 | }
|
940 1343 | }
|
941 - | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1344 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1345 + | /* RustType.kt:516 */
|
942 1346 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
943 - | pub(crate) struct Builder {}
|
1347 + | /* ServerBuilderGenerator.kt:211 */
|
1348 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1349 + | /* ServerBuilderGenerator.kt:215 */
|
944 1350 | impl Builder {
|
945 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1351 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1352 + | /* ServerBuilderGenerator.kt:271 */
|
946 1353 | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
947 1354 | self.build_enforcing_all_constraints()
|
948 1355 | }
|
1356 + | /* ServerBuilderGenerator.kt:283 */
|
949 1357 | fn build_enforcing_all_constraints(
|
950 1358 | self,
|
951 1359 | ) -> crate::input::OperationWithRequiredMembersInput {
|
952 - | crate::input::OperationWithRequiredMembersInput {}
|
1360 + | /* ServerBuilderGenerator.kt:542 */
|
1361 + | crate::input::OperationWithRequiredMembersInput {
|
1362 + | /* ServerBuilderGenerator.kt:542 */}
|
1363 + | /* ServerBuilderGenerator.kt:283 */
|
953 1364 | }
|
1365 + | /* ServerBuilderGenerator.kt:215 */
|
954 1366 | }
|
1367 + |
|
1368 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
955 1369 | }
|
956 - | /// See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1370 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
957 1371 | pub mod operation_with_required_members_input {
|
958 1372 |
|
1373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
959 1374 | impl ::std::convert::From<Builder> for crate::input::OperationWithRequiredMembersInput {
|
960 1375 | fn from(builder: Builder) -> Self {
|
961 1376 | builder.build()
|
962 1377 | }
|
963 1378 | }
|
964 - | /// A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1379 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1380 + | /* RustType.kt:516 */
|
965 1381 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
966 - | pub struct Builder {}
|
1382 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1383 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
1384 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
967 1385 | impl Builder {
|
968 - | /// Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1386 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OperationWithRequiredMembersInput`](crate::input::OperationWithRequiredMembersInput).
|
1387 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
969 1388 | pub fn build(self) -> crate::input::OperationWithRequiredMembersInput {
|
970 1389 | self.build_enforcing_required_and_enum_traits()
|
971 1390 | }
|
1391 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
972 1392 | fn build_enforcing_required_and_enum_traits(
|
973 1393 | self,
|
974 1394 | ) -> crate::input::OperationWithRequiredMembersInput {
|
975 - | crate::input::OperationWithRequiredMembersInput {}
|
1395 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1396 + | crate::input::OperationWithRequiredMembersInput {
|
1397 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
1398 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
976 1399 | }
|
1400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
977 1401 | }
|
1402 + |
|
1403 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
978 1404 | }
|
979 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1405 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
980 1406 | pub(crate) mod operation_with_defaults_input_internal {
|
981 1407 |
|
1408 + | /* RustType.kt:516 */
|
982 1409 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
983 - | /// Holds one variant for each of the ways the builder can fail.
|
1410 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1411 + | /* RustType.kt:516 */
|
984 1412 | #[non_exhaustive]
|
1413 + | /* ServerBuilderConstraintViolations.kt:75 */
|
985 1414 | #[allow(clippy::enum_variant_names)]
|
986 1415 | pub(crate) enum ConstraintViolation {
|
987 - | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
1416 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
1417 + | /* RustType.kt:516 */
|
988 1418 | #[doc(hidden)]
|
1419 + | /* ServerBuilderConstraintViolations.kt:164 */
|
989 1420 | Defaults(crate::model::defaults_internal::ConstraintViolation),
|
1421 + | /* ServerBuilderConstraintViolations.kt:75 */
|
990 1422 | }
|
1423 + | /* ServerBuilderConstraintViolations.kt:117 */
|
991 1424 | impl ::std::fmt::Display for ConstraintViolation {
|
1425 + | /* ServerBuilderConstraintViolations.kt:118 */
|
992 1426 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1427 + | /* ServerBuilderConstraintViolations.kt:119 */
|
993 1428 | match self {
|
994 - | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
995 - | }
|
1429 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
1430 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1431 + | /* ServerBuilderConstraintViolations.kt:118 */
|
996 1432 | }
|
1433 + | /* ServerBuilderConstraintViolations.kt:117 */
|
997 1434 | }
|
1435 + | /* ServerBuilderConstraintViolations.kt:84 */
|
998 1436 | impl ::std::error::Error for ConstraintViolation {}
|
1437 + | /* ServerBuilderConstraintViolations.kt:171 */
|
999 1438 | impl ConstraintViolation {
|
1000 1439 | pub(crate) fn as_validation_exception_field(
|
1001 1440 | self,
|
1002 1441 | path: ::std::string::String,
|
1003 1442 | ) -> crate::model::ValidationExceptionField {
|
1004 1443 | match self {
|
1005 1444 | ConstraintViolation::Defaults(inner) => {
|
1006 1445 | inner.as_validation_exception_field(path + "/defaults")
|
1007 1446 | }
|
1008 1447 | }
|
1009 1448 | }
|
1010 1449 | }
|
1450 + | /* ServerBuilderGenerator.kt:234 */
|
1011 1451 | impl ::std::convert::From<ConstraintViolation>
|
1012 1452 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
1013 1453 | {
|
1014 1454 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1015 1455 | let first_validation_exception_field =
|
1016 1456 | constraint_violation.as_validation_exception_field("".to_owned());
|
1017 1457 | let validation_exception = crate::error::ValidationException {
|
1018 1458 | message: format!(
|
1019 1459 | "1 validation error detected. {}",
|
1020 1460 | &first_validation_exception_field.message
|
1021 1461 | ),
|
1022 1462 | field_list: Some(vec![first_validation_exception_field]),
|
1023 1463 | };
|
1024 1464 | Self::ConstraintViolation(
|
1025 1465 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1026 1466 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1027 1467 | )
|
1028 1468 | }
|
1029 1469 | }
|
1470 + | /* ServerBuilderGenerator.kt:244 */
|
1030 1471 | impl ::std::convert::From<Builder>
|
1031 1472 | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
1032 1473 | {
|
1033 1474 | fn from(builder: Builder) -> Self {
|
1034 1475 | Self::Unconstrained(builder)
|
1035 1476 | }
|
1036 1477 | }
|
1478 + | /* ServerBuilderGenerator.kt:446 */
|
1037 1479 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
1038 1480 | type Error = ConstraintViolation;
|
1039 1481 |
|
1040 1482 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1041 1483 | builder.build()
|
1042 1484 | }
|
1043 1485 | }
|
1044 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1486 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1487 + | /* RustType.kt:516 */
|
1045 1488 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1489 + | /* ServerBuilderGenerator.kt:211 */
|
1046 1490 | pub(crate) struct Builder {
|
1491 + | /* ServerBuilderGenerator.kt:308 */
|
1047 1492 | pub(crate) defaults:
|
1048 1493 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1494 + | /* ServerBuilderGenerator.kt:308 */
|
1049 1495 | pub(crate) client_optional_defaults:
|
1050 1496 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1497 + | /* ServerBuilderGenerator.kt:308 */
|
1051 1498 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1499 + | /* ServerBuilderGenerator.kt:308 */
|
1052 1500 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1501 + | /* ServerBuilderGenerator.kt:211 */
|
1053 1502 | }
|
1503 + | /* ServerBuilderGenerator.kt:215 */
|
1054 1504 | impl Builder {
|
1505 + | /* ServerBuilderGenerator.kt:426 */
|
1055 1506 | #[allow(missing_docs)] // documentation missing in model
|
1507 + | /* ServerBuilderGenerator.kt:428 */
|
1056 1508 | pub(crate) fn set_defaults(
|
1057 1509 | mut self,
|
1058 1510 | input: Option<
|
1059 1511 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
1060 1512 | >,
|
1061 1513 | ) -> Self {
|
1514 + | /* ServerBuilderGenerator.kt:429 */
|
1062 1515 | self.defaults = input.map(|v| v.into());
|
1063 1516 | self
|
1517 + | /* ServerBuilderGenerator.kt:428 */
|
1064 1518 | }
|
1519 + | /* ServerBuilderGenerator.kt:426 */
|
1065 1520 | #[allow(missing_docs)] // documentation missing in model
|
1521 + | /* ServerBuilderGenerator.kt:428 */
|
1066 1522 | pub(crate) fn set_client_optional_defaults(
|
1067 1523 | mut self,
|
1068 1524 | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
1069 1525 | ) -> Self {
|
1526 + | /* ServerBuilderGenerator.kt:429 */
|
1070 1527 | self.client_optional_defaults = input.map(|v| v.into());
|
1071 1528 | self
|
1529 + | /* ServerBuilderGenerator.kt:428 */
|
1072 1530 | }
|
1531 + | /* ServerBuilderGenerator.kt:426 */
|
1073 1532 | #[allow(missing_docs)] // documentation missing in model
|
1533 + | /* ServerBuilderGenerator.kt:428 */
|
1074 1534 | pub(crate) fn set_top_level_default(
|
1075 1535 | mut self,
|
1076 1536 | input: impl ::std::convert::Into<::std::string::String>,
|
1077 1537 | ) -> Self {
|
1538 + | /* ServerBuilderGenerator.kt:429 */
|
1078 1539 | self.top_level_default = Some(input.into());
|
1079 1540 | self
|
1541 + | /* ServerBuilderGenerator.kt:428 */
|
1080 1542 | }
|
1543 + | /* ServerBuilderGenerator.kt:426 */
|
1081 1544 | #[allow(missing_docs)] // documentation missing in model
|
1545 + | /* ServerBuilderGenerator.kt:428 */
|
1082 1546 | pub(crate) fn set_other_top_level_default(
|
1083 1547 | mut self,
|
1084 1548 | input: impl ::std::convert::Into<i32>,
|
1085 1549 | ) -> Self {
|
1550 + | /* ServerBuilderGenerator.kt:429 */
|
1086 1551 | self.other_top_level_default = Some(input.into());
|
1087 1552 | self
|
1553 + | /* ServerBuilderGenerator.kt:428 */
|
1088 1554 | }
|
1089 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1090 - | ///
|
1555 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1556 + | /// /* ServerBuilderGenerator.kt:260 */
|
1091 1557 | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
1092 1558 | ///
|
1559 + | /* ServerBuilderGenerator.kt:271 */
|
1093 1560 | pub fn build(
|
1094 1561 | self,
|
1095 1562 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1096 1563 | self.build_enforcing_all_constraints()
|
1097 1564 | }
|
1565 + | /* ServerBuilderGenerator.kt:283 */
|
1098 1566 | fn build_enforcing_all_constraints(
|
1099 1567 | self,
|
1100 1568 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
1101 - | Ok(crate::input::OperationWithDefaultsInput {
|
1569 + | /* ServerBuilderGenerator.kt:287 */
|
1570 + | Ok(
|
1571 + | /* ServerBuilderGenerator.kt:542 */
|
1572 + | crate::input::OperationWithDefaultsInput {
|
1573 + | /* ServerBuilderGenerator.kt:546 */
|
1102 1574 | defaults: self
|
1103 1575 | .defaults
|
1576 + | /* ServerBuilderGenerator.kt:602 */
|
1104 1577 | .map(|v| match v {
|
1105 1578 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1106 1579 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1107 1580 | })
|
1581 + | /* ServerBuilderGenerator.kt:614 */
|
1108 1582 | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
1109 1583 | .transpose()?,
|
1584 + | /* ServerBuilderGenerator.kt:546 */
|
1110 1585 | client_optional_defaults: self.client_optional_defaults,
|
1111 - | top_level_default: self.top_level_default.unwrap_or_else(
|
1586 + | /* ServerBuilderGenerator.kt:546 */
|
1587 + | top_level_default: self
|
1588 + | .top_level_default
|
1589 + | /* ServerBuilderGeneratorCommon.kt:139 */
|
1590 + | .unwrap_or_else(
|
1112 1591 | #[allow(clippy::redundant_closure)]
|
1113 1592 | || String::from("hi"),
|
1114 1593 | ),
|
1115 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1116 - | })
|
1594 + | /* ServerBuilderGenerator.kt:546 */
|
1595 + | other_top_level_default: self
|
1596 + | .other_top_level_default
|
1597 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
1598 + | .unwrap_or(0i32),
|
1599 + | /* ServerBuilderGenerator.kt:542 */
|
1600 + | }, /* ServerBuilderGenerator.kt:287 */
|
1601 + | )
|
1602 + | /* ServerBuilderGenerator.kt:283 */
|
1117 1603 | }
|
1604 + | /* ServerBuilderGenerator.kt:215 */
|
1118 1605 | }
|
1606 + |
|
1607 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1119 1608 | }
|
1120 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1609 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1121 1610 | pub mod operation_with_defaults_input {
|
1122 1611 |
|
1612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1123 1613 | impl ::std::convert::From<Builder> for crate::input::OperationWithDefaultsInput {
|
1124 1614 | fn from(builder: Builder) -> Self {
|
1125 1615 | builder.build()
|
1126 1616 | }
|
1127 1617 | }
|
1128 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1618 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1619 + | /* RustType.kt:516 */
|
1129 1620 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1130 1622 | pub struct Builder {
|
1623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1131 1624 | pub(crate) defaults: ::std::option::Option<crate::model::Defaults>,
|
1625 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1132 1626 | pub(crate) client_optional_defaults:
|
1133 1627 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1134 1629 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
1630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1135 1631 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
1632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1136 1633 | }
|
1634 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1137 1635 | impl Builder {
|
1636 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1138 1637 | #[allow(missing_docs)] // documentation missing in model
|
1638 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1139 1639 | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
1140 - | self.defaults = input;
|
1640 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1641 + | self.defaults =
|
1642 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1643 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1141 1644 | self
|
1645 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1142 1646 | }
|
1647 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1143 1648 | #[allow(missing_docs)] // documentation missing in model
|
1649 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1144 1650 | pub fn client_optional_defaults(
|
1145 1651 | mut self,
|
1146 1652 | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
1147 1653 | ) -> Self {
|
1148 - | self.client_optional_defaults = input;
|
1654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1655 + | self.client_optional_defaults =
|
1656 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1657 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1149 1658 | self
|
1659 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1150 1660 | }
|
1661 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1151 1662 | #[allow(missing_docs)] // documentation missing in model
|
1663 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1152 1664 | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
1153 - | self.top_level_default = Some(input);
|
1665 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1666 + | self.top_level_default =
|
1667 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
1668 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1669 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
1670 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1154 1671 | self
|
1672 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1155 1673 | }
|
1674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1156 1675 | #[allow(missing_docs)] // documentation missing in model
|
1676 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1157 1677 | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
1158 - | self.other_top_level_default = Some(input);
|
1678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1679 + | self.other_top_level_default =
|
1680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
1681 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1682 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
1683 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1159 1684 | self
|
1685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1160 1686 | }
|
1161 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1687 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
1688 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1162 1689 | pub fn build(self) -> crate::input::OperationWithDefaultsInput {
|
1163 1690 | self.build_enforcing_required_and_enum_traits()
|
1164 1691 | }
|
1692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1165 1693 | fn build_enforcing_required_and_enum_traits(
|
1166 1694 | self,
|
1167 1695 | ) -> crate::input::OperationWithDefaultsInput {
|
1696 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1168 1697 | crate::input::OperationWithDefaultsInput {
|
1698 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1169 1699 | defaults: self.defaults,
|
1700 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1170 1701 | client_optional_defaults: self.client_optional_defaults,
|
1171 - | top_level_default: self.top_level_default.unwrap_or_else(
|
1702 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1703 + | top_level_default: self
|
1704 + | .top_level_default
|
1705 + | /* ServerBuilderGeneratorCommon.kt:139 */
|
1706 + | .unwrap_or_else(
|
1172 1707 | #[allow(clippy::redundant_closure)]
|
1173 1708 | || String::from("hi"),
|
1174 1709 | ),
|
1175 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
1710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1711 + | other_top_level_default: self
|
1712 + | .other_top_level_default
|
1713 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
1714 + | .unwrap_or(0i32),
|
1715 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1176 1716 | }
|
1717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1177 1718 | }
|
1719 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1178 1720 | }
|
1721 + |
|
1722 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1179 1723 | }
|
1180 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1724 + | /// /* ServerBuilderGenerator.kt:171 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1181 1725 | pub(crate) mod content_type_parameters_input_internal {
|
1182 1726 |
|
1727 + | /* ServerBuilderGenerator.kt:461 */
|
1183 1728 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1184 1729 | fn from(builder: Builder) -> Self {
|
1185 1730 | builder.build()
|
1186 1731 | }
|
1187 1732 | }
|
1188 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1733 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1734 + | /* RustType.kt:516 */
|
1189 1735 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1736 + | /* ServerBuilderGenerator.kt:211 */
|
1190 1737 | pub(crate) struct Builder {
|
1738 + | /* ServerBuilderGenerator.kt:308 */
|
1191 1739 | pub(crate) value: ::std::option::Option<i32>,
|
1740 + | /* ServerBuilderGenerator.kt:211 */
|
1192 1741 | }
|
1742 + | /* ServerBuilderGenerator.kt:215 */
|
1193 1743 | impl Builder {
|
1744 + | /* ServerBuilderGenerator.kt:426 */
|
1194 1745 | #[allow(missing_docs)] // documentation missing in model
|
1746 + | /* ServerBuilderGenerator.kt:428 */
|
1195 1747 | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
1748 + | /* ServerBuilderGenerator.kt:429 */
|
1196 1749 | self.value = input.map(|v| v.into());
|
1197 1750 | self
|
1751 + | /* ServerBuilderGenerator.kt:428 */
|
1198 1752 | }
|
1199 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1753 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1754 + | /* ServerBuilderGenerator.kt:271 */
|
1200 1755 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1201 1756 | self.build_enforcing_all_constraints()
|
1202 1757 | }
|
1758 + | /* ServerBuilderGenerator.kt:283 */
|
1203 1759 | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
1204 - | crate::input::ContentTypeParametersInput { value: self.value }
|
1760 + | /* ServerBuilderGenerator.kt:542 */
|
1761 + | crate::input::ContentTypeParametersInput {
|
1762 + | /* ServerBuilderGenerator.kt:546 */
|
1763 + | value: self.value,
|
1764 + | /* ServerBuilderGenerator.kt:542 */
|
1205 1765 | }
|
1766 + | /* ServerBuilderGenerator.kt:283 */
|
1206 1767 | }
|
1768 + | /* ServerBuilderGenerator.kt:215 */
|
1769 + | }
|
1770 + |
|
1771 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1207 1772 | }
|
1208 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1773 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1209 1774 | pub mod content_type_parameters_input {
|
1210 1775 |
|
1776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1211 1777 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
1212 1778 | fn from(builder: Builder) -> Self {
|
1213 1779 | builder.build()
|
1214 1780 | }
|
1215 1781 | }
|
1216 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1782 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1783 + | /* RustType.kt:516 */
|
1217 1784 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1218 1786 | pub struct Builder {
|
1787 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1219 1788 | pub(crate) value: ::std::option::Option<i32>,
|
1789 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1220 1790 | }
|
1791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1221 1792 | impl Builder {
|
1793 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1222 1794 | #[allow(missing_docs)] // documentation missing in model
|
1795 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1223 1796 | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
1224 - | self.value = input;
|
1797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1798 + | self.value =
|
1799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1225 1801 | self
|
1802 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1226 1803 | }
|
1227 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1804 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
1805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1228 1806 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
1229 1807 | self.build_enforcing_required_and_enum_traits()
|
1230 1808 | }
|
1809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1231 1810 | fn build_enforcing_required_and_enum_traits(
|
1232 1811 | self,
|
1233 1812 | ) -> crate::input::ContentTypeParametersInput {
|
1234 - | crate::input::ContentTypeParametersInput { value: self.value }
|
1813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1814 + | crate::input::ContentTypeParametersInput {
|
1815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1816 + | value: self.value,
|
1817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1235 1818 | }
|
1819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1236 1820 | }
|
1821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1822 + | }
|
1823 + |
|
1824 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1237 1825 | }
|
1238 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1826 + | /// /* ServerBuilderGenerator.kt:171 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1239 1827 | pub(crate) mod put_with_content_encoding_input_internal {
|
1240 1828 |
|
1829 + | /* ServerBuilderGenerator.kt:461 */
|
1241 1830 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1242 1831 | fn from(builder: Builder) -> Self {
|
1243 1832 | builder.build()
|
1244 1833 | }
|
1245 1834 | }
|
1246 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1835 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1836 + | /* RustType.kt:516 */
|
1247 1837 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1838 + | /* ServerBuilderGenerator.kt:211 */
|
1248 1839 | pub(crate) struct Builder {
|
1840 + | /* ServerBuilderGenerator.kt:308 */
|
1249 1841 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1842 + | /* ServerBuilderGenerator.kt:308 */
|
1250 1843 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1844 + | /* ServerBuilderGenerator.kt:211 */
|
1251 1845 | }
|
1846 + | /* ServerBuilderGenerator.kt:215 */
|
1252 1847 | impl Builder {
|
1848 + | /* ServerBuilderGenerator.kt:426 */
|
1253 1849 | #[allow(missing_docs)] // documentation missing in model
|
1850 + | /* ServerBuilderGenerator.kt:428 */
|
1254 1851 | pub(crate) fn set_encoding(
|
1255 1852 | mut self,
|
1256 1853 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1257 1854 | ) -> Self {
|
1855 + | /* ServerBuilderGenerator.kt:429 */
|
1258 1856 | self.encoding = input.map(|v| v.into());
|
1259 1857 | self
|
1858 + | /* ServerBuilderGenerator.kt:428 */
|
1260 1859 | }
|
1860 + | /* ServerBuilderGenerator.kt:426 */
|
1261 1861 | #[allow(missing_docs)] // documentation missing in model
|
1862 + | /* ServerBuilderGenerator.kt:428 */
|
1262 1863 | pub(crate) fn set_data(
|
1263 1864 | mut self,
|
1264 1865 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1265 1866 | ) -> Self {
|
1867 + | /* ServerBuilderGenerator.kt:429 */
|
1266 1868 | self.data = input.map(|v| v.into());
|
1267 1869 | self
|
1870 + | /* ServerBuilderGenerator.kt:428 */
|
1268 1871 | }
|
1269 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1872 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1873 + | /* ServerBuilderGenerator.kt:271 */
|
1270 1874 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1271 1875 | self.build_enforcing_all_constraints()
|
1272 1876 | }
|
1877 + | /* ServerBuilderGenerator.kt:283 */
|
1273 1878 | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
1879 + | /* ServerBuilderGenerator.kt:542 */
|
1274 1880 | crate::input::PutWithContentEncodingInput {
|
1881 + | /* ServerBuilderGenerator.kt:546 */
|
1275 1882 | encoding: self.encoding,
|
1883 + | /* ServerBuilderGenerator.kt:546 */
|
1276 1884 | data: self.data,
|
1885 + | /* ServerBuilderGenerator.kt:542 */
|
1277 1886 | }
|
1887 + | /* ServerBuilderGenerator.kt:283 */
|
1278 1888 | }
|
1889 + | /* ServerBuilderGenerator.kt:215 */
|
1279 1890 | }
|
1891 + |
|
1892 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1280 1893 | }
|
1281 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1894 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1282 1895 | pub mod put_with_content_encoding_input {
|
1283 1896 |
|
1897 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1284 1898 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
1285 1899 | fn from(builder: Builder) -> Self {
|
1286 1900 | builder.build()
|
1287 1901 | }
|
1288 1902 | }
|
1289 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1903 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1904 + | /* RustType.kt:516 */
|
1290 1905 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1906 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1291 1907 | pub struct Builder {
|
1908 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1292 1909 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
1910 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1293 1911 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
1912 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1294 1913 | }
|
1914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1295 1915 | impl Builder {
|
1916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1296 1917 | #[allow(missing_docs)] // documentation missing in model
|
1918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1297 1919 | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1298 - | self.encoding = input;
|
1920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1921 + | self.encoding =
|
1922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1299 1924 | self
|
1925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1300 1926 | }
|
1927 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1301 1928 | #[allow(missing_docs)] // documentation missing in model
|
1929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1302 1930 | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1303 - | self.data = input;
|
1931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1932 + | self.data =
|
1933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1304 1935 | self
|
1936 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1305 1937 | }
|
1306 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1938 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
1939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1307 1940 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
1308 1941 | self.build_enforcing_required_and_enum_traits()
|
1309 1942 | }
|
1943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1310 1944 | fn build_enforcing_required_and_enum_traits(
|
1311 1945 | self,
|
1312 1946 | ) -> crate::input::PutWithContentEncodingInput {
|
1947 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1313 1948 | crate::input::PutWithContentEncodingInput {
|
1949 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1314 1950 | encoding: self.encoding,
|
1951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1315 1952 | data: self.data,
|
1953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1316 1954 | }
|
1955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1317 1956 | }
|
1957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1318 1958 | }
|
1959 + |
|
1960 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1319 1961 | }
|
1320 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1962 + | /// /* ServerBuilderGenerator.kt:171 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1321 1963 | pub(crate) mod host_with_path_operation_input_internal {
|
1322 1964 |
|
1965 + | /* ServerBuilderGenerator.kt:461 */
|
1323 1966 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1324 1967 | fn from(builder: Builder) -> Self {
|
1325 1968 | builder.build()
|
1326 1969 | }
|
1327 1970 | }
|
1328 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1971 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1972 + | /* RustType.kt:516 */
|
1329 1973 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1330 - | pub(crate) struct Builder {}
|
1974 + | /* ServerBuilderGenerator.kt:211 */
|
1975 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1976 + | /* ServerBuilderGenerator.kt:215 */
|
1331 1977 | impl Builder {
|
1332 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1978 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1979 + | /* ServerBuilderGenerator.kt:271 */
|
1333 1980 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1334 1981 | self.build_enforcing_all_constraints()
|
1335 1982 | }
|
1983 + | /* ServerBuilderGenerator.kt:283 */
|
1336 1984 | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
1337 - | crate::input::HostWithPathOperationInput {}
|
1985 + | /* ServerBuilderGenerator.kt:542 */
|
1986 + | crate::input::HostWithPathOperationInput {
|
1987 + | /* ServerBuilderGenerator.kt:542 */}
|
1988 + | /* ServerBuilderGenerator.kt:283 */
|
1338 1989 | }
|
1990 + | /* ServerBuilderGenerator.kt:215 */
|
1339 1991 | }
|
1992 + |
|
1993 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1340 1994 | }
|
1341 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1995 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
1342 1996 | pub mod host_with_path_operation_input {
|
1343 1997 |
|
1998 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1344 1999 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
1345 2000 | fn from(builder: Builder) -> Self {
|
1346 2001 | builder.build()
|
1347 2002 | }
|
1348 2003 | }
|
1349 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2004 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2005 + | /* RustType.kt:516 */
|
1350 2006 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1351 - | pub struct Builder {}
|
2007 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2008 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
2009 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1352 2010 | impl Builder {
|
1353 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2011 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2012 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1354 2013 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
1355 2014 | self.build_enforcing_required_and_enum_traits()
|
1356 2015 | }
|
2016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1357 2017 | fn build_enforcing_required_and_enum_traits(
|
1358 2018 | self,
|
1359 2019 | ) -> crate::input::HostWithPathOperationInput {
|
1360 - | crate::input::HostWithPathOperationInput {}
|
2020 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2021 + | crate::input::HostWithPathOperationInput {
|
2022 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
2023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1361 2024 | }
|
2025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1362 2026 | }
|
2027 + |
|
2028 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1363 2029 | }
|
1364 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2030 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
1365 2031 | pub(crate) mod endpoint_with_host_label_operation_input_internal {
|
1366 2032 |
|
2033 + | /* RustType.kt:516 */
|
1367 2034 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1368 - | /// Holds one variant for each of the ways the builder can fail.
|
2035 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2036 + | /* RustType.kt:516 */
|
1369 2037 | #[non_exhaustive]
|
2038 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1370 2039 | #[allow(clippy::enum_variant_names)]
|
1371 2040 | pub(crate) enum ConstraintViolation {
|
1372 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
2041 + | /// /* ServerBuilderConstraintViolations.kt:138 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
2042 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1373 2043 | MissingLabel,
|
2044 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1374 2045 | }
|
2046 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1375 2047 | impl ::std::fmt::Display for ConstraintViolation {
|
2048 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1376 2049 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2050 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1377 2051 | match self {
|
1378 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
1379 - | }
|
2052 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
2053 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2054 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1380 2055 | }
|
2056 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1381 2057 | }
|
2058 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1382 2059 | impl ::std::error::Error for ConstraintViolation {}
|
2060 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1383 2061 | impl ConstraintViolation {
|
1384 2062 | pub(crate) fn as_validation_exception_field(
|
1385 2063 | self,
|
1386 2064 | path: ::std::string::String,
|
1387 2065 | ) -> crate::model::ValidationExceptionField {
|
1388 2066 | match self {
|
1389 2067 | ConstraintViolation::MissingLabel => crate::model::ValidationExceptionField {
|
1390 2068 | message: format!(
|
1391 2069 | "Value at '{}/label' failed to satisfy constraint: Member must not be null",
|
1392 2070 | path
|
1393 2071 | ),
|
1394 2072 | path: path + "/label",
|
1395 2073 | },
|
1396 2074 | }
|
1397 2075 | }
|
1398 2076 | }
|
2077 + | /* ServerBuilderGenerator.kt:234 */
|
1399 2078 | impl ::std::convert::From<ConstraintViolation>
|
1400 2079 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
1401 2080 | {
|
1402 2081 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1403 2082 | let first_validation_exception_field =
|
1404 2083 | constraint_violation.as_validation_exception_field("".to_owned());
|
1405 2084 | let validation_exception = crate::error::ValidationException {
|
1406 2085 | message: format!(
|
1407 2086 | "1 validation error detected. {}",
|
1408 2087 | &first_validation_exception_field.message
|
1409 2088 | ),
|
1410 2089 | field_list: Some(vec![first_validation_exception_field]),
|
1411 2090 | };
|
1412 2091 | Self::ConstraintViolation(
|
1413 2092 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1414 2093 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1415 2094 | )
|
1416 2095 | }
|
1417 2096 | }
|
2097 + | /* ServerBuilderGenerator.kt:244 */
|
1418 2098 | impl ::std::convert::From<Builder>
|
1419 2099 | for crate::constrained::MaybeConstrained<crate::input::EndpointWithHostLabelOperationInput>
|
1420 2100 | {
|
1421 2101 | fn from(builder: Builder) -> Self {
|
1422 2102 | Self::Unconstrained(builder)
|
1423 2103 | }
|
1424 2104 | }
|
2105 + | /* ServerBuilderGenerator.kt:446 */
|
1425 2106 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
1426 2107 | type Error = ConstraintViolation;
|
1427 2108 |
|
1428 2109 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1429 2110 | builder.build()
|
1430 2111 | }
|
1431 2112 | }
|
1432 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2113 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2114 + | /* RustType.kt:516 */
|
1433 2115 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2116 + | /* ServerBuilderGenerator.kt:211 */
|
1434 2117 | pub(crate) struct Builder {
|
2118 + | /* ServerBuilderGenerator.kt:308 */
|
1435 2119 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
2120 + | /* ServerBuilderGenerator.kt:211 */
|
1436 2121 | }
|
2122 + | /* ServerBuilderGenerator.kt:215 */
|
1437 2123 | impl Builder {
|
2124 + | /* ServerBuilderGenerator.kt:426 */
|
1438 2125 | #[allow(missing_docs)] // documentation missing in model
|
2126 + | /* ServerBuilderGenerator.kt:428 */
|
1439 2127 | pub(crate) fn set_label(
|
1440 2128 | mut self,
|
1441 2129 | input: impl ::std::convert::Into<::std::string::String>,
|
1442 2130 | ) -> Self {
|
2131 + | /* ServerBuilderGenerator.kt:429 */
|
1443 2132 | self.label = Some(input.into());
|
1444 2133 | self
|
2134 + | /* ServerBuilderGenerator.kt:428 */
|
1445 2135 | }
|
1446 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
1447 - | ///
|
2136 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2137 + | /// /* ServerBuilderGenerator.kt:260 */
|
1448 2138 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if a [`ConstraintViolation`] occurs.
|
1449 2139 | ///
|
2140 + | /* ServerBuilderGenerator.kt:271 */
|
1450 2141 | pub fn build(
|
1451 2142 | self,
|
1452 2143 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
1453 2144 | {
|
1454 2145 | self.build_enforcing_all_constraints()
|
1455 2146 | }
|
2147 + | /* ServerBuilderGenerator.kt:283 */
|
1456 2148 | fn build_enforcing_all_constraints(
|
1457 2149 | self,
|
1458 2150 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
1459 2151 | {
|
1460 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
1461 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
1462 - | })
|
2152 + | /* ServerBuilderGenerator.kt:287 */
|
2153 + | Ok(
|
2154 + | /* ServerBuilderGenerator.kt:542 */
|
2155 + | crate::input::EndpointWithHostLabelOperationInput {
|
2156 + | /* ServerBuilderGenerator.kt:546 */
|
2157 + | label: self
|
2158 + | .label
|
2159 + | /* ServerBuilderGenerator.kt:569 */
|
2160 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
2161 + | /* ServerBuilderGenerator.kt:542 */
|
2162 + | }, /* ServerBuilderGenerator.kt:287 */
|
2163 + | )
|
2164 + | /* ServerBuilderGenerator.kt:283 */
|
1463 2165 | }
|
2166 + | /* ServerBuilderGenerator.kt:215 */
|
1464 2167 | }
|
2168 + |
|
2169 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1465 2170 | }
|
1466 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2171 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
1467 2172 | pub mod endpoint_with_host_label_operation_input {
|
1468 2173 |
|
2174 + | /* RustType.kt:516 */
|
1469 2175 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1470 - | /// Holds one variant for each of the ways the builder can fail.
|
1471 - |
|
2176 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2177 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1472 2178 | #[allow(clippy::enum_variant_names)]
|
1473 2179 | pub enum ConstraintViolation {
|
1474 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
2180 + | /// /* ServerBuilderConstraintViolations.kt:138 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
2181 + | /* ServerBuilderConstraintViolations.kt:143 */
|
1475 2182 | MissingLabel,
|
2183 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1476 2184 | }
|
2185 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1477 2186 | impl ::std::fmt::Display for ConstraintViolation {
|
2187 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1478 2188 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2189 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1479 2190 | match self {
|
1480 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
1481 - | }
|
2191 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
2192 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2193 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1482 2194 | }
|
2195 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1483 2196 | }
|
2197 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1484 2198 | impl ::std::error::Error for ConstraintViolation {}
|
2199 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
1485 2200 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
1486 2201 | type Error = ConstraintViolation;
|
1487 2202 |
|
1488 2203 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1489 2204 | builder.build()
|
1490 2205 | }
|
1491 2206 | }
|
1492 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2207 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2208 + | /* RustType.kt:516 */
|
1493 2209 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2210 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1494 2211 | pub struct Builder {
|
2212 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1495 2213 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
2214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1496 2215 | }
|
2216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1497 2217 | impl Builder {
|
2218 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1498 2219 | #[allow(missing_docs)] // documentation missing in model
|
2220 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1499 2221 | pub fn label(mut self, input: ::std::string::String) -> Self {
|
1500 - | self.label = Some(input);
|
2222 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2223 + | self.label =
|
2224 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
2225 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2226 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
2227 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1501 2228 | self
|
2229 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1502 2230 | }
|
1503 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
1504 - | ///
|
2231 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2232 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
1505 2233 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if you do not provide a value for all non-`Option`al members.
|
1506 2234 | ///
|
2235 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1507 2236 | pub fn build(
|
1508 2237 | self,
|
1509 2238 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
1510 2239 | {
|
1511 2240 | self.build_enforcing_required_and_enum_traits()
|
1512 2241 | }
|
2242 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1513 2243 | fn build_enforcing_required_and_enum_traits(
|
1514 2244 | self,
|
1515 2245 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
1516 2246 | {
|
1517 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
1518 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
1519 - | })
|
2247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
2248 + | Ok(
|
2249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2250 + | crate::input::EndpointWithHostLabelOperationInput {
|
2251 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2252 + | label: self
|
2253 + | .label
|
2254 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
2255 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
2256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2257 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
2258 + | )
|
2259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1520 2260 | }
|
2261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1521 2262 | }
|
2263 + |
|
2264 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1522 2265 | }
|
1523 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2266 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1524 2267 | pub(crate) mod endpoint_operation_input_internal {
|
1525 2268 |
|
2269 + | /* ServerBuilderGenerator.kt:461 */
|
1526 2270 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1527 2271 | fn from(builder: Builder) -> Self {
|
1528 2272 | builder.build()
|
1529 2273 | }
|
1530 2274 | }
|
1531 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2275 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2276 + | /* RustType.kt:516 */
|
1532 2277 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1533 - | pub(crate) struct Builder {}
|
2278 + | /* ServerBuilderGenerator.kt:211 */
|
2279 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
2280 + | /* ServerBuilderGenerator.kt:215 */
|
1534 2281 | impl Builder {
|
1535 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2282 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2283 + | /* ServerBuilderGenerator.kt:271 */
|
1536 2284 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1537 2285 | self.build_enforcing_all_constraints()
|
1538 2286 | }
|
2287 + | /* ServerBuilderGenerator.kt:283 */
|
1539 2288 | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
1540 - | crate::input::EndpointOperationInput {}
|
2289 + | /* ServerBuilderGenerator.kt:542 */
|
2290 + | crate::input::EndpointOperationInput {
|
2291 + | /* ServerBuilderGenerator.kt:542 */}
|
2292 + | /* ServerBuilderGenerator.kt:283 */
|
1541 2293 | }
|
2294 + | /* ServerBuilderGenerator.kt:215 */
|
1542 2295 | }
|
2296 + |
|
2297 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1543 2298 | }
|
1544 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2299 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
1545 2300 | pub mod endpoint_operation_input {
|
1546 2301 |
|
2302 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1547 2303 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
1548 2304 | fn from(builder: Builder) -> Self {
|
1549 2305 | builder.build()
|
1550 2306 | }
|
1551 2307 | }
|
1552 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2308 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2309 + | /* RustType.kt:516 */
|
1553 2310 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1554 - | pub struct Builder {}
|
2311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2312 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
2313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1555 2314 | impl Builder {
|
1556 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2315 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2316 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1557 2317 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
1558 2318 | self.build_enforcing_required_and_enum_traits()
|
1559 2319 | }
|
2320 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1560 2321 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::EndpointOperationInput {
|
1561 - | crate::input::EndpointOperationInput {}
|
2322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2323 + | crate::input::EndpointOperationInput {
|
2324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
2325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1562 2326 | }
|
2327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1563 2328 | }
|
2329 + |
|
2330 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1564 2331 | }
|
1565 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2332 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1566 2333 | pub(crate) mod json_unions_input_internal {
|
1567 2334 |
|
2335 + | /* RustType.kt:516 */
|
1568 2336 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1569 - | /// Holds one variant for each of the ways the builder can fail.
|
2337 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2338 + | /* RustType.kt:516 */
|
1570 2339 | #[non_exhaustive]
|
2340 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1571 2341 | #[allow(clippy::enum_variant_names)]
|
1572 2342 | pub(crate) enum ConstraintViolation {
|
1573 - | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
2343 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
2344 + | /* RustType.kt:516 */
|
1574 2345 | #[doc(hidden)]
|
2346 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1575 2347 | Contents(crate::model::my_union_internal::ConstraintViolation),
|
2348 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1576 2349 | }
|
2350 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1577 2351 | impl ::std::fmt::Display for ConstraintViolation {
|
2352 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1578 2353 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2354 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1579 2355 | match self {
|
1580 - | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
1581 - | }
|
2356 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
2357 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2358 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1582 2359 | }
|
2360 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1583 2361 | }
|
2362 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1584 2363 | impl ::std::error::Error for ConstraintViolation {}
|
2364 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1585 2365 | impl ConstraintViolation {
|
1586 2366 | pub(crate) fn as_validation_exception_field(
|
1587 2367 | self,
|
1588 2368 | path: ::std::string::String,
|
1589 2369 | ) -> crate::model::ValidationExceptionField {
|
1590 2370 | match self {
|
1591 2371 | ConstraintViolation::Contents(inner) => {
|
1592 2372 | inner.as_validation_exception_field(path + "/contents")
|
1593 2373 | }
|
1594 2374 | }
|
1595 2375 | }
|
1596 2376 | }
|
2377 + | /* ServerBuilderGenerator.kt:234 */
|
1597 2378 | impl ::std::convert::From<ConstraintViolation>
|
1598 2379 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
1599 2380 | {
|
1600 2381 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1601 2382 | let first_validation_exception_field =
|
1602 2383 | constraint_violation.as_validation_exception_field("".to_owned());
|
1603 2384 | let validation_exception = crate::error::ValidationException {
|
1604 2385 | message: format!(
|
1605 2386 | "1 validation error detected. {}",
|
1606 2387 | &first_validation_exception_field.message
|
1607 2388 | ),
|
1608 2389 | field_list: Some(vec![first_validation_exception_field]),
|
1609 2390 | };
|
1610 2391 | Self::ConstraintViolation(
|
1611 2392 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1612 2393 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1613 2394 | )
|
1614 2395 | }
|
1615 2396 | }
|
2397 + | /* ServerBuilderGenerator.kt:244 */
|
1616 2398 | impl ::std::convert::From<Builder>
|
1617 2399 | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
1618 2400 | {
|
1619 2401 | fn from(builder: Builder) -> Self {
|
1620 2402 | Self::Unconstrained(builder)
|
1621 2403 | }
|
1622 2404 | }
|
2405 + | /* ServerBuilderGenerator.kt:446 */
|
1623 2406 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
1624 2407 | type Error = ConstraintViolation;
|
1625 2408 |
|
1626 2409 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1627 2410 | builder.build()
|
1628 2411 | }
|
1629 2412 | }
|
1630 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2413 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2414 + | /* RustType.kt:516 */
|
1631 2415 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2416 + | /* ServerBuilderGenerator.kt:211 */
|
1632 2417 | pub(crate) struct Builder {
|
2418 + | /* ServerBuilderGenerator.kt:308 */
|
1633 2419 | pub(crate) contents:
|
1634 2420 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
2421 + | /* ServerBuilderGenerator.kt:211 */
|
1635 2422 | }
|
2423 + | /* ServerBuilderGenerator.kt:215 */
|
1636 2424 | impl Builder {
|
1637 - | /// A union with a representative set of types for members.
|
2425 + | /// /* ServerBuilderGenerator.kt:426 */A union with a representative set of types for members.
|
2426 + | /* ServerBuilderGenerator.kt:428 */
|
1638 2427 | pub(crate) fn set_contents(
|
1639 2428 | mut self,
|
1640 2429 | input: Option<
|
1641 2430 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
1642 2431 | >,
|
1643 2432 | ) -> Self {
|
2433 + | /* ServerBuilderGenerator.kt:429 */
|
1644 2434 | self.contents = input.map(|v| v.into());
|
1645 2435 | self
|
2436 + | /* ServerBuilderGenerator.kt:428 */
|
1646 2437 | }
|
1647 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1648 - | ///
|
2438 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2439 + | /// /* ServerBuilderGenerator.kt:260 */
|
1649 2440 | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
1650 2441 | ///
|
2442 + | /* ServerBuilderGenerator.kt:271 */
|
1651 2443 | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1652 2444 | self.build_enforcing_all_constraints()
|
1653 2445 | }
|
2446 + | /* ServerBuilderGenerator.kt:283 */
|
1654 2447 | fn build_enforcing_all_constraints(
|
1655 2448 | self,
|
1656 2449 | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
1657 - | Ok(crate::input::JsonUnionsInput {
|
2450 + | /* ServerBuilderGenerator.kt:287 */
|
2451 + | Ok(
|
2452 + | /* ServerBuilderGenerator.kt:542 */
|
2453 + | crate::input::JsonUnionsInput {
|
2454 + | /* ServerBuilderGenerator.kt:546 */
|
1658 2455 | contents: self
|
1659 2456 | .contents
|
2457 + | /* ServerBuilderGenerator.kt:602 */
|
1660 2458 | .map(|v| match v {
|
1661 2459 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1662 2460 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1663 2461 | })
|
2462 + | /* ServerBuilderGenerator.kt:614 */
|
1664 2463 | .map(|res| res.map_err(ConstraintViolation::Contents))
|
1665 2464 | .transpose()?,
|
1666 - | })
|
2465 + | /* ServerBuilderGenerator.kt:542 */
|
2466 + | }, /* ServerBuilderGenerator.kt:287 */
|
2467 + | )
|
2468 + | /* ServerBuilderGenerator.kt:283 */
|
1667 2469 | }
|
2470 + | /* ServerBuilderGenerator.kt:215 */
|
1668 2471 | }
|
2472 + |
|
2473 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1669 2474 | }
|
1670 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2475 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
1671 2476 | pub mod json_unions_input {
|
1672 2477 |
|
2478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1673 2479 | impl ::std::convert::From<Builder> for crate::input::JsonUnionsInput {
|
1674 2480 | fn from(builder: Builder) -> Self {
|
1675 2481 | builder.build()
|
1676 2482 | }
|
1677 2483 | }
|
1678 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2484 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2485 + | /* RustType.kt:516 */
|
1679 2486 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1680 2488 | pub struct Builder {
|
2489 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1681 2490 | pub(crate) contents: ::std::option::Option<crate::model::MyUnion>,
|
2491 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1682 2492 | }
|
2493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1683 2494 | impl Builder {
|
1684 - | /// A union with a representative set of types for members.
|
2495 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */A union with a representative set of types for members.
|
2496 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1685 2497 | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
1686 - | self.contents = input;
|
2498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2499 + | self.contents =
|
2500 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1687 2502 | self
|
2503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1688 2504 | }
|
1689 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2505 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1690 2507 | pub fn build(self) -> crate::input::JsonUnionsInput {
|
1691 2508 | self.build_enforcing_required_and_enum_traits()
|
1692 2509 | }
|
2510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1693 2511 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::JsonUnionsInput {
|
2512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1694 2513 | crate::input::JsonUnionsInput {
|
2514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1695 2515 | contents: self.contents,
|
2516 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1696 2517 | }
|
2518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1697 2519 | }
|
2520 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1698 2521 | }
|
2522 + |
|
2523 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1699 2524 | }
|
1700 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2525 + | /// /* ServerBuilderGenerator.kt:171 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1701 2526 | pub(crate) mod greeting_with_errors_input_internal {
|
1702 2527 |
|
2528 + | /* ServerBuilderGenerator.kt:461 */
|
1703 2529 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1704 2530 | fn from(builder: Builder) -> Self {
|
1705 2531 | builder.build()
|
1706 2532 | }
|
1707 2533 | }
|
1708 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2534 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2535 + | /* RustType.kt:516 */
|
1709 2536 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2537 + | /* ServerBuilderGenerator.kt:211 */
|
1710 2538 | pub(crate) struct Builder {
|
2539 + | /* ServerBuilderGenerator.kt:308 */
|
1711 2540 | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
2541 + | /* ServerBuilderGenerator.kt:211 */
|
1712 2542 | }
|
2543 + | /* ServerBuilderGenerator.kt:215 */
|
1713 2544 | impl Builder {
|
2545 + | /* ServerBuilderGenerator.kt:426 */
|
1714 2546 | #[allow(missing_docs)] // documentation missing in model
|
2547 + | /* ServerBuilderGenerator.kt:428 */
|
1715 2548 | pub(crate) fn set_greeting(
|
1716 2549 | mut self,
|
1717 2550 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1718 2551 | ) -> Self {
|
2552 + | /* ServerBuilderGenerator.kt:429 */
|
1719 2553 | self.greeting = input.map(|v| v.into());
|
1720 2554 | self
|
2555 + | /* ServerBuilderGenerator.kt:428 */
|
1721 2556 | }
|
1722 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2557 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2558 + | /* ServerBuilderGenerator.kt:271 */
|
1723 2559 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1724 2560 | self.build_enforcing_all_constraints()
|
1725 2561 | }
|
2562 + | /* ServerBuilderGenerator.kt:283 */
|
1726 2563 | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
2564 + | /* ServerBuilderGenerator.kt:542 */
|
1727 2565 | crate::input::GreetingWithErrorsInput {
|
2566 + | /* ServerBuilderGenerator.kt:546 */
|
1728 2567 | greeting: self.greeting,
|
2568 + | /* ServerBuilderGenerator.kt:542 */
|
1729 2569 | }
|
2570 + | /* ServerBuilderGenerator.kt:283 */
|
1730 2571 | }
|
2572 + | /* ServerBuilderGenerator.kt:215 */
|
1731 2573 | }
|
2574 + |
|
2575 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1732 2576 | }
|
1733 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2577 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
1734 2578 | pub mod greeting_with_errors_input {
|
1735 2579 |
|
2580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1736 2581 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
1737 2582 | fn from(builder: Builder) -> Self {
|
1738 2583 | builder.build()
|
1739 2584 | }
|
1740 2585 | }
|
1741 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2586 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2587 + | /* RustType.kt:516 */
|
1742 2588 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2589 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1743 2590 | pub struct Builder {
|
2591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1744 2592 | pub(crate) greeting: ::std::option::Option<::std::string::String>,
|
2593 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1745 2594 | }
|
2595 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1746 2596 | impl Builder {
|
2597 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1747 2598 | #[allow(missing_docs)] // documentation missing in model
|
2599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1748 2600 | pub fn greeting(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1749 - | self.greeting = input;
|
2601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2602 + | self.greeting =
|
2603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1750 2605 | self
|
2606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1751 2607 | }
|
1752 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2608 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
2609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1753 2610 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
1754 2611 | self.build_enforcing_required_and_enum_traits()
|
1755 2612 | }
|
2613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1756 2614 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::GreetingWithErrorsInput {
|
2615 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1757 2616 | crate::input::GreetingWithErrorsInput {
|
2617 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1758 2618 | greeting: self.greeting,
|
2619 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1759 2620 | }
|
2621 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1760 2622 | }
|
2623 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1761 2624 | }
|
2625 + |
|
2626 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1762 2627 | }
|
1763 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2628 + | /// /* ServerBuilderGenerator.kt:171 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1764 2629 | pub(crate) mod simple_scalar_properties_input_internal {
|
1765 2630 |
|
2631 + | /* ServerBuilderGenerator.kt:461 */
|
1766 2632 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
1767 2633 | fn from(builder: Builder) -> Self {
|
1768 2634 | builder.build()
|
1769 2635 | }
|
1770 2636 | }
|
1771 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2637 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2638 + | /* RustType.kt:516 */
|
1772 2639 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2640 + | /* ServerBuilderGenerator.kt:211 */
|
1773 2641 | pub(crate) struct Builder {
|
2642 + | /* ServerBuilderGenerator.kt:308 */
|
1774 2643 | pub(crate) float_value: ::std::option::Option<f32>,
|
2644 + | /* ServerBuilderGenerator.kt:308 */
|
1775 2645 | pub(crate) double_value: ::std::option::Option<f64>,
|
2646 + | /* ServerBuilderGenerator.kt:211 */
|
1776 2647 | }
|
2648 + | /* ServerBuilderGenerator.kt:215 */
|
1777 2649 | impl Builder {
|
2650 + | /* ServerBuilderGenerator.kt:426 */
|
1778 2651 | #[allow(missing_docs)] // documentation missing in model
|
2652 + | /* ServerBuilderGenerator.kt:428 */
|
1779 2653 | pub(crate) fn set_float_value(
|
1780 2654 | mut self,
|
1781 2655 | input: Option<impl ::std::convert::Into<f32>>,
|
1782 2656 | ) -> Self {
|
2657 + | /* ServerBuilderGenerator.kt:429 */
|
1783 2658 | self.float_value = input.map(|v| v.into());
|
1784 2659 | self
|
2660 + | /* ServerBuilderGenerator.kt:428 */
|
1785 2661 | }
|
2662 + | /* ServerBuilderGenerator.kt:426 */
|
1786 2663 | #[allow(missing_docs)] // documentation missing in model
|
2664 + | /* ServerBuilderGenerator.kt:428 */
|
1787 2665 | pub(crate) fn set_double_value(
|
1788 2666 | mut self,
|
1789 2667 | input: Option<impl ::std::convert::Into<f64>>,
|
1790 2668 | ) -> Self {
|
2669 + | /* ServerBuilderGenerator.kt:429 */
|
1791 2670 | self.double_value = input.map(|v| v.into());
|
1792 2671 | self
|
2672 + | /* ServerBuilderGenerator.kt:428 */
|
1793 2673 | }
|
1794 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2674 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2675 + | /* ServerBuilderGenerator.kt:271 */
|
1795 2676 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
1796 2677 | self.build_enforcing_all_constraints()
|
1797 2678 | }
|
2679 + | /* ServerBuilderGenerator.kt:283 */
|
1798 2680 | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
2681 + | /* ServerBuilderGenerator.kt:542 */
|
1799 2682 | crate::input::SimpleScalarPropertiesInput {
|
2683 + | /* ServerBuilderGenerator.kt:546 */
|
1800 2684 | float_value: self.float_value,
|
2685 + | /* ServerBuilderGenerator.kt:546 */
|
1801 2686 | double_value: self.double_value,
|
2687 + | /* ServerBuilderGenerator.kt:542 */
|
1802 2688 | }
|
2689 + | /* ServerBuilderGenerator.kt:283 */
|
1803 2690 | }
|
2691 + | /* ServerBuilderGenerator.kt:215 */
|
1804 2692 | }
|
2693 + |
|
2694 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1805 2695 | }
|
1806 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2696 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
1807 2697 | pub mod simple_scalar_properties_input {
|
1808 2698 |
|
2699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1809 2700 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
1810 2701 | fn from(builder: Builder) -> Self {
|
1811 2702 | builder.build()
|
1812 2703 | }
|
1813 2704 | }
|
1814 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2705 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2706 + | /* RustType.kt:516 */
|
1815 2707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1816 2709 | pub struct Builder {
|
2710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1817 2711 | pub(crate) float_value: ::std::option::Option<f32>,
|
2712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1818 2713 | pub(crate) double_value: ::std::option::Option<f64>,
|
2714 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1819 2715 | }
|
2716 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1820 2717 | impl Builder {
|
2718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1821 2719 | #[allow(missing_docs)] // documentation missing in model
|
2720 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1822 2721 | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
1823 - | self.float_value = input;
|
2722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2723 + | self.float_value =
|
2724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2725 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1824 2726 | self
|
2727 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1825 2728 | }
|
2729 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1826 2730 | #[allow(missing_docs)] // documentation missing in model
|
2731 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1827 2732 | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
1828 - | self.double_value = input;
|
2733 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2734 + | self.double_value =
|
2735 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2736 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1829 2737 | self
|
2738 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1830 2739 | }
|
1831 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2740 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
2741 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1832 2742 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
1833 2743 | self.build_enforcing_required_and_enum_traits()
|
1834 2744 | }
|
2745 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1835 2746 | fn build_enforcing_required_and_enum_traits(
|
1836 2747 | self,
|
1837 2748 | ) -> crate::input::SimpleScalarPropertiesInput {
|
2749 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1838 2750 | crate::input::SimpleScalarPropertiesInput {
|
2751 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1839 2752 | float_value: self.float_value,
|
2753 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1840 2754 | double_value: self.double_value,
|
2755 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1841 2756 | }
|
2757 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1842 2758 | }
|
2759 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1843 2760 | }
|
2761 + |
|
2762 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1844 2763 | }
|
1845 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2764 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
1846 2765 | pub(crate) mod empty_input_and_empty_output_input_internal {
|
1847 2766 |
|
2767 + | /* ServerBuilderGenerator.kt:461 */
|
1848 2768 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
1849 2769 | fn from(builder: Builder) -> Self {
|
1850 2770 | builder.build()
|
1851 2771 | }
|
1852 2772 | }
|
1853 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2773 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2774 + | /* RustType.kt:516 */
|
1854 2775 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1855 - | pub(crate) struct Builder {}
|
2776 + | /* ServerBuilderGenerator.kt:211 */
|
2777 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
2778 + | /* ServerBuilderGenerator.kt:215 */
|
1856 2779 | impl Builder {
|
1857 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2780 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2781 + | /* ServerBuilderGenerator.kt:271 */
|
1858 2782 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
1859 2783 | self.build_enforcing_all_constraints()
|
1860 2784 | }
|
2785 + | /* ServerBuilderGenerator.kt:283 */
|
1861 2786 | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
1862 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
2787 + | /* ServerBuilderGenerator.kt:542 */
|
2788 + | crate::input::EmptyInputAndEmptyOutputInput {
|
2789 + | /* ServerBuilderGenerator.kt:542 */}
|
2790 + | /* ServerBuilderGenerator.kt:283 */
|
1863 2791 | }
|
2792 + | /* ServerBuilderGenerator.kt:215 */
|
1864 2793 | }
|
2794 + |
|
2795 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1865 2796 | }
|
1866 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2797 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
1867 2798 | pub mod empty_input_and_empty_output_input {
|
1868 2799 |
|
2800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1869 2801 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
1870 2802 | fn from(builder: Builder) -> Self {
|
1871 2803 | builder.build()
|
1872 2804 | }
|
1873 2805 | }
|
1874 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2806 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2807 + | /* RustType.kt:516 */
|
1875 2808 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1876 - | pub struct Builder {}
|
2809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2810 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
2811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1877 2812 | impl Builder {
|
1878 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2813 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
2814 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1879 2815 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
1880 2816 | self.build_enforcing_required_and_enum_traits()
|
1881 2817 | }
|
2818 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1882 2819 | fn build_enforcing_required_and_enum_traits(
|
1883 2820 | self,
|
1884 2821 | ) -> crate::input::EmptyInputAndEmptyOutputInput {
|
1885 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
2822 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2823 + | crate::input::EmptyInputAndEmptyOutputInput {
|
2824 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
2825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1886 2826 | }
|
2827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1887 2828 | }
|
2829 + |
|
2830 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1888 2831 | }
|
1889 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2832 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
1890 2833 | pub(crate) mod no_input_and_output_input_internal {
|
1891 2834 |
|
2835 + | /* ServerBuilderGenerator.kt:461 */
|
1892 2836 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
1893 2837 | fn from(builder: Builder) -> Self {
|
1894 2838 | builder.build()
|
1895 2839 | }
|
1896 2840 | }
|
1897 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2841 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2842 + | /* RustType.kt:516 */
|
1898 2843 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1899 - | pub(crate) struct Builder {}
|
2844 + | /* ServerBuilderGenerator.kt:211 */
|
2845 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
2846 + | /* ServerBuilderGenerator.kt:215 */
|
1900 2847 | impl Builder {
|
1901 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2848 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2849 + | /* ServerBuilderGenerator.kt:271 */
|
1902 2850 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
1903 2851 | self.build_enforcing_all_constraints()
|
1904 2852 | }
|
2853 + | /* ServerBuilderGenerator.kt:283 */
|
1905 2854 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
1906 - | crate::input::NoInputAndOutputInput {}
|
2855 + | /* ServerBuilderGenerator.kt:542 */
|
2856 + | crate::input::NoInputAndOutputInput {
|
2857 + | /* ServerBuilderGenerator.kt:542 */}
|
2858 + | /* ServerBuilderGenerator.kt:283 */
|
1907 2859 | }
|
2860 + | /* ServerBuilderGenerator.kt:215 */
|
1908 2861 | }
|
2862 + |
|
2863 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1909 2864 | }
|
1910 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2865 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
1911 2866 | pub mod no_input_and_output_input {
|
1912 2867 |
|
2868 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1913 2869 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
1914 2870 | fn from(builder: Builder) -> Self {
|
1915 2871 | builder.build()
|
1916 2872 | }
|
1917 2873 | }
|
1918 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2874 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2875 + | /* RustType.kt:516 */
|
1919 2876 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1920 - | pub struct Builder {}
|
2877 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2878 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
2879 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1921 2880 | impl Builder {
|
1922 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2881 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
2882 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1923 2883 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
1924 2884 | self.build_enforcing_required_and_enum_traits()
|
1925 2885 | }
|
2886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1926 2887 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndOutputInput {
|
1927 - | crate::input::NoInputAndOutputInput {}
|
2888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2889 + | crate::input::NoInputAndOutputInput {
|
2890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
2891 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1928 2892 | }
|
2893 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1929 2894 | }
|
2895 + |
|
2896 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1930 2897 | }
|
1931 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2898 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
1932 2899 | pub(crate) mod no_input_and_no_output_input_internal {
|
1933 2900 |
|
2901 + | /* ServerBuilderGenerator.kt:461 */
|
1934 2902 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
1935 2903 | fn from(builder: Builder) -> Self {
|
1936 2904 | builder.build()
|
1937 2905 | }
|
1938 2906 | }
|
1939 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2907 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2908 + | /* RustType.kt:516 */
|
1940 2909 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1941 - | pub(crate) struct Builder {}
|
2910 + | /* ServerBuilderGenerator.kt:211 */
|
2911 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
2912 + | /* ServerBuilderGenerator.kt:215 */
|
1942 2913 | impl Builder {
|
1943 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2914 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2915 + | /* ServerBuilderGenerator.kt:271 */
|
1944 2916 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
1945 2917 | self.build_enforcing_all_constraints()
|
1946 2918 | }
|
2919 + | /* ServerBuilderGenerator.kt:283 */
|
1947 2920 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
1948 - | crate::input::NoInputAndNoOutputInput {}
|
2921 + | /* ServerBuilderGenerator.kt:542 */
|
2922 + | crate::input::NoInputAndNoOutputInput {
|
2923 + | /* ServerBuilderGenerator.kt:542 */}
|
2924 + | /* ServerBuilderGenerator.kt:283 */
|
1949 2925 | }
|
2926 + | /* ServerBuilderGenerator.kt:215 */
|
1950 2927 | }
|
2928 + |
|
2929 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1951 2930 | }
|
1952 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2931 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
1953 2932 | pub mod no_input_and_no_output_input {
|
1954 2933 |
|
2934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1955 2935 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
1956 2936 | fn from(builder: Builder) -> Self {
|
1957 2937 | builder.build()
|
1958 2938 | }
|
1959 2939 | }
|
1960 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2940 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2941 + | /* RustType.kt:516 */
|
1961 2942 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1962 - | pub struct Builder {}
|
2943 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2944 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
2945 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1963 2946 | impl Builder {
|
1964 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2947 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
2948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1965 2949 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
1966 2950 | self.build_enforcing_required_and_enum_traits()
|
1967 2951 | }
|
2952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1968 2953 | fn build_enforcing_required_and_enum_traits(self) -> crate::input::NoInputAndNoOutputInput {
|
1969 - | crate::input::NoInputAndNoOutputInput {}
|
2954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2955 + | crate::input::NoInputAndNoOutputInput {
|
2956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
2957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1970 2958 | }
|
2959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1971 2960 | }
|
2961 + |
|
2962 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1972 2963 | }
|