1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[derive(
|
4 6 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 7 | )]
|
6 - | pub struct RpcEchoInput {
|
8 + | pub /* StructureGenerator.kt:201 */ struct RpcEchoInput {
|
9 + | /* StructureGenerator.kt:231 */
|
7 10 | #[allow(missing_docs)] // documentation missing in model
|
8 11 | pub r#as: ::std::option::Option<i32>,
|
12 + | /* StructureGenerator.kt:231 */
|
9 13 | #[allow(missing_docs)] // documentation missing in model
|
10 14 | pub r#async: ::std::option::Option<bool>,
|
15 + | /* StructureGenerator.kt:231 */
|
11 16 | #[allow(missing_docs)] // documentation missing in model
|
12 17 | pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
18 + | /* StructureGenerator.kt:231 */
|
13 19 | #[allow(missing_docs)] // documentation missing in model
|
14 20 | pub self_: ::std::option::Option<bool>,
|
21 + | /* StructureGenerator.kt:231 */
|
15 22 | #[allow(missing_docs)] // documentation missing in model
|
16 23 | pub crate_: ::std::option::Option<bool>,
|
24 + | /* StructureGenerator.kt:231 */
|
17 25 | #[allow(missing_docs)] // documentation missing in model
|
18 26 | pub super_: ::std::option::Option<bool>,
|
27 + | /* StructureGenerator.kt:231 */
|
19 28 | #[allow(missing_docs)] // documentation missing in model
|
20 29 | pub build_value: ::std::option::Option<::std::string::String>,
|
30 + | /* StructureGenerator.kt:231 */
|
21 31 | #[allow(missing_docs)] // documentation missing in model
|
22 32 | pub default_value: ::std::option::Option<::std::string::String>,
|
33 + | /* StructureGenerator.kt:231 */
|
23 34 | #[allow(missing_docs)] // documentation missing in model
|
24 35 | pub send: ::std::option::Option<::std::string::String>,
|
36 + | /* StructureGenerator.kt:201 */
|
25 37 | }
|
38 + | /* StructureGenerator.kt:135 */
|
26 39 | impl RpcEchoInput {
|
40 + | /* StructureGenerator.kt:231 */
|
27 41 | #[allow(missing_docs)] // documentation missing in model
|
42 + | /* StructureGenerator.kt:166 */
|
28 43 | pub fn r#as(&self) -> ::std::option::Option<i32> {
|
44 + | /* StructureGenerator.kt:168 */
|
29 45 | self.r#as
|
46 + | /* StructureGenerator.kt:166 */
|
30 47 | }
|
48 + | /* StructureGenerator.kt:231 */
|
31 49 | #[allow(missing_docs)] // documentation missing in model
|
50 + | /* StructureGenerator.kt:166 */
|
32 51 | pub fn r#async(&self) -> ::std::option::Option<bool> {
|
52 + | /* StructureGenerator.kt:168 */
|
33 53 | self.r#async
|
54 + | /* StructureGenerator.kt:166 */
|
34 55 | }
|
56 + | /* StructureGenerator.kt:231 */
|
35 57 | #[allow(missing_docs)] // documentation missing in model
|
58 + | /* StructureGenerator.kt:166 */
|
36 59 | pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
|
60 + | /* StructureGenerator.kt:170 */
|
37 61 | self.r#enum.as_ref()
|
62 + | /* StructureGenerator.kt:166 */
|
38 63 | }
|
64 + | /* StructureGenerator.kt:231 */
|
39 65 | #[allow(missing_docs)] // documentation missing in model
|
66 + | /* StructureGenerator.kt:166 */
|
40 67 | pub fn self_(&self) -> ::std::option::Option<bool> {
|
68 + | /* StructureGenerator.kt:168 */
|
41 69 | self.self_
|
70 + | /* StructureGenerator.kt:166 */
|
42 71 | }
|
72 + | /* StructureGenerator.kt:231 */
|
43 73 | #[allow(missing_docs)] // documentation missing in model
|
74 + | /* StructureGenerator.kt:166 */
|
44 75 | pub fn crate_(&self) -> ::std::option::Option<bool> {
|
76 + | /* StructureGenerator.kt:168 */
|
45 77 | self.crate_
|
78 + | /* StructureGenerator.kt:166 */
|
46 79 | }
|
80 + | /* StructureGenerator.kt:231 */
|
47 81 | #[allow(missing_docs)] // documentation missing in model
|
82 + | /* StructureGenerator.kt:166 */
|
48 83 | pub fn super_(&self) -> ::std::option::Option<bool> {
|
84 + | /* StructureGenerator.kt:168 */
|
49 85 | self.super_
|
86 + | /* StructureGenerator.kt:166 */
|
50 87 | }
|
88 + | /* StructureGenerator.kt:231 */
|
51 89 | #[allow(missing_docs)] // documentation missing in model
|
90 + | /* StructureGenerator.kt:166 */
|
52 91 | pub fn build_value(&self) -> ::std::option::Option<&str> {
|
92 + | /* StructureGenerator.kt:169 */
|
53 93 | self.build_value.as_deref()
|
94 + | /* StructureGenerator.kt:166 */
|
54 95 | }
|
96 + | /* StructureGenerator.kt:231 */
|
55 97 | #[allow(missing_docs)] // documentation missing in model
|
98 + | /* StructureGenerator.kt:166 */
|
56 99 | pub fn default_value(&self) -> ::std::option::Option<&str> {
|
100 + | /* StructureGenerator.kt:169 */
|
57 101 | self.default_value.as_deref()
|
102 + | /* StructureGenerator.kt:166 */
|
58 103 | }
|
104 + | /* StructureGenerator.kt:231 */
|
59 105 | #[allow(missing_docs)] // documentation missing in model
|
106 + | /* StructureGenerator.kt:166 */
|
60 107 | pub fn send(&self) -> ::std::option::Option<&str> {
|
108 + | /* StructureGenerator.kt:169 */
|
61 109 | self.send.as_deref()
|
110 + | /* StructureGenerator.kt:166 */
|
62 111 | }
|
112 + | /* StructureGenerator.kt:135 */
|
63 113 | }
|
114 + | /* ServerCodegenVisitor.kt:345 */
|
64 115 | impl RpcEchoInput {
|
65 - | /// Creates a new builder-style object to manufacture [`RpcEchoInput`](crate::input::RpcEchoInput).
|
116 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RpcEchoInput`](crate::input::RpcEchoInput).
|
117 + | /* ServerBuilderGenerator.kt:295 */
|
66 118 | pub fn builder() -> crate::input::rpc_echo_input::Builder {
|
119 + | /* ServerBuilderGenerator.kt:296 */
|
67 120 | crate::input::rpc_echo_input::Builder::default()
|
121 + | /* ServerBuilderGenerator.kt:295 */
|
68 122 | }
|
123 + | /* ServerCodegenVisitor.kt:345 */
|
69 124 | }
|
125 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
70 126 | impl crate::constrained::Constrained for crate::input::RpcEchoInput {
|
71 127 | type Unconstrained = crate::input::rpc_echo_input::Builder;
|
72 128 | }
|
73 129 |
|
130 + | /* StructureGenerator.kt:197 */
|
74 131 | #[allow(missing_docs)] // documentation missing in model
|
132 + | /* RustType.kt:516 */
|
75 133 | #[derive(
|
76 134 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
77 135 | )]
|
78 - | pub struct MatchInput {
|
136 + | pub /* StructureGenerator.kt:201 */ struct MatchInput {
|
137 + | /* StructureGenerator.kt:231 */
|
79 138 | #[allow(missing_docs)] // documentation missing in model
|
80 139 | pub r#as: ::std::option::Option<i32>,
|
140 + | /* StructureGenerator.kt:231 */
|
81 141 | #[allow(missing_docs)] // documentation missing in model
|
82 142 | pub r#async: ::std::option::Option<bool>,
|
143 + | /* StructureGenerator.kt:231 */
|
83 144 | #[allow(missing_docs)] // documentation missing in model
|
84 145 | pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
146 + | /* StructureGenerator.kt:231 */
|
85 147 | #[allow(missing_docs)] // documentation missing in model
|
86 148 | pub self_: ::std::option::Option<bool>,
|
149 + | /* StructureGenerator.kt:231 */
|
87 150 | #[allow(missing_docs)] // documentation missing in model
|
88 151 | pub crate_: ::std::option::Option<bool>,
|
152 + | /* StructureGenerator.kt:231 */
|
89 153 | #[allow(missing_docs)] // documentation missing in model
|
90 154 | pub super_: ::std::option::Option<bool>,
|
155 + | /* StructureGenerator.kt:231 */
|
91 156 | #[allow(missing_docs)] // documentation missing in model
|
92 157 | pub build_value: ::std::option::Option<::std::string::String>,
|
158 + | /* StructureGenerator.kt:231 */
|
93 159 | #[allow(missing_docs)] // documentation missing in model
|
94 160 | pub default_value: ::std::option::Option<::std::string::String>,
|
161 + | /* StructureGenerator.kt:231 */
|
95 162 | #[allow(missing_docs)] // documentation missing in model
|
96 163 | pub send: ::std::option::Option<::std::string::String>,
|
164 + | /* StructureGenerator.kt:201 */
|
97 165 | }
|
166 + | /* StructureGenerator.kt:135 */
|
98 167 | impl MatchInput {
|
168 + | /* StructureGenerator.kt:231 */
|
99 169 | #[allow(missing_docs)] // documentation missing in model
|
170 + | /* StructureGenerator.kt:166 */
|
100 171 | pub fn r#as(&self) -> ::std::option::Option<i32> {
|
172 + | /* StructureGenerator.kt:168 */
|
101 173 | self.r#as
|
174 + | /* StructureGenerator.kt:166 */
|
102 175 | }
|
176 + | /* StructureGenerator.kt:231 */
|
103 177 | #[allow(missing_docs)] // documentation missing in model
|
178 + | /* StructureGenerator.kt:166 */
|
104 179 | pub fn r#async(&self) -> ::std::option::Option<bool> {
|
180 + | /* StructureGenerator.kt:168 */
|
105 181 | self.r#async
|
182 + | /* StructureGenerator.kt:166 */
|
106 183 | }
|
184 + | /* StructureGenerator.kt:231 */
|
107 185 | #[allow(missing_docs)] // documentation missing in model
|
186 + | /* StructureGenerator.kt:166 */
|
108 187 | pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
|
188 + | /* StructureGenerator.kt:170 */
|
109 189 | self.r#enum.as_ref()
|
190 + | /* StructureGenerator.kt:166 */
|
110 191 | }
|
192 + | /* StructureGenerator.kt:231 */
|
111 193 | #[allow(missing_docs)] // documentation missing in model
|
194 + | /* StructureGenerator.kt:166 */
|
112 195 | pub fn self_(&self) -> ::std::option::Option<bool> {
|
196 + | /* StructureGenerator.kt:168 */
|
113 197 | self.self_
|
198 + | /* StructureGenerator.kt:166 */
|
114 199 | }
|
200 + | /* StructureGenerator.kt:231 */
|
115 201 | #[allow(missing_docs)] // documentation missing in model
|
202 + | /* StructureGenerator.kt:166 */
|
116 203 | pub fn crate_(&self) -> ::std::option::Option<bool> {
|
204 + | /* StructureGenerator.kt:168 */
|
117 205 | self.crate_
|
206 + | /* StructureGenerator.kt:166 */
|
118 207 | }
|
208 + | /* StructureGenerator.kt:231 */
|
119 209 | #[allow(missing_docs)] // documentation missing in model
|
210 + | /* StructureGenerator.kt:166 */
|
120 211 | pub fn super_(&self) -> ::std::option::Option<bool> {
|
212 + | /* StructureGenerator.kt:168 */
|
121 213 | self.super_
|
214 + | /* StructureGenerator.kt:166 */
|
122 215 | }
|
216 + | /* StructureGenerator.kt:231 */
|
123 217 | #[allow(missing_docs)] // documentation missing in model
|
218 + | /* StructureGenerator.kt:166 */
|
124 219 | pub fn build_value(&self) -> ::std::option::Option<&str> {
|
220 + | /* StructureGenerator.kt:169 */
|
125 221 | self.build_value.as_deref()
|
222 + | /* StructureGenerator.kt:166 */
|
126 223 | }
|
224 + | /* StructureGenerator.kt:231 */
|
127 225 | #[allow(missing_docs)] // documentation missing in model
|
226 + | /* StructureGenerator.kt:166 */
|
128 227 | pub fn default_value(&self) -> ::std::option::Option<&str> {
|
228 + | /* StructureGenerator.kt:169 */
|
129 229 | self.default_value.as_deref()
|
230 + | /* StructureGenerator.kt:166 */
|
130 231 | }
|
232 + | /* StructureGenerator.kt:231 */
|
131 233 | #[allow(missing_docs)] // documentation missing in model
|
234 + | /* StructureGenerator.kt:166 */
|
132 235 | pub fn send(&self) -> ::std::option::Option<&str> {
|
236 + | /* StructureGenerator.kt:169 */
|
133 237 | self.send.as_deref()
|
238 + | /* StructureGenerator.kt:166 */
|
134 239 | }
|
240 + | /* StructureGenerator.kt:135 */
|
135 241 | }
|
242 + | /* ServerCodegenVisitor.kt:345 */
|
136 243 | impl MatchInput {
|
137 - | /// Creates a new builder-style object to manufacture [`MatchInput`](crate::input::MatchInput).
|
244 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MatchInput`](crate::input::MatchInput).
|
245 + | /* ServerBuilderGenerator.kt:295 */
|
138 246 | pub fn builder() -> crate::input::match_input::Builder {
|
247 + | /* ServerBuilderGenerator.kt:296 */
|
139 248 | crate::input::match_input::Builder::default()
|
249 + | /* ServerBuilderGenerator.kt:295 */
|
140 250 | }
|
251 + | /* ServerCodegenVisitor.kt:345 */
|
141 252 | }
|
253 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
142 254 | impl crate::constrained::Constrained for crate::input::MatchInput {
|
143 255 | type Unconstrained = crate::input::match_input::Builder;
|
144 256 | }
|
145 257 |
|
258 + | /* StructureGenerator.kt:197 */
|
146 259 | #[allow(missing_docs)] // documentation missing in model
|
260 + | /* RustType.kt:516 */
|
147 261 | #[derive(
|
148 262 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
149 263 | )]
|
150 - | pub struct OptionInput {
|
264 + | pub /* StructureGenerator.kt:201 */ struct OptionInput {
|
265 + | /* StructureGenerator.kt:231 */
|
151 266 | #[allow(missing_docs)] // documentation missing in model
|
152 267 | pub pv_member: ::std::option::Option<bool>,
|
268 + | /* StructureGenerator.kt:201 */
|
153 269 | }
|
270 + | /* StructureGenerator.kt:135 */
|
154 271 | impl OptionInput {
|
272 + | /* StructureGenerator.kt:231 */
|
155 273 | #[allow(missing_docs)] // documentation missing in model
|
274 + | /* StructureGenerator.kt:166 */
|
156 275 | pub fn pv_member(&self) -> ::std::option::Option<bool> {
|
276 + | /* StructureGenerator.kt:168 */
|
157 277 | self.pv_member
|
278 + | /* StructureGenerator.kt:166 */
|
158 279 | }
|
280 + | /* StructureGenerator.kt:135 */
|
159 281 | }
|
282 + | /* ServerCodegenVisitor.kt:345 */
|
160 283 | impl OptionInput {
|
161 - | /// Creates a new builder-style object to manufacture [`OptionInput`](crate::input::OptionInput).
|
284 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OptionInput`](crate::input::OptionInput).
|
285 + | /* ServerBuilderGenerator.kt:295 */
|
162 286 | pub fn builder() -> crate::input::option_input::Builder {
|
287 + | /* ServerBuilderGenerator.kt:296 */
|
163 288 | crate::input::option_input::Builder::default()
|
289 + | /* ServerBuilderGenerator.kt:295 */
|
164 290 | }
|
291 + | /* ServerCodegenVisitor.kt:345 */
|
165 292 | }
|
293 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
166 294 | impl crate::constrained::Constrained for crate::input::OptionInput {
|
167 295 | type Unconstrained = crate::input::option_input::Builder;
|
168 296 | }
|
169 297 |
|
298 + | /* StructureGenerator.kt:197 */
|
170 299 | #[allow(missing_docs)] // documentation missing in model
|
300 + | /* RustType.kt:516 */
|
171 301 | #[derive(
|
172 302 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
173 303 | )]
|
174 - | pub struct ResultInput {
|
304 + | pub /* StructureGenerator.kt:201 */ struct ResultInput {
|
305 + | /* StructureGenerator.kt:231 */
|
175 306 | #[allow(missing_docs)] // documentation missing in model
|
176 307 | pub pv_member: ::std::option::Option<bool>,
|
308 + | /* StructureGenerator.kt:201 */
|
177 309 | }
|
310 + | /* StructureGenerator.kt:135 */
|
178 311 | impl ResultInput {
|
312 + | /* StructureGenerator.kt:231 */
|
179 313 | #[allow(missing_docs)] // documentation missing in model
|
314 + | /* StructureGenerator.kt:166 */
|
180 315 | pub fn pv_member(&self) -> ::std::option::Option<bool> {
|
316 + | /* StructureGenerator.kt:168 */
|
181 317 | self.pv_member
|
318 + | /* StructureGenerator.kt:166 */
|
182 319 | }
|
320 + | /* StructureGenerator.kt:135 */
|
183 321 | }
|
322 + | /* ServerCodegenVisitor.kt:345 */
|
184 323 | impl ResultInput {
|
185 - | /// Creates a new builder-style object to manufacture [`ResultInput`](crate::input::ResultInput).
|
324 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResultInput`](crate::input::ResultInput).
|
325 + | /* ServerBuilderGenerator.kt:295 */
|
186 326 | pub fn builder() -> crate::input::result_input::Builder {
|
327 + | /* ServerBuilderGenerator.kt:296 */
|
187 328 | crate::input::result_input::Builder::default()
|
329 + | /* ServerBuilderGenerator.kt:295 */
|
188 330 | }
|
331 + | /* ServerCodegenVisitor.kt:345 */
|
189 332 | }
|
333 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
190 334 | impl crate::constrained::Constrained for crate::input::ResultInput {
|
191 335 | type Unconstrained = crate::input::result_input::Builder;
|
192 336 | }
|
193 337 |
|
338 + | /* StructureGenerator.kt:197 */
|
194 339 | #[allow(missing_docs)] // documentation missing in model
|
340 + | /* RustType.kt:516 */
|
195 341 | #[derive(
|
196 342 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
197 343 | )]
|
198 - | pub struct ErrCollisionsInput {}
|
344 + | pub /* StructureGenerator.kt:201 */ struct ErrCollisionsInput {/* StructureGenerator.kt:201 */}
|
345 + | /* ServerCodegenVisitor.kt:345 */
|
199 346 | impl ErrCollisionsInput {
|
200 - | /// Creates a new builder-style object to manufacture [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
347 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
348 + | /* ServerBuilderGenerator.kt:295 */
|
201 349 | pub fn builder() -> crate::input::err_collisions_input::Builder {
|
350 + | /* ServerBuilderGenerator.kt:296 */
|
202 351 | crate::input::err_collisions_input::Builder::default()
|
352 + | /* ServerBuilderGenerator.kt:295 */
|
203 353 | }
|
354 + | /* ServerCodegenVisitor.kt:345 */
|
204 355 | }
|
356 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
205 357 | impl crate::constrained::Constrained for crate::input::ErrCollisionsInput {
|
206 358 | type Unconstrained = crate::input::err_collisions_input::Builder;
|
207 359 | }
|
208 360 |
|
361 + | /* StructureGenerator.kt:197 */
|
209 362 | #[allow(missing_docs)] // documentation missing in model
|
363 + | /* RustType.kt:516 */
|
210 364 | #[derive(
|
211 365 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
212 366 | )]
|
213 - | pub struct StructureNamePunningInput {
|
367 + | pub /* StructureGenerator.kt:201 */ struct StructureNamePunningInput {
|
368 + | /* StructureGenerator.kt:231 */
|
214 369 | #[allow(missing_docs)] // documentation missing in model
|
215 370 | pub regular_string: ::std::option::Option<::std::string::String>,
|
371 + | /* StructureGenerator.kt:231 */
|
216 372 | #[allow(missing_docs)] // documentation missing in model
|
217 373 | pub punned_vec: ::std::option::Option<crate::model::Vec>,
|
374 + | /* StructureGenerator.kt:201 */
|
218 375 | }
|
376 + | /* StructureGenerator.kt:135 */
|
219 377 | impl StructureNamePunningInput {
|
378 + | /* StructureGenerator.kt:231 */
|
220 379 | #[allow(missing_docs)] // documentation missing in model
|
380 + | /* StructureGenerator.kt:166 */
|
221 381 | pub fn regular_string(&self) -> ::std::option::Option<&str> {
|
382 + | /* StructureGenerator.kt:169 */
|
222 383 | self.regular_string.as_deref()
|
384 + | /* StructureGenerator.kt:166 */
|
223 385 | }
|
386 + | /* StructureGenerator.kt:231 */
|
224 387 | #[allow(missing_docs)] // documentation missing in model
|
388 + | /* StructureGenerator.kt:166 */
|
225 389 | pub fn punned_vec(&self) -> ::std::option::Option<&crate::model::Vec> {
|
390 + | /* StructureGenerator.kt:170 */
|
226 391 | self.punned_vec.as_ref()
|
392 + | /* StructureGenerator.kt:166 */
|
227 393 | }
|
394 + | /* StructureGenerator.kt:135 */
|
228 395 | }
|
396 + | /* ServerCodegenVisitor.kt:345 */
|
229 397 | impl StructureNamePunningInput {
|
230 - | /// Creates a new builder-style object to manufacture [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
398 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
399 + | /* ServerBuilderGenerator.kt:295 */
|
231 400 | pub fn builder() -> crate::input::structure_name_punning_input::Builder {
|
401 + | /* ServerBuilderGenerator.kt:296 */
|
232 402 | crate::input::structure_name_punning_input::Builder::default()
|
403 + | /* ServerBuilderGenerator.kt:295 */
|
233 404 | }
|
405 + | /* ServerCodegenVisitor.kt:345 */
|
234 406 | }
|
407 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
235 408 | impl crate::constrained::Constrained for crate::input::StructureNamePunningInput {
|
236 409 | type Unconstrained = crate::input::structure_name_punning_input::Builder;
|
237 410 | }
|
238 411 |
|
412 + | /* StructureGenerator.kt:197 */
|
239 413 | #[allow(missing_docs)] // documentation missing in model
|
414 + | /* RustType.kt:516 */
|
240 415 | #[derive(
|
241 416 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
242 417 | )]
|
243 - | pub struct ReservedWordsAsMembersInput {
|
418 + | pub /* StructureGenerator.kt:201 */ struct ReservedWordsAsMembersInput {
|
419 + | /* StructureGenerator.kt:231 */
|
244 420 | #[allow(missing_docs)] // documentation missing in model
|
245 421 | pub r#as: ::std::option::Option<i32>,
|
422 + | /* StructureGenerator.kt:231 */
|
246 423 | #[allow(missing_docs)] // documentation missing in model
|
247 424 | pub r#async: ::std::option::Option<bool>,
|
425 + | /* StructureGenerator.kt:231 */
|
248 426 | #[allow(missing_docs)] // documentation missing in model
|
249 427 | pub r#enum: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
428 + | /* StructureGenerator.kt:231 */
|
250 429 | #[allow(missing_docs)] // documentation missing in model
|
251 430 | pub self_: ::std::option::Option<bool>,
|
431 + | /* StructureGenerator.kt:231 */
|
252 432 | #[allow(missing_docs)] // documentation missing in model
|
253 433 | pub crate_: ::std::option::Option<bool>,
|
434 + | /* StructureGenerator.kt:231 */
|
254 435 | #[allow(missing_docs)] // documentation missing in model
|
255 436 | pub super_: ::std::option::Option<bool>,
|
437 + | /* StructureGenerator.kt:231 */
|
256 438 | #[allow(missing_docs)] // documentation missing in model
|
257 439 | pub build_value: ::std::option::Option<::std::string::String>,
|
440 + | /* StructureGenerator.kt:231 */
|
258 441 | #[allow(missing_docs)] // documentation missing in model
|
259 442 | pub default_value: ::std::option::Option<::std::string::String>,
|
443 + | /* StructureGenerator.kt:231 */
|
260 444 | #[allow(missing_docs)] // documentation missing in model
|
261 445 | pub send: ::std::option::Option<::std::string::String>,
|
446 + | /* StructureGenerator.kt:201 */
|
262 447 | }
|
448 + | /* StructureGenerator.kt:135 */
|
263 449 | impl ReservedWordsAsMembersInput {
|
450 + | /* StructureGenerator.kt:231 */
|
264 451 | #[allow(missing_docs)] // documentation missing in model
|
452 + | /* StructureGenerator.kt:166 */
|
265 453 | pub fn r#as(&self) -> ::std::option::Option<i32> {
|
454 + | /* StructureGenerator.kt:168 */
|
266 455 | self.r#as
|
456 + | /* StructureGenerator.kt:166 */
|
267 457 | }
|
458 + | /* StructureGenerator.kt:231 */
|
268 459 | #[allow(missing_docs)] // documentation missing in model
|
460 + | /* StructureGenerator.kt:166 */
|
269 461 | pub fn r#async(&self) -> ::std::option::Option<bool> {
|
462 + | /* StructureGenerator.kt:168 */
|
270 463 | self.r#async
|
464 + | /* StructureGenerator.kt:166 */
|
271 465 | }
|
466 + | /* StructureGenerator.kt:231 */
|
272 467 | #[allow(missing_docs)] // documentation missing in model
|
468 + | /* StructureGenerator.kt:166 */
|
273 469 | pub fn r#enum(&self) -> ::std::option::Option<&crate::model::UnknownVariantCollidingEnum> {
|
470 + | /* StructureGenerator.kt:170 */
|
274 471 | self.r#enum.as_ref()
|
472 + | /* StructureGenerator.kt:166 */
|
275 473 | }
|
474 + | /* StructureGenerator.kt:231 */
|
276 475 | #[allow(missing_docs)] // documentation missing in model
|
476 + | /* StructureGenerator.kt:166 */
|
277 477 | pub fn self_(&self) -> ::std::option::Option<bool> {
|
478 + | /* StructureGenerator.kt:168 */
|
278 479 | self.self_
|
480 + | /* StructureGenerator.kt:166 */
|
279 481 | }
|
482 + | /* StructureGenerator.kt:231 */
|
280 483 | #[allow(missing_docs)] // documentation missing in model
|
484 + | /* StructureGenerator.kt:166 */
|
281 485 | pub fn crate_(&self) -> ::std::option::Option<bool> {
|
486 + | /* StructureGenerator.kt:168 */
|
282 487 | self.crate_
|
488 + | /* StructureGenerator.kt:166 */
|
283 489 | }
|
490 + | /* StructureGenerator.kt:231 */
|
284 491 | #[allow(missing_docs)] // documentation missing in model
|
492 + | /* StructureGenerator.kt:166 */
|
285 493 | pub fn super_(&self) -> ::std::option::Option<bool> {
|
494 + | /* StructureGenerator.kt:168 */
|
286 495 | self.super_
|
496 + | /* StructureGenerator.kt:166 */
|
287 497 | }
|
498 + | /* StructureGenerator.kt:231 */
|
288 499 | #[allow(missing_docs)] // documentation missing in model
|
500 + | /* StructureGenerator.kt:166 */
|
289 501 | pub fn build_value(&self) -> ::std::option::Option<&str> {
|
502 + | /* StructureGenerator.kt:169 */
|
290 503 | self.build_value.as_deref()
|
504 + | /* StructureGenerator.kt:166 */
|
291 505 | }
|
506 + | /* StructureGenerator.kt:231 */
|
292 507 | #[allow(missing_docs)] // documentation missing in model
|
508 + | /* StructureGenerator.kt:166 */
|
293 509 | pub fn default_value(&self) -> ::std::option::Option<&str> {
|
510 + | /* StructureGenerator.kt:169 */
|
294 511 | self.default_value.as_deref()
|
512 + | /* StructureGenerator.kt:166 */
|
295 513 | }
|
514 + | /* StructureGenerator.kt:231 */
|
296 515 | #[allow(missing_docs)] // documentation missing in model
|
516 + | /* StructureGenerator.kt:166 */
|
297 517 | pub fn send(&self) -> ::std::option::Option<&str> {
|
518 + | /* StructureGenerator.kt:169 */
|
298 519 | self.send.as_deref()
|
520 + | /* StructureGenerator.kt:166 */
|
299 521 | }
|
522 + | /* StructureGenerator.kt:135 */
|
300 523 | }
|
524 + | /* ServerCodegenVisitor.kt:345 */
|
301 525 | impl ReservedWordsAsMembersInput {
|
302 - | /// Creates a new builder-style object to manufacture [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
526 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
527 + | /* ServerBuilderGenerator.kt:295 */
|
303 528 | pub fn builder() -> crate::input::reserved_words_as_members_input::Builder {
|
529 + | /* ServerBuilderGenerator.kt:296 */
|
304 530 | crate::input::reserved_words_as_members_input::Builder::default()
|
531 + | /* ServerBuilderGenerator.kt:295 */
|
305 532 | }
|
533 + | /* ServerCodegenVisitor.kt:345 */
|
306 534 | }
|
535 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
307 536 | impl crate::constrained::Constrained for crate::input::ReservedWordsAsMembersInput {
|
308 537 | type Unconstrained = crate::input::reserved_words_as_members_input::Builder;
|
309 538 | }
|
310 - | /// See [`RpcEchoInput`](crate::input::RpcEchoInput).
|
539 + | /// /* ServerBuilderGenerator.kt:171 */See [`RpcEchoInput`](crate::input::RpcEchoInput).
|
311 540 | pub mod rpc_echo_input {
|
312 541 |
|
542 + | /* RustType.kt:516 */
|
313 543 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
314 - | /// Holds one variant for each of the ways the builder can fail.
|
544 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
545 + | /* RustType.kt:516 */
|
315 546 | #[non_exhaustive]
|
547 + | /* ServerBuilderConstraintViolations.kt:75 */
|
316 548 | #[allow(clippy::enum_variant_names)]
|
317 549 | pub enum ConstraintViolation {
|
318 - | /// Constraint violation occurred building member `r#enum` when building `RpcEchoInput`.
|
550 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `RpcEchoInput`.
|
551 + | /* RustType.kt:516 */
|
319 552 | #[doc(hidden)]
|
553 + | /* ServerBuilderConstraintViolations.kt:164 */
|
320 554 | Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
|
555 + | /* ServerBuilderConstraintViolations.kt:75 */
|
321 556 | }
|
557 + | /* ServerBuilderConstraintViolations.kt:117 */
|
322 558 | impl ::std::fmt::Display for ConstraintViolation {
|
559 + | /* ServerBuilderConstraintViolations.kt:118 */
|
323 560 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
561 + | /* ServerBuilderConstraintViolations.kt:119 */
|
324 562 | match self {
|
325 - | ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `RpcEchoInput`"),
|
326 - | }
|
563 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `RpcEchoInput`"),
|
564 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
565 + | /* ServerBuilderConstraintViolations.kt:118 */
|
327 566 | }
|
567 + | /* ServerBuilderConstraintViolations.kt:117 */
|
328 568 | }
|
569 + | /* ServerBuilderConstraintViolations.kt:84 */
|
329 570 | impl ::std::error::Error for ConstraintViolation {}
|
571 + | /* ServerBuilderConstraintViolations.kt:171 */
|
330 572 | impl ConstraintViolation {
|
331 573 | pub(crate) fn as_validation_exception_field(
|
332 574 | self,
|
333 575 | path: ::std::string::String,
|
334 576 | ) -> crate::model::ValidationExceptionField {
|
335 577 | match self {
|
336 578 | ConstraintViolation::Enum(inner) => {
|
337 579 | inner.as_validation_exception_field(path + "/enum")
|
338 580 | }
|
339 581 | }
|
340 582 | }
|
341 583 | }
|
584 + | /* ServerBuilderGenerator.kt:234 */
|
342 585 | impl ::std::convert::From<ConstraintViolation>
|
343 586 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
344 587 | {
|
345 588 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
346 589 | let first_validation_exception_field =
|
347 590 | constraint_violation.as_validation_exception_field("".to_owned());
|
348 591 | let validation_exception = crate::error::ValidationException {
|
349 592 | message: format!(
|
350 593 | "1 validation error detected. {}",
|
351 594 | &first_validation_exception_field.message
|
352 595 | ),
|
353 596 | field_list: Some(vec![first_validation_exception_field]),
|
354 597 | };
|
355 598 | Self::ConstraintViolation(
|
356 599 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
357 600 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
358 601 | )
|
359 602 | }
|
360 603 | }
|
604 + | /* ServerBuilderGenerator.kt:244 */
|
361 605 | impl ::std::convert::From<Builder>
|
362 606 | for crate::constrained::MaybeConstrained<crate::input::RpcEchoInput>
|
363 607 | {
|
364 608 | fn from(builder: Builder) -> Self {
|
365 609 | Self::Unconstrained(builder)
|
366 610 | }
|
367 611 | }
|
612 + | /* ServerBuilderGenerator.kt:446 */
|
368 613 | impl ::std::convert::TryFrom<Builder> for crate::input::RpcEchoInput {
|
369 614 | type Error = ConstraintViolation;
|
370 615 |
|
371 616 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
372 617 | builder.build()
|
373 618 | }
|
374 619 | }
|
375 - | /// A builder for [`RpcEchoInput`](crate::input::RpcEchoInput).
|
620 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RpcEchoInput`](crate::input::RpcEchoInput).
|
621 + | /* RustType.kt:516 */
|
376 622 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
623 + | /* ServerBuilderGenerator.kt:211 */
|
377 624 | pub struct Builder {
|
378 - | pub(crate) r#as: ::std::option::Option<i32>,
|
379 - | pub(crate) r#async: ::std::option::Option<bool>,
|
625 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
|
626 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
|
627 + | /* ServerBuilderGenerator.kt:308 */
|
380 628 | pub(crate) r#enum: ::std::option::Option<
|
381 629 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
382 630 | >,
|
383 - | pub(crate) self_: ::std::option::Option<bool>,
|
384 - | pub(crate) crate_: ::std::option::Option<bool>,
|
385 - | pub(crate) super_: ::std::option::Option<bool>,
|
631 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
|
632 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
|
633 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
|
634 + | /* ServerBuilderGenerator.kt:308 */
|
386 635 | pub(crate) build_value: ::std::option::Option<::std::string::String>,
|
636 + | /* ServerBuilderGenerator.kt:308 */
|
387 637 | pub(crate) default_value: ::std::option::Option<::std::string::String>,
|
638 + | /* ServerBuilderGenerator.kt:308 */
|
388 639 | pub(crate) send: ::std::option::Option<::std::string::String>,
|
640 + | /* ServerBuilderGenerator.kt:211 */
|
389 641 | }
|
642 + | /* ServerBuilderGenerator.kt:215 */
|
390 643 | impl Builder {
|
644 + | /* ServerBuilderGenerator.kt:331 */
|
391 645 | #[allow(missing_docs)] // documentation missing in model
|
646 + | /* ServerBuilderGenerator.kt:343 */
|
392 647 | pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
|
393 - | self.r#as = input;
|
648 + | /* ServerBuilderGenerator.kt:344 */
|
649 + | self.r#as =
|
650 + | /* ServerBuilderGenerator.kt:376 */input
|
651 + | /* ServerBuilderGenerator.kt:344 */;
|
394 652 | self
|
653 + | /* ServerBuilderGenerator.kt:343 */
|
395 654 | }
|
655 + | /* ServerBuilderGenerator.kt:426 */
|
396 656 | #[allow(missing_docs)] // documentation missing in model
|
657 + | /* ServerBuilderGenerator.kt:428 */
|
397 658 | pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
659 + | /* ServerBuilderGenerator.kt:429 */
|
398 660 | self.r#as = input.map(|v| v.into());
|
399 661 | self
|
662 + | /* ServerBuilderGenerator.kt:428 */
|
400 663 | }
|
664 + | /* ServerBuilderGenerator.kt:331 */
|
401 665 | #[allow(missing_docs)] // documentation missing in model
|
666 + | /* ServerBuilderGenerator.kt:343 */
|
402 667 | pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
|
403 - | self.r#async = input;
|
668 + | /* ServerBuilderGenerator.kt:344 */
|
669 + | self.r#async =
|
670 + | /* ServerBuilderGenerator.kt:376 */input
|
671 + | /* ServerBuilderGenerator.kt:344 */;
|
404 672 | self
|
673 + | /* ServerBuilderGenerator.kt:343 */
|
405 674 | }
|
675 + | /* ServerBuilderGenerator.kt:426 */
|
406 676 | #[allow(missing_docs)] // documentation missing in model
|
677 + | /* ServerBuilderGenerator.kt:428 */
|
407 678 | pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
679 + | /* ServerBuilderGenerator.kt:429 */
|
408 680 | self.r#async = input.map(|v| v.into());
|
409 681 | self
|
682 + | /* ServerBuilderGenerator.kt:428 */
|
410 683 | }
|
684 + | /* ServerBuilderGenerator.kt:331 */
|
411 685 | #[allow(missing_docs)] // documentation missing in model
|
686 + | /* ServerBuilderGenerator.kt:343 */
|
412 687 | pub fn r#enum(
|
413 688 | mut self,
|
414 689 | input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
415 690 | ) -> Self {
|
416 - | self.r#enum = input.map(
|
417 - | #[allow(clippy::redundant_closure)]
|
418 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
419 - | );
|
691 + | /* ServerBuilderGenerator.kt:344 */
|
692 + | self.r#enum =
|
693 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
694 + | /* ServerBuilderGenerator.kt:344 */;
|
420 695 | self
|
696 + | /* ServerBuilderGenerator.kt:343 */
|
421 697 | }
|
698 + | /* ServerBuilderGenerator.kt:426 */
|
422 699 | #[allow(missing_docs)] // documentation missing in model
|
700 + | /* ServerBuilderGenerator.kt:428 */
|
423 701 | pub(crate) fn set_enum(
|
424 702 | mut self,
|
425 703 | input: Option<
|
426 704 | impl ::std::convert::Into<
|
427 705 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
428 706 | >,
|
429 707 | >,
|
430 708 | ) -> Self {
|
709 + | /* ServerBuilderGenerator.kt:429 */
|
431 710 | self.r#enum = input.map(|v| v.into());
|
432 711 | self
|
712 + | /* ServerBuilderGenerator.kt:428 */
|
433 713 | }
|
714 + | /* ServerBuilderGenerator.kt:331 */
|
434 715 | #[allow(missing_docs)] // documentation missing in model
|
716 + | /* ServerBuilderGenerator.kt:343 */
|
435 717 | pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
|
436 - | self.self_ = input;
|
718 + | /* ServerBuilderGenerator.kt:344 */
|
719 + | self.self_ =
|
720 + | /* ServerBuilderGenerator.kt:376 */input
|
721 + | /* ServerBuilderGenerator.kt:344 */;
|
437 722 | self
|
723 + | /* ServerBuilderGenerator.kt:343 */
|
438 724 | }
|
725 + | /* ServerBuilderGenerator.kt:426 */
|
439 726 | #[allow(missing_docs)] // documentation missing in model
|
727 + | /* ServerBuilderGenerator.kt:428 */
|
440 728 | pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
729 + | /* ServerBuilderGenerator.kt:429 */
|
441 730 | self.self_ = input.map(|v| v.into());
|
442 731 | self
|
732 + | /* ServerBuilderGenerator.kt:428 */
|
443 733 | }
|
734 + | /* ServerBuilderGenerator.kt:331 */
|
444 735 | #[allow(missing_docs)] // documentation missing in model
|
736 + | /* ServerBuilderGenerator.kt:343 */
|
445 737 | pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
|
446 - | self.crate_ = input;
|
738 + | /* ServerBuilderGenerator.kt:344 */
|
739 + | self.crate_ =
|
740 + | /* ServerBuilderGenerator.kt:376 */input
|
741 + | /* ServerBuilderGenerator.kt:344 */;
|
447 742 | self
|
743 + | /* ServerBuilderGenerator.kt:343 */
|
448 744 | }
|
745 + | /* ServerBuilderGenerator.kt:426 */
|
449 746 | #[allow(missing_docs)] // documentation missing in model
|
747 + | /* ServerBuilderGenerator.kt:428 */
|
450 748 | pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
749 + | /* ServerBuilderGenerator.kt:429 */
|
451 750 | self.crate_ = input.map(|v| v.into());
|
452 751 | self
|
752 + | /* ServerBuilderGenerator.kt:428 */
|
453 753 | }
|
754 + | /* ServerBuilderGenerator.kt:331 */
|
454 755 | #[allow(missing_docs)] // documentation missing in model
|
756 + | /* ServerBuilderGenerator.kt:343 */
|
455 757 | pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
|
456 - | self.super_ = input;
|
758 + | /* ServerBuilderGenerator.kt:344 */
|
759 + | self.super_ =
|
760 + | /* ServerBuilderGenerator.kt:376 */input
|
761 + | /* ServerBuilderGenerator.kt:344 */;
|
457 762 | self
|
763 + | /* ServerBuilderGenerator.kt:343 */
|
458 764 | }
|
765 + | /* ServerBuilderGenerator.kt:426 */
|
459 766 | #[allow(missing_docs)] // documentation missing in model
|
767 + | /* ServerBuilderGenerator.kt:428 */
|
460 768 | pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
769 + | /* ServerBuilderGenerator.kt:429 */
|
461 770 | self.super_ = input.map(|v| v.into());
|
462 771 | self
|
772 + | /* ServerBuilderGenerator.kt:428 */
|
463 773 | }
|
774 + | /* ServerBuilderGenerator.kt:331 */
|
464 775 | #[allow(missing_docs)] // documentation missing in model
|
776 + | /* ServerBuilderGenerator.kt:343 */
|
465 777 | pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
466 - | self.build_value = input;
|
778 + | /* ServerBuilderGenerator.kt:344 */
|
779 + | self.build_value =
|
780 + | /* ServerBuilderGenerator.kt:376 */input
|
781 + | /* ServerBuilderGenerator.kt:344 */;
|
467 782 | self
|
783 + | /* ServerBuilderGenerator.kt:343 */
|
468 784 | }
|
785 + | /* ServerBuilderGenerator.kt:426 */
|
469 786 | #[allow(missing_docs)] // documentation missing in model
|
787 + | /* ServerBuilderGenerator.kt:428 */
|
470 788 | pub(crate) fn set_build(
|
471 789 | mut self,
|
472 790 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
473 791 | ) -> Self {
|
792 + | /* ServerBuilderGenerator.kt:429 */
|
474 793 | self.build_value = input.map(|v| v.into());
|
475 794 | self
|
795 + | /* ServerBuilderGenerator.kt:428 */
|
476 796 | }
|
797 + | /* ServerBuilderGenerator.kt:331 */
|
477 798 | #[allow(missing_docs)] // documentation missing in model
|
799 + | /* ServerBuilderGenerator.kt:343 */
|
478 800 | pub fn default_value(
|
479 801 | mut self,
|
480 802 | input: ::std::option::Option<::std::string::String>,
|
481 803 | ) -> Self {
|
482 - | self.default_value = input;
|
804 + | /* ServerBuilderGenerator.kt:344 */
|
805 + | self.default_value =
|
806 + | /* ServerBuilderGenerator.kt:376 */input
|
807 + | /* ServerBuilderGenerator.kt:344 */;
|
483 808 | self
|
809 + | /* ServerBuilderGenerator.kt:343 */
|
484 810 | }
|
811 + | /* ServerBuilderGenerator.kt:426 */
|
485 812 | #[allow(missing_docs)] // documentation missing in model
|
813 + | /* ServerBuilderGenerator.kt:428 */
|
486 814 | pub(crate) fn set_default(
|
487 815 | mut self,
|
488 816 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
489 817 | ) -> Self {
|
818 + | /* ServerBuilderGenerator.kt:429 */
|
490 819 | self.default_value = input.map(|v| v.into());
|
491 820 | self
|
821 + | /* ServerBuilderGenerator.kt:428 */
|
492 822 | }
|
823 + | /* ServerBuilderGenerator.kt:331 */
|
493 824 | #[allow(missing_docs)] // documentation missing in model
|
825 + | /* ServerBuilderGenerator.kt:343 */
|
494 826 | pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
495 - | self.send = input;
|
827 + | /* ServerBuilderGenerator.kt:344 */
|
828 + | self.send =
|
829 + | /* ServerBuilderGenerator.kt:376 */input
|
830 + | /* ServerBuilderGenerator.kt:344 */;
|
496 831 | self
|
832 + | /* ServerBuilderGenerator.kt:343 */
|
497 833 | }
|
834 + | /* ServerBuilderGenerator.kt:426 */
|
498 835 | #[allow(missing_docs)] // documentation missing in model
|
836 + | /* ServerBuilderGenerator.kt:428 */
|
499 837 | pub(crate) fn set_send(
|
500 838 | mut self,
|
501 839 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
502 840 | ) -> Self {
|
841 + | /* ServerBuilderGenerator.kt:429 */
|
503 842 | self.send = input.map(|v| v.into());
|
504 843 | self
|
844 + | /* ServerBuilderGenerator.kt:428 */
|
505 845 | }
|
506 - | /// Consumes the builder and constructs a [`RpcEchoInput`](crate::input::RpcEchoInput).
|
507 - | ///
|
846 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RpcEchoInput`](crate::input::RpcEchoInput).
|
847 + | /// /* ServerBuilderGenerator.kt:260 */
|
508 848 | /// The builder fails to construct a [`RpcEchoInput`](crate::input::RpcEchoInput) if a [`ConstraintViolation`] occurs.
|
509 849 | ///
|
850 + | /* ServerBuilderGenerator.kt:271 */
|
510 851 | pub fn build(self) -> Result<crate::input::RpcEchoInput, ConstraintViolation> {
|
511 852 | self.build_enforcing_all_constraints()
|
512 853 | }
|
854 + | /* ServerBuilderGenerator.kt:283 */
|
513 855 | fn build_enforcing_all_constraints(
|
514 856 | self,
|
515 857 | ) -> Result<crate::input::RpcEchoInput, ConstraintViolation> {
|
516 - | Ok(crate::input::RpcEchoInput {
|
858 + | /* ServerBuilderGenerator.kt:287 */
|
859 + | Ok(
|
860 + | /* ServerBuilderGenerator.kt:542 */
|
861 + | crate::input::RpcEchoInput {
|
862 + | /* ServerBuilderGenerator.kt:546 */
|
517 863 | r#as: self.r#as,
|
864 + | /* ServerBuilderGenerator.kt:546 */
|
518 865 | r#async: self.r#async,
|
866 + | /* ServerBuilderGenerator.kt:546 */
|
519 867 | r#enum: self
|
520 868 | .r#enum
|
869 + | /* ServerBuilderGenerator.kt:602 */
|
521 870 | .map(|v| match v {
|
522 871 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
523 872 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
524 873 | })
|
874 + | /* ServerBuilderGenerator.kt:614 */
|
525 875 | .map(|res| res.map_err(ConstraintViolation::Enum))
|
526 876 | .transpose()?,
|
877 + | /* ServerBuilderGenerator.kt:546 */
|
527 878 | self_: self.self_,
|
879 + | /* ServerBuilderGenerator.kt:546 */
|
528 880 | crate_: self.crate_,
|
881 + | /* ServerBuilderGenerator.kt:546 */
|
529 882 | super_: self.super_,
|
883 + | /* ServerBuilderGenerator.kt:546 */
|
530 884 | build_value: self.build_value,
|
885 + | /* ServerBuilderGenerator.kt:546 */
|
531 886 | default_value: self.default_value,
|
887 + | /* ServerBuilderGenerator.kt:546 */
|
532 888 | send: self.send,
|
533 - | })
|
889 + | /* ServerBuilderGenerator.kt:542 */
|
890 + | }, /* ServerBuilderGenerator.kt:287 */
|
891 + | )
|
892 + | /* ServerBuilderGenerator.kt:283 */
|
534 893 | }
|
894 + | /* ServerBuilderGenerator.kt:215 */
|
535 895 | }
|
896 + |
|
897 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
536 898 | }
|
537 - | /// See [`MatchInput`](crate::input::MatchInput).
|
899 + | /// /* ServerBuilderGenerator.kt:171 */See [`MatchInput`](crate::input::MatchInput).
|
538 900 | pub mod match_input {
|
539 901 |
|
902 + | /* RustType.kt:516 */
|
540 903 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
541 - | /// Holds one variant for each of the ways the builder can fail.
|
904 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
905 + | /* RustType.kt:516 */
|
542 906 | #[non_exhaustive]
|
907 + | /* ServerBuilderConstraintViolations.kt:75 */
|
543 908 | #[allow(clippy::enum_variant_names)]
|
544 909 | pub enum ConstraintViolation {
|
545 - | /// Constraint violation occurred building member `r#enum` when building `MatchInput`.
|
910 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `MatchInput`.
|
911 + | /* RustType.kt:516 */
|
546 912 | #[doc(hidden)]
|
913 + | /* ServerBuilderConstraintViolations.kt:164 */
|
547 914 | Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
|
915 + | /* ServerBuilderConstraintViolations.kt:75 */
|
548 916 | }
|
917 + | /* ServerBuilderConstraintViolations.kt:117 */
|
549 918 | impl ::std::fmt::Display for ConstraintViolation {
|
919 + | /* ServerBuilderConstraintViolations.kt:118 */
|
550 920 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
921 + | /* ServerBuilderConstraintViolations.kt:119 */
|
551 922 | match self {
|
552 - | ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `MatchInput`"),
|
553 - | }
|
923 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `MatchInput`"),
|
924 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
925 + | /* ServerBuilderConstraintViolations.kt:118 */
|
554 926 | }
|
927 + | /* ServerBuilderConstraintViolations.kt:117 */
|
555 928 | }
|
929 + | /* ServerBuilderConstraintViolations.kt:84 */
|
556 930 | impl ::std::error::Error for ConstraintViolation {}
|
931 + | /* ServerBuilderConstraintViolations.kt:171 */
|
557 932 | impl ConstraintViolation {
|
558 933 | pub(crate) fn as_validation_exception_field(
|
559 934 | self,
|
560 935 | path: ::std::string::String,
|
561 936 | ) -> crate::model::ValidationExceptionField {
|
562 937 | match self {
|
563 938 | ConstraintViolation::Enum(inner) => {
|
564 939 | inner.as_validation_exception_field(path + "/enum")
|
565 940 | }
|
566 941 | }
|
567 942 | }
|
568 943 | }
|
944 + | /* ServerBuilderGenerator.kt:234 */
|
569 945 | impl ::std::convert::From<ConstraintViolation>
|
570 946 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
571 947 | {
|
572 948 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
573 949 | let first_validation_exception_field =
|
574 950 | constraint_violation.as_validation_exception_field("".to_owned());
|
575 951 | let validation_exception = crate::error::ValidationException {
|
576 952 | message: format!(
|
577 953 | "1 validation error detected. {}",
|
578 954 | &first_validation_exception_field.message
|
579 955 | ),
|
580 956 | field_list: Some(vec![first_validation_exception_field]),
|
581 957 | };
|
582 958 | Self::ConstraintViolation(
|
583 959 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
584 960 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
585 961 | )
|
586 962 | }
|
587 963 | }
|
964 + | /* ServerBuilderGenerator.kt:244 */
|
588 965 | impl ::std::convert::From<Builder>
|
589 966 | for crate::constrained::MaybeConstrained<crate::input::MatchInput>
|
590 967 | {
|
591 968 | fn from(builder: Builder) -> Self {
|
592 969 | Self::Unconstrained(builder)
|
593 970 | }
|
594 971 | }
|
972 + | /* ServerBuilderGenerator.kt:446 */
|
595 973 | impl ::std::convert::TryFrom<Builder> for crate::input::MatchInput {
|
596 974 | type Error = ConstraintViolation;
|
597 975 |
|
598 976 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
599 977 | builder.build()
|
600 978 | }
|
601 979 | }
|
602 - | /// A builder for [`MatchInput`](crate::input::MatchInput).
|
980 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MatchInput`](crate::input::MatchInput).
|
981 + | /* RustType.kt:516 */
|
603 982 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
983 + | /* ServerBuilderGenerator.kt:211 */
|
604 984 | pub struct Builder {
|
605 - | pub(crate) r#as: ::std::option::Option<i32>,
|
606 - | pub(crate) r#async: ::std::option::Option<bool>,
|
985 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
|
986 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
|
987 + | /* ServerBuilderGenerator.kt:308 */
|
607 988 | pub(crate) r#enum: ::std::option::Option<
|
608 989 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
609 990 | >,
|
610 - | pub(crate) self_: ::std::option::Option<bool>,
|
611 - | pub(crate) crate_: ::std::option::Option<bool>,
|
612 - | pub(crate) super_: ::std::option::Option<bool>,
|
991 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
|
992 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
|
993 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
|
994 + | /* ServerBuilderGenerator.kt:308 */
|
613 995 | pub(crate) build_value: ::std::option::Option<::std::string::String>,
|
996 + | /* ServerBuilderGenerator.kt:308 */
|
614 997 | pub(crate) default_value: ::std::option::Option<::std::string::String>,
|
998 + | /* ServerBuilderGenerator.kt:308 */
|
615 999 | pub(crate) send: ::std::option::Option<::std::string::String>,
|
1000 + | /* ServerBuilderGenerator.kt:211 */
|
616 1001 | }
|
1002 + | /* ServerBuilderGenerator.kt:215 */
|
617 1003 | impl Builder {
|
1004 + | /* ServerBuilderGenerator.kt:331 */
|
618 1005 | #[allow(missing_docs)] // documentation missing in model
|
1006 + | /* ServerBuilderGenerator.kt:343 */
|
619 1007 | pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
|
620 - | self.r#as = input;
|
1008 + | /* ServerBuilderGenerator.kt:344 */
|
1009 + | self.r#as =
|
1010 + | /* ServerBuilderGenerator.kt:376 */input
|
1011 + | /* ServerBuilderGenerator.kt:344 */;
|
621 1012 | self
|
1013 + | /* ServerBuilderGenerator.kt:343 */
|
622 1014 | }
|
1015 + | /* ServerBuilderGenerator.kt:426 */
|
623 1016 | #[allow(missing_docs)] // documentation missing in model
|
1017 + | /* ServerBuilderGenerator.kt:428 */
|
624 1018 | pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
1019 + | /* ServerBuilderGenerator.kt:429 */
|
625 1020 | self.r#as = input.map(|v| v.into());
|
626 1021 | self
|
1022 + | /* ServerBuilderGenerator.kt:428 */
|
627 1023 | }
|
1024 + | /* ServerBuilderGenerator.kt:331 */
|
628 1025 | #[allow(missing_docs)] // documentation missing in model
|
1026 + | /* ServerBuilderGenerator.kt:343 */
|
629 1027 | pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
|
630 - | self.r#async = input;
|
1028 + | /* ServerBuilderGenerator.kt:344 */
|
1029 + | self.r#async =
|
1030 + | /* ServerBuilderGenerator.kt:376 */input
|
1031 + | /* ServerBuilderGenerator.kt:344 */;
|
631 1032 | self
|
1033 + | /* ServerBuilderGenerator.kt:343 */
|
632 1034 | }
|
1035 + | /* ServerBuilderGenerator.kt:426 */
|
633 1036 | #[allow(missing_docs)] // documentation missing in model
|
1037 + | /* ServerBuilderGenerator.kt:428 */
|
634 1038 | pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1039 + | /* ServerBuilderGenerator.kt:429 */
|
635 1040 | self.r#async = input.map(|v| v.into());
|
636 1041 | self
|
1042 + | /* ServerBuilderGenerator.kt:428 */
|
637 1043 | }
|
1044 + | /* ServerBuilderGenerator.kt:331 */
|
638 1045 | #[allow(missing_docs)] // documentation missing in model
|
1046 + | /* ServerBuilderGenerator.kt:343 */
|
639 1047 | pub fn r#enum(
|
640 1048 | mut self,
|
641 1049 | input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
642 1050 | ) -> Self {
|
643 - | self.r#enum = input.map(
|
644 - | #[allow(clippy::redundant_closure)]
|
645 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
646 - | );
|
1051 + | /* ServerBuilderGenerator.kt:344 */
|
1052 + | self.r#enum =
|
1053 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
1054 + | /* ServerBuilderGenerator.kt:344 */;
|
647 1055 | self
|
1056 + | /* ServerBuilderGenerator.kt:343 */
|
648 1057 | }
|
1058 + | /* ServerBuilderGenerator.kt:426 */
|
649 1059 | #[allow(missing_docs)] // documentation missing in model
|
1060 + | /* ServerBuilderGenerator.kt:428 */
|
650 1061 | pub(crate) fn set_enum(
|
651 1062 | mut self,
|
652 1063 | input: Option<
|
653 1064 | impl ::std::convert::Into<
|
654 1065 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
655 1066 | >,
|
656 1067 | >,
|
657 1068 | ) -> Self {
|
1069 + | /* ServerBuilderGenerator.kt:429 */
|
658 1070 | self.r#enum = input.map(|v| v.into());
|
659 1071 | self
|
1072 + | /* ServerBuilderGenerator.kt:428 */
|
660 1073 | }
|
1074 + | /* ServerBuilderGenerator.kt:331 */
|
661 1075 | #[allow(missing_docs)] // documentation missing in model
|
1076 + | /* ServerBuilderGenerator.kt:343 */
|
662 1077 | pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
|
663 - | self.self_ = input;
|
1078 + | /* ServerBuilderGenerator.kt:344 */
|
1079 + | self.self_ =
|
1080 + | /* ServerBuilderGenerator.kt:376 */input
|
1081 + | /* ServerBuilderGenerator.kt:344 */;
|
664 1082 | self
|
1083 + | /* ServerBuilderGenerator.kt:343 */
|
665 1084 | }
|
1085 + | /* ServerBuilderGenerator.kt:426 */
|
666 1086 | #[allow(missing_docs)] // documentation missing in model
|
1087 + | /* ServerBuilderGenerator.kt:428 */
|
667 1088 | pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1089 + | /* ServerBuilderGenerator.kt:429 */
|
668 1090 | self.self_ = input.map(|v| v.into());
|
669 1091 | self
|
1092 + | /* ServerBuilderGenerator.kt:428 */
|
670 1093 | }
|
1094 + | /* ServerBuilderGenerator.kt:331 */
|
671 1095 | #[allow(missing_docs)] // documentation missing in model
|
1096 + | /* ServerBuilderGenerator.kt:343 */
|
672 1097 | pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
|
673 - | self.crate_ = input;
|
1098 + | /* ServerBuilderGenerator.kt:344 */
|
1099 + | self.crate_ =
|
1100 + | /* ServerBuilderGenerator.kt:376 */input
|
1101 + | /* ServerBuilderGenerator.kt:344 */;
|
674 1102 | self
|
1103 + | /* ServerBuilderGenerator.kt:343 */
|
675 1104 | }
|
1105 + | /* ServerBuilderGenerator.kt:426 */
|
676 1106 | #[allow(missing_docs)] // documentation missing in model
|
1107 + | /* ServerBuilderGenerator.kt:428 */
|
677 1108 | pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1109 + | /* ServerBuilderGenerator.kt:429 */
|
678 1110 | self.crate_ = input.map(|v| v.into());
|
679 1111 | self
|
1112 + | /* ServerBuilderGenerator.kt:428 */
|
680 1113 | }
|
1114 + | /* ServerBuilderGenerator.kt:331 */
|
681 1115 | #[allow(missing_docs)] // documentation missing in model
|
1116 + | /* ServerBuilderGenerator.kt:343 */
|
682 1117 | pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
|
683 - | self.super_ = input;
|
1118 + | /* ServerBuilderGenerator.kt:344 */
|
1119 + | self.super_ =
|
1120 + | /* ServerBuilderGenerator.kt:376 */input
|
1121 + | /* ServerBuilderGenerator.kt:344 */;
|
684 1122 | self
|
1123 + | /* ServerBuilderGenerator.kt:343 */
|
685 1124 | }
|
1125 + | /* ServerBuilderGenerator.kt:426 */
|
686 1126 | #[allow(missing_docs)] // documentation missing in model
|
1127 + | /* ServerBuilderGenerator.kt:428 */
|
687 1128 | pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1129 + | /* ServerBuilderGenerator.kt:429 */
|
688 1130 | self.super_ = input.map(|v| v.into());
|
689 1131 | self
|
1132 + | /* ServerBuilderGenerator.kt:428 */
|
690 1133 | }
|
1134 + | /* ServerBuilderGenerator.kt:331 */
|
691 1135 | #[allow(missing_docs)] // documentation missing in model
|
1136 + | /* ServerBuilderGenerator.kt:343 */
|
692 1137 | pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
693 - | self.build_value = input;
|
1138 + | /* ServerBuilderGenerator.kt:344 */
|
1139 + | self.build_value =
|
1140 + | /* ServerBuilderGenerator.kt:376 */input
|
1141 + | /* ServerBuilderGenerator.kt:344 */;
|
694 1142 | self
|
1143 + | /* ServerBuilderGenerator.kt:343 */
|
695 1144 | }
|
1145 + | /* ServerBuilderGenerator.kt:426 */
|
696 1146 | #[allow(missing_docs)] // documentation missing in model
|
1147 + | /* ServerBuilderGenerator.kt:428 */
|
697 1148 | pub(crate) fn set_build(
|
698 1149 | mut self,
|
699 1150 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
700 1151 | ) -> Self {
|
1152 + | /* ServerBuilderGenerator.kt:429 */
|
701 1153 | self.build_value = input.map(|v| v.into());
|
702 1154 | self
|
1155 + | /* ServerBuilderGenerator.kt:428 */
|
703 1156 | }
|
1157 + | /* ServerBuilderGenerator.kt:331 */
|
704 1158 | #[allow(missing_docs)] // documentation missing in model
|
1159 + | /* ServerBuilderGenerator.kt:343 */
|
705 1160 | pub fn default_value(
|
706 1161 | mut self,
|
707 1162 | input: ::std::option::Option<::std::string::String>,
|
708 1163 | ) -> Self {
|
709 - | self.default_value = input;
|
1164 + | /* ServerBuilderGenerator.kt:344 */
|
1165 + | self.default_value =
|
1166 + | /* ServerBuilderGenerator.kt:376 */input
|
1167 + | /* ServerBuilderGenerator.kt:344 */;
|
710 1168 | self
|
1169 + | /* ServerBuilderGenerator.kt:343 */
|
711 1170 | }
|
1171 + | /* ServerBuilderGenerator.kt:426 */
|
712 1172 | #[allow(missing_docs)] // documentation missing in model
|
1173 + | /* ServerBuilderGenerator.kt:428 */
|
713 1174 | pub(crate) fn set_default(
|
714 1175 | mut self,
|
715 1176 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
716 1177 | ) -> Self {
|
1178 + | /* ServerBuilderGenerator.kt:429 */
|
717 1179 | self.default_value = input.map(|v| v.into());
|
718 1180 | self
|
1181 + | /* ServerBuilderGenerator.kt:428 */
|
719 1182 | }
|
1183 + | /* ServerBuilderGenerator.kt:331 */
|
720 1184 | #[allow(missing_docs)] // documentation missing in model
|
1185 + | /* ServerBuilderGenerator.kt:343 */
|
721 1186 | pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
722 - | self.send = input;
|
1187 + | /* ServerBuilderGenerator.kt:344 */
|
1188 + | self.send =
|
1189 + | /* ServerBuilderGenerator.kt:376 */input
|
1190 + | /* ServerBuilderGenerator.kt:344 */;
|
723 1191 | self
|
1192 + | /* ServerBuilderGenerator.kt:343 */
|
724 1193 | }
|
1194 + | /* ServerBuilderGenerator.kt:426 */
|
725 1195 | #[allow(missing_docs)] // documentation missing in model
|
1196 + | /* ServerBuilderGenerator.kt:428 */
|
726 1197 | pub(crate) fn set_send(
|
727 1198 | mut self,
|
728 1199 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
729 1200 | ) -> Self {
|
1201 + | /* ServerBuilderGenerator.kt:429 */
|
730 1202 | self.send = input.map(|v| v.into());
|
731 1203 | self
|
1204 + | /* ServerBuilderGenerator.kt:428 */
|
732 1205 | }
|
733 - | /// Consumes the builder and constructs a [`MatchInput`](crate::input::MatchInput).
|
734 - | ///
|
1206 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MatchInput`](crate::input::MatchInput).
|
1207 + | /// /* ServerBuilderGenerator.kt:260 */
|
735 1208 | /// The builder fails to construct a [`MatchInput`](crate::input::MatchInput) if a [`ConstraintViolation`] occurs.
|
736 1209 | ///
|
1210 + | /* ServerBuilderGenerator.kt:271 */
|
737 1211 | pub fn build(self) -> Result<crate::input::MatchInput, ConstraintViolation> {
|
738 1212 | self.build_enforcing_all_constraints()
|
739 1213 | }
|
1214 + | /* ServerBuilderGenerator.kt:283 */
|
740 1215 | fn build_enforcing_all_constraints(
|
741 1216 | self,
|
742 1217 | ) -> Result<crate::input::MatchInput, ConstraintViolation> {
|
743 - | Ok(crate::input::MatchInput {
|
1218 + | /* ServerBuilderGenerator.kt:287 */
|
1219 + | Ok(
|
1220 + | /* ServerBuilderGenerator.kt:542 */
|
1221 + | crate::input::MatchInput {
|
1222 + | /* ServerBuilderGenerator.kt:546 */
|
744 1223 | r#as: self.r#as,
|
1224 + | /* ServerBuilderGenerator.kt:546 */
|
745 1225 | r#async: self.r#async,
|
1226 + | /* ServerBuilderGenerator.kt:546 */
|
746 1227 | r#enum: self
|
747 1228 | .r#enum
|
1229 + | /* ServerBuilderGenerator.kt:602 */
|
748 1230 | .map(|v| match v {
|
749 1231 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
750 1232 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
751 1233 | })
|
1234 + | /* ServerBuilderGenerator.kt:614 */
|
752 1235 | .map(|res| res.map_err(ConstraintViolation::Enum))
|
753 1236 | .transpose()?,
|
1237 + | /* ServerBuilderGenerator.kt:546 */
|
754 1238 | self_: self.self_,
|
1239 + | /* ServerBuilderGenerator.kt:546 */
|
755 1240 | crate_: self.crate_,
|
1241 + | /* ServerBuilderGenerator.kt:546 */
|
756 1242 | super_: self.super_,
|
1243 + | /* ServerBuilderGenerator.kt:546 */
|
757 1244 | build_value: self.build_value,
|
1245 + | /* ServerBuilderGenerator.kt:546 */
|
758 1246 | default_value: self.default_value,
|
1247 + | /* ServerBuilderGenerator.kt:546 */
|
759 1248 | send: self.send,
|
760 - | })
|
1249 + | /* ServerBuilderGenerator.kt:542 */
|
1250 + | }, /* ServerBuilderGenerator.kt:287 */
|
1251 + | )
|
1252 + | /* ServerBuilderGenerator.kt:283 */
|
761 1253 | }
|
1254 + | /* ServerBuilderGenerator.kt:215 */
|
762 1255 | }
|
1256 + |
|
1257 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
763 1258 | }
|
764 - | /// See [`OptionInput`](crate::input::OptionInput).
|
1259 + | /// /* ServerBuilderGenerator.kt:171 */See [`OptionInput`](crate::input::OptionInput).
|
765 1260 | pub mod option_input {
|
766 1261 |
|
1262 + | /* ServerBuilderGenerator.kt:461 */
|
767 1263 | impl ::std::convert::From<Builder> for crate::input::OptionInput {
|
768 1264 | fn from(builder: Builder) -> Self {
|
769 1265 | builder.build()
|
770 1266 | }
|
771 1267 | }
|
772 - | /// A builder for [`OptionInput`](crate::input::OptionInput).
|
1268 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OptionInput`](crate::input::OptionInput).
|
1269 + | /* RustType.kt:516 */
|
773 1270 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1271 + | /* ServerBuilderGenerator.kt:211 */
|
774 1272 | pub struct Builder {
|
1273 + | /* ServerBuilderGenerator.kt:308 */
|
775 1274 | pub(crate) pv_member: ::std::option::Option<bool>,
|
1275 + | /* ServerBuilderGenerator.kt:211 */
|
776 1276 | }
|
1277 + | /* ServerBuilderGenerator.kt:215 */
|
777 1278 | impl Builder {
|
1279 + | /* ServerBuilderGenerator.kt:331 */
|
778 1280 | #[allow(missing_docs)] // documentation missing in model
|
1281 + | /* ServerBuilderGenerator.kt:343 */
|
779 1282 | pub fn pv_member(mut self, input: ::std::option::Option<bool>) -> Self {
|
780 - | self.pv_member = input;
|
1283 + | /* ServerBuilderGenerator.kt:344 */
|
1284 + | self.pv_member =
|
1285 + | /* ServerBuilderGenerator.kt:376 */input
|
1286 + | /* ServerBuilderGenerator.kt:344 */;
|
781 1287 | self
|
1288 + | /* ServerBuilderGenerator.kt:343 */
|
782 1289 | }
|
1290 + | /* ServerBuilderGenerator.kt:426 */
|
783 1291 | #[allow(missing_docs)] // documentation missing in model
|
1292 + | /* ServerBuilderGenerator.kt:428 */
|
784 1293 | pub(crate) fn set_pv_member(
|
785 1294 | mut self,
|
786 1295 | input: Option<impl ::std::convert::Into<bool>>,
|
787 1296 | ) -> Self {
|
1297 + | /* ServerBuilderGenerator.kt:429 */
|
788 1298 | self.pv_member = input.map(|v| v.into());
|
789 1299 | self
|
1300 + | /* ServerBuilderGenerator.kt:428 */
|
790 1301 | }
|
791 - | /// Consumes the builder and constructs a [`OptionInput`](crate::input::OptionInput).
|
1302 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OptionInput`](crate::input::OptionInput).
|
1303 + | /* ServerBuilderGenerator.kt:271 */
|
792 1304 | pub fn build(self) -> crate::input::OptionInput {
|
793 1305 | self.build_enforcing_all_constraints()
|
794 1306 | }
|
1307 + | /* ServerBuilderGenerator.kt:283 */
|
795 1308 | fn build_enforcing_all_constraints(self) -> crate::input::OptionInput {
|
1309 + | /* ServerBuilderGenerator.kt:542 */
|
796 1310 | crate::input::OptionInput {
|
1311 + | /* ServerBuilderGenerator.kt:546 */
|
797 1312 | pv_member: self.pv_member,
|
1313 + | /* ServerBuilderGenerator.kt:542 */
|
798 1314 | }
|
1315 + | /* ServerBuilderGenerator.kt:283 */
|
799 1316 | }
|
1317 + | /* ServerBuilderGenerator.kt:215 */
|
800 1318 | }
|
1319 + |
|
1320 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
801 1321 | }
|
802 - | /// See [`ResultInput`](crate::input::ResultInput).
|
1322 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResultInput`](crate::input::ResultInput).
|
803 1323 | pub mod result_input {
|
804 1324 |
|
1325 + | /* ServerBuilderGenerator.kt:461 */
|
805 1326 | impl ::std::convert::From<Builder> for crate::input::ResultInput {
|
806 1327 | fn from(builder: Builder) -> Self {
|
807 1328 | builder.build()
|
808 1329 | }
|
809 1330 | }
|
810 - | /// A builder for [`ResultInput`](crate::input::ResultInput).
|
1331 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResultInput`](crate::input::ResultInput).
|
1332 + | /* RustType.kt:516 */
|
811 1333 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1334 + | /* ServerBuilderGenerator.kt:211 */
|
812 1335 | pub struct Builder {
|
1336 + | /* ServerBuilderGenerator.kt:308 */
|
813 1337 | pub(crate) pv_member: ::std::option::Option<bool>,
|
1338 + | /* ServerBuilderGenerator.kt:211 */
|
814 1339 | }
|
1340 + | /* ServerBuilderGenerator.kt:215 */
|
815 1341 | impl Builder {
|
1342 + | /* ServerBuilderGenerator.kt:331 */
|
816 1343 | #[allow(missing_docs)] // documentation missing in model
|
1344 + | /* ServerBuilderGenerator.kt:343 */
|
817 1345 | pub fn pv_member(mut self, input: ::std::option::Option<bool>) -> Self {
|
818 - | self.pv_member = input;
|
1346 + | /* ServerBuilderGenerator.kt:344 */
|
1347 + | self.pv_member =
|
1348 + | /* ServerBuilderGenerator.kt:376 */input
|
1349 + | /* ServerBuilderGenerator.kt:344 */;
|
819 1350 | self
|
1351 + | /* ServerBuilderGenerator.kt:343 */
|
820 1352 | }
|
1353 + | /* ServerBuilderGenerator.kt:426 */
|
821 1354 | #[allow(missing_docs)] // documentation missing in model
|
1355 + | /* ServerBuilderGenerator.kt:428 */
|
822 1356 | pub(crate) fn set_pv_member(
|
823 1357 | mut self,
|
824 1358 | input: Option<impl ::std::convert::Into<bool>>,
|
825 1359 | ) -> Self {
|
1360 + | /* ServerBuilderGenerator.kt:429 */
|
826 1361 | self.pv_member = input.map(|v| v.into());
|
827 1362 | self
|
1363 + | /* ServerBuilderGenerator.kt:428 */
|
828 1364 | }
|
829 - | /// Consumes the builder and constructs a [`ResultInput`](crate::input::ResultInput).
|
1365 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResultInput`](crate::input::ResultInput).
|
1366 + | /* ServerBuilderGenerator.kt:271 */
|
830 1367 | pub fn build(self) -> crate::input::ResultInput {
|
831 1368 | self.build_enforcing_all_constraints()
|
832 1369 | }
|
1370 + | /* ServerBuilderGenerator.kt:283 */
|
833 1371 | fn build_enforcing_all_constraints(self) -> crate::input::ResultInput {
|
1372 + | /* ServerBuilderGenerator.kt:542 */
|
834 1373 | crate::input::ResultInput {
|
1374 + | /* ServerBuilderGenerator.kt:546 */
|
835 1375 | pv_member: self.pv_member,
|
1376 + | /* ServerBuilderGenerator.kt:542 */
|
836 1377 | }
|
1378 + | /* ServerBuilderGenerator.kt:283 */
|
837 1379 | }
|
1380 + | /* ServerBuilderGenerator.kt:215 */
|
838 1381 | }
|
1382 + |
|
1383 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
839 1384 | }
|
840 - | /// See [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
1385 + | /// /* ServerBuilderGenerator.kt:171 */See [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
841 1386 | pub mod err_collisions_input {
|
842 1387 |
|
1388 + | /* ServerBuilderGenerator.kt:461 */
|
843 1389 | impl ::std::convert::From<Builder> for crate::input::ErrCollisionsInput {
|
844 1390 | fn from(builder: Builder) -> Self {
|
845 1391 | builder.build()
|
846 1392 | }
|
847 1393 | }
|
848 - | /// A builder for [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
1394 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
1395 + | /* RustType.kt:516 */
|
849 1396 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
850 - | pub struct Builder {}
|
1397 + | /* ServerBuilderGenerator.kt:211 */
|
1398 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
1399 + | /* ServerBuilderGenerator.kt:215 */
|
851 1400 | impl Builder {
|
852 - | /// Consumes the builder and constructs a [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
1401 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ErrCollisionsInput`](crate::input::ErrCollisionsInput).
|
1402 + | /* ServerBuilderGenerator.kt:271 */
|
853 1403 | pub fn build(self) -> crate::input::ErrCollisionsInput {
|
854 1404 | self.build_enforcing_all_constraints()
|
855 1405 | }
|
1406 + | /* ServerBuilderGenerator.kt:283 */
|
856 1407 | fn build_enforcing_all_constraints(self) -> crate::input::ErrCollisionsInput {
|
857 - | crate::input::ErrCollisionsInput {}
|
1408 + | /* ServerBuilderGenerator.kt:542 */
|
1409 + | crate::input::ErrCollisionsInput {
|
1410 + | /* ServerBuilderGenerator.kt:542 */}
|
1411 + | /* ServerBuilderGenerator.kt:283 */
|
858 1412 | }
|
1413 + | /* ServerBuilderGenerator.kt:215 */
|
859 1414 | }
|
1415 + |
|
1416 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
860 1417 | }
|
861 - | /// See [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
1418 + | /// /* ServerBuilderGenerator.kt:171 */See [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
862 1419 | pub mod structure_name_punning_input {
|
863 1420 |
|
1421 + | /* ServerBuilderGenerator.kt:461 */
|
864 1422 | impl ::std::convert::From<Builder> for crate::input::StructureNamePunningInput {
|
865 1423 | fn from(builder: Builder) -> Self {
|
866 1424 | builder.build()
|
867 1425 | }
|
868 1426 | }
|
869 - | /// A builder for [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
1427 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
1428 + | /* RustType.kt:516 */
|
870 1429 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1430 + | /* ServerBuilderGenerator.kt:211 */
|
871 1431 | pub struct Builder {
|
1432 + | /* ServerBuilderGenerator.kt:308 */
|
872 1433 | pub(crate) regular_string: ::std::option::Option<::std::string::String>,
|
1434 + | /* ServerBuilderGenerator.kt:308 */
|
873 1435 | pub(crate) punned_vec: ::std::option::Option<crate::model::Vec>,
|
1436 + | /* ServerBuilderGenerator.kt:211 */
|
874 1437 | }
|
1438 + | /* ServerBuilderGenerator.kt:215 */
|
875 1439 | impl Builder {
|
1440 + | /* ServerBuilderGenerator.kt:331 */
|
876 1441 | #[allow(missing_docs)] // documentation missing in model
|
1442 + | /* ServerBuilderGenerator.kt:343 */
|
877 1443 | pub fn regular_string(
|
878 1444 | mut self,
|
879 1445 | input: ::std::option::Option<::std::string::String>,
|
880 1446 | ) -> Self {
|
881 - | self.regular_string = input;
|
1447 + | /* ServerBuilderGenerator.kt:344 */
|
1448 + | self.regular_string =
|
1449 + | /* ServerBuilderGenerator.kt:376 */input
|
1450 + | /* ServerBuilderGenerator.kt:344 */;
|
882 1451 | self
|
1452 + | /* ServerBuilderGenerator.kt:343 */
|
883 1453 | }
|
1454 + | /* ServerBuilderGenerator.kt:426 */
|
884 1455 | #[allow(missing_docs)] // documentation missing in model
|
1456 + | /* ServerBuilderGenerator.kt:428 */
|
885 1457 | pub(crate) fn set_regular_string(
|
886 1458 | mut self,
|
887 1459 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
888 1460 | ) -> Self {
|
1461 + | /* ServerBuilderGenerator.kt:429 */
|
889 1462 | self.regular_string = input.map(|v| v.into());
|
890 1463 | self
|
1464 + | /* ServerBuilderGenerator.kt:428 */
|
891 1465 | }
|
1466 + | /* ServerBuilderGenerator.kt:331 */
|
892 1467 | #[allow(missing_docs)] // documentation missing in model
|
1468 + | /* ServerBuilderGenerator.kt:343 */
|
893 1469 | pub fn punned_vec(mut self, input: ::std::option::Option<crate::model::Vec>) -> Self {
|
894 - | self.punned_vec = input;
|
1470 + | /* ServerBuilderGenerator.kt:344 */
|
1471 + | self.punned_vec =
|
1472 + | /* ServerBuilderGenerator.kt:376 */input
|
1473 + | /* ServerBuilderGenerator.kt:344 */;
|
895 1474 | self
|
1475 + | /* ServerBuilderGenerator.kt:343 */
|
896 1476 | }
|
1477 + | /* ServerBuilderGenerator.kt:426 */
|
897 1478 | #[allow(missing_docs)] // documentation missing in model
|
1479 + | /* ServerBuilderGenerator.kt:428 */
|
898 1480 | pub(crate) fn set_punned_vec(
|
899 1481 | mut self,
|
900 1482 | input: Option<impl ::std::convert::Into<crate::model::Vec>>,
|
901 1483 | ) -> Self {
|
1484 + | /* ServerBuilderGenerator.kt:429 */
|
902 1485 | self.punned_vec = input.map(|v| v.into());
|
903 1486 | self
|
1487 + | /* ServerBuilderGenerator.kt:428 */
|
904 1488 | }
|
905 - | /// Consumes the builder and constructs a [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
1489 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StructureNamePunningInput`](crate::input::StructureNamePunningInput).
|
1490 + | /* ServerBuilderGenerator.kt:271 */
|
906 1491 | pub fn build(self) -> crate::input::StructureNamePunningInput {
|
907 1492 | self.build_enforcing_all_constraints()
|
908 1493 | }
|
1494 + | /* ServerBuilderGenerator.kt:283 */
|
909 1495 | fn build_enforcing_all_constraints(self) -> crate::input::StructureNamePunningInput {
|
1496 + | /* ServerBuilderGenerator.kt:542 */
|
910 1497 | crate::input::StructureNamePunningInput {
|
1498 + | /* ServerBuilderGenerator.kt:546 */
|
911 1499 | regular_string: self.regular_string,
|
1500 + | /* ServerBuilderGenerator.kt:546 */
|
912 1501 | punned_vec: self.punned_vec,
|
1502 + | /* ServerBuilderGenerator.kt:542 */
|
913 1503 | }
|
1504 + | /* ServerBuilderGenerator.kt:283 */
|
914 1505 | }
|
1506 + | /* ServerBuilderGenerator.kt:215 */
|
915 1507 | }
|
1508 + |
|
1509 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
916 1510 | }
|
917 - | /// See [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
1511 + | /// /* ServerBuilderGenerator.kt:171 */See [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
918 1512 | pub mod reserved_words_as_members_input {
|
919 1513 |
|
1514 + | /* RustType.kt:516 */
|
920 1515 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
921 - | /// Holds one variant for each of the ways the builder can fail.
|
1516 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1517 + | /* RustType.kt:516 */
|
922 1518 | #[non_exhaustive]
|
1519 + | /* ServerBuilderConstraintViolations.kt:75 */
|
923 1520 | #[allow(clippy::enum_variant_names)]
|
924 1521 | pub enum ConstraintViolation {
|
925 - | /// Constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`.
|
1522 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`.
|
1523 + | /* RustType.kt:516 */
|
926 1524 | #[doc(hidden)]
|
1525 + | /* ServerBuilderConstraintViolations.kt:164 */
|
927 1526 | Enum(crate::model::unknown_variant_colliding_enum::ConstraintViolation),
|
1527 + | /* ServerBuilderConstraintViolations.kt:75 */
|
928 1528 | }
|
1529 + | /* ServerBuilderConstraintViolations.kt:117 */
|
929 1530 | impl ::std::fmt::Display for ConstraintViolation {
|
1531 + | /* ServerBuilderConstraintViolations.kt:118 */
|
930 1532 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1533 + | /* ServerBuilderConstraintViolations.kt:119 */
|
931 1534 | match self {
|
932 - | ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`"),
|
933 - | }
|
1535 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Enum(_) => write!(f, "constraint violation occurred building member `r#enum` when building `ReservedWordsAsMembersInput`"),
|
1536 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1537 + | /* ServerBuilderConstraintViolations.kt:118 */
|
934 1538 | }
|
1539 + | /* ServerBuilderConstraintViolations.kt:117 */
|
935 1540 | }
|
1541 + | /* ServerBuilderConstraintViolations.kt:84 */
|
936 1542 | impl ::std::error::Error for ConstraintViolation {}
|
1543 + | /* ServerBuilderConstraintViolations.kt:171 */
|
937 1544 | impl ConstraintViolation {
|
938 1545 | pub(crate) fn as_validation_exception_field(
|
939 1546 | self,
|
940 1547 | path: ::std::string::String,
|
941 1548 | ) -> crate::model::ValidationExceptionField {
|
942 1549 | match self {
|
943 1550 | ConstraintViolation::Enum(inner) => {
|
944 1551 | inner.as_validation_exception_field(path + "/enum")
|
945 1552 | }
|
946 1553 | }
|
947 1554 | }
|
948 1555 | }
|
1556 + | /* ServerBuilderGenerator.kt:234 */
|
949 1557 | impl ::std::convert::From<ConstraintViolation>
|
950 1558 | for ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection
|
951 1559 | {
|
952 1560 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
953 1561 | let first_validation_exception_field =
|
954 1562 | constraint_violation.as_validation_exception_field("".to_owned());
|
955 1563 | let validation_exception = crate::error::ValidationException {
|
956 1564 | message: format!(
|
957 1565 | "1 validation error detected. {}",
|
958 1566 | &first_validation_exception_field.message
|
959 1567 | ),
|
960 1568 | field_list: Some(vec![first_validation_exception_field]),
|
961 1569 | };
|
962 1570 | Self::ConstraintViolation(
|
963 1571 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
964 1572 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
965 1573 | )
|
966 1574 | }
|
967 1575 | }
|
1576 + | /* ServerBuilderGenerator.kt:244 */
|
968 1577 | impl ::std::convert::From<Builder>
|
969 1578 | for crate::constrained::MaybeConstrained<crate::input::ReservedWordsAsMembersInput>
|
970 1579 | {
|
971 1580 | fn from(builder: Builder) -> Self {
|
972 1581 | Self::Unconstrained(builder)
|
973 1582 | }
|
974 1583 | }
|
1584 + | /* ServerBuilderGenerator.kt:446 */
|
975 1585 | impl ::std::convert::TryFrom<Builder> for crate::input::ReservedWordsAsMembersInput {
|
976 1586 | type Error = ConstraintViolation;
|
977 1587 |
|
978 1588 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
979 1589 | builder.build()
|
980 1590 | }
|
981 1591 | }
|
982 - | /// A builder for [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
1592 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
1593 + | /* RustType.kt:516 */
|
983 1594 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1595 + | /* ServerBuilderGenerator.kt:211 */
|
984 1596 | pub struct Builder {
|
985 - | pub(crate) r#as: ::std::option::Option<i32>,
|
986 - | pub(crate) r#async: ::std::option::Option<bool>,
|
1597 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#as: ::std::option::Option<i32>,
|
1598 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) r#async: ::std::option::Option<bool>,
|
1599 + | /* ServerBuilderGenerator.kt:308 */
|
987 1600 | pub(crate) r#enum: ::std::option::Option<
|
988 1601 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
989 1602 | >,
|
990 - | pub(crate) self_: ::std::option::Option<bool>,
|
991 - | pub(crate) crate_: ::std::option::Option<bool>,
|
992 - | pub(crate) super_: ::std::option::Option<bool>,
|
1603 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) self_: ::std::option::Option<bool>,
|
1604 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) crate_: ::std::option::Option<bool>,
|
1605 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) super_: ::std::option::Option<bool>,
|
1606 + | /* ServerBuilderGenerator.kt:308 */
|
993 1607 | pub(crate) build_value: ::std::option::Option<::std::string::String>,
|
1608 + | /* ServerBuilderGenerator.kt:308 */
|
994 1609 | pub(crate) default_value: ::std::option::Option<::std::string::String>,
|
1610 + | /* ServerBuilderGenerator.kt:308 */
|
995 1611 | pub(crate) send: ::std::option::Option<::std::string::String>,
|
1612 + | /* ServerBuilderGenerator.kt:211 */
|
996 1613 | }
|
1614 + | /* ServerBuilderGenerator.kt:215 */
|
997 1615 | impl Builder {
|
1616 + | /* ServerBuilderGenerator.kt:331 */
|
998 1617 | #[allow(missing_docs)] // documentation missing in model
|
1618 + | /* ServerBuilderGenerator.kt:343 */
|
999 1619 | pub fn r#as(mut self, input: ::std::option::Option<i32>) -> Self {
|
1000 - | self.r#as = input;
|
1620 + | /* ServerBuilderGenerator.kt:344 */
|
1621 + | self.r#as =
|
1622 + | /* ServerBuilderGenerator.kt:376 */input
|
1623 + | /* ServerBuilderGenerator.kt:344 */;
|
1001 1624 | self
|
1625 + | /* ServerBuilderGenerator.kt:343 */
|
1002 1626 | }
|
1627 + | /* ServerBuilderGenerator.kt:426 */
|
1003 1628 | #[allow(missing_docs)] // documentation missing in model
|
1629 + | /* ServerBuilderGenerator.kt:428 */
|
1004 1630 | pub(crate) fn set_as(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
1631 + | /* ServerBuilderGenerator.kt:429 */
|
1005 1632 | self.r#as = input.map(|v| v.into());
|
1006 1633 | self
|
1634 + | /* ServerBuilderGenerator.kt:428 */
|
1007 1635 | }
|
1636 + | /* ServerBuilderGenerator.kt:331 */
|
1008 1637 | #[allow(missing_docs)] // documentation missing in model
|
1638 + | /* ServerBuilderGenerator.kt:343 */
|
1009 1639 | pub fn r#async(mut self, input: ::std::option::Option<bool>) -> Self {
|
1010 - | self.r#async = input;
|
1640 + | /* ServerBuilderGenerator.kt:344 */
|
1641 + | self.r#async =
|
1642 + | /* ServerBuilderGenerator.kt:376 */input
|
1643 + | /* ServerBuilderGenerator.kt:344 */;
|
1011 1644 | self
|
1645 + | /* ServerBuilderGenerator.kt:343 */
|
1012 1646 | }
|
1647 + | /* ServerBuilderGenerator.kt:426 */
|
1013 1648 | #[allow(missing_docs)] // documentation missing in model
|
1649 + | /* ServerBuilderGenerator.kt:428 */
|
1014 1650 | pub(crate) fn set_async(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1651 + | /* ServerBuilderGenerator.kt:429 */
|
1015 1652 | self.r#async = input.map(|v| v.into());
|
1016 1653 | self
|
1654 + | /* ServerBuilderGenerator.kt:428 */
|
1017 1655 | }
|
1656 + | /* ServerBuilderGenerator.kt:331 */
|
1018 1657 | #[allow(missing_docs)] // documentation missing in model
|
1658 + | /* ServerBuilderGenerator.kt:343 */
|
1019 1659 | pub fn r#enum(
|
1020 1660 | mut self,
|
1021 1661 | input: ::std::option::Option<crate::model::UnknownVariantCollidingEnum>,
|
1022 1662 | ) -> Self {
|
1023 - | self.r#enum = input.map(
|
1024 - | #[allow(clippy::redundant_closure)]
|
1025 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1026 - | );
|
1663 + | /* ServerBuilderGenerator.kt:344 */
|
1664 + | self.r#enum =
|
1665 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
1666 + | /* ServerBuilderGenerator.kt:344 */;
|
1027 1667 | self
|
1668 + | /* ServerBuilderGenerator.kt:343 */
|
1028 1669 | }
|
1670 + | /* ServerBuilderGenerator.kt:426 */
|
1029 1671 | #[allow(missing_docs)] // documentation missing in model
|
1672 + | /* ServerBuilderGenerator.kt:428 */
|
1030 1673 | pub(crate) fn set_enum(
|
1031 1674 | mut self,
|
1032 1675 | input: Option<
|
1033 1676 | impl ::std::convert::Into<
|
1034 1677 | crate::constrained::MaybeConstrained<crate::model::UnknownVariantCollidingEnum>,
|
1035 1678 | >,
|
1036 1679 | >,
|
1037 1680 | ) -> Self {
|
1681 + | /* ServerBuilderGenerator.kt:429 */
|
1038 1682 | self.r#enum = input.map(|v| v.into());
|
1039 1683 | self
|
1684 + | /* ServerBuilderGenerator.kt:428 */
|
1040 1685 | }
|
1686 + | /* ServerBuilderGenerator.kt:331 */
|
1041 1687 | #[allow(missing_docs)] // documentation missing in model
|
1688 + | /* ServerBuilderGenerator.kt:343 */
|
1042 1689 | pub fn self_(mut self, input: ::std::option::Option<bool>) -> Self {
|
1043 - | self.self_ = input;
|
1690 + | /* ServerBuilderGenerator.kt:344 */
|
1691 + | self.self_ =
|
1692 + | /* ServerBuilderGenerator.kt:376 */input
|
1693 + | /* ServerBuilderGenerator.kt:344 */;
|
1044 1694 | self
|
1695 + | /* ServerBuilderGenerator.kt:343 */
|
1045 1696 | }
|
1697 + | /* ServerBuilderGenerator.kt:426 */
|
1046 1698 | #[allow(missing_docs)] // documentation missing in model
|
1699 + | /* ServerBuilderGenerator.kt:428 */
|
1047 1700 | pub(crate) fn set_self(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1701 + | /* ServerBuilderGenerator.kt:429 */
|
1048 1702 | self.self_ = input.map(|v| v.into());
|
1049 1703 | self
|
1704 + | /* ServerBuilderGenerator.kt:428 */
|
1050 1705 | }
|
1706 + | /* ServerBuilderGenerator.kt:331 */
|
1051 1707 | #[allow(missing_docs)] // documentation missing in model
|
1708 + | /* ServerBuilderGenerator.kt:343 */
|
1052 1709 | pub fn crate_(mut self, input: ::std::option::Option<bool>) -> Self {
|
1053 - | self.crate_ = input;
|
1710 + | /* ServerBuilderGenerator.kt:344 */
|
1711 + | self.crate_ =
|
1712 + | /* ServerBuilderGenerator.kt:376 */input
|
1713 + | /* ServerBuilderGenerator.kt:344 */;
|
1054 1714 | self
|
1715 + | /* ServerBuilderGenerator.kt:343 */
|
1055 1716 | }
|
1717 + | /* ServerBuilderGenerator.kt:426 */
|
1056 1718 | #[allow(missing_docs)] // documentation missing in model
|
1719 + | /* ServerBuilderGenerator.kt:428 */
|
1057 1720 | pub(crate) fn set_crate(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1721 + | /* ServerBuilderGenerator.kt:429 */
|
1058 1722 | self.crate_ = input.map(|v| v.into());
|
1059 1723 | self
|
1724 + | /* ServerBuilderGenerator.kt:428 */
|
1060 1725 | }
|
1726 + | /* ServerBuilderGenerator.kt:331 */
|
1061 1727 | #[allow(missing_docs)] // documentation missing in model
|
1728 + | /* ServerBuilderGenerator.kt:343 */
|
1062 1729 | pub fn super_(mut self, input: ::std::option::Option<bool>) -> Self {
|
1063 - | self.super_ = input;
|
1730 + | /* ServerBuilderGenerator.kt:344 */
|
1731 + | self.super_ =
|
1732 + | /* ServerBuilderGenerator.kt:376 */input
|
1733 + | /* ServerBuilderGenerator.kt:344 */;
|
1064 1734 | self
|
1735 + | /* ServerBuilderGenerator.kt:343 */
|
1065 1736 | }
|
1737 + | /* ServerBuilderGenerator.kt:426 */
|
1066 1738 | #[allow(missing_docs)] // documentation missing in model
|
1739 + | /* ServerBuilderGenerator.kt:428 */
|
1067 1740 | pub(crate) fn set_super(mut self, input: Option<impl ::std::convert::Into<bool>>) -> Self {
|
1741 + | /* ServerBuilderGenerator.kt:429 */
|
1068 1742 | self.super_ = input.map(|v| v.into());
|
1069 1743 | self
|
1744 + | /* ServerBuilderGenerator.kt:428 */
|
1070 1745 | }
|
1746 + | /* ServerBuilderGenerator.kt:331 */
|
1071 1747 | #[allow(missing_docs)] // documentation missing in model
|
1748 + | /* ServerBuilderGenerator.kt:343 */
|
1072 1749 | pub fn build_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1073 - | self.build_value = input;
|
1750 + | /* ServerBuilderGenerator.kt:344 */
|
1751 + | self.build_value =
|
1752 + | /* ServerBuilderGenerator.kt:376 */input
|
1753 + | /* ServerBuilderGenerator.kt:344 */;
|
1074 1754 | self
|
1755 + | /* ServerBuilderGenerator.kt:343 */
|
1075 1756 | }
|
1757 + | /* ServerBuilderGenerator.kt:426 */
|
1076 1758 | #[allow(missing_docs)] // documentation missing in model
|
1759 + | /* ServerBuilderGenerator.kt:428 */
|
1077 1760 | pub(crate) fn set_build(
|
1078 1761 | mut self,
|
1079 1762 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1080 1763 | ) -> Self {
|
1764 + | /* ServerBuilderGenerator.kt:429 */
|
1081 1765 | self.build_value = input.map(|v| v.into());
|
1082 1766 | self
|
1767 + | /* ServerBuilderGenerator.kt:428 */
|
1083 1768 | }
|
1769 + | /* ServerBuilderGenerator.kt:331 */
|
1084 1770 | #[allow(missing_docs)] // documentation missing in model
|
1771 + | /* ServerBuilderGenerator.kt:343 */
|
1085 1772 | pub fn default_value(
|
1086 1773 | mut self,
|
1087 1774 | input: ::std::option::Option<::std::string::String>,
|
1088 1775 | ) -> Self {
|
1089 - | self.default_value = input;
|
1776 + | /* ServerBuilderGenerator.kt:344 */
|
1777 + | self.default_value =
|
1778 + | /* ServerBuilderGenerator.kt:376 */input
|
1779 + | /* ServerBuilderGenerator.kt:344 */;
|
1090 1780 | self
|
1781 + | /* ServerBuilderGenerator.kt:343 */
|
1091 1782 | }
|
1783 + | /* ServerBuilderGenerator.kt:426 */
|
1092 1784 | #[allow(missing_docs)] // documentation missing in model
|
1785 + | /* ServerBuilderGenerator.kt:428 */
|
1093 1786 | pub(crate) fn set_default(
|
1094 1787 | mut self,
|
1095 1788 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1096 1789 | ) -> Self {
|
1790 + | /* ServerBuilderGenerator.kt:429 */
|
1097 1791 | self.default_value = input.map(|v| v.into());
|
1098 1792 | self
|
1793 + | /* ServerBuilderGenerator.kt:428 */
|
1099 1794 | }
|
1795 + | /* ServerBuilderGenerator.kt:331 */
|
1100 1796 | #[allow(missing_docs)] // documentation missing in model
|
1797 + | /* ServerBuilderGenerator.kt:343 */
|
1101 1798 | pub fn send(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1102 - | self.send = input;
|
1799 + | /* ServerBuilderGenerator.kt:344 */
|
1800 + | self.send =
|
1801 + | /* ServerBuilderGenerator.kt:376 */input
|
1802 + | /* ServerBuilderGenerator.kt:344 */;
|
1103 1803 | self
|
1804 + | /* ServerBuilderGenerator.kt:343 */
|
1104 1805 | }
|
1806 + | /* ServerBuilderGenerator.kt:426 */
|
1105 1807 | #[allow(missing_docs)] // documentation missing in model
|
1808 + | /* ServerBuilderGenerator.kt:428 */
|
1106 1809 | pub(crate) fn set_send(
|
1107 1810 | mut self,
|
1108 1811 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1109 1812 | ) -> Self {
|
1813 + | /* ServerBuilderGenerator.kt:429 */
|
1110 1814 | self.send = input.map(|v| v.into());
|
1111 1815 | self
|
1816 + | /* ServerBuilderGenerator.kt:428 */
|
1112 1817 | }
|
1113 - | /// Consumes the builder and constructs a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
1114 - | ///
|
1818 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput).
|
1819 + | /// /* ServerBuilderGenerator.kt:260 */
|
1115 1820 | /// The builder fails to construct a [`ReservedWordsAsMembersInput`](crate::input::ReservedWordsAsMembersInput) if a [`ConstraintViolation`] occurs.
|
1116 1821 | ///
|
1822 + | /* ServerBuilderGenerator.kt:271 */
|
1117 1823 | pub fn build(
|
1118 1824 | self,
|
1119 1825 | ) -> Result<crate::input::ReservedWordsAsMembersInput, ConstraintViolation> {
|
1120 1826 | self.build_enforcing_all_constraints()
|
1121 1827 | }
|
1828 + | /* ServerBuilderGenerator.kt:283 */
|
1122 1829 | fn build_enforcing_all_constraints(
|
1123 1830 | self,
|
1124 1831 | ) -> Result<crate::input::ReservedWordsAsMembersInput, ConstraintViolation> {
|
1125 - | Ok(crate::input::ReservedWordsAsMembersInput {
|
1832 + | /* ServerBuilderGenerator.kt:287 */
|
1833 + | Ok(
|
1834 + | /* ServerBuilderGenerator.kt:542 */
|
1835 + | crate::input::ReservedWordsAsMembersInput {
|
1836 + | /* ServerBuilderGenerator.kt:546 */
|
1126 1837 | r#as: self.r#as,
|
1838 + | /* ServerBuilderGenerator.kt:546 */
|
1127 1839 | r#async: self.r#async,
|
1840 + | /* ServerBuilderGenerator.kt:546 */
|
1128 1841 | r#enum: self
|
1129 1842 | .r#enum
|
1843 + | /* ServerBuilderGenerator.kt:602 */
|
1130 1844 | .map(|v| match v {
|
1131 1845 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1132 1846 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1133 1847 | })
|
1848 + | /* ServerBuilderGenerator.kt:614 */
|
1134 1849 | .map(|res| res.map_err(ConstraintViolation::Enum))
|
1135 1850 | .transpose()?,
|
1851 + | /* ServerBuilderGenerator.kt:546 */
|
1136 1852 | self_: self.self_,
|
1853 + | /* ServerBuilderGenerator.kt:546 */
|
1137 1854 | crate_: self.crate_,
|
1855 + | /* ServerBuilderGenerator.kt:546 */
|
1138 1856 | super_: self.super_,
|
1857 + | /* ServerBuilderGenerator.kt:546 */
|
1139 1858 | build_value: self.build_value,
|
1859 + | /* ServerBuilderGenerator.kt:546 */
|
1140 1860 | default_value: self.default_value,
|
1861 + | /* ServerBuilderGenerator.kt:546 */
|
1141 1862 | send: self.send,
|
1142 - | })
|
1863 + | /* ServerBuilderGenerator.kt:542 */
|
1864 + | }, /* ServerBuilderGenerator.kt:287 */
|
1865 + | )
|
1866 + | /* ServerBuilderGenerator.kt:283 */
|
1143 1867 | }
|
1868 + | /* ServerBuilderGenerator.kt:215 */
|
1144 1869 | }
|
1870 + |
|
1871 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1145 1872 | }
|