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