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