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