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