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(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4 - | pub struct OperationWithNestedStructureInput {
|
6 + | pub /* StructureGenerator.kt:201 */ struct OperationWithNestedStructureInput {
|
7 + | /* StructureGenerator.kt:231 */
|
5 8 | #[allow(missing_docs)] // documentation missing in model
|
6 9 | pub top_level: crate::model::TopLevel,
|
10 + | /* StructureGenerator.kt:201 */
|
7 11 | }
|
12 + | /* StructureGenerator.kt:135 */
|
8 13 | impl OperationWithNestedStructureInput {
|
14 + | /* StructureGenerator.kt:231 */
|
9 15 | #[allow(missing_docs)] // documentation missing in model
|
16 + | /* StructureGenerator.kt:166 */
|
10 17 | pub fn top_level(&self) -> &crate::model::TopLevel {
|
18 + | /* StructureGenerator.kt:172 */
|
11 19 | &self.top_level
|
20 + | /* StructureGenerator.kt:166 */
|
12 21 | }
|
22 + | /* StructureGenerator.kt:135 */
|
13 23 | }
|
24 + | /* ServerCodegenVisitor.kt:345 */
|
14 25 | impl OperationWithNestedStructureInput {
|
15 - | /// Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
26 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
27 + | /* ServerBuilderGenerator.kt:295 */
|
16 28 | pub fn builder() -> crate::input::operation_with_nested_structure_input::Builder {
|
29 + | /* ServerBuilderGenerator.kt:296 */
|
17 30 | crate::input::operation_with_nested_structure_input::Builder::default()
|
31 + | /* ServerBuilderGenerator.kt:295 */
|
18 32 | }
|
33 + | /* ServerCodegenVisitor.kt:345 */
|
19 34 | }
|
35 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
20 36 | impl crate::constrained::Constrained for crate::input::OperationWithNestedStructureInput {
|
21 37 | type Unconstrained = crate::input::operation_with_nested_structure_input::Builder;
|
22 38 | }
|
23 39 |
|
40 + | /* StructureGenerator.kt:197 */
|
24 41 | #[allow(missing_docs)] // documentation missing in model
|
42 + | /* RustType.kt:516 */
|
25 43 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
26 - | pub struct OperationWithDefaultsInput {
|
44 + | pub /* StructureGenerator.kt:201 */ struct OperationWithDefaultsInput {
|
45 + | /* StructureGenerator.kt:231 */
|
27 46 | #[allow(missing_docs)] // documentation missing in model
|
28 47 | pub defaults: ::std::option::Option<crate::model::Defaults>,
|
48 + | /* StructureGenerator.kt:231 */
|
29 49 | #[allow(missing_docs)] // documentation missing in model
|
30 50 | pub client_optional_defaults: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
51 + | /* StructureGenerator.kt:231 */
|
31 52 | #[allow(missing_docs)] // documentation missing in model
|
32 53 | pub top_level_default: ::std::string::String,
|
54 + | /* StructureGenerator.kt:231 */
|
33 55 | #[allow(missing_docs)] // documentation missing in model
|
34 56 | pub other_top_level_default: i32,
|
57 + | /* StructureGenerator.kt:201 */
|
35 58 | }
|
59 + | /* StructureGenerator.kt:135 */
|
36 60 | impl OperationWithDefaultsInput {
|
61 + | /* StructureGenerator.kt:231 */
|
37 62 | #[allow(missing_docs)] // documentation missing in model
|
63 + | /* StructureGenerator.kt:166 */
|
38 64 | pub fn defaults(&self) -> ::std::option::Option<&crate::model::Defaults> {
|
65 + | /* StructureGenerator.kt:170 */
|
39 66 | self.defaults.as_ref()
|
67 + | /* StructureGenerator.kt:166 */
|
40 68 | }
|
69 + | /* StructureGenerator.kt:231 */
|
41 70 | #[allow(missing_docs)] // documentation missing in model
|
71 + | /* StructureGenerator.kt:166 */
|
42 72 | pub fn client_optional_defaults(
|
43 73 | &self,
|
44 74 | ) -> ::std::option::Option<&crate::model::ClientOptionalDefaults> {
|
75 + | /* StructureGenerator.kt:170 */
|
45 76 | self.client_optional_defaults.as_ref()
|
77 + | /* StructureGenerator.kt:166 */
|
46 78 | }
|
79 + | /* StructureGenerator.kt:231 */
|
47 80 | #[allow(missing_docs)] // documentation missing in model
|
81 + | /* StructureGenerator.kt:166 */
|
48 82 | pub fn top_level_default(&self) -> &str {
|
83 + | /* StructureGenerator.kt:171 */
|
49 84 | use std::ops::Deref;
|
50 85 | self.top_level_default.deref()
|
86 + | /* StructureGenerator.kt:166 */
|
51 87 | }
|
88 + | /* StructureGenerator.kt:231 */
|
52 89 | #[allow(missing_docs)] // documentation missing in model
|
90 + | /* StructureGenerator.kt:166 */
|
53 91 | pub fn other_top_level_default(&self) -> i32 {
|
92 + | /* StructureGenerator.kt:168 */
|
54 93 | self.other_top_level_default
|
94 + | /* StructureGenerator.kt:166 */
|
55 95 | }
|
96 + | /* StructureGenerator.kt:135 */
|
56 97 | }
|
98 + | /* ServerCodegenVisitor.kt:345 */
|
57 99 | impl OperationWithDefaultsInput {
|
58 - | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
100 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
101 + | /* ServerBuilderGenerator.kt:295 */
|
59 102 | pub fn builder() -> crate::input::operation_with_defaults_input::Builder {
|
103 + | /* ServerBuilderGenerator.kt:296 */
|
60 104 | crate::input::operation_with_defaults_input::Builder::default()
|
105 + | /* ServerBuilderGenerator.kt:295 */
|
61 106 | }
|
107 + | /* ServerCodegenVisitor.kt:345 */
|
62 108 | }
|
109 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
63 110 | impl crate::constrained::Constrained for crate::input::OperationWithDefaultsInput {
|
64 111 | type Unconstrained = crate::input::operation_with_defaults_input::Builder;
|
65 112 | }
|
66 113 |
|
114 + | /* StructureGenerator.kt:197 */
|
67 115 | #[allow(missing_docs)] // documentation missing in model
|
116 + | /* RustType.kt:516 */
|
68 117 | #[derive(
|
69 118 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
70 119 | )]
|
71 - | pub struct ContentTypeParametersInput {
|
120 + | pub /* StructureGenerator.kt:201 */ struct ContentTypeParametersInput {
|
121 + | /* StructureGenerator.kt:231 */
|
72 122 | #[allow(missing_docs)] // documentation missing in model
|
73 123 | pub value: ::std::option::Option<i32>,
|
124 + | /* StructureGenerator.kt:201 */
|
74 125 | }
|
126 + | /* StructureGenerator.kt:135 */
|
75 127 | impl ContentTypeParametersInput {
|
128 + | /* StructureGenerator.kt:231 */
|
76 129 | #[allow(missing_docs)] // documentation missing in model
|
130 + | /* StructureGenerator.kt:166 */
|
77 131 | pub fn value(&self) -> ::std::option::Option<i32> {
|
132 + | /* StructureGenerator.kt:168 */
|
78 133 | self.value
|
134 + | /* StructureGenerator.kt:166 */
|
79 135 | }
|
136 + | /* StructureGenerator.kt:135 */
|
80 137 | }
|
138 + | /* ServerCodegenVisitor.kt:345 */
|
81 139 | impl ContentTypeParametersInput {
|
82 - | /// Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
140 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
141 + | /* ServerBuilderGenerator.kt:295 */
|
83 142 | pub fn builder() -> crate::input::content_type_parameters_input::Builder {
|
143 + | /* ServerBuilderGenerator.kt:296 */
|
84 144 | crate::input::content_type_parameters_input::Builder::default()
|
145 + | /* ServerBuilderGenerator.kt:295 */
|
85 146 | }
|
147 + | /* ServerCodegenVisitor.kt:345 */
|
86 148 | }
|
149 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
87 150 | impl crate::constrained::Constrained for crate::input::ContentTypeParametersInput {
|
88 151 | type Unconstrained = crate::input::content_type_parameters_input::Builder;
|
89 152 | }
|
90 153 |
|
154 + | /* StructureGenerator.kt:197 */
|
91 155 | #[allow(missing_docs)] // documentation missing in model
|
156 + | /* RustType.kt:516 */
|
92 157 | #[derive(
|
93 158 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
94 159 | )]
|
95 - | pub struct PutWithContentEncodingInput {
|
160 + | pub /* StructureGenerator.kt:201 */ struct PutWithContentEncodingInput {
|
161 + | /* StructureGenerator.kt:231 */
|
96 162 | #[allow(missing_docs)] // documentation missing in model
|
97 163 | pub encoding: ::std::option::Option<::std::string::String>,
|
164 + | /* StructureGenerator.kt:231 */
|
98 165 | #[allow(missing_docs)] // documentation missing in model
|
99 166 | pub data: ::std::option::Option<::std::string::String>,
|
167 + | /* StructureGenerator.kt:201 */
|
100 168 | }
|
169 + | /* StructureGenerator.kt:135 */
|
101 170 | impl PutWithContentEncodingInput {
|
171 + | /* StructureGenerator.kt:231 */
|
102 172 | #[allow(missing_docs)] // documentation missing in model
|
173 + | /* StructureGenerator.kt:166 */
|
103 174 | pub fn encoding(&self) -> ::std::option::Option<&str> {
|
175 + | /* StructureGenerator.kt:169 */
|
104 176 | self.encoding.as_deref()
|
177 + | /* StructureGenerator.kt:166 */
|
105 178 | }
|
179 + | /* StructureGenerator.kt:231 */
|
106 180 | #[allow(missing_docs)] // documentation missing in model
|
181 + | /* StructureGenerator.kt:166 */
|
107 182 | pub fn data(&self) -> ::std::option::Option<&str> {
|
183 + | /* StructureGenerator.kt:169 */
|
108 184 | self.data.as_deref()
|
185 + | /* StructureGenerator.kt:166 */
|
109 186 | }
|
187 + | /* StructureGenerator.kt:135 */
|
110 188 | }
|
189 + | /* ServerCodegenVisitor.kt:345 */
|
111 190 | impl PutWithContentEncodingInput {
|
112 - | /// Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
191 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
192 + | /* ServerBuilderGenerator.kt:295 */
|
113 193 | pub fn builder() -> crate::input::put_with_content_encoding_input::Builder {
|
194 + | /* ServerBuilderGenerator.kt:296 */
|
114 195 | crate::input::put_with_content_encoding_input::Builder::default()
|
196 + | /* ServerBuilderGenerator.kt:295 */
|
115 197 | }
|
198 + | /* ServerCodegenVisitor.kt:345 */
|
116 199 | }
|
200 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
117 201 | impl crate::constrained::Constrained for crate::input::PutWithContentEncodingInput {
|
118 202 | type Unconstrained = crate::input::put_with_content_encoding_input::Builder;
|
119 203 | }
|
120 204 |
|
205 + | /* StructureGenerator.kt:197 */
|
121 206 | #[allow(missing_docs)] // documentation missing in model
|
207 + | /* RustType.kt:516 */
|
122 208 | #[derive(
|
123 209 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
124 210 | )]
|
125 - | pub struct FractionalSecondsInput {}
|
211 + | pub /* StructureGenerator.kt:201 */ struct FractionalSecondsInput {/* StructureGenerator.kt:201 */}
|
212 + | /* ServerCodegenVisitor.kt:345 */
|
126 213 | impl FractionalSecondsInput {
|
127 - | /// Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
214 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
215 + | /* ServerBuilderGenerator.kt:295 */
|
128 216 | pub fn builder() -> crate::input::fractional_seconds_input::Builder {
|
217 + | /* ServerBuilderGenerator.kt:296 */
|
129 218 | crate::input::fractional_seconds_input::Builder::default()
|
219 + | /* ServerBuilderGenerator.kt:295 */
|
130 220 | }
|
221 + | /* ServerCodegenVisitor.kt:345 */
|
131 222 | }
|
223 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
132 224 | impl crate::constrained::Constrained for crate::input::FractionalSecondsInput {
|
133 225 | type Unconstrained = crate::input::fractional_seconds_input::Builder;
|
134 226 | }
|
135 227 |
|
228 + | /* StructureGenerator.kt:197 */
|
136 229 | #[allow(missing_docs)] // documentation missing in model
|
230 + | /* RustType.kt:516 */
|
137 231 | #[derive(
|
138 232 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
139 233 | )]
|
140 - | pub struct DatetimeOffsetsInput {}
|
234 + | pub /* StructureGenerator.kt:201 */ struct DatetimeOffsetsInput {/* StructureGenerator.kt:201 */}
|
235 + | /* ServerCodegenVisitor.kt:345 */
|
141 236 | impl DatetimeOffsetsInput {
|
142 - | /// Creates a new builder-style object to manufacture [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
237 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
238 + | /* ServerBuilderGenerator.kt:295 */
|
143 239 | pub fn builder() -> crate::input::datetime_offsets_input::Builder {
|
240 + | /* ServerBuilderGenerator.kt:296 */
|
144 241 | crate::input::datetime_offsets_input::Builder::default()
|
242 + | /* ServerBuilderGenerator.kt:295 */
|
145 243 | }
|
244 + | /* ServerCodegenVisitor.kt:345 */
|
146 245 | }
|
246 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
147 247 | impl crate::constrained::Constrained for crate::input::DatetimeOffsetsInput {
|
148 248 | type Unconstrained = crate::input::datetime_offsets_input::Builder;
|
149 249 | }
|
150 250 |
|
251 + | /* StructureGenerator.kt:197 */
|
151 252 | #[allow(missing_docs)] // documentation missing in model
|
253 + | /* RustType.kt:516 */
|
152 254 | #[derive(
|
153 255 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
154 256 | )]
|
155 - | pub struct TestPostNoInputNoPayloadInput {}
|
257 + | pub /* StructureGenerator.kt:201 */ struct TestPostNoInputNoPayloadInput {/* StructureGenerator.kt:201 */}
|
258 + | /* ServerCodegenVisitor.kt:345 */
|
156 259 | impl TestPostNoInputNoPayloadInput {
|
157 - | /// Creates a new builder-style object to manufacture [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
260 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
261 + | /* ServerBuilderGenerator.kt:295 */
|
158 262 | pub fn builder() -> crate::input::test_post_no_input_no_payload_input::Builder {
|
263 + | /* ServerBuilderGenerator.kt:296 */
|
159 264 | crate::input::test_post_no_input_no_payload_input::Builder::default()
|
265 + | /* ServerBuilderGenerator.kt:295 */
|
160 266 | }
|
267 + | /* ServerCodegenVisitor.kt:345 */
|
161 268 | }
|
269 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
162 270 | impl crate::constrained::Constrained for crate::input::TestPostNoInputNoPayloadInput {
|
163 271 | type Unconstrained = crate::input::test_post_no_input_no_payload_input::Builder;
|
164 272 | }
|
165 273 |
|
274 + | /* StructureGenerator.kt:197 */
|
166 275 | #[allow(missing_docs)] // documentation missing in model
|
276 + | /* RustType.kt:516 */
|
167 277 | #[derive(
|
168 278 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
169 279 | )]
|
170 - | pub struct TestGetNoInputNoPayloadInput {}
|
280 + | pub /* StructureGenerator.kt:201 */ struct TestGetNoInputNoPayloadInput {/* StructureGenerator.kt:201 */}
|
281 + | /* ServerCodegenVisitor.kt:345 */
|
171 282 | impl TestGetNoInputNoPayloadInput {
|
172 - | /// Creates a new builder-style object to manufacture [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
283 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
284 + | /* ServerBuilderGenerator.kt:295 */
|
173 285 | pub fn builder() -> crate::input::test_get_no_input_no_payload_input::Builder {
|
286 + | /* ServerBuilderGenerator.kt:296 */
|
174 287 | crate::input::test_get_no_input_no_payload_input::Builder::default()
|
288 + | /* ServerBuilderGenerator.kt:295 */
|
175 289 | }
|
290 + | /* ServerCodegenVisitor.kt:345 */
|
176 291 | }
|
292 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
177 293 | impl crate::constrained::Constrained for crate::input::TestGetNoInputNoPayloadInput {
|
178 294 | type Unconstrained = crate::input::test_get_no_input_no_payload_input::Builder;
|
179 295 | }
|
180 296 |
|
297 + | /* StructureGenerator.kt:197 */
|
181 298 | #[allow(missing_docs)] // documentation missing in model
|
299 + | /* RustType.kt:516 */
|
182 300 | #[derive(
|
183 301 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
184 302 | )]
|
185 - | pub struct TestPostNoPayloadInput {
|
303 + | pub /* StructureGenerator.kt:201 */ struct TestPostNoPayloadInput {
|
304 + | /* StructureGenerator.kt:231 */
|
186 305 | #[allow(missing_docs)] // documentation missing in model
|
187 306 | pub test_id: ::std::option::Option<::std::string::String>,
|
307 + | /* StructureGenerator.kt:201 */
|
188 308 | }
|
309 + | /* StructureGenerator.kt:135 */
|
189 310 | impl TestPostNoPayloadInput {
|
311 + | /* StructureGenerator.kt:231 */
|
190 312 | #[allow(missing_docs)] // documentation missing in model
|
313 + | /* StructureGenerator.kt:166 */
|
191 314 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
315 + | /* StructureGenerator.kt:169 */
|
192 316 | self.test_id.as_deref()
|
317 + | /* StructureGenerator.kt:166 */
|
193 318 | }
|
319 + | /* StructureGenerator.kt:135 */
|
194 320 | }
|
321 + | /* ServerCodegenVisitor.kt:345 */
|
195 322 | impl TestPostNoPayloadInput {
|
196 - | /// Creates a new builder-style object to manufacture [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
323 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
324 + | /* ServerBuilderGenerator.kt:295 */
|
197 325 | pub fn builder() -> crate::input::test_post_no_payload_input::Builder {
|
326 + | /* ServerBuilderGenerator.kt:296 */
|
198 327 | crate::input::test_post_no_payload_input::Builder::default()
|
328 + | /* ServerBuilderGenerator.kt:295 */
|
199 329 | }
|
330 + | /* ServerCodegenVisitor.kt:345 */
|
200 331 | }
|
332 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
201 333 | impl crate::constrained::Constrained for crate::input::TestPostNoPayloadInput {
|
202 334 | type Unconstrained = crate::input::test_post_no_payload_input::Builder;
|
203 335 | }
|
204 336 |
|
337 + | /* StructureGenerator.kt:197 */
|
205 338 | #[allow(missing_docs)] // documentation missing in model
|
339 + | /* RustType.kt:516 */
|
206 340 | #[derive(
|
207 341 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
208 342 | )]
|
209 - | pub struct TestGetNoPayloadInput {
|
343 + | pub /* StructureGenerator.kt:201 */ struct TestGetNoPayloadInput {
|
344 + | /* StructureGenerator.kt:231 */
|
210 345 | #[allow(missing_docs)] // documentation missing in model
|
211 346 | pub test_id: ::std::option::Option<::std::string::String>,
|
347 + | /* StructureGenerator.kt:201 */
|
212 348 | }
|
349 + | /* StructureGenerator.kt:135 */
|
213 350 | impl TestGetNoPayloadInput {
|
351 + | /* StructureGenerator.kt:231 */
|
214 352 | #[allow(missing_docs)] // documentation missing in model
|
353 + | /* StructureGenerator.kt:166 */
|
215 354 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
355 + | /* StructureGenerator.kt:169 */
|
216 356 | self.test_id.as_deref()
|
357 + | /* StructureGenerator.kt:166 */
|
217 358 | }
|
359 + | /* StructureGenerator.kt:135 */
|
218 360 | }
|
361 + | /* ServerCodegenVisitor.kt:345 */
|
219 362 | impl TestGetNoPayloadInput {
|
220 - | /// Creates a new builder-style object to manufacture [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
363 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
364 + | /* ServerBuilderGenerator.kt:295 */
|
221 365 | pub fn builder() -> crate::input::test_get_no_payload_input::Builder {
|
366 + | /* ServerBuilderGenerator.kt:296 */
|
222 367 | crate::input::test_get_no_payload_input::Builder::default()
|
368 + | /* ServerBuilderGenerator.kt:295 */
|
223 369 | }
|
370 + | /* ServerCodegenVisitor.kt:345 */
|
224 371 | }
|
372 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
225 373 | impl crate::constrained::Constrained for crate::input::TestGetNoPayloadInput {
|
226 374 | type Unconstrained = crate::input::test_get_no_payload_input::Builder;
|
227 375 | }
|
228 376 |
|
377 + | /* StructureGenerator.kt:197 */
|
229 378 | #[allow(missing_docs)] // documentation missing in model
|
379 + | /* RustType.kt:516 */
|
230 380 | #[derive(
|
231 381 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
232 382 | )]
|
233 - | pub struct TestPayloadBlobInput {
|
383 + | pub /* StructureGenerator.kt:201 */ struct TestPayloadBlobInput {
|
384 + | /* StructureGenerator.kt:231 */
|
234 385 | #[allow(missing_docs)] // documentation missing in model
|
235 386 | pub content_type: ::std::option::Option<::std::string::String>,
|
387 + | /* StructureGenerator.kt:231 */
|
236 388 | #[allow(missing_docs)] // documentation missing in model
|
237 389 | pub data: ::std::option::Option<::aws_smithy_types::Blob>,
|
390 + | /* StructureGenerator.kt:201 */
|
238 391 | }
|
392 + | /* StructureGenerator.kt:135 */
|
239 393 | impl TestPayloadBlobInput {
|
394 + | /* StructureGenerator.kt:231 */
|
240 395 | #[allow(missing_docs)] // documentation missing in model
|
396 + | /* StructureGenerator.kt:166 */
|
241 397 | pub fn content_type(&self) -> ::std::option::Option<&str> {
|
398 + | /* StructureGenerator.kt:169 */
|
242 399 | self.content_type.as_deref()
|
400 + | /* StructureGenerator.kt:166 */
|
243 401 | }
|
402 + | /* StructureGenerator.kt:231 */
|
244 403 | #[allow(missing_docs)] // documentation missing in model
|
404 + | /* StructureGenerator.kt:166 */
|
245 405 | pub fn data(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
406 + | /* StructureGenerator.kt:170 */
|
246 407 | self.data.as_ref()
|
408 + | /* StructureGenerator.kt:166 */
|
247 409 | }
|
410 + | /* StructureGenerator.kt:135 */
|
248 411 | }
|
412 + | /* ServerCodegenVisitor.kt:345 */
|
249 413 | impl TestPayloadBlobInput {
|
250 - | /// Creates a new builder-style object to manufacture [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
414 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
415 + | /* ServerBuilderGenerator.kt:295 */
|
251 416 | pub fn builder() -> crate::input::test_payload_blob_input::Builder {
|
417 + | /* ServerBuilderGenerator.kt:296 */
|
252 418 | crate::input::test_payload_blob_input::Builder::default()
|
419 + | /* ServerBuilderGenerator.kt:295 */
|
253 420 | }
|
421 + | /* ServerCodegenVisitor.kt:345 */
|
254 422 | }
|
423 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
255 424 | impl crate::constrained::Constrained for crate::input::TestPayloadBlobInput {
|
256 425 | type Unconstrained = crate::input::test_payload_blob_input::Builder;
|
257 426 | }
|
258 427 |
|
428 + | /* StructureGenerator.kt:197 */
|
259 429 | #[allow(missing_docs)] // documentation missing in model
|
430 + | /* RustType.kt:516 */
|
260 431 | #[derive(
|
261 432 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
262 433 | )]
|
263 - | pub struct TestPayloadStructureInput {
|
434 + | pub /* StructureGenerator.kt:201 */ struct TestPayloadStructureInput {
|
435 + | /* StructureGenerator.kt:231 */
|
264 436 | #[allow(missing_docs)] // documentation missing in model
|
265 437 | pub test_id: ::std::option::Option<::std::string::String>,
|
438 + | /* StructureGenerator.kt:231 */
|
266 439 | #[allow(missing_docs)] // documentation missing in model
|
267 440 | pub payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
441 + | /* StructureGenerator.kt:201 */
|
268 442 | }
|
443 + | /* StructureGenerator.kt:135 */
|
269 444 | impl TestPayloadStructureInput {
|
445 + | /* StructureGenerator.kt:231 */
|
270 446 | #[allow(missing_docs)] // documentation missing in model
|
447 + | /* StructureGenerator.kt:166 */
|
271 448 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
449 + | /* StructureGenerator.kt:169 */
|
272 450 | self.test_id.as_deref()
|
451 + | /* StructureGenerator.kt:166 */
|
273 452 | }
|
453 + | /* StructureGenerator.kt:231 */
|
274 454 | #[allow(missing_docs)] // documentation missing in model
|
455 + | /* StructureGenerator.kt:166 */
|
275 456 | pub fn payload_config(&self) -> ::std::option::Option<&crate::model::PayloadConfig> {
|
457 + | /* StructureGenerator.kt:170 */
|
276 458 | self.payload_config.as_ref()
|
459 + | /* StructureGenerator.kt:166 */
|
277 460 | }
|
461 + | /* StructureGenerator.kt:135 */
|
278 462 | }
|
463 + | /* ServerCodegenVisitor.kt:345 */
|
279 464 | impl TestPayloadStructureInput {
|
280 - | /// Creates a new builder-style object to manufacture [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
465 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
466 + | /* ServerBuilderGenerator.kt:295 */
|
281 467 | pub fn builder() -> crate::input::test_payload_structure_input::Builder {
|
468 + | /* ServerBuilderGenerator.kt:296 */
|
282 469 | crate::input::test_payload_structure_input::Builder::default()
|
470 + | /* ServerBuilderGenerator.kt:295 */
|
283 471 | }
|
472 + | /* ServerCodegenVisitor.kt:345 */
|
284 473 | }
|
474 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
285 475 | impl crate::constrained::Constrained for crate::input::TestPayloadStructureInput {
|
286 476 | type Unconstrained = crate::input::test_payload_structure_input::Builder;
|
287 477 | }
|
288 478 |
|
479 + | /* StructureGenerator.kt:197 */
|
289 480 | #[allow(missing_docs)] // documentation missing in model
|
481 + | /* RustType.kt:516 */
|
290 482 | #[derive(
|
291 483 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
292 484 | )]
|
293 - | pub struct TestBodyStructureInput {
|
485 + | pub /* StructureGenerator.kt:201 */ struct TestBodyStructureInput {
|
486 + | /* StructureGenerator.kt:231 */
|
294 487 | #[allow(missing_docs)] // documentation missing in model
|
295 488 | pub test_id: ::std::option::Option<::std::string::String>,
|
489 + | /* StructureGenerator.kt:231 */
|
296 490 | #[allow(missing_docs)] // documentation missing in model
|
297 491 | pub test_config: ::std::option::Option<crate::model::TestConfig>,
|
492 + | /* StructureGenerator.kt:201 */
|
298 493 | }
|
494 + | /* StructureGenerator.kt:135 */
|
299 495 | impl TestBodyStructureInput {
|
496 + | /* StructureGenerator.kt:231 */
|
300 497 | #[allow(missing_docs)] // documentation missing in model
|
498 + | /* StructureGenerator.kt:166 */
|
301 499 | pub fn test_id(&self) -> ::std::option::Option<&str> {
|
500 + | /* StructureGenerator.kt:169 */
|
302 501 | self.test_id.as_deref()
|
502 + | /* StructureGenerator.kt:166 */
|
303 503 | }
|
504 + | /* StructureGenerator.kt:231 */
|
304 505 | #[allow(missing_docs)] // documentation missing in model
|
506 + | /* StructureGenerator.kt:166 */
|
305 507 | pub fn test_config(&self) -> ::std::option::Option<&crate::model::TestConfig> {
|
508 + | /* StructureGenerator.kt:170 */
|
306 509 | self.test_config.as_ref()
|
510 + | /* StructureGenerator.kt:166 */
|
307 511 | }
|
512 + | /* StructureGenerator.kt:135 */
|
308 513 | }
|
514 + | /* ServerCodegenVisitor.kt:345 */
|
309 515 | impl TestBodyStructureInput {
|
310 - | /// Creates a new builder-style object to manufacture [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
516 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
517 + | /* ServerBuilderGenerator.kt:295 */
|
311 518 | pub fn builder() -> crate::input::test_body_structure_input::Builder {
|
519 + | /* ServerBuilderGenerator.kt:296 */
|
312 520 | crate::input::test_body_structure_input::Builder::default()
|
521 + | /* ServerBuilderGenerator.kt:295 */
|
313 522 | }
|
523 + | /* ServerCodegenVisitor.kt:345 */
|
314 524 | }
|
525 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
315 526 | impl crate::constrained::Constrained for crate::input::TestBodyStructureInput {
|
316 527 | type Unconstrained = crate::input::test_body_structure_input::Builder;
|
317 528 | }
|
318 529 |
|
530 + | /* StructureGenerator.kt:197 */
|
319 531 | #[allow(missing_docs)] // documentation missing in model
|
532 + | /* RustType.kt:516 */
|
320 533 | #[derive(
|
321 534 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
322 535 | )]
|
323 - | pub struct MalformedAcceptWithGenericStringInput {}
|
536 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithGenericStringInput {/* StructureGenerator.kt:201 */}
|
537 + | /* ServerCodegenVisitor.kt:345 */
|
324 538 | impl MalformedAcceptWithGenericStringInput {
|
325 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
539 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
540 + | /* ServerBuilderGenerator.kt:295 */
|
326 541 | pub fn builder() -> crate::input::malformed_accept_with_generic_string_input::Builder {
|
542 + | /* ServerBuilderGenerator.kt:296 */
|
327 543 | crate::input::malformed_accept_with_generic_string_input::Builder::default()
|
544 + | /* ServerBuilderGenerator.kt:295 */
|
328 545 | }
|
546 + | /* ServerCodegenVisitor.kt:345 */
|
329 547 | }
|
548 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
330 549 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithGenericStringInput {
|
331 550 | type Unconstrained = crate::input::malformed_accept_with_generic_string_input::Builder;
|
332 551 | }
|
333 552 |
|
553 + | /* StructureGenerator.kt:197 */
|
334 554 | #[allow(missing_docs)] // documentation missing in model
|
555 + | /* RustType.kt:516 */
|
335 556 | #[derive(
|
336 557 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
337 558 | )]
|
338 - | pub struct MalformedAcceptWithPayloadInput {}
|
559 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithPayloadInput {/* StructureGenerator.kt:201 */}
|
560 + | /* ServerCodegenVisitor.kt:345 */
|
339 561 | impl MalformedAcceptWithPayloadInput {
|
340 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
562 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
563 + | /* ServerBuilderGenerator.kt:295 */
|
341 564 | pub fn builder() -> crate::input::malformed_accept_with_payload_input::Builder {
|
565 + | /* ServerBuilderGenerator.kt:296 */
|
342 566 | crate::input::malformed_accept_with_payload_input::Builder::default()
|
567 + | /* ServerBuilderGenerator.kt:295 */
|
343 568 | }
|
569 + | /* ServerCodegenVisitor.kt:345 */
|
344 570 | }
|
571 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
345 572 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithPayloadInput {
|
346 573 | type Unconstrained = crate::input::malformed_accept_with_payload_input::Builder;
|
347 574 | }
|
348 575 |
|
576 + | /* StructureGenerator.kt:197 */
|
349 577 | #[allow(missing_docs)] // documentation missing in model
|
578 + | /* RustType.kt:516 */
|
350 579 | #[derive(
|
351 580 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
352 581 | )]
|
353 - | pub struct MalformedAcceptWithBodyInput {}
|
582 + | pub /* StructureGenerator.kt:201 */ struct MalformedAcceptWithBodyInput {/* StructureGenerator.kt:201 */}
|
583 + | /* ServerCodegenVisitor.kt:345 */
|
354 584 | impl MalformedAcceptWithBodyInput {
|
355 - | /// Creates a new builder-style object to manufacture [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
585 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
586 + | /* ServerBuilderGenerator.kt:295 */
|
356 587 | pub fn builder() -> crate::input::malformed_accept_with_body_input::Builder {
|
588 + | /* ServerBuilderGenerator.kt:296 */
|
357 589 | crate::input::malformed_accept_with_body_input::Builder::default()
|
590 + | /* ServerBuilderGenerator.kt:295 */
|
358 591 | }
|
592 + | /* ServerCodegenVisitor.kt:345 */
|
359 593 | }
|
594 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
360 595 | impl crate::constrained::Constrained for crate::input::MalformedAcceptWithBodyInput {
|
361 596 | type Unconstrained = crate::input::malformed_accept_with_body_input::Builder;
|
362 597 | }
|
363 598 |
|
599 + | /* StructureGenerator.kt:197 */
|
364 600 | #[allow(missing_docs)] // documentation missing in model
|
601 + | /* RustType.kt:516 */
|
365 602 | #[derive(
|
366 603 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
367 604 | )]
|
368 - | pub struct MalformedContentTypeWithGenericStringInput {
|
605 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithGenericStringInput {
|
606 + | /* StructureGenerator.kt:231 */
|
369 607 | #[allow(missing_docs)] // documentation missing in model
|
370 608 | pub payload: ::std::option::Option<::std::string::String>,
|
609 + | /* StructureGenerator.kt:201 */
|
371 610 | }
|
611 + | /* StructureGenerator.kt:135 */
|
372 612 | impl MalformedContentTypeWithGenericStringInput {
|
613 + | /* StructureGenerator.kt:231 */
|
373 614 | #[allow(missing_docs)] // documentation missing in model
|
615 + | /* StructureGenerator.kt:166 */
|
374 616 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
617 + | /* StructureGenerator.kt:169 */
|
375 618 | self.payload.as_deref()
|
619 + | /* StructureGenerator.kt:166 */
|
376 620 | }
|
621 + | /* StructureGenerator.kt:135 */
|
377 622 | }
|
623 + | /* ServerCodegenVisitor.kt:345 */
|
378 624 | impl MalformedContentTypeWithGenericStringInput {
|
379 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
625 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
626 + | /* ServerBuilderGenerator.kt:295 */
|
380 627 | pub fn builder() -> crate::input::malformed_content_type_with_generic_string_input::Builder {
|
628 + | /* ServerBuilderGenerator.kt:296 */
|
381 629 | crate::input::malformed_content_type_with_generic_string_input::Builder::default()
|
630 + | /* ServerBuilderGenerator.kt:295 */
|
382 631 | }
|
632 + | /* ServerCodegenVisitor.kt:345 */
|
383 633 | }
|
634 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
384 635 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithGenericStringInput {
|
385 636 | type Unconstrained = crate::input::malformed_content_type_with_generic_string_input::Builder;
|
386 637 | }
|
387 638 |
|
639 + | /* StructureGenerator.kt:197 */
|
388 640 | #[allow(missing_docs)] // documentation missing in model
|
641 + | /* RustType.kt:516 */
|
389 642 | #[derive(
|
390 643 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
391 644 | )]
|
392 - | pub struct MalformedContentTypeWithPayloadInput {
|
645 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithPayloadInput {
|
646 + | /* StructureGenerator.kt:231 */
|
393 647 | #[allow(missing_docs)] // documentation missing in model
|
394 648 | pub payload: ::std::option::Option<::aws_smithy_types::Blob>,
|
649 + | /* StructureGenerator.kt:201 */
|
395 650 | }
|
651 + | /* StructureGenerator.kt:135 */
|
396 652 | impl MalformedContentTypeWithPayloadInput {
|
653 + | /* StructureGenerator.kt:231 */
|
397 654 | #[allow(missing_docs)] // documentation missing in model
|
655 + | /* StructureGenerator.kt:166 */
|
398 656 | pub fn payload(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
657 + | /* StructureGenerator.kt:170 */
|
399 658 | self.payload.as_ref()
|
659 + | /* StructureGenerator.kt:166 */
|
400 660 | }
|
661 + | /* StructureGenerator.kt:135 */
|
401 662 | }
|
663 + | /* ServerCodegenVisitor.kt:345 */
|
402 664 | impl MalformedContentTypeWithPayloadInput {
|
403 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
665 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
666 + | /* ServerBuilderGenerator.kt:295 */
|
404 667 | pub fn builder() -> crate::input::malformed_content_type_with_payload_input::Builder {
|
668 + | /* ServerBuilderGenerator.kt:296 */
|
405 669 | crate::input::malformed_content_type_with_payload_input::Builder::default()
|
670 + | /* ServerBuilderGenerator.kt:295 */
|
406 671 | }
|
672 + | /* ServerCodegenVisitor.kt:345 */
|
407 673 | }
|
674 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
408 675 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithPayloadInput {
|
409 676 | type Unconstrained = crate::input::malformed_content_type_with_payload_input::Builder;
|
410 677 | }
|
411 678 |
|
679 + | /* StructureGenerator.kt:197 */
|
412 680 | #[allow(missing_docs)] // documentation missing in model
|
681 + | /* RustType.kt:516 */
|
413 682 | #[derive(
|
414 683 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
415 684 | )]
|
416 - | pub struct MalformedContentTypeWithBodyInput {
|
685 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithBodyInput {
|
686 + | /* StructureGenerator.kt:231 */
|
417 687 | #[allow(missing_docs)] // documentation missing in model
|
418 688 | pub hi: ::std::option::Option<::std::string::String>,
|
689 + | /* StructureGenerator.kt:201 */
|
419 690 | }
|
691 + | /* StructureGenerator.kt:135 */
|
420 692 | impl MalformedContentTypeWithBodyInput {
|
693 + | /* StructureGenerator.kt:231 */
|
421 694 | #[allow(missing_docs)] // documentation missing in model
|
695 + | /* StructureGenerator.kt:166 */
|
422 696 | pub fn hi(&self) -> ::std::option::Option<&str> {
|
697 + | /* StructureGenerator.kt:169 */
|
423 698 | self.hi.as_deref()
|
699 + | /* StructureGenerator.kt:166 */
|
424 700 | }
|
701 + | /* StructureGenerator.kt:135 */
|
425 702 | }
|
703 + | /* ServerCodegenVisitor.kt:345 */
|
426 704 | impl MalformedContentTypeWithBodyInput {
|
427 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
705 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
706 + | /* ServerBuilderGenerator.kt:295 */
|
428 707 | pub fn builder() -> crate::input::malformed_content_type_with_body_input::Builder {
|
708 + | /* ServerBuilderGenerator.kt:296 */
|
429 709 | crate::input::malformed_content_type_with_body_input::Builder::default()
|
710 + | /* ServerBuilderGenerator.kt:295 */
|
430 711 | }
|
712 + | /* ServerCodegenVisitor.kt:345 */
|
431 713 | }
|
714 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
432 715 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithBodyInput {
|
433 716 | type Unconstrained = crate::input::malformed_content_type_with_body_input::Builder;
|
434 717 | }
|
435 718 |
|
719 + | /* StructureGenerator.kt:197 */
|
436 720 | #[allow(missing_docs)] // documentation missing in model
|
721 + | /* RustType.kt:516 */
|
437 722 | #[derive(
|
438 723 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
439 724 | )]
|
440 - | pub struct MalformedContentTypeWithoutBodyInput {}
|
725 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithoutBodyInput {/* StructureGenerator.kt:201 */}
|
726 + | /* ServerCodegenVisitor.kt:345 */
|
441 727 | impl MalformedContentTypeWithoutBodyInput {
|
442 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
728 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
729 + | /* ServerBuilderGenerator.kt:295 */
|
443 730 | pub fn builder() -> crate::input::malformed_content_type_without_body_input::Builder {
|
731 + | /* ServerBuilderGenerator.kt:296 */
|
444 732 | crate::input::malformed_content_type_without_body_input::Builder::default()
|
733 + | /* ServerBuilderGenerator.kt:295 */
|
445 734 | }
|
735 + | /* ServerCodegenVisitor.kt:345 */
|
446 736 | }
|
737 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
447 738 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithoutBodyInput {
|
448 739 | type Unconstrained = crate::input::malformed_content_type_without_body_input::Builder;
|
449 740 | }
|
450 741 |
|
742 + | /* StructureGenerator.kt:197 */
|
451 743 | #[allow(missing_docs)] // documentation missing in model
|
744 + | /* RustType.kt:516 */
|
452 745 | #[derive(
|
453 746 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
454 747 | )]
|
455 - | pub struct MalformedTimestampBodyHttpDateInput {
|
748 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyHttpDateInput {
|
749 + | /* StructureGenerator.kt:231 */
|
456 750 | #[allow(missing_docs)] // documentation missing in model
|
457 751 | pub timestamp: ::aws_smithy_types::DateTime,
|
752 + | /* StructureGenerator.kt:201 */
|
458 753 | }
|
754 + | /* StructureGenerator.kt:135 */
|
459 755 | impl MalformedTimestampBodyHttpDateInput {
|
756 + | /* StructureGenerator.kt:231 */
|
460 757 | #[allow(missing_docs)] // documentation missing in model
|
758 + | /* StructureGenerator.kt:166 */
|
461 759 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
760 + | /* StructureGenerator.kt:172 */
|
462 761 | &self.timestamp
|
762 + | /* StructureGenerator.kt:166 */
|
463 763 | }
|
764 + | /* StructureGenerator.kt:135 */
|
464 765 | }
|
766 + | /* ServerCodegenVisitor.kt:345 */
|
465 767 | impl MalformedTimestampBodyHttpDateInput {
|
466 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
768 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
769 + | /* ServerBuilderGenerator.kt:295 */
|
467 770 | pub fn builder() -> crate::input::malformed_timestamp_body_http_date_input::Builder {
|
771 + | /* ServerBuilderGenerator.kt:296 */
|
468 772 | crate::input::malformed_timestamp_body_http_date_input::Builder::default()
|
773 + | /* ServerBuilderGenerator.kt:295 */
|
469 774 | }
|
775 + | /* ServerCodegenVisitor.kt:345 */
|
470 776 | }
|
777 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
471 778 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyHttpDateInput {
|
472 779 | type Unconstrained = crate::input::malformed_timestamp_body_http_date_input::Builder;
|
473 780 | }
|
474 781 |
|
782 + | /* StructureGenerator.kt:197 */
|
475 783 | #[allow(missing_docs)] // documentation missing in model
|
784 + | /* RustType.kt:516 */
|
476 785 | #[derive(
|
477 786 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
478 787 | )]
|
479 - | pub struct MalformedTimestampBodyDateTimeInput {
|
788 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDateTimeInput {
|
789 + | /* StructureGenerator.kt:231 */
|
480 790 | #[allow(missing_docs)] // documentation missing in model
|
481 791 | pub timestamp: ::aws_smithy_types::DateTime,
|
792 + | /* StructureGenerator.kt:201 */
|
482 793 | }
|
794 + | /* StructureGenerator.kt:135 */
|
483 795 | impl MalformedTimestampBodyDateTimeInput {
|
796 + | /* StructureGenerator.kt:231 */
|
484 797 | #[allow(missing_docs)] // documentation missing in model
|
798 + | /* StructureGenerator.kt:166 */
|
485 799 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
800 + | /* StructureGenerator.kt:172 */
|
486 801 | &self.timestamp
|
802 + | /* StructureGenerator.kt:166 */
|
487 803 | }
|
804 + | /* StructureGenerator.kt:135 */
|
488 805 | }
|
806 + | /* ServerCodegenVisitor.kt:345 */
|
489 807 | impl MalformedTimestampBodyDateTimeInput {
|
490 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
808 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
809 + | /* ServerBuilderGenerator.kt:295 */
|
491 810 | pub fn builder() -> crate::input::malformed_timestamp_body_date_time_input::Builder {
|
811 + | /* ServerBuilderGenerator.kt:296 */
|
492 812 | crate::input::malformed_timestamp_body_date_time_input::Builder::default()
|
813 + | /* ServerBuilderGenerator.kt:295 */
|
493 814 | }
|
815 + | /* ServerCodegenVisitor.kt:345 */
|
494 816 | }
|
817 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
495 818 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDateTimeInput {
|
496 819 | type Unconstrained = crate::input::malformed_timestamp_body_date_time_input::Builder;
|
497 820 | }
|
498 821 |
|
822 + | /* StructureGenerator.kt:197 */
|
499 823 | #[allow(missing_docs)] // documentation missing in model
|
824 + | /* RustType.kt:516 */
|
500 825 | #[derive(
|
501 826 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
502 827 | )]
|
503 - | pub struct MalformedTimestampBodyDefaultInput {
|
828 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDefaultInput {
|
829 + | /* StructureGenerator.kt:231 */
|
504 830 | #[allow(missing_docs)] // documentation missing in model
|
505 831 | pub timestamp: ::aws_smithy_types::DateTime,
|
832 + | /* StructureGenerator.kt:201 */
|
506 833 | }
|
834 + | /* StructureGenerator.kt:135 */
|
507 835 | impl MalformedTimestampBodyDefaultInput {
|
836 + | /* StructureGenerator.kt:231 */
|
508 837 | #[allow(missing_docs)] // documentation missing in model
|
838 + | /* StructureGenerator.kt:166 */
|
509 839 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
840 + | /* StructureGenerator.kt:172 */
|
510 841 | &self.timestamp
|
842 + | /* StructureGenerator.kt:166 */
|
511 843 | }
|
844 + | /* StructureGenerator.kt:135 */
|
512 845 | }
|
846 + | /* ServerCodegenVisitor.kt:345 */
|
513 847 | impl MalformedTimestampBodyDefaultInput {
|
514 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
848 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
849 + | /* ServerBuilderGenerator.kt:295 */
|
515 850 | pub fn builder() -> crate::input::malformed_timestamp_body_default_input::Builder {
|
851 + | /* ServerBuilderGenerator.kt:296 */
|
516 852 | crate::input::malformed_timestamp_body_default_input::Builder::default()
|
853 + | /* ServerBuilderGenerator.kt:295 */
|
517 854 | }
|
855 + | /* ServerCodegenVisitor.kt:345 */
|
518 856 | }
|
857 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
519 858 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDefaultInput {
|
520 859 | type Unconstrained = crate::input::malformed_timestamp_body_default_input::Builder;
|
521 860 | }
|
522 861 |
|
862 + | /* StructureGenerator.kt:197 */
|
523 863 | #[allow(missing_docs)] // documentation missing in model
|
864 + | /* RustType.kt:516 */
|
524 865 | #[derive(
|
525 866 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
526 867 | )]
|
527 - | pub struct MalformedTimestampHeaderEpochInput {
|
868 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderEpochInput {
|
869 + | /* StructureGenerator.kt:231 */
|
528 870 | #[allow(missing_docs)] // documentation missing in model
|
529 871 | pub timestamp: ::aws_smithy_types::DateTime,
|
872 + | /* StructureGenerator.kt:201 */
|
530 873 | }
|
874 + | /* StructureGenerator.kt:135 */
|
531 875 | impl MalformedTimestampHeaderEpochInput {
|
876 + | /* StructureGenerator.kt:231 */
|
532 877 | #[allow(missing_docs)] // documentation missing in model
|
878 + | /* StructureGenerator.kt:166 */
|
533 879 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
880 + | /* StructureGenerator.kt:172 */
|
534 881 | &self.timestamp
|
882 + | /* StructureGenerator.kt:166 */
|
535 883 | }
|
884 + | /* StructureGenerator.kt:135 */
|
536 885 | }
|
886 + | /* ServerCodegenVisitor.kt:345 */
|
537 887 | impl MalformedTimestampHeaderEpochInput {
|
538 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
888 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
889 + | /* ServerBuilderGenerator.kt:295 */
|
539 890 | pub fn builder() -> crate::input::malformed_timestamp_header_epoch_input::Builder {
|
891 + | /* ServerBuilderGenerator.kt:296 */
|
540 892 | crate::input::malformed_timestamp_header_epoch_input::Builder::default()
|
893 + | /* ServerBuilderGenerator.kt:295 */
|
541 894 | }
|
895 + | /* ServerCodegenVisitor.kt:345 */
|
542 896 | }
|
897 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
543 898 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderEpochInput {
|
544 899 | type Unconstrained = crate::input::malformed_timestamp_header_epoch_input::Builder;
|
545 900 | }
|
546 901 |
|
902 + | /* StructureGenerator.kt:197 */
|
547 903 | #[allow(missing_docs)] // documentation missing in model
|
904 + | /* RustType.kt:516 */
|
548 905 | #[derive(
|
549 906 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
550 907 | )]
|
551 - | pub struct MalformedTimestampHeaderDateTimeInput {
|
908 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDateTimeInput {
|
909 + | /* StructureGenerator.kt:231 */
|
552 910 | #[allow(missing_docs)] // documentation missing in model
|
553 911 | pub timestamp: ::aws_smithy_types::DateTime,
|
912 + | /* StructureGenerator.kt:201 */
|
554 913 | }
|
914 + | /* StructureGenerator.kt:135 */
|
555 915 | impl MalformedTimestampHeaderDateTimeInput {
|
916 + | /* StructureGenerator.kt:231 */
|
556 917 | #[allow(missing_docs)] // documentation missing in model
|
918 + | /* StructureGenerator.kt:166 */
|
557 919 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
920 + | /* StructureGenerator.kt:172 */
|
558 921 | &self.timestamp
|
922 + | /* StructureGenerator.kt:166 */
|
559 923 | }
|
924 + | /* StructureGenerator.kt:135 */
|
560 925 | }
|
926 + | /* ServerCodegenVisitor.kt:345 */
|
561 927 | impl MalformedTimestampHeaderDateTimeInput {
|
562 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
928 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
929 + | /* ServerBuilderGenerator.kt:295 */
|
563 930 | pub fn builder() -> crate::input::malformed_timestamp_header_date_time_input::Builder {
|
931 + | /* ServerBuilderGenerator.kt:296 */
|
564 932 | crate::input::malformed_timestamp_header_date_time_input::Builder::default()
|
933 + | /* ServerBuilderGenerator.kt:295 */
|
565 934 | }
|
935 + | /* ServerCodegenVisitor.kt:345 */
|
566 936 | }
|
937 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
567 938 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDateTimeInput {
|
568 939 | type Unconstrained = crate::input::malformed_timestamp_header_date_time_input::Builder;
|
569 940 | }
|
570 941 |
|
942 + | /* StructureGenerator.kt:197 */
|
571 943 | #[allow(missing_docs)] // documentation missing in model
|
944 + | /* RustType.kt:516 */
|
572 945 | #[derive(
|
573 946 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
574 947 | )]
|
575 - | pub struct MalformedTimestampHeaderDefaultInput {
|
948 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDefaultInput {
|
949 + | /* StructureGenerator.kt:231 */
|
576 950 | #[allow(missing_docs)] // documentation missing in model
|
577 951 | pub timestamp: ::aws_smithy_types::DateTime,
|
952 + | /* StructureGenerator.kt:201 */
|
578 953 | }
|
954 + | /* StructureGenerator.kt:135 */
|
579 955 | impl MalformedTimestampHeaderDefaultInput {
|
956 + | /* StructureGenerator.kt:231 */
|
580 957 | #[allow(missing_docs)] // documentation missing in model
|
958 + | /* StructureGenerator.kt:166 */
|
581 959 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
960 + | /* StructureGenerator.kt:172 */
|
582 961 | &self.timestamp
|
962 + | /* StructureGenerator.kt:166 */
|
583 963 | }
|
964 + | /* StructureGenerator.kt:135 */
|
584 965 | }
|
966 + | /* ServerCodegenVisitor.kt:345 */
|
585 967 | impl MalformedTimestampHeaderDefaultInput {
|
586 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
968 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
969 + | /* ServerBuilderGenerator.kt:295 */
|
587 970 | pub fn builder() -> crate::input::malformed_timestamp_header_default_input::Builder {
|
971 + | /* ServerBuilderGenerator.kt:296 */
|
588 972 | crate::input::malformed_timestamp_header_default_input::Builder::default()
|
973 + | /* ServerBuilderGenerator.kt:295 */
|
589 974 | }
|
975 + | /* ServerCodegenVisitor.kt:345 */
|
590 976 | }
|
977 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
591 978 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDefaultInput {
|
592 979 | type Unconstrained = crate::input::malformed_timestamp_header_default_input::Builder;
|
593 980 | }
|
594 981 |
|
982 + | /* StructureGenerator.kt:197 */
|
595 983 | #[allow(missing_docs)] // documentation missing in model
|
984 + | /* RustType.kt:516 */
|
596 985 | #[derive(
|
597 986 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
598 987 | )]
|
599 - | pub struct MalformedTimestampQueryEpochInput {
|
988 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryEpochInput {
|
989 + | /* StructureGenerator.kt:231 */
|
600 990 | #[allow(missing_docs)] // documentation missing in model
|
601 991 | pub timestamp: ::aws_smithy_types::DateTime,
|
992 + | /* StructureGenerator.kt:201 */
|
602 993 | }
|
994 + | /* StructureGenerator.kt:135 */
|
603 995 | impl MalformedTimestampQueryEpochInput {
|
996 + | /* StructureGenerator.kt:231 */
|
604 997 | #[allow(missing_docs)] // documentation missing in model
|
998 + | /* StructureGenerator.kt:166 */
|
605 999 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1000 + | /* StructureGenerator.kt:172 */
|
606 1001 | &self.timestamp
|
1002 + | /* StructureGenerator.kt:166 */
|
607 1003 | }
|
1004 + | /* StructureGenerator.kt:135 */
|
608 1005 | }
|
1006 + | /* ServerCodegenVisitor.kt:345 */
|
609 1007 | impl MalformedTimestampQueryEpochInput {
|
610 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
1008 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
1009 + | /* ServerBuilderGenerator.kt:295 */
|
611 1010 | pub fn builder() -> crate::input::malformed_timestamp_query_epoch_input::Builder {
|
1011 + | /* ServerBuilderGenerator.kt:296 */
|
612 1012 | crate::input::malformed_timestamp_query_epoch_input::Builder::default()
|
1013 + | /* ServerBuilderGenerator.kt:295 */
|
613 1014 | }
|
1015 + | /* ServerCodegenVisitor.kt:345 */
|
614 1016 | }
|
1017 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
615 1018 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryEpochInput {
|
616 1019 | type Unconstrained = crate::input::malformed_timestamp_query_epoch_input::Builder;
|
617 1020 | }
|
618 1021 |
|
1022 + | /* StructureGenerator.kt:197 */
|
619 1023 | #[allow(missing_docs)] // documentation missing in model
|
1024 + | /* RustType.kt:516 */
|
620 1025 | #[derive(
|
621 1026 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
622 1027 | )]
|
623 - | pub struct MalformedTimestampQueryHttpDateInput {
|
1028 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryHttpDateInput {
|
1029 + | /* StructureGenerator.kt:231 */
|
624 1030 | #[allow(missing_docs)] // documentation missing in model
|
625 1031 | pub timestamp: ::aws_smithy_types::DateTime,
|
1032 + | /* StructureGenerator.kt:201 */
|
626 1033 | }
|
1034 + | /* StructureGenerator.kt:135 */
|
627 1035 | impl MalformedTimestampQueryHttpDateInput {
|
1036 + | /* StructureGenerator.kt:231 */
|
628 1037 | #[allow(missing_docs)] // documentation missing in model
|
1038 + | /* StructureGenerator.kt:166 */
|
629 1039 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1040 + | /* StructureGenerator.kt:172 */
|
630 1041 | &self.timestamp
|
1042 + | /* StructureGenerator.kt:166 */
|
631 1043 | }
|
1044 + | /* StructureGenerator.kt:135 */
|
632 1045 | }
|
1046 + | /* ServerCodegenVisitor.kt:345 */
|
633 1047 | impl MalformedTimestampQueryHttpDateInput {
|
634 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
1048 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
1049 + | /* ServerBuilderGenerator.kt:295 */
|
635 1050 | pub fn builder() -> crate::input::malformed_timestamp_query_http_date_input::Builder {
|
1051 + | /* ServerBuilderGenerator.kt:296 */
|
636 1052 | crate::input::malformed_timestamp_query_http_date_input::Builder::default()
|
1053 + | /* ServerBuilderGenerator.kt:295 */
|
637 1054 | }
|
1055 + | /* ServerCodegenVisitor.kt:345 */
|
638 1056 | }
|
1057 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
639 1058 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryHttpDateInput {
|
640 1059 | type Unconstrained = crate::input::malformed_timestamp_query_http_date_input::Builder;
|
641 1060 | }
|
642 1061 |
|
1062 + | /* StructureGenerator.kt:197 */
|
643 1063 | #[allow(missing_docs)] // documentation missing in model
|
1064 + | /* RustType.kt:516 */
|
644 1065 | #[derive(
|
645 1066 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
646 1067 | )]
|
647 - | pub struct MalformedTimestampQueryDefaultInput {
|
1068 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryDefaultInput {
|
1069 + | /* StructureGenerator.kt:231 */
|
648 1070 | #[allow(missing_docs)] // documentation missing in model
|
649 1071 | pub timestamp: ::aws_smithy_types::DateTime,
|
1072 + | /* StructureGenerator.kt:201 */
|
650 1073 | }
|
1074 + | /* StructureGenerator.kt:135 */
|
651 1075 | impl MalformedTimestampQueryDefaultInput {
|
1076 + | /* StructureGenerator.kt:231 */
|
652 1077 | #[allow(missing_docs)] // documentation missing in model
|
1078 + | /* StructureGenerator.kt:166 */
|
653 1079 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1080 + | /* StructureGenerator.kt:172 */
|
654 1081 | &self.timestamp
|
1082 + | /* StructureGenerator.kt:166 */
|
655 1083 | }
|
1084 + | /* StructureGenerator.kt:135 */
|
656 1085 | }
|
1086 + | /* ServerCodegenVisitor.kt:345 */
|
657 1087 | impl MalformedTimestampQueryDefaultInput {
|
658 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
1088 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
1089 + | /* ServerBuilderGenerator.kt:295 */
|
659 1090 | pub fn builder() -> crate::input::malformed_timestamp_query_default_input::Builder {
|
1091 + | /* ServerBuilderGenerator.kt:296 */
|
660 1092 | crate::input::malformed_timestamp_query_default_input::Builder::default()
|
1093 + | /* ServerBuilderGenerator.kt:295 */
|
661 1094 | }
|
1095 + | /* ServerCodegenVisitor.kt:345 */
|
662 1096 | }
|
1097 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
663 1098 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryDefaultInput {
|
664 1099 | type Unconstrained = crate::input::malformed_timestamp_query_default_input::Builder;
|
665 1100 | }
|
666 1101 |
|
1102 + | /* StructureGenerator.kt:197 */
|
667 1103 | #[allow(missing_docs)] // documentation missing in model
|
1104 + | /* RustType.kt:516 */
|
668 1105 | #[derive(
|
669 1106 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
670 1107 | )]
|
671 - | pub struct MalformedTimestampPathEpochInput {
|
1108 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathEpochInput {
|
1109 + | /* StructureGenerator.kt:231 */
|
672 1110 | #[allow(missing_docs)] // documentation missing in model
|
673 1111 | pub timestamp: ::aws_smithy_types::DateTime,
|
1112 + | /* StructureGenerator.kt:201 */
|
674 1113 | }
|
1114 + | /* StructureGenerator.kt:135 */
|
675 1115 | impl MalformedTimestampPathEpochInput {
|
1116 + | /* StructureGenerator.kt:231 */
|
676 1117 | #[allow(missing_docs)] // documentation missing in model
|
1118 + | /* StructureGenerator.kt:166 */
|
677 1119 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1120 + | /* StructureGenerator.kt:172 */
|
678 1121 | &self.timestamp
|
1122 + | /* StructureGenerator.kt:166 */
|
679 1123 | }
|
1124 + | /* StructureGenerator.kt:135 */
|
680 1125 | }
|
1126 + | /* ServerCodegenVisitor.kt:345 */
|
681 1127 | impl MalformedTimestampPathEpochInput {
|
682 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
1128 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
1129 + | /* ServerBuilderGenerator.kt:295 */
|
683 1130 | pub fn builder() -> crate::input::malformed_timestamp_path_epoch_input::Builder {
|
1131 + | /* ServerBuilderGenerator.kt:296 */
|
684 1132 | crate::input::malformed_timestamp_path_epoch_input::Builder::default()
|
1133 + | /* ServerBuilderGenerator.kt:295 */
|
685 1134 | }
|
1135 + | /* ServerCodegenVisitor.kt:345 */
|
686 1136 | }
|
1137 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
687 1138 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathEpochInput {
|
688 1139 | type Unconstrained = crate::input::malformed_timestamp_path_epoch_input::Builder;
|
689 1140 | }
|
690 1141 |
|
1142 + | /* StructureGenerator.kt:197 */
|
691 1143 | #[allow(missing_docs)] // documentation missing in model
|
1144 + | /* RustType.kt:516 */
|
692 1145 | #[derive(
|
693 1146 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
694 1147 | )]
|
695 - | pub struct MalformedTimestampPathHttpDateInput {
|
1148 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathHttpDateInput {
|
1149 + | /* StructureGenerator.kt:231 */
|
696 1150 | #[allow(missing_docs)] // documentation missing in model
|
697 1151 | pub timestamp: ::aws_smithy_types::DateTime,
|
1152 + | /* StructureGenerator.kt:201 */
|
698 1153 | }
|
1154 + | /* StructureGenerator.kt:135 */
|
699 1155 | impl MalformedTimestampPathHttpDateInput {
|
1156 + | /* StructureGenerator.kt:231 */
|
700 1157 | #[allow(missing_docs)] // documentation missing in model
|
1158 + | /* StructureGenerator.kt:166 */
|
701 1159 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1160 + | /* StructureGenerator.kt:172 */
|
702 1161 | &self.timestamp
|
1162 + | /* StructureGenerator.kt:166 */
|
703 1163 | }
|
1164 + | /* StructureGenerator.kt:135 */
|
704 1165 | }
|
1166 + | /* ServerCodegenVisitor.kt:345 */
|
705 1167 | impl MalformedTimestampPathHttpDateInput {
|
706 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
1168 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
1169 + | /* ServerBuilderGenerator.kt:295 */
|
707 1170 | pub fn builder() -> crate::input::malformed_timestamp_path_http_date_input::Builder {
|
1171 + | /* ServerBuilderGenerator.kt:296 */
|
708 1172 | crate::input::malformed_timestamp_path_http_date_input::Builder::default()
|
1173 + | /* ServerBuilderGenerator.kt:295 */
|
709 1174 | }
|
1175 + | /* ServerCodegenVisitor.kt:345 */
|
710 1176 | }
|
1177 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
711 1178 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathHttpDateInput {
|
712 1179 | type Unconstrained = crate::input::malformed_timestamp_path_http_date_input::Builder;
|
713 1180 | }
|
714 1181 |
|
1182 + | /* StructureGenerator.kt:197 */
|
715 1183 | #[allow(missing_docs)] // documentation missing in model
|
1184 + | /* RustType.kt:516 */
|
716 1185 | #[derive(
|
717 1186 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
718 1187 | )]
|
719 - | pub struct MalformedTimestampPathDefaultInput {
|
1188 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathDefaultInput {
|
1189 + | /* StructureGenerator.kt:231 */
|
720 1190 | #[allow(missing_docs)] // documentation missing in model
|
721 1191 | pub timestamp: ::aws_smithy_types::DateTime,
|
1192 + | /* StructureGenerator.kt:201 */
|
722 1193 | }
|
1194 + | /* StructureGenerator.kt:135 */
|
723 1195 | impl MalformedTimestampPathDefaultInput {
|
1196 + | /* StructureGenerator.kt:231 */
|
724 1197 | #[allow(missing_docs)] // documentation missing in model
|
1198 + | /* StructureGenerator.kt:166 */
|
725 1199 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1200 + | /* StructureGenerator.kt:172 */
|
726 1201 | &self.timestamp
|
1202 + | /* StructureGenerator.kt:166 */
|
727 1203 | }
|
1204 + | /* StructureGenerator.kt:135 */
|
728 1205 | }
|
1206 + | /* ServerCodegenVisitor.kt:345 */
|
729 1207 | impl MalformedTimestampPathDefaultInput {
|
730 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
1208 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
1209 + | /* ServerBuilderGenerator.kt:295 */
|
731 1210 | pub fn builder() -> crate::input::malformed_timestamp_path_default_input::Builder {
|
1211 + | /* ServerBuilderGenerator.kt:296 */
|
732 1212 | crate::input::malformed_timestamp_path_default_input::Builder::default()
|
1213 + | /* ServerBuilderGenerator.kt:295 */
|
733 1214 | }
|
1215 + | /* ServerCodegenVisitor.kt:345 */
|
734 1216 | }
|
1217 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
735 1218 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathDefaultInput {
|
736 1219 | type Unconstrained = crate::input::malformed_timestamp_path_default_input::Builder;
|
737 1220 | }
|
738 1221 |
|
1222 + | /* StructureGenerator.kt:197 */
|
739 1223 | #[allow(missing_docs)] // documentation missing in model
|
1224 + | /* RustType.kt:516 */
|
740 1225 | #[derive(
|
741 1226 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
742 1227 | )]
|
743 - | pub struct MalformedStringInput {
|
1228 + | pub /* StructureGenerator.kt:201 */ struct MalformedStringInput {
|
1229 + | /* StructureGenerator.kt:231 */
|
744 1230 | #[allow(missing_docs)] // documentation missing in model
|
745 1231 | pub blob: ::std::option::Option<::std::string::String>,
|
1232 + | /* StructureGenerator.kt:201 */
|
746 1233 | }
|
1234 + | /* StructureGenerator.kt:135 */
|
747 1235 | impl MalformedStringInput {
|
1236 + | /* StructureGenerator.kt:231 */
|
748 1237 | #[allow(missing_docs)] // documentation missing in model
|
1238 + | /* StructureGenerator.kt:166 */
|
749 1239 | pub fn blob(&self) -> ::std::option::Option<&str> {
|
1240 + | /* StructureGenerator.kt:169 */
|
750 1241 | self.blob.as_deref()
|
1242 + | /* StructureGenerator.kt:166 */
|
751 1243 | }
|
1244 + | /* StructureGenerator.kt:135 */
|
752 1245 | }
|
1246 + | /* ServerCodegenVisitor.kt:345 */
|
753 1247 | impl MalformedStringInput {
|
754 - | /// Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
1248 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
1249 + | /* ServerBuilderGenerator.kt:295 */
|
755 1250 | pub fn builder() -> crate::input::malformed_string_input::Builder {
|
1251 + | /* ServerBuilderGenerator.kt:296 */
|
756 1252 | crate::input::malformed_string_input::Builder::default()
|
1253 + | /* ServerBuilderGenerator.kt:295 */
|
757 1254 | }
|
1255 + | /* ServerCodegenVisitor.kt:345 */
|
758 1256 | }
|
1257 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
759 1258 | impl crate::constrained::Constrained for crate::input::MalformedStringInput {
|
760 1259 | type Unconstrained = crate::input::malformed_string_input::Builder;
|
761 1260 | }
|
762 1261 |
|
1262 + | /* StructureGenerator.kt:197 */
|
763 1263 | #[allow(missing_docs)] // documentation missing in model
|
1264 + | /* RustType.kt:516 */
|
764 1265 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
765 - | pub struct MalformedDoubleInput {
|
1266 + | pub /* StructureGenerator.kt:201 */ struct MalformedDoubleInput {
|
1267 + | /* StructureGenerator.kt:231 */
|
766 1268 | #[allow(missing_docs)] // documentation missing in model
|
767 1269 | pub double_in_body: ::std::option::Option<f64>,
|
1270 + | /* StructureGenerator.kt:231 */
|
768 1271 | #[allow(missing_docs)] // documentation missing in model
|
769 1272 | pub double_in_path: f64,
|
1273 + | /* StructureGenerator.kt:231 */
|
770 1274 | #[allow(missing_docs)] // documentation missing in model
|
771 1275 | pub double_in_query: ::std::option::Option<f64>,
|
1276 + | /* StructureGenerator.kt:231 */
|
772 1277 | #[allow(missing_docs)] // documentation missing in model
|
773 1278 | pub double_in_header: ::std::option::Option<f64>,
|
1279 + | /* StructureGenerator.kt:201 */
|
774 1280 | }
|
1281 + | /* StructureGenerator.kt:135 */
|
775 1282 | impl MalformedDoubleInput {
|
1283 + | /* StructureGenerator.kt:231 */
|
776 1284 | #[allow(missing_docs)] // documentation missing in model
|
1285 + | /* StructureGenerator.kt:166 */
|
777 1286 | pub fn double_in_body(&self) -> ::std::option::Option<f64> {
|
1287 + | /* StructureGenerator.kt:168 */
|
778 1288 | self.double_in_body
|
1289 + | /* StructureGenerator.kt:166 */
|
779 1290 | }
|
1291 + | /* StructureGenerator.kt:231 */
|
780 1292 | #[allow(missing_docs)] // documentation missing in model
|
1293 + | /* StructureGenerator.kt:166 */
|
781 1294 | pub fn double_in_path(&self) -> f64 {
|
1295 + | /* StructureGenerator.kt:168 */
|
782 1296 | self.double_in_path
|
1297 + | /* StructureGenerator.kt:166 */
|
783 1298 | }
|
1299 + | /* StructureGenerator.kt:231 */
|
784 1300 | #[allow(missing_docs)] // documentation missing in model
|
1301 + | /* StructureGenerator.kt:166 */
|
785 1302 | pub fn double_in_query(&self) -> ::std::option::Option<f64> {
|
1303 + | /* StructureGenerator.kt:168 */
|
786 1304 | self.double_in_query
|
1305 + | /* StructureGenerator.kt:166 */
|
787 1306 | }
|
1307 + | /* StructureGenerator.kt:231 */
|
788 1308 | #[allow(missing_docs)] // documentation missing in model
|
1309 + | /* StructureGenerator.kt:166 */
|
789 1310 | pub fn double_in_header(&self) -> ::std::option::Option<f64> {
|
1311 + | /* StructureGenerator.kt:168 */
|
790 1312 | self.double_in_header
|
1313 + | /* StructureGenerator.kt:166 */
|
791 1314 | }
|
1315 + | /* StructureGenerator.kt:135 */
|
792 1316 | }
|
1317 + | /* ServerCodegenVisitor.kt:345 */
|
793 1318 | impl MalformedDoubleInput {
|
794 - | /// Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
1319 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
1320 + | /* ServerBuilderGenerator.kt:295 */
|
795 1321 | pub fn builder() -> crate::input::malformed_double_input::Builder {
|
1322 + | /* ServerBuilderGenerator.kt:296 */
|
796 1323 | crate::input::malformed_double_input::Builder::default()
|
1324 + | /* ServerBuilderGenerator.kt:295 */
|
797 1325 | }
|
1326 + | /* ServerCodegenVisitor.kt:345 */
|
798 1327 | }
|
1328 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
799 1329 | impl crate::constrained::Constrained for crate::input::MalformedDoubleInput {
|
800 1330 | type Unconstrained = crate::input::malformed_double_input::Builder;
|
801 1331 | }
|
802 1332 |
|
1333 + | /* StructureGenerator.kt:197 */
|
803 1334 | #[allow(missing_docs)] // documentation missing in model
|
1335 + | /* RustType.kt:516 */
|
804 1336 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
805 - | pub struct MalformedFloatInput {
|
1337 + | pub /* StructureGenerator.kt:201 */ struct MalformedFloatInput {
|
1338 + | /* StructureGenerator.kt:231 */
|
806 1339 | #[allow(missing_docs)] // documentation missing in model
|
807 1340 | pub float_in_body: ::std::option::Option<f32>,
|
1341 + | /* StructureGenerator.kt:231 */
|
808 1342 | #[allow(missing_docs)] // documentation missing in model
|
809 1343 | pub float_in_path: f32,
|
1344 + | /* StructureGenerator.kt:231 */
|
810 1345 | #[allow(missing_docs)] // documentation missing in model
|
811 1346 | pub float_in_query: ::std::option::Option<f32>,
|
1347 + | /* StructureGenerator.kt:231 */
|
812 1348 | #[allow(missing_docs)] // documentation missing in model
|
813 1349 | pub float_in_header: ::std::option::Option<f32>,
|
1350 + | /* StructureGenerator.kt:201 */
|
814 1351 | }
|
1352 + | /* StructureGenerator.kt:135 */
|
815 1353 | impl MalformedFloatInput {
|
1354 + | /* StructureGenerator.kt:231 */
|
816 1355 | #[allow(missing_docs)] // documentation missing in model
|
1356 + | /* StructureGenerator.kt:166 */
|
817 1357 | pub fn float_in_body(&self) -> ::std::option::Option<f32> {
|
1358 + | /* StructureGenerator.kt:168 */
|
818 1359 | self.float_in_body
|
1360 + | /* StructureGenerator.kt:166 */
|
819 1361 | }
|
1362 + | /* StructureGenerator.kt:231 */
|
820 1363 | #[allow(missing_docs)] // documentation missing in model
|
1364 + | /* StructureGenerator.kt:166 */
|
821 1365 | pub fn float_in_path(&self) -> f32 {
|
1366 + | /* StructureGenerator.kt:168 */
|
822 1367 | self.float_in_path
|
1368 + | /* StructureGenerator.kt:166 */
|
823 1369 | }
|
1370 + | /* StructureGenerator.kt:231 */
|
824 1371 | #[allow(missing_docs)] // documentation missing in model
|
1372 + | /* StructureGenerator.kt:166 */
|
825 1373 | pub fn float_in_query(&self) -> ::std::option::Option<f32> {
|
1374 + | /* StructureGenerator.kt:168 */
|
826 1375 | self.float_in_query
|
1376 + | /* StructureGenerator.kt:166 */
|
827 1377 | }
|
1378 + | /* StructureGenerator.kt:231 */
|
828 1379 | #[allow(missing_docs)] // documentation missing in model
|
1380 + | /* StructureGenerator.kt:166 */
|
829 1381 | pub fn float_in_header(&self) -> ::std::option::Option<f32> {
|
1382 + | /* StructureGenerator.kt:168 */
|
830 1383 | self.float_in_header
|
1384 + | /* StructureGenerator.kt:166 */
|
831 1385 | }
|
1386 + | /* StructureGenerator.kt:135 */
|
832 1387 | }
|
1388 + | /* ServerCodegenVisitor.kt:345 */
|
833 1389 | impl MalformedFloatInput {
|
834 - | /// Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
1390 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
1391 + | /* ServerBuilderGenerator.kt:295 */
|
835 1392 | pub fn builder() -> crate::input::malformed_float_input::Builder {
|
1393 + | /* ServerBuilderGenerator.kt:296 */
|
836 1394 | crate::input::malformed_float_input::Builder::default()
|
1395 + | /* ServerBuilderGenerator.kt:295 */
|
837 1396 | }
|
1397 + | /* ServerCodegenVisitor.kt:345 */
|
838 1398 | }
|
1399 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
839 1400 | impl crate::constrained::Constrained for crate::input::MalformedFloatInput {
|
840 1401 | type Unconstrained = crate::input::malformed_float_input::Builder;
|
841 1402 | }
|
842 1403 |
|
1404 + | /* StructureGenerator.kt:197 */
|
843 1405 | #[allow(missing_docs)] // documentation missing in model
|
1406 + | /* RustType.kt:516 */
|
844 1407 | #[derive(
|
845 1408 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
846 1409 | )]
|
847 - | pub struct MalformedLongInput {
|
1410 + | pub /* StructureGenerator.kt:201 */ struct MalformedLongInput {
|
1411 + | /* StructureGenerator.kt:231 */
|
848 1412 | #[allow(missing_docs)] // documentation missing in model
|
849 1413 | pub long_in_body: ::std::option::Option<i64>,
|
1414 + | /* StructureGenerator.kt:231 */
|
850 1415 | #[allow(missing_docs)] // documentation missing in model
|
851 1416 | pub long_in_path: i64,
|
1417 + | /* StructureGenerator.kt:231 */
|
852 1418 | #[allow(missing_docs)] // documentation missing in model
|
853 1419 | pub long_in_query: ::std::option::Option<i64>,
|
1420 + | /* StructureGenerator.kt:231 */
|
854 1421 | #[allow(missing_docs)] // documentation missing in model
|
855 1422 | pub long_in_header: ::std::option::Option<i64>,
|
1423 + | /* StructureGenerator.kt:201 */
|
856 1424 | }
|
1425 + | /* StructureGenerator.kt:135 */
|
857 1426 | impl MalformedLongInput {
|
1427 + | /* StructureGenerator.kt:231 */
|
858 1428 | #[allow(missing_docs)] // documentation missing in model
|
1429 + | /* StructureGenerator.kt:166 */
|
859 1430 | pub fn long_in_body(&self) -> ::std::option::Option<i64> {
|
1431 + | /* StructureGenerator.kt:168 */
|
860 1432 | self.long_in_body
|
1433 + | /* StructureGenerator.kt:166 */
|
861 1434 | }
|
1435 + | /* StructureGenerator.kt:231 */
|
862 1436 | #[allow(missing_docs)] // documentation missing in model
|
1437 + | /* StructureGenerator.kt:166 */
|
863 1438 | pub fn long_in_path(&self) -> i64 {
|
1439 + | /* StructureGenerator.kt:168 */
|
864 1440 | self.long_in_path
|
1441 + | /* StructureGenerator.kt:166 */
|
865 1442 | }
|
1443 + | /* StructureGenerator.kt:231 */
|
866 1444 | #[allow(missing_docs)] // documentation missing in model
|
1445 + | /* StructureGenerator.kt:166 */
|
867 1446 | pub fn long_in_query(&self) -> ::std::option::Option<i64> {
|
1447 + | /* StructureGenerator.kt:168 */
|
868 1448 | self.long_in_query
|
1449 + | /* StructureGenerator.kt:166 */
|
869 1450 | }
|
1451 + | /* StructureGenerator.kt:231 */
|
870 1452 | #[allow(missing_docs)] // documentation missing in model
|
1453 + | /* StructureGenerator.kt:166 */
|
871 1454 | pub fn long_in_header(&self) -> ::std::option::Option<i64> {
|
1455 + | /* StructureGenerator.kt:168 */
|
872 1456 | self.long_in_header
|
1457 + | /* StructureGenerator.kt:166 */
|
873 1458 | }
|
1459 + | /* StructureGenerator.kt:135 */
|
874 1460 | }
|
1461 + | /* ServerCodegenVisitor.kt:345 */
|
875 1462 | impl MalformedLongInput {
|
876 - | /// Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
1463 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
1464 + | /* ServerBuilderGenerator.kt:295 */
|
877 1465 | pub fn builder() -> crate::input::malformed_long_input::Builder {
|
1466 + | /* ServerBuilderGenerator.kt:296 */
|
878 1467 | crate::input::malformed_long_input::Builder::default()
|
1468 + | /* ServerBuilderGenerator.kt:295 */
|
879 1469 | }
|
1470 + | /* ServerCodegenVisitor.kt:345 */
|
880 1471 | }
|
1472 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
881 1473 | impl crate::constrained::Constrained for crate::input::MalformedLongInput {
|
882 1474 | type Unconstrained = crate::input::malformed_long_input::Builder;
|
883 1475 | }
|
884 1476 |
|
1477 + | /* StructureGenerator.kt:197 */
|
885 1478 | #[allow(missing_docs)] // documentation missing in model
|
1479 + | /* RustType.kt:516 */
|
886 1480 | #[derive(
|
887 1481 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
888 1482 | )]
|
889 - | pub struct MalformedShortInput {
|
1483 + | pub /* StructureGenerator.kt:201 */ struct MalformedShortInput {
|
1484 + | /* StructureGenerator.kt:231 */
|
890 1485 | #[allow(missing_docs)] // documentation missing in model
|
891 1486 | pub short_in_body: ::std::option::Option<i16>,
|
1487 + | /* StructureGenerator.kt:231 */
|
892 1488 | #[allow(missing_docs)] // documentation missing in model
|
893 1489 | pub short_in_path: i16,
|
1490 + | /* StructureGenerator.kt:231 */
|
894 1491 | #[allow(missing_docs)] // documentation missing in model
|
895 1492 | pub short_in_query: ::std::option::Option<i16>,
|
1493 + | /* StructureGenerator.kt:231 */
|
896 1494 | #[allow(missing_docs)] // documentation missing in model
|
897 1495 | pub short_in_header: ::std::option::Option<i16>,
|
1496 + | /* StructureGenerator.kt:201 */
|
898 1497 | }
|
1498 + | /* StructureGenerator.kt:135 */
|
899 1499 | impl MalformedShortInput {
|
1500 + | /* StructureGenerator.kt:231 */
|
900 1501 | #[allow(missing_docs)] // documentation missing in model
|
1502 + | /* StructureGenerator.kt:166 */
|
901 1503 | pub fn short_in_body(&self) -> ::std::option::Option<i16> {
|
1504 + | /* StructureGenerator.kt:168 */
|
902 1505 | self.short_in_body
|
1506 + | /* StructureGenerator.kt:166 */
|
903 1507 | }
|
1508 + | /* StructureGenerator.kt:231 */
|
904 1509 | #[allow(missing_docs)] // documentation missing in model
|
1510 + | /* StructureGenerator.kt:166 */
|
905 1511 | pub fn short_in_path(&self) -> i16 {
|
1512 + | /* StructureGenerator.kt:168 */
|
906 1513 | self.short_in_path
|
1514 + | /* StructureGenerator.kt:166 */
|
907 1515 | }
|
1516 + | /* StructureGenerator.kt:231 */
|
908 1517 | #[allow(missing_docs)] // documentation missing in model
|
1518 + | /* StructureGenerator.kt:166 */
|
909 1519 | pub fn short_in_query(&self) -> ::std::option::Option<i16> {
|
1520 + | /* StructureGenerator.kt:168 */
|
910 1521 | self.short_in_query
|
1522 + | /* StructureGenerator.kt:166 */
|
911 1523 | }
|
1524 + | /* StructureGenerator.kt:231 */
|
912 1525 | #[allow(missing_docs)] // documentation missing in model
|
1526 + | /* StructureGenerator.kt:166 */
|
913 1527 | pub fn short_in_header(&self) -> ::std::option::Option<i16> {
|
1528 + | /* StructureGenerator.kt:168 */
|
914 1529 | self.short_in_header
|
1530 + | /* StructureGenerator.kt:166 */
|
915 1531 | }
|
1532 + | /* StructureGenerator.kt:135 */
|
916 1533 | }
|
1534 + | /* ServerCodegenVisitor.kt:345 */
|
917 1535 | impl MalformedShortInput {
|
918 - | /// Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
1536 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
1537 + | /* ServerBuilderGenerator.kt:295 */
|
919 1538 | pub fn builder() -> crate::input::malformed_short_input::Builder {
|
1539 + | /* ServerBuilderGenerator.kt:296 */
|
920 1540 | crate::input::malformed_short_input::Builder::default()
|
1541 + | /* ServerBuilderGenerator.kt:295 */
|
921 1542 | }
|
1543 + | /* ServerCodegenVisitor.kt:345 */
|
922 1544 | }
|
1545 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
923 1546 | impl crate::constrained::Constrained for crate::input::MalformedShortInput {
|
924 1547 | type Unconstrained = crate::input::malformed_short_input::Builder;
|
925 1548 | }
|
926 1549 |
|
1550 + | /* StructureGenerator.kt:197 */
|
927 1551 | #[allow(missing_docs)] // documentation missing in model
|
1552 + | /* RustType.kt:516 */
|
928 1553 | #[derive(
|
929 1554 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
930 1555 | )]
|
931 - | pub struct MalformedByteInput {
|
1556 + | pub /* StructureGenerator.kt:201 */ struct MalformedByteInput {
|
1557 + | /* StructureGenerator.kt:231 */
|
932 1558 | #[allow(missing_docs)] // documentation missing in model
|
933 1559 | pub byte_in_body: ::std::option::Option<i8>,
|
1560 + | /* StructureGenerator.kt:231 */
|
934 1561 | #[allow(missing_docs)] // documentation missing in model
|
935 1562 | pub byte_in_path: i8,
|
1563 + | /* StructureGenerator.kt:231 */
|
936 1564 | #[allow(missing_docs)] // documentation missing in model
|
937 1565 | pub byte_in_query: ::std::option::Option<i8>,
|
1566 + | /* StructureGenerator.kt:231 */
|
938 1567 | #[allow(missing_docs)] // documentation missing in model
|
939 1568 | pub byte_in_header: ::std::option::Option<i8>,
|
1569 + | /* StructureGenerator.kt:201 */
|
940 1570 | }
|
1571 + | /* StructureGenerator.kt:135 */
|
941 1572 | impl MalformedByteInput {
|
1573 + | /* StructureGenerator.kt:231 */
|
942 1574 | #[allow(missing_docs)] // documentation missing in model
|
1575 + | /* StructureGenerator.kt:166 */
|
943 1576 | pub fn byte_in_body(&self) -> ::std::option::Option<i8> {
|
1577 + | /* StructureGenerator.kt:168 */
|
944 1578 | self.byte_in_body
|
1579 + | /* StructureGenerator.kt:166 */
|
945 1580 | }
|
1581 + | /* StructureGenerator.kt:231 */
|
946 1582 | #[allow(missing_docs)] // documentation missing in model
|
1583 + | /* StructureGenerator.kt:166 */
|
947 1584 | pub fn byte_in_path(&self) -> i8 {
|
1585 + | /* StructureGenerator.kt:168 */
|
948 1586 | self.byte_in_path
|
1587 + | /* StructureGenerator.kt:166 */
|
949 1588 | }
|
1589 + | /* StructureGenerator.kt:231 */
|
950 1590 | #[allow(missing_docs)] // documentation missing in model
|
1591 + | /* StructureGenerator.kt:166 */
|
951 1592 | pub fn byte_in_query(&self) -> ::std::option::Option<i8> {
|
1593 + | /* StructureGenerator.kt:168 */
|
952 1594 | self.byte_in_query
|
1595 + | /* StructureGenerator.kt:166 */
|
953 1596 | }
|
1597 + | /* StructureGenerator.kt:231 */
|
954 1598 | #[allow(missing_docs)] // documentation missing in model
|
1599 + | /* StructureGenerator.kt:166 */
|
955 1600 | pub fn byte_in_header(&self) -> ::std::option::Option<i8> {
|
1601 + | /* StructureGenerator.kt:168 */
|
956 1602 | self.byte_in_header
|
1603 + | /* StructureGenerator.kt:166 */
|
957 1604 | }
|
1605 + | /* StructureGenerator.kt:135 */
|
958 1606 | }
|
1607 + | /* ServerCodegenVisitor.kt:345 */
|
959 1608 | impl MalformedByteInput {
|
960 - | /// Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
1609 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
1610 + | /* ServerBuilderGenerator.kt:295 */
|
961 1611 | pub fn builder() -> crate::input::malformed_byte_input::Builder {
|
1612 + | /* ServerBuilderGenerator.kt:296 */
|
962 1613 | crate::input::malformed_byte_input::Builder::default()
|
1614 + | /* ServerBuilderGenerator.kt:295 */
|
963 1615 | }
|
1616 + | /* ServerCodegenVisitor.kt:345 */
|
964 1617 | }
|
1618 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
965 1619 | impl crate::constrained::Constrained for crate::input::MalformedByteInput {
|
966 1620 | type Unconstrained = crate::input::malformed_byte_input::Builder;
|
967 1621 | }
|
968 1622 |
|
1623 + | /* StructureGenerator.kt:197 */
|
969 1624 | #[allow(missing_docs)] // documentation missing in model
|
1625 + | /* RustType.kt:516 */
|
970 1626 | #[derive(
|
971 1627 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
972 1628 | )]
|
973 - | pub struct MalformedBlobInput {
|
1629 + | pub /* StructureGenerator.kt:201 */ struct MalformedBlobInput {
|
1630 + | /* StructureGenerator.kt:231 */
|
974 1631 | #[allow(missing_docs)] // documentation missing in model
|
975 1632 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1633 + | /* StructureGenerator.kt:201 */
|
976 1634 | }
|
1635 + | /* StructureGenerator.kt:135 */
|
977 1636 | impl MalformedBlobInput {
|
1637 + | /* StructureGenerator.kt:231 */
|
978 1638 | #[allow(missing_docs)] // documentation missing in model
|
1639 + | /* StructureGenerator.kt:166 */
|
979 1640 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1641 + | /* StructureGenerator.kt:170 */
|
980 1642 | self.blob.as_ref()
|
1643 + | /* StructureGenerator.kt:166 */
|
981 1644 | }
|
1645 + | /* StructureGenerator.kt:135 */
|
982 1646 | }
|
1647 + | /* ServerCodegenVisitor.kt:345 */
|
983 1648 | impl MalformedBlobInput {
|
984 - | /// Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
1649 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
1650 + | /* ServerBuilderGenerator.kt:295 */
|
985 1651 | pub fn builder() -> crate::input::malformed_blob_input::Builder {
|
1652 + | /* ServerBuilderGenerator.kt:296 */
|
986 1653 | crate::input::malformed_blob_input::Builder::default()
|
1654 + | /* ServerBuilderGenerator.kt:295 */
|
987 1655 | }
|
1656 + | /* ServerCodegenVisitor.kt:345 */
|
988 1657 | }
|
1658 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
989 1659 | impl crate::constrained::Constrained for crate::input::MalformedBlobInput {
|
990 1660 | type Unconstrained = crate::input::malformed_blob_input::Builder;
|
991 1661 | }
|
992 1662 |
|
1663 + | /* StructureGenerator.kt:197 */
|
993 1664 | #[allow(missing_docs)] // documentation missing in model
|
1665 + | /* RustType.kt:516 */
|
994 1666 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
995 - | pub struct MalformedMapInput {
|
1667 + | pub /* StructureGenerator.kt:201 */ struct MalformedMapInput {
|
1668 + | /* StructureGenerator.kt:231 */
|
996 1669 | #[allow(missing_docs)] // documentation missing in model
|
997 1670 | pub body_map: ::std::option::Option<
|
998 1671 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
999 1672 | >,
|
1673 + | /* StructureGenerator.kt:201 */
|
1000 1674 | }
|
1675 + | /* StructureGenerator.kt:135 */
|
1001 1676 | impl MalformedMapInput {
|
1677 + | /* StructureGenerator.kt:231 */
|
1002 1678 | #[allow(missing_docs)] // documentation missing in model
|
1679 + | /* StructureGenerator.kt:166 */
|
1003 1680 | pub fn body_map(
|
1004 1681 | &self,
|
1005 1682 | ) -> ::std::option::Option<
|
1006 1683 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1007 1684 | > {
|
1685 + | /* StructureGenerator.kt:170 */
|
1008 1686 | self.body_map.as_ref()
|
1687 + | /* StructureGenerator.kt:166 */
|
1009 1688 | }
|
1689 + | /* StructureGenerator.kt:135 */
|
1010 1690 | }
|
1691 + | /* ServerCodegenVisitor.kt:345 */
|
1011 1692 | impl MalformedMapInput {
|
1012 - | /// Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
1693 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
1694 + | /* ServerBuilderGenerator.kt:295 */
|
1013 1695 | pub fn builder() -> crate::input::malformed_map_input::Builder {
|
1696 + | /* ServerBuilderGenerator.kt:296 */
|
1014 1697 | crate::input::malformed_map_input::Builder::default()
|
1698 + | /* ServerBuilderGenerator.kt:295 */
|
1015 1699 | }
|
1700 + | /* ServerCodegenVisitor.kt:345 */
|
1016 1701 | }
|
1702 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1017 1703 | impl crate::constrained::Constrained for crate::input::MalformedMapInput {
|
1018 1704 | type Unconstrained = crate::input::malformed_map_input::Builder;
|
1019 1705 | }
|
1020 1706 |
|
1707 + | /* StructureGenerator.kt:197 */
|
1021 1708 | #[allow(missing_docs)] // documentation missing in model
|
1709 + | /* RustType.kt:516 */
|
1022 1710 | #[derive(
|
1023 1711 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1024 1712 | )]
|
1025 - | pub struct MalformedListInput {
|
1713 + | pub /* StructureGenerator.kt:201 */ struct MalformedListInput {
|
1714 + | /* StructureGenerator.kt:231 */
|
1026 1715 | #[allow(missing_docs)] // documentation missing in model
|
1027 1716 | pub body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1717 + | /* StructureGenerator.kt:201 */
|
1028 1718 | }
|
1719 + | /* StructureGenerator.kt:135 */
|
1029 1720 | impl MalformedListInput {
|
1721 + | /* StructureGenerator.kt:231 */
|
1030 1722 | #[allow(missing_docs)] // documentation missing in model
|
1723 + | /* StructureGenerator.kt:166 */
|
1031 1724 | pub fn body_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1725 + | /* StructureGenerator.kt:169 */
|
1032 1726 | self.body_list.as_deref()
|
1727 + | /* StructureGenerator.kt:166 */
|
1033 1728 | }
|
1729 + | /* StructureGenerator.kt:135 */
|
1034 1730 | }
|
1731 + | /* ServerCodegenVisitor.kt:345 */
|
1035 1732 | impl MalformedListInput {
|
1036 - | /// Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
1733 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
1734 + | /* ServerBuilderGenerator.kt:295 */
|
1037 1735 | pub fn builder() -> crate::input::malformed_list_input::Builder {
|
1736 + | /* ServerBuilderGenerator.kt:296 */
|
1038 1737 | crate::input::malformed_list_input::Builder::default()
|
1738 + | /* ServerBuilderGenerator.kt:295 */
|
1039 1739 | }
|
1740 + | /* ServerCodegenVisitor.kt:345 */
|
1040 1741 | }
|
1742 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1041 1743 | impl crate::constrained::Constrained for crate::input::MalformedListInput {
|
1042 1744 | type Unconstrained = crate::input::malformed_list_input::Builder;
|
1043 1745 | }
|
1044 1746 |
|
1747 + | /* StructureGenerator.kt:197 */
|
1045 1748 | #[allow(missing_docs)] // documentation missing in model
|
1749 + | /* RustType.kt:516 */
|
1046 1750 | #[derive(
|
1047 1751 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1048 1752 | )]
|
1049 - | pub struct MalformedBooleanInput {
|
1753 + | pub /* StructureGenerator.kt:201 */ struct MalformedBooleanInput {
|
1754 + | /* StructureGenerator.kt:231 */
|
1050 1755 | #[allow(missing_docs)] // documentation missing in model
|
1051 1756 | pub boolean_in_body: ::std::option::Option<bool>,
|
1757 + | /* StructureGenerator.kt:231 */
|
1052 1758 | #[allow(missing_docs)] // documentation missing in model
|
1053 1759 | pub boolean_in_path: bool,
|
1760 + | /* StructureGenerator.kt:231 */
|
1054 1761 | #[allow(missing_docs)] // documentation missing in model
|
1055 1762 | pub boolean_in_query: ::std::option::Option<bool>,
|
1763 + | /* StructureGenerator.kt:231 */
|
1056 1764 | #[allow(missing_docs)] // documentation missing in model
|
1057 1765 | pub boolean_in_header: ::std::option::Option<bool>,
|
1766 + | /* StructureGenerator.kt:201 */
|
1058 1767 | }
|
1768 + | /* StructureGenerator.kt:135 */
|
1059 1769 | impl MalformedBooleanInput {
|
1770 + | /* StructureGenerator.kt:231 */
|
1060 1771 | #[allow(missing_docs)] // documentation missing in model
|
1772 + | /* StructureGenerator.kt:166 */
|
1061 1773 | pub fn boolean_in_body(&self) -> ::std::option::Option<bool> {
|
1774 + | /* StructureGenerator.kt:168 */
|
1062 1775 | self.boolean_in_body
|
1776 + | /* StructureGenerator.kt:166 */
|
1063 1777 | }
|
1778 + | /* StructureGenerator.kt:231 */
|
1064 1779 | #[allow(missing_docs)] // documentation missing in model
|
1780 + | /* StructureGenerator.kt:166 */
|
1065 1781 | pub fn boolean_in_path(&self) -> bool {
|
1782 + | /* StructureGenerator.kt:168 */
|
1066 1783 | self.boolean_in_path
|
1784 + | /* StructureGenerator.kt:166 */
|
1067 1785 | }
|
1786 + | /* StructureGenerator.kt:231 */
|
1068 1787 | #[allow(missing_docs)] // documentation missing in model
|
1788 + | /* StructureGenerator.kt:166 */
|
1069 1789 | pub fn boolean_in_query(&self) -> ::std::option::Option<bool> {
|
1790 + | /* StructureGenerator.kt:168 */
|
1070 1791 | self.boolean_in_query
|
1792 + | /* StructureGenerator.kt:166 */
|
1071 1793 | }
|
1794 + | /* StructureGenerator.kt:231 */
|
1072 1795 | #[allow(missing_docs)] // documentation missing in model
|
1796 + | /* StructureGenerator.kt:166 */
|
1073 1797 | pub fn boolean_in_header(&self) -> ::std::option::Option<bool> {
|
1798 + | /* StructureGenerator.kt:168 */
|
1074 1799 | self.boolean_in_header
|
1800 + | /* StructureGenerator.kt:166 */
|
1075 1801 | }
|
1802 + | /* StructureGenerator.kt:135 */
|
1076 1803 | }
|
1804 + | /* ServerCodegenVisitor.kt:345 */
|
1077 1805 | impl MalformedBooleanInput {
|
1078 - | /// Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
1806 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
1807 + | /* ServerBuilderGenerator.kt:295 */
|
1079 1808 | pub fn builder() -> crate::input::malformed_boolean_input::Builder {
|
1809 + | /* ServerBuilderGenerator.kt:296 */
|
1080 1810 | crate::input::malformed_boolean_input::Builder::default()
|
1811 + | /* ServerBuilderGenerator.kt:295 */
|
1081 1812 | }
|
1813 + | /* ServerCodegenVisitor.kt:345 */
|
1082 1814 | }
|
1815 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1083 1816 | impl crate::constrained::Constrained for crate::input::MalformedBooleanInput {
|
1084 1817 | type Unconstrained = crate::input::malformed_boolean_input::Builder;
|
1085 1818 | }
|
1086 1819 |
|
1820 + | /* StructureGenerator.kt:197 */
|
1087 1821 | #[allow(missing_docs)] // documentation missing in model
|
1822 + | /* RustType.kt:516 */
|
1088 1823 | #[derive(
|
1089 1824 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1090 1825 | )]
|
1091 - | pub struct MalformedUnionInput {
|
1826 + | pub /* StructureGenerator.kt:201 */ struct MalformedUnionInput {
|
1827 + | /* StructureGenerator.kt:231 */
|
1092 1828 | #[allow(missing_docs)] // documentation missing in model
|
1093 1829 | pub union: ::std::option::Option<crate::model::SimpleUnion>,
|
1830 + | /* StructureGenerator.kt:201 */
|
1094 1831 | }
|
1832 + | /* StructureGenerator.kt:135 */
|
1095 1833 | impl MalformedUnionInput {
|
1834 + | /* StructureGenerator.kt:231 */
|
1096 1835 | #[allow(missing_docs)] // documentation missing in model
|
1836 + | /* StructureGenerator.kt:166 */
|
1097 1837 | pub fn union(&self) -> ::std::option::Option<&crate::model::SimpleUnion> {
|
1838 + | /* StructureGenerator.kt:170 */
|
1098 1839 | self.union.as_ref()
|
1840 + | /* StructureGenerator.kt:166 */
|
1099 1841 | }
|
1842 + | /* StructureGenerator.kt:135 */
|
1100 1843 | }
|
1844 + | /* ServerCodegenVisitor.kt:345 */
|
1101 1845 | impl MalformedUnionInput {
|
1102 - | /// Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
1846 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
1847 + | /* ServerBuilderGenerator.kt:295 */
|
1103 1848 | pub fn builder() -> crate::input::malformed_union_input::Builder {
|
1849 + | /* ServerBuilderGenerator.kt:296 */
|
1104 1850 | crate::input::malformed_union_input::Builder::default()
|
1851 + | /* ServerBuilderGenerator.kt:295 */
|
1105 1852 | }
|
1853 + | /* ServerCodegenVisitor.kt:345 */
|
1106 1854 | }
|
1855 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1107 1856 | impl crate::constrained::Constrained for crate::input::MalformedUnionInput {
|
1108 1857 | type Unconstrained = crate::input::malformed_union_input::Builder;
|
1109 1858 | }
|
1110 1859 |
|
1860 + | /* StructureGenerator.kt:197 */
|
1111 1861 | #[allow(missing_docs)] // documentation missing in model
|
1862 + | /* RustType.kt:516 */
|
1112 1863 | #[derive(
|
1113 1864 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1114 1865 | )]
|
1115 - | pub struct MalformedIntegerInput {
|
1866 + | pub /* StructureGenerator.kt:201 */ struct MalformedIntegerInput {
|
1867 + | /* StructureGenerator.kt:231 */
|
1116 1868 | #[allow(missing_docs)] // documentation missing in model
|
1117 1869 | pub integer_in_body: ::std::option::Option<i32>,
|
1870 + | /* StructureGenerator.kt:231 */
|
1118 1871 | #[allow(missing_docs)] // documentation missing in model
|
1119 1872 | pub integer_in_path: i32,
|
1873 + | /* StructureGenerator.kt:231 */
|
1120 1874 | #[allow(missing_docs)] // documentation missing in model
|
1121 1875 | pub integer_in_query: ::std::option::Option<i32>,
|
1876 + | /* StructureGenerator.kt:231 */
|
1122 1877 | #[allow(missing_docs)] // documentation missing in model
|
1123 1878 | pub integer_in_header: ::std::option::Option<i32>,
|
1879 + | /* StructureGenerator.kt:201 */
|
1124 1880 | }
|
1881 + | /* StructureGenerator.kt:135 */
|
1125 1882 | impl MalformedIntegerInput {
|
1883 + | /* StructureGenerator.kt:231 */
|
1126 1884 | #[allow(missing_docs)] // documentation missing in model
|
1885 + | /* StructureGenerator.kt:166 */
|
1127 1886 | pub fn integer_in_body(&self) -> ::std::option::Option<i32> {
|
1887 + | /* StructureGenerator.kt:168 */
|
1128 1888 | self.integer_in_body
|
1889 + | /* StructureGenerator.kt:166 */
|
1129 1890 | }
|
1891 + | /* StructureGenerator.kt:231 */
|
1130 1892 | #[allow(missing_docs)] // documentation missing in model
|
1893 + | /* StructureGenerator.kt:166 */
|
1131 1894 | pub fn integer_in_path(&self) -> i32 {
|
1895 + | /* StructureGenerator.kt:168 */
|
1132 1896 | self.integer_in_path
|
1897 + | /* StructureGenerator.kt:166 */
|
1133 1898 | }
|
1899 + | /* StructureGenerator.kt:231 */
|
1134 1900 | #[allow(missing_docs)] // documentation missing in model
|
1901 + | /* StructureGenerator.kt:166 */
|
1135 1902 | pub fn integer_in_query(&self) -> ::std::option::Option<i32> {
|
1903 + | /* StructureGenerator.kt:168 */
|
1136 1904 | self.integer_in_query
|
1905 + | /* StructureGenerator.kt:166 */
|
1137 1906 | }
|
1907 + | /* StructureGenerator.kt:231 */
|
1138 1908 | #[allow(missing_docs)] // documentation missing in model
|
1909 + | /* StructureGenerator.kt:166 */
|
1139 1910 | pub fn integer_in_header(&self) -> ::std::option::Option<i32> {
|
1911 + | /* StructureGenerator.kt:168 */
|
1140 1912 | self.integer_in_header
|
1913 + | /* StructureGenerator.kt:166 */
|
1141 1914 | }
|
1915 + | /* StructureGenerator.kt:135 */
|
1142 1916 | }
|
1917 + | /* ServerCodegenVisitor.kt:345 */
|
1143 1918 | impl MalformedIntegerInput {
|
1144 - | /// Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
1919 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
1920 + | /* ServerBuilderGenerator.kt:295 */
|
1145 1921 | pub fn builder() -> crate::input::malformed_integer_input::Builder {
|
1922 + | /* ServerBuilderGenerator.kt:296 */
|
1146 1923 | crate::input::malformed_integer_input::Builder::default()
|
1924 + | /* ServerBuilderGenerator.kt:295 */
|
1147 1925 | }
|
1926 + | /* ServerCodegenVisitor.kt:345 */
|
1148 1927 | }
|
1928 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1149 1929 | impl crate::constrained::Constrained for crate::input::MalformedIntegerInput {
|
1150 1930 | type Unconstrained = crate::input::malformed_integer_input::Builder;
|
1151 1931 | }
|
1152 1932 |
|
1933 + | /* StructureGenerator.kt:197 */
|
1153 1934 | #[allow(missing_docs)] // documentation missing in model
|
1935 + | /* RustType.kt:516 */
|
1154 1936 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1155 - | pub struct MalformedRequestBodyInput {
|
1937 + | pub /* StructureGenerator.kt:201 */ struct MalformedRequestBodyInput {
|
1938 + | /* StructureGenerator.kt:231 */
|
1156 1939 | #[allow(missing_docs)] // documentation missing in model
|
1157 1940 | pub int: ::std::option::Option<i32>,
|
1941 + | /* StructureGenerator.kt:231 */
|
1158 1942 | #[allow(missing_docs)] // documentation missing in model
|
1159 1943 | pub float: ::std::option::Option<f32>,
|
1944 + | /* StructureGenerator.kt:201 */
|
1160 1945 | }
|
1946 + | /* StructureGenerator.kt:135 */
|
1161 1947 | impl MalformedRequestBodyInput {
|
1948 + | /* StructureGenerator.kt:231 */
|
1162 1949 | #[allow(missing_docs)] // documentation missing in model
|
1950 + | /* StructureGenerator.kt:166 */
|
1163 1951 | pub fn int(&self) -> ::std::option::Option<i32> {
|
1952 + | /* StructureGenerator.kt:168 */
|
1164 1953 | self.int
|
1954 + | /* StructureGenerator.kt:166 */
|
1165 1955 | }
|
1956 + | /* StructureGenerator.kt:231 */
|
1166 1957 | #[allow(missing_docs)] // documentation missing in model
|
1958 + | /* StructureGenerator.kt:166 */
|
1167 1959 | pub fn float(&self) -> ::std::option::Option<f32> {
|
1960 + | /* StructureGenerator.kt:168 */
|
1168 1961 | self.float
|
1962 + | /* StructureGenerator.kt:166 */
|
1169 1963 | }
|
1964 + | /* StructureGenerator.kt:135 */
|
1170 1965 | }
|
1966 + | /* ServerCodegenVisitor.kt:345 */
|
1171 1967 | impl MalformedRequestBodyInput {
|
1172 - | /// Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
1968 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
1969 + | /* ServerBuilderGenerator.kt:295 */
|
1173 1970 | pub fn builder() -> crate::input::malformed_request_body_input::Builder {
|
1971 + | /* ServerBuilderGenerator.kt:296 */
|
1174 1972 | crate::input::malformed_request_body_input::Builder::default()
|
1973 + | /* ServerBuilderGenerator.kt:295 */
|
1175 1974 | }
|
1975 + | /* ServerCodegenVisitor.kt:345 */
|
1176 1976 | }
|
1977 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1177 1978 | impl crate::constrained::Constrained for crate::input::MalformedRequestBodyInput {
|
1178 1979 | type Unconstrained = crate::input::malformed_request_body_input::Builder;
|
1179 1980 | }
|
1180 1981 |
|
1982 + | /* StructureGenerator.kt:197 */
|
1181 1983 | #[allow(missing_docs)] // documentation missing in model
|
1984 + | /* RustType.kt:516 */
|
1182 1985 | #[derive(
|
1183 1986 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1184 1987 | )]
|
1185 - | pub struct HttpChecksumRequiredInput {
|
1988 + | pub /* StructureGenerator.kt:201 */ struct HttpChecksumRequiredInput {
|
1989 + | /* StructureGenerator.kt:231 */
|
1186 1990 | #[allow(missing_docs)] // documentation missing in model
|
1187 1991 | pub foo: ::std::option::Option<::std::string::String>,
|
1992 + | /* StructureGenerator.kt:201 */
|
1188 1993 | }
|
1994 + | /* StructureGenerator.kt:135 */
|
1189 1995 | impl HttpChecksumRequiredInput {
|
1996 + | /* StructureGenerator.kt:231 */
|
1190 1997 | #[allow(missing_docs)] // documentation missing in model
|
1998 + | /* StructureGenerator.kt:166 */
|
1191 1999 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
2000 + | /* StructureGenerator.kt:169 */
|
1192 2001 | self.foo.as_deref()
|
2002 + | /* StructureGenerator.kt:166 */
|
1193 2003 | }
|
2004 + | /* StructureGenerator.kt:135 */
|
1194 2005 | }
|
2006 + | /* ServerCodegenVisitor.kt:345 */
|
1195 2007 | impl HttpChecksumRequiredInput {
|
1196 - | /// Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
2008 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
2009 + | /* ServerBuilderGenerator.kt:295 */
|
1197 2010 | pub fn builder() -> crate::input::http_checksum_required_input::Builder {
|
2011 + | /* ServerBuilderGenerator.kt:296 */
|
1198 2012 | crate::input::http_checksum_required_input::Builder::default()
|
2013 + | /* ServerBuilderGenerator.kt:295 */
|
1199 2014 | }
|
2015 + | /* ServerCodegenVisitor.kt:345 */
|
1200 2016 | }
|
2017 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1201 2018 | impl crate::constrained::Constrained for crate::input::HttpChecksumRequiredInput {
|
1202 2019 | type Unconstrained = crate::input::http_checksum_required_input::Builder;
|
1203 2020 | }
|
1204 2021 |
|
2022 + | /* StructureGenerator.kt:197 */
|
1205 2023 | #[allow(missing_docs)] // documentation missing in model
|
2024 + | /* RustType.kt:516 */
|
1206 2025 | #[derive(
|
1207 2026 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1208 2027 | )]
|
1209 - | pub struct HostWithPathOperationInput {}
|
2028 + | pub /* StructureGenerator.kt:201 */ struct HostWithPathOperationInput {/* StructureGenerator.kt:201 */}
|
2029 + | /* ServerCodegenVisitor.kt:345 */
|
1210 2030 | impl HostWithPathOperationInput {
|
1211 - | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2031 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2032 + | /* ServerBuilderGenerator.kt:295 */
|
1212 2033 | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
2034 + | /* ServerBuilderGenerator.kt:296 */
|
1213 2035 | crate::input::host_with_path_operation_input::Builder::default()
|
2036 + | /* ServerBuilderGenerator.kt:295 */
|
1214 2037 | }
|
2038 + | /* ServerCodegenVisitor.kt:345 */
|
1215 2039 | }
|
2040 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1216 2041 | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
1217 2042 | type Unconstrained = crate::input::host_with_path_operation_input::Builder;
|
1218 2043 | }
|
1219 2044 |
|
2045 + | /* StructureGenerator.kt:197 */
|
1220 2046 | #[allow(missing_docs)] // documentation missing in model
|
2047 + | /* RustType.kt:516 */
|
1221 2048 | #[derive(
|
1222 2049 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1223 2050 | )]
|
1224 - | pub struct EndpointWithHostLabelOperationInput {
|
2051 + | pub /* StructureGenerator.kt:201 */ struct EndpointWithHostLabelOperationInput {
|
2052 + | /* StructureGenerator.kt:231 */
|
1225 2053 | #[allow(missing_docs)] // documentation missing in model
|
1226 2054 | pub label: ::std::string::String,
|
2055 + | /* StructureGenerator.kt:201 */
|
1227 2056 | }
|
2057 + | /* StructureGenerator.kt:135 */
|
1228 2058 | impl EndpointWithHostLabelOperationInput {
|
2059 + | /* StructureGenerator.kt:231 */
|
1229 2060 | #[allow(missing_docs)] // documentation missing in model
|
2061 + | /* StructureGenerator.kt:166 */
|
1230 2062 | pub fn label(&self) -> &str {
|
2063 + | /* StructureGenerator.kt:171 */
|
1231 2064 | use std::ops::Deref;
|
1232 2065 | self.label.deref()
|
2066 + | /* StructureGenerator.kt:166 */
|
1233 2067 | }
|
2068 + | /* StructureGenerator.kt:135 */
|
1234 2069 | }
|
2070 + | /* ServerCodegenVisitor.kt:345 */
|
1235 2071 | impl EndpointWithHostLabelOperationInput {
|
1236 - | /// Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2072 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2073 + | /* ServerBuilderGenerator.kt:295 */
|
1237 2074 | pub fn builder() -> crate::input::endpoint_with_host_label_operation_input::Builder {
|
2075 + | /* ServerBuilderGenerator.kt:296 */
|
1238 2076 | crate::input::endpoint_with_host_label_operation_input::Builder::default()
|
2077 + | /* ServerBuilderGenerator.kt:295 */
|
1239 2078 | }
|
2079 + | /* ServerCodegenVisitor.kt:345 */
|
1240 2080 | }
|
2081 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1241 2082 | impl crate::constrained::Constrained for crate::input::EndpointWithHostLabelOperationInput {
|
1242 2083 | type Unconstrained = crate::input::endpoint_with_host_label_operation_input::Builder;
|
1243 2084 | }
|
1244 2085 |
|
2086 + | /* StructureGenerator.kt:197 */
|
1245 2087 | #[allow(missing_docs)] // documentation missing in model
|
2088 + | /* RustType.kt:516 */
|
1246 2089 | #[derive(
|
1247 2090 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1248 2091 | )]
|
1249 - | pub struct EndpointOperationInput {}
|
2092 + | pub /* StructureGenerator.kt:201 */ struct EndpointOperationInput {/* StructureGenerator.kt:201 */}
|
2093 + | /* ServerCodegenVisitor.kt:345 */
|
1250 2094 | impl EndpointOperationInput {
|
1251 - | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2095 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2096 + | /* ServerBuilderGenerator.kt:295 */
|
1252 2097 | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
2098 + | /* ServerBuilderGenerator.kt:296 */
|
1253 2099 | crate::input::endpoint_operation_input::Builder::default()
|
2100 + | /* ServerBuilderGenerator.kt:295 */
|
1254 2101 | }
|
2102 + | /* ServerCodegenVisitor.kt:345 */
|
1255 2103 | }
|
2104 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1256 2105 | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
1257 2106 | type Unconstrained = crate::input::endpoint_operation_input::Builder;
|
1258 2107 | }
|
1259 2108 |
|
2109 + | /* StructureGenerator.kt:197 */
|
1260 2110 | #[allow(missing_docs)] // documentation missing in model
|
2111 + | /* RustType.kt:516 */
|
1261 2112 | #[derive(
|
1262 2113 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1263 2114 | )]
|
1264 - | pub struct PostUnionWithJsonNameInput {
|
2115 + | pub /* StructureGenerator.kt:201 */ struct PostUnionWithJsonNameInput {
|
2116 + | /* StructureGenerator.kt:231 */
|
1265 2117 | #[allow(missing_docs)] // documentation missing in model
|
1266 2118 | pub value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
2119 + | /* StructureGenerator.kt:201 */
|
1267 2120 | }
|
2121 + | /* StructureGenerator.kt:135 */
|
1268 2122 | impl PostUnionWithJsonNameInput {
|
2123 + | /* StructureGenerator.kt:231 */
|
1269 2124 | #[allow(missing_docs)] // documentation missing in model
|
2125 + | /* StructureGenerator.kt:166 */
|
1270 2126 | pub fn value(&self) -> ::std::option::Option<&crate::model::UnionWithJsonName> {
|
2127 + | /* StructureGenerator.kt:170 */
|
1271 2128 | self.value.as_ref()
|
2129 + | /* StructureGenerator.kt:166 */
|
1272 2130 | }
|
2131 + | /* StructureGenerator.kt:135 */
|
1273 2132 | }
|
2133 + | /* ServerCodegenVisitor.kt:345 */
|
1274 2134 | impl PostUnionWithJsonNameInput {
|
1275 - | /// Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
2135 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
2136 + | /* ServerBuilderGenerator.kt:295 */
|
1276 2137 | pub fn builder() -> crate::input::post_union_with_json_name_input::Builder {
|
2138 + | /* ServerBuilderGenerator.kt:296 */
|
1277 2139 | crate::input::post_union_with_json_name_input::Builder::default()
|
2140 + | /* ServerBuilderGenerator.kt:295 */
|
1278 2141 | }
|
2142 + | /* ServerCodegenVisitor.kt:345 */
|
1279 2143 | }
|
2144 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1280 2145 | impl crate::constrained::Constrained for crate::input::PostUnionWithJsonNameInput {
|
1281 2146 | type Unconstrained = crate::input::post_union_with_json_name_input::Builder;
|
1282 2147 | }
|
1283 2148 |
|
2149 + | /* StructureGenerator.kt:197 */
|
1284 2150 | #[allow(missing_docs)] // documentation missing in model
|
2151 + | /* RustType.kt:516 */
|
1285 2152 | #[derive(
|
1286 2153 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1287 2154 | )]
|
1288 - | pub struct PostPlayerActionInput {
|
2155 + | pub /* StructureGenerator.kt:201 */ struct PostPlayerActionInput {
|
2156 + | /* StructureGenerator.kt:231 */
|
1289 2157 | #[allow(missing_docs)] // documentation missing in model
|
1290 2158 | pub action: ::std::option::Option<crate::model::PlayerAction>,
|
2159 + | /* StructureGenerator.kt:201 */
|
1291 2160 | }
|
2161 + | /* StructureGenerator.kt:135 */
|
1292 2162 | impl PostPlayerActionInput {
|
2163 + | /* StructureGenerator.kt:231 */
|
1293 2164 | #[allow(missing_docs)] // documentation missing in model
|
2165 + | /* StructureGenerator.kt:166 */
|
1294 2166 | pub fn action(&self) -> ::std::option::Option<&crate::model::PlayerAction> {
|
2167 + | /* StructureGenerator.kt:170 */
|
1295 2168 | self.action.as_ref()
|
2169 + | /* StructureGenerator.kt:166 */
|
1296 2170 | }
|
2171 + | /* StructureGenerator.kt:135 */
|
1297 2172 | }
|
2173 + | /* ServerCodegenVisitor.kt:345 */
|
1298 2174 | impl PostPlayerActionInput {
|
1299 - | /// Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
2175 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
2176 + | /* ServerBuilderGenerator.kt:295 */
|
1300 2177 | pub fn builder() -> crate::input::post_player_action_input::Builder {
|
2178 + | /* ServerBuilderGenerator.kt:296 */
|
1301 2179 | crate::input::post_player_action_input::Builder::default()
|
2180 + | /* ServerBuilderGenerator.kt:295 */
|
1302 2181 | }
|
2182 + | /* ServerCodegenVisitor.kt:345 */
|
1303 2183 | }
|
2184 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1304 2185 | impl crate::constrained::Constrained for crate::input::PostPlayerActionInput {
|
1305 2186 | type Unconstrained = crate::input::post_player_action_input::Builder;
|
1306 2187 | }
|
1307 2188 |
|
1308 - | /// A shared structure that contains a single union member.
|
2189 + | /// /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
|
2190 + | /* RustType.kt:516 */
|
1309 2191 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1310 - | pub struct JsonUnionsInput {
|
1311 - | /// A union with a representative set of types for members.
|
2192 + | pub /* StructureGenerator.kt:201 */ struct JsonUnionsInput {
|
2193 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
1312 2194 | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
2195 + | /* StructureGenerator.kt:201 */
|
1313 2196 | }
|
2197 + | /* StructureGenerator.kt:135 */
|
1314 2198 | impl JsonUnionsInput {
|
1315 - | /// A union with a representative set of types for members.
|
2199 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
2200 + | /* StructureGenerator.kt:166 */
|
1316 2201 | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
2202 + | /* StructureGenerator.kt:170 */
|
1317 2203 | self.contents.as_ref()
|
2204 + | /* StructureGenerator.kt:166 */
|
1318 2205 | }
|
2206 + | /* StructureGenerator.kt:135 */
|
1319 2207 | }
|
2208 + | /* ServerCodegenVisitor.kt:345 */
|
1320 2209 | impl JsonUnionsInput {
|
1321 - | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2210 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2211 + | /* ServerBuilderGenerator.kt:295 */
|
1322 2212 | pub fn builder() -> crate::input::json_unions_input::Builder {
|
2213 + | /* ServerBuilderGenerator.kt:296 */
|
1323 2214 | crate::input::json_unions_input::Builder::default()
|
2215 + | /* ServerBuilderGenerator.kt:295 */
|
1324 2216 | }
|
2217 + | /* ServerCodegenVisitor.kt:345 */
|
1325 2218 | }
|
2219 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1326 2220 | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
1327 2221 | type Unconstrained = crate::input::json_unions_input::Builder;
|
1328 2222 | }
|
1329 2223 |
|
2224 + | /* StructureGenerator.kt:197 */
|
1330 2225 | #[allow(missing_docs)] // documentation missing in model
|
2226 + | /* RustType.kt:516 */
|
1331 2227 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1332 - | pub struct DocumentTypeAsMapValueInput {
|
2228 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsMapValueInput {
|
2229 + | /* StructureGenerator.kt:231 */
|
1333 2230 | #[allow(missing_docs)] // documentation missing in model
|
1334 2231 | pub doc_valued_map: ::std::option::Option<
|
1335 2232 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
1336 2233 | >,
|
2234 + | /* StructureGenerator.kt:201 */
|
1337 2235 | }
|
2236 + | /* StructureGenerator.kt:135 */
|
1338 2237 | impl DocumentTypeAsMapValueInput {
|
2238 + | /* StructureGenerator.kt:231 */
|
1339 2239 | #[allow(missing_docs)] // documentation missing in model
|
2240 + | /* StructureGenerator.kt:166 */
|
1340 2241 | pub fn doc_valued_map(
|
1341 2242 | &self,
|
1342 2243 | ) -> ::std::option::Option<
|
1343 2244 | &::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
1344 2245 | > {
|
2246 + | /* StructureGenerator.kt:170 */
|
1345 2247 | self.doc_valued_map.as_ref()
|
2248 + | /* StructureGenerator.kt:166 */
|
1346 2249 | }
|
2250 + | /* StructureGenerator.kt:135 */
|
1347 2251 | }
|
2252 + | /* ServerCodegenVisitor.kt:345 */
|
1348 2253 | impl DocumentTypeAsMapValueInput {
|
1349 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
2254 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
2255 + | /* ServerBuilderGenerator.kt:295 */
|
1350 2256 | pub fn builder() -> crate::input::document_type_as_map_value_input::Builder {
|
2257 + | /* ServerBuilderGenerator.kt:296 */
|
1351 2258 | crate::input::document_type_as_map_value_input::Builder::default()
|
2259 + | /* ServerBuilderGenerator.kt:295 */
|
1352 2260 | }
|
2261 + | /* ServerCodegenVisitor.kt:345 */
|
1353 2262 | }
|
2263 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1354 2264 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsMapValueInput {
|
1355 2265 | type Unconstrained = crate::input::document_type_as_map_value_input::Builder;
|
1356 2266 | }
|
1357 2267 |
|
2268 + | /* StructureGenerator.kt:197 */
|
1358 2269 | #[allow(missing_docs)] // documentation missing in model
|
2270 + | /* RustType.kt:516 */
|
1359 2271 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1360 - | pub struct DocumentTypeAsPayloadInput {
|
2272 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsPayloadInput {
|
2273 + | /* StructureGenerator.kt:231 */
|
1361 2274 | #[allow(missing_docs)] // documentation missing in model
|
1362 2275 | pub document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
2276 + | /* StructureGenerator.kt:201 */
|
1363 2277 | }
|
2278 + | /* StructureGenerator.kt:135 */
|
1364 2279 | impl DocumentTypeAsPayloadInput {
|
2280 + | /* StructureGenerator.kt:231 */
|
1365 2281 | #[allow(missing_docs)] // documentation missing in model
|
2282 + | /* StructureGenerator.kt:166 */
|
1366 2283 | pub fn document_value(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
|
2284 + | /* StructureGenerator.kt:170 */
|
1367 2285 | self.document_value.as_ref()
|
2286 + | /* StructureGenerator.kt:166 */
|
1368 2287 | }
|
2288 + | /* StructureGenerator.kt:135 */
|
1369 2289 | }
|
2290 + | /* ServerCodegenVisitor.kt:345 */
|
1370 2291 | impl DocumentTypeAsPayloadInput {
|
1371 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
2292 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
2293 + | /* ServerBuilderGenerator.kt:295 */
|
1372 2294 | pub fn builder() -> crate::input::document_type_as_payload_input::Builder {
|
2295 + | /* ServerBuilderGenerator.kt:296 */
|
1373 2296 | crate::input::document_type_as_payload_input::Builder::default()
|
2297 + | /* ServerBuilderGenerator.kt:295 */
|
1374 2298 | }
|
2299 + | /* ServerCodegenVisitor.kt:345 */
|
1375 2300 | }
|
2301 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1376 2302 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsPayloadInput {
|
1377 2303 | type Unconstrained = crate::input::document_type_as_payload_input::Builder;
|
1378 2304 | }
|
1379 2305 |
|
2306 + | /* StructureGenerator.kt:197 */
|
1380 2307 | #[allow(missing_docs)] // documentation missing in model
|
2308 + | /* RustType.kt:516 */
|
1381 2309 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1382 - | pub struct DocumentTypeInput {
|
2310 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeInput {
|
2311 + | /* StructureGenerator.kt:231 */
|
1383 2312 | #[allow(missing_docs)] // documentation missing in model
|
1384 2313 | pub string_value: ::std::option::Option<::std::string::String>,
|
2314 + | /* StructureGenerator.kt:231 */
|
1385 2315 | #[allow(missing_docs)] // documentation missing in model
|
1386 2316 | pub document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
2317 + | /* StructureGenerator.kt:201 */
|
1387 2318 | }
|
2319 + | /* StructureGenerator.kt:135 */
|
1388 2320 | impl DocumentTypeInput {
|
2321 + | /* StructureGenerator.kt:231 */
|
1389 2322 | #[allow(missing_docs)] // documentation missing in model
|
2323 + | /* StructureGenerator.kt:166 */
|
1390 2324 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
2325 + | /* StructureGenerator.kt:169 */
|
1391 2326 | self.string_value.as_deref()
|
2327 + | /* StructureGenerator.kt:166 */
|
1392 2328 | }
|
2329 + | /* StructureGenerator.kt:231 */
|
1393 2330 | #[allow(missing_docs)] // documentation missing in model
|
2331 + | /* StructureGenerator.kt:166 */
|
1394 2332 | pub fn document_value(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
|
2333 + | /* StructureGenerator.kt:170 */
|
1395 2334 | self.document_value.as_ref()
|
2335 + | /* StructureGenerator.kt:166 */
|
1396 2336 | }
|
2337 + | /* StructureGenerator.kt:135 */
|
1397 2338 | }
|
2339 + | /* ServerCodegenVisitor.kt:345 */
|
1398 2340 | impl DocumentTypeInput {
|
1399 - | /// Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
2341 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
2342 + | /* ServerBuilderGenerator.kt:295 */
|
1400 2343 | pub fn builder() -> crate::input::document_type_input::Builder {
|
2344 + | /* ServerBuilderGenerator.kt:296 */
|
1401 2345 | crate::input::document_type_input::Builder::default()
|
2346 + | /* ServerBuilderGenerator.kt:295 */
|
1402 2347 | }
|
2348 + | /* ServerCodegenVisitor.kt:345 */
|
1403 2349 | }
|
2350 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1404 2351 | impl crate::constrained::Constrained for crate::input::DocumentTypeInput {
|
1405 2352 | type Unconstrained = crate::input::document_type_input::Builder;
|
1406 2353 | }
|
1407 2354 |
|
2355 + | /* StructureGenerator.kt:197 */
|
1408 2356 | #[allow(missing_docs)] // documentation missing in model
|
2357 + | /* RustType.kt:516 */
|
1409 2358 | #[derive(
|
1410 2359 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1411 2360 | )]
|
1412 - | pub struct JsonBlobsInput {
|
2361 + | pub /* StructureGenerator.kt:201 */ struct JsonBlobsInput {
|
2362 + | /* StructureGenerator.kt:231 */
|
1413 2363 | #[allow(missing_docs)] // documentation missing in model
|
1414 2364 | pub data: ::std::option::Option<::aws_smithy_types::Blob>,
|
2365 + | /* StructureGenerator.kt:201 */
|
1415 2366 | }
|
2367 + | /* StructureGenerator.kt:135 */
|
1416 2368 | impl JsonBlobsInput {
|
2369 + | /* StructureGenerator.kt:231 */
|
1417 2370 | #[allow(missing_docs)] // documentation missing in model
|
2371 + | /* StructureGenerator.kt:166 */
|
1418 2372 | pub fn data(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
2373 + | /* StructureGenerator.kt:170 */
|
1419 2374 | self.data.as_ref()
|
2375 + | /* StructureGenerator.kt:166 */
|
1420 2376 | }
|
2377 + | /* StructureGenerator.kt:135 */
|
1421 2378 | }
|
2379 + | /* ServerCodegenVisitor.kt:345 */
|
1422 2380 | impl JsonBlobsInput {
|
1423 - | /// Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
2381 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
2382 + | /* ServerBuilderGenerator.kt:295 */
|
1424 2383 | pub fn builder() -> crate::input::json_blobs_input::Builder {
|
2384 + | /* ServerBuilderGenerator.kt:296 */
|
1425 2385 | crate::input::json_blobs_input::Builder::default()
|
2386 + | /* ServerBuilderGenerator.kt:295 */
|
1426 2387 | }
|
2388 + | /* ServerCodegenVisitor.kt:345 */
|
1427 2389 | }
|
2390 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1428 2391 | impl crate::constrained::Constrained for crate::input::JsonBlobsInput {
|
1429 2392 | type Unconstrained = crate::input::json_blobs_input::Builder;
|
1430 2393 | }
|
1431 2394 |
|
2395 + | /* StructureGenerator.kt:197 */
|
1432 2396 | #[allow(missing_docs)] // documentation missing in model
|
2397 + | /* RustType.kt:516 */
|
1433 2398 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1434 - | pub struct SparseJsonMapsInput {
|
2399 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonMapsInput {
|
2400 + | /* StructureGenerator.kt:231 */
|
1435 2401 | #[allow(missing_docs)] // documentation missing in model
|
1436 2402 | pub sparse_struct_map: ::std::option::Option<
|
1437 2403 | ::std::collections::HashMap<
|
1438 2404 | ::std::string::String,
|
1439 2405 | ::std::option::Option<crate::model::GreetingStruct>,
|
1440 2406 | >,
|
1441 2407 | >,
|
2408 + | /* StructureGenerator.kt:231 */
|
1442 2409 | #[allow(missing_docs)] // documentation missing in model
|
1443 2410 | pub sparse_number_map: ::std::option::Option<
|
1444 2411 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
1445 2412 | >,
|
2413 + | /* StructureGenerator.kt:231 */
|
1446 2414 | #[allow(missing_docs)] // documentation missing in model
|
1447 2415 | pub sparse_boolean_map: ::std::option::Option<
|
1448 2416 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
1449 2417 | >,
|
2418 + | /* StructureGenerator.kt:231 */
|
1450 2419 | #[allow(missing_docs)] // documentation missing in model
|
1451 2420 | pub sparse_string_map: ::std::option::Option<
|
1452 2421 | ::std::collections::HashMap<
|
1453 2422 | ::std::string::String,
|
1454 2423 | ::std::option::Option<::std::string::String>,
|
1455 2424 | >,
|
1456 2425 | >,
|
2426 + | /* StructureGenerator.kt:231 */
|
1457 2427 | #[allow(missing_docs)] // documentation missing in model
|
1458 2428 | pub sparse_set_map: ::std::option::Option<
|
1459 2429 | ::std::collections::HashMap<
|
1460 2430 | ::std::string::String,
|
1461 2431 | ::std::option::Option<crate::model::StringSet>,
|
1462 2432 | >,
|
1463 2433 | >,
|
2434 + | /* StructureGenerator.kt:201 */
|
1464 2435 | }
|
2436 + | /* StructureGenerator.kt:135 */
|
1465 2437 | impl SparseJsonMapsInput {
|
2438 + | /* StructureGenerator.kt:231 */
|
1466 2439 | #[allow(missing_docs)] // documentation missing in model
|
2440 + | /* StructureGenerator.kt:166 */
|
1467 2441 | pub fn sparse_struct_map(
|
1468 2442 | &self,
|
1469 2443 | ) -> ::std::option::Option<
|
1470 2444 | &::std::collections::HashMap<
|
1471 2445 | ::std::string::String,
|
1472 2446 | ::std::option::Option<crate::model::GreetingStruct>,
|
1473 2447 | >,
|
1474 2448 | > {
|
2449 + | /* StructureGenerator.kt:170 */
|
1475 2450 | self.sparse_struct_map.as_ref()
|
2451 + | /* StructureGenerator.kt:166 */
|
1476 2452 | }
|
2453 + | /* StructureGenerator.kt:231 */
|
1477 2454 | #[allow(missing_docs)] // documentation missing in model
|
2455 + | /* StructureGenerator.kt:166 */
|
1478 2456 | pub fn sparse_number_map(
|
1479 2457 | &self,
|
1480 2458 | ) -> ::std::option::Option<
|
1481 2459 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
1482 2460 | > {
|
2461 + | /* StructureGenerator.kt:170 */
|
1483 2462 | self.sparse_number_map.as_ref()
|
2463 + | /* StructureGenerator.kt:166 */
|
1484 2464 | }
|
2465 + | /* StructureGenerator.kt:231 */
|
1485 2466 | #[allow(missing_docs)] // documentation missing in model
|
2467 + | /* StructureGenerator.kt:166 */
|
1486 2468 | pub fn sparse_boolean_map(
|
1487 2469 | &self,
|
1488 2470 | ) -> ::std::option::Option<
|
1489 2471 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
1490 2472 | > {
|
2473 + | /* StructureGenerator.kt:170 */
|
1491 2474 | self.sparse_boolean_map.as_ref()
|
2475 + | /* StructureGenerator.kt:166 */
|
1492 2476 | }
|
2477 + | /* StructureGenerator.kt:231 */
|
1493 2478 | #[allow(missing_docs)] // documentation missing in model
|
2479 + | /* StructureGenerator.kt:166 */
|
1494 2480 | pub fn sparse_string_map(
|
1495 2481 | &self,
|
1496 2482 | ) -> ::std::option::Option<
|
1497 2483 | &::std::collections::HashMap<
|
1498 2484 | ::std::string::String,
|
1499 2485 | ::std::option::Option<::std::string::String>,
|
1500 2486 | >,
|
1501 2487 | > {
|
2488 + | /* StructureGenerator.kt:170 */
|
1502 2489 | self.sparse_string_map.as_ref()
|
2490 + | /* StructureGenerator.kt:166 */
|
1503 2491 | }
|
2492 + | /* StructureGenerator.kt:231 */
|
1504 2493 | #[allow(missing_docs)] // documentation missing in model
|
2494 + | /* StructureGenerator.kt:166 */
|
1505 2495 | pub fn sparse_set_map(
|
1506 2496 | &self,
|
1507 2497 | ) -> ::std::option::Option<
|
1508 2498 | &::std::collections::HashMap<
|
1509 2499 | ::std::string::String,
|
1510 2500 | ::std::option::Option<crate::model::StringSet>,
|
1511 2501 | >,
|
1512 2502 | > {
|
2503 + | /* StructureGenerator.kt:170 */
|
1513 2504 | self.sparse_set_map.as_ref()
|
2505 + | /* StructureGenerator.kt:166 */
|
1514 2506 | }
|
2507 + | /* StructureGenerator.kt:135 */
|
1515 2508 | }
|
2509 + | /* ServerCodegenVisitor.kt:345 */
|
1516 2510 | impl SparseJsonMapsInput {
|
1517 - | /// Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
2511 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
2512 + | /* ServerBuilderGenerator.kt:295 */
|
1518 2513 | pub fn builder() -> crate::input::sparse_json_maps_input::Builder {
|
2514 + | /* ServerBuilderGenerator.kt:296 */
|
1519 2515 | crate::input::sparse_json_maps_input::Builder::default()
|
2516 + | /* ServerBuilderGenerator.kt:295 */
|
1520 2517 | }
|
2518 + | /* ServerCodegenVisitor.kt:345 */
|
1521 2519 | }
|
2520 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1522 2521 | impl crate::constrained::Constrained for crate::input::SparseJsonMapsInput {
|
1523 2522 | type Unconstrained = crate::input::sparse_json_maps_input::Builder;
|
1524 2523 | }
|
1525 2524 |
|
2525 + | /* StructureGenerator.kt:197 */
|
1526 2526 | #[allow(missing_docs)] // documentation missing in model
|
2527 + | /* RustType.kt:516 */
|
1527 2528 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1528 - | pub struct JsonMapsInput {
|
2529 + | pub /* StructureGenerator.kt:201 */ struct JsonMapsInput {
|
2530 + | /* StructureGenerator.kt:231 */
|
1529 2531 | #[allow(missing_docs)] // documentation missing in model
|
1530 2532 | pub dense_struct_map: ::std::option::Option<
|
1531 2533 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
1532 2534 | >,
|
2535 + | /* StructureGenerator.kt:231 */
|
1533 2536 | #[allow(missing_docs)] // documentation missing in model
|
1534 2537 | pub dense_number_map:
|
1535 2538 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
2539 + | /* StructureGenerator.kt:231 */
|
1536 2540 | #[allow(missing_docs)] // documentation missing in model
|
1537 2541 | pub dense_boolean_map:
|
1538 2542 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
2543 + | /* StructureGenerator.kt:231 */
|
1539 2544 | #[allow(missing_docs)] // documentation missing in model
|
1540 2545 | pub dense_string_map: ::std::option::Option<
|
1541 2546 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1542 2547 | >,
|
2548 + | /* StructureGenerator.kt:231 */
|
1543 2549 | #[allow(missing_docs)] // documentation missing in model
|
1544 2550 | pub dense_set_map: ::std::option::Option<
|
1545 2551 | ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
1546 2552 | >,
|
2553 + | /* StructureGenerator.kt:201 */
|
1547 2554 | }
|
2555 + | /* StructureGenerator.kt:135 */
|
1548 2556 | impl JsonMapsInput {
|
2557 + | /* StructureGenerator.kt:231 */
|
1549 2558 | #[allow(missing_docs)] // documentation missing in model
|
2559 + | /* StructureGenerator.kt:166 */
|
1550 2560 | pub fn dense_struct_map(
|
1551 2561 | &self,
|
1552 2562 | ) -> ::std::option::Option<
|
1553 2563 | &::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
1554 2564 | > {
|
2565 + | /* StructureGenerator.kt:170 */
|
1555 2566 | self.dense_struct_map.as_ref()
|
2567 + | /* StructureGenerator.kt:166 */
|
1556 2568 | }
|
2569 + | /* StructureGenerator.kt:231 */
|
1557 2570 | #[allow(missing_docs)] // documentation missing in model
|
2571 + | /* StructureGenerator.kt:166 */
|
1558 2572 | pub fn dense_number_map(
|
1559 2573 | &self,
|
1560 2574 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
2575 + | /* StructureGenerator.kt:170 */
|
1561 2576 | self.dense_number_map.as_ref()
|
2577 + | /* StructureGenerator.kt:166 */
|
1562 2578 | }
|
2579 + | /* StructureGenerator.kt:231 */
|
1563 2580 | #[allow(missing_docs)] // documentation missing in model
|
2581 + | /* StructureGenerator.kt:166 */
|
1564 2582 | pub fn dense_boolean_map(
|
1565 2583 | &self,
|
1566 2584 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
|
2585 + | /* StructureGenerator.kt:170 */
|
1567 2586 | self.dense_boolean_map.as_ref()
|
2587 + | /* StructureGenerator.kt:166 */
|
1568 2588 | }
|
2589 + | /* StructureGenerator.kt:231 */
|
1569 2590 | #[allow(missing_docs)] // documentation missing in model
|
2591 + | /* StructureGenerator.kt:166 */
|
1570 2592 | pub fn dense_string_map(
|
1571 2593 | &self,
|
1572 2594 | ) -> ::std::option::Option<
|
1573 2595 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1574 2596 | > {
|
2597 + | /* StructureGenerator.kt:170 */
|
1575 2598 | self.dense_string_map.as_ref()
|
2599 + | /* StructureGenerator.kt:166 */
|
1576 2600 | }
|
2601 + | /* StructureGenerator.kt:231 */
|
1577 2602 | #[allow(missing_docs)] // documentation missing in model
|
2603 + | /* StructureGenerator.kt:166 */
|
1578 2604 | pub fn dense_set_map(
|
1579 2605 | &self,
|
1580 2606 | ) -> ::std::option::Option<
|
1581 2607 | &::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
1582 2608 | > {
|
2609 + | /* StructureGenerator.kt:170 */
|
1583 2610 | self.dense_set_map.as_ref()
|
2611 + | /* StructureGenerator.kt:166 */
|
1584 2612 | }
|
2613 + | /* StructureGenerator.kt:135 */
|
1585 2614 | }
|
2615 + | /* ServerCodegenVisitor.kt:345 */
|
1586 2616 | impl JsonMapsInput {
|
1587 - | /// Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
2617 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
2618 + | /* ServerBuilderGenerator.kt:295 */
|
1588 2619 | pub fn builder() -> crate::input::json_maps_input::Builder {
|
2620 + | /* ServerBuilderGenerator.kt:296 */
|
1589 2621 | crate::input::json_maps_input::Builder::default()
|
2622 + | /* ServerBuilderGenerator.kt:295 */
|
1590 2623 | }
|
2624 + | /* ServerCodegenVisitor.kt:345 */
|
1591 2625 | }
|
2626 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1592 2627 | impl crate::constrained::Constrained for crate::input::JsonMapsInput {
|
1593 2628 | type Unconstrained = crate::input::json_maps_input::Builder;
|
1594 2629 | }
|
1595 2630 |
|
2631 + | /* StructureGenerator.kt:197 */
|
1596 2632 | #[allow(missing_docs)] // documentation missing in model
|
2633 + | /* RustType.kt:516 */
|
1597 2634 | #[derive(
|
1598 2635 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1599 2636 | )]
|
1600 - | pub struct SparseJsonListsInput {
|
2637 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonListsInput {
|
2638 + | /* StructureGenerator.kt:231 */
|
1601 2639 | #[allow(missing_docs)] // documentation missing in model
|
1602 2640 | pub sparse_string_list:
|
1603 2641 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
2642 + | /* StructureGenerator.kt:231 */
|
1604 2643 | #[allow(missing_docs)] // documentation missing in model
|
1605 2644 | pub sparse_short_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
2645 + | /* StructureGenerator.kt:201 */
|
1606 2646 | }
|
2647 + | /* StructureGenerator.kt:135 */
|
1607 2648 | impl SparseJsonListsInput {
|
2649 + | /* StructureGenerator.kt:231 */
|
1608 2650 | #[allow(missing_docs)] // documentation missing in model
|
2651 + | /* StructureGenerator.kt:166 */
|
1609 2652 | pub fn sparse_string_list(
|
1610 2653 | &self,
|
1611 2654 | ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
|
2655 + | /* StructureGenerator.kt:169 */
|
1612 2656 | self.sparse_string_list.as_deref()
|
2657 + | /* StructureGenerator.kt:166 */
|
1613 2658 | }
|
2659 + | /* StructureGenerator.kt:231 */
|
1614 2660 | #[allow(missing_docs)] // documentation missing in model
|
2661 + | /* StructureGenerator.kt:166 */
|
1615 2662 | pub fn sparse_short_list(&self) -> ::std::option::Option<&[::std::option::Option<i16>]> {
|
2663 + | /* StructureGenerator.kt:169 */
|
1616 2664 | self.sparse_short_list.as_deref()
|
2665 + | /* StructureGenerator.kt:166 */
|
1617 2666 | }
|
2667 + | /* StructureGenerator.kt:135 */
|
1618 2668 | }
|
2669 + | /* ServerCodegenVisitor.kt:345 */
|
1619 2670 | impl SparseJsonListsInput {
|
1620 - | /// Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
2671 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
2672 + | /* ServerBuilderGenerator.kt:295 */
|
1621 2673 | pub fn builder() -> crate::input::sparse_json_lists_input::Builder {
|
2674 + | /* ServerBuilderGenerator.kt:296 */
|
1622 2675 | crate::input::sparse_json_lists_input::Builder::default()
|
2676 + | /* ServerBuilderGenerator.kt:295 */
|
1623 2677 | }
|
2678 + | /* ServerCodegenVisitor.kt:345 */
|
1624 2679 | }
|
2680 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1625 2681 | impl crate::constrained::Constrained for crate::input::SparseJsonListsInput {
|
1626 2682 | type Unconstrained = crate::input::sparse_json_lists_input::Builder;
|
1627 2683 | }
|
1628 2684 |
|
2685 + | /* StructureGenerator.kt:197 */
|
1629 2686 | #[allow(missing_docs)] // documentation missing in model
|
2687 + | /* RustType.kt:516 */
|
1630 2688 | #[derive(
|
1631 2689 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1632 2690 | )]
|
1633 - | pub struct JsonListsInput {
|
2691 + | pub /* StructureGenerator.kt:201 */ struct JsonListsInput {
|
2692 + | /* StructureGenerator.kt:231 */
|
1634 2693 | #[allow(missing_docs)] // documentation missing in model
|
1635 2694 | pub string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2695 + | /* StructureGenerator.kt:231 */
|
1636 2696 | #[allow(missing_docs)] // documentation missing in model
|
1637 2697 | pub string_set: ::std::option::Option<crate::model::StringSet>,
|
2698 + | /* StructureGenerator.kt:231 */
|
1638 2699 | #[allow(missing_docs)] // documentation missing in model
|
1639 2700 | pub integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
2701 + | /* StructureGenerator.kt:231 */
|
1640 2702 | #[allow(missing_docs)] // documentation missing in model
|
1641 2703 | pub boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
2704 + | /* StructureGenerator.kt:231 */
|
1642 2705 | #[allow(missing_docs)] // documentation missing in model
|
1643 2706 | pub timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
2707 + | /* StructureGenerator.kt:231 */
|
1644 2708 | #[allow(missing_docs)] // documentation missing in model
|
1645 2709 | pub enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
2710 + | /* StructureGenerator.kt:231 */
|
1646 2711 | #[allow(missing_docs)] // documentation missing in model
|
1647 2712 | pub int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
1648 - | /// A list of lists of strings.
|
2713 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
1649 2714 | pub nested_string_list:
|
1650 2715 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
2716 + | /* StructureGenerator.kt:231 */
|
1651 2717 | #[allow(missing_docs)] // documentation missing in model
|
1652 2718 | pub structure_list: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
2719 + | /* StructureGenerator.kt:201 */
|
1653 2720 | }
|
2721 + | /* StructureGenerator.kt:135 */
|
1654 2722 | impl JsonListsInput {
|
2723 + | /* StructureGenerator.kt:231 */
|
1655 2724 | #[allow(missing_docs)] // documentation missing in model
|
2725 + | /* StructureGenerator.kt:166 */
|
1656 2726 | pub fn string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
2727 + | /* StructureGenerator.kt:169 */
|
1657 2728 | self.string_list.as_deref()
|
2729 + | /* StructureGenerator.kt:166 */
|
1658 2730 | }
|
2731 + | /* StructureGenerator.kt:231 */
|
1659 2732 | #[allow(missing_docs)] // documentation missing in model
|
2733 + | /* StructureGenerator.kt:166 */
|
1660 2734 | pub fn string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
2735 + | /* StructureGenerator.kt:170 */
|
1661 2736 | self.string_set.as_ref()
|
2737 + | /* StructureGenerator.kt:166 */
|
1662 2738 | }
|
2739 + | /* StructureGenerator.kt:231 */
|
1663 2740 | #[allow(missing_docs)] // documentation missing in model
|
2741 + | /* StructureGenerator.kt:166 */
|
1664 2742 | pub fn integer_list(&self) -> ::std::option::Option<&[i32]> {
|
2743 + | /* StructureGenerator.kt:169 */
|
1665 2744 | self.integer_list.as_deref()
|
2745 + | /* StructureGenerator.kt:166 */
|
1666 2746 | }
|
2747 + | /* StructureGenerator.kt:231 */
|
1667 2748 | #[allow(missing_docs)] // documentation missing in model
|
2749 + | /* StructureGenerator.kt:166 */
|
1668 2750 | pub fn boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
2751 + | /* StructureGenerator.kt:169 */
|
1669 2752 | self.boolean_list.as_deref()
|
2753 + | /* StructureGenerator.kt:166 */
|
1670 2754 | }
|
2755 + | /* StructureGenerator.kt:231 */
|
1671 2756 | #[allow(missing_docs)] // documentation missing in model
|
2757 + | /* StructureGenerator.kt:166 */
|
1672 2758 | pub fn timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
2759 + | /* StructureGenerator.kt:169 */
|
1673 2760 | self.timestamp_list.as_deref()
|
2761 + | /* StructureGenerator.kt:166 */
|
1674 2762 | }
|
2763 + | /* StructureGenerator.kt:231 */
|
1675 2764 | #[allow(missing_docs)] // documentation missing in model
|
2765 + | /* StructureGenerator.kt:166 */
|
1676 2766 | pub fn enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
2767 + | /* StructureGenerator.kt:169 */
|
1677 2768 | self.enum_list.as_deref()
|
2769 + | /* StructureGenerator.kt:166 */
|
1678 2770 | }
|
2771 + | /* StructureGenerator.kt:231 */
|
1679 2772 | #[allow(missing_docs)] // documentation missing in model
|
2773 + | /* StructureGenerator.kt:166 */
|
1680 2774 | pub fn int_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
2775 + | /* StructureGenerator.kt:169 */
|
1681 2776 | self.int_enum_list.as_deref()
|
2777 + | /* StructureGenerator.kt:166 */
|
1682 2778 | }
|
1683 - | /// A list of lists of strings.
|
2779 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
2780 + | /* StructureGenerator.kt:166 */
|
1684 2781 | pub fn nested_string_list(
|
1685 2782 | &self,
|
1686 2783 | ) -> ::std::option::Option<&[::std::vec::Vec<::std::string::String>]> {
|
2784 + | /* StructureGenerator.kt:169 */
|
1687 2785 | self.nested_string_list.as_deref()
|
2786 + | /* StructureGenerator.kt:166 */
|
1688 2787 | }
|
2788 + | /* StructureGenerator.kt:231 */
|
1689 2789 | #[allow(missing_docs)] // documentation missing in model
|
2790 + | /* StructureGenerator.kt:166 */
|
1690 2791 | pub fn structure_list(&self) -> ::std::option::Option<&[crate::model::StructureListMember]> {
|
2792 + | /* StructureGenerator.kt:169 */
|
1691 2793 | self.structure_list.as_deref()
|
2794 + | /* StructureGenerator.kt:166 */
|
1692 2795 | }
|
2796 + | /* StructureGenerator.kt:135 */
|
1693 2797 | }
|
2798 + | /* ServerCodegenVisitor.kt:345 */
|
1694 2799 | impl JsonListsInput {
|
1695 - | /// Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
2800 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
2801 + | /* ServerBuilderGenerator.kt:295 */
|
1696 2802 | pub fn builder() -> crate::input::json_lists_input::Builder {
|
2803 + | /* ServerBuilderGenerator.kt:296 */
|
1697 2804 | crate::input::json_lists_input::Builder::default()
|
2805 + | /* ServerBuilderGenerator.kt:295 */
|
1698 2806 | }
|
2807 + | /* ServerCodegenVisitor.kt:345 */
|
1699 2808 | }
|
2809 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1700 2810 | impl crate::constrained::Constrained for crate::input::JsonListsInput {
|
1701 2811 | type Unconstrained = crate::input::json_lists_input::Builder;
|
1702 2812 | }
|
1703 2813 |
|
2814 + | /* StructureGenerator.kt:197 */
|
1704 2815 | #[allow(missing_docs)] // documentation missing in model
|
2816 + | /* RustType.kt:516 */
|
1705 2817 | #[derive(
|
1706 2818 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1707 2819 | )]
|
1708 - | pub struct RecursiveShapesInput {
|
2820 + | pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInput {
|
2821 + | /* StructureGenerator.kt:231 */
|
1709 2822 | #[allow(missing_docs)] // documentation missing in model
|
1710 2823 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2824 + | /* StructureGenerator.kt:201 */
|
1711 2825 | }
|
2826 + | /* StructureGenerator.kt:135 */
|
1712 2827 | impl RecursiveShapesInput {
|
2828 + | /* StructureGenerator.kt:231 */
|
1713 2829 | #[allow(missing_docs)] // documentation missing in model
|
2830 + | /* StructureGenerator.kt:166 */
|
1714 2831 | pub fn nested(
|
1715 2832 | &self,
|
1716 2833 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
2834 + | /* StructureGenerator.kt:170 */
|
1717 2835 | self.nested.as_ref()
|
2836 + | /* StructureGenerator.kt:166 */
|
1718 2837 | }
|
2838 + | /* StructureGenerator.kt:135 */
|
1719 2839 | }
|
2840 + | /* ServerCodegenVisitor.kt:345 */
|
1720 2841 | impl RecursiveShapesInput {
|
1721 - | /// Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
2842 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
2843 + | /* ServerBuilderGenerator.kt:295 */
|
1722 2844 | pub fn builder() -> crate::input::recursive_shapes_input::Builder {
|
2845 + | /* ServerBuilderGenerator.kt:296 */
|
1723 2846 | crate::input::recursive_shapes_input::Builder::default()
|
2847 + | /* ServerBuilderGenerator.kt:295 */
|
1724 2848 | }
|
2849 + | /* ServerCodegenVisitor.kt:345 */
|
1725 2850 | }
|
2851 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1726 2852 | impl crate::constrained::Constrained for crate::input::RecursiveShapesInput {
|
1727 2853 | type Unconstrained = crate::input::recursive_shapes_input::Builder;
|
1728 2854 | }
|
1729 2855 |
|
2856 + | /* StructureGenerator.kt:197 */
|
1730 2857 | #[allow(missing_docs)] // documentation missing in model
|
2858 + | /* RustType.kt:516 */
|
1731 2859 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1732 - | pub struct JsonIntEnumsInput {
|
2860 + | pub /* StructureGenerator.kt:201 */ struct JsonIntEnumsInput {
|
2861 + | /* StructureGenerator.kt:231 */
|
1733 2862 | #[allow(missing_docs)] // documentation missing in model
|
1734 2863 | pub integer_enum1: ::std::option::Option<i32>,
|
2864 + | /* StructureGenerator.kt:231 */
|
1735 2865 | #[allow(missing_docs)] // documentation missing in model
|
1736 2866 | pub integer_enum2: ::std::option::Option<i32>,
|
2867 + | /* StructureGenerator.kt:231 */
|
1737 2868 | #[allow(missing_docs)] // documentation missing in model
|
1738 2869 | pub integer_enum3: ::std::option::Option<i32>,
|
2870 + | /* StructureGenerator.kt:231 */
|
1739 2871 | #[allow(missing_docs)] // documentation missing in model
|
1740 2872 | pub integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
2873 + | /* StructureGenerator.kt:231 */
|
1741 2874 | #[allow(missing_docs)] // documentation missing in model
|
1742 2875 | pub integer_enum_set: ::std::option::Option<crate::model::IntegerEnumSet>,
|
2876 + | /* StructureGenerator.kt:231 */
|
1743 2877 | #[allow(missing_docs)] // documentation missing in model
|
1744 2878 | pub integer_enum_map:
|
1745 2879 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
2880 + | /* StructureGenerator.kt:201 */
|
1746 2881 | }
|
2882 + | /* StructureGenerator.kt:135 */
|
1747 2883 | impl JsonIntEnumsInput {
|
2884 + | /* StructureGenerator.kt:231 */
|
1748 2885 | #[allow(missing_docs)] // documentation missing in model
|
2886 + | /* StructureGenerator.kt:166 */
|
1749 2887 | pub fn integer_enum1(&self) -> ::std::option::Option<i32> {
|
2888 + | /* StructureGenerator.kt:168 */
|
1750 2889 | self.integer_enum1
|
2890 + | /* StructureGenerator.kt:166 */
|
1751 2891 | }
|
2892 + | /* StructureGenerator.kt:231 */
|
1752 2893 | #[allow(missing_docs)] // documentation missing in model
|
2894 + | /* StructureGenerator.kt:166 */
|
1753 2895 | pub fn integer_enum2(&self) -> ::std::option::Option<i32> {
|
2896 + | /* StructureGenerator.kt:168 */
|
1754 2897 | self.integer_enum2
|
2898 + | /* StructureGenerator.kt:166 */
|
1755 2899 | }
|
2900 + | /* StructureGenerator.kt:231 */
|
1756 2901 | #[allow(missing_docs)] // documentation missing in model
|
2902 + | /* StructureGenerator.kt:166 */
|
1757 2903 | pub fn integer_enum3(&self) -> ::std::option::Option<i32> {
|
2904 + | /* StructureGenerator.kt:168 */
|
1758 2905 | self.integer_enum3
|
2906 + | /* StructureGenerator.kt:166 */
|
1759 2907 | }
|
2908 + | /* StructureGenerator.kt:231 */
|
1760 2909 | #[allow(missing_docs)] // documentation missing in model
|
2910 + | /* StructureGenerator.kt:166 */
|
1761 2911 | pub fn integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
2912 + | /* StructureGenerator.kt:169 */
|
1762 2913 | self.integer_enum_list.as_deref()
|
2914 + | /* StructureGenerator.kt:166 */
|
1763 2915 | }
|
2916 + | /* StructureGenerator.kt:231 */
|
1764 2917 | #[allow(missing_docs)] // documentation missing in model
|
2918 + | /* StructureGenerator.kt:166 */
|
1765 2919 | pub fn integer_enum_set(&self) -> ::std::option::Option<&crate::model::IntegerEnumSet> {
|
2920 + | /* StructureGenerator.kt:170 */
|
1766 2921 | self.integer_enum_set.as_ref()
|
2922 + | /* StructureGenerator.kt:166 */
|
1767 2923 | }
|
2924 + | /* StructureGenerator.kt:231 */
|
1768 2925 | #[allow(missing_docs)] // documentation missing in model
|
2926 + | /* StructureGenerator.kt:166 */
|
1769 2927 | pub fn integer_enum_map(
|
1770 2928 | &self,
|
1771 2929 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
2930 + | /* StructureGenerator.kt:170 */
|
1772 2931 | self.integer_enum_map.as_ref()
|
2932 + | /* StructureGenerator.kt:166 */
|
1773 2933 | }
|
2934 + | /* StructureGenerator.kt:135 */
|
1774 2935 | }
|
2936 + | /* ServerCodegenVisitor.kt:345 */
|
1775 2937 | impl JsonIntEnumsInput {
|
1776 - | /// Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
2938 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
2939 + | /* ServerBuilderGenerator.kt:295 */
|
1777 2940 | pub fn builder() -> crate::input::json_int_enums_input::Builder {
|
2941 + | /* ServerBuilderGenerator.kt:296 */
|
1778 2942 | crate::input::json_int_enums_input::Builder::default()
|
2943 + | /* ServerBuilderGenerator.kt:295 */
|
1779 2944 | }
|
2945 + | /* ServerCodegenVisitor.kt:345 */
|
1780 2946 | }
|
2947 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1781 2948 | impl crate::constrained::Constrained for crate::input::JsonIntEnumsInput {
|
1782 2949 | type Unconstrained = crate::input::json_int_enums_input::Builder;
|
1783 2950 | }
|
1784 2951 |
|
2952 + | /* StructureGenerator.kt:197 */
|
1785 2953 | #[allow(missing_docs)] // documentation missing in model
|
2954 + | /* RustType.kt:516 */
|
1786 2955 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1787 - | pub struct JsonEnumsInput {
|
2956 + | pub /* StructureGenerator.kt:201 */ struct JsonEnumsInput {
|
2957 + | /* StructureGenerator.kt:231 */
|
1788 2958 | #[allow(missing_docs)] // documentation missing in model
|
1789 2959 | pub foo_enum1: ::std::option::Option<crate::model::FooEnum>,
|
2960 + | /* StructureGenerator.kt:231 */
|
1790 2961 | #[allow(missing_docs)] // documentation missing in model
|
1791 2962 | pub foo_enum2: ::std::option::Option<crate::model::FooEnum>,
|
2963 + | /* StructureGenerator.kt:231 */
|
1792 2964 | #[allow(missing_docs)] // documentation missing in model
|
1793 2965 | pub foo_enum3: ::std::option::Option<crate::model::FooEnum>,
|
2966 + | /* StructureGenerator.kt:231 */
|
1794 2967 | #[allow(missing_docs)] // documentation missing in model
|
1795 2968 | pub foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
2969 + | /* StructureGenerator.kt:231 */
|
1796 2970 | #[allow(missing_docs)] // documentation missing in model
|
1797 2971 | pub foo_enum_set: ::std::option::Option<crate::model::FooEnumSet>,
|
2972 + | /* StructureGenerator.kt:231 */
|
1798 2973 | #[allow(missing_docs)] // documentation missing in model
|
1799 2974 | pub foo_enum_map: ::std::option::Option<
|
1800 2975 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
1801 2976 | >,
|
2977 + | /* StructureGenerator.kt:201 */
|
1802 2978 | }
|
2979 + | /* StructureGenerator.kt:135 */
|
1803 2980 | impl JsonEnumsInput {
|
2981 + | /* StructureGenerator.kt:231 */
|
1804 2982 | #[allow(missing_docs)] // documentation missing in model
|
2983 + | /* StructureGenerator.kt:166 */
|
1805 2984 | pub fn foo_enum1(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
2985 + | /* StructureGenerator.kt:170 */
|
1806 2986 | self.foo_enum1.as_ref()
|
2987 + | /* StructureGenerator.kt:166 */
|
1807 2988 | }
|
2989 + | /* StructureGenerator.kt:231 */
|
1808 2990 | #[allow(missing_docs)] // documentation missing in model
|
2991 + | /* StructureGenerator.kt:166 */
|
1809 2992 | pub fn foo_enum2(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
2993 + | /* StructureGenerator.kt:170 */
|
1810 2994 | self.foo_enum2.as_ref()
|
2995 + | /* StructureGenerator.kt:166 */
|
1811 2996 | }
|
2997 + | /* StructureGenerator.kt:231 */
|
1812 2998 | #[allow(missing_docs)] // documentation missing in model
|
2999 + | /* StructureGenerator.kt:166 */
|
1813 3000 | pub fn foo_enum3(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
3001 + | /* StructureGenerator.kt:170 */
|
1814 3002 | self.foo_enum3.as_ref()
|
3003 + | /* StructureGenerator.kt:166 */
|
1815 3004 | }
|
3005 + | /* StructureGenerator.kt:231 */
|
1816 3006 | #[allow(missing_docs)] // documentation missing in model
|
3007 + | /* StructureGenerator.kt:166 */
|
1817 3008 | pub fn foo_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
3009 + | /* StructureGenerator.kt:169 */
|
1818 3010 | self.foo_enum_list.as_deref()
|
3011 + | /* StructureGenerator.kt:166 */
|
1819 3012 | }
|
3013 + | /* StructureGenerator.kt:231 */
|
1820 3014 | #[allow(missing_docs)] // documentation missing in model
|
3015 + | /* StructureGenerator.kt:166 */
|
1821 3016 | pub fn foo_enum_set(&self) -> ::std::option::Option<&crate::model::FooEnumSet> {
|
3017 + | /* StructureGenerator.kt:170 */
|
1822 3018 | self.foo_enum_set.as_ref()
|
3019 + | /* StructureGenerator.kt:166 */
|
1823 3020 | }
|
3021 + | /* StructureGenerator.kt:231 */
|
1824 3022 | #[allow(missing_docs)] // documentation missing in model
|
3023 + | /* StructureGenerator.kt:166 */
|
1825 3024 | pub fn foo_enum_map(
|
1826 3025 | &self,
|
1827 3026 | ) -> ::std::option::Option<
|
1828 3027 | &::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
1829 3028 | > {
|
3029 + | /* StructureGenerator.kt:170 */
|
1830 3030 | self.foo_enum_map.as_ref()
|
3031 + | /* StructureGenerator.kt:166 */
|
1831 3032 | }
|
3033 + | /* StructureGenerator.kt:135 */
|
1832 3034 | }
|
3035 + | /* ServerCodegenVisitor.kt:345 */
|
1833 3036 | impl JsonEnumsInput {
|
1834 - | /// Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
3037 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
3038 + | /* ServerBuilderGenerator.kt:295 */
|
1835 3039 | pub fn builder() -> crate::input::json_enums_input::Builder {
|
3040 + | /* ServerBuilderGenerator.kt:296 */
|
1836 3041 | crate::input::json_enums_input::Builder::default()
|
3042 + | /* ServerBuilderGenerator.kt:295 */
|
1837 3043 | }
|
3044 + | /* ServerCodegenVisitor.kt:345 */
|
1838 3045 | }
|
3046 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1839 3047 | impl crate::constrained::Constrained for crate::input::JsonEnumsInput {
|
1840 3048 | type Unconstrained = crate::input::json_enums_input::Builder;
|
1841 3049 | }
|
1842 3050 |
|
3051 + | /* StructureGenerator.kt:197 */
|
1843 3052 | #[allow(missing_docs)] // documentation missing in model
|
3053 + | /* RustType.kt:516 */
|
1844 3054 | #[derive(
|
1845 3055 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1846 3056 | )]
|
1847 - | pub struct JsonTimestampsInput {
|
3057 + | pub /* StructureGenerator.kt:201 */ struct JsonTimestampsInput {
|
3058 + | /* StructureGenerator.kt:231 */
|
1848 3059 | #[allow(missing_docs)] // documentation missing in model
|
1849 3060 | pub normal: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3061 + | /* StructureGenerator.kt:231 */
|
1850 3062 | #[allow(missing_docs)] // documentation missing in model
|
1851 3063 | pub date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3064 + | /* StructureGenerator.kt:231 */
|
1852 3065 | #[allow(missing_docs)] // documentation missing in model
|
1853 3066 | pub date_time_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3067 + | /* StructureGenerator.kt:231 */
|
1854 3068 | #[allow(missing_docs)] // documentation missing in model
|
1855 3069 | pub epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3070 + | /* StructureGenerator.kt:231 */
|
1856 3071 | #[allow(missing_docs)] // documentation missing in model
|
1857 3072 | pub epoch_seconds_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3073 + | /* StructureGenerator.kt:231 */
|
1858 3074 | #[allow(missing_docs)] // documentation missing in model
|
1859 3075 | pub http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3076 + | /* StructureGenerator.kt:231 */
|
1860 3077 | #[allow(missing_docs)] // documentation missing in model
|
1861 3078 | pub http_date_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3079 + | /* StructureGenerator.kt:201 */
|
1862 3080 | }
|
3081 + | /* StructureGenerator.kt:135 */
|
1863 3082 | impl JsonTimestampsInput {
|
3083 + | /* StructureGenerator.kt:231 */
|
1864 3084 | #[allow(missing_docs)] // documentation missing in model
|
3085 + | /* StructureGenerator.kt:166 */
|
1865 3086 | pub fn normal(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3087 + | /* StructureGenerator.kt:170 */
|
1866 3088 | self.normal.as_ref()
|
3089 + | /* StructureGenerator.kt:166 */
|
1867 3090 | }
|
3091 + | /* StructureGenerator.kt:231 */
|
1868 3092 | #[allow(missing_docs)] // documentation missing in model
|
3093 + | /* StructureGenerator.kt:166 */
|
1869 3094 | pub fn date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3095 + | /* StructureGenerator.kt:170 */
|
1870 3096 | self.date_time.as_ref()
|
3097 + | /* StructureGenerator.kt:166 */
|
1871 3098 | }
|
3099 + | /* StructureGenerator.kt:231 */
|
1872 3100 | #[allow(missing_docs)] // documentation missing in model
|
3101 + | /* StructureGenerator.kt:166 */
|
1873 3102 | pub fn date_time_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3103 + | /* StructureGenerator.kt:170 */
|
1874 3104 | self.date_time_on_target.as_ref()
|
3105 + | /* StructureGenerator.kt:166 */
|
1875 3106 | }
|
3107 + | /* StructureGenerator.kt:231 */
|
1876 3108 | #[allow(missing_docs)] // documentation missing in model
|
3109 + | /* StructureGenerator.kt:166 */
|
1877 3110 | pub fn epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3111 + | /* StructureGenerator.kt:170 */
|
1878 3112 | self.epoch_seconds.as_ref()
|
3113 + | /* StructureGenerator.kt:166 */
|
1879 3114 | }
|
3115 + | /* StructureGenerator.kt:231 */
|
1880 3116 | #[allow(missing_docs)] // documentation missing in model
|
3117 + | /* StructureGenerator.kt:166 */
|
1881 3118 | pub fn epoch_seconds_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3119 + | /* StructureGenerator.kt:170 */
|
1882 3120 | self.epoch_seconds_on_target.as_ref()
|
3121 + | /* StructureGenerator.kt:166 */
|
1883 3122 | }
|
3123 + | /* StructureGenerator.kt:231 */
|
1884 3124 | #[allow(missing_docs)] // documentation missing in model
|
3125 + | /* StructureGenerator.kt:166 */
|
1885 3126 | pub fn http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3127 + | /* StructureGenerator.kt:170 */
|
1886 3128 | self.http_date.as_ref()
|
3129 + | /* StructureGenerator.kt:166 */
|
1887 3130 | }
|
3131 + | /* StructureGenerator.kt:231 */
|
1888 3132 | #[allow(missing_docs)] // documentation missing in model
|
3133 + | /* StructureGenerator.kt:166 */
|
1889 3134 | pub fn http_date_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3135 + | /* StructureGenerator.kt:170 */
|
1890 3136 | self.http_date_on_target.as_ref()
|
3137 + | /* StructureGenerator.kt:166 */
|
1891 3138 | }
|
3139 + | /* StructureGenerator.kt:135 */
|
1892 3140 | }
|
3141 + | /* ServerCodegenVisitor.kt:345 */
|
1893 3142 | impl JsonTimestampsInput {
|
1894 - | /// Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
3143 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
3144 + | /* ServerBuilderGenerator.kt:295 */
|
1895 3145 | pub fn builder() -> crate::input::json_timestamps_input::Builder {
|
3146 + | /* ServerBuilderGenerator.kt:296 */
|
1896 3147 | crate::input::json_timestamps_input::Builder::default()
|
3148 + | /* ServerBuilderGenerator.kt:295 */
|
1897 3149 | }
|
3150 + | /* ServerCodegenVisitor.kt:345 */
|
1898 3151 | }
|
3152 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1899 3153 | impl crate::constrained::Constrained for crate::input::JsonTimestampsInput {
|
1900 3154 | type Unconstrained = crate::input::json_timestamps_input::Builder;
|
1901 3155 | }
|
1902 3156 |
|
3157 + | /* StructureGenerator.kt:197 */
|
1903 3158 | #[allow(missing_docs)] // documentation missing in model
|
3159 + | /* RustType.kt:516 */
|
1904 3160 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1905 - | pub struct SimpleScalarPropertiesInput {
|
3161 + | pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
|
3162 + | /* StructureGenerator.kt:231 */
|
1906 3163 | #[allow(missing_docs)] // documentation missing in model
|
1907 3164 | pub foo: ::std::option::Option<::std::string::String>,
|
3165 + | /* StructureGenerator.kt:231 */
|
1908 3166 | #[allow(missing_docs)] // documentation missing in model
|
1909 3167 | pub string_value: ::std::option::Option<::std::string::String>,
|
3168 + | /* StructureGenerator.kt:231 */
|
1910 3169 | #[allow(missing_docs)] // documentation missing in model
|
1911 3170 | pub true_boolean_value: ::std::option::Option<bool>,
|
3171 + | /* StructureGenerator.kt:231 */
|
1912 3172 | #[allow(missing_docs)] // documentation missing in model
|
1913 3173 | pub false_boolean_value: ::std::option::Option<bool>,
|
3174 + | /* StructureGenerator.kt:231 */
|
1914 3175 | #[allow(missing_docs)] // documentation missing in model
|
1915 3176 | pub byte_value: ::std::option::Option<i8>,
|
3177 + | /* StructureGenerator.kt:231 */
|
1916 3178 | #[allow(missing_docs)] // documentation missing in model
|
1917 3179 | pub short_value: ::std::option::Option<i16>,
|
3180 + | /* StructureGenerator.kt:231 */
|
1918 3181 | #[allow(missing_docs)] // documentation missing in model
|
1919 3182 | pub integer_value: ::std::option::Option<i32>,
|
3183 + | /* StructureGenerator.kt:231 */
|
1920 3184 | #[allow(missing_docs)] // documentation missing in model
|
1921 3185 | pub long_value: ::std::option::Option<i64>,
|
3186 + | /* StructureGenerator.kt:231 */
|
1922 3187 | #[allow(missing_docs)] // documentation missing in model
|
1923 3188 | pub float_value: ::std::option::Option<f32>,
|
3189 + | /* StructureGenerator.kt:231 */
|
1924 3190 | #[allow(missing_docs)] // documentation missing in model
|
1925 3191 | pub double_value: ::std::option::Option<f64>,
|
3192 + | /* StructureGenerator.kt:201 */
|
1926 3193 | }
|
3194 + | /* StructureGenerator.kt:135 */
|
1927 3195 | impl SimpleScalarPropertiesInput {
|
3196 + | /* StructureGenerator.kt:231 */
|
1928 3197 | #[allow(missing_docs)] // documentation missing in model
|
3198 + | /* StructureGenerator.kt:166 */
|
1929 3199 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3200 + | /* StructureGenerator.kt:169 */
|
1930 3201 | self.foo.as_deref()
|
3202 + | /* StructureGenerator.kt:166 */
|
1931 3203 | }
|
3204 + | /* StructureGenerator.kt:231 */
|
1932 3205 | #[allow(missing_docs)] // documentation missing in model
|
3206 + | /* StructureGenerator.kt:166 */
|
1933 3207 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
3208 + | /* StructureGenerator.kt:169 */
|
1934 3209 | self.string_value.as_deref()
|
3210 + | /* StructureGenerator.kt:166 */
|
1935 3211 | }
|
3212 + | /* StructureGenerator.kt:231 */
|
1936 3213 | #[allow(missing_docs)] // documentation missing in model
|
3214 + | /* StructureGenerator.kt:166 */
|
1937 3215 | pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
|
3216 + | /* StructureGenerator.kt:168 */
|
1938 3217 | self.true_boolean_value
|
3218 + | /* StructureGenerator.kt:166 */
|
1939 3219 | }
|
3220 + | /* StructureGenerator.kt:231 */
|
1940 3221 | #[allow(missing_docs)] // documentation missing in model
|
3222 + | /* StructureGenerator.kt:166 */
|
1941 3223 | pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
|
3224 + | /* StructureGenerator.kt:168 */
|
1942 3225 | self.false_boolean_value
|
3226 + | /* StructureGenerator.kt:166 */
|
1943 3227 | }
|
3228 + | /* StructureGenerator.kt:231 */
|
1944 3229 | #[allow(missing_docs)] // documentation missing in model
|
3230 + | /* StructureGenerator.kt:166 */
|
1945 3231 | pub fn byte_value(&self) -> ::std::option::Option<i8> {
|
3232 + | /* StructureGenerator.kt:168 */
|
1946 3233 | self.byte_value
|
3234 + | /* StructureGenerator.kt:166 */
|
1947 3235 | }
|
3236 + | /* StructureGenerator.kt:231 */
|
1948 3237 | #[allow(missing_docs)] // documentation missing in model
|
3238 + | /* StructureGenerator.kt:166 */
|
1949 3239 | pub fn short_value(&self) -> ::std::option::Option<i16> {
|
3240 + | /* StructureGenerator.kt:168 */
|
1950 3241 | self.short_value
|
3242 + | /* StructureGenerator.kt:166 */
|
1951 3243 | }
|
3244 + | /* StructureGenerator.kt:231 */
|
1952 3245 | #[allow(missing_docs)] // documentation missing in model
|
3246 + | /* StructureGenerator.kt:166 */
|
1953 3247 | pub fn integer_value(&self) -> ::std::option::Option<i32> {
|
3248 + | /* StructureGenerator.kt:168 */
|
1954 3249 | self.integer_value
|
3250 + | /* StructureGenerator.kt:166 */
|
1955 3251 | }
|
3252 + | /* StructureGenerator.kt:231 */
|
1956 3253 | #[allow(missing_docs)] // documentation missing in model
|
3254 + | /* StructureGenerator.kt:166 */
|
1957 3255 | pub fn long_value(&self) -> ::std::option::Option<i64> {
|
3256 + | /* StructureGenerator.kt:168 */
|
1958 3257 | self.long_value
|
3258 + | /* StructureGenerator.kt:166 */
|
1959 3259 | }
|
3260 + | /* StructureGenerator.kt:231 */
|
1960 3261 | #[allow(missing_docs)] // documentation missing in model
|
3262 + | /* StructureGenerator.kt:166 */
|
1961 3263 | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
3264 + | /* StructureGenerator.kt:168 */
|
1962 3265 | self.float_value
|
3266 + | /* StructureGenerator.kt:166 */
|
1963 3267 | }
|
3268 + | /* StructureGenerator.kt:231 */
|
1964 3269 | #[allow(missing_docs)] // documentation missing in model
|
3270 + | /* StructureGenerator.kt:166 */
|
1965 3271 | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
3272 + | /* StructureGenerator.kt:168 */
|
1966 3273 | self.double_value
|
3274 + | /* StructureGenerator.kt:166 */
|
1967 3275 | }
|
3276 + | /* StructureGenerator.kt:135 */
|
1968 3277 | }
|
3278 + | /* ServerCodegenVisitor.kt:345 */
|
1969 3279 | impl SimpleScalarPropertiesInput {
|
1970 - | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
3280 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
3281 + | /* ServerBuilderGenerator.kt:295 */
|
1971 3282 | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
3283 + | /* ServerBuilderGenerator.kt:296 */
|
1972 3284 | crate::input::simple_scalar_properties_input::Builder::default()
|
3285 + | /* ServerBuilderGenerator.kt:295 */
|
1973 3286 | }
|
3287 + | /* ServerCodegenVisitor.kt:345 */
|
1974 3288 | }
|
3289 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1975 3290 | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
1976 3291 | type Unconstrained = crate::input::simple_scalar_properties_input::Builder;
|
1977 3292 | }
|
1978 3293 |
|
3294 + | /* StructureGenerator.kt:197 */
|
1979 3295 | #[allow(missing_docs)] // documentation missing in model
|
3296 + | /* RustType.kt:516 */
|
1980 3297 | #[derive(
|
1981 3298 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1982 3299 | )]
|
1983 - | pub struct GreetingWithErrorsInput {}
|
3300 + | pub /* StructureGenerator.kt:201 */ struct GreetingWithErrorsInput {/* StructureGenerator.kt:201 */}
|
3301 + | /* ServerCodegenVisitor.kt:345 */
|
1984 3302 | impl GreetingWithErrorsInput {
|
1985 - | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
3303 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
3304 + | /* ServerBuilderGenerator.kt:295 */
|
1986 3305 | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
3306 + | /* ServerBuilderGenerator.kt:296 */
|
1987 3307 | crate::input::greeting_with_errors_input::Builder::default()
|
3308 + | /* ServerBuilderGenerator.kt:295 */
|
1988 3309 | }
|
3310 + | /* ServerCodegenVisitor.kt:345 */
|
1989 3311 | }
|
3312 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1990 3313 | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
1991 3314 | type Unconstrained = crate::input::greeting_with_errors_input::Builder;
|
1992 3315 | }
|
1993 3316 |
|
3317 + | /* StructureGenerator.kt:197 */
|
1994 3318 | #[allow(missing_docs)] // documentation missing in model
|
3319 + | /* RustType.kt:516 */
|
1995 3320 | #[derive(::std::fmt::Debug)]
|
1996 - | pub struct StreamingTraitsWithMediaTypeInput {
|
3321 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsWithMediaTypeInput {
|
3322 + | /* StructureGenerator.kt:231 */
|
1997 3323 | #[allow(missing_docs)] // documentation missing in model
|
1998 3324 | pub foo: ::std::option::Option<::std::string::String>,
|
3325 + | /* StructureGenerator.kt:231 */
|
1999 3326 | #[allow(missing_docs)] // documentation missing in model
|
2000 3327 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3328 + | /* StructureGenerator.kt:201 */
|
2001 3329 | }
|
3330 + | /* StructureGenerator.kt:135 */
|
2002 3331 | impl StreamingTraitsWithMediaTypeInput {
|
3332 + | /* StructureGenerator.kt:231 */
|
2003 3333 | #[allow(missing_docs)] // documentation missing in model
|
3334 + | /* StructureGenerator.kt:166 */
|
2004 3335 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3336 + | /* StructureGenerator.kt:169 */
|
2005 3337 | self.foo.as_deref()
|
3338 + | /* StructureGenerator.kt:166 */
|
2006 3339 | }
|
3340 + | /* StructureGenerator.kt:231 */
|
2007 3341 | #[allow(missing_docs)] // documentation missing in model
|
3342 + | /* StructureGenerator.kt:166 */
|
2008 3343 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3344 + | /* StructureGenerator.kt:172 */
|
2009 3345 | &self.blob
|
3346 + | /* StructureGenerator.kt:166 */
|
2010 3347 | }
|
3348 + | /* StructureGenerator.kt:135 */
|
2011 3349 | }
|
3350 + | /* ServerCodegenVisitor.kt:345 */
|
2012 3351 | impl StreamingTraitsWithMediaTypeInput {
|
2013 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
3352 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
3353 + | /* ServerBuilderGenerator.kt:295 */
|
2014 3354 | pub fn builder() -> crate::input::streaming_traits_with_media_type_input::Builder {
|
3355 + | /* ServerBuilderGenerator.kt:296 */
|
2015 3356 | crate::input::streaming_traits_with_media_type_input::Builder::default()
|
3357 + | /* ServerBuilderGenerator.kt:295 */
|
2016 3358 | }
|
3359 + | /* ServerCodegenVisitor.kt:345 */
|
2017 3360 | }
|
3361 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2018 3362 | impl crate::constrained::Constrained for crate::input::StreamingTraitsWithMediaTypeInput {
|
2019 3363 | type Unconstrained = crate::input::streaming_traits_with_media_type_input::Builder;
|
2020 3364 | }
|
2021 3365 |
|
3366 + | /* StructureGenerator.kt:197 */
|
2022 3367 | #[allow(missing_docs)] // documentation missing in model
|
3368 + | /* RustType.kt:516 */
|
2023 3369 | #[derive(::std::fmt::Debug)]
|
2024 - | pub struct StreamingTraitsRequireLengthInput {
|
3370 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsRequireLengthInput {
|
3371 + | /* StructureGenerator.kt:231 */
|
2025 3372 | #[allow(missing_docs)] // documentation missing in model
|
2026 3373 | pub foo: ::std::option::Option<::std::string::String>,
|
3374 + | /* StructureGenerator.kt:231 */
|
2027 3375 | #[allow(missing_docs)] // documentation missing in model
|
2028 3376 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3377 + | /* StructureGenerator.kt:201 */
|
2029 3378 | }
|
3379 + | /* StructureGenerator.kt:135 */
|
2030 3380 | impl StreamingTraitsRequireLengthInput {
|
3381 + | /* StructureGenerator.kt:231 */
|
2031 3382 | #[allow(missing_docs)] // documentation missing in model
|
3383 + | /* StructureGenerator.kt:166 */
|
2032 3384 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3385 + | /* StructureGenerator.kt:169 */
|
2033 3386 | self.foo.as_deref()
|
3387 + | /* StructureGenerator.kt:166 */
|
2034 3388 | }
|
3389 + | /* StructureGenerator.kt:231 */
|
2035 3390 | #[allow(missing_docs)] // documentation missing in model
|
3391 + | /* StructureGenerator.kt:166 */
|
2036 3392 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3393 + | /* StructureGenerator.kt:172 */
|
2037 3394 | &self.blob
|
3395 + | /* StructureGenerator.kt:166 */
|
2038 3396 | }
|
3397 + | /* StructureGenerator.kt:135 */
|
2039 3398 | }
|
3399 + | /* ServerCodegenVisitor.kt:345 */
|
2040 3400 | impl StreamingTraitsRequireLengthInput {
|
2041 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
3401 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
3402 + | /* ServerBuilderGenerator.kt:295 */
|
2042 3403 | pub fn builder() -> crate::input::streaming_traits_require_length_input::Builder {
|
3404 + | /* ServerBuilderGenerator.kt:296 */
|
2043 3405 | crate::input::streaming_traits_require_length_input::Builder::default()
|
3406 + | /* ServerBuilderGenerator.kt:295 */
|
2044 3407 | }
|
3408 + | /* ServerCodegenVisitor.kt:345 */
|
2045 3409 | }
|
3410 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2046 3411 | impl crate::constrained::Constrained for crate::input::StreamingTraitsRequireLengthInput {
|
2047 3412 | type Unconstrained = crate::input::streaming_traits_require_length_input::Builder;
|
2048 3413 | }
|
2049 3414 |
|
3415 + | /* StructureGenerator.kt:197 */
|
2050 3416 | #[allow(missing_docs)] // documentation missing in model
|
3417 + | /* RustType.kt:516 */
|
2051 3418 | #[derive(::std::fmt::Debug)]
|
2052 - | pub struct StreamingTraitsInput {
|
3419 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsInput {
|
3420 + | /* StructureGenerator.kt:231 */
|
2053 3421 | #[allow(missing_docs)] // documentation missing in model
|
2054 3422 | pub foo: ::std::option::Option<::std::string::String>,
|
3423 + | /* StructureGenerator.kt:231 */
|
2055 3424 | #[allow(missing_docs)] // documentation missing in model
|
2056 3425 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3426 + | /* StructureGenerator.kt:201 */
|
2057 3427 | }
|
3428 + | /* StructureGenerator.kt:135 */
|
2058 3429 | impl StreamingTraitsInput {
|
3430 + | /* StructureGenerator.kt:231 */
|
2059 3431 | #[allow(missing_docs)] // documentation missing in model
|
3432 + | /* StructureGenerator.kt:166 */
|
2060 3433 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3434 + | /* StructureGenerator.kt:169 */
|
2061 3435 | self.foo.as_deref()
|
3436 + | /* StructureGenerator.kt:166 */
|
2062 3437 | }
|
3438 + | /* StructureGenerator.kt:231 */
|
2063 3439 | #[allow(missing_docs)] // documentation missing in model
|
3440 + | /* StructureGenerator.kt:166 */
|
2064 3441 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3442 + | /* StructureGenerator.kt:172 */
|
2065 3443 | &self.blob
|
3444 + | /* StructureGenerator.kt:166 */
|
2066 3445 | }
|
3446 + | /* StructureGenerator.kt:135 */
|
2067 3447 | }
|
3448 + | /* ServerCodegenVisitor.kt:345 */
|
2068 3449 | impl StreamingTraitsInput {
|
2069 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
3450 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
3451 + | /* ServerBuilderGenerator.kt:295 */
|
2070 3452 | pub fn builder() -> crate::input::streaming_traits_input::Builder {
|
3453 + | /* ServerBuilderGenerator.kt:296 */
|
2071 3454 | crate::input::streaming_traits_input::Builder::default()
|
3455 + | /* ServerBuilderGenerator.kt:295 */
|
2072 3456 | }
|
3457 + | /* ServerCodegenVisitor.kt:345 */
|
2073 3458 | }
|
3459 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2074 3460 | impl crate::constrained::Constrained for crate::input::StreamingTraitsInput {
|
2075 3461 | type Unconstrained = crate::input::streaming_traits_input::Builder;
|
2076 3462 | }
|
2077 3463 |
|
3464 + | /* StructureGenerator.kt:197 */
|
2078 3465 | #[allow(missing_docs)] // documentation missing in model
|
3466 + | /* RustType.kt:516 */
|
2079 3467 | #[derive(
|
2080 3468 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2081 3469 | )]
|
2082 - | pub struct HttpResponseCodeInput {}
|
3470 + | pub /* StructureGenerator.kt:201 */ struct HttpResponseCodeInput {/* StructureGenerator.kt:201 */}
|
3471 + | /* ServerCodegenVisitor.kt:345 */
|
2083 3472 | impl HttpResponseCodeInput {
|
2084 - | /// Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
3473 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
3474 + | /* ServerBuilderGenerator.kt:295 */
|
2085 3475 | pub fn builder() -> crate::input::http_response_code_input::Builder {
|
3476 + | /* ServerBuilderGenerator.kt:296 */
|
2086 3477 | crate::input::http_response_code_input::Builder::default()
|
3478 + | /* ServerBuilderGenerator.kt:295 */
|
2087 3479 | }
|
3480 + | /* ServerCodegenVisitor.kt:345 */
|
2088 3481 | }
|
3482 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2089 3483 | impl crate::constrained::Constrained for crate::input::HttpResponseCodeInput {
|
2090 3484 | type Unconstrained = crate::input::http_response_code_input::Builder;
|
2091 3485 | }
|
2092 3486 |
|
3487 + | /* StructureGenerator.kt:197 */
|
2093 3488 | #[allow(missing_docs)] // documentation missing in model
|
3489 + | /* RustType.kt:516 */
|
2094 3490 | #[derive(
|
2095 3491 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2096 3492 | )]
|
2097 - | pub struct HttpPayloadWithUnionInput {
|
3493 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithUnionInput {
|
3494 + | /* StructureGenerator.kt:231 */
|
2098 3495 | #[allow(missing_docs)] // documentation missing in model
|
2099 3496 | pub nested: ::std::option::Option<crate::model::UnionPayload>,
|
3497 + | /* StructureGenerator.kt:201 */
|
2100 3498 | }
|
3499 + | /* StructureGenerator.kt:135 */
|
2101 3500 | impl HttpPayloadWithUnionInput {
|
3501 + | /* StructureGenerator.kt:231 */
|
2102 3502 | #[allow(missing_docs)] // documentation missing in model
|
3503 + | /* StructureGenerator.kt:166 */
|
2103 3504 | pub fn nested(&self) -> ::std::option::Option<&crate::model::UnionPayload> {
|
3505 + | /* StructureGenerator.kt:170 */
|
2104 3506 | self.nested.as_ref()
|
3507 + | /* StructureGenerator.kt:166 */
|
2105 3508 | }
|
3509 + | /* StructureGenerator.kt:135 */
|
2106 3510 | }
|
3511 + | /* ServerCodegenVisitor.kt:345 */
|
2107 3512 | impl HttpPayloadWithUnionInput {
|
2108 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
3513 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
3514 + | /* ServerBuilderGenerator.kt:295 */
|
2109 3515 | pub fn builder() -> crate::input::http_payload_with_union_input::Builder {
|
3516 + | /* ServerBuilderGenerator.kt:296 */
|
2110 3517 | crate::input::http_payload_with_union_input::Builder::default()
|
3518 + | /* ServerBuilderGenerator.kt:295 */
|
2111 3519 | }
|
3520 + | /* ServerCodegenVisitor.kt:345 */
|
2112 3521 | }
|
3522 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2113 3523 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithUnionInput {
|
2114 3524 | type Unconstrained = crate::input::http_payload_with_union_input::Builder;
|
2115 3525 | }
|
2116 3526 |
|
3527 + | /* StructureGenerator.kt:197 */
|
2117 3528 | #[allow(missing_docs)] // documentation missing in model
|
3529 + | /* RustType.kt:516 */
|
2118 3530 | #[derive(
|
2119 3531 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2120 3532 | )]
|
2121 - | pub struct HttpStringPayloadInput {
|
3533 + | pub /* StructureGenerator.kt:201 */ struct HttpStringPayloadInput {
|
3534 + | /* StructureGenerator.kt:231 */
|
2122 3535 | #[allow(missing_docs)] // documentation missing in model
|
2123 3536 | pub payload: ::std::option::Option<::std::string::String>,
|
3537 + | /* StructureGenerator.kt:201 */
|
2124 3538 | }
|
3539 + | /* StructureGenerator.kt:135 */
|
2125 3540 | impl HttpStringPayloadInput {
|
3541 + | /* StructureGenerator.kt:231 */
|
2126 3542 | #[allow(missing_docs)] // documentation missing in model
|
3543 + | /* StructureGenerator.kt:166 */
|
2127 3544 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
3545 + | /* StructureGenerator.kt:169 */
|
2128 3546 | self.payload.as_deref()
|
3547 + | /* StructureGenerator.kt:166 */
|
2129 3548 | }
|
3549 + | /* StructureGenerator.kt:135 */
|
2130 3550 | }
|
3551 + | /* ServerCodegenVisitor.kt:345 */
|
2131 3552 | impl HttpStringPayloadInput {
|
2132 - | /// Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
3553 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
3554 + | /* ServerBuilderGenerator.kt:295 */
|
2133 3555 | pub fn builder() -> crate::input::http_string_payload_input::Builder {
|
3556 + | /* ServerBuilderGenerator.kt:296 */
|
2134 3557 | crate::input::http_string_payload_input::Builder::default()
|
3558 + | /* ServerBuilderGenerator.kt:295 */
|
2135 3559 | }
|
3560 + | /* ServerCodegenVisitor.kt:345 */
|
2136 3561 | }
|
3562 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2137 3563 | impl crate::constrained::Constrained for crate::input::HttpStringPayloadInput {
|
2138 3564 | type Unconstrained = crate::input::http_string_payload_input::Builder;
|
2139 3565 | }
|
2140 3566 |
|
3567 + | /* StructureGenerator.kt:197 */
|
2141 3568 | #[allow(missing_docs)] // documentation missing in model
|
3569 + | /* RustType.kt:516 */
|
2142 3570 | #[derive(
|
2143 3571 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2144 3572 | )]
|
2145 - | pub struct HttpEnumPayloadInput {
|
3573 + | pub /* StructureGenerator.kt:201 */ struct HttpEnumPayloadInput {
|
3574 + | /* StructureGenerator.kt:231 */
|
2146 3575 | #[allow(missing_docs)] // documentation missing in model
|
2147 3576 | pub payload: ::std::option::Option<crate::model::StringEnum>,
|
3577 + | /* StructureGenerator.kt:201 */
|
2148 3578 | }
|
3579 + | /* StructureGenerator.kt:135 */
|
2149 3580 | impl HttpEnumPayloadInput {
|
3581 + | /* StructureGenerator.kt:231 */
|
2150 3582 | #[allow(missing_docs)] // documentation missing in model
|
3583 + | /* StructureGenerator.kt:166 */
|
2151 3584 | pub fn payload(&self) -> ::std::option::Option<&crate::model::StringEnum> {
|
3585 + | /* StructureGenerator.kt:170 */
|
2152 3586 | self.payload.as_ref()
|
3587 + | /* StructureGenerator.kt:166 */
|
2153 3588 | }
|
3589 + | /* StructureGenerator.kt:135 */
|
2154 3590 | }
|
3591 + | /* ServerCodegenVisitor.kt:345 */
|
2155 3592 | impl HttpEnumPayloadInput {
|
2156 - | /// Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
3593 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
3594 + | /* ServerBuilderGenerator.kt:295 */
|
2157 3595 | pub fn builder() -> crate::input::http_enum_payload_input::Builder {
|
3596 + | /* ServerBuilderGenerator.kt:296 */
|
2158 3597 | crate::input::http_enum_payload_input::Builder::default()
|
3598 + | /* ServerBuilderGenerator.kt:295 */
|
2159 3599 | }
|
3600 + | /* ServerCodegenVisitor.kt:345 */
|
2160 3601 | }
|
3602 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2161 3603 | impl crate::constrained::Constrained for crate::input::HttpEnumPayloadInput {
|
2162 3604 | type Unconstrained = crate::input::http_enum_payload_input::Builder;
|
2163 3605 | }
|
2164 3606 |
|
3607 + | /* StructureGenerator.kt:197 */
|
2165 3608 | #[allow(missing_docs)] // documentation missing in model
|
3609 + | /* RustType.kt:516 */
|
2166 3610 | #[derive(
|
2167 3611 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2168 3612 | )]
|
2169 - | pub struct HttpPayloadWithStructureInput {
|
3613 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithStructureInput {
|
3614 + | /* StructureGenerator.kt:231 */
|
2170 3615 | #[allow(missing_docs)] // documentation missing in model
|
2171 3616 | pub nested: ::std::option::Option<crate::model::NestedPayload>,
|
3617 + | /* StructureGenerator.kt:201 */
|
2172 3618 | }
|
3619 + | /* StructureGenerator.kt:135 */
|
2173 3620 | impl HttpPayloadWithStructureInput {
|
3621 + | /* StructureGenerator.kt:231 */
|
2174 3622 | #[allow(missing_docs)] // documentation missing in model
|
3623 + | /* StructureGenerator.kt:166 */
|
2175 3624 | pub fn nested(&self) -> ::std::option::Option<&crate::model::NestedPayload> {
|
3625 + | /* StructureGenerator.kt:170 */
|
2176 3626 | self.nested.as_ref()
|
3627 + | /* StructureGenerator.kt:166 */
|
2177 3628 | }
|
3629 + | /* StructureGenerator.kt:135 */
|
2178 3630 | }
|
3631 + | /* ServerCodegenVisitor.kt:345 */
|
2179 3632 | impl HttpPayloadWithStructureInput {
|
2180 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
3633 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
3634 + | /* ServerBuilderGenerator.kt:295 */
|
2181 3635 | pub fn builder() -> crate::input::http_payload_with_structure_input::Builder {
|
3636 + | /* ServerBuilderGenerator.kt:296 */
|
2182 3637 | crate::input::http_payload_with_structure_input::Builder::default()
|
3638 + | /* ServerBuilderGenerator.kt:295 */
|
2183 3639 | }
|
3640 + | /* ServerCodegenVisitor.kt:345 */
|
2184 3641 | }
|
3642 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2185 3643 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithStructureInput {
|
2186 3644 | type Unconstrained = crate::input::http_payload_with_structure_input::Builder;
|
2187 3645 | }
|
2188 3646 |
|
3647 + | /* StructureGenerator.kt:197 */
|
2189 3648 | #[allow(missing_docs)] // documentation missing in model
|
3649 + | /* RustType.kt:516 */
|
2190 3650 | #[derive(
|
2191 3651 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2192 3652 | )]
|
2193 - | pub struct HttpPayloadTraitsWithMediaTypeInput {
|
3653 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsWithMediaTypeInput {
|
3654 + | /* StructureGenerator.kt:231 */
|
2194 3655 | #[allow(missing_docs)] // documentation missing in model
|
2195 3656 | pub foo: ::std::option::Option<::std::string::String>,
|
3657 + | /* StructureGenerator.kt:231 */
|
2196 3658 | #[allow(missing_docs)] // documentation missing in model
|
2197 3659 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
3660 + | /* StructureGenerator.kt:201 */
|
2198 3661 | }
|
3662 + | /* StructureGenerator.kt:135 */
|
2199 3663 | impl HttpPayloadTraitsWithMediaTypeInput {
|
3664 + | /* StructureGenerator.kt:231 */
|
2200 3665 | #[allow(missing_docs)] // documentation missing in model
|
3666 + | /* StructureGenerator.kt:166 */
|
2201 3667 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3668 + | /* StructureGenerator.kt:169 */
|
2202 3669 | self.foo.as_deref()
|
3670 + | /* StructureGenerator.kt:166 */
|
2203 3671 | }
|
3672 + | /* StructureGenerator.kt:231 */
|
2204 3673 | #[allow(missing_docs)] // documentation missing in model
|
3674 + | /* StructureGenerator.kt:166 */
|
2205 3675 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
3676 + | /* StructureGenerator.kt:170 */
|
2206 3677 | self.blob.as_ref()
|
3678 + | /* StructureGenerator.kt:166 */
|
2207 3679 | }
|
3680 + | /* StructureGenerator.kt:135 */
|
2208 3681 | }
|
3682 + | /* ServerCodegenVisitor.kt:345 */
|
2209 3683 | impl HttpPayloadTraitsWithMediaTypeInput {
|
2210 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
3684 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
3685 + | /* ServerBuilderGenerator.kt:295 */
|
2211 3686 | pub fn builder() -> crate::input::http_payload_traits_with_media_type_input::Builder {
|
3687 + | /* ServerBuilderGenerator.kt:296 */
|
2212 3688 | crate::input::http_payload_traits_with_media_type_input::Builder::default()
|
3689 + | /* ServerBuilderGenerator.kt:295 */
|
2213 3690 | }
|
3691 + | /* ServerCodegenVisitor.kt:345 */
|
2214 3692 | }
|
3693 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2215 3694 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
2216 3695 | type Unconstrained = crate::input::http_payload_traits_with_media_type_input::Builder;
|
2217 3696 | }
|
2218 3697 |
|
3698 + | /* StructureGenerator.kt:197 */
|
2219 3699 | #[allow(missing_docs)] // documentation missing in model
|
3700 + | /* RustType.kt:516 */
|
2220 3701 | #[derive(
|
2221 3702 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2222 3703 | )]
|
2223 - | pub struct HttpPayloadTraitsInput {
|
3704 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsInput {
|
3705 + | /* StructureGenerator.kt:231 */
|
2224 3706 | #[allow(missing_docs)] // documentation missing in model
|
2225 3707 | pub foo: ::std::option::Option<::std::string::String>,
|
3708 + | /* StructureGenerator.kt:231 */
|
2226 3709 | #[allow(missing_docs)] // documentation missing in model
|
2227 3710 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
3711 + | /* StructureGenerator.kt:201 */
|
2228 3712 | }
|
3713 + | /* StructureGenerator.kt:135 */
|
2229 3714 | impl HttpPayloadTraitsInput {
|
3715 + | /* StructureGenerator.kt:231 */
|
2230 3716 | #[allow(missing_docs)] // documentation missing in model
|
3717 + | /* StructureGenerator.kt:166 */
|
2231 3718 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3719 + | /* StructureGenerator.kt:169 */
|
2232 3720 | self.foo.as_deref()
|
3721 + | /* StructureGenerator.kt:166 */
|
2233 3722 | }
|
3723 + | /* StructureGenerator.kt:231 */
|
2234 3724 | #[allow(missing_docs)] // documentation missing in model
|
3725 + | /* StructureGenerator.kt:166 */
|
2235 3726 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
3727 + | /* StructureGenerator.kt:170 */
|
2236 3728 | self.blob.as_ref()
|
3729 + | /* StructureGenerator.kt:166 */
|
2237 3730 | }
|
3731 + | /* StructureGenerator.kt:135 */
|
2238 3732 | }
|
3733 + | /* ServerCodegenVisitor.kt:345 */
|
2239 3734 | impl HttpPayloadTraitsInput {
|
2240 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
3735 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
3736 + | /* ServerBuilderGenerator.kt:295 */
|
2241 3737 | pub fn builder() -> crate::input::http_payload_traits_input::Builder {
|
3738 + | /* ServerBuilderGenerator.kt:296 */
|
2242 3739 | crate::input::http_payload_traits_input::Builder::default()
|
3740 + | /* ServerBuilderGenerator.kt:295 */
|
2243 3741 | }
|
3742 + | /* ServerCodegenVisitor.kt:345 */
|
2244 3743 | }
|
3744 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2245 3745 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsInput {
|
2246 3746 | type Unconstrained = crate::input::http_payload_traits_input::Builder;
|
2247 3747 | }
|
2248 3748 |
|
3749 + | /* StructureGenerator.kt:197 */
|
2249 3750 | #[allow(missing_docs)] // documentation missing in model
|
3751 + | /* RustType.kt:516 */
|
2250 3752 | #[derive(
|
2251 3753 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2252 3754 | )]
|
2253 - | pub struct HttpPrefixHeadersInResponseInput {}
|
3755 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInResponseInput {/* StructureGenerator.kt:201 */}
|
3756 + | /* ServerCodegenVisitor.kt:345 */
|
2254 3757 | impl HttpPrefixHeadersInResponseInput {
|
2255 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
3758 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
3759 + | /* ServerBuilderGenerator.kt:295 */
|
2256 3760 | pub fn builder() -> crate::input::http_prefix_headers_in_response_input::Builder {
|
3761 + | /* ServerBuilderGenerator.kt:296 */
|
2257 3762 | crate::input::http_prefix_headers_in_response_input::Builder::default()
|
3763 + | /* ServerBuilderGenerator.kt:295 */
|
2258 3764 | }
|
3765 + | /* ServerCodegenVisitor.kt:345 */
|
2259 3766 | }
|
3767 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2260 3768 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInResponseInput {
|
2261 3769 | type Unconstrained = crate::input::http_prefix_headers_in_response_input::Builder;
|
2262 3770 | }
|
2263 3771 |
|
3772 + | /* StructureGenerator.kt:197 */
|
2264 3773 | #[allow(missing_docs)] // documentation missing in model
|
3774 + | /* RustType.kt:516 */
|
2265 3775 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2266 - | pub struct HttpPrefixHeadersInput {
|
3776 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInput {
|
3777 + | /* StructureGenerator.kt:231 */
|
2267 3778 | #[allow(missing_docs)] // documentation missing in model
|
2268 3779 | pub foo: ::std::option::Option<::std::string::String>,
|
3780 + | /* StructureGenerator.kt:231 */
|
2269 3781 | #[allow(missing_docs)] // documentation missing in model
|
2270 3782 | pub foo_map: ::std::option::Option<
|
2271 3783 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2272 3784 | >,
|
3785 + | /* StructureGenerator.kt:201 */
|
2273 3786 | }
|
3787 + | /* StructureGenerator.kt:135 */
|
2274 3788 | impl HttpPrefixHeadersInput {
|
3789 + | /* StructureGenerator.kt:231 */
|
2275 3790 | #[allow(missing_docs)] // documentation missing in model
|
3791 + | /* StructureGenerator.kt:166 */
|
2276 3792 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3793 + | /* StructureGenerator.kt:169 */
|
2277 3794 | self.foo.as_deref()
|
3795 + | /* StructureGenerator.kt:166 */
|
2278 3796 | }
|
3797 + | /* StructureGenerator.kt:231 */
|
2279 3798 | #[allow(missing_docs)] // documentation missing in model
|
3799 + | /* StructureGenerator.kt:166 */
|
2280 3800 | pub fn foo_map(
|
2281 3801 | &self,
|
2282 3802 | ) -> ::std::option::Option<
|
2283 3803 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2284 3804 | > {
|
3805 + | /* StructureGenerator.kt:170 */
|
2285 3806 | self.foo_map.as_ref()
|
3807 + | /* StructureGenerator.kt:166 */
|
2286 3808 | }
|
3809 + | /* StructureGenerator.kt:135 */
|
2287 3810 | }
|
3811 + | /* ServerCodegenVisitor.kt:345 */
|
2288 3812 | impl HttpPrefixHeadersInput {
|
2289 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
3813 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
3814 + | /* ServerBuilderGenerator.kt:295 */
|
2290 3815 | pub fn builder() -> crate::input::http_prefix_headers_input::Builder {
|
3816 + | /* ServerBuilderGenerator.kt:296 */
|
2291 3817 | crate::input::http_prefix_headers_input::Builder::default()
|
3818 + | /* ServerBuilderGenerator.kt:295 */
|
2292 3819 | }
|
3820 + | /* ServerCodegenVisitor.kt:345 */
|
2293 3821 | }
|
3822 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2294 3823 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInput {
|
2295 3824 | type Unconstrained = crate::input::http_prefix_headers_input::Builder;
|
2296 3825 | }
|
2297 3826 |
|
3827 + | /* StructureGenerator.kt:197 */
|
2298 3828 | #[allow(missing_docs)] // documentation missing in model
|
3829 + | /* RustType.kt:516 */
|
2299 3830 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2300 - | pub struct QueryParamsAsStringListMapInput {
|
3831 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsAsStringListMapInput {
|
3832 + | /* StructureGenerator.kt:231 */
|
2301 3833 | #[allow(missing_docs)] // documentation missing in model
|
2302 3834 | pub qux: ::std::option::Option<::std::string::String>,
|
3835 + | /* StructureGenerator.kt:231 */
|
2303 3836 | #[allow(missing_docs)] // documentation missing in model
|
2304 3837 | pub foo: ::std::option::Option<
|
2305 3838 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2306 3839 | >,
|
3840 + | /* StructureGenerator.kt:201 */
|
2307 3841 | }
|
3842 + | /* StructureGenerator.kt:135 */
|
2308 3843 | impl QueryParamsAsStringListMapInput {
|
3844 + | /* StructureGenerator.kt:231 */
|
2309 3845 | #[allow(missing_docs)] // documentation missing in model
|
3846 + | /* StructureGenerator.kt:166 */
|
2310 3847 | pub fn qux(&self) -> ::std::option::Option<&str> {
|
3848 + | /* StructureGenerator.kt:169 */
|
2311 3849 | self.qux.as_deref()
|
3850 + | /* StructureGenerator.kt:166 */
|
2312 3851 | }
|
3852 + | /* StructureGenerator.kt:231 */
|
2313 3853 | #[allow(missing_docs)] // documentation missing in model
|
3854 + | /* StructureGenerator.kt:166 */
|
2314 3855 | pub fn foo(
|
2315 3856 | &self,
|
2316 3857 | ) -> ::std::option::Option<
|
2317 3858 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2318 3859 | > {
|
3860 + | /* StructureGenerator.kt:170 */
|
2319 3861 | self.foo.as_ref()
|
3862 + | /* StructureGenerator.kt:166 */
|
2320 3863 | }
|
3864 + | /* StructureGenerator.kt:135 */
|
2321 3865 | }
|
3866 + | /* ServerCodegenVisitor.kt:345 */
|
2322 3867 | impl QueryParamsAsStringListMapInput {
|
2323 - | /// Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
3868 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
3869 + | /* ServerBuilderGenerator.kt:295 */
|
2324 3870 | pub fn builder() -> crate::input::query_params_as_string_list_map_input::Builder {
|
3871 + | /* ServerBuilderGenerator.kt:296 */
|
2325 3872 | crate::input::query_params_as_string_list_map_input::Builder::default()
|
3873 + | /* ServerBuilderGenerator.kt:295 */
|
2326 3874 | }
|
3875 + | /* ServerCodegenVisitor.kt:345 */
|
2327 3876 | }
|
3877 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2328 3878 | impl crate::constrained::Constrained for crate::input::QueryParamsAsStringListMapInput {
|
2329 3879 | type Unconstrained = crate::input::query_params_as_string_list_map_input::Builder;
|
2330 3880 | }
|
2331 3881 |
|
3882 + | /* StructureGenerator.kt:197 */
|
2332 3883 | #[allow(missing_docs)] // documentation missing in model
|
3884 + | /* RustType.kt:516 */
|
2333 3885 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2334 - | pub struct QueryPrecedenceInput {
|
3886 + | pub /* StructureGenerator.kt:201 */ struct QueryPrecedenceInput {
|
3887 + | /* StructureGenerator.kt:231 */
|
2335 3888 | #[allow(missing_docs)] // documentation missing in model
|
2336 3889 | pub foo: ::std::option::Option<::std::string::String>,
|
3890 + | /* StructureGenerator.kt:231 */
|
2337 3891 | #[allow(missing_docs)] // documentation missing in model
|
2338 3892 | pub baz: ::std::option::Option<
|
2339 3893 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2340 3894 | >,
|
3895 + | /* StructureGenerator.kt:201 */
|
2341 3896 | }
|
3897 + | /* StructureGenerator.kt:135 */
|
2342 3898 | impl QueryPrecedenceInput {
|
3899 + | /* StructureGenerator.kt:231 */
|
2343 3900 | #[allow(missing_docs)] // documentation missing in model
|
3901 + | /* StructureGenerator.kt:166 */
|
2344 3902 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3903 + | /* StructureGenerator.kt:169 */
|
2345 3904 | self.foo.as_deref()
|
3905 + | /* StructureGenerator.kt:166 */
|
2346 3906 | }
|
3907 + | /* StructureGenerator.kt:231 */
|
2347 3908 | #[allow(missing_docs)] // documentation missing in model
|
3909 + | /* StructureGenerator.kt:166 */
|
2348 3910 | pub fn baz(
|
2349 3911 | &self,
|
2350 3912 | ) -> ::std::option::Option<
|
2351 3913 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2352 3914 | > {
|
3915 + | /* StructureGenerator.kt:170 */
|
2353 3916 | self.baz.as_ref()
|
3917 + | /* StructureGenerator.kt:166 */
|
2354 3918 | }
|
3919 + | /* StructureGenerator.kt:135 */
|
2355 3920 | }
|
3921 + | /* ServerCodegenVisitor.kt:345 */
|
2356 3922 | impl QueryPrecedenceInput {
|
2357 - | /// Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
3923 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
3924 + | /* ServerBuilderGenerator.kt:295 */
|
2358 3925 | pub fn builder() -> crate::input::query_precedence_input::Builder {
|
3926 + | /* ServerBuilderGenerator.kt:296 */
|
2359 3927 | crate::input::query_precedence_input::Builder::default()
|
3928 + | /* ServerBuilderGenerator.kt:295 */
|
2360 3929 | }
|
3930 + | /* ServerCodegenVisitor.kt:345 */
|
2361 3931 | }
|
3932 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2362 3933 | impl crate::constrained::Constrained for crate::input::QueryPrecedenceInput {
|
2363 3934 | type Unconstrained = crate::input::query_precedence_input::Builder;
|
2364 3935 | }
|
2365 3936 |
|
3937 + | /* StructureGenerator.kt:197 */
|
2366 3938 | #[allow(missing_docs)] // documentation missing in model
|
3939 + | /* RustType.kt:516 */
|
2367 3940 | #[derive(
|
2368 3941 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2369 3942 | )]
|
2370 - | pub struct QueryIdempotencyTokenAutoFillInput {
|
3943 + | pub /* StructureGenerator.kt:201 */ struct QueryIdempotencyTokenAutoFillInput {
|
3944 + | /* StructureGenerator.kt:231 */
|
2371 3945 | #[allow(missing_docs)] // documentation missing in model
|
2372 3946 | pub token: ::std::option::Option<::std::string::String>,
|
3947 + | /* StructureGenerator.kt:201 */
|
2373 3948 | }
|
3949 + | /* StructureGenerator.kt:135 */
|
2374 3950 | impl QueryIdempotencyTokenAutoFillInput {
|
3951 + | /* StructureGenerator.kt:231 */
|
2375 3952 | #[allow(missing_docs)] // documentation missing in model
|
3953 + | /* StructureGenerator.kt:166 */
|
2376 3954 | pub fn token(&self) -> ::std::option::Option<&str> {
|
3955 + | /* StructureGenerator.kt:169 */
|
2377 3956 | self.token.as_deref()
|
3957 + | /* StructureGenerator.kt:166 */
|
2378 3958 | }
|
3959 + | /* StructureGenerator.kt:135 */
|
2379 3960 | }
|
3961 + | /* ServerCodegenVisitor.kt:345 */
|
2380 3962 | impl QueryIdempotencyTokenAutoFillInput {
|
2381 - | /// Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
3963 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
3964 + | /* ServerBuilderGenerator.kt:295 */
|
2382 3965 | pub fn builder() -> crate::input::query_idempotency_token_auto_fill_input::Builder {
|
3966 + | /* ServerBuilderGenerator.kt:296 */
|
2383 3967 | crate::input::query_idempotency_token_auto_fill_input::Builder::default()
|
3968 + | /* ServerBuilderGenerator.kt:295 */
|
2384 3969 | }
|
3970 + | /* ServerCodegenVisitor.kt:345 */
|
2385 3971 | }
|
3972 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2386 3973 | impl crate::constrained::Constrained for crate::input::QueryIdempotencyTokenAutoFillInput {
|
2387 3974 | type Unconstrained = crate::input::query_idempotency_token_auto_fill_input::Builder;
|
2388 3975 | }
|
2389 3976 |
|
3977 + | /* StructureGenerator.kt:197 */
|
2390 3978 | #[allow(missing_docs)] // documentation missing in model
|
3979 + | /* RustType.kt:516 */
|
2391 3980 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2392 - | pub struct OmitsSerializingEmptyListsInput {
|
3981 + | pub /* StructureGenerator.kt:201 */ struct OmitsSerializingEmptyListsInput {
|
3982 + | /* StructureGenerator.kt:231 */
|
2393 3983 | #[allow(missing_docs)] // documentation missing in model
|
2394 3984 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
3985 + | /* StructureGenerator.kt:231 */
|
2395 3986 | #[allow(missing_docs)] // documentation missing in model
|
2396 3987 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
3988 + | /* StructureGenerator.kt:231 */
|
2397 3989 | #[allow(missing_docs)] // documentation missing in model
|
2398 3990 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
3991 + | /* StructureGenerator.kt:231 */
|
2399 3992 | #[allow(missing_docs)] // documentation missing in model
|
2400 3993 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
3994 + | /* StructureGenerator.kt:231 */
|
2401 3995 | #[allow(missing_docs)] // documentation missing in model
|
2402 3996 | pub query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
3997 + | /* StructureGenerator.kt:231 */
|
2403 3998 | #[allow(missing_docs)] // documentation missing in model
|
2404 3999 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4000 + | /* StructureGenerator.kt:231 */
|
2405 4001 | #[allow(missing_docs)] // documentation missing in model
|
2406 4002 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4003 + | /* StructureGenerator.kt:201 */
|
2407 4004 | }
|
4005 + | /* StructureGenerator.kt:135 */
|
2408 4006 | impl OmitsSerializingEmptyListsInput {
|
4007 + | /* StructureGenerator.kt:231 */
|
2409 4008 | #[allow(missing_docs)] // documentation missing in model
|
4009 + | /* StructureGenerator.kt:166 */
|
2410 4010 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
4011 + | /* StructureGenerator.kt:169 */
|
2411 4012 | self.query_string_list.as_deref()
|
4013 + | /* StructureGenerator.kt:166 */
|
2412 4014 | }
|
4015 + | /* StructureGenerator.kt:231 */
|
2413 4016 | #[allow(missing_docs)] // documentation missing in model
|
4017 + | /* StructureGenerator.kt:166 */
|
2414 4018 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
4019 + | /* StructureGenerator.kt:169 */
|
2415 4020 | self.query_integer_list.as_deref()
|
4021 + | /* StructureGenerator.kt:166 */
|
2416 4022 | }
|
4023 + | /* StructureGenerator.kt:231 */
|
2417 4024 | #[allow(missing_docs)] // documentation missing in model
|
4025 + | /* StructureGenerator.kt:166 */
|
2418 4026 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
4027 + | /* StructureGenerator.kt:169 */
|
2419 4028 | self.query_double_list.as_deref()
|
4029 + | /* StructureGenerator.kt:166 */
|
2420 4030 | }
|
4031 + | /* StructureGenerator.kt:231 */
|
2421 4032 | #[allow(missing_docs)] // documentation missing in model
|
4033 + | /* StructureGenerator.kt:166 */
|
2422 4034 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
4035 + | /* StructureGenerator.kt:169 */
|
2423 4036 | self.query_boolean_list.as_deref()
|
4037 + | /* StructureGenerator.kt:166 */
|
2424 4038 | }
|
4039 + | /* StructureGenerator.kt:231 */
|
2425 4040 | #[allow(missing_docs)] // documentation missing in model
|
4041 + | /* StructureGenerator.kt:166 */
|
2426 4042 | pub fn query_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
4043 + | /* StructureGenerator.kt:169 */
|
2427 4044 | self.query_timestamp_list.as_deref()
|
4045 + | /* StructureGenerator.kt:166 */
|
2428 4046 | }
|
4047 + | /* StructureGenerator.kt:231 */
|
2429 4048 | #[allow(missing_docs)] // documentation missing in model
|
4049 + | /* StructureGenerator.kt:166 */
|
2430 4050 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
4051 + | /* StructureGenerator.kt:169 */
|
2431 4052 | self.query_enum_list.as_deref()
|
4053 + | /* StructureGenerator.kt:166 */
|
2432 4054 | }
|
4055 + | /* StructureGenerator.kt:231 */
|
2433 4056 | #[allow(missing_docs)] // documentation missing in model
|
4057 + | /* StructureGenerator.kt:166 */
|
2434 4058 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
4059 + | /* StructureGenerator.kt:169 */
|
2435 4060 | self.query_integer_enum_list.as_deref()
|
4061 + | /* StructureGenerator.kt:166 */
|
2436 4062 | }
|
4063 + | /* StructureGenerator.kt:135 */
|
2437 4064 | }
|
4065 + | /* ServerCodegenVisitor.kt:345 */
|
2438 4066 | impl OmitsSerializingEmptyListsInput {
|
2439 - | /// Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
4067 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
4068 + | /* ServerBuilderGenerator.kt:295 */
|
2440 4069 | pub fn builder() -> crate::input::omits_serializing_empty_lists_input::Builder {
|
4070 + | /* ServerBuilderGenerator.kt:296 */
|
2441 4071 | crate::input::omits_serializing_empty_lists_input::Builder::default()
|
4072 + | /* ServerBuilderGenerator.kt:295 */
|
2442 4073 | }
|
4074 + | /* ServerCodegenVisitor.kt:345 */
|
2443 4075 | }
|
4076 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2444 4077 | impl crate::constrained::Constrained for crate::input::OmitsSerializingEmptyListsInput {
|
2445 4078 | type Unconstrained = crate::input::omits_serializing_empty_lists_input::Builder;
|
2446 4079 | }
|
2447 4080 |
|
4081 + | /* StructureGenerator.kt:197 */
|
2448 4082 | #[allow(missing_docs)] // documentation missing in model
|
4083 + | /* RustType.kt:516 */
|
2449 4084 | #[derive(
|
2450 4085 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2451 4086 | )]
|
2452 - | pub struct OmitsNullSerializesEmptyStringInput {
|
4087 + | pub /* StructureGenerator.kt:201 */ struct OmitsNullSerializesEmptyStringInput {
|
4088 + | /* StructureGenerator.kt:231 */
|
2453 4089 | #[allow(missing_docs)] // documentation missing in model
|
2454 4090 | pub null_value: ::std::option::Option<::std::string::String>,
|
4091 + | /* StructureGenerator.kt:231 */
|
2455 4092 | #[allow(missing_docs)] // documentation missing in model
|
2456 4093 | pub empty_string: ::std::option::Option<::std::string::String>,
|
4094 + | /* StructureGenerator.kt:201 */
|
2457 4095 | }
|
4096 + | /* StructureGenerator.kt:135 */
|
2458 4097 | impl OmitsNullSerializesEmptyStringInput {
|
4098 + | /* StructureGenerator.kt:231 */
|
2459 4099 | #[allow(missing_docs)] // documentation missing in model
|
4100 + | /* StructureGenerator.kt:166 */
|
2460 4101 | pub fn null_value(&self) -> ::std::option::Option<&str> {
|
4102 + | /* StructureGenerator.kt:169 */
|
2461 4103 | self.null_value.as_deref()
|
4104 + | /* StructureGenerator.kt:166 */
|
2462 4105 | }
|
4106 + | /* StructureGenerator.kt:231 */
|
2463 4107 | #[allow(missing_docs)] // documentation missing in model
|
4108 + | /* StructureGenerator.kt:166 */
|
2464 4109 | pub fn empty_string(&self) -> ::std::option::Option<&str> {
|
4110 + | /* StructureGenerator.kt:169 */
|
2465 4111 | self.empty_string.as_deref()
|
4112 + | /* StructureGenerator.kt:166 */
|
2466 4113 | }
|
4114 + | /* StructureGenerator.kt:135 */
|
2467 4115 | }
|
4116 + | /* ServerCodegenVisitor.kt:345 */
|
2468 4117 | impl OmitsNullSerializesEmptyStringInput {
|
2469 - | /// Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
4118 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
4119 + | /* ServerBuilderGenerator.kt:295 */
|
2470 4120 | pub fn builder() -> crate::input::omits_null_serializes_empty_string_input::Builder {
|
4121 + | /* ServerBuilderGenerator.kt:296 */
|
2471 4122 | crate::input::omits_null_serializes_empty_string_input::Builder::default()
|
4123 + | /* ServerBuilderGenerator.kt:295 */
|
2472 4124 | }
|
4125 + | /* ServerCodegenVisitor.kt:345 */
|
2473 4126 | }
|
4127 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2474 4128 | impl crate::constrained::Constrained for crate::input::OmitsNullSerializesEmptyStringInput {
|
2475 4129 | type Unconstrained = crate::input::omits_null_serializes_empty_string_input::Builder;
|
2476 4130 | }
|
2477 4131 |
|
4132 + | /* StructureGenerator.kt:197 */
|
2478 4133 | #[allow(missing_docs)] // documentation missing in model
|
4134 + | /* RustType.kt:516 */
|
2479 4135 | #[derive(
|
2480 4136 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2481 4137 | )]
|
2482 - | pub struct IgnoreQueryParamsInResponseInput {}
|
4138 + | pub /* StructureGenerator.kt:201 */ struct IgnoreQueryParamsInResponseInput {/* StructureGenerator.kt:201 */}
|
4139 + | /* ServerCodegenVisitor.kt:345 */
|
2483 4140 | impl IgnoreQueryParamsInResponseInput {
|
2484 - | /// Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
4141 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
4142 + | /* ServerBuilderGenerator.kt:295 */
|
2485 4143 | pub fn builder() -> crate::input::ignore_query_params_in_response_input::Builder {
|
4144 + | /* ServerBuilderGenerator.kt:296 */
|
2486 4145 | crate::input::ignore_query_params_in_response_input::Builder::default()
|
4146 + | /* ServerBuilderGenerator.kt:295 */
|
2487 4147 | }
|
4148 + | /* ServerCodegenVisitor.kt:345 */
|
2488 4149 | }
|
4150 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2489 4151 | impl crate::constrained::Constrained for crate::input::IgnoreQueryParamsInResponseInput {
|
2490 4152 | type Unconstrained = crate::input::ignore_query_params_in_response_input::Builder;
|
2491 4153 | }
|
2492 4154 |
|
4155 + | /* StructureGenerator.kt:197 */
|
2493 4156 | #[allow(missing_docs)] // documentation missing in model
|
4157 + | /* RustType.kt:516 */
|
2494 4158 | #[derive(
|
2495 4159 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2496 4160 | )]
|
2497 - | pub struct ConstantAndVariableQueryStringInput {
|
4161 + | pub /* StructureGenerator.kt:201 */ struct ConstantAndVariableQueryStringInput {
|
4162 + | /* StructureGenerator.kt:231 */
|
2498 4163 | #[allow(missing_docs)] // documentation missing in model
|
2499 4164 | pub baz: ::std::option::Option<::std::string::String>,
|
4165 + | /* StructureGenerator.kt:231 */
|
2500 4166 | #[allow(missing_docs)] // documentation missing in model
|
2501 4167 | pub maybe_set: ::std::option::Option<::std::string::String>,
|
4168 + | /* StructureGenerator.kt:201 */
|
2502 4169 | }
|
4170 + | /* StructureGenerator.kt:135 */
|
2503 4171 | impl ConstantAndVariableQueryStringInput {
|
4172 + | /* StructureGenerator.kt:231 */
|
2504 4173 | #[allow(missing_docs)] // documentation missing in model
|
4174 + | /* StructureGenerator.kt:166 */
|
2505 4175 | pub fn baz(&self) -> ::std::option::Option<&str> {
|
4176 + | /* StructureGenerator.kt:169 */
|
2506 4177 | self.baz.as_deref()
|
4178 + | /* StructureGenerator.kt:166 */
|
2507 4179 | }
|
4180 + | /* StructureGenerator.kt:231 */
|
2508 4181 | #[allow(missing_docs)] // documentation missing in model
|
4182 + | /* StructureGenerator.kt:166 */
|
2509 4183 | pub fn maybe_set(&self) -> ::std::option::Option<&str> {
|
4184 + | /* StructureGenerator.kt:169 */
|
2510 4185 | self.maybe_set.as_deref()
|
4186 + | /* StructureGenerator.kt:166 */
|
2511 4187 | }
|
4188 + | /* StructureGenerator.kt:135 */
|
2512 4189 | }
|
4190 + | /* ServerCodegenVisitor.kt:345 */
|
2513 4191 | impl ConstantAndVariableQueryStringInput {
|
2514 - | /// Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
4192 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
4193 + | /* ServerBuilderGenerator.kt:295 */
|
2515 4194 | pub fn builder() -> crate::input::constant_and_variable_query_string_input::Builder {
|
4195 + | /* ServerBuilderGenerator.kt:296 */
|
2516 4196 | crate::input::constant_and_variable_query_string_input::Builder::default()
|
4197 + | /* ServerBuilderGenerator.kt:295 */
|
2517 4198 | }
|
4199 + | /* ServerCodegenVisitor.kt:345 */
|
2518 4200 | }
|
4201 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2519 4202 | impl crate::constrained::Constrained for crate::input::ConstantAndVariableQueryStringInput {
|
2520 4203 | type Unconstrained = crate::input::constant_and_variable_query_string_input::Builder;
|
2521 4204 | }
|
2522 4205 |
|
4206 + | /* StructureGenerator.kt:197 */
|
2523 4207 | #[allow(missing_docs)] // documentation missing in model
|
4208 + | /* RustType.kt:516 */
|
2524 4209 | #[derive(
|
2525 4210 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2526 4211 | )]
|
2527 - | pub struct ConstantQueryStringInput {
|
4212 + | pub /* StructureGenerator.kt:201 */ struct ConstantQueryStringInput {
|
4213 + | /* StructureGenerator.kt:231 */
|
2528 4214 | #[allow(missing_docs)] // documentation missing in model
|
2529 4215 | pub hello: ::std::string::String,
|
4216 + | /* StructureGenerator.kt:201 */
|
2530 4217 | }
|
4218 + | /* StructureGenerator.kt:135 */
|
2531 4219 | impl ConstantQueryStringInput {
|
4220 + | /* StructureGenerator.kt:231 */
|
2532 4221 | #[allow(missing_docs)] // documentation missing in model
|
4222 + | /* StructureGenerator.kt:166 */
|
2533 4223 | pub fn hello(&self) -> &str {
|
4224 + | /* StructureGenerator.kt:171 */
|
2534 4225 | use std::ops::Deref;
|
2535 4226 | self.hello.deref()
|
4227 + | /* StructureGenerator.kt:166 */
|
2536 4228 | }
|
4229 + | /* StructureGenerator.kt:135 */
|
2537 4230 | }
|
4231 + | /* ServerCodegenVisitor.kt:345 */
|
2538 4232 | impl ConstantQueryStringInput {
|
2539 - | /// Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
4233 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
4234 + | /* ServerBuilderGenerator.kt:295 */
|
2540 4235 | pub fn builder() -> crate::input::constant_query_string_input::Builder {
|
4236 + | /* ServerBuilderGenerator.kt:296 */
|
2541 4237 | crate::input::constant_query_string_input::Builder::default()
|
4238 + | /* ServerBuilderGenerator.kt:295 */
|
2542 4239 | }
|
4240 + | /* ServerCodegenVisitor.kt:345 */
|
2543 4241 | }
|
4242 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2544 4243 | impl crate::constrained::Constrained for crate::input::ConstantQueryStringInput {
|
2545 4244 | type Unconstrained = crate::input::constant_query_string_input::Builder;
|
2546 4245 | }
|
2547 4246 |
|
4247 + | /* StructureGenerator.kt:197 */
|
2548 4248 | #[allow(missing_docs)] // documentation missing in model
|
4249 + | /* RustType.kt:516 */
|
2549 4250 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2550 - | pub struct AllQueryStringTypesInput {
|
4251 + | pub /* StructureGenerator.kt:201 */ struct AllQueryStringTypesInput {
|
4252 + | /* StructureGenerator.kt:231 */
|
2551 4253 | #[allow(missing_docs)] // documentation missing in model
|
2552 4254 | pub query_string: ::std::option::Option<::std::string::String>,
|
4255 + | /* StructureGenerator.kt:231 */
|
2553 4256 | #[allow(missing_docs)] // documentation missing in model
|
2554 4257 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4258 + | /* StructureGenerator.kt:231 */
|
2555 4259 | #[allow(missing_docs)] // documentation missing in model
|
2556 4260 | pub query_string_set: ::std::option::Option<crate::model::StringSet>,
|
4261 + | /* StructureGenerator.kt:231 */
|
2557 4262 | #[allow(missing_docs)] // documentation missing in model
|
2558 4263 | pub query_byte: ::std::option::Option<i8>,
|
4264 + | /* StructureGenerator.kt:231 */
|
2559 4265 | #[allow(missing_docs)] // documentation missing in model
|
2560 4266 | pub query_short: ::std::option::Option<i16>,
|
4267 + | /* StructureGenerator.kt:231 */
|
2561 4268 | #[allow(missing_docs)] // documentation missing in model
|
2562 4269 | pub query_integer: ::std::option::Option<i32>,
|
4270 + | /* StructureGenerator.kt:231 */
|
2563 4271 | #[allow(missing_docs)] // documentation missing in model
|
2564 4272 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4273 + | /* StructureGenerator.kt:231 */
|
2565 4274 | #[allow(missing_docs)] // documentation missing in model
|
2566 4275 | pub query_integer_set: ::std::option::Option<crate::model::IntegerSet>,
|
4276 + | /* StructureGenerator.kt:231 */
|
2567 4277 | #[allow(missing_docs)] // documentation missing in model
|
2568 4278 | pub query_long: ::std::option::Option<i64>,
|
4279 + | /* StructureGenerator.kt:231 */
|
2569 4280 | #[allow(missing_docs)] // documentation missing in model
|
2570 4281 | pub query_float: ::std::option::Option<f32>,
|
4282 + | /* StructureGenerator.kt:231 */
|
2571 4283 | #[allow(missing_docs)] // documentation missing in model
|
2572 4284 | pub query_double: ::std::option::Option<f64>,
|
4285 + | /* StructureGenerator.kt:231 */
|
2573 4286 | #[allow(missing_docs)] // documentation missing in model
|
2574 4287 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
4288 + | /* StructureGenerator.kt:231 */
|
2575 4289 | #[allow(missing_docs)] // documentation missing in model
|
2576 4290 | pub query_boolean: ::std::option::Option<bool>,
|
4291 + | /* StructureGenerator.kt:231 */
|
2577 4292 | #[allow(missing_docs)] // documentation missing in model
|
2578 4293 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
4294 + | /* StructureGenerator.kt:231 */
|
2579 4295 | #[allow(missing_docs)] // documentation missing in model
|
2580 4296 | pub query_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4297 + | /* StructureGenerator.kt:231 */
|
2581 4298 | #[allow(missing_docs)] // documentation missing in model
|
2582 4299 | pub query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
4300 + | /* StructureGenerator.kt:231 */
|
2583 4301 | #[allow(missing_docs)] // documentation missing in model
|
2584 4302 | pub query_enum: ::std::option::Option<crate::model::FooEnum>,
|
4303 + | /* StructureGenerator.kt:231 */
|
2585 4304 | #[allow(missing_docs)] // documentation missing in model
|
2586 4305 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4306 + | /* StructureGenerator.kt:231 */
|
2587 4307 | #[allow(missing_docs)] // documentation missing in model
|
2588 4308 | pub query_integer_enum: ::std::option::Option<i32>,
|
4309 + | /* StructureGenerator.kt:231 */
|
2589 4310 | #[allow(missing_docs)] // documentation missing in model
|
2590 4311 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4312 + | /* StructureGenerator.kt:231 */
|
2591 4313 | #[allow(missing_docs)] // documentation missing in model
|
2592 4314 | pub query_params_map_of_string_list: ::std::option::Option<
|
2593 4315 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2594 4316 | >,
|
4317 + | /* StructureGenerator.kt:201 */
|
2595 4318 | }
|
4319 + | /* StructureGenerator.kt:135 */
|
2596 4320 | impl AllQueryStringTypesInput {
|
4321 + | /* StructureGenerator.kt:231 */
|
2597 4322 | #[allow(missing_docs)] // documentation missing in model
|
4323 + | /* StructureGenerator.kt:166 */
|
2598 4324 | pub fn query_string(&self) -> ::std::option::Option<&str> {
|
4325 + | /* StructureGenerator.kt:169 */
|
2599 4326 | self.query_string.as_deref()
|
4327 + | /* StructureGenerator.kt:166 */
|
2600 4328 | }
|
4329 + | /* StructureGenerator.kt:231 */
|
2601 4330 | #[allow(missing_docs)] // documentation missing in model
|
4331 + | /* StructureGenerator.kt:166 */
|
2602 4332 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
4333 + | /* StructureGenerator.kt:169 */
|
2603 4334 | self.query_string_list.as_deref()
|
4335 + | /* StructureGenerator.kt:166 */
|
2604 4336 | }
|
4337 + | /* StructureGenerator.kt:231 */
|
2605 4338 | #[allow(missing_docs)] // documentation missing in model
|
4339 + | /* StructureGenerator.kt:166 */
|
2606 4340 | pub fn query_string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
4341 + | /* StructureGenerator.kt:170 */
|
2607 4342 | self.query_string_set.as_ref()
|
4343 + | /* StructureGenerator.kt:166 */
|
2608 4344 | }
|
4345 + | /* StructureGenerator.kt:231 */
|
2609 4346 | #[allow(missing_docs)] // documentation missing in model
|
4347 + | /* StructureGenerator.kt:166 */
|
2610 4348 | pub fn query_byte(&self) -> ::std::option::Option<i8> {
|
4349 + | /* StructureGenerator.kt:168 */
|
2611 4350 | self.query_byte
|
4351 + | /* StructureGenerator.kt:166 */
|
2612 4352 | }
|
4353 + | /* StructureGenerator.kt:231 */
|
2613 4354 | #[allow(missing_docs)] // documentation missing in model
|
4355 + | /* StructureGenerator.kt:166 */
|
2614 4356 | pub fn query_short(&self) -> ::std::option::Option<i16> {
|
4357 + | /* StructureGenerator.kt:168 */
|
2615 4358 | self.query_short
|
4359 + | /* StructureGenerator.kt:166 */
|
2616 4360 | }
|
4361 + | /* StructureGenerator.kt:231 */
|
2617 4362 | #[allow(missing_docs)] // documentation missing in model
|
4363 + | /* StructureGenerator.kt:166 */
|
2618 4364 | pub fn query_integer(&self) -> ::std::option::Option<i32> {
|
4365 + | /* StructureGenerator.kt:168 */
|
2619 4366 | self.query_integer
|
4367 + | /* StructureGenerator.kt:166 */
|
2620 4368 | }
|
4369 + | /* StructureGenerator.kt:231 */
|
2621 4370 | #[allow(missing_docs)] // documentation missing in model
|
4371 + | /* StructureGenerator.kt:166 */
|
2622 4372 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
4373 + | /* StructureGenerator.kt:169 */
|
2623 4374 | self.query_integer_list.as_deref()
|
4375 + | /* StructureGenerator.kt:166 */
|
2624 4376 | }
|
4377 + | /* StructureGenerator.kt:231 */
|
2625 4378 | #[allow(missing_docs)] // documentation missing in model
|
4379 + | /* StructureGenerator.kt:166 */
|
2626 4380 | pub fn query_integer_set(&self) -> ::std::option::Option<&crate::model::IntegerSet> {
|
4381 + | /* StructureGenerator.kt:170 */
|
2627 4382 | self.query_integer_set.as_ref()
|
4383 + | /* StructureGenerator.kt:166 */
|
2628 4384 | }
|
4385 + | /* StructureGenerator.kt:231 */
|
2629 4386 | #[allow(missing_docs)] // documentation missing in model
|
4387 + | /* StructureGenerator.kt:166 */
|
2630 4388 | pub fn query_long(&self) -> ::std::option::Option<i64> {
|
4389 + | /* StructureGenerator.kt:168 */
|
2631 4390 | self.query_long
|
4391 + | /* StructureGenerator.kt:166 */
|
2632 4392 | }
|
4393 + | /* StructureGenerator.kt:231 */
|
2633 4394 | #[allow(missing_docs)] // documentation missing in model
|
4395 + | /* StructureGenerator.kt:166 */
|
2634 4396 | pub fn query_float(&self) -> ::std::option::Option<f32> {
|
4397 + | /* StructureGenerator.kt:168 */
|
2635 4398 | self.query_float
|
4399 + | /* StructureGenerator.kt:166 */
|
2636 4400 | }
|
4401 + | /* StructureGenerator.kt:231 */
|
2637 4402 | #[allow(missing_docs)] // documentation missing in model
|
4403 + | /* StructureGenerator.kt:166 */
|
2638 4404 | pub fn query_double(&self) -> ::std::option::Option<f64> {
|
4405 + | /* StructureGenerator.kt:168 */
|
2639 4406 | self.query_double
|
4407 + | /* StructureGenerator.kt:166 */
|
2640 4408 | }
|
4409 + | /* StructureGenerator.kt:231 */
|
2641 4410 | #[allow(missing_docs)] // documentation missing in model
|
4411 + | /* StructureGenerator.kt:166 */
|
2642 4412 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
4413 + | /* StructureGenerator.kt:169 */
|
2643 4414 | self.query_double_list.as_deref()
|
4415 + | /* StructureGenerator.kt:166 */
|
2644 4416 | }
|
4417 + | /* StructureGenerator.kt:231 */
|
2645 4418 | #[allow(missing_docs)] // documentation missing in model
|
4419 + | /* StructureGenerator.kt:166 */
|
2646 4420 | pub fn query_boolean(&self) -> ::std::option::Option<bool> {
|
4421 + | /* StructureGenerator.kt:168 */
|
2647 4422 | self.query_boolean
|
4423 + | /* StructureGenerator.kt:166 */
|
2648 4424 | }
|
4425 + | /* StructureGenerator.kt:231 */
|
2649 4426 | #[allow(missing_docs)] // documentation missing in model
|
4427 + | /* StructureGenerator.kt:166 */
|
2650 4428 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
4429 + | /* StructureGenerator.kt:169 */
|
2651 4430 | self.query_boolean_list.as_deref()
|
4431 + | /* StructureGenerator.kt:166 */
|
2652 4432 | }
|
4433 + | /* StructureGenerator.kt:231 */
|
2653 4434 | #[allow(missing_docs)] // documentation missing in model
|
4435 + | /* StructureGenerator.kt:166 */
|
2654 4436 | pub fn query_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4437 + | /* StructureGenerator.kt:170 */
|
2655 4438 | self.query_timestamp.as_ref()
|
4439 + | /* StructureGenerator.kt:166 */
|
2656 4440 | }
|
4441 + | /* StructureGenerator.kt:231 */
|
2657 4442 | #[allow(missing_docs)] // documentation missing in model
|
4443 + | /* StructureGenerator.kt:166 */
|
2658 4444 | pub fn query_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
4445 + | /* StructureGenerator.kt:169 */
|
2659 4446 | self.query_timestamp_list.as_deref()
|
4447 + | /* StructureGenerator.kt:166 */
|
2660 4448 | }
|
4449 + | /* StructureGenerator.kt:231 */
|
2661 4450 | #[allow(missing_docs)] // documentation missing in model
|
4451 + | /* StructureGenerator.kt:166 */
|
2662 4452 | pub fn query_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
4453 + | /* StructureGenerator.kt:170 */
|
2663 4454 | self.query_enum.as_ref()
|
4455 + | /* StructureGenerator.kt:166 */
|
2664 4456 | }
|
4457 + | /* StructureGenerator.kt:231 */
|
2665 4458 | #[allow(missing_docs)] // documentation missing in model
|
4459 + | /* StructureGenerator.kt:166 */
|
2666 4460 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
4461 + | /* StructureGenerator.kt:169 */
|
2667 4462 | self.query_enum_list.as_deref()
|
4463 + | /* StructureGenerator.kt:166 */
|
2668 4464 | }
|
4465 + | /* StructureGenerator.kt:231 */
|
2669 4466 | #[allow(missing_docs)] // documentation missing in model
|
4467 + | /* StructureGenerator.kt:166 */
|
2670 4468 | pub fn query_integer_enum(&self) -> ::std::option::Option<i32> {
|
4469 + | /* StructureGenerator.kt:168 */
|
2671 4470 | self.query_integer_enum
|
4471 + | /* StructureGenerator.kt:166 */
|
2672 4472 | }
|
4473 + | /* StructureGenerator.kt:231 */
|
2673 4474 | #[allow(missing_docs)] // documentation missing in model
|
4475 + | /* StructureGenerator.kt:166 */
|
2674 4476 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
4477 + | /* StructureGenerator.kt:169 */
|
2675 4478 | self.query_integer_enum_list.as_deref()
|
4479 + | /* StructureGenerator.kt:166 */
|
2676 4480 | }
|
4481 + | /* StructureGenerator.kt:231 */
|
2677 4482 | #[allow(missing_docs)] // documentation missing in model
|
4483 + | /* StructureGenerator.kt:166 */
|
2678 4484 | pub fn query_params_map_of_string_list(
|
2679 4485 | &self,
|
2680 4486 | ) -> ::std::option::Option<
|
2681 4487 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2682 4488 | > {
|
4489 + | /* StructureGenerator.kt:170 */
|
2683 4490 | self.query_params_map_of_string_list.as_ref()
|
4491 + | /* StructureGenerator.kt:166 */
|
2684 4492 | }
|
4493 + | /* StructureGenerator.kt:135 */
|
2685 4494 | }
|
4495 + | /* ServerCodegenVisitor.kt:345 */
|
2686 4496 | impl AllQueryStringTypesInput {
|
2687 - | /// Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
4497 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
4498 + | /* ServerBuilderGenerator.kt:295 */
|
2688 4499 | pub fn builder() -> crate::input::all_query_string_types_input::Builder {
|
4500 + | /* ServerBuilderGenerator.kt:296 */
|
2689 4501 | crate::input::all_query_string_types_input::Builder::default()
|
4502 + | /* ServerBuilderGenerator.kt:295 */
|
2690 4503 | }
|
4504 + | /* ServerCodegenVisitor.kt:345 */
|
2691 4505 | }
|
4506 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2692 4507 | impl crate::constrained::Constrained for crate::input::AllQueryStringTypesInput {
|
2693 4508 | type Unconstrained = crate::input::all_query_string_types_input::Builder;
|
2694 4509 | }
|
2695 4510 |
|
4511 + | /* StructureGenerator.kt:197 */
|
2696 4512 | #[allow(missing_docs)] // documentation missing in model
|
4513 + | /* RustType.kt:516 */
|
2697 4514 | #[derive(
|
2698 4515 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2699 4516 | )]
|
2700 - | pub struct HttpRequestWithRegexLiteralInput {
|
4517 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithRegexLiteralInput {
|
4518 + | /* StructureGenerator.kt:231 */
|
2701 4519 | #[allow(missing_docs)] // documentation missing in model
|
2702 4520 | pub str: ::std::string::String,
|
4521 + | /* StructureGenerator.kt:201 */
|
2703 4522 | }
|
4523 + | /* StructureGenerator.kt:135 */
|
2704 4524 | impl HttpRequestWithRegexLiteralInput {
|
4525 + | /* StructureGenerator.kt:231 */
|
2705 4526 | #[allow(missing_docs)] // documentation missing in model
|
4527 + | /* StructureGenerator.kt:166 */
|
2706 4528 | pub fn str(&self) -> &str {
|
4529 + | /* StructureGenerator.kt:171 */
|
2707 4530 | use std::ops::Deref;
|
2708 4531 | self.str.deref()
|
4532 + | /* StructureGenerator.kt:166 */
|
2709 4533 | }
|
4534 + | /* StructureGenerator.kt:135 */
|
2710 4535 | }
|
4536 + | /* ServerCodegenVisitor.kt:345 */
|
2711 4537 | impl HttpRequestWithRegexLiteralInput {
|
2712 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
4538 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
4539 + | /* ServerBuilderGenerator.kt:295 */
|
2713 4540 | pub fn builder() -> crate::input::http_request_with_regex_literal_input::Builder {
|
4541 + | /* ServerBuilderGenerator.kt:296 */
|
2714 4542 | crate::input::http_request_with_regex_literal_input::Builder::default()
|
4543 + | /* ServerBuilderGenerator.kt:295 */
|
2715 4544 | }
|
4545 + | /* ServerCodegenVisitor.kt:345 */
|
2716 4546 | }
|
4547 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2717 4548 | impl crate::constrained::Constrained for crate::input::HttpRequestWithRegexLiteralInput {
|
2718 4549 | type Unconstrained = crate::input::http_request_with_regex_literal_input::Builder;
|
2719 4550 | }
|
2720 4551 |
|
4552 + | /* StructureGenerator.kt:197 */
|
2721 4553 | #[allow(missing_docs)] // documentation missing in model
|
4554 + | /* RustType.kt:516 */
|
2722 4555 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2723 - | pub struct HttpRequestWithFloatLabelsInput {
|
4556 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithFloatLabelsInput {
|
4557 + | /* StructureGenerator.kt:231 */
|
2724 4558 | #[allow(missing_docs)] // documentation missing in model
|
2725 4559 | pub float: f32,
|
4560 + | /* StructureGenerator.kt:231 */
|
2726 4561 | #[allow(missing_docs)] // documentation missing in model
|
2727 4562 | pub double: f64,
|
4563 + | /* StructureGenerator.kt:201 */
|
2728 4564 | }
|
4565 + | /* StructureGenerator.kt:135 */
|
2729 4566 | impl HttpRequestWithFloatLabelsInput {
|
4567 + | /* StructureGenerator.kt:231 */
|
2730 4568 | #[allow(missing_docs)] // documentation missing in model
|
4569 + | /* StructureGenerator.kt:166 */
|
2731 4570 | pub fn float(&self) -> f32 {
|
4571 + | /* StructureGenerator.kt:168 */
|
2732 4572 | self.float
|
4573 + | /* StructureGenerator.kt:166 */
|
2733 4574 | }
|
4575 + | /* StructureGenerator.kt:231 */
|
2734 4576 | #[allow(missing_docs)] // documentation missing in model
|
4577 + | /* StructureGenerator.kt:166 */
|
2735 4578 | pub fn double(&self) -> f64 {
|
4579 + | /* StructureGenerator.kt:168 */
|
2736 4580 | self.double
|
4581 + | /* StructureGenerator.kt:166 */
|
2737 4582 | }
|
4583 + | /* StructureGenerator.kt:135 */
|
2738 4584 | }
|
4585 + | /* ServerCodegenVisitor.kt:345 */
|
2739 4586 | impl HttpRequestWithFloatLabelsInput {
|
2740 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
4587 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
4588 + | /* ServerBuilderGenerator.kt:295 */
|
2741 4589 | pub fn builder() -> crate::input::http_request_with_float_labels_input::Builder {
|
4590 + | /* ServerBuilderGenerator.kt:296 */
|
2742 4591 | crate::input::http_request_with_float_labels_input::Builder::default()
|
4592 + | /* ServerBuilderGenerator.kt:295 */
|
2743 4593 | }
|
4594 + | /* ServerCodegenVisitor.kt:345 */
|
2744 4595 | }
|
4596 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2745 4597 | impl crate::constrained::Constrained for crate::input::HttpRequestWithFloatLabelsInput {
|
2746 4598 | type Unconstrained = crate::input::http_request_with_float_labels_input::Builder;
|
2747 4599 | }
|
2748 4600 |
|
4601 + | /* StructureGenerator.kt:197 */
|
2749 4602 | #[allow(missing_docs)] // documentation missing in model
|
4603 + | /* RustType.kt:516 */
|
2750 4604 | #[derive(
|
2751 4605 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2752 4606 | )]
|
2753 - | pub struct HttpRequestWithGreedyLabelInPathInput {
|
4607 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithGreedyLabelInPathInput {
|
4608 + | /* StructureGenerator.kt:231 */
|
2754 4609 | #[allow(missing_docs)] // documentation missing in model
|
2755 4610 | pub foo: ::std::string::String,
|
4611 + | /* StructureGenerator.kt:231 */
|
2756 4612 | #[allow(missing_docs)] // documentation missing in model
|
2757 4613 | pub baz: ::std::string::String,
|
4614 + | /* StructureGenerator.kt:201 */
|
2758 4615 | }
|
4616 + | /* StructureGenerator.kt:135 */
|
2759 4617 | impl HttpRequestWithGreedyLabelInPathInput {
|
4618 + | /* StructureGenerator.kt:231 */
|
2760 4619 | #[allow(missing_docs)] // documentation missing in model
|
4620 + | /* StructureGenerator.kt:166 */
|
2761 4621 | pub fn foo(&self) -> &str {
|
4622 + | /* StructureGenerator.kt:171 */
|
2762 4623 | use std::ops::Deref;
|
2763 4624 | self.foo.deref()
|
4625 + | /* StructureGenerator.kt:166 */
|
2764 4626 | }
|
4627 + | /* StructureGenerator.kt:231 */
|
2765 4628 | #[allow(missing_docs)] // documentation missing in model
|
4629 + | /* StructureGenerator.kt:166 */
|
2766 4630 | pub fn baz(&self) -> &str {
|
4631 + | /* StructureGenerator.kt:171 */
|
2767 4632 | use std::ops::Deref;
|
2768 4633 | self.baz.deref()
|
4634 + | /* StructureGenerator.kt:166 */
|
2769 4635 | }
|
4636 + | /* StructureGenerator.kt:135 */
|
2770 4637 | }
|
4638 + | /* ServerCodegenVisitor.kt:345 */
|
2771 4639 | impl HttpRequestWithGreedyLabelInPathInput {
|
2772 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
4640 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
4641 + | /* ServerBuilderGenerator.kt:295 */
|
2773 4642 | pub fn builder() -> crate::input::http_request_with_greedy_label_in_path_input::Builder {
|
4643 + | /* ServerBuilderGenerator.kt:296 */
|
2774 4644 | crate::input::http_request_with_greedy_label_in_path_input::Builder::default()
|
4645 + | /* ServerBuilderGenerator.kt:295 */
|
2775 4646 | }
|
4647 + | /* ServerCodegenVisitor.kt:345 */
|
2776 4648 | }
|
4649 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2777 4650 | impl crate::constrained::Constrained for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
2778 4651 | type Unconstrained = crate::input::http_request_with_greedy_label_in_path_input::Builder;
|
2779 4652 | }
|
2780 4653 |
|
4654 + | /* StructureGenerator.kt:197 */
|
2781 4655 | #[allow(missing_docs)] // documentation missing in model
|
4656 + | /* RustType.kt:516 */
|
2782 4657 | #[derive(
|
2783 4658 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2784 4659 | )]
|
2785 - | pub struct HttpRequestWithLabelsAndTimestampFormatInput {
|
4660 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsAndTimestampFormatInput {
|
4661 + | /* StructureGenerator.kt:231 */
|
2786 4662 | #[allow(missing_docs)] // documentation missing in model
|
2787 4663 | pub member_epoch_seconds: ::aws_smithy_types::DateTime,
|
4664 + | /* StructureGenerator.kt:231 */
|
2788 4665 | #[allow(missing_docs)] // documentation missing in model
|
2789 4666 | pub member_http_date: ::aws_smithy_types::DateTime,
|
4667 + | /* StructureGenerator.kt:231 */
|
2790 4668 | #[allow(missing_docs)] // documentation missing in model
|
2791 4669 | pub member_date_time: ::aws_smithy_types::DateTime,
|
4670 + | /* StructureGenerator.kt:231 */
|
2792 4671 | #[allow(missing_docs)] // documentation missing in model
|
2793 4672 | pub default_format: ::aws_smithy_types::DateTime,
|
4673 + | /* StructureGenerator.kt:231 */
|
2794 4674 | #[allow(missing_docs)] // documentation missing in model
|
2795 4675 | pub target_epoch_seconds: ::aws_smithy_types::DateTime,
|
4676 + | /* StructureGenerator.kt:231 */
|
2796 4677 | #[allow(missing_docs)] // documentation missing in model
|
2797 4678 | pub target_http_date: ::aws_smithy_types::DateTime,
|
4679 + | /* StructureGenerator.kt:231 */
|
2798 4680 | #[allow(missing_docs)] // documentation missing in model
|
2799 4681 | pub target_date_time: ::aws_smithy_types::DateTime,
|
4682 + | /* StructureGenerator.kt:201 */
|
2800 4683 | }
|
4684 + | /* StructureGenerator.kt:135 */
|
2801 4685 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
4686 + | /* StructureGenerator.kt:231 */
|
2802 4687 | #[allow(missing_docs)] // documentation missing in model
|
4688 + | /* StructureGenerator.kt:166 */
|
2803 4689 | pub fn member_epoch_seconds(&self) -> &::aws_smithy_types::DateTime {
|
4690 + | /* StructureGenerator.kt:172 */
|
2804 4691 | &self.member_epoch_seconds
|
4692 + | /* StructureGenerator.kt:166 */
|
2805 4693 | }
|
4694 + | /* StructureGenerator.kt:231 */
|
2806 4695 | #[allow(missing_docs)] // documentation missing in model
|
4696 + | /* StructureGenerator.kt:166 */
|
2807 4697 | pub fn member_http_date(&self) -> &::aws_smithy_types::DateTime {
|
4698 + | /* StructureGenerator.kt:172 */
|
2808 4699 | &self.member_http_date
|
4700 + | /* StructureGenerator.kt:166 */
|
2809 4701 | }
|
4702 + | /* StructureGenerator.kt:231 */
|
2810 4703 | #[allow(missing_docs)] // documentation missing in model
|
4704 + | /* StructureGenerator.kt:166 */
|
2811 4705 | pub fn member_date_time(&self) -> &::aws_smithy_types::DateTime {
|
4706 + | /* StructureGenerator.kt:172 */
|
2812 4707 | &self.member_date_time
|
4708 + | /* StructureGenerator.kt:166 */
|
2813 4709 | }
|
4710 + | /* StructureGenerator.kt:231 */
|
2814 4711 | #[allow(missing_docs)] // documentation missing in model
|
4712 + | /* StructureGenerator.kt:166 */
|
2815 4713 | pub fn default_format(&self) -> &::aws_smithy_types::DateTime {
|
4714 + | /* StructureGenerator.kt:172 */
|
2816 4715 | &self.default_format
|
4716 + | /* StructureGenerator.kt:166 */
|
2817 4717 | }
|
4718 + | /* StructureGenerator.kt:231 */
|
2818 4719 | #[allow(missing_docs)] // documentation missing in model
|
4720 + | /* StructureGenerator.kt:166 */
|
2819 4721 | pub fn target_epoch_seconds(&self) -> &::aws_smithy_types::DateTime {
|
4722 + | /* StructureGenerator.kt:172 */
|
2820 4723 | &self.target_epoch_seconds
|
4724 + | /* StructureGenerator.kt:166 */
|
2821 4725 | }
|
4726 + | /* StructureGenerator.kt:231 */
|
2822 4727 | #[allow(missing_docs)] // documentation missing in model
|
4728 + | /* StructureGenerator.kt:166 */
|
2823 4729 | pub fn target_http_date(&self) -> &::aws_smithy_types::DateTime {
|
4730 + | /* StructureGenerator.kt:172 */
|
2824 4731 | &self.target_http_date
|
4732 + | /* StructureGenerator.kt:166 */
|
2825 4733 | }
|
4734 + | /* StructureGenerator.kt:231 */
|
2826 4735 | #[allow(missing_docs)] // documentation missing in model
|
4736 + | /* StructureGenerator.kt:166 */
|
2827 4737 | pub fn target_date_time(&self) -> &::aws_smithy_types::DateTime {
|
4738 + | /* StructureGenerator.kt:172 */
|
2828 4739 | &self.target_date_time
|
4740 + | /* StructureGenerator.kt:166 */
|
2829 4741 | }
|
4742 + | /* StructureGenerator.kt:135 */
|
2830 4743 | }
|
4744 + | /* ServerCodegenVisitor.kt:345 */
|
2831 4745 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
2832 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
4746 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
4747 + | /* ServerBuilderGenerator.kt:295 */
|
2833 4748 | pub fn builder() -> crate::input::http_request_with_labels_and_timestamp_format_input::Builder {
|
4749 + | /* ServerBuilderGenerator.kt:296 */
|
2834 4750 | crate::input::http_request_with_labels_and_timestamp_format_input::Builder::default()
|
4751 + | /* ServerBuilderGenerator.kt:295 */
|
2835 4752 | }
|
4753 + | /* ServerCodegenVisitor.kt:345 */
|
2836 4754 | }
|
4755 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2837 4756 | impl crate::constrained::Constrained
|
2838 4757 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
2839 4758 | {
|
2840 4759 | type Unconstrained = crate::input::http_request_with_labels_and_timestamp_format_input::Builder;
|
2841 4760 | }
|
2842 4761 |
|
4762 + | /* StructureGenerator.kt:197 */
|
2843 4763 | #[allow(missing_docs)] // documentation missing in model
|
4764 + | /* RustType.kt:516 */
|
2844 4765 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2845 - | pub struct HttpRequestWithLabelsInput {
|
4766 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsInput {
|
4767 + | /* StructureGenerator.kt:231 */
|
2846 4768 | #[allow(missing_docs)] // documentation missing in model
|
2847 4769 | pub string: ::std::string::String,
|
4770 + | /* StructureGenerator.kt:231 */
|
2848 4771 | #[allow(missing_docs)] // documentation missing in model
|
2849 4772 | pub short: i16,
|
4773 + | /* StructureGenerator.kt:231 */
|
2850 4774 | #[allow(missing_docs)] // documentation missing in model
|
2851 4775 | pub integer: i32,
|
4776 + | /* StructureGenerator.kt:231 */
|
2852 4777 | #[allow(missing_docs)] // documentation missing in model
|
2853 4778 | pub long: i64,
|
4779 + | /* StructureGenerator.kt:231 */
|
2854 4780 | #[allow(missing_docs)] // documentation missing in model
|
2855 4781 | pub float: f32,
|
4782 + | /* StructureGenerator.kt:231 */
|
2856 4783 | #[allow(missing_docs)] // documentation missing in model
|
2857 4784 | pub double: f64,
|
2858 - | /// Serialized in the path as true or false.
|
4785 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
2859 4786 | pub boolean: bool,
|
2860 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4787 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
2861 4788 | pub timestamp: ::aws_smithy_types::DateTime,
|
4789 + | /* StructureGenerator.kt:201 */
|
2862 4790 | }
|
4791 + | /* StructureGenerator.kt:135 */
|
2863 4792 | impl HttpRequestWithLabelsInput {
|
4793 + | /* StructureGenerator.kt:231 */
|
2864 4794 | #[allow(missing_docs)] // documentation missing in model
|
4795 + | /* StructureGenerator.kt:166 */
|
2865 4796 | pub fn string(&self) -> &str {
|
4797 + | /* StructureGenerator.kt:171 */
|
2866 4798 | use std::ops::Deref;
|
2867 4799 | self.string.deref()
|
4800 + | /* StructureGenerator.kt:166 */
|
2868 4801 | }
|
4802 + | /* StructureGenerator.kt:231 */
|
2869 4803 | #[allow(missing_docs)] // documentation missing in model
|
4804 + | /* StructureGenerator.kt:166 */
|
2870 4805 | pub fn short(&self) -> i16 {
|
4806 + | /* StructureGenerator.kt:168 */
|
2871 4807 | self.short
|
4808 + | /* StructureGenerator.kt:166 */
|
2872 4809 | }
|
4810 + | /* StructureGenerator.kt:231 */
|
2873 4811 | #[allow(missing_docs)] // documentation missing in model
|
4812 + | /* StructureGenerator.kt:166 */
|
2874 4813 | pub fn integer(&self) -> i32 {
|
4814 + | /* StructureGenerator.kt:168 */
|
2875 4815 | self.integer
|
4816 + | /* StructureGenerator.kt:166 */
|
2876 4817 | }
|
4818 + | /* StructureGenerator.kt:231 */
|
2877 4819 | #[allow(missing_docs)] // documentation missing in model
|
4820 + | /* StructureGenerator.kt:166 */
|
2878 4821 | pub fn long(&self) -> i64 {
|
4822 + | /* StructureGenerator.kt:168 */
|
2879 4823 | self.long
|
4824 + | /* StructureGenerator.kt:166 */
|
2880 4825 | }
|
4826 + | /* StructureGenerator.kt:231 */
|
2881 4827 | #[allow(missing_docs)] // documentation missing in model
|
4828 + | /* StructureGenerator.kt:166 */
|
2882 4829 | pub fn float(&self) -> f32 {
|
4830 + | /* StructureGenerator.kt:168 */
|
2883 4831 | self.float
|
4832 + | /* StructureGenerator.kt:166 */
|
2884 4833 | }
|
4834 + | /* StructureGenerator.kt:231 */
|
2885 4835 | #[allow(missing_docs)] // documentation missing in model
|
4836 + | /* StructureGenerator.kt:166 */
|
2886 4837 | pub fn double(&self) -> f64 {
|
4838 + | /* StructureGenerator.kt:168 */
|
2887 4839 | self.double
|
4840 + | /* StructureGenerator.kt:166 */
|
2888 4841 | }
|
2889 - | /// Serialized in the path as true or false.
|
4842 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
4843 + | /* StructureGenerator.kt:166 */
|
2890 4844 | pub fn boolean(&self) -> bool {
|
4845 + | /* StructureGenerator.kt:168 */
|
2891 4846 | self.boolean
|
4847 + | /* StructureGenerator.kt:166 */
|
2892 4848 | }
|
2893 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4849 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4850 + | /* StructureGenerator.kt:166 */
|
2894 4851 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
4852 + | /* StructureGenerator.kt:172 */
|
2895 4853 | &self.timestamp
|
4854 + | /* StructureGenerator.kt:166 */
|
2896 4855 | }
|
4856 + | /* StructureGenerator.kt:135 */
|
2897 4857 | }
|
4858 + | /* ServerCodegenVisitor.kt:345 */
|
2898 4859 | impl HttpRequestWithLabelsInput {
|
2899 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
4860 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
4861 + | /* ServerBuilderGenerator.kt:295 */
|
2900 4862 | pub fn builder() -> crate::input::http_request_with_labels_input::Builder {
|
4863 + | /* ServerBuilderGenerator.kt:296 */
|
2901 4864 | crate::input::http_request_with_labels_input::Builder::default()
|
4865 + | /* ServerBuilderGenerator.kt:295 */
|
2902 4866 | }
|
4867 + | /* ServerCodegenVisitor.kt:345 */
|
2903 4868 | }
|
4869 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2904 4870 | impl crate::constrained::Constrained for crate::input::HttpRequestWithLabelsInput {
|
2905 4871 | type Unconstrained = crate::input::http_request_with_labels_input::Builder;
|
2906 4872 | }
|
2907 4873 |
|
4874 + | /* StructureGenerator.kt:197 */
|
2908 4875 | #[allow(missing_docs)] // documentation missing in model
|
4876 + | /* RustType.kt:516 */
|
2909 4877 | #[derive(
|
2910 4878 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2911 4879 | )]
|
2912 - | pub struct MediaTypeHeaderInput {
|
4880 + | pub /* StructureGenerator.kt:201 */ struct MediaTypeHeaderInput {
|
4881 + | /* StructureGenerator.kt:231 */
|
2913 4882 | #[allow(missing_docs)] // documentation missing in model
|
2914 4883 | pub json: ::std::option::Option<::std::string::String>,
|
4884 + | /* StructureGenerator.kt:201 */
|
2915 4885 | }
|
4886 + | /* StructureGenerator.kt:135 */
|
2916 4887 | impl MediaTypeHeaderInput {
|
4888 + | /* StructureGenerator.kt:231 */
|
2917 4889 | #[allow(missing_docs)] // documentation missing in model
|
4890 + | /* StructureGenerator.kt:166 */
|
2918 4891 | pub fn json(&self) -> ::std::option::Option<&str> {
|
4892 + | /* StructureGenerator.kt:169 */
|
2919 4893 | self.json.as_deref()
|
4894 + | /* StructureGenerator.kt:166 */
|
2920 4895 | }
|
4896 + | /* StructureGenerator.kt:135 */
|
2921 4897 | }
|
4898 + | /* ServerCodegenVisitor.kt:345 */
|
2922 4899 | impl MediaTypeHeaderInput {
|
2923 - | /// Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
4900 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
4901 + | /* ServerBuilderGenerator.kt:295 */
|
2924 4902 | pub fn builder() -> crate::input::media_type_header_input::Builder {
|
4903 + | /* ServerBuilderGenerator.kt:296 */
|
2925 4904 | crate::input::media_type_header_input::Builder::default()
|
4905 + | /* ServerBuilderGenerator.kt:295 */
|
2926 4906 | }
|
4907 + | /* ServerCodegenVisitor.kt:345 */
|
2927 4908 | }
|
4909 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2928 4910 | impl crate::constrained::Constrained for crate::input::MediaTypeHeaderInput {
|
2929 4911 | type Unconstrained = crate::input::media_type_header_input::Builder;
|
2930 4912 | }
|
2931 4913 |
|
4914 + | /* StructureGenerator.kt:197 */
|
2932 4915 | #[allow(missing_docs)] // documentation missing in model
|
4916 + | /* RustType.kt:516 */
|
2933 4917 | #[derive(
|
2934 4918 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2935 4919 | )]
|
2936 - | pub struct TimestampFormatHeadersInput {
|
4920 + | pub /* StructureGenerator.kt:201 */ struct TimestampFormatHeadersInput {
|
4921 + | /* StructureGenerator.kt:231 */
|
2937 4922 | #[allow(missing_docs)] // documentation missing in model
|
2938 4923 | pub member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4924 + | /* StructureGenerator.kt:231 */
|
2939 4925 | #[allow(missing_docs)] // documentation missing in model
|
2940 4926 | pub member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4927 + | /* StructureGenerator.kt:231 */
|
2941 4928 | #[allow(missing_docs)] // documentation missing in model
|
2942 4929 | pub member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4930 + | /* StructureGenerator.kt:231 */
|
2943 4931 | #[allow(missing_docs)] // documentation missing in model
|
2944 4932 | pub default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4933 + | /* StructureGenerator.kt:231 */
|
2945 4934 | #[allow(missing_docs)] // documentation missing in model
|
2946 4935 | pub target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4936 + | /* StructureGenerator.kt:231 */
|
2947 4937 | #[allow(missing_docs)] // documentation missing in model
|
2948 4938 | pub target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4939 + | /* StructureGenerator.kt:231 */
|
2949 4940 | #[allow(missing_docs)] // documentation missing in model
|
2950 4941 | pub target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4942 + | /* StructureGenerator.kt:201 */
|
2951 4943 | }
|
4944 + | /* StructureGenerator.kt:135 */
|
2952 4945 | impl TimestampFormatHeadersInput {
|
4946 + | /* StructureGenerator.kt:231 */
|
2953 4947 | #[allow(missing_docs)] // documentation missing in model
|
4948 + | /* StructureGenerator.kt:166 */
|
2954 4949 | pub fn member_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4950 + | /* StructureGenerator.kt:170 */
|
2955 4951 | self.member_epoch_seconds.as_ref()
|
4952 + | /* StructureGenerator.kt:166 */
|
2956 4953 | }
|
4954 + | /* StructureGenerator.kt:231 */
|
2957 4955 | #[allow(missing_docs)] // documentation missing in model
|
4956 + | /* StructureGenerator.kt:166 */
|
2958 4957 | pub fn member_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4958 + | /* StructureGenerator.kt:170 */
|
2959 4959 | self.member_http_date.as_ref()
|
4960 + | /* StructureGenerator.kt:166 */
|
2960 4961 | }
|
4962 + | /* StructureGenerator.kt:231 */
|
2961 4963 | #[allow(missing_docs)] // documentation missing in model
|
4964 + | /* StructureGenerator.kt:166 */
|
2962 4965 | pub fn member_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4966 + | /* StructureGenerator.kt:170 */
|
2963 4967 | self.member_date_time.as_ref()
|
4968 + | /* StructureGenerator.kt:166 */
|
2964 4969 | }
|
4970 + | /* StructureGenerator.kt:231 */
|
2965 4971 | #[allow(missing_docs)] // documentation missing in model
|
4972 + | /* StructureGenerator.kt:166 */
|
2966 4973 | pub fn default_format(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4974 + | /* StructureGenerator.kt:170 */
|
2967 4975 | self.default_format.as_ref()
|
4976 + | /* StructureGenerator.kt:166 */
|
2968 4977 | }
|
4978 + | /* StructureGenerator.kt:231 */
|
2969 4979 | #[allow(missing_docs)] // documentation missing in model
|
4980 + | /* StructureGenerator.kt:166 */
|
2970 4981 | pub fn target_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4982 + | /* StructureGenerator.kt:170 */
|
2971 4983 | self.target_epoch_seconds.as_ref()
|
4984 + | /* StructureGenerator.kt:166 */
|
2972 4985 | }
|
4986 + | /* StructureGenerator.kt:231 */
|
2973 4987 | #[allow(missing_docs)] // documentation missing in model
|
4988 + | /* StructureGenerator.kt:166 */
|
2974 4989 | pub fn target_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4990 + | /* StructureGenerator.kt:170 */
|
2975 4991 | self.target_http_date.as_ref()
|
4992 + | /* StructureGenerator.kt:166 */
|
2976 4993 | }
|
4994 + | /* StructureGenerator.kt:231 */
|
2977 4995 | #[allow(missing_docs)] // documentation missing in model
|
4996 + | /* StructureGenerator.kt:166 */
|
2978 4997 | pub fn target_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4998 + | /* StructureGenerator.kt:170 */
|
2979 4999 | self.target_date_time.as_ref()
|
5000 + | /* StructureGenerator.kt:166 */
|
2980 5001 | }
|
5002 + | /* StructureGenerator.kt:135 */
|
2981 5003 | }
|
5004 + | /* ServerCodegenVisitor.kt:345 */
|
2982 5005 | impl TimestampFormatHeadersInput {
|
2983 - | /// Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
5006 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
5007 + | /* ServerBuilderGenerator.kt:295 */
|
2984 5008 | pub fn builder() -> crate::input::timestamp_format_headers_input::Builder {
|
5009 + | /* ServerBuilderGenerator.kt:296 */
|
2985 5010 | crate::input::timestamp_format_headers_input::Builder::default()
|
5011 + | /* ServerBuilderGenerator.kt:295 */
|
2986 5012 | }
|
5013 + | /* ServerCodegenVisitor.kt:345 */
|
2987 5014 | }
|
5015 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2988 5016 | impl crate::constrained::Constrained for crate::input::TimestampFormatHeadersInput {
|
2989 5017 | type Unconstrained = crate::input::timestamp_format_headers_input::Builder;
|
2990 5018 | }
|
2991 5019 |
|
5020 + | /* StructureGenerator.kt:197 */
|
2992 5021 | #[allow(missing_docs)] // documentation missing in model
|
5022 + | /* RustType.kt:516 */
|
2993 5023 | #[derive(
|
2994 5024 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2995 5025 | )]
|
2996 - | pub struct NullAndEmptyHeadersServerInput {
|
5026 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersServerInput {
|
5027 + | /* StructureGenerator.kt:231 */
|
2997 5028 | #[allow(missing_docs)] // documentation missing in model
|
2998 5029 | pub a: ::std::option::Option<::std::string::String>,
|
5030 + | /* StructureGenerator.kt:231 */
|
2999 5031 | #[allow(missing_docs)] // documentation missing in model
|
3000 5032 | pub b: ::std::option::Option<::std::string::String>,
|
5033 + | /* StructureGenerator.kt:231 */
|
3001 5034 | #[allow(missing_docs)] // documentation missing in model
|
3002 5035 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5036 + | /* StructureGenerator.kt:201 */
|
3003 5037 | }
|
5038 + | /* StructureGenerator.kt:135 */
|
3004 5039 | impl NullAndEmptyHeadersServerInput {
|
5040 + | /* StructureGenerator.kt:231 */
|
3005 5041 | #[allow(missing_docs)] // documentation missing in model
|
5042 + | /* StructureGenerator.kt:166 */
|
3006 5043 | pub fn a(&self) -> ::std::option::Option<&str> {
|
5044 + | /* StructureGenerator.kt:169 */
|
3007 5045 | self.a.as_deref()
|
5046 + | /* StructureGenerator.kt:166 */
|
3008 5047 | }
|
5048 + | /* StructureGenerator.kt:231 */
|
3009 5049 | #[allow(missing_docs)] // documentation missing in model
|
5050 + | /* StructureGenerator.kt:166 */
|
3010 5051 | pub fn b(&self) -> ::std::option::Option<&str> {
|
5052 + | /* StructureGenerator.kt:169 */
|
3011 5053 | self.b.as_deref()
|
5054 + | /* StructureGenerator.kt:166 */
|
3012 5055 | }
|
5056 + | /* StructureGenerator.kt:231 */
|
3013 5057 | #[allow(missing_docs)] // documentation missing in model
|
5058 + | /* StructureGenerator.kt:166 */
|
3014 5059 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5060 + | /* StructureGenerator.kt:169 */
|
3015 5061 | self.c.as_deref()
|
5062 + | /* StructureGenerator.kt:166 */
|
3016 5063 | }
|
5064 + | /* StructureGenerator.kt:135 */
|
3017 5065 | }
|
5066 + | /* ServerCodegenVisitor.kt:345 */
|
3018 5067 | impl NullAndEmptyHeadersServerInput {
|
3019 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
5068 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
5069 + | /* ServerBuilderGenerator.kt:295 */
|
3020 5070 | pub fn builder() -> crate::input::null_and_empty_headers_server_input::Builder {
|
5071 + | /* ServerBuilderGenerator.kt:296 */
|
3021 5072 | crate::input::null_and_empty_headers_server_input::Builder::default()
|
5073 + | /* ServerBuilderGenerator.kt:295 */
|
3022 5074 | }
|
5075 + | /* ServerCodegenVisitor.kt:345 */
|
3023 5076 | }
|
5077 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3024 5078 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersServerInput {
|
3025 5079 | type Unconstrained = crate::input::null_and_empty_headers_server_input::Builder;
|
3026 5080 | }
|
3027 5081 |
|
5082 + | /* StructureGenerator.kt:197 */
|
3028 5083 | #[allow(missing_docs)] // documentation missing in model
|
5084 + | /* RustType.kt:516 */
|
3029 5085 | #[derive(
|
3030 5086 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3031 5087 | )]
|
3032 - | pub struct NullAndEmptyHeadersClientInput {
|
5088 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersClientInput {
|
5089 + | /* StructureGenerator.kt:231 */
|
3033 5090 | #[allow(missing_docs)] // documentation missing in model
|
3034 5091 | pub a: ::std::option::Option<::std::string::String>,
|
5092 + | /* StructureGenerator.kt:231 */
|
3035 5093 | #[allow(missing_docs)] // documentation missing in model
|
3036 5094 | pub b: ::std::option::Option<::std::string::String>,
|
5095 + | /* StructureGenerator.kt:231 */
|
3037 5096 | #[allow(missing_docs)] // documentation missing in model
|
3038 5097 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5098 + | /* StructureGenerator.kt:201 */
|
3039 5099 | }
|
5100 + | /* StructureGenerator.kt:135 */
|
3040 5101 | impl NullAndEmptyHeadersClientInput {
|
5102 + | /* StructureGenerator.kt:231 */
|
3041 5103 | #[allow(missing_docs)] // documentation missing in model
|
5104 + | /* StructureGenerator.kt:166 */
|
3042 5105 | pub fn a(&self) -> ::std::option::Option<&str> {
|
5106 + | /* StructureGenerator.kt:169 */
|
3043 5107 | self.a.as_deref()
|
5108 + | /* StructureGenerator.kt:166 */
|
3044 5109 | }
|
5110 + | /* StructureGenerator.kt:231 */
|
3045 5111 | #[allow(missing_docs)] // documentation missing in model
|
5112 + | /* StructureGenerator.kt:166 */
|
3046 5113 | pub fn b(&self) -> ::std::option::Option<&str> {
|
5114 + | /* StructureGenerator.kt:169 */
|
3047 5115 | self.b.as_deref()
|
5116 + | /* StructureGenerator.kt:166 */
|
3048 5117 | }
|
5118 + | /* StructureGenerator.kt:231 */
|
3049 5119 | #[allow(missing_docs)] // documentation missing in model
|
5120 + | /* StructureGenerator.kt:166 */
|
3050 5121 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5122 + | /* StructureGenerator.kt:169 */
|
3051 5123 | self.c.as_deref()
|
5124 + | /* StructureGenerator.kt:166 */
|
3052 5125 | }
|
5126 + | /* StructureGenerator.kt:135 */
|
3053 5127 | }
|
5128 + | /* ServerCodegenVisitor.kt:345 */
|
3054 5129 | impl NullAndEmptyHeadersClientInput {
|
3055 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
5130 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
5131 + | /* ServerBuilderGenerator.kt:295 */
|
3056 5132 | pub fn builder() -> crate::input::null_and_empty_headers_client_input::Builder {
|
5133 + | /* ServerBuilderGenerator.kt:296 */
|
3057 5134 | crate::input::null_and_empty_headers_client_input::Builder::default()
|
5135 + | /* ServerBuilderGenerator.kt:295 */
|
3058 5136 | }
|
5137 + | /* ServerCodegenVisitor.kt:345 */
|
3059 5138 | }
|
5139 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3060 5140 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersClientInput {
|
3061 5141 | type Unconstrained = crate::input::null_and_empty_headers_client_input::Builder;
|
3062 5142 | }
|
3063 5143 |
|
5144 + | /* StructureGenerator.kt:197 */
|
3064 5145 | #[allow(missing_docs)] // documentation missing in model
|
5146 + | /* RustType.kt:516 */
|
3065 5147 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3066 - | pub struct InputAndOutputWithHeadersInput {
|
5148 + | pub /* StructureGenerator.kt:201 */ struct InputAndOutputWithHeadersInput {
|
5149 + | /* StructureGenerator.kt:231 */
|
3067 5150 | #[allow(missing_docs)] // documentation missing in model
|
3068 5151 | pub header_string: ::std::option::Option<::std::string::String>,
|
5152 + | /* StructureGenerator.kt:231 */
|
3069 5153 | #[allow(missing_docs)] // documentation missing in model
|
3070 5154 | pub header_byte: ::std::option::Option<i8>,
|
5155 + | /* StructureGenerator.kt:231 */
|
3071 5156 | #[allow(missing_docs)] // documentation missing in model
|
3072 5157 | pub header_short: ::std::option::Option<i16>,
|
5158 + | /* StructureGenerator.kt:231 */
|
3073 5159 | #[allow(missing_docs)] // documentation missing in model
|
3074 5160 | pub header_integer: ::std::option::Option<i32>,
|
5161 + | /* StructureGenerator.kt:231 */
|
3075 5162 | #[allow(missing_docs)] // documentation missing in model
|
3076 5163 | pub header_long: ::std::option::Option<i64>,
|
5164 + | /* StructureGenerator.kt:231 */
|
3077 5165 | #[allow(missing_docs)] // documentation missing in model
|
3078 5166 | pub header_float: ::std::option::Option<f32>,
|
5167 + | /* StructureGenerator.kt:231 */
|
3079 5168 | #[allow(missing_docs)] // documentation missing in model
|
3080 5169 | pub header_double: ::std::option::Option<f64>,
|
5170 + | /* StructureGenerator.kt:231 */
|
3081 5171 | #[allow(missing_docs)] // documentation missing in model
|
3082 5172 | pub header_true_bool: ::std::option::Option<bool>,
|
5173 + | /* StructureGenerator.kt:231 */
|
3083 5174 | #[allow(missing_docs)] // documentation missing in model
|
3084 5175 | pub header_false_bool: ::std::option::Option<bool>,
|
5176 + | /* StructureGenerator.kt:231 */
|
3085 5177 | #[allow(missing_docs)] // documentation missing in model
|
3086 5178 | pub header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5179 + | /* StructureGenerator.kt:231 */
|
3087 5180 | #[allow(missing_docs)] // documentation missing in model
|
3088 5181 | pub header_string_set: ::std::option::Option<crate::model::StringSet>,
|
5182 + | /* StructureGenerator.kt:231 */
|
3089 5183 | #[allow(missing_docs)] // documentation missing in model
|
3090 5184 | pub header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5185 + | /* StructureGenerator.kt:231 */
|
3091 5186 | #[allow(missing_docs)] // documentation missing in model
|
3092 5187 | pub header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
5188 + | /* StructureGenerator.kt:231 */
|
3093 5189 | #[allow(missing_docs)] // documentation missing in model
|
3094 5190 | pub header_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
5191 + | /* StructureGenerator.kt:231 */
|
3095 5192 | #[allow(missing_docs)] // documentation missing in model
|
3096 5193 | pub header_enum: ::std::option::Option<crate::model::FooEnum>,
|
5194 + | /* StructureGenerator.kt:231 */
|
3097 5195 | #[allow(missing_docs)] // documentation missing in model
|
3098 5196 | pub header_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5197 + | /* StructureGenerator.kt:231 */
|
3099 5198 | #[allow(missing_docs)] // documentation missing in model
|
3100 5199 | pub header_integer_enum: ::std::option::Option<i32>,
|
5200 + | /* StructureGenerator.kt:231 */
|
3101 5201 | #[allow(missing_docs)] // documentation missing in model
|
3102 5202 | pub header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5203 + | /* StructureGenerator.kt:201 */
|
3103 5204 | }
|
5205 + | /* StructureGenerator.kt:135 */
|
3104 5206 | impl InputAndOutputWithHeadersInput {
|
5207 + | /* StructureGenerator.kt:231 */
|
3105 5208 | #[allow(missing_docs)] // documentation missing in model
|
5209 + | /* StructureGenerator.kt:166 */
|
3106 5210 | pub fn header_string(&self) -> ::std::option::Option<&str> {
|
5211 + | /* StructureGenerator.kt:169 */
|
3107 5212 | self.header_string.as_deref()
|
5213 + | /* StructureGenerator.kt:166 */
|
3108 5214 | }
|
5215 + | /* StructureGenerator.kt:231 */
|
3109 5216 | #[allow(missing_docs)] // documentation missing in model
|
5217 + | /* StructureGenerator.kt:166 */
|
3110 5218 | pub fn header_byte(&self) -> ::std::option::Option<i8> {
|
5219 + | /* StructureGenerator.kt:168 */
|
3111 5220 | self.header_byte
|
5221 + | /* StructureGenerator.kt:166 */
|
3112 5222 | }
|
5223 + | /* StructureGenerator.kt:231 */
|
3113 5224 | #[allow(missing_docs)] // documentation missing in model
|
5225 + | /* StructureGenerator.kt:166 */
|
3114 5226 | pub fn header_short(&self) -> ::std::option::Option<i16> {
|
5227 + | /* StructureGenerator.kt:168 */
|
3115 5228 | self.header_short
|
5229 + | /* StructureGenerator.kt:166 */
|
3116 5230 | }
|
5231 + | /* StructureGenerator.kt:231 */
|
3117 5232 | #[allow(missing_docs)] // documentation missing in model
|
5233 + | /* StructureGenerator.kt:166 */
|
3118 5234 | pub fn header_integer(&self) -> ::std::option::Option<i32> {
|
5235 + | /* StructureGenerator.kt:168 */
|
3119 5236 | self.header_integer
|
5237 + | /* StructureGenerator.kt:166 */
|
3120 5238 | }
|
5239 + | /* StructureGenerator.kt:231 */
|
3121 5240 | #[allow(missing_docs)] // documentation missing in model
|
5241 + | /* StructureGenerator.kt:166 */
|
3122 5242 | pub fn header_long(&self) -> ::std::option::Option<i64> {
|
5243 + | /* StructureGenerator.kt:168 */
|
3123 5244 | self.header_long
|
5245 + | /* StructureGenerator.kt:166 */
|
3124 5246 | }
|
5247 + | /* StructureGenerator.kt:231 */
|
3125 5248 | #[allow(missing_docs)] // documentation missing in model
|
5249 + | /* StructureGenerator.kt:166 */
|
3126 5250 | pub fn header_float(&self) -> ::std::option::Option<f32> {
|
5251 + | /* StructureGenerator.kt:168 */
|
3127 5252 | self.header_float
|
5253 + | /* StructureGenerator.kt:166 */
|
3128 5254 | }
|
5255 + | /* StructureGenerator.kt:231 */
|
3129 5256 | #[allow(missing_docs)] // documentation missing in model
|
5257 + | /* StructureGenerator.kt:166 */
|
3130 5258 | pub fn header_double(&self) -> ::std::option::Option<f64> {
|
5259 + | /* StructureGenerator.kt:168 */
|
3131 5260 | self.header_double
|
5261 + | /* StructureGenerator.kt:166 */
|
3132 5262 | }
|
5263 + | /* StructureGenerator.kt:231 */
|
3133 5264 | #[allow(missing_docs)] // documentation missing in model
|
5265 + | /* StructureGenerator.kt:166 */
|
3134 5266 | pub fn header_true_bool(&self) -> ::std::option::Option<bool> {
|
5267 + | /* StructureGenerator.kt:168 */
|
3135 5268 | self.header_true_bool
|
5269 + | /* StructureGenerator.kt:166 */
|
3136 5270 | }
|
5271 + | /* StructureGenerator.kt:231 */
|
3137 5272 | #[allow(missing_docs)] // documentation missing in model
|
5273 + | /* StructureGenerator.kt:166 */
|
3138 5274 | pub fn header_false_bool(&self) -> ::std::option::Option<bool> {
|
5275 + | /* StructureGenerator.kt:168 */
|
3139 5276 | self.header_false_bool
|
5277 + | /* StructureGenerator.kt:166 */
|
3140 5278 | }
|
5279 + | /* StructureGenerator.kt:231 */
|
3141 5280 | #[allow(missing_docs)] // documentation missing in model
|
5281 + | /* StructureGenerator.kt:166 */
|
3142 5282 | pub fn header_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5283 + | /* StructureGenerator.kt:169 */
|
3143 5284 | self.header_string_list.as_deref()
|
5285 + | /* StructureGenerator.kt:166 */
|
3144 5286 | }
|
5287 + | /* StructureGenerator.kt:231 */
|
3145 5288 | #[allow(missing_docs)] // documentation missing in model
|
5289 + | /* StructureGenerator.kt:166 */
|
3146 5290 | pub fn header_string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
5291 + | /* StructureGenerator.kt:170 */
|
3147 5292 | self.header_string_set.as_ref()
|
5293 + | /* StructureGenerator.kt:166 */
|
3148 5294 | }
|
5295 + | /* StructureGenerator.kt:231 */
|
3149 5296 | #[allow(missing_docs)] // documentation missing in model
|
5297 + | /* StructureGenerator.kt:166 */
|
3150 5298 | pub fn header_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
5299 + | /* StructureGenerator.kt:169 */
|
3151 5300 | self.header_integer_list.as_deref()
|
5301 + | /* StructureGenerator.kt:166 */
|
3152 5302 | }
|
5303 + | /* StructureGenerator.kt:231 */
|
3153 5304 | #[allow(missing_docs)] // documentation missing in model
|
5305 + | /* StructureGenerator.kt:166 */
|
3154 5306 | pub fn header_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
5307 + | /* StructureGenerator.kt:169 */
|
3155 5308 | self.header_boolean_list.as_deref()
|
5309 + | /* StructureGenerator.kt:166 */
|
3156 5310 | }
|
5311 + | /* StructureGenerator.kt:231 */
|
3157 5312 | #[allow(missing_docs)] // documentation missing in model
|
5313 + | /* StructureGenerator.kt:166 */
|
3158 5314 | pub fn header_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
5315 + | /* StructureGenerator.kt:169 */
|
3159 5316 | self.header_timestamp_list.as_deref()
|
5317 + | /* StructureGenerator.kt:166 */
|
3160 5318 | }
|
5319 + | /* StructureGenerator.kt:231 */
|
3161 5320 | #[allow(missing_docs)] // documentation missing in model
|
5321 + | /* StructureGenerator.kt:166 */
|
3162 5322 | pub fn header_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
5323 + | /* StructureGenerator.kt:170 */
|
3163 5324 | self.header_enum.as_ref()
|
5325 + | /* StructureGenerator.kt:166 */
|
3164 5326 | }
|
5327 + | /* StructureGenerator.kt:231 */
|
3165 5328 | #[allow(missing_docs)] // documentation missing in model
|
5329 + | /* StructureGenerator.kt:166 */
|
3166 5330 | pub fn header_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
5331 + | /* StructureGenerator.kt:169 */
|
3167 5332 | self.header_enum_list.as_deref()
|
5333 + | /* StructureGenerator.kt:166 */
|
3168 5334 | }
|
5335 + | /* StructureGenerator.kt:231 */
|
3169 5336 | #[allow(missing_docs)] // documentation missing in model
|
5337 + | /* StructureGenerator.kt:166 */
|
3170 5338 | pub fn header_integer_enum(&self) -> ::std::option::Option<i32> {
|
5339 + | /* StructureGenerator.kt:168 */
|
3171 5340 | self.header_integer_enum
|
5341 + | /* StructureGenerator.kt:166 */
|
3172 5342 | }
|
5343 + | /* StructureGenerator.kt:231 */
|
3173 5344 | #[allow(missing_docs)] // documentation missing in model
|
5345 + | /* StructureGenerator.kt:166 */
|
3174 5346 | pub fn header_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
5347 + | /* StructureGenerator.kt:169 */
|
3175 5348 | self.header_integer_enum_list.as_deref()
|
5349 + | /* StructureGenerator.kt:166 */
|
3176 5350 | }
|
5351 + | /* StructureGenerator.kt:135 */
|
3177 5352 | }
|
5353 + | /* ServerCodegenVisitor.kt:345 */
|
3178 5354 | impl InputAndOutputWithHeadersInput {
|
3179 - | /// Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
5355 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
5356 + | /* ServerBuilderGenerator.kt:295 */
|
3180 5357 | pub fn builder() -> crate::input::input_and_output_with_headers_input::Builder {
|
5358 + | /* ServerBuilderGenerator.kt:296 */
|
3181 5359 | crate::input::input_and_output_with_headers_input::Builder::default()
|
5360 + | /* ServerBuilderGenerator.kt:295 */
|
3182 5361 | }
|
5362 + | /* ServerCodegenVisitor.kt:345 */
|
3183 5363 | }
|
5364 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3184 5365 | impl crate::constrained::Constrained for crate::input::InputAndOutputWithHeadersInput {
|
3185 5366 | type Unconstrained = crate::input::input_and_output_with_headers_input::Builder;
|
3186 5367 | }
|
3187 5368 |
|
5369 + | /* StructureGenerator.kt:197 */
|
3188 5370 | #[allow(missing_docs)] // documentation missing in model
|
5371 + | /* RustType.kt:516 */
|
3189 5372 | #[derive(
|
3190 5373 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3191 5374 | )]
|
3192 - | pub struct UnitInputAndOutputInput {}
|
5375 + | pub /* StructureGenerator.kt:201 */ struct UnitInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
5376 + | /* ServerCodegenVisitor.kt:345 */
|
3193 5377 | impl UnitInputAndOutputInput {
|
3194 - | /// Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
5378 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
5379 + | /* ServerBuilderGenerator.kt:295 */
|
3195 5380 | pub fn builder() -> crate::input::unit_input_and_output_input::Builder {
|
5381 + | /* ServerBuilderGenerator.kt:296 */
|
3196 5382 | crate::input::unit_input_and_output_input::Builder::default()
|
5383 + | /* ServerBuilderGenerator.kt:295 */
|
3197 5384 | }
|
5385 + | /* ServerCodegenVisitor.kt:345 */
|
3198 5386 | }
|
5387 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3199 5388 | impl crate::constrained::Constrained for crate::input::UnitInputAndOutputInput {
|
3200 5389 | type Unconstrained = crate::input::unit_input_and_output_input::Builder;
|
3201 5390 | }
|
3202 5391 |
|
5392 + | /* StructureGenerator.kt:197 */
|
3203 5393 | #[allow(missing_docs)] // documentation missing in model
|
5394 + | /* RustType.kt:516 */
|
3204 5395 | #[derive(
|
3205 5396 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3206 5397 | )]
|
3207 - | pub struct EmptyInputAndEmptyOutputInput {}
|
5398 + | pub /* StructureGenerator.kt:201 */ struct EmptyInputAndEmptyOutputInput {/* StructureGenerator.kt:201 */}
|
5399 + | /* ServerCodegenVisitor.kt:345 */
|
3208 5400 | impl EmptyInputAndEmptyOutputInput {
|
3209 - | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
5401 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
5402 + | /* ServerBuilderGenerator.kt:295 */
|
3210 5403 | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
5404 + | /* ServerBuilderGenerator.kt:296 */
|
3211 5405 | crate::input::empty_input_and_empty_output_input::Builder::default()
|
5406 + | /* ServerBuilderGenerator.kt:295 */
|
3212 5407 | }
|
5408 + | /* ServerCodegenVisitor.kt:345 */
|
3213 5409 | }
|
5410 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3214 5411 | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
3215 5412 | type Unconstrained = crate::input::empty_input_and_empty_output_input::Builder;
|
3216 5413 | }
|
3217 5414 |
|
5415 + | /* StructureGenerator.kt:197 */
|
3218 5416 | #[allow(missing_docs)] // documentation missing in model
|
5417 + | /* RustType.kt:516 */
|
3219 5418 | #[derive(
|
3220 5419 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3221 5420 | )]
|
3222 - | pub struct NoInputAndOutputInput {}
|
5421 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
5422 + | /* ServerCodegenVisitor.kt:345 */
|
3223 5423 | impl NoInputAndOutputInput {
|
3224 - | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
5424 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
5425 + | /* ServerBuilderGenerator.kt:295 */
|
3225 5426 | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
5427 + | /* ServerBuilderGenerator.kt:296 */
|
3226 5428 | crate::input::no_input_and_output_input::Builder::default()
|
5429 + | /* ServerBuilderGenerator.kt:295 */
|
3227 5430 | }
|
5431 + | /* ServerCodegenVisitor.kt:345 */
|
3228 5432 | }
|
5433 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3229 5434 | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
3230 5435 | type Unconstrained = crate::input::no_input_and_output_input::Builder;
|
3231 5436 | }
|
3232 5437 |
|
5438 + | /* StructureGenerator.kt:197 */
|
3233 5439 | #[allow(missing_docs)] // documentation missing in model
|
5440 + | /* RustType.kt:516 */
|
3234 5441 | #[derive(
|
3235 5442 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3236 5443 | )]
|
3237 - | pub struct NoInputAndNoOutputInput {}
|
5444 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndNoOutputInput {/* StructureGenerator.kt:201 */}
|
5445 + | /* ServerCodegenVisitor.kt:345 */
|
3238 5446 | impl NoInputAndNoOutputInput {
|
3239 - | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
5447 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
5448 + | /* ServerBuilderGenerator.kt:295 */
|
3240 5449 | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
5450 + | /* ServerBuilderGenerator.kt:296 */
|
3241 5451 | crate::input::no_input_and_no_output_input::Builder::default()
|
5452 + | /* ServerBuilderGenerator.kt:295 */
|
3242 5453 | }
|
5454 + | /* ServerCodegenVisitor.kt:345 */
|
3243 5455 | }
|
5456 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3244 5457 | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
3245 5458 | type Unconstrained = crate::input::no_input_and_no_output_input::Builder;
|
3246 5459 | }
|
3247 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5460 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
3248 5461 | pub mod operation_with_nested_structure_input {
|
3249 5462 |
|
5463 + | /* RustType.kt:516 */
|
3250 5464 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3251 - | /// Holds one variant for each of the ways the builder can fail.
|
5465 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5466 + | /* RustType.kt:516 */
|
3252 5467 | #[non_exhaustive]
|
5468 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3253 5469 | #[allow(clippy::enum_variant_names)]
|
3254 5470 | pub enum ConstraintViolation {
|
3255 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
5471 + | /// /* ServerBuilderConstraintViolations.kt:138 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
5472 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3256 5473 | MissingTopLevel,
|
3257 - | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
5474 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
5475 + | /* RustType.kt:516 */
|
3258 5476 | #[doc(hidden)]
|
5477 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3259 5478 | TopLevel(crate::model::top_level::ConstraintViolation),
|
5479 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3260 5480 | }
|
5481 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3261 5482 | impl ::std::fmt::Display for ConstraintViolation {
|
5483 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3262 5484 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5485 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3263 5486 | match self {
|
3264 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
3265 - | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
3266 - | }
|
5487 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
5488 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
5489 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5490 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3267 5491 | }
|
5492 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3268 5493 | }
|
5494 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3269 5495 | impl ::std::error::Error for ConstraintViolation {}
|
5496 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3270 5497 | impl ConstraintViolation {
|
3271 5498 | pub(crate) fn as_validation_exception_field(
|
3272 5499 | self,
|
3273 5500 | path: ::std::string::String,
|
3274 5501 | ) -> crate::model::ValidationExceptionField {
|
3275 5502 | match self {
|
3276 5503 | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
3277 5504 | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
3278 5505 | path: path + "/topLevel",
|
3279 5506 | },
|
3280 5507 | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
3281 5508 | }
|
3282 5509 | }
|
3283 5510 | }
|
5511 + | /* ServerBuilderGenerator.kt:234 */
|
3284 5512 | impl ::std::convert::From<ConstraintViolation>
|
3285 5513 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3286 5514 | {
|
3287 5515 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3288 5516 | let first_validation_exception_field =
|
3289 5517 | constraint_violation.as_validation_exception_field("".to_owned());
|
3290 5518 | let validation_exception = crate::error::ValidationException {
|
3291 5519 | message: format!(
|
3292 5520 | "1 validation error detected. {}",
|
3293 5521 | &first_validation_exception_field.message
|
3294 5522 | ),
|
3295 5523 | field_list: Some(vec![first_validation_exception_field]),
|
3296 5524 | };
|
3297 5525 | Self::ConstraintViolation(
|
3298 5526 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3299 5527 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3300 5528 | )
|
3301 5529 | }
|
3302 5530 | }
|
5531 + | /* ServerBuilderGenerator.kt:244 */
|
3303 5532 | impl ::std::convert::From<Builder>
|
3304 5533 | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
3305 5534 | {
|
3306 5535 | fn from(builder: Builder) -> Self {
|
3307 5536 | Self::Unconstrained(builder)
|
3308 5537 | }
|
3309 5538 | }
|
5539 + | /* ServerBuilderGenerator.kt:446 */
|
3310 5540 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
3311 5541 | type Error = ConstraintViolation;
|
3312 5542 |
|
3313 5543 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3314 5544 | builder.build()
|
3315 5545 | }
|
3316 5546 | }
|
3317 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5547 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5548 + | /* RustType.kt:516 */
|
3318 5549 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5550 + | /* ServerBuilderGenerator.kt:211 */
|
3319 5551 | pub struct Builder {
|
5552 + | /* ServerBuilderGenerator.kt:308 */
|
3320 5553 | pub(crate) top_level:
|
3321 5554 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
5555 + | /* ServerBuilderGenerator.kt:211 */
|
3322 5556 | }
|
5557 + | /* ServerBuilderGenerator.kt:215 */
|
3323 5558 | impl Builder {
|
5559 + | /* ServerBuilderGenerator.kt:331 */
|
3324 5560 | #[allow(missing_docs)] // documentation missing in model
|
5561 + | /* ServerBuilderGenerator.kt:343 */
|
3325 5562 | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
3326 - | self.top_level = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5563 + | /* ServerBuilderGenerator.kt:344 */
|
5564 + | self.top_level =
|
5565 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5566 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
5567 + | /* ServerBuilderGenerator.kt:345 */)
|
5568 + | /* ServerBuilderGenerator.kt:344 */;
|
3327 5569 | self
|
5570 + | /* ServerBuilderGenerator.kt:343 */
|
3328 5571 | }
|
5572 + | /* ServerBuilderGenerator.kt:426 */
|
3329 5573 | #[allow(missing_docs)] // documentation missing in model
|
5574 + | /* ServerBuilderGenerator.kt:428 */
|
3330 5575 | pub(crate) fn set_top_level(
|
3331 5576 | mut self,
|
3332 5577 | input: impl ::std::convert::Into<
|
3333 5578 | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
3334 5579 | >,
|
3335 5580 | ) -> Self {
|
5581 + | /* ServerBuilderGenerator.kt:429 */
|
3336 5582 | self.top_level = Some(input.into());
|
3337 5583 | self
|
5584 + | /* ServerBuilderGenerator.kt:428 */
|
3338 5585 | }
|
3339 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
3340 - | ///
|
5586 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5587 + | /// /* ServerBuilderGenerator.kt:260 */
|
3341 5588 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
3342 5589 | ///
|
3343 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5590 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5591 + | /* ServerBuilderGenerator.kt:271 */
|
3344 5592 | pub fn build(
|
3345 5593 | self,
|
3346 5594 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
3347 5595 | self.build_enforcing_all_constraints()
|
3348 5596 | }
|
5597 + | /* ServerBuilderGenerator.kt:283 */
|
3349 5598 | fn build_enforcing_all_constraints(
|
3350 5599 | self,
|
3351 5600 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
3352 - | Ok(crate::input::OperationWithNestedStructureInput {
|
5601 + | /* ServerBuilderGenerator.kt:287 */
|
5602 + | Ok(
|
5603 + | /* ServerBuilderGenerator.kt:542 */
|
5604 + | crate::input::OperationWithNestedStructureInput {
|
5605 + | /* ServerBuilderGenerator.kt:546 */
|
3353 5606 | top_level: self
|
3354 5607 | .top_level
|
5608 + | /* ServerBuilderGenerator.kt:602 */
|
3355 5609 | .map(|v| match v {
|
3356 5610 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3357 5611 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3358 5612 | })
|
5613 + | /* ServerBuilderGenerator.kt:614 */
|
3359 5614 | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
3360 5615 | .transpose()?
|
5616 + | /* ServerBuilderGenerator.kt:569 */
|
3361 5617 | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
3362 - | })
|
5618 + | /* ServerBuilderGenerator.kt:542 */
|
5619 + | }, /* ServerBuilderGenerator.kt:287 */
|
5620 + | )
|
5621 + | /* ServerBuilderGenerator.kt:283 */
|
3363 5622 | }
|
5623 + | /* ServerBuilderGenerator.kt:215 */
|
3364 5624 | }
|
5625 + |
|
5626 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3365 5627 | }
|
3366 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5628 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
3367 5629 | pub mod operation_with_defaults_input {
|
3368 5630 |
|
5631 + | /* RustType.kt:516 */
|
3369 5632 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3370 - | /// Holds one variant for each of the ways the builder can fail.
|
5633 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5634 + | /* RustType.kt:516 */
|
3371 5635 | #[non_exhaustive]
|
5636 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3372 5637 | #[allow(clippy::enum_variant_names)]
|
3373 5638 | pub enum ConstraintViolation {
|
3374 - | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
5639 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
5640 + | /* RustType.kt:516 */
|
3375 5641 | #[doc(hidden)]
|
5642 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3376 5643 | Defaults(crate::model::defaults::ConstraintViolation),
|
5644 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3377 5645 | }
|
5646 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3378 5647 | impl ::std::fmt::Display for ConstraintViolation {
|
5648 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3379 5649 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5650 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3380 5651 | match self {
|
3381 - | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
3382 - | }
|
5652 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
5653 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5654 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3383 5655 | }
|
5656 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3384 5657 | }
|
5658 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3385 5659 | impl ::std::error::Error for ConstraintViolation {}
|
5660 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3386 5661 | impl ConstraintViolation {
|
3387 5662 | pub(crate) fn as_validation_exception_field(
|
3388 5663 | self,
|
3389 5664 | path: ::std::string::String,
|
3390 5665 | ) -> crate::model::ValidationExceptionField {
|
3391 5666 | match self {
|
3392 5667 | ConstraintViolation::Defaults(inner) => {
|
3393 5668 | inner.as_validation_exception_field(path + "/defaults")
|
3394 5669 | }
|
3395 5670 | }
|
3396 5671 | }
|
3397 5672 | }
|
5673 + | /* ServerBuilderGenerator.kt:234 */
|
3398 5674 | impl ::std::convert::From<ConstraintViolation>
|
3399 5675 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3400 5676 | {
|
3401 5677 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3402 5678 | let first_validation_exception_field =
|
3403 5679 | constraint_violation.as_validation_exception_field("".to_owned());
|
3404 5680 | let validation_exception = crate::error::ValidationException {
|
3405 5681 | message: format!(
|
3406 5682 | "1 validation error detected. {}",
|
3407 5683 | &first_validation_exception_field.message
|
3408 5684 | ),
|
3409 5685 | field_list: Some(vec![first_validation_exception_field]),
|
3410 5686 | };
|
3411 5687 | Self::ConstraintViolation(
|
3412 5688 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3413 5689 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3414 5690 | )
|
3415 5691 | }
|
3416 5692 | }
|
5693 + | /* ServerBuilderGenerator.kt:244 */
|
3417 5694 | impl ::std::convert::From<Builder>
|
3418 5695 | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
3419 5696 | {
|
3420 5697 | fn from(builder: Builder) -> Self {
|
3421 5698 | Self::Unconstrained(builder)
|
3422 5699 | }
|
3423 5700 | }
|
5701 + | /* ServerBuilderGenerator.kt:446 */
|
3424 5702 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
3425 5703 | type Error = ConstraintViolation;
|
3426 5704 |
|
3427 5705 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3428 5706 | builder.build()
|
3429 5707 | }
|
3430 5708 | }
|
3431 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5709 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5710 + | /* RustType.kt:516 */
|
3432 5711 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5712 + | /* ServerBuilderGenerator.kt:211 */
|
3433 5713 | pub struct Builder {
|
5714 + | /* ServerBuilderGenerator.kt:308 */
|
3434 5715 | pub(crate) defaults:
|
3435 5716 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
5717 + | /* ServerBuilderGenerator.kt:308 */
|
3436 5718 | pub(crate) client_optional_defaults:
|
3437 5719 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
5720 + | /* ServerBuilderGenerator.kt:308 */
|
3438 5721 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
5722 + | /* ServerBuilderGenerator.kt:308 */
|
3439 5723 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
5724 + | /* ServerBuilderGenerator.kt:211 */
|
3440 5725 | }
|
5726 + | /* ServerBuilderGenerator.kt:215 */
|
3441 5727 | impl Builder {
|
5728 + | /* ServerBuilderGenerator.kt:331 */
|
3442 5729 | #[allow(missing_docs)] // documentation missing in model
|
5730 + | /* ServerBuilderGenerator.kt:343 */
|
3443 5731 | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
3444 - | self.defaults = input.map(
|
3445 - | #[allow(clippy::redundant_closure)]
|
3446 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3447 - | );
|
5732 + | /* ServerBuilderGenerator.kt:344 */
|
5733 + | self.defaults =
|
5734 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5735 + | /* ServerBuilderGenerator.kt:344 */;
|
3448 5736 | self
|
5737 + | /* ServerBuilderGenerator.kt:343 */
|
3449 5738 | }
|
5739 + | /* ServerBuilderGenerator.kt:426 */
|
3450 5740 | #[allow(missing_docs)] // documentation missing in model
|
5741 + | /* ServerBuilderGenerator.kt:428 */
|
3451 5742 | pub(crate) fn set_defaults(
|
3452 5743 | mut self,
|
3453 5744 | input: Option<
|
3454 5745 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
3455 5746 | >,
|
3456 5747 | ) -> Self {
|
5748 + | /* ServerBuilderGenerator.kt:429 */
|
3457 5749 | self.defaults = input.map(|v| v.into());
|
3458 5750 | self
|
5751 + | /* ServerBuilderGenerator.kt:428 */
|
3459 5752 | }
|
5753 + | /* ServerBuilderGenerator.kt:331 */
|
3460 5754 | #[allow(missing_docs)] // documentation missing in model
|
5755 + | /* ServerBuilderGenerator.kt:343 */
|
3461 5756 | pub fn client_optional_defaults(
|
3462 5757 | mut self,
|
3463 5758 | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
3464 5759 | ) -> Self {
|
3465 - | self.client_optional_defaults = input;
|
5760 + | /* ServerBuilderGenerator.kt:344 */
|
5761 + | self.client_optional_defaults =
|
5762 + | /* ServerBuilderGenerator.kt:376 */input
|
5763 + | /* ServerBuilderGenerator.kt:344 */;
|
3466 5764 | self
|
5765 + | /* ServerBuilderGenerator.kt:343 */
|
3467 5766 | }
|
5767 + | /* ServerBuilderGenerator.kt:426 */
|
3468 5768 | #[allow(missing_docs)] // documentation missing in model
|
5769 + | /* ServerBuilderGenerator.kt:428 */
|
3469 5770 | pub(crate) fn set_client_optional_defaults(
|
3470 5771 | mut self,
|
3471 5772 | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
3472 5773 | ) -> Self {
|
5774 + | /* ServerBuilderGenerator.kt:429 */
|
3473 5775 | self.client_optional_defaults = input.map(|v| v.into());
|
3474 5776 | self
|
5777 + | /* ServerBuilderGenerator.kt:428 */
|
3475 5778 | }
|
5779 + | /* ServerBuilderGenerator.kt:331 */
|
3476 5780 | #[allow(missing_docs)] // documentation missing in model
|
5781 + | /* ServerBuilderGenerator.kt:343 */
|
3477 5782 | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
3478 - | self.top_level_default = Some(input);
|
5783 + | /* ServerBuilderGenerator.kt:344 */
|
5784 + | self.top_level_default =
|
5785 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5786 + | /* ServerBuilderGenerator.kt:376 */input
|
5787 + | /* ServerBuilderGenerator.kt:345 */)
|
5788 + | /* ServerBuilderGenerator.kt:344 */;
|
3479 5789 | self
|
5790 + | /* ServerBuilderGenerator.kt:343 */
|
3480 5791 | }
|
5792 + | /* ServerBuilderGenerator.kt:426 */
|
3481 5793 | #[allow(missing_docs)] // documentation missing in model
|
5794 + | /* ServerBuilderGenerator.kt:428 */
|
3482 5795 | pub(crate) fn set_top_level_default(
|
3483 5796 | mut self,
|
3484 5797 | input: impl ::std::convert::Into<::std::string::String>,
|
3485 5798 | ) -> Self {
|
5799 + | /* ServerBuilderGenerator.kt:429 */
|
3486 5800 | self.top_level_default = Some(input.into());
|
3487 5801 | self
|
5802 + | /* ServerBuilderGenerator.kt:428 */
|
3488 5803 | }
|
5804 + | /* ServerBuilderGenerator.kt:331 */
|
3489 5805 | #[allow(missing_docs)] // documentation missing in model
|
5806 + | /* ServerBuilderGenerator.kt:343 */
|
3490 5807 | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
3491 - | self.other_top_level_default = Some(input);
|
5808 + | /* ServerBuilderGenerator.kt:344 */
|
5809 + | self.other_top_level_default =
|
5810 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5811 + | /* ServerBuilderGenerator.kt:376 */input
|
5812 + | /* ServerBuilderGenerator.kt:345 */)
|
5813 + | /* ServerBuilderGenerator.kt:344 */;
|
3492 5814 | self
|
5815 + | /* ServerBuilderGenerator.kt:343 */
|
3493 5816 | }
|
5817 + | /* ServerBuilderGenerator.kt:426 */
|
3494 5818 | #[allow(missing_docs)] // documentation missing in model
|
5819 + | /* ServerBuilderGenerator.kt:428 */
|
3495 5820 | pub(crate) fn set_other_top_level_default(
|
3496 5821 | mut self,
|
3497 5822 | input: impl ::std::convert::Into<i32>,
|
3498 5823 | ) -> Self {
|
5824 + | /* ServerBuilderGenerator.kt:429 */
|
3499 5825 | self.other_top_level_default = Some(input.into());
|
3500 5826 | self
|
5827 + | /* ServerBuilderGenerator.kt:428 */
|
3501 5828 | }
|
3502 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
3503 - | ///
|
5829 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5830 + | /// /* ServerBuilderGenerator.kt:260 */
|
3504 5831 | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
3505 5832 | ///
|
5833 + | /* ServerBuilderGenerator.kt:271 */
|
3506 5834 | pub fn build(
|
3507 5835 | self,
|
3508 5836 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
3509 5837 | self.build_enforcing_all_constraints()
|
3510 5838 | }
|
5839 + | /* ServerBuilderGenerator.kt:283 */
|
3511 5840 | fn build_enforcing_all_constraints(
|
3512 5841 | self,
|
3513 5842 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
3514 - | Ok(crate::input::OperationWithDefaultsInput {
|
5843 + | /* ServerBuilderGenerator.kt:287 */
|
5844 + | Ok(
|
5845 + | /* ServerBuilderGenerator.kt:542 */
|
5846 + | crate::input::OperationWithDefaultsInput {
|
5847 + | /* ServerBuilderGenerator.kt:546 */
|
3515 5848 | defaults: self
|
3516 5849 | .defaults
|
5850 + | /* ServerBuilderGenerator.kt:602 */
|
3517 5851 | .map(|v| match v {
|
3518 5852 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3519 5853 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3520 5854 | })
|
5855 + | /* ServerBuilderGenerator.kt:614 */
|
3521 5856 | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
3522 5857 | .transpose()?,
|
5858 + | /* ServerBuilderGenerator.kt:546 */
|
3523 5859 | client_optional_defaults: self.client_optional_defaults,
|
3524 - | top_level_default: self.top_level_default.unwrap_or_else(
|
5860 + | /* ServerBuilderGenerator.kt:546 */
|
5861 + | top_level_default: self
|
5862 + | .top_level_default
|
5863 + | /* ServerBuilderGeneratorCommon.kt:139 */
|
5864 + | .unwrap_or_else(
|
3525 5865 | #[allow(clippy::redundant_closure)]
|
3526 5866 | || String::from("hi"),
|
3527 5867 | ),
|
3528 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
3529 - | })
|
5868 + | /* ServerBuilderGenerator.kt:546 */
|
5869 + | other_top_level_default: self
|
5870 + | .other_top_level_default
|
5871 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
5872 + | .unwrap_or(0i32),
|
5873 + | /* ServerBuilderGenerator.kt:542 */
|
5874 + | }, /* ServerBuilderGenerator.kt:287 */
|
5875 + | )
|
5876 + | /* ServerBuilderGenerator.kt:283 */
|
3530 5877 | }
|
5878 + | /* ServerBuilderGenerator.kt:215 */
|
3531 5879 | }
|
5880 + |
|
5881 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3532 5882 | }
|
3533 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
5883 + | /// /* ServerBuilderGenerator.kt:171 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
3534 5884 | pub mod content_type_parameters_input {
|
3535 5885 |
|
5886 + | /* ServerBuilderGenerator.kt:461 */
|
3536 5887 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
3537 5888 | fn from(builder: Builder) -> Self {
|
3538 5889 | builder.build()
|
3539 5890 | }
|
3540 5891 | }
|
3541 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
5892 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
5893 + | /* RustType.kt:516 */
|
3542 5894 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5895 + | /* ServerBuilderGenerator.kt:211 */
|
3543 5896 | pub struct Builder {
|
5897 + | /* ServerBuilderGenerator.kt:308 */
|
3544 5898 | pub(crate) value: ::std::option::Option<i32>,
|
5899 + | /* ServerBuilderGenerator.kt:211 */
|
3545 5900 | }
|
5901 + | /* ServerBuilderGenerator.kt:215 */
|
3546 5902 | impl Builder {
|
5903 + | /* ServerBuilderGenerator.kt:331 */
|
3547 5904 | #[allow(missing_docs)] // documentation missing in model
|
5905 + | /* ServerBuilderGenerator.kt:343 */
|
3548 5906 | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
3549 - | self.value = input;
|
5907 + | /* ServerBuilderGenerator.kt:344 */
|
5908 + | self.value =
|
5909 + | /* ServerBuilderGenerator.kt:376 */input
|
5910 + | /* ServerBuilderGenerator.kt:344 */;
|
3550 5911 | self
|
5912 + | /* ServerBuilderGenerator.kt:343 */
|
3551 5913 | }
|
5914 + | /* ServerBuilderGenerator.kt:426 */
|
3552 5915 | #[allow(missing_docs)] // documentation missing in model
|
5916 + | /* ServerBuilderGenerator.kt:428 */
|
3553 5917 | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
5918 + | /* ServerBuilderGenerator.kt:429 */
|
3554 5919 | self.value = input.map(|v| v.into());
|
3555 5920 | self
|
5921 + | /* ServerBuilderGenerator.kt:428 */
|
3556 5922 | }
|
3557 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
5923 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
5924 + | /* ServerBuilderGenerator.kt:271 */
|
3558 5925 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
3559 5926 | self.build_enforcing_all_constraints()
|
3560 5927 | }
|
5928 + | /* ServerBuilderGenerator.kt:283 */
|
3561 5929 | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
3562 - | crate::input::ContentTypeParametersInput { value: self.value }
|
5930 + | /* ServerBuilderGenerator.kt:542 */
|
5931 + | crate::input::ContentTypeParametersInput {
|
5932 + | /* ServerBuilderGenerator.kt:546 */
|
5933 + | value: self.value,
|
5934 + | /* ServerBuilderGenerator.kt:542 */
|
5935 + | }
|
5936 + | /* ServerBuilderGenerator.kt:283 */
|
3563 5937 | }
|
5938 + | /* ServerBuilderGenerator.kt:215 */
|
3564 5939 | }
|
5940 + |
|
5941 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3565 5942 | }
|
3566 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
5943 + | /// /* ServerBuilderGenerator.kt:171 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
3567 5944 | pub mod put_with_content_encoding_input {
|
3568 5945 |
|
5946 + | /* ServerBuilderGenerator.kt:461 */
|
3569 5947 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
3570 5948 | fn from(builder: Builder) -> Self {
|
3571 5949 | builder.build()
|
3572 5950 | }
|
3573 5951 | }
|
3574 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
5952 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
5953 + | /* RustType.kt:516 */
|
3575 5954 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5955 + | /* ServerBuilderGenerator.kt:211 */
|
3576 5956 | pub struct Builder {
|
5957 + | /* ServerBuilderGenerator.kt:308 */
|
3577 5958 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
5959 + | /* ServerBuilderGenerator.kt:308 */
|
3578 5960 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
5961 + | /* ServerBuilderGenerator.kt:211 */
|
3579 5962 | }
|
5963 + | /* ServerBuilderGenerator.kt:215 */
|
3580 5964 | impl Builder {
|
5965 + | /* ServerBuilderGenerator.kt:331 */
|
3581 5966 | #[allow(missing_docs)] // documentation missing in model
|
5967 + | /* ServerBuilderGenerator.kt:343 */
|
3582 5968 | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3583 - | self.encoding = input;
|
5969 + | /* ServerBuilderGenerator.kt:344 */
|
5970 + | self.encoding =
|
5971 + | /* ServerBuilderGenerator.kt:376 */input
|
5972 + | /* ServerBuilderGenerator.kt:344 */;
|
3584 5973 | self
|
5974 + | /* ServerBuilderGenerator.kt:343 */
|
3585 5975 | }
|
5976 + | /* ServerBuilderGenerator.kt:426 */
|
3586 5977 | #[allow(missing_docs)] // documentation missing in model
|
5978 + | /* ServerBuilderGenerator.kt:428 */
|
3587 5979 | pub(crate) fn set_encoding(
|
3588 5980 | mut self,
|
3589 5981 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3590 5982 | ) -> Self {
|
5983 + | /* ServerBuilderGenerator.kt:429 */
|
3591 5984 | self.encoding = input.map(|v| v.into());
|
3592 5985 | self
|
5986 + | /* ServerBuilderGenerator.kt:428 */
|
3593 5987 | }
|
5988 + | /* ServerBuilderGenerator.kt:331 */
|
3594 5989 | #[allow(missing_docs)] // documentation missing in model
|
5990 + | /* ServerBuilderGenerator.kt:343 */
|
3595 5991 | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3596 - | self.data = input;
|
5992 + | /* ServerBuilderGenerator.kt:344 */
|
5993 + | self.data =
|
5994 + | /* ServerBuilderGenerator.kt:376 */input
|
5995 + | /* ServerBuilderGenerator.kt:344 */;
|
3597 5996 | self
|
5997 + | /* ServerBuilderGenerator.kt:343 */
|
3598 5998 | }
|
5999 + | /* ServerBuilderGenerator.kt:426 */
|
3599 6000 | #[allow(missing_docs)] // documentation missing in model
|
6001 + | /* ServerBuilderGenerator.kt:428 */
|
3600 6002 | pub(crate) fn set_data(
|
3601 6003 | mut self,
|
3602 6004 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3603 6005 | ) -> Self {
|
6006 + | /* ServerBuilderGenerator.kt:429 */
|
3604 6007 | self.data = input.map(|v| v.into());
|
3605 6008 | self
|
6009 + | /* ServerBuilderGenerator.kt:428 */
|
3606 6010 | }
|
3607 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6011 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6012 + | /* ServerBuilderGenerator.kt:271 */
|
3608 6013 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
3609 6014 | self.build_enforcing_all_constraints()
|
3610 6015 | }
|
6016 + | /* ServerBuilderGenerator.kt:283 */
|
3611 6017 | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
6018 + | /* ServerBuilderGenerator.kt:542 */
|
3612 6019 | crate::input::PutWithContentEncodingInput {
|
6020 + | /* ServerBuilderGenerator.kt:546 */
|
3613 6021 | encoding: self.encoding,
|
6022 + | /* ServerBuilderGenerator.kt:546 */
|
3614 6023 | data: self.data,
|
6024 + | /* ServerBuilderGenerator.kt:542 */
|
3615 6025 | }
|
6026 + | /* ServerBuilderGenerator.kt:283 */
|
3616 6027 | }
|
6028 + | /* ServerBuilderGenerator.kt:215 */
|
3617 6029 | }
|
6030 + |
|
6031 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3618 6032 | }
|
3619 - | /// See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6033 + | /// /* ServerBuilderGenerator.kt:171 */See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
3620 6034 | pub mod fractional_seconds_input {
|
3621 6035 |
|
6036 + | /* ServerBuilderGenerator.kt:461 */
|
3622 6037 | impl ::std::convert::From<Builder> for crate::input::FractionalSecondsInput {
|
3623 6038 | fn from(builder: Builder) -> Self {
|
3624 6039 | builder.build()
|
3625 6040 | }
|
3626 6041 | }
|
3627 - | /// A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6042 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6043 + | /* RustType.kt:516 */
|
3628 6044 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3629 - | pub struct Builder {}
|
6045 + | /* ServerBuilderGenerator.kt:211 */
|
6046 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6047 + | /* ServerBuilderGenerator.kt:215 */
|
3630 6048 | impl Builder {
|
3631 - | /// Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6049 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6050 + | /* ServerBuilderGenerator.kt:271 */
|
3632 6051 | pub fn build(self) -> crate::input::FractionalSecondsInput {
|
3633 6052 | self.build_enforcing_all_constraints()
|
3634 6053 | }
|
6054 + | /* ServerBuilderGenerator.kt:283 */
|
3635 6055 | fn build_enforcing_all_constraints(self) -> crate::input::FractionalSecondsInput {
|
3636 - | crate::input::FractionalSecondsInput {}
|
6056 + | /* ServerBuilderGenerator.kt:542 */
|
6057 + | crate::input::FractionalSecondsInput {
|
6058 + | /* ServerBuilderGenerator.kt:542 */}
|
6059 + | /* ServerBuilderGenerator.kt:283 */
|
3637 6060 | }
|
6061 + | /* ServerBuilderGenerator.kt:215 */
|
3638 6062 | }
|
6063 + |
|
6064 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3639 6065 | }
|
3640 - | /// See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6066 + | /// /* ServerBuilderGenerator.kt:171 */See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
3641 6067 | pub mod datetime_offsets_input {
|
3642 6068 |
|
6069 + | /* ServerBuilderGenerator.kt:461 */
|
3643 6070 | impl ::std::convert::From<Builder> for crate::input::DatetimeOffsetsInput {
|
3644 6071 | fn from(builder: Builder) -> Self {
|
3645 6072 | builder.build()
|
3646 6073 | }
|
3647 6074 | }
|
3648 - | /// A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6075 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6076 + | /* RustType.kt:516 */
|
3649 6077 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3650 - | pub struct Builder {}
|
6078 + | /* ServerBuilderGenerator.kt:211 */
|
6079 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6080 + | /* ServerBuilderGenerator.kt:215 */
|
3651 6081 | impl Builder {
|
3652 - | /// Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6082 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6083 + | /* ServerBuilderGenerator.kt:271 */
|
3653 6084 | pub fn build(self) -> crate::input::DatetimeOffsetsInput {
|
3654 6085 | self.build_enforcing_all_constraints()
|
3655 6086 | }
|
6087 + | /* ServerBuilderGenerator.kt:283 */
|
3656 6088 | fn build_enforcing_all_constraints(self) -> crate::input::DatetimeOffsetsInput {
|
3657 - | crate::input::DatetimeOffsetsInput {}
|
6089 + | /* ServerBuilderGenerator.kt:542 */
|
6090 + | crate::input::DatetimeOffsetsInput {
|
6091 + | /* ServerBuilderGenerator.kt:542 */}
|
6092 + | /* ServerBuilderGenerator.kt:283 */
|
3658 6093 | }
|
6094 + | /* ServerBuilderGenerator.kt:215 */
|
3659 6095 | }
|
6096 + |
|
6097 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3660 6098 | }
|
3661 - | /// See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6099 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
3662 6100 | pub mod test_post_no_input_no_payload_input {
|
3663 6101 |
|
6102 + | /* ServerBuilderGenerator.kt:461 */
|
3664 6103 | impl ::std::convert::From<Builder> for crate::input::TestPostNoInputNoPayloadInput {
|
3665 6104 | fn from(builder: Builder) -> Self {
|
3666 6105 | builder.build()
|
3667 6106 | }
|
3668 6107 | }
|
3669 - | /// A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6108 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6109 + | /* RustType.kt:516 */
|
3670 6110 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3671 - | pub struct Builder {}
|
6111 + | /* ServerBuilderGenerator.kt:211 */
|
6112 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6113 + | /* ServerBuilderGenerator.kt:215 */
|
3672 6114 | impl Builder {
|
3673 - | /// Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6115 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6116 + | /* ServerBuilderGenerator.kt:271 */
|
3674 6117 | pub fn build(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
3675 6118 | self.build_enforcing_all_constraints()
|
3676 6119 | }
|
6120 + | /* ServerBuilderGenerator.kt:283 */
|
3677 6121 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
3678 - | crate::input::TestPostNoInputNoPayloadInput {}
|
6122 + | /* ServerBuilderGenerator.kt:542 */
|
6123 + | crate::input::TestPostNoInputNoPayloadInput {
|
6124 + | /* ServerBuilderGenerator.kt:542 */}
|
6125 + | /* ServerBuilderGenerator.kt:283 */
|
3679 6126 | }
|
6127 + | /* ServerBuilderGenerator.kt:215 */
|
3680 6128 | }
|
6129 + |
|
6130 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3681 6131 | }
|
3682 - | /// See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6132 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
3683 6133 | pub mod test_get_no_input_no_payload_input {
|
3684 6134 |
|
6135 + | /* ServerBuilderGenerator.kt:461 */
|
3685 6136 | impl ::std::convert::From<Builder> for crate::input::TestGetNoInputNoPayloadInput {
|
3686 6137 | fn from(builder: Builder) -> Self {
|
3687 6138 | builder.build()
|
3688 6139 | }
|
3689 6140 | }
|
3690 - | /// A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6141 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6142 + | /* RustType.kt:516 */
|
3691 6143 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3692 - | pub struct Builder {}
|
6144 + | /* ServerBuilderGenerator.kt:211 */
|
6145 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6146 + | /* ServerBuilderGenerator.kt:215 */
|
3693 6147 | impl Builder {
|
3694 - | /// Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6148 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6149 + | /* ServerBuilderGenerator.kt:271 */
|
3695 6150 | pub fn build(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
3696 6151 | self.build_enforcing_all_constraints()
|
3697 6152 | }
|
6153 + | /* ServerBuilderGenerator.kt:283 */
|
3698 6154 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
3699 - | crate::input::TestGetNoInputNoPayloadInput {}
|
6155 + | /* ServerBuilderGenerator.kt:542 */
|
6156 + | crate::input::TestGetNoInputNoPayloadInput {
|
6157 + | /* ServerBuilderGenerator.kt:542 */}
|
6158 + | /* ServerBuilderGenerator.kt:283 */
|
3700 6159 | }
|
6160 + | /* ServerBuilderGenerator.kt:215 */
|
3701 6161 | }
|
6162 + |
|
6163 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3702 6164 | }
|
3703 - | /// See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6165 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
3704 6166 | pub mod test_post_no_payload_input {
|
3705 6167 |
|
6168 + | /* ServerBuilderGenerator.kt:461 */
|
3706 6169 | impl ::std::convert::From<Builder> for crate::input::TestPostNoPayloadInput {
|
3707 6170 | fn from(builder: Builder) -> Self {
|
3708 6171 | builder.build()
|
3709 6172 | }
|
3710 6173 | }
|
3711 - | /// A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6174 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6175 + | /* RustType.kt:516 */
|
3712 6176 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6177 + | /* ServerBuilderGenerator.kt:211 */
|
3713 6178 | pub struct Builder {
|
6179 + | /* ServerBuilderGenerator.kt:308 */
|
3714 6180 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6181 + | /* ServerBuilderGenerator.kt:211 */
|
3715 6182 | }
|
6183 + | /* ServerBuilderGenerator.kt:215 */
|
3716 6184 | impl Builder {
|
6185 + | /* ServerBuilderGenerator.kt:331 */
|
3717 6186 | #[allow(missing_docs)] // documentation missing in model
|
6187 + | /* ServerBuilderGenerator.kt:343 */
|
3718 6188 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3719 - | self.test_id = input;
|
6189 + | /* ServerBuilderGenerator.kt:344 */
|
6190 + | self.test_id =
|
6191 + | /* ServerBuilderGenerator.kt:376 */input
|
6192 + | /* ServerBuilderGenerator.kt:344 */;
|
3720 6193 | self
|
6194 + | /* ServerBuilderGenerator.kt:343 */
|
3721 6195 | }
|
6196 + | /* ServerBuilderGenerator.kt:426 */
|
3722 6197 | #[allow(missing_docs)] // documentation missing in model
|
6198 + | /* ServerBuilderGenerator.kt:428 */
|
3723 6199 | pub(crate) fn set_test_id(
|
3724 6200 | mut self,
|
3725 6201 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3726 6202 | ) -> Self {
|
6203 + | /* ServerBuilderGenerator.kt:429 */
|
3727 6204 | self.test_id = input.map(|v| v.into());
|
3728 6205 | self
|
6206 + | /* ServerBuilderGenerator.kt:428 */
|
3729 6207 | }
|
3730 - | /// Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6208 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6209 + | /* ServerBuilderGenerator.kt:271 */
|
3731 6210 | pub fn build(self) -> crate::input::TestPostNoPayloadInput {
|
3732 6211 | self.build_enforcing_all_constraints()
|
3733 6212 | }
|
6213 + | /* ServerBuilderGenerator.kt:283 */
|
3734 6214 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoPayloadInput {
|
6215 + | /* ServerBuilderGenerator.kt:542 */
|
3735 6216 | crate::input::TestPostNoPayloadInput {
|
6217 + | /* ServerBuilderGenerator.kt:546 */
|
3736 6218 | test_id: self.test_id,
|
6219 + | /* ServerBuilderGenerator.kt:542 */
|
3737 6220 | }
|
6221 + | /* ServerBuilderGenerator.kt:283 */
|
3738 6222 | }
|
6223 + | /* ServerBuilderGenerator.kt:215 */
|
3739 6224 | }
|
6225 + |
|
6226 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3740 6227 | }
|
3741 - | /// See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6228 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
3742 6229 | pub mod test_get_no_payload_input {
|
3743 6230 |
|
6231 + | /* ServerBuilderGenerator.kt:461 */
|
3744 6232 | impl ::std::convert::From<Builder> for crate::input::TestGetNoPayloadInput {
|
3745 6233 | fn from(builder: Builder) -> Self {
|
3746 6234 | builder.build()
|
3747 6235 | }
|
3748 6236 | }
|
3749 - | /// A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6237 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6238 + | /* RustType.kt:516 */
|
3750 6239 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6240 + | /* ServerBuilderGenerator.kt:211 */
|
3751 6241 | pub struct Builder {
|
6242 + | /* ServerBuilderGenerator.kt:308 */
|
3752 6243 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6244 + | /* ServerBuilderGenerator.kt:211 */
|
3753 6245 | }
|
6246 + | /* ServerBuilderGenerator.kt:215 */
|
3754 6247 | impl Builder {
|
6248 + | /* ServerBuilderGenerator.kt:331 */
|
3755 6249 | #[allow(missing_docs)] // documentation missing in model
|
6250 + | /* ServerBuilderGenerator.kt:343 */
|
3756 6251 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3757 - | self.test_id = input;
|
6252 + | /* ServerBuilderGenerator.kt:344 */
|
6253 + | self.test_id =
|
6254 + | /* ServerBuilderGenerator.kt:376 */input
|
6255 + | /* ServerBuilderGenerator.kt:344 */;
|
3758 6256 | self
|
6257 + | /* ServerBuilderGenerator.kt:343 */
|
3759 6258 | }
|
6259 + | /* ServerBuilderGenerator.kt:426 */
|
3760 6260 | #[allow(missing_docs)] // documentation missing in model
|
6261 + | /* ServerBuilderGenerator.kt:428 */
|
3761 6262 | pub(crate) fn set_test_id(
|
3762 6263 | mut self,
|
3763 6264 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3764 6265 | ) -> Self {
|
6266 + | /* ServerBuilderGenerator.kt:429 */
|
3765 6267 | self.test_id = input.map(|v| v.into());
|
3766 6268 | self
|
6269 + | /* ServerBuilderGenerator.kt:428 */
|
3767 6270 | }
|
3768 - | /// Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6271 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6272 + | /* ServerBuilderGenerator.kt:271 */
|
3769 6273 | pub fn build(self) -> crate::input::TestGetNoPayloadInput {
|
3770 6274 | self.build_enforcing_all_constraints()
|
3771 6275 | }
|
6276 + | /* ServerBuilderGenerator.kt:283 */
|
3772 6277 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoPayloadInput {
|
6278 + | /* ServerBuilderGenerator.kt:542 */
|
3773 6279 | crate::input::TestGetNoPayloadInput {
|
6280 + | /* ServerBuilderGenerator.kt:546 */
|
3774 6281 | test_id: self.test_id,
|
6282 + | /* ServerBuilderGenerator.kt:542 */
|
3775 6283 | }
|
6284 + | /* ServerBuilderGenerator.kt:283 */
|
3776 6285 | }
|
6286 + | /* ServerBuilderGenerator.kt:215 */
|
3777 6287 | }
|
6288 + |
|
6289 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3778 6290 | }
|
3779 - | /// See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6291 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
3780 6292 | pub mod test_payload_blob_input {
|
3781 6293 |
|
6294 + | /* ServerBuilderGenerator.kt:461 */
|
3782 6295 | impl ::std::convert::From<Builder> for crate::input::TestPayloadBlobInput {
|
3783 6296 | fn from(builder: Builder) -> Self {
|
3784 6297 | builder.build()
|
3785 6298 | }
|
3786 6299 | }
|
3787 - | /// A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6300 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6301 + | /* RustType.kt:516 */
|
3788 6302 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6303 + | /* ServerBuilderGenerator.kt:211 */
|
3789 6304 | pub struct Builder {
|
6305 + | /* ServerBuilderGenerator.kt:308 */
|
3790 6306 | pub(crate) content_type: ::std::option::Option<::std::string::String>,
|
6307 + | /* ServerBuilderGenerator.kt:308 */
|
3791 6308 | pub(crate) data: ::std::option::Option<::aws_smithy_types::Blob>,
|
6309 + | /* ServerBuilderGenerator.kt:211 */
|
3792 6310 | }
|
6311 + | /* ServerBuilderGenerator.kt:215 */
|
3793 6312 | impl Builder {
|
6313 + | /* ServerBuilderGenerator.kt:331 */
|
3794 6314 | #[allow(missing_docs)] // documentation missing in model
|
6315 + | /* ServerBuilderGenerator.kt:343 */
|
3795 6316 | pub fn content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3796 - | self.content_type = input;
|
6317 + | /* ServerBuilderGenerator.kt:344 */
|
6318 + | self.content_type =
|
6319 + | /* ServerBuilderGenerator.kt:376 */input
|
6320 + | /* ServerBuilderGenerator.kt:344 */;
|
3797 6321 | self
|
6322 + | /* ServerBuilderGenerator.kt:343 */
|
3798 6323 | }
|
6324 + | /* ServerBuilderGenerator.kt:426 */
|
3799 6325 | #[allow(missing_docs)] // documentation missing in model
|
6326 + | /* ServerBuilderGenerator.kt:428 */
|
3800 6327 | pub(crate) fn set_content_type(
|
3801 6328 | mut self,
|
3802 6329 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3803 6330 | ) -> Self {
|
6331 + | /* ServerBuilderGenerator.kt:429 */
|
3804 6332 | self.content_type = input.map(|v| v.into());
|
3805 6333 | self
|
6334 + | /* ServerBuilderGenerator.kt:428 */
|
3806 6335 | }
|
6336 + | /* ServerBuilderGenerator.kt:331 */
|
3807 6337 | #[allow(missing_docs)] // documentation missing in model
|
6338 + | /* ServerBuilderGenerator.kt:343 */
|
3808 6339 | pub fn data(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
3809 - | self.data = input;
|
6340 + | /* ServerBuilderGenerator.kt:344 */
|
6341 + | self.data =
|
6342 + | /* ServerBuilderGenerator.kt:376 */input
|
6343 + | /* ServerBuilderGenerator.kt:344 */;
|
3810 6344 | self
|
6345 + | /* ServerBuilderGenerator.kt:343 */
|
3811 6346 | }
|
6347 + | /* ServerBuilderGenerator.kt:426 */
|
3812 6348 | #[allow(missing_docs)] // documentation missing in model
|
6349 + | /* ServerBuilderGenerator.kt:428 */
|
3813 6350 | pub(crate) fn set_data(
|
3814 6351 | mut self,
|
3815 6352 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
3816 6353 | ) -> Self {
|
6354 + | /* ServerBuilderGenerator.kt:429 */
|
3817 6355 | self.data = input.map(|v| v.into());
|
3818 6356 | self
|
6357 + | /* ServerBuilderGenerator.kt:428 */
|
3819 6358 | }
|
3820 - | /// Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6359 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6360 + | /* ServerBuilderGenerator.kt:271 */
|
3821 6361 | pub fn build(self) -> crate::input::TestPayloadBlobInput {
|
3822 6362 | self.build_enforcing_all_constraints()
|
3823 6363 | }
|
6364 + | /* ServerBuilderGenerator.kt:283 */
|
3824 6365 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadBlobInput {
|
6366 + | /* ServerBuilderGenerator.kt:542 */
|
3825 6367 | crate::input::TestPayloadBlobInput {
|
6368 + | /* ServerBuilderGenerator.kt:546 */
|
3826 6369 | content_type: self.content_type,
|
6370 + | /* ServerBuilderGenerator.kt:546 */
|
3827 6371 | data: self.data,
|
6372 + | /* ServerBuilderGenerator.kt:542 */
|
3828 6373 | }
|
6374 + | /* ServerBuilderGenerator.kt:283 */
|
3829 6375 | }
|
6376 + | /* ServerBuilderGenerator.kt:215 */
|
3830 6377 | }
|
6378 + |
|
6379 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3831 6380 | }
|
3832 - | /// See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6381 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
3833 6382 | pub mod test_payload_structure_input {
|
3834 6383 |
|
6384 + | /* ServerBuilderGenerator.kt:461 */
|
3835 6385 | impl ::std::convert::From<Builder> for crate::input::TestPayloadStructureInput {
|
3836 6386 | fn from(builder: Builder) -> Self {
|
3837 6387 | builder.build()
|
3838 6388 | }
|
3839 6389 | }
|
3840 - | /// A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6390 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6391 + | /* RustType.kt:516 */
|
3841 6392 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6393 + | /* ServerBuilderGenerator.kt:211 */
|
3842 6394 | pub struct Builder {
|
6395 + | /* ServerBuilderGenerator.kt:308 */
|
3843 6396 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6397 + | /* ServerBuilderGenerator.kt:308 */
|
3844 6398 | pub(crate) payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
6399 + | /* ServerBuilderGenerator.kt:211 */
|
3845 6400 | }
|
6401 + | /* ServerBuilderGenerator.kt:215 */
|
3846 6402 | impl Builder {
|
6403 + | /* ServerBuilderGenerator.kt:331 */
|
3847 6404 | #[allow(missing_docs)] // documentation missing in model
|
6405 + | /* ServerBuilderGenerator.kt:343 */
|
3848 6406 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3849 - | self.test_id = input;
|
6407 + | /* ServerBuilderGenerator.kt:344 */
|
6408 + | self.test_id =
|
6409 + | /* ServerBuilderGenerator.kt:376 */input
|
6410 + | /* ServerBuilderGenerator.kt:344 */;
|
3850 6411 | self
|
6412 + | /* ServerBuilderGenerator.kt:343 */
|
3851 6413 | }
|
6414 + | /* ServerBuilderGenerator.kt:426 */
|
3852 6415 | #[allow(missing_docs)] // documentation missing in model
|
6416 + | /* ServerBuilderGenerator.kt:428 */
|
3853 6417 | pub(crate) fn set_test_id(
|
3854 6418 | mut self,
|
3855 6419 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3856 6420 | ) -> Self {
|
6421 + | /* ServerBuilderGenerator.kt:429 */
|
3857 6422 | self.test_id = input.map(|v| v.into());
|
3858 6423 | self
|
6424 + | /* ServerBuilderGenerator.kt:428 */
|
3859 6425 | }
|
6426 + | /* ServerBuilderGenerator.kt:331 */
|
3860 6427 | #[allow(missing_docs)] // documentation missing in model
|
6428 + | /* ServerBuilderGenerator.kt:343 */
|
3861 6429 | pub fn payload_config(
|
3862 6430 | mut self,
|
3863 6431 | input: ::std::option::Option<crate::model::PayloadConfig>,
|
3864 6432 | ) -> Self {
|
3865 - | self.payload_config = input;
|
6433 + | /* ServerBuilderGenerator.kt:344 */
|
6434 + | self.payload_config =
|
6435 + | /* ServerBuilderGenerator.kt:376 */input
|
6436 + | /* ServerBuilderGenerator.kt:344 */;
|
3866 6437 | self
|
6438 + | /* ServerBuilderGenerator.kt:343 */
|
3867 6439 | }
|
6440 + | /* ServerBuilderGenerator.kt:426 */
|
3868 6441 | #[allow(missing_docs)] // documentation missing in model
|
6442 + | /* ServerBuilderGenerator.kt:428 */
|
3869 6443 | pub(crate) fn set_payload_config(
|
3870 6444 | mut self,
|
3871 6445 | input: Option<impl ::std::convert::Into<crate::model::PayloadConfig>>,
|
3872 6446 | ) -> Self {
|
6447 + | /* ServerBuilderGenerator.kt:429 */
|
3873 6448 | self.payload_config = input.map(|v| v.into());
|
3874 6449 | self
|
6450 + | /* ServerBuilderGenerator.kt:428 */
|
3875 6451 | }
|
3876 - | /// Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6452 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6453 + | /* ServerBuilderGenerator.kt:271 */
|
3877 6454 | pub fn build(self) -> crate::input::TestPayloadStructureInput {
|
3878 6455 | self.build_enforcing_all_constraints()
|
3879 6456 | }
|
6457 + | /* ServerBuilderGenerator.kt:283 */
|
3880 6458 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadStructureInput {
|
6459 + | /* ServerBuilderGenerator.kt:542 */
|
3881 6460 | crate::input::TestPayloadStructureInput {
|
6461 + | /* ServerBuilderGenerator.kt:546 */
|
3882 6462 | test_id: self.test_id,
|
6463 + | /* ServerBuilderGenerator.kt:546 */
|
3883 6464 | payload_config: self.payload_config,
|
6465 + | /* ServerBuilderGenerator.kt:542 */
|
3884 6466 | }
|
6467 + | /* ServerBuilderGenerator.kt:283 */
|
3885 6468 | }
|
6469 + | /* ServerBuilderGenerator.kt:215 */
|
3886 6470 | }
|
6471 + |
|
6472 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3887 6473 | }
|
3888 - | /// See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6474 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
3889 6475 | pub mod test_body_structure_input {
|
3890 6476 |
|
6477 + | /* ServerBuilderGenerator.kt:461 */
|
3891 6478 | impl ::std::convert::From<Builder> for crate::input::TestBodyStructureInput {
|
3892 6479 | fn from(builder: Builder) -> Self {
|
3893 6480 | builder.build()
|
3894 6481 | }
|
3895 6482 | }
|
3896 - | /// A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6483 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6484 + | /* RustType.kt:516 */
|
3897 6485 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6486 + | /* ServerBuilderGenerator.kt:211 */
|
3898 6487 | pub struct Builder {
|
6488 + | /* ServerBuilderGenerator.kt:308 */
|
3899 6489 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6490 + | /* ServerBuilderGenerator.kt:308 */
|
3900 6491 | pub(crate) test_config: ::std::option::Option<crate::model::TestConfig>,
|
6492 + | /* ServerBuilderGenerator.kt:211 */
|
3901 6493 | }
|
6494 + | /* ServerBuilderGenerator.kt:215 */
|
3902 6495 | impl Builder {
|
6496 + | /* ServerBuilderGenerator.kt:331 */
|
3903 6497 | #[allow(missing_docs)] // documentation missing in model
|
6498 + | /* ServerBuilderGenerator.kt:343 */
|
3904 6499 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3905 - | self.test_id = input;
|
6500 + | /* ServerBuilderGenerator.kt:344 */
|
6501 + | self.test_id =
|
6502 + | /* ServerBuilderGenerator.kt:376 */input
|
6503 + | /* ServerBuilderGenerator.kt:344 */;
|
3906 6504 | self
|
6505 + | /* ServerBuilderGenerator.kt:343 */
|
3907 6506 | }
|
6507 + | /* ServerBuilderGenerator.kt:426 */
|
3908 6508 | #[allow(missing_docs)] // documentation missing in model
|
6509 + | /* ServerBuilderGenerator.kt:428 */
|
3909 6510 | pub(crate) fn set_test_id(
|
3910 6511 | mut self,
|
3911 6512 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3912 6513 | ) -> Self {
|
6514 + | /* ServerBuilderGenerator.kt:429 */
|
3913 6515 | self.test_id = input.map(|v| v.into());
|
3914 6516 | self
|
6517 + | /* ServerBuilderGenerator.kt:428 */
|
3915 6518 | }
|
6519 + | /* ServerBuilderGenerator.kt:331 */
|
3916 6520 | #[allow(missing_docs)] // documentation missing in model
|
6521 + | /* ServerBuilderGenerator.kt:343 */
|
3917 6522 | pub fn test_config(
|
3918 6523 | mut self,
|
3919 6524 | input: ::std::option::Option<crate::model::TestConfig>,
|
3920 6525 | ) -> Self {
|
3921 - | self.test_config = input;
|
6526 + | /* ServerBuilderGenerator.kt:344 */
|
6527 + | self.test_config =
|
6528 + | /* ServerBuilderGenerator.kt:376 */input
|
6529 + | /* ServerBuilderGenerator.kt:344 */;
|
3922 6530 | self
|
6531 + | /* ServerBuilderGenerator.kt:343 */
|
3923 6532 | }
|
6533 + | /* ServerBuilderGenerator.kt:426 */
|
3924 6534 | #[allow(missing_docs)] // documentation missing in model
|
6535 + | /* ServerBuilderGenerator.kt:428 */
|
3925 6536 | pub(crate) fn set_test_config(
|
3926 6537 | mut self,
|
3927 6538 | input: Option<impl ::std::convert::Into<crate::model::TestConfig>>,
|
3928 6539 | ) -> Self {
|
6540 + | /* ServerBuilderGenerator.kt:429 */
|
3929 6541 | self.test_config = input.map(|v| v.into());
|
3930 6542 | self
|
6543 + | /* ServerBuilderGenerator.kt:428 */
|
3931 6544 | }
|
3932 - | /// Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6545 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6546 + | /* ServerBuilderGenerator.kt:271 */
|
3933 6547 | pub fn build(self) -> crate::input::TestBodyStructureInput {
|
3934 6548 | self.build_enforcing_all_constraints()
|
3935 6549 | }
|
6550 + | /* ServerBuilderGenerator.kt:283 */
|
3936 6551 | fn build_enforcing_all_constraints(self) -> crate::input::TestBodyStructureInput {
|
6552 + | /* ServerBuilderGenerator.kt:542 */
|
3937 6553 | crate::input::TestBodyStructureInput {
|
6554 + | /* ServerBuilderGenerator.kt:546 */
|
3938 6555 | test_id: self.test_id,
|
6556 + | /* ServerBuilderGenerator.kt:546 */
|
3939 6557 | test_config: self.test_config,
|
6558 + | /* ServerBuilderGenerator.kt:542 */
|
3940 6559 | }
|
6560 + | /* ServerBuilderGenerator.kt:283 */
|
3941 6561 | }
|
6562 + | /* ServerBuilderGenerator.kt:215 */
|
3942 6563 | }
|
6564 + |
|
6565 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3943 6566 | }
|
3944 - | /// See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6567 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
3945 6568 | pub mod malformed_accept_with_generic_string_input {
|
3946 6569 |
|
6570 + | /* ServerBuilderGenerator.kt:461 */
|
3947 6571 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithGenericStringInput {
|
3948 6572 | fn from(builder: Builder) -> Self {
|
3949 6573 | builder.build()
|
3950 6574 | }
|
3951 6575 | }
|
3952 - | /// A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6576 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6577 + | /* RustType.kt:516 */
|
3953 6578 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3954 - | pub struct Builder {}
|
6579 + | /* ServerBuilderGenerator.kt:211 */
|
6580 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6581 + | /* ServerBuilderGenerator.kt:215 */
|
3955 6582 | impl Builder {
|
3956 - | /// Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6583 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6584 + | /* ServerBuilderGenerator.kt:271 */
|
3957 6585 | pub fn build(self) -> crate::input::MalformedAcceptWithGenericStringInput {
|
3958 6586 | self.build_enforcing_all_constraints()
|
3959 6587 | }
|
6588 + | /* ServerBuilderGenerator.kt:283 */
|
3960 6589 | fn build_enforcing_all_constraints(
|
3961 6590 | self,
|
3962 6591 | ) -> crate::input::MalformedAcceptWithGenericStringInput {
|
3963 - | crate::input::MalformedAcceptWithGenericStringInput {}
|
6592 + | /* ServerBuilderGenerator.kt:542 */
|
6593 + | crate::input::MalformedAcceptWithGenericStringInput {
|
6594 + | /* ServerBuilderGenerator.kt:542 */}
|
6595 + | /* ServerBuilderGenerator.kt:283 */
|
3964 6596 | }
|
6597 + | /* ServerBuilderGenerator.kt:215 */
|
3965 6598 | }
|
6599 + |
|
6600 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3966 6601 | }
|
3967 - | /// See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6602 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
3968 6603 | pub mod malformed_accept_with_payload_input {
|
3969 6604 |
|
6605 + | /* ServerBuilderGenerator.kt:461 */
|
3970 6606 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithPayloadInput {
|
3971 6607 | fn from(builder: Builder) -> Self {
|
3972 6608 | builder.build()
|
3973 6609 | }
|
3974 6610 | }
|
3975 - | /// A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6611 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6612 + | /* RustType.kt:516 */
|
3976 6613 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3977 - | pub struct Builder {}
|
6614 + | /* ServerBuilderGenerator.kt:211 */
|
6615 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6616 + | /* ServerBuilderGenerator.kt:215 */
|
3978 6617 | impl Builder {
|
3979 - | /// Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6618 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6619 + | /* ServerBuilderGenerator.kt:271 */
|
3980 6620 | pub fn build(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
3981 6621 | self.build_enforcing_all_constraints()
|
3982 6622 | }
|
6623 + | /* ServerBuilderGenerator.kt:283 */
|
3983 6624 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
3984 - | crate::input::MalformedAcceptWithPayloadInput {}
|
6625 + | /* ServerBuilderGenerator.kt:542 */
|
6626 + | crate::input::MalformedAcceptWithPayloadInput {
|
6627 + | /* ServerBuilderGenerator.kt:542 */}
|
6628 + | /* ServerBuilderGenerator.kt:283 */
|
3985 6629 | }
|
6630 + | /* ServerBuilderGenerator.kt:215 */
|
3986 6631 | }
|
6632 + |
|
6633 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3987 6634 | }
|
3988 - | /// See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6635 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
3989 6636 | pub mod malformed_accept_with_body_input {
|
3990 6637 |
|
6638 + | /* ServerBuilderGenerator.kt:461 */
|
3991 6639 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithBodyInput {
|
3992 6640 | fn from(builder: Builder) -> Self {
|
3993 6641 | builder.build()
|
3994 6642 | }
|
3995 6643 | }
|
3996 - | /// A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6644 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6645 + | /* RustType.kt:516 */
|
3997 6646 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3998 - | pub struct Builder {}
|
6647 + | /* ServerBuilderGenerator.kt:211 */
|
6648 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6649 + | /* ServerBuilderGenerator.kt:215 */
|
3999 6650 | impl Builder {
|
4000 - | /// Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6651 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6652 + | /* ServerBuilderGenerator.kt:271 */
|
4001 6653 | pub fn build(self) -> crate::input::MalformedAcceptWithBodyInput {
|
4002 6654 | self.build_enforcing_all_constraints()
|
4003 6655 | }
|
6656 + | /* ServerBuilderGenerator.kt:283 */
|
4004 6657 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithBodyInput {
|
4005 - | crate::input::MalformedAcceptWithBodyInput {}
|
6658 + | /* ServerBuilderGenerator.kt:542 */
|
6659 + | crate::input::MalformedAcceptWithBodyInput {
|
6660 + | /* ServerBuilderGenerator.kt:542 */}
|
6661 + | /* ServerBuilderGenerator.kt:283 */
|
4006 6662 | }
|
6663 + | /* ServerBuilderGenerator.kt:215 */
|
4007 6664 | }
|
6665 + |
|
6666 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4008 6667 | }
|
4009 - | /// See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6668 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
4010 6669 | pub mod malformed_content_type_with_generic_string_input {
|
4011 6670 |
|
6671 + | /* ServerBuilderGenerator.kt:461 */
|
4012 6672 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithGenericStringInput {
|
4013 6673 | fn from(builder: Builder) -> Self {
|
4014 6674 | builder.build()
|
4015 6675 | }
|
4016 6676 | }
|
4017 - | /// A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6677 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6678 + | /* RustType.kt:516 */
|
4018 6679 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6680 + | /* ServerBuilderGenerator.kt:211 */
|
4019 6681 | pub struct Builder {
|
6682 + | /* ServerBuilderGenerator.kt:308 */
|
4020 6683 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
6684 + | /* ServerBuilderGenerator.kt:211 */
|
4021 6685 | }
|
6686 + | /* ServerBuilderGenerator.kt:215 */
|
4022 6687 | impl Builder {
|
6688 + | /* ServerBuilderGenerator.kt:331 */
|
4023 6689 | #[allow(missing_docs)] // documentation missing in model
|
6690 + | /* ServerBuilderGenerator.kt:343 */
|
4024 6691 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
4025 - | self.payload = input;
|
6692 + | /* ServerBuilderGenerator.kt:344 */
|
6693 + | self.payload =
|
6694 + | /* ServerBuilderGenerator.kt:376 */input
|
6695 + | /* ServerBuilderGenerator.kt:344 */;
|
4026 6696 | self
|
6697 + | /* ServerBuilderGenerator.kt:343 */
|
4027 6698 | }
|
6699 + | /* ServerBuilderGenerator.kt:426 */
|
4028 6700 | #[allow(missing_docs)] // documentation missing in model
|
6701 + | /* ServerBuilderGenerator.kt:428 */
|
4029 6702 | pub(crate) fn set_payload(
|
4030 6703 | mut self,
|
4031 6704 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4032 6705 | ) -> Self {
|
6706 + | /* ServerBuilderGenerator.kt:429 */
|
4033 6707 | self.payload = input.map(|v| v.into());
|
4034 6708 | self
|
6709 + | /* ServerBuilderGenerator.kt:428 */
|
4035 6710 | }
|
4036 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6711 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6712 + | /* ServerBuilderGenerator.kt:271 */
|
4037 6713 | pub fn build(self) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
4038 6714 | self.build_enforcing_all_constraints()
|
4039 6715 | }
|
6716 + | /* ServerBuilderGenerator.kt:283 */
|
4040 6717 | fn build_enforcing_all_constraints(
|
4041 6718 | self,
|
4042 6719 | ) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
6720 + | /* ServerBuilderGenerator.kt:542 */
|
4043 6721 | crate::input::MalformedContentTypeWithGenericStringInput {
|
6722 + | /* ServerBuilderGenerator.kt:546 */
|
4044 6723 | payload: self.payload,
|
6724 + | /* ServerBuilderGenerator.kt:542 */
|
4045 6725 | }
|
6726 + | /* ServerBuilderGenerator.kt:283 */
|
4046 6727 | }
|
6728 + | /* ServerBuilderGenerator.kt:215 */
|
4047 6729 | }
|
6730 + |
|
6731 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4048 6732 | }
|
4049 - | /// See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6733 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
4050 6734 | pub mod malformed_content_type_with_payload_input {
|
4051 6735 |
|
6736 + | /* ServerBuilderGenerator.kt:461 */
|
4052 6737 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithPayloadInput {
|
4053 6738 | fn from(builder: Builder) -> Self {
|
4054 6739 | builder.build()
|
4055 6740 | }
|
4056 6741 | }
|
4057 - | /// A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6742 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6743 + | /* RustType.kt:516 */
|
4058 6744 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6745 + | /* ServerBuilderGenerator.kt:211 */
|
4059 6746 | pub struct Builder {
|
6747 + | /* ServerBuilderGenerator.kt:308 */
|
4060 6748 | pub(crate) payload: ::std::option::Option<::aws_smithy_types::Blob>,
|
6749 + | /* ServerBuilderGenerator.kt:211 */
|
4061 6750 | }
|
6751 + | /* ServerBuilderGenerator.kt:215 */
|
4062 6752 | impl Builder {
|
6753 + | /* ServerBuilderGenerator.kt:331 */
|
4063 6754 | #[allow(missing_docs)] // documentation missing in model
|
6755 + | /* ServerBuilderGenerator.kt:343 */
|
4064 6756 | pub fn payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
4065 - | self.payload = input;
|
6757 + | /* ServerBuilderGenerator.kt:344 */
|
6758 + | self.payload =
|
6759 + | /* ServerBuilderGenerator.kt:376 */input
|
6760 + | /* ServerBuilderGenerator.kt:344 */;
|
4066 6761 | self
|
6762 + | /* ServerBuilderGenerator.kt:343 */
|
4067 6763 | }
|
6764 + | /* ServerBuilderGenerator.kt:426 */
|
4068 6765 | #[allow(missing_docs)] // documentation missing in model
|
6766 + | /* ServerBuilderGenerator.kt:428 */
|
4069 6767 | pub(crate) fn set_payload(
|
4070 6768 | mut self,
|
4071 6769 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
4072 6770 | ) -> Self {
|
6771 + | /* ServerBuilderGenerator.kt:429 */
|
4073 6772 | self.payload = input.map(|v| v.into());
|
4074 6773 | self
|
6774 + | /* ServerBuilderGenerator.kt:428 */
|
4075 6775 | }
|
4076 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6776 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6777 + | /* ServerBuilderGenerator.kt:271 */
|
4077 6778 | pub fn build(self) -> crate::input::MalformedContentTypeWithPayloadInput {
|
4078 6779 | self.build_enforcing_all_constraints()
|
4079 6780 | }
|
6781 + | /* ServerBuilderGenerator.kt:283 */
|
4080 6782 | fn build_enforcing_all_constraints(
|
4081 6783 | self,
|
4082 6784 | ) -> crate::input::MalformedContentTypeWithPayloadInput {
|
6785 + | /* ServerBuilderGenerator.kt:542 */
|
4083 6786 | crate::input::MalformedContentTypeWithPayloadInput {
|
6787 + | /* ServerBuilderGenerator.kt:546 */
|
4084 6788 | payload: self.payload,
|
6789 + | /* ServerBuilderGenerator.kt:542 */
|
4085 6790 | }
|
6791 + | /* ServerBuilderGenerator.kt:283 */
|
4086 6792 | }
|
6793 + | /* ServerBuilderGenerator.kt:215 */
|
4087 6794 | }
|
6795 + |
|
6796 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4088 6797 | }
|
4089 - | /// See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6798 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
4090 6799 | pub mod malformed_content_type_with_body_input {
|
4091 6800 |
|
6801 + | /* ServerBuilderGenerator.kt:461 */
|
4092 6802 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithBodyInput {
|
4093 6803 | fn from(builder: Builder) -> Self {
|
4094 6804 | builder.build()
|
4095 6805 | }
|
4096 6806 | }
|
4097 - | /// A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6807 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6808 + | /* RustType.kt:516 */
|
4098 6809 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6810 + | /* ServerBuilderGenerator.kt:211 */
|
4099 6811 | pub struct Builder {
|
6812 + | /* ServerBuilderGenerator.kt:308 */
|
4100 6813 | pub(crate) hi: ::std::option::Option<::std::string::String>,
|
6814 + | /* ServerBuilderGenerator.kt:211 */
|
4101 6815 | }
|
6816 + | /* ServerBuilderGenerator.kt:215 */
|
4102 6817 | impl Builder {
|
6818 + | /* ServerBuilderGenerator.kt:331 */
|
4103 6819 | #[allow(missing_docs)] // documentation missing in model
|
6820 + | /* ServerBuilderGenerator.kt:343 */
|
4104 6821 | pub fn hi(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
4105 - | self.hi = input;
|
6822 + | /* ServerBuilderGenerator.kt:344 */
|
6823 + | self.hi =
|
6824 + | /* ServerBuilderGenerator.kt:376 */input
|
6825 + | /* ServerBuilderGenerator.kt:344 */;
|
4106 6826 | self
|
6827 + | /* ServerBuilderGenerator.kt:343 */
|
4107 6828 | }
|
6829 + | /* ServerBuilderGenerator.kt:426 */
|
4108 6830 | #[allow(missing_docs)] // documentation missing in model
|
6831 + | /* ServerBuilderGenerator.kt:428 */
|
4109 6832 | pub(crate) fn set_hi(
|
4110 6833 | mut self,
|
4111 6834 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4112 6835 | ) -> Self {
|
6836 + | /* ServerBuilderGenerator.kt:429 */
|
4113 6837 | self.hi = input.map(|v| v.into());
|
4114 6838 | self
|
6839 + | /* ServerBuilderGenerator.kt:428 */
|
4115 6840 | }
|
4116 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6841 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6842 + | /* ServerBuilderGenerator.kt:271 */
|
4117 6843 | pub fn build(self) -> crate::input::MalformedContentTypeWithBodyInput {
|
4118 6844 | self.build_enforcing_all_constraints()
|
4119 6845 | }
|
6846 + | /* ServerBuilderGenerator.kt:283 */
|
4120 6847 | fn build_enforcing_all_constraints(
|
4121 6848 | self,
|
4122 6849 | ) -> crate::input::MalformedContentTypeWithBodyInput {
|
4123 - | crate::input::MalformedContentTypeWithBodyInput { hi: self.hi }
|
6850 + | /* ServerBuilderGenerator.kt:542 */
|
6851 + | crate::input::MalformedContentTypeWithBodyInput {
|
6852 + | /* ServerBuilderGenerator.kt:546 */
|
6853 + | hi: self.hi,
|
6854 + | /* ServerBuilderGenerator.kt:542 */
|
6855 + | }
|
6856 + | /* ServerBuilderGenerator.kt:283 */
|
4124 6857 | }
|
6858 + | /* ServerBuilderGenerator.kt:215 */
|
4125 6859 | }
|
6860 + |
|
6861 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4126 6862 | }
|
4127 - | /// See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
6863 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
4128 6864 | pub mod malformed_content_type_without_body_input {
|
4129 6865 |
|
6866 + | /* ServerBuilderGenerator.kt:461 */
|
4130 6867 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithoutBodyInput {
|
4131 6868 | fn from(builder: Builder) -> Self {
|
4132 6869 | builder.build()
|
4133 6870 | }
|
4134 6871 | }
|
4135 - | /// A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
6872 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
6873 + | /* RustType.kt:516 */
|
4136 6874 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4137 - | pub struct Builder {}
|
6875 + | /* ServerBuilderGenerator.kt:211 */
|
6876 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6877 + | /* ServerBuilderGenerator.kt:215 */
|
4138 6878 | impl Builder {
|
4139 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
6879 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
6880 + | /* ServerBuilderGenerator.kt:271 */
|
4140 6881 | pub fn build(self) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
4141 6882 | self.build_enforcing_all_constraints()
|
4142 6883 | }
|
6884 + | /* ServerBuilderGenerator.kt:283 */
|
4143 6885 | fn build_enforcing_all_constraints(
|
4144 6886 | self,
|
4145 6887 | ) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
4146 - | crate::input::MalformedContentTypeWithoutBodyInput {}
|
6888 + | /* ServerBuilderGenerator.kt:542 */
|
6889 + | crate::input::MalformedContentTypeWithoutBodyInput {
|
6890 + | /* ServerBuilderGenerator.kt:542 */}
|
6891 + | /* ServerBuilderGenerator.kt:283 */
|
4147 6892 | }
|
6893 + | /* ServerBuilderGenerator.kt:215 */
|
4148 6894 | }
|
6895 + |
|
6896 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4149 6897 | }
|
4150 - | /// See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
6898 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
4151 6899 | pub mod malformed_timestamp_body_http_date_input {
|
4152 6900 |
|
6901 + | /* RustType.kt:516 */
|
4153 6902 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4154 - | /// Holds one variant for each of the ways the builder can fail.
|
6903 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6904 + | /* RustType.kt:516 */
|
4155 6905 | #[non_exhaustive]
|
6906 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4156 6907 | #[allow(clippy::enum_variant_names)]
|
4157 6908 | pub enum ConstraintViolation {
|
4158 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
6909 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
6910 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4159 6911 | MissingTimestamp,
|
6912 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4160 6913 | }
|
6914 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4161 6915 | impl ::std::fmt::Display for ConstraintViolation {
|
6916 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4162 6917 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6918 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4163 6919 | match self {
|
4164 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
4165 - | }
|
6920 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
6921 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6922 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4166 6923 | }
|
6924 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4167 6925 | }
|
6926 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4168 6927 | impl ::std::error::Error for ConstraintViolation {}
|
6928 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4169 6929 | impl ConstraintViolation {
|
4170 6930 | pub(crate) fn as_validation_exception_field(
|
4171 6931 | self,
|
4172 6932 | path: ::std::string::String,
|
4173 6933 | ) -> crate::model::ValidationExceptionField {
|
4174 6934 | match self {
|
4175 6935 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4176 6936 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4177 6937 | path: path + "/timestamp",
|
4178 6938 | },
|
4179 6939 | }
|
4180 6940 | }
|
4181 6941 | }
|
6942 + | /* ServerBuilderGenerator.kt:234 */
|
4182 6943 | impl ::std::convert::From<ConstraintViolation>
|
4183 6944 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4184 6945 | {
|
4185 6946 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4186 6947 | let first_validation_exception_field =
|
4187 6948 | constraint_violation.as_validation_exception_field("".to_owned());
|
4188 6949 | let validation_exception = crate::error::ValidationException {
|
4189 6950 | message: format!(
|
4190 6951 | "1 validation error detected. {}",
|
4191 6952 | &first_validation_exception_field.message
|
4192 6953 | ),
|
4193 6954 | field_list: Some(vec![first_validation_exception_field]),
|
4194 6955 | };
|
4195 6956 | Self::ConstraintViolation(
|
4196 6957 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4197 6958 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4198 6959 | )
|
4199 6960 | }
|
4200 6961 | }
|
6962 + | /* ServerBuilderGenerator.kt:244 */
|
4201 6963 | impl ::std::convert::From<Builder>
|
4202 6964 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyHttpDateInput>
|
4203 6965 | {
|
4204 6966 | fn from(builder: Builder) -> Self {
|
4205 6967 | Self::Unconstrained(builder)
|
4206 6968 | }
|
4207 6969 | }
|
6970 + | /* ServerBuilderGenerator.kt:446 */
|
4208 6971 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyHttpDateInput {
|
4209 6972 | type Error = ConstraintViolation;
|
4210 6973 |
|
4211 6974 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4212 6975 | builder.build()
|
4213 6976 | }
|
4214 6977 | }
|
4215 - | /// A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
6978 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
6979 + | /* RustType.kt:516 */
|
4216 6980 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6981 + | /* ServerBuilderGenerator.kt:211 */
|
4217 6982 | pub struct Builder {
|
6983 + | /* ServerBuilderGenerator.kt:308 */
|
4218 6984 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
6985 + | /* ServerBuilderGenerator.kt:211 */
|
4219 6986 | }
|
6987 + | /* ServerBuilderGenerator.kt:215 */
|
4220 6988 | impl Builder {
|
6989 + | /* ServerBuilderGenerator.kt:331 */
|
4221 6990 | #[allow(missing_docs)] // documentation missing in model
|
6991 + | /* ServerBuilderGenerator.kt:343 */
|
4222 6992 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4223 - | self.timestamp = Some(input);
|
6993 + | /* ServerBuilderGenerator.kt:344 */
|
6994 + | self.timestamp =
|
6995 + | /* ServerBuilderGenerator.kt:345 */Some(
|
6996 + | /* ServerBuilderGenerator.kt:376 */input
|
6997 + | /* ServerBuilderGenerator.kt:345 */)
|
6998 + | /* ServerBuilderGenerator.kt:344 */;
|
4224 6999 | self
|
7000 + | /* ServerBuilderGenerator.kt:343 */
|
4225 7001 | }
|
7002 + | /* ServerBuilderGenerator.kt:426 */
|
4226 7003 | #[allow(missing_docs)] // documentation missing in model
|
7004 + | /* ServerBuilderGenerator.kt:428 */
|
4227 7005 | pub(crate) fn set_timestamp(
|
4228 7006 | mut self,
|
4229 7007 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4230 7008 | ) -> Self {
|
7009 + | /* ServerBuilderGenerator.kt:429 */
|
4231 7010 | self.timestamp = Some(input.into());
|
4232 7011 | self
|
7012 + | /* ServerBuilderGenerator.kt:428 */
|
4233 7013 | }
|
4234 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
4235 - | ///
|
7014 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
7015 + | /// /* ServerBuilderGenerator.kt:260 */
|
4236 7016 | /// The builder fails to construct a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) if a [`ConstraintViolation`] occurs.
|
4237 7017 | ///
|
7018 + | /* ServerBuilderGenerator.kt:271 */
|
4238 7019 | pub fn build(
|
4239 7020 | self,
|
4240 7021 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
4241 7022 | {
|
4242 7023 | self.build_enforcing_all_constraints()
|
4243 7024 | }
|
7025 + | /* ServerBuilderGenerator.kt:283 */
|
4244 7026 | fn build_enforcing_all_constraints(
|
4245 7027 | self,
|
4246 7028 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
4247 7029 | {
|
4248 - | Ok(crate::input::MalformedTimestampBodyHttpDateInput {
|
7030 + | /* ServerBuilderGenerator.kt:287 */
|
7031 + | Ok(
|
7032 + | /* ServerBuilderGenerator.kt:542 */
|
7033 + | crate::input::MalformedTimestampBodyHttpDateInput {
|
7034 + | /* ServerBuilderGenerator.kt:546 */
|
4249 7035 | timestamp: self
|
4250 7036 | .timestamp
|
7037 + | /* ServerBuilderGenerator.kt:569 */
|
4251 7038 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4252 - | })
|
7039 + | /* ServerBuilderGenerator.kt:542 */
|
7040 + | }, /* ServerBuilderGenerator.kt:287 */
|
7041 + | )
|
7042 + | /* ServerBuilderGenerator.kt:283 */
|
4253 7043 | }
|
7044 + | /* ServerBuilderGenerator.kt:215 */
|
4254 7045 | }
|
7046 + |
|
7047 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4255 7048 | }
|
4256 - | /// See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7049 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
4257 7050 | pub mod malformed_timestamp_body_date_time_input {
|
4258 7051 |
|
7052 + | /* RustType.kt:516 */
|
4259 7053 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4260 - | /// Holds one variant for each of the ways the builder can fail.
|
7054 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7055 + | /* RustType.kt:516 */
|
4261 7056 | #[non_exhaustive]
|
7057 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4262 7058 | #[allow(clippy::enum_variant_names)]
|
4263 7059 | pub enum ConstraintViolation {
|
4264 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
7060 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
7061 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4265 7062 | MissingTimestamp,
|
7063 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4266 7064 | }
|
7065 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4267 7066 | impl ::std::fmt::Display for ConstraintViolation {
|
7067 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4268 7068 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7069 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4269 7070 | match self {
|
4270 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
4271 - | }
|
7071 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
7072 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7073 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4272 7074 | }
|
7075 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4273 7076 | }
|
7077 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4274 7078 | impl ::std::error::Error for ConstraintViolation {}
|
7079 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4275 7080 | impl ConstraintViolation {
|
4276 7081 | pub(crate) fn as_validation_exception_field(
|
4277 7082 | self,
|
4278 7083 | path: ::std::string::String,
|
4279 7084 | ) -> crate::model::ValidationExceptionField {
|
4280 7085 | match self {
|
4281 7086 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4282 7087 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4283 7088 | path: path + "/timestamp",
|
4284 7089 | },
|
4285 7090 | }
|
4286 7091 | }
|
4287 7092 | }
|
7093 + | /* ServerBuilderGenerator.kt:234 */
|
4288 7094 | impl ::std::convert::From<ConstraintViolation>
|
4289 7095 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4290 7096 | {
|
4291 7097 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4292 7098 | let first_validation_exception_field =
|
4293 7099 | constraint_violation.as_validation_exception_field("".to_owned());
|
4294 7100 | let validation_exception = crate::error::ValidationException {
|
4295 7101 | message: format!(
|
4296 7102 | "1 validation error detected. {}",
|
4297 7103 | &first_validation_exception_field.message
|
4298 7104 | ),
|
4299 7105 | field_list: Some(vec![first_validation_exception_field]),
|
4300 7106 | };
|
4301 7107 | Self::ConstraintViolation(
|
4302 7108 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4303 7109 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4304 7110 | )
|
4305 7111 | }
|
4306 7112 | }
|
7113 + | /* ServerBuilderGenerator.kt:244 */
|
4307 7114 | impl ::std::convert::From<Builder>
|
4308 7115 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDateTimeInput>
|
4309 7116 | {
|
4310 7117 | fn from(builder: Builder) -> Self {
|
4311 7118 | Self::Unconstrained(builder)
|
4312 7119 | }
|
4313 7120 | }
|
7121 + | /* ServerBuilderGenerator.kt:446 */
|
4314 7122 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDateTimeInput {
|
4315 7123 | type Error = ConstraintViolation;
|
4316 7124 |
|
4317 7125 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4318 7126 | builder.build()
|
4319 7127 | }
|
4320 7128 | }
|
4321 - | /// A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7129 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7130 + | /* RustType.kt:516 */
|
4322 7131 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7132 + | /* ServerBuilderGenerator.kt:211 */
|
4323 7133 | pub struct Builder {
|
7134 + | /* ServerBuilderGenerator.kt:308 */
|
4324 7135 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7136 + | /* ServerBuilderGenerator.kt:211 */
|
4325 7137 | }
|
7138 + | /* ServerBuilderGenerator.kt:215 */
|
4326 7139 | impl Builder {
|
7140 + | /* ServerBuilderGenerator.kt:331 */
|
4327 7141 | #[allow(missing_docs)] // documentation missing in model
|
7142 + | /* ServerBuilderGenerator.kt:343 */
|
4328 7143 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4329 - | self.timestamp = Some(input);
|
7144 + | /* ServerBuilderGenerator.kt:344 */
|
7145 + | self.timestamp =
|
7146 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7147 + | /* ServerBuilderGenerator.kt:376 */input
|
7148 + | /* ServerBuilderGenerator.kt:345 */)
|
7149 + | /* ServerBuilderGenerator.kt:344 */;
|
4330 7150 | self
|
7151 + | /* ServerBuilderGenerator.kt:343 */
|
4331 7152 | }
|
7153 + | /* ServerBuilderGenerator.kt:426 */
|
4332 7154 | #[allow(missing_docs)] // documentation missing in model
|
7155 + | /* ServerBuilderGenerator.kt:428 */
|
4333 7156 | pub(crate) fn set_timestamp(
|
4334 7157 | mut self,
|
4335 7158 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4336 7159 | ) -> Self {
|
7160 + | /* ServerBuilderGenerator.kt:429 */
|
4337 7161 | self.timestamp = Some(input.into());
|
4338 7162 | self
|
7163 + | /* ServerBuilderGenerator.kt:428 */
|
4339 7164 | }
|
4340 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
4341 - | ///
|
7165 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7166 + | /// /* ServerBuilderGenerator.kt:260 */
|
4342 7167 | /// The builder fails to construct a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) if a [`ConstraintViolation`] occurs.
|
4343 7168 | ///
|
7169 + | /* ServerBuilderGenerator.kt:271 */
|
4344 7170 | pub fn build(
|
4345 7171 | self,
|
4346 7172 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
4347 7173 | {
|
4348 7174 | self.build_enforcing_all_constraints()
|
4349 7175 | }
|
7176 + | /* ServerBuilderGenerator.kt:283 */
|
4350 7177 | fn build_enforcing_all_constraints(
|
4351 7178 | self,
|
4352 7179 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
4353 7180 | {
|
4354 - | Ok(crate::input::MalformedTimestampBodyDateTimeInput {
|
7181 + | /* ServerBuilderGenerator.kt:287 */
|
7182 + | Ok(
|
7183 + | /* ServerBuilderGenerator.kt:542 */
|
7184 + | crate::input::MalformedTimestampBodyDateTimeInput {
|
7185 + | /* ServerBuilderGenerator.kt:546 */
|
4355 7186 | timestamp: self
|
4356 7187 | .timestamp
|
7188 + | /* ServerBuilderGenerator.kt:569 */
|
4357 7189 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4358 - | })
|
7190 + | /* ServerBuilderGenerator.kt:542 */
|
7191 + | }, /* ServerBuilderGenerator.kt:287 */
|
7192 + | )
|
7193 + | /* ServerBuilderGenerator.kt:283 */
|
4359 7194 | }
|
7195 + | /* ServerBuilderGenerator.kt:215 */
|
4360 7196 | }
|
7197 + |
|
7198 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4361 7199 | }
|
4362 - | /// See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7200 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
4363 7201 | pub mod malformed_timestamp_body_default_input {
|
4364 7202 |
|
7203 + | /* RustType.kt:516 */
|
4365 7204 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4366 - | /// Holds one variant for each of the ways the builder can fail.
|
7205 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7206 + | /* RustType.kt:516 */
|
4367 7207 | #[non_exhaustive]
|
7208 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4368 7209 | #[allow(clippy::enum_variant_names)]
|
4369 7210 | pub enum ConstraintViolation {
|
4370 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
7211 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
7212 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4371 7213 | MissingTimestamp,
|
7214 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4372 7215 | }
|
7216 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4373 7217 | impl ::std::fmt::Display for ConstraintViolation {
|
7218 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4374 7219 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7220 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4375 7221 | match self {
|
4376 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
4377 - | }
|
7222 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
7223 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7224 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4378 7225 | }
|
7226 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4379 7227 | }
|
7228 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4380 7229 | impl ::std::error::Error for ConstraintViolation {}
|
7230 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4381 7231 | impl ConstraintViolation {
|
4382 7232 | pub(crate) fn as_validation_exception_field(
|
4383 7233 | self,
|
4384 7234 | path: ::std::string::String,
|
4385 7235 | ) -> crate::model::ValidationExceptionField {
|
4386 7236 | match self {
|
4387 7237 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4388 7238 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4389 7239 | path: path + "/timestamp",
|
4390 7240 | },
|
4391 7241 | }
|
4392 7242 | }
|
4393 7243 | }
|
7244 + | /* ServerBuilderGenerator.kt:234 */
|
4394 7245 | impl ::std::convert::From<ConstraintViolation>
|
4395 7246 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4396 7247 | {
|
4397 7248 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4398 7249 | let first_validation_exception_field =
|
4399 7250 | constraint_violation.as_validation_exception_field("".to_owned());
|
4400 7251 | let validation_exception = crate::error::ValidationException {
|
4401 7252 | message: format!(
|
4402 7253 | "1 validation error detected. {}",
|
4403 7254 | &first_validation_exception_field.message
|
4404 7255 | ),
|
4405 7256 | field_list: Some(vec![first_validation_exception_field]),
|
4406 7257 | };
|
4407 7258 | Self::ConstraintViolation(
|
4408 7259 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4409 7260 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4410 7261 | )
|
4411 7262 | }
|
4412 7263 | }
|
7264 + | /* ServerBuilderGenerator.kt:244 */
|
4413 7265 | impl ::std::convert::From<Builder>
|
4414 7266 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDefaultInput>
|
4415 7267 | {
|
4416 7268 | fn from(builder: Builder) -> Self {
|
4417 7269 | Self::Unconstrained(builder)
|
4418 7270 | }
|
4419 7271 | }
|
7272 + | /* ServerBuilderGenerator.kt:446 */
|
4420 7273 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDefaultInput {
|
4421 7274 | type Error = ConstraintViolation;
|
4422 7275 |
|
4423 7276 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4424 7277 | builder.build()
|
4425 7278 | }
|
4426 7279 | }
|
4427 - | /// A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7280 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7281 + | /* RustType.kt:516 */
|
4428 7282 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7283 + | /* ServerBuilderGenerator.kt:211 */
|
4429 7284 | pub struct Builder {
|
7285 + | /* ServerBuilderGenerator.kt:308 */
|
4430 7286 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7287 + | /* ServerBuilderGenerator.kt:211 */
|
4431 7288 | }
|
7289 + | /* ServerBuilderGenerator.kt:215 */
|
4432 7290 | impl Builder {
|
7291 + | /* ServerBuilderGenerator.kt:331 */
|
4433 7292 | #[allow(missing_docs)] // documentation missing in model
|
7293 + | /* ServerBuilderGenerator.kt:343 */
|
4434 7294 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4435 - | self.timestamp = Some(input);
|
7295 + | /* ServerBuilderGenerator.kt:344 */
|
7296 + | self.timestamp =
|
7297 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7298 + | /* ServerBuilderGenerator.kt:376 */input
|
7299 + | /* ServerBuilderGenerator.kt:345 */)
|
7300 + | /* ServerBuilderGenerator.kt:344 */;
|
4436 7301 | self
|
7302 + | /* ServerBuilderGenerator.kt:343 */
|
4437 7303 | }
|
7304 + | /* ServerBuilderGenerator.kt:426 */
|
4438 7305 | #[allow(missing_docs)] // documentation missing in model
|
7306 + | /* ServerBuilderGenerator.kt:428 */
|
4439 7307 | pub(crate) fn set_timestamp(
|
4440 7308 | mut self,
|
4441 7309 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4442 7310 | ) -> Self {
|
7311 + | /* ServerBuilderGenerator.kt:429 */
|
4443 7312 | self.timestamp = Some(input.into());
|
4444 7313 | self
|
7314 + | /* ServerBuilderGenerator.kt:428 */
|
4445 7315 | }
|
4446 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
4447 - | ///
|
7316 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7317 + | /// /* ServerBuilderGenerator.kt:260 */
|
4448 7318 | /// The builder fails to construct a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) if a [`ConstraintViolation`] occurs.
|
4449 7319 | ///
|
7320 + | /* ServerBuilderGenerator.kt:271 */
|
4450 7321 | pub fn build(
|
4451 7322 | self,
|
4452 7323 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
4453 7324 | self.build_enforcing_all_constraints()
|
4454 7325 | }
|
7326 + | /* ServerBuilderGenerator.kt:283 */
|
4455 7327 | fn build_enforcing_all_constraints(
|
4456 7328 | self,
|
4457 7329 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
4458 - | Ok(crate::input::MalformedTimestampBodyDefaultInput {
|
7330 + | /* ServerBuilderGenerator.kt:287 */
|
7331 + | Ok(
|
7332 + | /* ServerBuilderGenerator.kt:542 */
|
7333 + | crate::input::MalformedTimestampBodyDefaultInput {
|
7334 + | /* ServerBuilderGenerator.kt:546 */
|
4459 7335 | timestamp: self
|
4460 7336 | .timestamp
|
7337 + | /* ServerBuilderGenerator.kt:569 */
|
4461 7338 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4462 - | })
|
7339 + | /* ServerBuilderGenerator.kt:542 */
|
7340 + | }, /* ServerBuilderGenerator.kt:287 */
|
7341 + | )
|
7342 + | /* ServerBuilderGenerator.kt:283 */
|
4463 7343 | }
|
7344 + | /* ServerBuilderGenerator.kt:215 */
|
4464 7345 | }
|
7346 + |
|
7347 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4465 7348 | }
|
4466 - | /// See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7349 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
4467 7350 | pub mod malformed_timestamp_header_epoch_input {
|
4468 7351 |
|
7352 + | /* RustType.kt:516 */
|
4469 7353 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4470 - | /// Holds one variant for each of the ways the builder can fail.
|
7354 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7355 + | /* RustType.kt:516 */
|
4471 7356 | #[non_exhaustive]
|
7357 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4472 7358 | #[allow(clippy::enum_variant_names)]
|
4473 7359 | pub enum ConstraintViolation {
|
4474 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
7360 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
7361 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4475 7362 | MissingTimestamp,
|
7363 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4476 7364 | }
|
7365 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4477 7366 | impl ::std::fmt::Display for ConstraintViolation {
|
7367 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4478 7368 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7369 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4479 7370 | match self {
|
4480 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
4481 - | }
|
7371 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
7372 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7373 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4482 7374 | }
|
7375 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4483 7376 | }
|
7377 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4484 7378 | impl ::std::error::Error for ConstraintViolation {}
|
7379 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4485 7380 | impl ConstraintViolation {
|
4486 7381 | pub(crate) fn as_validation_exception_field(
|
4487 7382 | self,
|
4488 7383 | path: ::std::string::String,
|
4489 7384 | ) -> crate::model::ValidationExceptionField {
|
4490 7385 | match self {
|
4491 7386 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4492 7387 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4493 7388 | path: path + "/timestamp",
|
4494 7389 | },
|
4495 7390 | }
|
4496 7391 | }
|
4497 7392 | }
|
7393 + | /* ServerBuilderGenerator.kt:234 */
|
4498 7394 | impl ::std::convert::From<ConstraintViolation>
|
4499 7395 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4500 7396 | {
|
4501 7397 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4502 7398 | let first_validation_exception_field =
|
4503 7399 | constraint_violation.as_validation_exception_field("".to_owned());
|
4504 7400 | let validation_exception = crate::error::ValidationException {
|
4505 7401 | message: format!(
|
4506 7402 | "1 validation error detected. {}",
|
4507 7403 | &first_validation_exception_field.message
|
4508 7404 | ),
|
4509 7405 | field_list: Some(vec![first_validation_exception_field]),
|
4510 7406 | };
|
4511 7407 | Self::ConstraintViolation(
|
4512 7408 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4513 7409 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4514 7410 | )
|
4515 7411 | }
|
4516 7412 | }
|
7413 + | /* ServerBuilderGenerator.kt:244 */
|
4517 7414 | impl ::std::convert::From<Builder>
|
4518 7415 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderEpochInput>
|
4519 7416 | {
|
4520 7417 | fn from(builder: Builder) -> Self {
|
4521 7418 | Self::Unconstrained(builder)
|
4522 7419 | }
|
4523 7420 | }
|
7421 + | /* ServerBuilderGenerator.kt:446 */
|
4524 7422 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderEpochInput {
|
4525 7423 | type Error = ConstraintViolation;
|
4526 7424 |
|
4527 7425 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4528 7426 | builder.build()
|
4529 7427 | }
|
4530 7428 | }
|
4531 - | /// A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7429 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7430 + | /* RustType.kt:516 */
|
4532 7431 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7432 + | /* ServerBuilderGenerator.kt:211 */
|
4533 7433 | pub struct Builder {
|
7434 + | /* ServerBuilderGenerator.kt:308 */
|
4534 7435 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7436 + | /* ServerBuilderGenerator.kt:211 */
|
4535 7437 | }
|
7438 + | /* ServerBuilderGenerator.kt:215 */
|
4536 7439 | impl Builder {
|
7440 + | /* ServerBuilderGenerator.kt:331 */
|
4537 7441 | #[allow(missing_docs)] // documentation missing in model
|
7442 + | /* ServerBuilderGenerator.kt:343 */
|
4538 7443 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4539 - | self.timestamp = Some(input);
|
7444 + | /* ServerBuilderGenerator.kt:344 */
|
7445 + | self.timestamp =
|
7446 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7447 + | /* ServerBuilderGenerator.kt:376 */input
|
7448 + | /* ServerBuilderGenerator.kt:345 */)
|
7449 + | /* ServerBuilderGenerator.kt:344 */;
|
4540 7450 | self
|
7451 + | /* ServerBuilderGenerator.kt:343 */
|
4541 7452 | }
|
7453 + | /* ServerBuilderGenerator.kt:426 */
|
4542 7454 | #[allow(missing_docs)] // documentation missing in model
|
7455 + | /* ServerBuilderGenerator.kt:428 */
|
4543 7456 | pub(crate) fn set_timestamp(
|
4544 7457 | mut self,
|
4545 7458 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4546 7459 | ) -> Self {
|
7460 + | /* ServerBuilderGenerator.kt:429 */
|
4547 7461 | self.timestamp = Some(input.into());
|
4548 7462 | self
|
7463 + | /* ServerBuilderGenerator.kt:428 */
|
4549 7464 | }
|
4550 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
4551 - | ///
|
7465 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7466 + | /// /* ServerBuilderGenerator.kt:260 */
|
4552 7467 | /// The builder fails to construct a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) if a [`ConstraintViolation`] occurs.
|
4553 7468 | ///
|
7469 + | /* ServerBuilderGenerator.kt:271 */
|
4554 7470 | pub fn build(
|
4555 7471 | self,
|
4556 7472 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
4557 7473 | self.build_enforcing_all_constraints()
|
4558 7474 | }
|
7475 + | /* ServerBuilderGenerator.kt:283 */
|
4559 7476 | fn build_enforcing_all_constraints(
|
4560 7477 | self,
|
4561 7478 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
4562 - | Ok(crate::input::MalformedTimestampHeaderEpochInput {
|
7479 + | /* ServerBuilderGenerator.kt:287 */
|
7480 + | Ok(
|
7481 + | /* ServerBuilderGenerator.kt:542 */
|
7482 + | crate::input::MalformedTimestampHeaderEpochInput {
|
7483 + | /* ServerBuilderGenerator.kt:546 */
|
4563 7484 | timestamp: self
|
4564 7485 | .timestamp
|
7486 + | /* ServerBuilderGenerator.kt:569 */
|
4565 7487 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4566 - | })
|
7488 + | /* ServerBuilderGenerator.kt:542 */
|
7489 + | }, /* ServerBuilderGenerator.kt:287 */
|
7490 + | )
|
7491 + | /* ServerBuilderGenerator.kt:283 */
|
4567 7492 | }
|
7493 + | /* ServerBuilderGenerator.kt:215 */
|
4568 7494 | }
|
7495 + |
|
7496 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4569 7497 | }
|
4570 - | /// See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7498 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
4571 7499 | pub mod malformed_timestamp_header_date_time_input {
|
4572 7500 |
|
7501 + | /* RustType.kt:516 */
|
4573 7502 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4574 - | /// Holds one variant for each of the ways the builder can fail.
|
7503 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7504 + | /* RustType.kt:516 */
|
4575 7505 | #[non_exhaustive]
|
7506 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4576 7507 | #[allow(clippy::enum_variant_names)]
|
4577 7508 | pub enum ConstraintViolation {
|
4578 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
7509 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
7510 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4579 7511 | MissingTimestamp,
|
7512 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4580 7513 | }
|
7514 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4581 7515 | impl ::std::fmt::Display for ConstraintViolation {
|
7516 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4582 7517 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7518 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4583 7519 | match self {
|
4584 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
4585 - | }
|
7520 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
7521 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7522 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4586 7523 | }
|
7524 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4587 7525 | }
|
7526 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4588 7527 | impl ::std::error::Error for ConstraintViolation {}
|
7528 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4589 7529 | impl ConstraintViolation {
|
4590 7530 | pub(crate) fn as_validation_exception_field(
|
4591 7531 | self,
|
4592 7532 | path: ::std::string::String,
|
4593 7533 | ) -> crate::model::ValidationExceptionField {
|
4594 7534 | match self {
|
4595 7535 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4596 7536 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4597 7537 | path: path + "/timestamp",
|
4598 7538 | },
|
4599 7539 | }
|
4600 7540 | }
|
4601 7541 | }
|
7542 + | /* ServerBuilderGenerator.kt:234 */
|
4602 7543 | impl ::std::convert::From<ConstraintViolation>
|
4603 7544 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4604 7545 | {
|
4605 7546 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4606 7547 | let first_validation_exception_field =
|
4607 7548 | constraint_violation.as_validation_exception_field("".to_owned());
|
4608 7549 | let validation_exception = crate::error::ValidationException {
|
4609 7550 | message: format!(
|
4610 7551 | "1 validation error detected. {}",
|
4611 7552 | &first_validation_exception_field.message
|
4612 7553 | ),
|
4613 7554 | field_list: Some(vec![first_validation_exception_field]),
|
4614 7555 | };
|
4615 7556 | Self::ConstraintViolation(
|
4616 7557 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4617 7558 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4618 7559 | )
|
4619 7560 | }
|
4620 7561 | }
|
7562 + | /* ServerBuilderGenerator.kt:244 */
|
4621 7563 | impl ::std::convert::From<Builder>
|
4622 7564 | for crate::constrained::MaybeConstrained<
|
4623 7565 | crate::input::MalformedTimestampHeaderDateTimeInput,
|
4624 7566 | >
|
4625 7567 | {
|
4626 7568 | fn from(builder: Builder) -> Self {
|
4627 7569 | Self::Unconstrained(builder)
|
4628 7570 | }
|
4629 7571 | }
|
7572 + | /* ServerBuilderGenerator.kt:446 */
|
4630 7573 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDateTimeInput {
|
4631 7574 | type Error = ConstraintViolation;
|
4632 7575 |
|
4633 7576 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4634 7577 | builder.build()
|
4635 7578 | }
|
4636 7579 | }
|
4637 - | /// A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7580 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7581 + | /* RustType.kt:516 */
|
4638 7582 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7583 + | /* ServerBuilderGenerator.kt:211 */
|
4639 7584 | pub struct Builder {
|
7585 + | /* ServerBuilderGenerator.kt:308 */
|
4640 7586 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7587 + | /* ServerBuilderGenerator.kt:211 */
|
4641 7588 | }
|
7589 + | /* ServerBuilderGenerator.kt:215 */
|
4642 7590 | impl Builder {
|
7591 + | /* ServerBuilderGenerator.kt:331 */
|
4643 7592 | #[allow(missing_docs)] // documentation missing in model
|
7593 + | /* ServerBuilderGenerator.kt:343 */
|
4644 7594 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4645 - | self.timestamp = Some(input);
|
7595 + | /* ServerBuilderGenerator.kt:344 */
|
7596 + | self.timestamp =
|
7597 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7598 + | /* ServerBuilderGenerator.kt:376 */input
|
7599 + | /* ServerBuilderGenerator.kt:345 */)
|
7600 + | /* ServerBuilderGenerator.kt:344 */;
|
4646 7601 | self
|
7602 + | /* ServerBuilderGenerator.kt:343 */
|
4647 7603 | }
|
7604 + | /* ServerBuilderGenerator.kt:426 */
|
4648 7605 | #[allow(missing_docs)] // documentation missing in model
|
7606 + | /* ServerBuilderGenerator.kt:428 */
|
4649 7607 | pub(crate) fn set_timestamp(
|
4650 7608 | mut self,
|
4651 7609 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4652 7610 | ) -> Self {
|
7611 + | /* ServerBuilderGenerator.kt:429 */
|
4653 7612 | self.timestamp = Some(input.into());
|
4654 7613 | self
|
7614 + | /* ServerBuilderGenerator.kt:428 */
|
4655 7615 | }
|
4656 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
4657 - | ///
|
7616 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7617 + | /// /* ServerBuilderGenerator.kt:260 */
|
4658 7618 | /// The builder fails to construct a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) if a [`ConstraintViolation`] occurs.
|
4659 7619 | ///
|
7620 + | /* ServerBuilderGenerator.kt:271 */
|
4660 7621 | pub fn build(
|
4661 7622 | self,
|
4662 7623 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
4663 7624 | {
|
4664 7625 | self.build_enforcing_all_constraints()
|
4665 7626 | }
|
7627 + | /* ServerBuilderGenerator.kt:283 */
|
4666 7628 | fn build_enforcing_all_constraints(
|
4667 7629 | self,
|
4668 7630 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
4669 7631 | {
|
4670 - | Ok(crate::input::MalformedTimestampHeaderDateTimeInput {
|
7632 + | /* ServerBuilderGenerator.kt:287 */
|
7633 + | Ok(
|
7634 + | /* ServerBuilderGenerator.kt:542 */
|
7635 + | crate::input::MalformedTimestampHeaderDateTimeInput {
|
7636 + | /* ServerBuilderGenerator.kt:546 */
|
4671 7637 | timestamp: self
|
4672 7638 | .timestamp
|
7639 + | /* ServerBuilderGenerator.kt:569 */
|
4673 7640 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4674 - | })
|
7641 + | /* ServerBuilderGenerator.kt:542 */
|
7642 + | }, /* ServerBuilderGenerator.kt:287 */
|
7643 + | )
|
7644 + | /* ServerBuilderGenerator.kt:283 */
|
4675 7645 | }
|
7646 + | /* ServerBuilderGenerator.kt:215 */
|
4676 7647 | }
|
7648 + |
|
7649 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4677 7650 | }
|
4678 - | /// See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7651 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
4679 7652 | pub mod malformed_timestamp_header_default_input {
|
4680 7653 |
|
7654 + | /* RustType.kt:516 */
|
4681 7655 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4682 - | /// Holds one variant for each of the ways the builder can fail.
|
7656 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7657 + | /* RustType.kt:516 */
|
4683 7658 | #[non_exhaustive]
|
7659 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4684 7660 | #[allow(clippy::enum_variant_names)]
|
4685 7661 | pub enum ConstraintViolation {
|
4686 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
7662 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
7663 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4687 7664 | MissingTimestamp,
|
7665 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4688 7666 | }
|
7667 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4689 7668 | impl ::std::fmt::Display for ConstraintViolation {
|
7669 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4690 7670 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7671 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4691 7672 | match self {
|
4692 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
4693 - | }
|
7673 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
7674 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7675 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4694 7676 | }
|
7677 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4695 7678 | }
|
7679 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4696 7680 | impl ::std::error::Error for ConstraintViolation {}
|
7681 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4697 7682 | impl ConstraintViolation {
|
4698 7683 | pub(crate) fn as_validation_exception_field(
|
4699 7684 | self,
|
4700 7685 | path: ::std::string::String,
|
4701 7686 | ) -> crate::model::ValidationExceptionField {
|
4702 7687 | match self {
|
4703 7688 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4704 7689 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4705 7690 | path: path + "/timestamp",
|
4706 7691 | },
|
4707 7692 | }
|
4708 7693 | }
|
4709 7694 | }
|
7695 + | /* ServerBuilderGenerator.kt:234 */
|
4710 7696 | impl ::std::convert::From<ConstraintViolation>
|
4711 7697 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4712 7698 | {
|
4713 7699 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4714 7700 | let first_validation_exception_field =
|
4715 7701 | constraint_violation.as_validation_exception_field("".to_owned());
|
4716 7702 | let validation_exception = crate::error::ValidationException {
|
4717 7703 | message: format!(
|
4718 7704 | "1 validation error detected. {}",
|
4719 7705 | &first_validation_exception_field.message
|
4720 7706 | ),
|
4721 7707 | field_list: Some(vec![first_validation_exception_field]),
|
4722 7708 | };
|
4723 7709 | Self::ConstraintViolation(
|
4724 7710 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4725 7711 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4726 7712 | )
|
4727 7713 | }
|
4728 7714 | }
|
7715 + | /* ServerBuilderGenerator.kt:244 */
|
4729 7716 | impl ::std::convert::From<Builder>
|
4730 7717 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderDefaultInput>
|
4731 7718 | {
|
4732 7719 | fn from(builder: Builder) -> Self {
|
4733 7720 | Self::Unconstrained(builder)
|
4734 7721 | }
|
4735 7722 | }
|
7723 + | /* ServerBuilderGenerator.kt:446 */
|
4736 7724 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDefaultInput {
|
4737 7725 | type Error = ConstraintViolation;
|
4738 7726 |
|
4739 7727 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4740 7728 | builder.build()
|
4741 7729 | }
|
4742 7730 | }
|
4743 - | /// A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7731 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7732 + | /* RustType.kt:516 */
|
4744 7733 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7734 + | /* ServerBuilderGenerator.kt:211 */
|
4745 7735 | pub struct Builder {
|
7736 + | /* ServerBuilderGenerator.kt:308 */
|
4746 7737 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7738 + | /* ServerBuilderGenerator.kt:211 */
|
4747 7739 | }
|
7740 + | /* ServerBuilderGenerator.kt:215 */
|
4748 7741 | impl Builder {
|
7742 + | /* ServerBuilderGenerator.kt:331 */
|
4749 7743 | #[allow(missing_docs)] // documentation missing in model
|
7744 + | /* ServerBuilderGenerator.kt:343 */
|
4750 7745 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4751 - | self.timestamp = Some(input);
|
7746 + | /* ServerBuilderGenerator.kt:344 */
|
7747 + | self.timestamp =
|
7748 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7749 + | /* ServerBuilderGenerator.kt:376 */input
|
7750 + | /* ServerBuilderGenerator.kt:345 */)
|
7751 + | /* ServerBuilderGenerator.kt:344 */;
|
4752 7752 | self
|
7753 + | /* ServerBuilderGenerator.kt:343 */
|
4753 7754 | }
|
7755 + | /* ServerBuilderGenerator.kt:426 */
|
4754 7756 | #[allow(missing_docs)] // documentation missing in model
|
7757 + | /* ServerBuilderGenerator.kt:428 */
|
4755 7758 | pub(crate) fn set_timestamp(
|
4756 7759 | mut self,
|
4757 7760 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4758 7761 | ) -> Self {
|
7762 + | /* ServerBuilderGenerator.kt:429 */
|
4759 7763 | self.timestamp = Some(input.into());
|
4760 7764 | self
|
7765 + | /* ServerBuilderGenerator.kt:428 */
|
4761 7766 | }
|
4762 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
4763 - | ///
|
7767 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7768 + | /// /* ServerBuilderGenerator.kt:260 */
|
4764 7769 | /// The builder fails to construct a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) if a [`ConstraintViolation`] occurs.
|
4765 7770 | ///
|
7771 + | /* ServerBuilderGenerator.kt:271 */
|
4766 7772 | pub fn build(
|
4767 7773 | self,
|
4768 7774 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
4769 7775 | {
|
4770 7776 | self.build_enforcing_all_constraints()
|
4771 7777 | }
|
7778 + | /* ServerBuilderGenerator.kt:283 */
|
4772 7779 | fn build_enforcing_all_constraints(
|
4773 7780 | self,
|
4774 7781 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
4775 7782 | {
|
4776 - | Ok(crate::input::MalformedTimestampHeaderDefaultInput {
|
7783 + | /* ServerBuilderGenerator.kt:287 */
|
7784 + | Ok(
|
7785 + | /* ServerBuilderGenerator.kt:542 */
|
7786 + | crate::input::MalformedTimestampHeaderDefaultInput {
|
7787 + | /* ServerBuilderGenerator.kt:546 */
|
4777 7788 | timestamp: self
|
4778 7789 | .timestamp
|
7790 + | /* ServerBuilderGenerator.kt:569 */
|
4779 7791 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4780 - | })
|
7792 + | /* ServerBuilderGenerator.kt:542 */
|
7793 + | }, /* ServerBuilderGenerator.kt:287 */
|
7794 + | )
|
7795 + | /* ServerBuilderGenerator.kt:283 */
|
4781 7796 | }
|
7797 + | /* ServerBuilderGenerator.kt:215 */
|
4782 7798 | }
|
7799 + |
|
7800 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4783 7801 | }
|
4784 - | /// See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
7802 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
4785 7803 | pub mod malformed_timestamp_query_epoch_input {
|
4786 7804 |
|
7805 + | /* RustType.kt:516 */
|
4787 7806 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4788 - | /// Holds one variant for each of the ways the builder can fail.
|
7807 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7808 + | /* RustType.kt:516 */
|
4789 7809 | #[non_exhaustive]
|
7810 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4790 7811 | #[allow(clippy::enum_variant_names)]
|
4791 7812 | pub enum ConstraintViolation {
|
4792 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
7813 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
7814 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4793 7815 | MissingTimestamp,
|
7816 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4794 7817 | }
|
7818 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4795 7819 | impl ::std::fmt::Display for ConstraintViolation {
|
7820 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4796 7821 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7822 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4797 7823 | match self {
|
4798 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
4799 - | }
|
7824 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
7825 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7826 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4800 7827 | }
|
7828 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4801 7829 | }
|
7830 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4802 7831 | impl ::std::error::Error for ConstraintViolation {}
|
7832 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4803 7833 | impl ConstraintViolation {
|
4804 7834 | pub(crate) fn as_validation_exception_field(
|
4805 7835 | self,
|
4806 7836 | path: ::std::string::String,
|
4807 7837 | ) -> crate::model::ValidationExceptionField {
|
4808 7838 | match self {
|
4809 7839 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4810 7840 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4811 7841 | path: path + "/timestamp",
|
4812 7842 | },
|
4813 7843 | }
|
4814 7844 | }
|
4815 7845 | }
|
7846 + | /* ServerBuilderGenerator.kt:234 */
|
4816 7847 | impl ::std::convert::From<ConstraintViolation>
|
4817 7848 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4818 7849 | {
|
4819 7850 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4820 7851 | let first_validation_exception_field =
|
4821 7852 | constraint_violation.as_validation_exception_field("".to_owned());
|
4822 7853 | let validation_exception = crate::error::ValidationException {
|
4823 7854 | message: format!(
|
4824 7855 | "1 validation error detected. {}",
|
4825 7856 | &first_validation_exception_field.message
|
4826 7857 | ),
|
4827 7858 | field_list: Some(vec![first_validation_exception_field]),
|
4828 7859 | };
|
4829 7860 | Self::ConstraintViolation(
|
4830 7861 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4831 7862 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4832 7863 | )
|
4833 7864 | }
|
4834 7865 | }
|
7866 + | /* ServerBuilderGenerator.kt:244 */
|
4835 7867 | impl ::std::convert::From<Builder>
|
4836 7868 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryEpochInput>
|
4837 7869 | {
|
4838 7870 | fn from(builder: Builder) -> Self {
|
4839 7871 | Self::Unconstrained(builder)
|
4840 7872 | }
|
4841 7873 | }
|
7874 + | /* ServerBuilderGenerator.kt:446 */
|
4842 7875 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryEpochInput {
|
4843 7876 | type Error = ConstraintViolation;
|
4844 7877 |
|
4845 7878 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4846 7879 | builder.build()
|
4847 7880 | }
|
4848 7881 | }
|
4849 - | /// A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
7882 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
7883 + | /* RustType.kt:516 */
|
4850 7884 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7885 + | /* ServerBuilderGenerator.kt:211 */
|
4851 7886 | pub struct Builder {
|
7887 + | /* ServerBuilderGenerator.kt:308 */
|
4852 7888 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7889 + | /* ServerBuilderGenerator.kt:211 */
|
4853 7890 | }
|
7891 + | /* ServerBuilderGenerator.kt:215 */
|
4854 7892 | impl Builder {
|
7893 + | /* ServerBuilderGenerator.kt:331 */
|
4855 7894 | #[allow(missing_docs)] // documentation missing in model
|
7895 + | /* ServerBuilderGenerator.kt:343 */
|
4856 7896 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4857 - | self.timestamp = Some(input);
|
7897 + | /* ServerBuilderGenerator.kt:344 */
|
7898 + | self.timestamp =
|
7899 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7900 + | /* ServerBuilderGenerator.kt:376 */input
|
7901 + | /* ServerBuilderGenerator.kt:345 */)
|
7902 + | /* ServerBuilderGenerator.kt:344 */;
|
4858 7903 | self
|
7904 + | /* ServerBuilderGenerator.kt:343 */
|
4859 7905 | }
|
7906 + | /* ServerBuilderGenerator.kt:426 */
|
4860 7907 | #[allow(missing_docs)] // documentation missing in model
|
7908 + | /* ServerBuilderGenerator.kt:428 */
|
4861 7909 | pub(crate) fn set_timestamp(
|
4862 7910 | mut self,
|
4863 7911 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4864 7912 | ) -> Self {
|
7913 + | /* ServerBuilderGenerator.kt:429 */
|
4865 7914 | self.timestamp = Some(input.into());
|
4866 7915 | self
|
7916 + | /* ServerBuilderGenerator.kt:428 */
|
4867 7917 | }
|
4868 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
4869 - | ///
|
7918 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
7919 + | /// /* ServerBuilderGenerator.kt:260 */
|
4870 7920 | /// The builder fails to construct a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) if a [`ConstraintViolation`] occurs.
|
4871 7921 | ///
|
7922 + | /* ServerBuilderGenerator.kt:271 */
|
4872 7923 | pub fn build(
|
4873 7924 | self,
|
4874 7925 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
4875 7926 | self.build_enforcing_all_constraints()
|
4876 7927 | }
|
7928 + | /* ServerBuilderGenerator.kt:283 */
|
4877 7929 | fn build_enforcing_all_constraints(
|
4878 7930 | self,
|
4879 7931 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
4880 - | Ok(crate::input::MalformedTimestampQueryEpochInput {
|
7932 + | /* ServerBuilderGenerator.kt:287 */
|
7933 + | Ok(
|
7934 + | /* ServerBuilderGenerator.kt:542 */
|
7935 + | crate::input::MalformedTimestampQueryEpochInput {
|
7936 + | /* ServerBuilderGenerator.kt:546 */
|
4881 7937 | timestamp: self
|
4882 7938 | .timestamp
|
7939 + | /* ServerBuilderGenerator.kt:569 */
|
4883 7940 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4884 - | })
|
7941 + | /* ServerBuilderGenerator.kt:542 */
|
7942 + | }, /* ServerBuilderGenerator.kt:287 */
|
7943 + | )
|
7944 + | /* ServerBuilderGenerator.kt:283 */
|
4885 7945 | }
|
7946 + | /* ServerBuilderGenerator.kt:215 */
|
4886 7947 | }
|
7948 + |
|
7949 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4887 7950 | }
|
4888 - | /// See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
7951 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
4889 7952 | pub mod malformed_timestamp_query_http_date_input {
|
4890 7953 |
|
7954 + | /* RustType.kt:516 */
|
4891 7955 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4892 - | /// Holds one variant for each of the ways the builder can fail.
|
7956 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7957 + | /* RustType.kt:516 */
|
4893 7958 | #[non_exhaustive]
|
7959 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4894 7960 | #[allow(clippy::enum_variant_names)]
|
4895 7961 | pub enum ConstraintViolation {
|
4896 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
7962 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
7963 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4897 7964 | MissingTimestamp,
|
7965 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4898 7966 | }
|
7967 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4899 7968 | impl ::std::fmt::Display for ConstraintViolation {
|
7969 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4900 7970 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7971 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4901 7972 | match self {
|
4902 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
4903 - | }
|
7973 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
7974 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7975 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4904 7976 | }
|
7977 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4905 7978 | }
|
7979 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4906 7980 | impl ::std::error::Error for ConstraintViolation {}
|
7981 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4907 7982 | impl ConstraintViolation {
|
4908 7983 | pub(crate) fn as_validation_exception_field(
|
4909 7984 | self,
|
4910 7985 | path: ::std::string::String,
|
4911 7986 | ) -> crate::model::ValidationExceptionField {
|
4912 7987 | match self {
|
4913 7988 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4914 7989 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4915 7990 | path: path + "/timestamp",
|
4916 7991 | },
|
4917 7992 | }
|
4918 7993 | }
|
4919 7994 | }
|
7995 + | /* ServerBuilderGenerator.kt:234 */
|
4920 7996 | impl ::std::convert::From<ConstraintViolation>
|
4921 7997 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4922 7998 | {
|
4923 7999 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4924 8000 | let first_validation_exception_field =
|
4925 8001 | constraint_violation.as_validation_exception_field("".to_owned());
|
4926 8002 | let validation_exception = crate::error::ValidationException {
|
4927 8003 | message: format!(
|
4928 8004 | "1 validation error detected. {}",
|
4929 8005 | &first_validation_exception_field.message
|
4930 8006 | ),
|
4931 8007 | field_list: Some(vec![first_validation_exception_field]),
|
4932 8008 | };
|
4933 8009 | Self::ConstraintViolation(
|
4934 8010 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4935 8011 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4936 8012 | )
|
4937 8013 | }
|
4938 8014 | }
|
8015 + | /* ServerBuilderGenerator.kt:244 */
|
4939 8016 | impl ::std::convert::From<Builder>
|
4940 8017 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryHttpDateInput>
|
4941 8018 | {
|
4942 8019 | fn from(builder: Builder) -> Self {
|
4943 8020 | Self::Unconstrained(builder)
|
4944 8021 | }
|
4945 8022 | }
|
8023 + | /* ServerBuilderGenerator.kt:446 */
|
4946 8024 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryHttpDateInput {
|
4947 8025 | type Error = ConstraintViolation;
|
4948 8026 |
|
4949 8027 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4950 8028 | builder.build()
|
4951 8029 | }
|
4952 8030 | }
|
4953 - | /// A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8031 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8032 + | /* RustType.kt:516 */
|
4954 8033 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8034 + | /* ServerBuilderGenerator.kt:211 */
|
4955 8035 | pub struct Builder {
|
8036 + | /* ServerBuilderGenerator.kt:308 */
|
4956 8037 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8038 + | /* ServerBuilderGenerator.kt:211 */
|
4957 8039 | }
|
8040 + | /* ServerBuilderGenerator.kt:215 */
|
4958 8041 | impl Builder {
|
8042 + | /* ServerBuilderGenerator.kt:331 */
|
4959 8043 | #[allow(missing_docs)] // documentation missing in model
|
8044 + | /* ServerBuilderGenerator.kt:343 */
|
4960 8045 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4961 - | self.timestamp = Some(input);
|
8046 + | /* ServerBuilderGenerator.kt:344 */
|
8047 + | self.timestamp =
|
8048 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8049 + | /* ServerBuilderGenerator.kt:376 */input
|
8050 + | /* ServerBuilderGenerator.kt:345 */)
|
8051 + | /* ServerBuilderGenerator.kt:344 */;
|
4962 8052 | self
|
8053 + | /* ServerBuilderGenerator.kt:343 */
|
4963 8054 | }
|
8055 + | /* ServerBuilderGenerator.kt:426 */
|
4964 8056 | #[allow(missing_docs)] // documentation missing in model
|
8057 + | /* ServerBuilderGenerator.kt:428 */
|
4965 8058 | pub(crate) fn set_timestamp(
|
4966 8059 | mut self,
|
4967 8060 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4968 8061 | ) -> Self {
|
8062 + | /* ServerBuilderGenerator.kt:429 */
|
4969 8063 | self.timestamp = Some(input.into());
|
4970 8064 | self
|
8065 + | /* ServerBuilderGenerator.kt:428 */
|
4971 8066 | }
|
4972 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
4973 - | ///
|
8067 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8068 + | /// /* ServerBuilderGenerator.kt:260 */
|
4974 8069 | /// The builder fails to construct a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) if a [`ConstraintViolation`] occurs.
|
4975 8070 | ///
|
8071 + | /* ServerBuilderGenerator.kt:271 */
|
4976 8072 | pub fn build(
|
4977 8073 | self,
|
4978 8074 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
4979 8075 | {
|
4980 8076 | self.build_enforcing_all_constraints()
|
4981 8077 | }
|
8078 + | /* ServerBuilderGenerator.kt:283 */
|
4982 8079 | fn build_enforcing_all_constraints(
|
4983 8080 | self,
|
4984 8081 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
4985 8082 | {
|
4986 - | Ok(crate::input::MalformedTimestampQueryHttpDateInput {
|
8083 + | /* ServerBuilderGenerator.kt:287 */
|
8084 + | Ok(
|
8085 + | /* ServerBuilderGenerator.kt:542 */
|
8086 + | crate::input::MalformedTimestampQueryHttpDateInput {
|
8087 + | /* ServerBuilderGenerator.kt:546 */
|
4987 8088 | timestamp: self
|
4988 8089 | .timestamp
|
8090 + | /* ServerBuilderGenerator.kt:569 */
|
4989 8091 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4990 - | })
|
8092 + | /* ServerBuilderGenerator.kt:542 */
|
8093 + | }, /* ServerBuilderGenerator.kt:287 */
|
8094 + | )
|
8095 + | /* ServerBuilderGenerator.kt:283 */
|
4991 8096 | }
|
8097 + | /* ServerBuilderGenerator.kt:215 */
|
4992 8098 | }
|
8099 + |
|
8100 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4993 8101 | }
|
4994 - | /// See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8102 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
4995 8103 | pub mod malformed_timestamp_query_default_input {
|
4996 8104 |
|
8105 + | /* RustType.kt:516 */
|
4997 8106 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4998 - | /// Holds one variant for each of the ways the builder can fail.
|
8107 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8108 + | /* RustType.kt:516 */
|
4999 8109 | #[non_exhaustive]
|
8110 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5000 8111 | #[allow(clippy::enum_variant_names)]
|
5001 8112 | pub enum ConstraintViolation {
|
5002 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
8113 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
8114 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5003 8115 | MissingTimestamp,
|
8116 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5004 8117 | }
|
8118 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5005 8119 | impl ::std::fmt::Display for ConstraintViolation {
|
8120 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5006 8121 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8122 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5007 8123 | match self {
|
5008 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
5009 - | }
|
8124 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
8125 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8126 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5010 8127 | }
|
8128 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5011 8129 | }
|
8130 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5012 8131 | impl ::std::error::Error for ConstraintViolation {}
|
8132 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5013 8133 | impl ConstraintViolation {
|
5014 8134 | pub(crate) fn as_validation_exception_field(
|
5015 8135 | self,
|
5016 8136 | path: ::std::string::String,
|
5017 8137 | ) -> crate::model::ValidationExceptionField {
|
5018 8138 | match self {
|
5019 8139 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5020 8140 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5021 8141 | path: path + "/timestamp",
|
5022 8142 | },
|
5023 8143 | }
|
5024 8144 | }
|
5025 8145 | }
|
8146 + | /* ServerBuilderGenerator.kt:234 */
|
5026 8147 | impl ::std::convert::From<ConstraintViolation>
|
5027 8148 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5028 8149 | {
|
5029 8150 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5030 8151 | let first_validation_exception_field =
|
5031 8152 | constraint_violation.as_validation_exception_field("".to_owned());
|
5032 8153 | let validation_exception = crate::error::ValidationException {
|
5033 8154 | message: format!(
|
5034 8155 | "1 validation error detected. {}",
|
5035 8156 | &first_validation_exception_field.message
|
5036 8157 | ),
|
5037 8158 | field_list: Some(vec![first_validation_exception_field]),
|
5038 8159 | };
|
5039 8160 | Self::ConstraintViolation(
|
5040 8161 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5041 8162 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5042 8163 | )
|
5043 8164 | }
|
5044 8165 | }
|
8166 + | /* ServerBuilderGenerator.kt:244 */
|
5045 8167 | impl ::std::convert::From<Builder>
|
5046 8168 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryDefaultInput>
|
5047 8169 | {
|
5048 8170 | fn from(builder: Builder) -> Self {
|
5049 8171 | Self::Unconstrained(builder)
|
5050 8172 | }
|
5051 8173 | }
|
8174 + | /* ServerBuilderGenerator.kt:446 */
|
5052 8175 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryDefaultInput {
|
5053 8176 | type Error = ConstraintViolation;
|
5054 8177 |
|
5055 8178 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5056 8179 | builder.build()
|
5057 8180 | }
|
5058 8181 | }
|
5059 - | /// A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8182 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8183 + | /* RustType.kt:516 */
|
5060 8184 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8185 + | /* ServerBuilderGenerator.kt:211 */
|
5061 8186 | pub struct Builder {
|
8187 + | /* ServerBuilderGenerator.kt:308 */
|
5062 8188 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8189 + | /* ServerBuilderGenerator.kt:211 */
|
5063 8190 | }
|
8191 + | /* ServerBuilderGenerator.kt:215 */
|
5064 8192 | impl Builder {
|
8193 + | /* ServerBuilderGenerator.kt:331 */
|
5065 8194 | #[allow(missing_docs)] // documentation missing in model
|
8195 + | /* ServerBuilderGenerator.kt:343 */
|
5066 8196 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5067 - | self.timestamp = Some(input);
|
8197 + | /* ServerBuilderGenerator.kt:344 */
|
8198 + | self.timestamp =
|
8199 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8200 + | /* ServerBuilderGenerator.kt:376 */input
|
8201 + | /* ServerBuilderGenerator.kt:345 */)
|
8202 + | /* ServerBuilderGenerator.kt:344 */;
|
5068 8203 | self
|
8204 + | /* ServerBuilderGenerator.kt:343 */
|
5069 8205 | }
|
8206 + | /* ServerBuilderGenerator.kt:426 */
|
5070 8207 | #[allow(missing_docs)] // documentation missing in model
|
8208 + | /* ServerBuilderGenerator.kt:428 */
|
5071 8209 | pub(crate) fn set_timestamp(
|
5072 8210 | mut self,
|
5073 8211 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5074 8212 | ) -> Self {
|
8213 + | /* ServerBuilderGenerator.kt:429 */
|
5075 8214 | self.timestamp = Some(input.into());
|
5076 8215 | self
|
8216 + | /* ServerBuilderGenerator.kt:428 */
|
5077 8217 | }
|
5078 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
5079 - | ///
|
8218 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8219 + | /// /* ServerBuilderGenerator.kt:260 */
|
5080 8220 | /// The builder fails to construct a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) if a [`ConstraintViolation`] occurs.
|
5081 8221 | ///
|
8222 + | /* ServerBuilderGenerator.kt:271 */
|
5082 8223 | pub fn build(
|
5083 8224 | self,
|
5084 8225 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
5085 8226 | {
|
5086 8227 | self.build_enforcing_all_constraints()
|
5087 8228 | }
|
8229 + | /* ServerBuilderGenerator.kt:283 */
|
5088 8230 | fn build_enforcing_all_constraints(
|
5089 8231 | self,
|
5090 8232 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
5091 8233 | {
|
5092 - | Ok(crate::input::MalformedTimestampQueryDefaultInput {
|
8234 + | /* ServerBuilderGenerator.kt:287 */
|
8235 + | Ok(
|
8236 + | /* ServerBuilderGenerator.kt:542 */
|
8237 + | crate::input::MalformedTimestampQueryDefaultInput {
|
8238 + | /* ServerBuilderGenerator.kt:546 */
|
5093 8239 | timestamp: self
|
5094 8240 | .timestamp
|
8241 + | /* ServerBuilderGenerator.kt:569 */
|
5095 8242 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5096 - | })
|
8243 + | /* ServerBuilderGenerator.kt:542 */
|
8244 + | }, /* ServerBuilderGenerator.kt:287 */
|
8245 + | )
|
8246 + | /* ServerBuilderGenerator.kt:283 */
|
5097 8247 | }
|
8248 + | /* ServerBuilderGenerator.kt:215 */
|
5098 8249 | }
|
8250 + |
|
8251 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5099 8252 | }
|
5100 - | /// See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8253 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
5101 8254 | pub mod malformed_timestamp_path_epoch_input {
|
5102 8255 |
|
8256 + | /* RustType.kt:516 */
|
5103 8257 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5104 - | /// Holds one variant for each of the ways the builder can fail.
|
8258 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8259 + | /* RustType.kt:516 */
|
5105 8260 | #[non_exhaustive]
|
8261 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5106 8262 | #[allow(clippy::enum_variant_names)]
|
5107 8263 | pub enum ConstraintViolation {
|
5108 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
8264 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
8265 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5109 8266 | MissingTimestamp,
|
8267 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5110 8268 | }
|
8269 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5111 8270 | impl ::std::fmt::Display for ConstraintViolation {
|
8271 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5112 8272 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8273 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5113 8274 | match self {
|
5114 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
5115 - | }
|
8275 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
8276 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8277 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5116 8278 | }
|
8279 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5117 8280 | }
|
8281 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5118 8282 | impl ::std::error::Error for ConstraintViolation {}
|
8283 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5119 8284 | impl ConstraintViolation {
|
5120 8285 | pub(crate) fn as_validation_exception_field(
|
5121 8286 | self,
|
5122 8287 | path: ::std::string::String,
|
5123 8288 | ) -> crate::model::ValidationExceptionField {
|
5124 8289 | match self {
|
5125 8290 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5126 8291 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5127 8292 | path: path + "/timestamp",
|
5128 8293 | },
|
5129 8294 | }
|
5130 8295 | }
|
5131 8296 | }
|
8297 + | /* ServerBuilderGenerator.kt:234 */
|
5132 8298 | impl ::std::convert::From<ConstraintViolation>
|
5133 8299 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5134 8300 | {
|
5135 8301 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5136 8302 | let first_validation_exception_field =
|
5137 8303 | constraint_violation.as_validation_exception_field("".to_owned());
|
5138 8304 | let validation_exception = crate::error::ValidationException {
|
5139 8305 | message: format!(
|
5140 8306 | "1 validation error detected. {}",
|
5141 8307 | &first_validation_exception_field.message
|
5142 8308 | ),
|
5143 8309 | field_list: Some(vec![first_validation_exception_field]),
|
5144 8310 | };
|
5145 8311 | Self::ConstraintViolation(
|
5146 8312 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5147 8313 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5148 8314 | )
|
5149 8315 | }
|
5150 8316 | }
|
8317 + | /* ServerBuilderGenerator.kt:244 */
|
5151 8318 | impl ::std::convert::From<Builder>
|
5152 8319 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathEpochInput>
|
5153 8320 | {
|
5154 8321 | fn from(builder: Builder) -> Self {
|
5155 8322 | Self::Unconstrained(builder)
|
5156 8323 | }
|
5157 8324 | }
|
8325 + | /* ServerBuilderGenerator.kt:446 */
|
5158 8326 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathEpochInput {
|
5159 8327 | type Error = ConstraintViolation;
|
5160 8328 |
|
5161 8329 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5162 8330 | builder.build()
|
5163 8331 | }
|
5164 8332 | }
|
5165 - | /// A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8333 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8334 + | /* RustType.kt:516 */
|
5166 8335 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8336 + | /* ServerBuilderGenerator.kt:211 */
|
5167 8337 | pub struct Builder {
|
8338 + | /* ServerBuilderGenerator.kt:308 */
|
5168 8339 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8340 + | /* ServerBuilderGenerator.kt:211 */
|
5169 8341 | }
|
8342 + | /* ServerBuilderGenerator.kt:215 */
|
5170 8343 | impl Builder {
|
8344 + | /* ServerBuilderGenerator.kt:331 */
|
5171 8345 | #[allow(missing_docs)] // documentation missing in model
|
8346 + | /* ServerBuilderGenerator.kt:343 */
|
5172 8347 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5173 - | self.timestamp = Some(input);
|
8348 + | /* ServerBuilderGenerator.kt:344 */
|
8349 + | self.timestamp =
|
8350 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8351 + | /* ServerBuilderGenerator.kt:376 */input
|
8352 + | /* ServerBuilderGenerator.kt:345 */)
|
8353 + | /* ServerBuilderGenerator.kt:344 */;
|
5174 8354 | self
|
8355 + | /* ServerBuilderGenerator.kt:343 */
|
5175 8356 | }
|
8357 + | /* ServerBuilderGenerator.kt:426 */
|
5176 8358 | #[allow(missing_docs)] // documentation missing in model
|
8359 + | /* ServerBuilderGenerator.kt:428 */
|
5177 8360 | pub(crate) fn set_timestamp(
|
5178 8361 | mut self,
|
5179 8362 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5180 8363 | ) -> Self {
|
8364 + | /* ServerBuilderGenerator.kt:429 */
|
5181 8365 | self.timestamp = Some(input.into());
|
5182 8366 | self
|
8367 + | /* ServerBuilderGenerator.kt:428 */
|
5183 8368 | }
|
5184 - | /// Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
5185 - | ///
|
8369 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8370 + | /// /* ServerBuilderGenerator.kt:260 */
|
5186 8371 | /// The builder fails to construct a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) if a [`ConstraintViolation`] occurs.
|
5187 8372 | ///
|
8373 + | /* ServerBuilderGenerator.kt:271 */
|
5188 8374 | pub fn build(
|
5189 8375 | self,
|
5190 8376 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
5191 8377 | self.build_enforcing_all_constraints()
|
5192 8378 | }
|
8379 + | /* ServerBuilderGenerator.kt:283 */
|
5193 8380 | fn build_enforcing_all_constraints(
|
5194 8381 | self,
|
5195 8382 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
5196 - | Ok(crate::input::MalformedTimestampPathEpochInput {
|
8383 + | /* ServerBuilderGenerator.kt:287 */
|
8384 + | Ok(
|
8385 + | /* ServerBuilderGenerator.kt:542 */
|
8386 + | crate::input::MalformedTimestampPathEpochInput {
|
8387 + | /* ServerBuilderGenerator.kt:546 */
|
5197 8388 | timestamp: self
|
5198 8389 | .timestamp
|
8390 + | /* ServerBuilderGenerator.kt:569 */
|
5199 8391 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5200 - | })
|
8392 + | /* ServerBuilderGenerator.kt:542 */
|
8393 + | }, /* ServerBuilderGenerator.kt:287 */
|
8394 + | )
|
8395 + | /* ServerBuilderGenerator.kt:283 */
|
5201 8396 | }
|
8397 + | /* ServerBuilderGenerator.kt:215 */
|
5202 8398 | }
|
8399 + |
|
8400 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5203 8401 | }
|
5204 - | /// See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8402 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
5205 8403 | pub mod malformed_timestamp_path_http_date_input {
|
5206 8404 |
|
8405 + | /* RustType.kt:516 */
|
5207 8406 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5208 - | /// Holds one variant for each of the ways the builder can fail.
|
8407 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8408 + | /* RustType.kt:516 */
|
5209 8409 | #[non_exhaustive]
|
8410 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5210 8411 | #[allow(clippy::enum_variant_names)]
|
5211 8412 | pub enum ConstraintViolation {
|
5212 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
8413 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
8414 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5213 8415 | MissingTimestamp,
|
8416 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5214 8417 | }
|
8418 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5215 8419 | impl ::std::fmt::Display for ConstraintViolation {
|
8420 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5216 8421 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8422 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5217 8423 | match self {
|
5218 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
5219 - | }
|
8424 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
8425 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8426 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5220 8427 | }
|
8428 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5221 8429 | }
|
8430 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5222 8431 | impl ::std::error::Error for ConstraintViolation {}
|
8432 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5223 8433 | impl ConstraintViolation {
|
5224 8434 | pub(crate) fn as_validation_exception_field(
|
5225 8435 | self,
|
5226 8436 | path: ::std::string::String,
|
5227 8437 | ) -> crate::model::ValidationExceptionField {
|
5228 8438 | match self {
|
5229 8439 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5230 8440 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5231 8441 | path: path + "/timestamp",
|
5232 8442 | },
|
5233 8443 | }
|
5234 8444 | }
|
5235 8445 | }
|
8446 + | /* ServerBuilderGenerator.kt:234 */
|
5236 8447 | impl ::std::convert::From<ConstraintViolation>
|
5237 8448 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5238 8449 | {
|
5239 8450 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5240 8451 | let first_validation_exception_field =
|
5241 8452 | constraint_violation.as_validation_exception_field("".to_owned());
|
5242 8453 | let validation_exception = crate::error::ValidationException {
|
5243 8454 | message: format!(
|
5244 8455 | "1 validation error detected. {}",
|
5245 8456 | &first_validation_exception_field.message
|
5246 8457 | ),
|
5247 8458 | field_list: Some(vec![first_validation_exception_field]),
|
5248 8459 | };
|
5249 8460 | Self::ConstraintViolation(
|
5250 8461 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5251 8462 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5252 8463 | )
|
5253 8464 | }
|
5254 8465 | }
|
8466 + | /* ServerBuilderGenerator.kt:244 */
|
5255 8467 | impl ::std::convert::From<Builder>
|
5256 8468 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathHttpDateInput>
|
5257 8469 | {
|
5258 8470 | fn from(builder: Builder) -> Self {
|
5259 8471 | Self::Unconstrained(builder)
|
5260 8472 | }
|
5261 8473 | }
|
8474 + | /* ServerBuilderGenerator.kt:446 */
|
5262 8475 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathHttpDateInput {
|
5263 8476 | type Error = ConstraintViolation;
|
5264 8477 |
|
5265 8478 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5266 8479 | builder.build()
|
5267 8480 | }
|
5268 8481 | }
|
5269 - | /// A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8482 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8483 + | /* RustType.kt:516 */
|
5270 8484 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8485 + | /* ServerBuilderGenerator.kt:211 */
|
5271 8486 | pub struct Builder {
|
8487 + | /* ServerBuilderGenerator.kt:308 */
|
5272 8488 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8489 + | /* ServerBuilderGenerator.kt:211 */
|
5273 8490 | }
|
8491 + | /* ServerBuilderGenerator.kt:215 */
|
5274 8492 | impl Builder {
|
8493 + | /* ServerBuilderGenerator.kt:331 */
|
5275 8494 | #[allow(missing_docs)] // documentation missing in model
|
8495 + | /* ServerBuilderGenerator.kt:343 */
|
5276 8496 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5277 - | self.timestamp = Some(input);
|
8497 + | /* ServerBuilderGenerator.kt:344 */
|
8498 + | self.timestamp =
|
8499 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8500 + | /* ServerBuilderGenerator.kt:376 */input
|
8501 + | /* ServerBuilderGenerator.kt:345 */)
|
8502 + | /* ServerBuilderGenerator.kt:344 */;
|
5278 8503 | self
|
8504 + | /* ServerBuilderGenerator.kt:343 */
|
5279 8505 | }
|
8506 + | /* ServerBuilderGenerator.kt:426 */
|
5280 8507 | #[allow(missing_docs)] // documentation missing in model
|
8508 + | /* ServerBuilderGenerator.kt:428 */
|
5281 8509 | pub(crate) fn set_timestamp(
|
5282 8510 | mut self,
|
5283 8511 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5284 8512 | ) -> Self {
|
8513 + | /* ServerBuilderGenerator.kt:429 */
|
5285 8514 | self.timestamp = Some(input.into());
|
5286 8515 | self
|
8516 + | /* ServerBuilderGenerator.kt:428 */
|
5287 8517 | }
|
5288 - | /// Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
5289 - | ///
|
8518 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8519 + | /// /* ServerBuilderGenerator.kt:260 */
|
5290 8520 | /// The builder fails to construct a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) if a [`ConstraintViolation`] occurs.
|
5291 8521 | ///
|
8522 + | /* ServerBuilderGenerator.kt:271 */
|
5292 8523 | pub fn build(
|
5293 8524 | self,
|
5294 8525 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
5295 8526 | {
|
5296 8527 | self.build_enforcing_all_constraints()
|
5297 8528 | }
|
8529 + | /* ServerBuilderGenerator.kt:283 */
|
5298 8530 | fn build_enforcing_all_constraints(
|
5299 8531 | self,
|
5300 8532 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
5301 8533 | {
|
5302 - | Ok(crate::input::MalformedTimestampPathHttpDateInput {
|
8534 + | /* ServerBuilderGenerator.kt:287 */
|
8535 + | Ok(
|
8536 + | /* ServerBuilderGenerator.kt:542 */
|
8537 + | crate::input::MalformedTimestampPathHttpDateInput {
|
8538 + | /* ServerBuilderGenerator.kt:546 */
|
5303 8539 | timestamp: self
|
5304 8540 | .timestamp
|
8541 + | /* ServerBuilderGenerator.kt:569 */
|
5305 8542 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5306 - | })
|
8543 + | /* ServerBuilderGenerator.kt:542 */
|
8544 + | }, /* ServerBuilderGenerator.kt:287 */
|
8545 + | )
|
8546 + | /* ServerBuilderGenerator.kt:283 */
|
5307 8547 | }
|
8548 + | /* ServerBuilderGenerator.kt:215 */
|
5308 8549 | }
|
8550 + |
|
8551 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5309 8552 | }
|
5310 - | /// See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8553 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
5311 8554 | pub mod malformed_timestamp_path_default_input {
|
5312 8555 |
|
8556 + | /* RustType.kt:516 */
|
5313 8557 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5314 - | /// Holds one variant for each of the ways the builder can fail.
|
8558 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8559 + | /* RustType.kt:516 */
|
5315 8560 | #[non_exhaustive]
|
8561 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5316 8562 | #[allow(clippy::enum_variant_names)]
|
5317 8563 | pub enum ConstraintViolation {
|
5318 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
8564 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
8565 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5319 8566 | MissingTimestamp,
|
8567 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5320 8568 | }
|
8569 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5321 8570 | impl ::std::fmt::Display for ConstraintViolation {
|
8571 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5322 8572 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8573 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5323 8574 | match self {
|
5324 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
5325 - | }
|
8575 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
8576 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8577 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5326 8578 | }
|
8579 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5327 8580 | }
|
8581 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5328 8582 | impl ::std::error::Error for ConstraintViolation {}
|
8583 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5329 8584 | impl ConstraintViolation {
|
5330 8585 | pub(crate) fn as_validation_exception_field(
|
5331 8586 | self,
|
5332 8587 | path: ::std::string::String,
|
5333 8588 | ) -> crate::model::ValidationExceptionField {
|
5334 8589 | match self {
|
5335 8590 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5336 8591 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5337 8592 | path: path + "/timestamp",
|
5338 8593 | },
|
5339 8594 | }
|
5340 8595 | }
|
5341 8596 | }
|
8597 + | /* ServerBuilderGenerator.kt:234 */
|
5342 8598 | impl ::std::convert::From<ConstraintViolation>
|
5343 8599 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5344 8600 | {
|
5345 8601 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5346 8602 | let first_validation_exception_field =
|
5347 8603 | constraint_violation.as_validation_exception_field("".to_owned());
|
5348 8604 | let validation_exception = crate::error::ValidationException {
|
5349 8605 | message: format!(
|
5350 8606 | "1 validation error detected. {}",
|
5351 8607 | &first_validation_exception_field.message
|
5352 8608 | ),
|
5353 8609 | field_list: Some(vec![first_validation_exception_field]),
|
5354 8610 | };
|
5355 8611 | Self::ConstraintViolation(
|
5356 8612 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5357 8613 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5358 8614 | )
|
5359 8615 | }
|
5360 8616 | }
|
8617 + | /* ServerBuilderGenerator.kt:244 */
|
5361 8618 | impl ::std::convert::From<Builder>
|
5362 8619 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathDefaultInput>
|
5363 8620 | {
|
5364 8621 | fn from(builder: Builder) -> Self {
|
5365 8622 | Self::Unconstrained(builder)
|
5366 8623 | }
|
5367 8624 | }
|
8625 + | /* ServerBuilderGenerator.kt:446 */
|
5368 8626 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathDefaultInput {
|
5369 8627 | type Error = ConstraintViolation;
|
5370 8628 |
|
5371 8629 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5372 8630 | builder.build()
|
5373 8631 | }
|
5374 8632 | }
|
5375 - | /// A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8633 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8634 + | /* RustType.kt:516 */
|
5376 8635 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8636 + | /* ServerBuilderGenerator.kt:211 */
|
5377 8637 | pub struct Builder {
|
8638 + | /* ServerBuilderGenerator.kt:308 */
|
5378 8639 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8640 + | /* ServerBuilderGenerator.kt:211 */
|
5379 8641 | }
|
8642 + | /* ServerBuilderGenerator.kt:215 */
|
5380 8643 | impl Builder {
|
8644 + | /* ServerBuilderGenerator.kt:331 */
|
5381 8645 | #[allow(missing_docs)] // documentation missing in model
|
8646 + | /* ServerBuilderGenerator.kt:343 */
|
5382 8647 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5383 - | self.timestamp = Some(input);
|
8648 + | /* ServerBuilderGenerator.kt:344 */
|
8649 + | self.timestamp =
|
8650 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8651 + | /* ServerBuilderGenerator.kt:376 */input
|
8652 + | /* ServerBuilderGenerator.kt:345 */)
|
8653 + | /* ServerBuilderGenerator.kt:344 */;
|
5384 8654 | self
|
8655 + | /* ServerBuilderGenerator.kt:343 */
|
5385 8656 | }
|
8657 + | /* ServerBuilderGenerator.kt:426 */
|
5386 8658 | #[allow(missing_docs)] // documentation missing in model
|
8659 + | /* ServerBuilderGenerator.kt:428 */
|
5387 8660 | pub(crate) fn set_timestamp(
|
5388 8661 | mut self,
|
5389 8662 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5390 8663 | ) -> Self {
|
8664 + | /* ServerBuilderGenerator.kt:429 */
|
5391 8665 | self.timestamp = Some(input.into());
|
5392 8666 | self
|
8667 + | /* ServerBuilderGenerator.kt:428 */
|
5393 8668 | }
|
5394 - | /// Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
5395 - | ///
|
8669 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8670 + | /// /* ServerBuilderGenerator.kt:260 */
|
5396 8671 | /// The builder fails to construct a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) if a [`ConstraintViolation`] occurs.
|
5397 8672 | ///
|
8673 + | /* ServerBuilderGenerator.kt:271 */
|
5398 8674 | pub fn build(
|
5399 8675 | self,
|
5400 8676 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
5401 8677 | self.build_enforcing_all_constraints()
|
5402 8678 | }
|
8679 + | /* ServerBuilderGenerator.kt:283 */
|
5403 8680 | fn build_enforcing_all_constraints(
|
5404 8681 | self,
|
5405 8682 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
5406 - | Ok(crate::input::MalformedTimestampPathDefaultInput {
|
8683 + | /* ServerBuilderGenerator.kt:287 */
|
8684 + | Ok(
|
8685 + | /* ServerBuilderGenerator.kt:542 */
|
8686 + | crate::input::MalformedTimestampPathDefaultInput {
|
8687 + | /* ServerBuilderGenerator.kt:546 */
|
5407 8688 | timestamp: self
|
5408 8689 | .timestamp
|
8690 + | /* ServerBuilderGenerator.kt:569 */
|
5409 8691 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5410 - | })
|
8692 + | /* ServerBuilderGenerator.kt:542 */
|
8693 + | }, /* ServerBuilderGenerator.kt:287 */
|
8694 + | )
|
8695 + | /* ServerBuilderGenerator.kt:283 */
|
5411 8696 | }
|
8697 + | /* ServerBuilderGenerator.kt:215 */
|
5412 8698 | }
|
8699 + |
|
8700 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5413 8701 | }
|
5414 - | /// See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8702 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
5415 8703 | pub mod malformed_string_input {
|
5416 8704 |
|
8705 + | /* ServerBuilderGenerator.kt:461 */
|
5417 8706 | impl ::std::convert::From<Builder> for crate::input::MalformedStringInput {
|
5418 8707 | fn from(builder: Builder) -> Self {
|
5419 8708 | builder.build()
|
5420 8709 | }
|
5421 8710 | }
|
5422 - | /// A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8711 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8712 + | /* RustType.kt:516 */
|
5423 8713 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8714 + | /* ServerBuilderGenerator.kt:211 */
|
5424 8715 | pub struct Builder {
|
8716 + | /* ServerBuilderGenerator.kt:308 */
|
5425 8717 | pub(crate) blob: ::std::option::Option<::std::string::String>,
|
8718 + | /* ServerBuilderGenerator.kt:211 */
|
5426 8719 | }
|
8720 + | /* ServerBuilderGenerator.kt:215 */
|
5427 8721 | impl Builder {
|
8722 + | /* ServerBuilderGenerator.kt:331 */
|
5428 8723 | #[allow(missing_docs)] // documentation missing in model
|
8724 + | /* ServerBuilderGenerator.kt:343 */
|
5429 8725 | pub fn blob(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
5430 - | self.blob = input;
|
8726 + | /* ServerBuilderGenerator.kt:344 */
|
8727 + | self.blob =
|
8728 + | /* ServerBuilderGenerator.kt:376 */input
|
8729 + | /* ServerBuilderGenerator.kt:344 */;
|
5431 8730 | self
|
8731 + | /* ServerBuilderGenerator.kt:343 */
|
5432 8732 | }
|
8733 + | /* ServerBuilderGenerator.kt:426 */
|
5433 8734 | #[allow(missing_docs)] // documentation missing in model
|
8735 + | /* ServerBuilderGenerator.kt:428 */
|
5434 8736 | pub(crate) fn set_blob(
|
5435 8737 | mut self,
|
5436 8738 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
5437 8739 | ) -> Self {
|
8740 + | /* ServerBuilderGenerator.kt:429 */
|
5438 8741 | self.blob = input.map(|v| v.into());
|
5439 8742 | self
|
8743 + | /* ServerBuilderGenerator.kt:428 */
|
5440 8744 | }
|
5441 - | /// Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8745 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8746 + | /* ServerBuilderGenerator.kt:271 */
|
5442 8747 | pub fn build(self) -> crate::input::MalformedStringInput {
|
5443 8748 | self.build_enforcing_all_constraints()
|
5444 8749 | }
|
8750 + | /* ServerBuilderGenerator.kt:283 */
|
5445 8751 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedStringInput {
|
5446 - | crate::input::MalformedStringInput { blob: self.blob }
|
8752 + | /* ServerBuilderGenerator.kt:542 */
|
8753 + | crate::input::MalformedStringInput {
|
8754 + | /* ServerBuilderGenerator.kt:546 */
|
8755 + | blob: self.blob,
|
8756 + | /* ServerBuilderGenerator.kt:542 */
|
5447 8757 | }
|
8758 + | /* ServerBuilderGenerator.kt:283 */
|
5448 8759 | }
|
8760 + | /* ServerBuilderGenerator.kt:215 */
|
8761 + | }
|
8762 + |
|
8763 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5449 8764 | }
|
5450 - | /// See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
8765 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
5451 8766 | pub mod malformed_double_input {
|
5452 8767 |
|
8768 + | /* RustType.kt:516 */
|
5453 8769 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5454 - | /// Holds one variant for each of the ways the builder can fail.
|
8770 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8771 + | /* RustType.kt:516 */
|
5455 8772 | #[non_exhaustive]
|
8773 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5456 8774 | #[allow(clippy::enum_variant_names)]
|
5457 8775 | pub enum ConstraintViolation {
|
5458 - | /// `double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
8776 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
8777 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5459 8778 | MissingDoubleInPath,
|
8779 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5460 8780 | }
|
8781 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5461 8782 | impl ::std::fmt::Display for ConstraintViolation {
|
8783 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5462 8784 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8785 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5463 8786 | match self {
|
5464 - | ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
5465 - | }
|
8787 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
8788 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
8789 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5466 8790 | }
|
8791 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5467 8792 | }
|
8793 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5468 8794 | impl ::std::error::Error for ConstraintViolation {}
|
8795 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5469 8796 | impl ConstraintViolation {
|
5470 8797 | pub(crate) fn as_validation_exception_field(
|
5471 8798 | self,
|
5472 8799 | path: ::std::string::String,
|
5473 8800 | ) -> crate::model::ValidationExceptionField {
|
5474 8801 | match self {
|
5475 8802 | ConstraintViolation::MissingDoubleInPath => crate::model::ValidationExceptionField {
|
5476 8803 | message: format!("Value at '{}/doubleInPath' failed to satisfy constraint: Member must not be null", path),
|
5477 8804 | path: path + "/doubleInPath",
|
5478 8805 | },
|
5479 8806 | }
|
5480 8807 | }
|
5481 8808 | }
|
8809 + | /* ServerBuilderGenerator.kt:234 */
|
5482 8810 | impl ::std::convert::From<ConstraintViolation>
|
5483 8811 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5484 8812 | {
|
5485 8813 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5486 8814 | let first_validation_exception_field =
|
5487 8815 | constraint_violation.as_validation_exception_field("".to_owned());
|
5488 8816 | let validation_exception = crate::error::ValidationException {
|
5489 8817 | message: format!(
|
5490 8818 | "1 validation error detected. {}",
|
5491 8819 | &first_validation_exception_field.message
|
5492 8820 | ),
|
5493 8821 | field_list: Some(vec![first_validation_exception_field]),
|
5494 8822 | };
|
5495 8823 | Self::ConstraintViolation(
|
5496 8824 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5497 8825 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5498 8826 | )
|
5499 8827 | }
|
5500 8828 | }
|
8829 + | /* ServerBuilderGenerator.kt:244 */
|
5501 8830 | impl ::std::convert::From<Builder>
|
5502 8831 | for crate::constrained::MaybeConstrained<crate::input::MalformedDoubleInput>
|
5503 8832 | {
|
5504 8833 | fn from(builder: Builder) -> Self {
|
5505 8834 | Self::Unconstrained(builder)
|
5506 8835 | }
|
5507 8836 | }
|
8837 + | /* ServerBuilderGenerator.kt:446 */
|
5508 8838 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedDoubleInput {
|
5509 8839 | type Error = ConstraintViolation;
|
5510 8840 |
|
5511 8841 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5512 8842 | builder.build()
|
5513 8843 | }
|
5514 8844 | }
|
5515 - | /// A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
8845 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
8846 + | /* RustType.kt:516 */
|
5516 8847 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8848 + | /* ServerBuilderGenerator.kt:211 */
|
5517 8849 | pub struct Builder {
|
8850 + | /* ServerBuilderGenerator.kt:308 */
|
5518 8851 | pub(crate) double_in_body: ::std::option::Option<f64>,
|
8852 + | /* ServerBuilderGenerator.kt:308 */
|
5519 8853 | pub(crate) double_in_path: ::std::option::Option<f64>,
|
8854 + | /* ServerBuilderGenerator.kt:308 */
|
5520 8855 | pub(crate) double_in_query: ::std::option::Option<f64>,
|
8856 + | /* ServerBuilderGenerator.kt:308 */
|
5521 8857 | pub(crate) double_in_header: ::std::option::Option<f64>,
|
8858 + | /* ServerBuilderGenerator.kt:211 */
|
5522 8859 | }
|
8860 + | /* ServerBuilderGenerator.kt:215 */
|
5523 8861 | impl Builder {
|
8862 + | /* ServerBuilderGenerator.kt:331 */
|
5524 8863 | #[allow(missing_docs)] // documentation missing in model
|
8864 + | /* ServerBuilderGenerator.kt:343 */
|
5525 8865 | pub fn double_in_body(mut self, input: ::std::option::Option<f64>) -> Self {
|
5526 - | self.double_in_body = input;
|
8866 + | /* ServerBuilderGenerator.kt:344 */
|
8867 + | self.double_in_body =
|
8868 + | /* ServerBuilderGenerator.kt:376 */input
|
8869 + | /* ServerBuilderGenerator.kt:344 */;
|
5527 8870 | self
|
8871 + | /* ServerBuilderGenerator.kt:343 */
|
5528 8872 | }
|
8873 + | /* ServerBuilderGenerator.kt:426 */
|
5529 8874 | #[allow(missing_docs)] // documentation missing in model
|
8875 + | /* ServerBuilderGenerator.kt:428 */
|
5530 8876 | pub(crate) fn set_double_in_body(
|
5531 8877 | mut self,
|
5532 8878 | input: Option<impl ::std::convert::Into<f64>>,
|
5533 8879 | ) -> Self {
|
8880 + | /* ServerBuilderGenerator.kt:429 */
|
5534 8881 | self.double_in_body = input.map(|v| v.into());
|
5535 8882 | self
|
8883 + | /* ServerBuilderGenerator.kt:428 */
|
5536 8884 | }
|
8885 + | /* ServerBuilderGenerator.kt:331 */
|
5537 8886 | #[allow(missing_docs)] // documentation missing in model
|
8887 + | /* ServerBuilderGenerator.kt:343 */
|
5538 8888 | pub fn double_in_path(mut self, input: f64) -> Self {
|
5539 - | self.double_in_path = Some(input);
|
8889 + | /* ServerBuilderGenerator.kt:344 */
|
8890 + | self.double_in_path =
|
8891 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8892 + | /* ServerBuilderGenerator.kt:376 */input
|
8893 + | /* ServerBuilderGenerator.kt:345 */)
|
8894 + | /* ServerBuilderGenerator.kt:344 */;
|
5540 8895 | self
|
8896 + | /* ServerBuilderGenerator.kt:343 */
|
5541 8897 | }
|
8898 + | /* ServerBuilderGenerator.kt:426 */
|
5542 8899 | #[allow(missing_docs)] // documentation missing in model
|
8900 + | /* ServerBuilderGenerator.kt:428 */
|
5543 8901 | pub(crate) fn set_double_in_path(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
8902 + | /* ServerBuilderGenerator.kt:429 */
|
5544 8903 | self.double_in_path = Some(input.into());
|
5545 8904 | self
|
8905 + | /* ServerBuilderGenerator.kt:428 */
|
5546 8906 | }
|
8907 + | /* ServerBuilderGenerator.kt:331 */
|
5547 8908 | #[allow(missing_docs)] // documentation missing in model
|
8909 + | /* ServerBuilderGenerator.kt:343 */
|
5548 8910 | pub fn double_in_query(mut self, input: ::std::option::Option<f64>) -> Self {
|
5549 - | self.double_in_query = input;
|
8911 + | /* ServerBuilderGenerator.kt:344 */
|
8912 + | self.double_in_query =
|
8913 + | /* ServerBuilderGenerator.kt:376 */input
|
8914 + | /* ServerBuilderGenerator.kt:344 */;
|
5550 8915 | self
|
8916 + | /* ServerBuilderGenerator.kt:343 */
|
5551 8917 | }
|
8918 + | /* ServerBuilderGenerator.kt:426 */
|
5552 8919 | #[allow(missing_docs)] // documentation missing in model
|
8920 + | /* ServerBuilderGenerator.kt:428 */
|
5553 8921 | pub(crate) fn set_double_in_query(
|
5554 8922 | mut self,
|
5555 8923 | input: Option<impl ::std::convert::Into<f64>>,
|
5556 8924 | ) -> Self {
|
8925 + | /* ServerBuilderGenerator.kt:429 */
|
5557 8926 | self.double_in_query = input.map(|v| v.into());
|
5558 8927 | self
|
8928 + | /* ServerBuilderGenerator.kt:428 */
|
5559 8929 | }
|
8930 + | /* ServerBuilderGenerator.kt:331 */
|
5560 8931 | #[allow(missing_docs)] // documentation missing in model
|
8932 + | /* ServerBuilderGenerator.kt:343 */
|
5561 8933 | pub fn double_in_header(mut self, input: ::std::option::Option<f64>) -> Self {
|
5562 - | self.double_in_header = input;
|
8934 + | /* ServerBuilderGenerator.kt:344 */
|
8935 + | self.double_in_header =
|
8936 + | /* ServerBuilderGenerator.kt:376 */input
|
8937 + | /* ServerBuilderGenerator.kt:344 */;
|
5563 8938 | self
|
8939 + | /* ServerBuilderGenerator.kt:343 */
|
5564 8940 | }
|
8941 + | /* ServerBuilderGenerator.kt:426 */
|
5565 8942 | #[allow(missing_docs)] // documentation missing in model
|
8943 + | /* ServerBuilderGenerator.kt:428 */
|
5566 8944 | pub(crate) fn set_double_in_header(
|
5567 8945 | mut self,
|
5568 8946 | input: Option<impl ::std::convert::Into<f64>>,
|
5569 8947 | ) -> Self {
|
8948 + | /* ServerBuilderGenerator.kt:429 */
|
5570 8949 | self.double_in_header = input.map(|v| v.into());
|
5571 8950 | self
|
8951 + | /* ServerBuilderGenerator.kt:428 */
|
5572 8952 | }
|
5573 - | /// Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
5574 - | ///
|
8953 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
8954 + | /// /* ServerBuilderGenerator.kt:260 */
|
5575 8955 | /// The builder fails to construct a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) if a [`ConstraintViolation`] occurs.
|
5576 8956 | ///
|
8957 + | /* ServerBuilderGenerator.kt:271 */
|
5577 8958 | pub fn build(self) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
5578 8959 | self.build_enforcing_all_constraints()
|
5579 8960 | }
|
8961 + | /* ServerBuilderGenerator.kt:283 */
|
5580 8962 | fn build_enforcing_all_constraints(
|
5581 8963 | self,
|
5582 8964 | ) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
5583 - | Ok(crate::input::MalformedDoubleInput {
|
8965 + | /* ServerBuilderGenerator.kt:287 */
|
8966 + | Ok(
|
8967 + | /* ServerBuilderGenerator.kt:542 */
|
8968 + | crate::input::MalformedDoubleInput {
|
8969 + | /* ServerBuilderGenerator.kt:546 */
|
5584 8970 | double_in_body: self.double_in_body,
|
8971 + | /* ServerBuilderGenerator.kt:546 */
|
5585 8972 | double_in_path: self
|
5586 8973 | .double_in_path
|
8974 + | /* ServerBuilderGenerator.kt:569 */
|
5587 8975 | .ok_or(ConstraintViolation::MissingDoubleInPath)?,
|
8976 + | /* ServerBuilderGenerator.kt:546 */
|
5588 8977 | double_in_query: self.double_in_query,
|
8978 + | /* ServerBuilderGenerator.kt:546 */
|
5589 8979 | double_in_header: self.double_in_header,
|
5590 - | })
|
8980 + | /* ServerBuilderGenerator.kt:542 */
|
8981 + | }, /* ServerBuilderGenerator.kt:287 */
|
8982 + | )
|
8983 + | /* ServerBuilderGenerator.kt:283 */
|
5591 8984 | }
|
8985 + | /* ServerBuilderGenerator.kt:215 */
|
5592 8986 | }
|
8987 + |
|
8988 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5593 8989 | }
|
5594 - | /// See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
8990 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
5595 8991 | pub mod malformed_float_input {
|
5596 8992 |
|
8993 + | /* RustType.kt:516 */
|
5597 8994 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5598 - | /// Holds one variant for each of the ways the builder can fail.
|
8995 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8996 + | /* RustType.kt:516 */
|
5599 8997 | #[non_exhaustive]
|
8998 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5600 8999 | #[allow(clippy::enum_variant_names)]
|
5601 9000 | pub enum ConstraintViolation {
|
5602 - | /// `float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
9001 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
9002 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5603 9003 | MissingFloatInPath,
|
9004 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5604 9005 | }
|
9006 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5605 9007 | impl ::std::fmt::Display for ConstraintViolation {
|
9008 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5606 9009 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9010 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5607 9011 | match self {
|
5608 - | ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
5609 - | }
|
9012 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
9013 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9014 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5610 9015 | }
|
9016 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5611 9017 | }
|
9018 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5612 9019 | impl ::std::error::Error for ConstraintViolation {}
|
9020 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5613 9021 | impl ConstraintViolation {
|
5614 9022 | pub(crate) fn as_validation_exception_field(
|
5615 9023 | self,
|
5616 9024 | path: ::std::string::String,
|
5617 9025 | ) -> crate::model::ValidationExceptionField {
|
5618 9026 | match self {
|
5619 9027 | ConstraintViolation::MissingFloatInPath => crate::model::ValidationExceptionField {
|
5620 9028 | message: format!("Value at '{}/floatInPath' failed to satisfy constraint: Member must not be null", path),
|
5621 9029 | path: path + "/floatInPath",
|
5622 9030 | },
|
5623 9031 | }
|
5624 9032 | }
|
5625 9033 | }
|
9034 + | /* ServerBuilderGenerator.kt:234 */
|
5626 9035 | impl ::std::convert::From<ConstraintViolation>
|
5627 9036 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5628 9037 | {
|
5629 9038 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5630 9039 | let first_validation_exception_field =
|
5631 9040 | constraint_violation.as_validation_exception_field("".to_owned());
|
5632 9041 | let validation_exception = crate::error::ValidationException {
|
5633 9042 | message: format!(
|
5634 9043 | "1 validation error detected. {}",
|
5635 9044 | &first_validation_exception_field.message
|
5636 9045 | ),
|
5637 9046 | field_list: Some(vec![first_validation_exception_field]),
|
5638 9047 | };
|
5639 9048 | Self::ConstraintViolation(
|
5640 9049 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5641 9050 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5642 9051 | )
|
5643 9052 | }
|
5644 9053 | }
|
9054 + | /* ServerBuilderGenerator.kt:244 */
|
5645 9055 | impl ::std::convert::From<Builder>
|
5646 9056 | for crate::constrained::MaybeConstrained<crate::input::MalformedFloatInput>
|
5647 9057 | {
|
5648 9058 | fn from(builder: Builder) -> Self {
|
5649 9059 | Self::Unconstrained(builder)
|
5650 9060 | }
|
5651 9061 | }
|
9062 + | /* ServerBuilderGenerator.kt:446 */
|
5652 9063 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedFloatInput {
|
5653 9064 | type Error = ConstraintViolation;
|
5654 9065 |
|
5655 9066 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5656 9067 | builder.build()
|
5657 9068 | }
|
5658 9069 | }
|
5659 - | /// A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9070 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9071 + | /* RustType.kt:516 */
|
5660 9072 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9073 + | /* ServerBuilderGenerator.kt:211 */
|
5661 9074 | pub struct Builder {
|
9075 + | /* ServerBuilderGenerator.kt:308 */
|
5662 9076 | pub(crate) float_in_body: ::std::option::Option<f32>,
|
9077 + | /* ServerBuilderGenerator.kt:308 */
|
5663 9078 | pub(crate) float_in_path: ::std::option::Option<f32>,
|
9079 + | /* ServerBuilderGenerator.kt:308 */
|
5664 9080 | pub(crate) float_in_query: ::std::option::Option<f32>,
|
9081 + | /* ServerBuilderGenerator.kt:308 */
|
5665 9082 | pub(crate) float_in_header: ::std::option::Option<f32>,
|
9083 + | /* ServerBuilderGenerator.kt:211 */
|
5666 9084 | }
|
9085 + | /* ServerBuilderGenerator.kt:215 */
|
5667 9086 | impl Builder {
|
9087 + | /* ServerBuilderGenerator.kt:331 */
|
5668 9088 | #[allow(missing_docs)] // documentation missing in model
|
9089 + | /* ServerBuilderGenerator.kt:343 */
|
5669 9090 | pub fn float_in_body(mut self, input: ::std::option::Option<f32>) -> Self {
|
5670 - | self.float_in_body = input;
|
9091 + | /* ServerBuilderGenerator.kt:344 */
|
9092 + | self.float_in_body =
|
9093 + | /* ServerBuilderGenerator.kt:376 */input
|
9094 + | /* ServerBuilderGenerator.kt:344 */;
|
5671 9095 | self
|
9096 + | /* ServerBuilderGenerator.kt:343 */
|
5672 9097 | }
|
9098 + | /* ServerBuilderGenerator.kt:426 */
|
5673 9099 | #[allow(missing_docs)] // documentation missing in model
|
9100 + | /* ServerBuilderGenerator.kt:428 */
|
5674 9101 | pub(crate) fn set_float_in_body(
|
5675 9102 | mut self,
|
5676 9103 | input: Option<impl ::std::convert::Into<f32>>,
|
5677 9104 | ) -> Self {
|
9105 + | /* ServerBuilderGenerator.kt:429 */
|
5678 9106 | self.float_in_body = input.map(|v| v.into());
|
5679 9107 | self
|
9108 + | /* ServerBuilderGenerator.kt:428 */
|
5680 9109 | }
|
9110 + | /* ServerBuilderGenerator.kt:331 */
|
5681 9111 | #[allow(missing_docs)] // documentation missing in model
|
9112 + | /* ServerBuilderGenerator.kt:343 */
|
5682 9113 | pub fn float_in_path(mut self, input: f32) -> Self {
|
5683 - | self.float_in_path = Some(input);
|
9114 + | /* ServerBuilderGenerator.kt:344 */
|
9115 + | self.float_in_path =
|
9116 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9117 + | /* ServerBuilderGenerator.kt:376 */input
|
9118 + | /* ServerBuilderGenerator.kt:345 */)
|
9119 + | /* ServerBuilderGenerator.kt:344 */;
|
5684 9120 | self
|
9121 + | /* ServerBuilderGenerator.kt:343 */
|
5685 9122 | }
|
9123 + | /* ServerBuilderGenerator.kt:426 */
|
5686 9124 | #[allow(missing_docs)] // documentation missing in model
|
9125 + | /* ServerBuilderGenerator.kt:428 */
|
5687 9126 | pub(crate) fn set_float_in_path(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
9127 + | /* ServerBuilderGenerator.kt:429 */
|
5688 9128 | self.float_in_path = Some(input.into());
|
5689 9129 | self
|
9130 + | /* ServerBuilderGenerator.kt:428 */
|
5690 9131 | }
|
9132 + | /* ServerBuilderGenerator.kt:331 */
|
5691 9133 | #[allow(missing_docs)] // documentation missing in model
|
9134 + | /* ServerBuilderGenerator.kt:343 */
|
5692 9135 | pub fn float_in_query(mut self, input: ::std::option::Option<f32>) -> Self {
|
5693 - | self.float_in_query = input;
|
9136 + | /* ServerBuilderGenerator.kt:344 */
|
9137 + | self.float_in_query =
|
9138 + | /* ServerBuilderGenerator.kt:376 */input
|
9139 + | /* ServerBuilderGenerator.kt:344 */;
|
5694 9140 | self
|
9141 + | /* ServerBuilderGenerator.kt:343 */
|
5695 9142 | }
|
9143 + | /* ServerBuilderGenerator.kt:426 */
|
5696 9144 | #[allow(missing_docs)] // documentation missing in model
|
9145 + | /* ServerBuilderGenerator.kt:428 */
|
5697 9146 | pub(crate) fn set_float_in_query(
|
5698 9147 | mut self,
|
5699 9148 | input: Option<impl ::std::convert::Into<f32>>,
|
5700 9149 | ) -> Self {
|
9150 + | /* ServerBuilderGenerator.kt:429 */
|
5701 9151 | self.float_in_query = input.map(|v| v.into());
|
5702 9152 | self
|
9153 + | /* ServerBuilderGenerator.kt:428 */
|
5703 9154 | }
|
9155 + | /* ServerBuilderGenerator.kt:331 */
|
5704 9156 | #[allow(missing_docs)] // documentation missing in model
|
9157 + | /* ServerBuilderGenerator.kt:343 */
|
5705 9158 | pub fn float_in_header(mut self, input: ::std::option::Option<f32>) -> Self {
|
5706 - | self.float_in_header = input;
|
9159 + | /* ServerBuilderGenerator.kt:344 */
|
9160 + | self.float_in_header =
|
9161 + | /* ServerBuilderGenerator.kt:376 */input
|
9162 + | /* ServerBuilderGenerator.kt:344 */;
|
5707 9163 | self
|
9164 + | /* ServerBuilderGenerator.kt:343 */
|
5708 9165 | }
|
9166 + | /* ServerBuilderGenerator.kt:426 */
|
5709 9167 | #[allow(missing_docs)] // documentation missing in model
|
9168 + | /* ServerBuilderGenerator.kt:428 */
|
5710 9169 | pub(crate) fn set_float_in_header(
|
5711 9170 | mut self,
|
5712 9171 | input: Option<impl ::std::convert::Into<f32>>,
|
5713 9172 | ) -> Self {
|
9173 + | /* ServerBuilderGenerator.kt:429 */
|
5714 9174 | self.float_in_header = input.map(|v| v.into());
|
5715 9175 | self
|
9176 + | /* ServerBuilderGenerator.kt:428 */
|
5716 9177 | }
|
5717 - | /// Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
5718 - | ///
|
9178 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9179 + | /// /* ServerBuilderGenerator.kt:260 */
|
5719 9180 | /// The builder fails to construct a [`MalformedFloatInput`](crate::input::MalformedFloatInput) if a [`ConstraintViolation`] occurs.
|
5720 9181 | ///
|
9182 + | /* ServerBuilderGenerator.kt:271 */
|
5721 9183 | pub fn build(self) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
5722 9184 | self.build_enforcing_all_constraints()
|
5723 9185 | }
|
9186 + | /* ServerBuilderGenerator.kt:283 */
|
5724 9187 | fn build_enforcing_all_constraints(
|
5725 9188 | self,
|
5726 9189 | ) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
5727 - | Ok(crate::input::MalformedFloatInput {
|
9190 + | /* ServerBuilderGenerator.kt:287 */
|
9191 + | Ok(
|
9192 + | /* ServerBuilderGenerator.kt:542 */
|
9193 + | crate::input::MalformedFloatInput {
|
9194 + | /* ServerBuilderGenerator.kt:546 */
|
5728 9195 | float_in_body: self.float_in_body,
|
9196 + | /* ServerBuilderGenerator.kt:546 */
|
5729 9197 | float_in_path: self
|
5730 9198 | .float_in_path
|
9199 + | /* ServerBuilderGenerator.kt:569 */
|
5731 9200 | .ok_or(ConstraintViolation::MissingFloatInPath)?,
|
9201 + | /* ServerBuilderGenerator.kt:546 */
|
5732 9202 | float_in_query: self.float_in_query,
|
9203 + | /* ServerBuilderGenerator.kt:546 */
|
5733 9204 | float_in_header: self.float_in_header,
|
5734 - | })
|
9205 + | /* ServerBuilderGenerator.kt:542 */
|
9206 + | }, /* ServerBuilderGenerator.kt:287 */
|
9207 + | )
|
9208 + | /* ServerBuilderGenerator.kt:283 */
|
5735 9209 | }
|
9210 + | /* ServerBuilderGenerator.kt:215 */
|
5736 9211 | }
|
9212 + |
|
9213 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5737 9214 | }
|
5738 - | /// See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9215 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
5739 9216 | pub mod malformed_long_input {
|
5740 9217 |
|
9218 + | /* RustType.kt:516 */
|
5741 9219 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5742 - | /// Holds one variant for each of the ways the builder can fail.
|
9220 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9221 + | /* RustType.kt:516 */
|
5743 9222 | #[non_exhaustive]
|
9223 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5744 9224 | #[allow(clippy::enum_variant_names)]
|
5745 9225 | pub enum ConstraintViolation {
|
5746 - | /// `long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
9226 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
9227 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5747 9228 | MissingLongInPath,
|
9229 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5748 9230 | }
|
9231 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5749 9232 | impl ::std::fmt::Display for ConstraintViolation {
|
9233 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5750 9234 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9235 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5751 9236 | match self {
|
5752 - | ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
5753 - | }
|
9237 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
9238 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9239 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5754 9240 | }
|
9241 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5755 9242 | }
|
9243 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5756 9244 | impl ::std::error::Error for ConstraintViolation {}
|
9245 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5757 9246 | impl ConstraintViolation {
|
5758 9247 | pub(crate) fn as_validation_exception_field(
|
5759 9248 | self,
|
5760 9249 | path: ::std::string::String,
|
5761 9250 | ) -> crate::model::ValidationExceptionField {
|
5762 9251 | match self {
|
5763 9252 | ConstraintViolation::MissingLongInPath => crate::model::ValidationExceptionField {
|
5764 9253 | message: format!("Value at '{}/longInPath' failed to satisfy constraint: Member must not be null", path),
|
5765 9254 | path: path + "/longInPath",
|
5766 9255 | },
|
5767 9256 | }
|
5768 9257 | }
|
5769 9258 | }
|
9259 + | /* ServerBuilderGenerator.kt:234 */
|
5770 9260 | impl ::std::convert::From<ConstraintViolation>
|
5771 9261 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5772 9262 | {
|
5773 9263 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5774 9264 | let first_validation_exception_field =
|
5775 9265 | constraint_violation.as_validation_exception_field("".to_owned());
|
5776 9266 | let validation_exception = crate::error::ValidationException {
|
5777 9267 | message: format!(
|
5778 9268 | "1 validation error detected. {}",
|
5779 9269 | &first_validation_exception_field.message
|
5780 9270 | ),
|
5781 9271 | field_list: Some(vec![first_validation_exception_field]),
|
5782 9272 | };
|
5783 9273 | Self::ConstraintViolation(
|
5784 9274 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5785 9275 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5786 9276 | )
|
5787 9277 | }
|
5788 9278 | }
|
9279 + | /* ServerBuilderGenerator.kt:244 */
|
5789 9280 | impl ::std::convert::From<Builder>
|
5790 9281 | for crate::constrained::MaybeConstrained<crate::input::MalformedLongInput>
|
5791 9282 | {
|
5792 9283 | fn from(builder: Builder) -> Self {
|
5793 9284 | Self::Unconstrained(builder)
|
5794 9285 | }
|
5795 9286 | }
|
9287 + | /* ServerBuilderGenerator.kt:446 */
|
5796 9288 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedLongInput {
|
5797 9289 | type Error = ConstraintViolation;
|
5798 9290 |
|
5799 9291 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5800 9292 | builder.build()
|
5801 9293 | }
|
5802 9294 | }
|
5803 - | /// A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9295 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9296 + | /* RustType.kt:516 */
|
5804 9297 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9298 + | /* ServerBuilderGenerator.kt:211 */
|
5805 9299 | pub struct Builder {
|
9300 + | /* ServerBuilderGenerator.kt:308 */
|
5806 9301 | pub(crate) long_in_body: ::std::option::Option<i64>,
|
9302 + | /* ServerBuilderGenerator.kt:308 */
|
5807 9303 | pub(crate) long_in_path: ::std::option::Option<i64>,
|
9304 + | /* ServerBuilderGenerator.kt:308 */
|
5808 9305 | pub(crate) long_in_query: ::std::option::Option<i64>,
|
9306 + | /* ServerBuilderGenerator.kt:308 */
|
5809 9307 | pub(crate) long_in_header: ::std::option::Option<i64>,
|
9308 + | /* ServerBuilderGenerator.kt:211 */
|
5810 9309 | }
|
9310 + | /* ServerBuilderGenerator.kt:215 */
|
5811 9311 | impl Builder {
|
9312 + | /* ServerBuilderGenerator.kt:331 */
|
5812 9313 | #[allow(missing_docs)] // documentation missing in model
|
9314 + | /* ServerBuilderGenerator.kt:343 */
|
5813 9315 | pub fn long_in_body(mut self, input: ::std::option::Option<i64>) -> Self {
|
5814 - | self.long_in_body = input;
|
9316 + | /* ServerBuilderGenerator.kt:344 */
|
9317 + | self.long_in_body =
|
9318 + | /* ServerBuilderGenerator.kt:376 */input
|
9319 + | /* ServerBuilderGenerator.kt:344 */;
|
5815 9320 | self
|
9321 + | /* ServerBuilderGenerator.kt:343 */
|
5816 9322 | }
|
9323 + | /* ServerBuilderGenerator.kt:426 */
|
5817 9324 | #[allow(missing_docs)] // documentation missing in model
|
9325 + | /* ServerBuilderGenerator.kt:428 */
|
5818 9326 | pub(crate) fn set_long_in_body(
|
5819 9327 | mut self,
|
5820 9328 | input: Option<impl ::std::convert::Into<i64>>,
|
5821 9329 | ) -> Self {
|
9330 + | /* ServerBuilderGenerator.kt:429 */
|
5822 9331 | self.long_in_body = input.map(|v| v.into());
|
5823 9332 | self
|
9333 + | /* ServerBuilderGenerator.kt:428 */
|
5824 9334 | }
|
9335 + | /* ServerBuilderGenerator.kt:331 */
|
5825 9336 | #[allow(missing_docs)] // documentation missing in model
|
9337 + | /* ServerBuilderGenerator.kt:343 */
|
5826 9338 | pub fn long_in_path(mut self, input: i64) -> Self {
|
5827 - | self.long_in_path = Some(input);
|
9339 + | /* ServerBuilderGenerator.kt:344 */
|
9340 + | self.long_in_path =
|
9341 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9342 + | /* ServerBuilderGenerator.kt:376 */input
|
9343 + | /* ServerBuilderGenerator.kt:345 */)
|
9344 + | /* ServerBuilderGenerator.kt:344 */;
|
5828 9345 | self
|
9346 + | /* ServerBuilderGenerator.kt:343 */
|
5829 9347 | }
|
9348 + | /* ServerBuilderGenerator.kt:426 */
|
5830 9349 | #[allow(missing_docs)] // documentation missing in model
|
9350 + | /* ServerBuilderGenerator.kt:428 */
|
5831 9351 | pub(crate) fn set_long_in_path(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
9352 + | /* ServerBuilderGenerator.kt:429 */
|
5832 9353 | self.long_in_path = Some(input.into());
|
5833 9354 | self
|
9355 + | /* ServerBuilderGenerator.kt:428 */
|
5834 9356 | }
|
9357 + | /* ServerBuilderGenerator.kt:331 */
|
5835 9358 | #[allow(missing_docs)] // documentation missing in model
|
9359 + | /* ServerBuilderGenerator.kt:343 */
|
5836 9360 | pub fn long_in_query(mut self, input: ::std::option::Option<i64>) -> Self {
|
5837 - | self.long_in_query = input;
|
9361 + | /* ServerBuilderGenerator.kt:344 */
|
9362 + | self.long_in_query =
|
9363 + | /* ServerBuilderGenerator.kt:376 */input
|
9364 + | /* ServerBuilderGenerator.kt:344 */;
|
5838 9365 | self
|
9366 + | /* ServerBuilderGenerator.kt:343 */
|
5839 9367 | }
|
9368 + | /* ServerBuilderGenerator.kt:426 */
|
5840 9369 | #[allow(missing_docs)] // documentation missing in model
|
9370 + | /* ServerBuilderGenerator.kt:428 */
|
5841 9371 | pub(crate) fn set_long_in_query(
|
5842 9372 | mut self,
|
5843 9373 | input: Option<impl ::std::convert::Into<i64>>,
|
5844 9374 | ) -> Self {
|
9375 + | /* ServerBuilderGenerator.kt:429 */
|
5845 9376 | self.long_in_query = input.map(|v| v.into());
|
5846 9377 | self
|
9378 + | /* ServerBuilderGenerator.kt:428 */
|
5847 9379 | }
|
9380 + | /* ServerBuilderGenerator.kt:331 */
|
5848 9381 | #[allow(missing_docs)] // documentation missing in model
|
9382 + | /* ServerBuilderGenerator.kt:343 */
|
5849 9383 | pub fn long_in_header(mut self, input: ::std::option::Option<i64>) -> Self {
|
5850 - | self.long_in_header = input;
|
9384 + | /* ServerBuilderGenerator.kt:344 */
|
9385 + | self.long_in_header =
|
9386 + | /* ServerBuilderGenerator.kt:376 */input
|
9387 + | /* ServerBuilderGenerator.kt:344 */;
|
5851 9388 | self
|
9389 + | /* ServerBuilderGenerator.kt:343 */
|
5852 9390 | }
|
9391 + | /* ServerBuilderGenerator.kt:426 */
|
5853 9392 | #[allow(missing_docs)] // documentation missing in model
|
9393 + | /* ServerBuilderGenerator.kt:428 */
|
5854 9394 | pub(crate) fn set_long_in_header(
|
5855 9395 | mut self,
|
5856 9396 | input: Option<impl ::std::convert::Into<i64>>,
|
5857 9397 | ) -> Self {
|
9398 + | /* ServerBuilderGenerator.kt:429 */
|
5858 9399 | self.long_in_header = input.map(|v| v.into());
|
5859 9400 | self
|
9401 + | /* ServerBuilderGenerator.kt:428 */
|
5860 9402 | }
|
5861 - | /// Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
5862 - | ///
|
9403 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9404 + | /// /* ServerBuilderGenerator.kt:260 */
|
5863 9405 | /// The builder fails to construct a [`MalformedLongInput`](crate::input::MalformedLongInput) if a [`ConstraintViolation`] occurs.
|
5864 9406 | ///
|
9407 + | /* ServerBuilderGenerator.kt:271 */
|
5865 9408 | pub fn build(self) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
5866 9409 | self.build_enforcing_all_constraints()
|
5867 9410 | }
|
9411 + | /* ServerBuilderGenerator.kt:283 */
|
5868 9412 | fn build_enforcing_all_constraints(
|
5869 9413 | self,
|
5870 9414 | ) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
5871 - | Ok(crate::input::MalformedLongInput {
|
9415 + | /* ServerBuilderGenerator.kt:287 */
|
9416 + | Ok(
|
9417 + | /* ServerBuilderGenerator.kt:542 */
|
9418 + | crate::input::MalformedLongInput {
|
9419 + | /* ServerBuilderGenerator.kt:546 */
|
5872 9420 | long_in_body: self.long_in_body,
|
9421 + | /* ServerBuilderGenerator.kt:546 */
|
5873 9422 | long_in_path: self
|
5874 9423 | .long_in_path
|
9424 + | /* ServerBuilderGenerator.kt:569 */
|
5875 9425 | .ok_or(ConstraintViolation::MissingLongInPath)?,
|
9426 + | /* ServerBuilderGenerator.kt:546 */
|
5876 9427 | long_in_query: self.long_in_query,
|
9428 + | /* ServerBuilderGenerator.kt:546 */
|
5877 9429 | long_in_header: self.long_in_header,
|
5878 - | })
|
9430 + | /* ServerBuilderGenerator.kt:542 */
|
9431 + | }, /* ServerBuilderGenerator.kt:287 */
|
9432 + | )
|
9433 + | /* ServerBuilderGenerator.kt:283 */
|
5879 9434 | }
|
9435 + | /* ServerBuilderGenerator.kt:215 */
|
5880 9436 | }
|
9437 + |
|
9438 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5881 9439 | }
|
5882 - | /// See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9440 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
5883 9441 | pub mod malformed_short_input {
|
5884 9442 |
|
9443 + | /* RustType.kt:516 */
|
5885 9444 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5886 - | /// Holds one variant for each of the ways the builder can fail.
|
9445 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9446 + | /* RustType.kt:516 */
|
5887 9447 | #[non_exhaustive]
|
9448 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5888 9449 | #[allow(clippy::enum_variant_names)]
|
5889 9450 | pub enum ConstraintViolation {
|
5890 - | /// `short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
9451 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
9452 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5891 9453 | MissingShortInPath,
|
9454 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5892 9455 | }
|
9456 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5893 9457 | impl ::std::fmt::Display for ConstraintViolation {
|
9458 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5894 9459 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9460 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5895 9461 | match self {
|
5896 - | ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
5897 - | }
|
9462 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
9463 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9464 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5898 9465 | }
|
9466 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5899 9467 | }
|
9468 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5900 9469 | impl ::std::error::Error for ConstraintViolation {}
|
9470 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5901 9471 | impl ConstraintViolation {
|
5902 9472 | pub(crate) fn as_validation_exception_field(
|
5903 9473 | self,
|
5904 9474 | path: ::std::string::String,
|
5905 9475 | ) -> crate::model::ValidationExceptionField {
|
5906 9476 | match self {
|
5907 9477 | ConstraintViolation::MissingShortInPath => crate::model::ValidationExceptionField {
|
5908 9478 | message: format!("Value at '{}/shortInPath' failed to satisfy constraint: Member must not be null", path),
|
5909 9479 | path: path + "/shortInPath",
|
5910 9480 | },
|
5911 9481 | }
|
5912 9482 | }
|
5913 9483 | }
|
9484 + | /* ServerBuilderGenerator.kt:234 */
|
5914 9485 | impl ::std::convert::From<ConstraintViolation>
|
5915 9486 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5916 9487 | {
|
5917 9488 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5918 9489 | let first_validation_exception_field =
|
5919 9490 | constraint_violation.as_validation_exception_field("".to_owned());
|
5920 9491 | let validation_exception = crate::error::ValidationException {
|
5921 9492 | message: format!(
|
5922 9493 | "1 validation error detected. {}",
|
5923 9494 | &first_validation_exception_field.message
|
5924 9495 | ),
|
5925 9496 | field_list: Some(vec![first_validation_exception_field]),
|
5926 9497 | };
|
5927 9498 | Self::ConstraintViolation(
|
5928 9499 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5929 9500 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5930 9501 | )
|
5931 9502 | }
|
5932 9503 | }
|
9504 + | /* ServerBuilderGenerator.kt:244 */
|
5933 9505 | impl ::std::convert::From<Builder>
|
5934 9506 | for crate::constrained::MaybeConstrained<crate::input::MalformedShortInput>
|
5935 9507 | {
|
5936 9508 | fn from(builder: Builder) -> Self {
|
5937 9509 | Self::Unconstrained(builder)
|
5938 9510 | }
|
5939 9511 | }
|
9512 + | /* ServerBuilderGenerator.kt:446 */
|
5940 9513 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedShortInput {
|
5941 9514 | type Error = ConstraintViolation;
|
5942 9515 |
|
5943 9516 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5944 9517 | builder.build()
|
5945 9518 | }
|
5946 9519 | }
|
5947 - | /// A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9520 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9521 + | /* RustType.kt:516 */
|
5948 9522 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9523 + | /* ServerBuilderGenerator.kt:211 */
|
5949 9524 | pub struct Builder {
|
9525 + | /* ServerBuilderGenerator.kt:308 */
|
5950 9526 | pub(crate) short_in_body: ::std::option::Option<i16>,
|
9527 + | /* ServerBuilderGenerator.kt:308 */
|
5951 9528 | pub(crate) short_in_path: ::std::option::Option<i16>,
|
9529 + | /* ServerBuilderGenerator.kt:308 */
|
5952 9530 | pub(crate) short_in_query: ::std::option::Option<i16>,
|
9531 + | /* ServerBuilderGenerator.kt:308 */
|
5953 9532 | pub(crate) short_in_header: ::std::option::Option<i16>,
|
9533 + | /* ServerBuilderGenerator.kt:211 */
|
5954 9534 | }
|
9535 + | /* ServerBuilderGenerator.kt:215 */
|
5955 9536 | impl Builder {
|
9537 + | /* ServerBuilderGenerator.kt:331 */
|
5956 9538 | #[allow(missing_docs)] // documentation missing in model
|
9539 + | /* ServerBuilderGenerator.kt:343 */
|
5957 9540 | pub fn short_in_body(mut self, input: ::std::option::Option<i16>) -> Self {
|
5958 - | self.short_in_body = input;
|
9541 + | /* ServerBuilderGenerator.kt:344 */
|
9542 + | self.short_in_body =
|
9543 + | /* ServerBuilderGenerator.kt:376 */input
|
9544 + | /* ServerBuilderGenerator.kt:344 */;
|
5959 9545 | self
|
9546 + | /* ServerBuilderGenerator.kt:343 */
|
5960 9547 | }
|
9548 + | /* ServerBuilderGenerator.kt:426 */
|
5961 9549 | #[allow(missing_docs)] // documentation missing in model
|
9550 + | /* ServerBuilderGenerator.kt:428 */
|
5962 9551 | pub(crate) fn set_short_in_body(
|
5963 9552 | mut self,
|
5964 9553 | input: Option<impl ::std::convert::Into<i16>>,
|
5965 9554 | ) -> Self {
|
9555 + | /* ServerBuilderGenerator.kt:429 */
|
5966 9556 | self.short_in_body = input.map(|v| v.into());
|
5967 9557 | self
|
9558 + | /* ServerBuilderGenerator.kt:428 */
|
5968 9559 | }
|
9560 + | /* ServerBuilderGenerator.kt:331 */
|
5969 9561 | #[allow(missing_docs)] // documentation missing in model
|
9562 + | /* ServerBuilderGenerator.kt:343 */
|
5970 9563 | pub fn short_in_path(mut self, input: i16) -> Self {
|
5971 - | self.short_in_path = Some(input);
|
9564 + | /* ServerBuilderGenerator.kt:344 */
|
9565 + | self.short_in_path =
|
9566 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9567 + | /* ServerBuilderGenerator.kt:376 */input
|
9568 + | /* ServerBuilderGenerator.kt:345 */)
|
9569 + | /* ServerBuilderGenerator.kt:344 */;
|
5972 9570 | self
|
9571 + | /* ServerBuilderGenerator.kt:343 */
|
5973 9572 | }
|
9573 + | /* ServerBuilderGenerator.kt:426 */
|
5974 9574 | #[allow(missing_docs)] // documentation missing in model
|
9575 + | /* ServerBuilderGenerator.kt:428 */
|
5975 9576 | pub(crate) fn set_short_in_path(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
9577 + | /* ServerBuilderGenerator.kt:429 */
|
5976 9578 | self.short_in_path = Some(input.into());
|
5977 9579 | self
|
9580 + | /* ServerBuilderGenerator.kt:428 */
|
5978 9581 | }
|
9582 + | /* ServerBuilderGenerator.kt:331 */
|
5979 9583 | #[allow(missing_docs)] // documentation missing in model
|
9584 + | /* ServerBuilderGenerator.kt:343 */
|
5980 9585 | pub fn short_in_query(mut self, input: ::std::option::Option<i16>) -> Self {
|
5981 - | self.short_in_query = input;
|
9586 + | /* ServerBuilderGenerator.kt:344 */
|
9587 + | self.short_in_query =
|
9588 + | /* ServerBuilderGenerator.kt:376 */input
|
9589 + | /* ServerBuilderGenerator.kt:344 */;
|
5982 9590 | self
|
9591 + | /* ServerBuilderGenerator.kt:343 */
|
5983 9592 | }
|
9593 + | /* ServerBuilderGenerator.kt:426 */
|
5984 9594 | #[allow(missing_docs)] // documentation missing in model
|
9595 + | /* ServerBuilderGenerator.kt:428 */
|
5985 9596 | pub(crate) fn set_short_in_query(
|
5986 9597 | mut self,
|
5987 9598 | input: Option<impl ::std::convert::Into<i16>>,
|
5988 9599 | ) -> Self {
|
9600 + | /* ServerBuilderGenerator.kt:429 */
|
5989 9601 | self.short_in_query = input.map(|v| v.into());
|
5990 9602 | self
|
9603 + | /* ServerBuilderGenerator.kt:428 */
|
5991 9604 | }
|
9605 + | /* ServerBuilderGenerator.kt:331 */
|
5992 9606 | #[allow(missing_docs)] // documentation missing in model
|
9607 + | /* ServerBuilderGenerator.kt:343 */
|
5993 9608 | pub fn short_in_header(mut self, input: ::std::option::Option<i16>) -> Self {
|
5994 - | self.short_in_header = input;
|
9609 + | /* ServerBuilderGenerator.kt:344 */
|
9610 + | self.short_in_header =
|
9611 + | /* ServerBuilderGenerator.kt:376 */input
|
9612 + | /* ServerBuilderGenerator.kt:344 */;
|
5995 9613 | self
|
9614 + | /* ServerBuilderGenerator.kt:343 */
|
5996 9615 | }
|
9616 + | /* ServerBuilderGenerator.kt:426 */
|
5997 9617 | #[allow(missing_docs)] // documentation missing in model
|
9618 + | /* ServerBuilderGenerator.kt:428 */
|
5998 9619 | pub(crate) fn set_short_in_header(
|
5999 9620 | mut self,
|
6000 9621 | input: Option<impl ::std::convert::Into<i16>>,
|
6001 9622 | ) -> Self {
|
9623 + | /* ServerBuilderGenerator.kt:429 */
|
6002 9624 | self.short_in_header = input.map(|v| v.into());
|
6003 9625 | self
|
9626 + | /* ServerBuilderGenerator.kt:428 */
|
6004 9627 | }
|
6005 - | /// Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
6006 - | ///
|
9628 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9629 + | /// /* ServerBuilderGenerator.kt:260 */
|
6007 9630 | /// The builder fails to construct a [`MalformedShortInput`](crate::input::MalformedShortInput) if a [`ConstraintViolation`] occurs.
|
6008 9631 | ///
|
9632 + | /* ServerBuilderGenerator.kt:271 */
|
6009 9633 | pub fn build(self) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
6010 9634 | self.build_enforcing_all_constraints()
|
6011 9635 | }
|
9636 + | /* ServerBuilderGenerator.kt:283 */
|
6012 9637 | fn build_enforcing_all_constraints(
|
6013 9638 | self,
|
6014 9639 | ) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
6015 - | Ok(crate::input::MalformedShortInput {
|
9640 + | /* ServerBuilderGenerator.kt:287 */
|
9641 + | Ok(
|
9642 + | /* ServerBuilderGenerator.kt:542 */
|
9643 + | crate::input::MalformedShortInput {
|
9644 + | /* ServerBuilderGenerator.kt:546 */
|
6016 9645 | short_in_body: self.short_in_body,
|
9646 + | /* ServerBuilderGenerator.kt:546 */
|
6017 9647 | short_in_path: self
|
6018 9648 | .short_in_path
|
9649 + | /* ServerBuilderGenerator.kt:569 */
|
6019 9650 | .ok_or(ConstraintViolation::MissingShortInPath)?,
|
9651 + | /* ServerBuilderGenerator.kt:546 */
|
6020 9652 | short_in_query: self.short_in_query,
|
9653 + | /* ServerBuilderGenerator.kt:546 */
|
6021 9654 | short_in_header: self.short_in_header,
|
6022 - | })
|
9655 + | /* ServerBuilderGenerator.kt:542 */
|
9656 + | }, /* ServerBuilderGenerator.kt:287 */
|
9657 + | )
|
9658 + | /* ServerBuilderGenerator.kt:283 */
|
6023 9659 | }
|
9660 + | /* ServerBuilderGenerator.kt:215 */
|
6024 9661 | }
|
9662 + |
|
9663 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6025 9664 | }
|
6026 - | /// See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9665 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
6027 9666 | pub mod malformed_byte_input {
|
6028 9667 |
|
9668 + | /* RustType.kt:516 */
|
6029 9669 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6030 - | /// Holds one variant for each of the ways the builder can fail.
|
9670 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9671 + | /* RustType.kt:516 */
|
6031 9672 | #[non_exhaustive]
|
9673 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6032 9674 | #[allow(clippy::enum_variant_names)]
|
6033 9675 | pub enum ConstraintViolation {
|
6034 - | /// `byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
9676 + | /// /* ServerBuilderConstraintViolations.kt:138 */`byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
9677 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6035 9678 | MissingByteInPath,
|
9679 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6036 9680 | }
|
9681 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6037 9682 | impl ::std::fmt::Display for ConstraintViolation {
|
9683 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6038 9684 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9685 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6039 9686 | match self {
|
6040 - | ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
6041 - | }
|
9687 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
9688 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
9689 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6042 9690 | }
|
9691 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6043 9692 | }
|
9693 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6044 9694 | impl ::std::error::Error for ConstraintViolation {}
|
9695 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6045 9696 | impl ConstraintViolation {
|
6046 9697 | pub(crate) fn as_validation_exception_field(
|
6047 9698 | self,
|
6048 9699 | path: ::std::string::String,
|
6049 9700 | ) -> crate::model::ValidationExceptionField {
|
6050 9701 | match self {
|
6051 9702 | ConstraintViolation::MissingByteInPath => crate::model::ValidationExceptionField {
|
6052 9703 | message: format!("Value at '{}/byteInPath' failed to satisfy constraint: Member must not be null", path),
|
6053 9704 | path: path + "/byteInPath",
|
6054 9705 | },
|
6055 9706 | }
|
6056 9707 | }
|
6057 9708 | }
|
9709 + | /* ServerBuilderGenerator.kt:234 */
|
6058 9710 | impl ::std::convert::From<ConstraintViolation>
|
6059 9711 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6060 9712 | {
|
6061 9713 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6062 9714 | let first_validation_exception_field =
|
6063 9715 | constraint_violation.as_validation_exception_field("".to_owned());
|
6064 9716 | let validation_exception = crate::error::ValidationException {
|
6065 9717 | message: format!(
|
6066 9718 | "1 validation error detected. {}",
|
6067 9719 | &first_validation_exception_field.message
|
6068 9720 | ),
|
6069 9721 | field_list: Some(vec![first_validation_exception_field]),
|
6070 9722 | };
|
6071 9723 | Self::ConstraintViolation(
|
6072 9724 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6073 9725 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6074 9726 | )
|
6075 9727 | }
|
6076 9728 | }
|
9729 + | /* ServerBuilderGenerator.kt:244 */
|
6077 9730 | impl ::std::convert::From<Builder>
|
6078 9731 | for crate::constrained::MaybeConstrained<crate::input::MalformedByteInput>
|
6079 9732 | {
|
6080 9733 | fn from(builder: Builder) -> Self {
|
6081 9734 | Self::Unconstrained(builder)
|
6082 9735 | }
|
6083 9736 | }
|
9737 + | /* ServerBuilderGenerator.kt:446 */
|
6084 9738 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedByteInput {
|
6085 9739 | type Error = ConstraintViolation;
|
6086 9740 |
|
6087 9741 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6088 9742 | builder.build()
|
6089 9743 | }
|
6090 9744 | }
|
6091 - | /// A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9745 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9746 + | /* RustType.kt:516 */
|
6092 9747 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9748 + | /* ServerBuilderGenerator.kt:211 */
|
6093 9749 | pub struct Builder {
|
9750 + | /* ServerBuilderGenerator.kt:308 */
|
6094 9751 | pub(crate) byte_in_body: ::std::option::Option<i8>,
|
9752 + | /* ServerBuilderGenerator.kt:308 */
|
6095 9753 | pub(crate) byte_in_path: ::std::option::Option<i8>,
|
9754 + | /* ServerBuilderGenerator.kt:308 */
|
6096 9755 | pub(crate) byte_in_query: ::std::option::Option<i8>,
|
9756 + | /* ServerBuilderGenerator.kt:308 */
|
6097 9757 | pub(crate) byte_in_header: ::std::option::Option<i8>,
|
9758 + | /* ServerBuilderGenerator.kt:211 */
|
6098 9759 | }
|
9760 + | /* ServerBuilderGenerator.kt:215 */
|
6099 9761 | impl Builder {
|
9762 + | /* ServerBuilderGenerator.kt:331 */
|
6100 9763 | #[allow(missing_docs)] // documentation missing in model
|
9764 + | /* ServerBuilderGenerator.kt:343 */
|
6101 9765 | pub fn byte_in_body(mut self, input: ::std::option::Option<i8>) -> Self {
|
6102 - | self.byte_in_body = input;
|
9766 + | /* ServerBuilderGenerator.kt:344 */
|
9767 + | self.byte_in_body =
|
9768 + | /* ServerBuilderGenerator.kt:376 */input
|
9769 + | /* ServerBuilderGenerator.kt:344 */;
|
6103 9770 | self
|
9771 + | /* ServerBuilderGenerator.kt:343 */
|
6104 9772 | }
|
9773 + | /* ServerBuilderGenerator.kt:426 */
|
6105 9774 | #[allow(missing_docs)] // documentation missing in model
|
9775 + | /* ServerBuilderGenerator.kt:428 */
|
6106 9776 | pub(crate) fn set_byte_in_body(
|
6107 9777 | mut self,
|
6108 9778 | input: Option<impl ::std::convert::Into<i8>>,
|
6109 9779 | ) -> Self {
|
9780 + | /* ServerBuilderGenerator.kt:429 */
|
6110 9781 | self.byte_in_body = input.map(|v| v.into());
|
6111 9782 | self
|
9783 + | /* ServerBuilderGenerator.kt:428 */
|
6112 9784 | }
|
9785 + | /* ServerBuilderGenerator.kt:331 */
|
6113 9786 | #[allow(missing_docs)] // documentation missing in model
|
9787 + | /* ServerBuilderGenerator.kt:343 */
|
6114 9788 | pub fn byte_in_path(mut self, input: i8) -> Self {
|
6115 - | self.byte_in_path = Some(input);
|
9789 + | /* ServerBuilderGenerator.kt:344 */
|
9790 + | self.byte_in_path =
|
9791 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9792 + | /* ServerBuilderGenerator.kt:376 */input
|
9793 + | /* ServerBuilderGenerator.kt:345 */)
|
9794 + | /* ServerBuilderGenerator.kt:344 */;
|
6116 9795 | self
|
9796 + | /* ServerBuilderGenerator.kt:343 */
|
6117 9797 | }
|
9798 + | /* ServerBuilderGenerator.kt:426 */
|
6118 9799 | #[allow(missing_docs)] // documentation missing in model
|
9800 + | /* ServerBuilderGenerator.kt:428 */
|
6119 9801 | pub(crate) fn set_byte_in_path(mut self, input: impl ::std::convert::Into<i8>) -> Self {
|
9802 + | /* ServerBuilderGenerator.kt:429 */
|
6120 9803 | self.byte_in_path = Some(input.into());
|
6121 9804 | self
|
9805 + | /* ServerBuilderGenerator.kt:428 */
|
6122 9806 | }
|
9807 + | /* ServerBuilderGenerator.kt:331 */
|
6123 9808 | #[allow(missing_docs)] // documentation missing in model
|
9809 + | /* ServerBuilderGenerator.kt:343 */
|
6124 9810 | pub fn byte_in_query(mut self, input: ::std::option::Option<i8>) -> Self {
|
6125 - | self.byte_in_query = input;
|
9811 + | /* ServerBuilderGenerator.kt:344 */
|
9812 + | self.byte_in_query =
|
9813 + | /* ServerBuilderGenerator.kt:376 */input
|
9814 + | /* ServerBuilderGenerator.kt:344 */;
|
6126 9815 | self
|
9816 + | /* ServerBuilderGenerator.kt:343 */
|
6127 9817 | }
|
9818 + | /* ServerBuilderGenerator.kt:426 */
|
6128 9819 | #[allow(missing_docs)] // documentation missing in model
|
9820 + | /* ServerBuilderGenerator.kt:428 */
|
6129 9821 | pub(crate) fn set_byte_in_query(
|
6130 9822 | mut self,
|
6131 9823 | input: Option<impl ::std::convert::Into<i8>>,
|
6132 9824 | ) -> Self {
|
9825 + | /* ServerBuilderGenerator.kt:429 */
|
6133 9826 | self.byte_in_query = input.map(|v| v.into());
|
6134 9827 | self
|
9828 + | /* ServerBuilderGenerator.kt:428 */
|
6135 9829 | }
|
9830 + | /* ServerBuilderGenerator.kt:331 */
|
6136 9831 | #[allow(missing_docs)] // documentation missing in model
|
9832 + | /* ServerBuilderGenerator.kt:343 */
|
6137 9833 | pub fn byte_in_header(mut self, input: ::std::option::Option<i8>) -> Self {
|
6138 - | self.byte_in_header = input;
|
9834 + | /* ServerBuilderGenerator.kt:344 */
|
9835 + | self.byte_in_header =
|
9836 + | /* ServerBuilderGenerator.kt:376 */input
|
9837 + | /* ServerBuilderGenerator.kt:344 */;
|
6139 9838 | self
|
9839 + | /* ServerBuilderGenerator.kt:343 */
|
6140 9840 | }
|
9841 + | /* ServerBuilderGenerator.kt:426 */
|
6141 9842 | #[allow(missing_docs)] // documentation missing in model
|
9843 + | /* ServerBuilderGenerator.kt:428 */
|
6142 9844 | pub(crate) fn set_byte_in_header(
|
6143 9845 | mut self,
|
6144 9846 | input: Option<impl ::std::convert::Into<i8>>,
|
6145 9847 | ) -> Self {
|
9848 + | /* ServerBuilderGenerator.kt:429 */
|
6146 9849 | self.byte_in_header = input.map(|v| v.into());
|
6147 9850 | self
|
9851 + | /* ServerBuilderGenerator.kt:428 */
|
6148 9852 | }
|
6149 - | /// Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
6150 - | ///
|
9853 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9854 + | /// /* ServerBuilderGenerator.kt:260 */
|
6151 9855 | /// The builder fails to construct a [`MalformedByteInput`](crate::input::MalformedByteInput) if a [`ConstraintViolation`] occurs.
|
6152 9856 | ///
|
9857 + | /* ServerBuilderGenerator.kt:271 */
|
6153 9858 | pub fn build(self) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
6154 9859 | self.build_enforcing_all_constraints()
|
6155 9860 | }
|
9861 + | /* ServerBuilderGenerator.kt:283 */
|
6156 9862 | fn build_enforcing_all_constraints(
|
6157 9863 | self,
|
6158 9864 | ) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
6159 - | Ok(crate::input::MalformedByteInput {
|
9865 + | /* ServerBuilderGenerator.kt:287 */
|
9866 + | Ok(
|
9867 + | /* ServerBuilderGenerator.kt:542 */
|
9868 + | crate::input::MalformedByteInput {
|
9869 + | /* ServerBuilderGenerator.kt:546 */
|
6160 9870 | byte_in_body: self.byte_in_body,
|
9871 + | /* ServerBuilderGenerator.kt:546 */
|
6161 9872 | byte_in_path: self
|
6162 9873 | .byte_in_path
|
9874 + | /* ServerBuilderGenerator.kt:569 */
|
6163 9875 | .ok_or(ConstraintViolation::MissingByteInPath)?,
|
9876 + | /* ServerBuilderGenerator.kt:546 */
|
6164 9877 | byte_in_query: self.byte_in_query,
|
9878 + | /* ServerBuilderGenerator.kt:546 */
|
6165 9879 | byte_in_header: self.byte_in_header,
|
6166 - | })
|
9880 + | /* ServerBuilderGenerator.kt:542 */
|
9881 + | }, /* ServerBuilderGenerator.kt:287 */
|
9882 + | )
|
9883 + | /* ServerBuilderGenerator.kt:283 */
|
6167 9884 | }
|
9885 + | /* ServerBuilderGenerator.kt:215 */
|
6168 9886 | }
|
9887 + |
|
9888 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6169 9889 | }
|
6170 - | /// See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
9890 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
6171 9891 | pub mod malformed_blob_input {
|
6172 9892 |
|
9893 + | /* ServerBuilderGenerator.kt:461 */
|
6173 9894 | impl ::std::convert::From<Builder> for crate::input::MalformedBlobInput {
|
6174 9895 | fn from(builder: Builder) -> Self {
|
6175 9896 | builder.build()
|
6176 9897 | }
|
6177 9898 | }
|
6178 - | /// A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
9899 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
9900 + | /* RustType.kt:516 */
|
6179 9901 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9902 + | /* ServerBuilderGenerator.kt:211 */
|
6180 9903 | pub struct Builder {
|
9904 + | /* ServerBuilderGenerator.kt:308 */
|
6181 9905 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
9906 + | /* ServerBuilderGenerator.kt:211 */
|
6182 9907 | }
|
9908 + | /* ServerBuilderGenerator.kt:215 */
|
6183 9909 | impl Builder {
|
9910 + | /* ServerBuilderGenerator.kt:331 */
|
6184 9911 | #[allow(missing_docs)] // documentation missing in model
|
9912 + | /* ServerBuilderGenerator.kt:343 */
|
6185 9913 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
6186 - | self.blob = input;
|
9914 + | /* ServerBuilderGenerator.kt:344 */
|
9915 + | self.blob =
|
9916 + | /* ServerBuilderGenerator.kt:376 */input
|
9917 + | /* ServerBuilderGenerator.kt:344 */;
|
6187 9918 | self
|
9919 + | /* ServerBuilderGenerator.kt:343 */
|
6188 9920 | }
|
9921 + | /* ServerBuilderGenerator.kt:426 */
|
6189 9922 | #[allow(missing_docs)] // documentation missing in model
|
9923 + | /* ServerBuilderGenerator.kt:428 */
|
6190 9924 | pub(crate) fn set_blob(
|
6191 9925 | mut self,
|
6192 9926 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
6193 9927 | ) -> Self {
|
9928 + | /* ServerBuilderGenerator.kt:429 */
|
6194 9929 | self.blob = input.map(|v| v.into());
|
6195 9930 | self
|
9931 + | /* ServerBuilderGenerator.kt:428 */
|
6196 9932 | }
|
6197 - | /// Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
9933 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
9934 + | /* ServerBuilderGenerator.kt:271 */
|
6198 9935 | pub fn build(self) -> crate::input::MalformedBlobInput {
|
6199 9936 | self.build_enforcing_all_constraints()
|
6200 9937 | }
|
9938 + | /* ServerBuilderGenerator.kt:283 */
|
6201 9939 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedBlobInput {
|
6202 - | crate::input::MalformedBlobInput { blob: self.blob }
|
9940 + | /* ServerBuilderGenerator.kt:542 */
|
9941 + | crate::input::MalformedBlobInput {
|
9942 + | /* ServerBuilderGenerator.kt:546 */
|
9943 + | blob: self.blob,
|
9944 + | /* ServerBuilderGenerator.kt:542 */
|
6203 9945 | }
|
9946 + | /* ServerBuilderGenerator.kt:283 */
|
6204 9947 | }
|
9948 + | /* ServerBuilderGenerator.kt:215 */
|
9949 + | }
|
9950 + |
|
9951 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6205 9952 | }
|
6206 - | /// See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
9953 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
6207 9954 | pub mod malformed_map_input {
|
6208 9955 |
|
9956 + | /* ServerBuilderGenerator.kt:461 */
|
6209 9957 | impl ::std::convert::From<Builder> for crate::input::MalformedMapInput {
|
6210 9958 | fn from(builder: Builder) -> Self {
|
6211 9959 | builder.build()
|
6212 9960 | }
|
6213 9961 | }
|
6214 - | /// A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
9962 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
9963 + | /* RustType.kt:516 */
|
6215 9964 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9965 + | /* ServerBuilderGenerator.kt:211 */
|
6216 9966 | pub struct Builder {
|
9967 + | /* ServerBuilderGenerator.kt:308 */
|
6217 9968 | pub(crate) body_map: ::std::option::Option<
|
6218 9969 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6219 9970 | >,
|
9971 + | /* ServerBuilderGenerator.kt:211 */
|
6220 9972 | }
|
9973 + | /* ServerBuilderGenerator.kt:215 */
|
6221 9974 | impl Builder {
|
9975 + | /* ServerBuilderGenerator.kt:331 */
|
6222 9976 | #[allow(missing_docs)] // documentation missing in model
|
9977 + | /* ServerBuilderGenerator.kt:343 */
|
6223 9978 | pub fn body_map(
|
6224 9979 | mut self,
|
6225 9980 | input: ::std::option::Option<
|
6226 9981 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6227 9982 | >,
|
6228 9983 | ) -> Self {
|
6229 - | self.body_map = input;
|
9984 + | /* ServerBuilderGenerator.kt:344 */
|
9985 + | self.body_map =
|
9986 + | /* ServerBuilderGenerator.kt:376 */input
|
9987 + | /* ServerBuilderGenerator.kt:344 */;
|
6230 9988 | self
|
9989 + | /* ServerBuilderGenerator.kt:343 */
|
6231 9990 | }
|
9991 + | /* ServerBuilderGenerator.kt:426 */
|
6232 9992 | #[allow(missing_docs)] // documentation missing in model
|
9993 + | /* ServerBuilderGenerator.kt:428 */
|
6233 9994 | pub(crate) fn set_body_map(
|
6234 9995 | mut self,
|
6235 9996 | input: Option<
|
6236 9997 | impl ::std::convert::Into<
|
6237 9998 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6238 9999 | >,
|
6239 10000 | >,
|
6240 10001 | ) -> Self {
|
10002 + | /* ServerBuilderGenerator.kt:429 */
|
6241 10003 | self.body_map = input.map(|v| v.into());
|
6242 10004 | self
|
10005 + | /* ServerBuilderGenerator.kt:428 */
|
6243 10006 | }
|
6244 - | /// Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10007 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10008 + | /* ServerBuilderGenerator.kt:271 */
|
6245 10009 | pub fn build(self) -> crate::input::MalformedMapInput {
|
6246 10010 | self.build_enforcing_all_constraints()
|
6247 10011 | }
|
10012 + | /* ServerBuilderGenerator.kt:283 */
|
6248 10013 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedMapInput {
|
10014 + | /* ServerBuilderGenerator.kt:542 */
|
6249 10015 | crate::input::MalformedMapInput {
|
10016 + | /* ServerBuilderGenerator.kt:546 */
|
6250 10017 | body_map: self.body_map,
|
10018 + | /* ServerBuilderGenerator.kt:542 */
|
6251 10019 | }
|
10020 + | /* ServerBuilderGenerator.kt:283 */
|
6252 10021 | }
|
10022 + | /* ServerBuilderGenerator.kt:215 */
|
6253 10023 | }
|
10024 + |
|
10025 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6254 10026 | }
|
6255 - | /// See [`MalformedListInput`](crate::input::MalformedListInput).
|
10027 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedListInput`](crate::input::MalformedListInput).
|
6256 10028 | pub mod malformed_list_input {
|
6257 10029 |
|
10030 + | /* ServerBuilderGenerator.kt:461 */
|
6258 10031 | impl ::std::convert::From<Builder> for crate::input::MalformedListInput {
|
6259 10032 | fn from(builder: Builder) -> Self {
|
6260 10033 | builder.build()
|
6261 10034 | }
|
6262 10035 | }
|
6263 - | /// A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
10036 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
10037 + | /* RustType.kt:516 */
|
6264 10038 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10039 + | /* ServerBuilderGenerator.kt:211 */
|
6265 10040 | pub struct Builder {
|
10041 + | /* ServerBuilderGenerator.kt:308 */
|
6266 10042 | pub(crate) body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10043 + | /* ServerBuilderGenerator.kt:211 */
|
6267 10044 | }
|
10045 + | /* ServerBuilderGenerator.kt:215 */
|
6268 10046 | impl Builder {
|
10047 + | /* ServerBuilderGenerator.kt:331 */
|
6269 10048 | #[allow(missing_docs)] // documentation missing in model
|
10049 + | /* ServerBuilderGenerator.kt:343 */
|
6270 10050 | pub fn body_list(
|
6271 10051 | mut self,
|
6272 10052 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6273 10053 | ) -> Self {
|
6274 - | self.body_list = input;
|
10054 + | /* ServerBuilderGenerator.kt:344 */
|
10055 + | self.body_list =
|
10056 + | /* ServerBuilderGenerator.kt:376 */input
|
10057 + | /* ServerBuilderGenerator.kt:344 */;
|
6275 10058 | self
|
10059 + | /* ServerBuilderGenerator.kt:343 */
|
6276 10060 | }
|
10061 + | /* ServerBuilderGenerator.kt:426 */
|
6277 10062 | #[allow(missing_docs)] // documentation missing in model
|
10063 + | /* ServerBuilderGenerator.kt:428 */
|
6278 10064 | pub(crate) fn set_body_list(
|
6279 10065 | mut self,
|
6280 10066 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
6281 10067 | ) -> Self {
|
10068 + | /* ServerBuilderGenerator.kt:429 */
|
6282 10069 | self.body_list = input.map(|v| v.into());
|
6283 10070 | self
|
10071 + | /* ServerBuilderGenerator.kt:428 */
|
6284 10072 | }
|
6285 - | /// Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
10073 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
10074 + | /* ServerBuilderGenerator.kt:271 */
|
6286 10075 | pub fn build(self) -> crate::input::MalformedListInput {
|
6287 10076 | self.build_enforcing_all_constraints()
|
6288 10077 | }
|
10078 + | /* ServerBuilderGenerator.kt:283 */
|
6289 10079 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedListInput {
|
10080 + | /* ServerBuilderGenerator.kt:542 */
|
6290 10081 | crate::input::MalformedListInput {
|
10082 + | /* ServerBuilderGenerator.kt:546 */
|
6291 10083 | body_list: self.body_list,
|
10084 + | /* ServerBuilderGenerator.kt:542 */
|
6292 10085 | }
|
10086 + | /* ServerBuilderGenerator.kt:283 */
|
6293 10087 | }
|
10088 + | /* ServerBuilderGenerator.kt:215 */
|
6294 10089 | }
|
10090 + |
|
10091 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6295 10092 | }
|
6296 - | /// See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10093 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
6297 10094 | pub mod malformed_boolean_input {
|
6298 10095 |
|
10096 + | /* RustType.kt:516 */
|
6299 10097 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6300 - | /// Holds one variant for each of the ways the builder can fail.
|
10098 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10099 + | /* RustType.kt:516 */
|
6301 10100 | #[non_exhaustive]
|
10101 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6302 10102 | #[allow(clippy::enum_variant_names)]
|
6303 10103 | pub enum ConstraintViolation {
|
6304 - | /// `boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
10104 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
10105 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6305 10106 | MissingBooleanInPath,
|
10107 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6306 10108 | }
|
10109 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6307 10110 | impl ::std::fmt::Display for ConstraintViolation {
|
10111 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6308 10112 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10113 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6309 10114 | match self {
|
6310 - | ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
6311 - | }
|
10115 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
10116 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
10117 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6312 10118 | }
|
10119 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6313 10120 | }
|
10121 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6314 10122 | impl ::std::error::Error for ConstraintViolation {}
|
10123 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6315 10124 | impl ConstraintViolation {
|
6316 10125 | pub(crate) fn as_validation_exception_field(
|
6317 10126 | self,
|
6318 10127 | path: ::std::string::String,
|
6319 10128 | ) -> crate::model::ValidationExceptionField {
|
6320 10129 | match self {
|
6321 10130 | ConstraintViolation::MissingBooleanInPath => crate::model::ValidationExceptionField {
|
6322 10131 | message: format!("Value at '{}/booleanInPath' failed to satisfy constraint: Member must not be null", path),
|
6323 10132 | path: path + "/booleanInPath",
|
6324 10133 | },
|
6325 10134 | }
|
6326 10135 | }
|
6327 10136 | }
|
10137 + | /* ServerBuilderGenerator.kt:234 */
|
6328 10138 | impl ::std::convert::From<ConstraintViolation>
|
6329 10139 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6330 10140 | {
|
6331 10141 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6332 10142 | let first_validation_exception_field =
|
6333 10143 | constraint_violation.as_validation_exception_field("".to_owned());
|
6334 10144 | let validation_exception = crate::error::ValidationException {
|
6335 10145 | message: format!(
|
6336 10146 | "1 validation error detected. {}",
|
6337 10147 | &first_validation_exception_field.message
|
6338 10148 | ),
|
6339 10149 | field_list: Some(vec![first_validation_exception_field]),
|
6340 10150 | };
|
6341 10151 | Self::ConstraintViolation(
|
6342 10152 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6343 10153 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6344 10154 | )
|
6345 10155 | }
|
6346 10156 | }
|
10157 + | /* ServerBuilderGenerator.kt:244 */
|
6347 10158 | impl ::std::convert::From<Builder>
|
6348 10159 | for crate::constrained::MaybeConstrained<crate::input::MalformedBooleanInput>
|
6349 10160 | {
|
6350 10161 | fn from(builder: Builder) -> Self {
|
6351 10162 | Self::Unconstrained(builder)
|
6352 10163 | }
|
6353 10164 | }
|
10165 + | /* ServerBuilderGenerator.kt:446 */
|
6354 10166 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedBooleanInput {
|
6355 10167 | type Error = ConstraintViolation;
|
6356 10168 |
|
6357 10169 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6358 10170 | builder.build()
|
6359 10171 | }
|
6360 10172 | }
|
6361 - | /// A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10173 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10174 + | /* RustType.kt:516 */
|
6362 10175 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10176 + | /* ServerBuilderGenerator.kt:211 */
|
6363 10177 | pub struct Builder {
|
10178 + | /* ServerBuilderGenerator.kt:308 */
|
6364 10179 | pub(crate) boolean_in_body: ::std::option::Option<bool>,
|
10180 + | /* ServerBuilderGenerator.kt:308 */
|
6365 10181 | pub(crate) boolean_in_path: ::std::option::Option<bool>,
|
10182 + | /* ServerBuilderGenerator.kt:308 */
|
6366 10183 | pub(crate) boolean_in_query: ::std::option::Option<bool>,
|
10184 + | /* ServerBuilderGenerator.kt:308 */
|
6367 10185 | pub(crate) boolean_in_header: ::std::option::Option<bool>,
|
10186 + | /* ServerBuilderGenerator.kt:211 */
|
6368 10187 | }
|
10188 + | /* ServerBuilderGenerator.kt:215 */
|
6369 10189 | impl Builder {
|
10190 + | /* ServerBuilderGenerator.kt:331 */
|
6370 10191 | #[allow(missing_docs)] // documentation missing in model
|
10192 + | /* ServerBuilderGenerator.kt:343 */
|
6371 10193 | pub fn boolean_in_body(mut self, input: ::std::option::Option<bool>) -> Self {
|
6372 - | self.boolean_in_body = input;
|
10194 + | /* ServerBuilderGenerator.kt:344 */
|
10195 + | self.boolean_in_body =
|
10196 + | /* ServerBuilderGenerator.kt:376 */input
|
10197 + | /* ServerBuilderGenerator.kt:344 */;
|
6373 10198 | self
|
10199 + | /* ServerBuilderGenerator.kt:343 */
|
6374 10200 | }
|
10201 + | /* ServerBuilderGenerator.kt:426 */
|
6375 10202 | #[allow(missing_docs)] // documentation missing in model
|
10203 + | /* ServerBuilderGenerator.kt:428 */
|
6376 10204 | pub(crate) fn set_boolean_in_body(
|
6377 10205 | mut self,
|
6378 10206 | input: Option<impl ::std::convert::Into<bool>>,
|
6379 10207 | ) -> Self {
|
10208 + | /* ServerBuilderGenerator.kt:429 */
|
6380 10209 | self.boolean_in_body = input.map(|v| v.into());
|
6381 10210 | self
|
10211 + | /* ServerBuilderGenerator.kt:428 */
|
6382 10212 | }
|
10213 + | /* ServerBuilderGenerator.kt:331 */
|
6383 10214 | #[allow(missing_docs)] // documentation missing in model
|
10215 + | /* ServerBuilderGenerator.kt:343 */
|
6384 10216 | pub fn boolean_in_path(mut self, input: bool) -> Self {
|
6385 - | self.boolean_in_path = Some(input);
|
10217 + | /* ServerBuilderGenerator.kt:344 */
|
10218 + | self.boolean_in_path =
|
10219 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10220 + | /* ServerBuilderGenerator.kt:376 */input
|
10221 + | /* ServerBuilderGenerator.kt:345 */)
|
10222 + | /* ServerBuilderGenerator.kt:344 */;
|
6386 10223 | self
|
10224 + | /* ServerBuilderGenerator.kt:343 */
|
6387 10225 | }
|
10226 + | /* ServerBuilderGenerator.kt:426 */
|
6388 10227 | #[allow(missing_docs)] // documentation missing in model
|
10228 + | /* ServerBuilderGenerator.kt:428 */
|
6389 10229 | pub(crate) fn set_boolean_in_path(
|
6390 10230 | mut self,
|
6391 10231 | input: impl ::std::convert::Into<bool>,
|
6392 10232 | ) -> Self {
|
10233 + | /* ServerBuilderGenerator.kt:429 */
|
6393 10234 | self.boolean_in_path = Some(input.into());
|
6394 10235 | self
|
10236 + | /* ServerBuilderGenerator.kt:428 */
|
6395 10237 | }
|
10238 + | /* ServerBuilderGenerator.kt:331 */
|
6396 10239 | #[allow(missing_docs)] // documentation missing in model
|
10240 + | /* ServerBuilderGenerator.kt:343 */
|
6397 10241 | pub fn boolean_in_query(mut self, input: ::std::option::Option<bool>) -> Self {
|
6398 - | self.boolean_in_query = input;
|
10242 + | /* ServerBuilderGenerator.kt:344 */
|
10243 + | self.boolean_in_query =
|
10244 + | /* ServerBuilderGenerator.kt:376 */input
|
10245 + | /* ServerBuilderGenerator.kt:344 */;
|
6399 10246 | self
|
10247 + | /* ServerBuilderGenerator.kt:343 */
|
6400 10248 | }
|
10249 + | /* ServerBuilderGenerator.kt:426 */
|
6401 10250 | #[allow(missing_docs)] // documentation missing in model
|
10251 + | /* ServerBuilderGenerator.kt:428 */
|
6402 10252 | pub(crate) fn set_boolean_in_query(
|
6403 10253 | mut self,
|
6404 10254 | input: Option<impl ::std::convert::Into<bool>>,
|
6405 10255 | ) -> Self {
|
10256 + | /* ServerBuilderGenerator.kt:429 */
|
6406 10257 | self.boolean_in_query = input.map(|v| v.into());
|
6407 10258 | self
|
10259 + | /* ServerBuilderGenerator.kt:428 */
|
6408 10260 | }
|
10261 + | /* ServerBuilderGenerator.kt:331 */
|
6409 10262 | #[allow(missing_docs)] // documentation missing in model
|
10263 + | /* ServerBuilderGenerator.kt:343 */
|
6410 10264 | pub fn boolean_in_header(mut self, input: ::std::option::Option<bool>) -> Self {
|
6411 - | self.boolean_in_header = input;
|
10265 + | /* ServerBuilderGenerator.kt:344 */
|
10266 + | self.boolean_in_header =
|
10267 + | /* ServerBuilderGenerator.kt:376 */input
|
10268 + | /* ServerBuilderGenerator.kt:344 */;
|
6412 10269 | self
|
10270 + | /* ServerBuilderGenerator.kt:343 */
|
6413 10271 | }
|
10272 + | /* ServerBuilderGenerator.kt:426 */
|
6414 10273 | #[allow(missing_docs)] // documentation missing in model
|
10274 + | /* ServerBuilderGenerator.kt:428 */
|
6415 10275 | pub(crate) fn set_boolean_in_header(
|
6416 10276 | mut self,
|
6417 10277 | input: Option<impl ::std::convert::Into<bool>>,
|
6418 10278 | ) -> Self {
|
10279 + | /* ServerBuilderGenerator.kt:429 */
|
6419 10280 | self.boolean_in_header = input.map(|v| v.into());
|
6420 10281 | self
|
10282 + | /* ServerBuilderGenerator.kt:428 */
|
6421 10283 | }
|
6422 - | /// Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
6423 - | ///
|
10284 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10285 + | /// /* ServerBuilderGenerator.kt:260 */
|
6424 10286 | /// The builder fails to construct a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) if a [`ConstraintViolation`] occurs.
|
6425 10287 | ///
|
10288 + | /* ServerBuilderGenerator.kt:271 */
|
6426 10289 | pub fn build(self) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
6427 10290 | self.build_enforcing_all_constraints()
|
6428 10291 | }
|
10292 + | /* ServerBuilderGenerator.kt:283 */
|
6429 10293 | fn build_enforcing_all_constraints(
|
6430 10294 | self,
|
6431 10295 | ) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
6432 - | Ok(crate::input::MalformedBooleanInput {
|
10296 + | /* ServerBuilderGenerator.kt:287 */
|
10297 + | Ok(
|
10298 + | /* ServerBuilderGenerator.kt:542 */
|
10299 + | crate::input::MalformedBooleanInput {
|
10300 + | /* ServerBuilderGenerator.kt:546 */
|
6433 10301 | boolean_in_body: self.boolean_in_body,
|
10302 + | /* ServerBuilderGenerator.kt:546 */
|
6434 10303 | boolean_in_path: self
|
6435 10304 | .boolean_in_path
|
10305 + | /* ServerBuilderGenerator.kt:569 */
|
6436 10306 | .ok_or(ConstraintViolation::MissingBooleanInPath)?,
|
10307 + | /* ServerBuilderGenerator.kt:546 */
|
6437 10308 | boolean_in_query: self.boolean_in_query,
|
10309 + | /* ServerBuilderGenerator.kt:546 */
|
6438 10310 | boolean_in_header: self.boolean_in_header,
|
6439 - | })
|
10311 + | /* ServerBuilderGenerator.kt:542 */
|
10312 + | }, /* ServerBuilderGenerator.kt:287 */
|
10313 + | )
|
10314 + | /* ServerBuilderGenerator.kt:283 */
|
6440 10315 | }
|
10316 + | /* ServerBuilderGenerator.kt:215 */
|
6441 10317 | }
|
10318 + |
|
10319 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6442 10320 | }
|
6443 - | /// See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10321 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
6444 10322 | pub mod malformed_union_input {
|
6445 10323 |
|
10324 + | /* ServerBuilderGenerator.kt:461 */
|
6446 10325 | impl ::std::convert::From<Builder> for crate::input::MalformedUnionInput {
|
6447 10326 | fn from(builder: Builder) -> Self {
|
6448 10327 | builder.build()
|
6449 10328 | }
|
6450 10329 | }
|
6451 - | /// A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10330 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10331 + | /* RustType.kt:516 */
|
6452 10332 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10333 + | /* ServerBuilderGenerator.kt:211 */
|
6453 10334 | pub struct Builder {
|
10335 + | /* ServerBuilderGenerator.kt:308 */
|
6454 10336 | pub(crate) union: ::std::option::Option<crate::model::SimpleUnion>,
|
10337 + | /* ServerBuilderGenerator.kt:211 */
|
6455 10338 | }
|
10339 + | /* ServerBuilderGenerator.kt:215 */
|
6456 10340 | impl Builder {
|
10341 + | /* ServerBuilderGenerator.kt:331 */
|
6457 10342 | #[allow(missing_docs)] // documentation missing in model
|
10343 + | /* ServerBuilderGenerator.kt:343 */
|
6458 10344 | pub fn union(mut self, input: ::std::option::Option<crate::model::SimpleUnion>) -> Self {
|
6459 - | self.union = input;
|
10345 + | /* ServerBuilderGenerator.kt:344 */
|
10346 + | self.union =
|
10347 + | /* ServerBuilderGenerator.kt:376 */input
|
10348 + | /* ServerBuilderGenerator.kt:344 */;
|
6460 10349 | self
|
10350 + | /* ServerBuilderGenerator.kt:343 */
|
6461 10351 | }
|
10352 + | /* ServerBuilderGenerator.kt:426 */
|
6462 10353 | #[allow(missing_docs)] // documentation missing in model
|
10354 + | /* ServerBuilderGenerator.kt:428 */
|
6463 10355 | pub(crate) fn set_union(
|
6464 10356 | mut self,
|
6465 10357 | input: Option<impl ::std::convert::Into<crate::model::SimpleUnion>>,
|
6466 10358 | ) -> Self {
|
10359 + | /* ServerBuilderGenerator.kt:429 */
|
6467 10360 | self.union = input.map(|v| v.into());
|
6468 10361 | self
|
10362 + | /* ServerBuilderGenerator.kt:428 */
|
6469 10363 | }
|
6470 - | /// Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10364 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10365 + | /* ServerBuilderGenerator.kt:271 */
|
6471 10366 | pub fn build(self) -> crate::input::MalformedUnionInput {
|
6472 10367 | self.build_enforcing_all_constraints()
|
6473 10368 | }
|
10369 + | /* ServerBuilderGenerator.kt:283 */
|
6474 10370 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedUnionInput {
|
6475 - | crate::input::MalformedUnionInput { union: self.union }
|
10371 + | /* ServerBuilderGenerator.kt:542 */
|
10372 + | crate::input::MalformedUnionInput {
|
10373 + | /* ServerBuilderGenerator.kt:546 */
|
10374 + | union: self.union,
|
10375 + | /* ServerBuilderGenerator.kt:542 */
|
6476 10376 | }
|
10377 + | /* ServerBuilderGenerator.kt:283 */
|
6477 10378 | }
|
10379 + | /* ServerBuilderGenerator.kt:215 */
|
10380 + | }
|
10381 + |
|
10382 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6478 10383 | }
|
6479 - | /// See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10384 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
6480 10385 | pub mod malformed_integer_input {
|
6481 10386 |
|
10387 + | /* RustType.kt:516 */
|
6482 10388 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6483 - | /// Holds one variant for each of the ways the builder can fail.
|
10389 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10390 + | /* RustType.kt:516 */
|
6484 10391 | #[non_exhaustive]
|
10392 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6485 10393 | #[allow(clippy::enum_variant_names)]
|
6486 10394 | pub enum ConstraintViolation {
|
6487 - | /// `integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
10395 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
10396 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6488 10397 | MissingIntegerInPath,
|
10398 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6489 10399 | }
|
10400 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6490 10401 | impl ::std::fmt::Display for ConstraintViolation {
|
10402 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6491 10403 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10404 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6492 10405 | match self {
|
6493 - | ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
6494 - | }
|
10406 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
10407 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
10408 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6495 10409 | }
|
10410 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6496 10411 | }
|
10412 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6497 10413 | impl ::std::error::Error for ConstraintViolation {}
|
10414 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6498 10415 | impl ConstraintViolation {
|
6499 10416 | pub(crate) fn as_validation_exception_field(
|
6500 10417 | self,
|
6501 10418 | path: ::std::string::String,
|
6502 10419 | ) -> crate::model::ValidationExceptionField {
|
6503 10420 | match self {
|
6504 10421 | ConstraintViolation::MissingIntegerInPath => crate::model::ValidationExceptionField {
|
6505 10422 | message: format!("Value at '{}/integerInPath' failed to satisfy constraint: Member must not be null", path),
|
6506 10423 | path: path + "/integerInPath",
|
6507 10424 | },
|
6508 10425 | }
|
6509 10426 | }
|
6510 10427 | }
|
10428 + | /* ServerBuilderGenerator.kt:234 */
|
6511 10429 | impl ::std::convert::From<ConstraintViolation>
|
6512 10430 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6513 10431 | {
|
6514 10432 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6515 10433 | let first_validation_exception_field =
|
6516 10434 | constraint_violation.as_validation_exception_field("".to_owned());
|
6517 10435 | let validation_exception = crate::error::ValidationException {
|
6518 10436 | message: format!(
|
6519 10437 | "1 validation error detected. {}",
|
6520 10438 | &first_validation_exception_field.message
|
6521 10439 | ),
|
6522 10440 | field_list: Some(vec![first_validation_exception_field]),
|
6523 10441 | };
|
6524 10442 | Self::ConstraintViolation(
|
6525 10443 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6526 10444 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6527 10445 | )
|
6528 10446 | }
|
6529 10447 | }
|
10448 + | /* ServerBuilderGenerator.kt:244 */
|
6530 10449 | impl ::std::convert::From<Builder>
|
6531 10450 | for crate::constrained::MaybeConstrained<crate::input::MalformedIntegerInput>
|
6532 10451 | {
|
6533 10452 | fn from(builder: Builder) -> Self {
|
6534 10453 | Self::Unconstrained(builder)
|
6535 10454 | }
|
6536 10455 | }
|
10456 + | /* ServerBuilderGenerator.kt:446 */
|
6537 10457 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedIntegerInput {
|
6538 10458 | type Error = ConstraintViolation;
|
6539 10459 |
|
6540 10460 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6541 10461 | builder.build()
|
6542 10462 | }
|
6543 10463 | }
|
6544 - | /// A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10464 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10465 + | /* RustType.kt:516 */
|
6545 10466 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10467 + | /* ServerBuilderGenerator.kt:211 */
|
6546 10468 | pub struct Builder {
|
10469 + | /* ServerBuilderGenerator.kt:308 */
|
6547 10470 | pub(crate) integer_in_body: ::std::option::Option<i32>,
|
10471 + | /* ServerBuilderGenerator.kt:308 */
|
6548 10472 | pub(crate) integer_in_path: ::std::option::Option<i32>,
|
10473 + | /* ServerBuilderGenerator.kt:308 */
|
6549 10474 | pub(crate) integer_in_query: ::std::option::Option<i32>,
|
10475 + | /* ServerBuilderGenerator.kt:308 */
|
6550 10476 | pub(crate) integer_in_header: ::std::option::Option<i32>,
|
10477 + | /* ServerBuilderGenerator.kt:211 */
|
6551 10478 | }
|
10479 + | /* ServerBuilderGenerator.kt:215 */
|
6552 10480 | impl Builder {
|
10481 + | /* ServerBuilderGenerator.kt:331 */
|
6553 10482 | #[allow(missing_docs)] // documentation missing in model
|
10483 + | /* ServerBuilderGenerator.kt:343 */
|
6554 10484 | pub fn integer_in_body(mut self, input: ::std::option::Option<i32>) -> Self {
|
6555 - | self.integer_in_body = input;
|
10485 + | /* ServerBuilderGenerator.kt:344 */
|
10486 + | self.integer_in_body =
|
10487 + | /* ServerBuilderGenerator.kt:376 */input
|
10488 + | /* ServerBuilderGenerator.kt:344 */;
|
6556 10489 | self
|
10490 + | /* ServerBuilderGenerator.kt:343 */
|
6557 10491 | }
|
10492 + | /* ServerBuilderGenerator.kt:426 */
|
6558 10493 | #[allow(missing_docs)] // documentation missing in model
|
10494 + | /* ServerBuilderGenerator.kt:428 */
|
6559 10495 | pub(crate) fn set_integer_in_body(
|
6560 10496 | mut self,
|
6561 10497 | input: Option<impl ::std::convert::Into<i32>>,
|
6562 10498 | ) -> Self {
|
10499 + | /* ServerBuilderGenerator.kt:429 */
|
6563 10500 | self.integer_in_body = input.map(|v| v.into());
|
6564 10501 | self
|
10502 + | /* ServerBuilderGenerator.kt:428 */
|
6565 10503 | }
|
10504 + | /* ServerBuilderGenerator.kt:331 */
|
6566 10505 | #[allow(missing_docs)] // documentation missing in model
|
10506 + | /* ServerBuilderGenerator.kt:343 */
|
6567 10507 | pub fn integer_in_path(mut self, input: i32) -> Self {
|
6568 - | self.integer_in_path = Some(input);
|
10508 + | /* ServerBuilderGenerator.kt:344 */
|
10509 + | self.integer_in_path =
|
10510 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10511 + | /* ServerBuilderGenerator.kt:376 */input
|
10512 + | /* ServerBuilderGenerator.kt:345 */)
|
10513 + | /* ServerBuilderGenerator.kt:344 */;
|
6569 10514 | self
|
10515 + | /* ServerBuilderGenerator.kt:343 */
|
6570 10516 | }
|
10517 + | /* ServerBuilderGenerator.kt:426 */
|
6571 10518 | #[allow(missing_docs)] // documentation missing in model
|
10519 + | /* ServerBuilderGenerator.kt:428 */
|
6572 10520 | pub(crate) fn set_integer_in_path(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
10521 + | /* ServerBuilderGenerator.kt:429 */
|
6573 10522 | self.integer_in_path = Some(input.into());
|
6574 10523 | self
|
10524 + | /* ServerBuilderGenerator.kt:428 */
|
6575 10525 | }
|
10526 + | /* ServerBuilderGenerator.kt:331 */
|
6576 10527 | #[allow(missing_docs)] // documentation missing in model
|
10528 + | /* ServerBuilderGenerator.kt:343 */
|
6577 10529 | pub fn integer_in_query(mut self, input: ::std::option::Option<i32>) -> Self {
|
6578 - | self.integer_in_query = input;
|
10530 + | /* ServerBuilderGenerator.kt:344 */
|
10531 + | self.integer_in_query =
|
10532 + | /* ServerBuilderGenerator.kt:376 */input
|
10533 + | /* ServerBuilderGenerator.kt:344 */;
|
6579 10534 | self
|
10535 + | /* ServerBuilderGenerator.kt:343 */
|
6580 10536 | }
|
10537 + | /* ServerBuilderGenerator.kt:426 */
|
6581 10538 | #[allow(missing_docs)] // documentation missing in model
|
10539 + | /* ServerBuilderGenerator.kt:428 */
|
6582 10540 | pub(crate) fn set_integer_in_query(
|
6583 10541 | mut self,
|
6584 10542 | input: Option<impl ::std::convert::Into<i32>>,
|
6585 10543 | ) -> Self {
|
10544 + | /* ServerBuilderGenerator.kt:429 */
|
6586 10545 | self.integer_in_query = input.map(|v| v.into());
|
6587 10546 | self
|
10547 + | /* ServerBuilderGenerator.kt:428 */
|
6588 10548 | }
|
10549 + | /* ServerBuilderGenerator.kt:331 */
|
6589 10550 | #[allow(missing_docs)] // documentation missing in model
|
10551 + | /* ServerBuilderGenerator.kt:343 */
|
6590 10552 | pub fn integer_in_header(mut self, input: ::std::option::Option<i32>) -> Self {
|
6591 - | self.integer_in_header = input;
|
10553 + | /* ServerBuilderGenerator.kt:344 */
|
10554 + | self.integer_in_header =
|
10555 + | /* ServerBuilderGenerator.kt:376 */input
|
10556 + | /* ServerBuilderGenerator.kt:344 */;
|
6592 10557 | self
|
10558 + | /* ServerBuilderGenerator.kt:343 */
|
6593 10559 | }
|
10560 + | /* ServerBuilderGenerator.kt:426 */
|
6594 10561 | #[allow(missing_docs)] // documentation missing in model
|
10562 + | /* ServerBuilderGenerator.kt:428 */
|
6595 10563 | pub(crate) fn set_integer_in_header(
|
6596 10564 | mut self,
|
6597 10565 | input: Option<impl ::std::convert::Into<i32>>,
|
6598 10566 | ) -> Self {
|
10567 + | /* ServerBuilderGenerator.kt:429 */
|
6599 10568 | self.integer_in_header = input.map(|v| v.into());
|
6600 10569 | self
|
10570 + | /* ServerBuilderGenerator.kt:428 */
|
6601 10571 | }
|
6602 - | /// Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
6603 - | ///
|
10572 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10573 + | /// /* ServerBuilderGenerator.kt:260 */
|
6604 10574 | /// The builder fails to construct a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) if a [`ConstraintViolation`] occurs.
|
6605 10575 | ///
|
10576 + | /* ServerBuilderGenerator.kt:271 */
|
6606 10577 | pub fn build(self) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
6607 10578 | self.build_enforcing_all_constraints()
|
6608 10579 | }
|
10580 + | /* ServerBuilderGenerator.kt:283 */
|
6609 10581 | fn build_enforcing_all_constraints(
|
6610 10582 | self,
|
6611 10583 | ) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
6612 - | Ok(crate::input::MalformedIntegerInput {
|
10584 + | /* ServerBuilderGenerator.kt:287 */
|
10585 + | Ok(
|
10586 + | /* ServerBuilderGenerator.kt:542 */
|
10587 + | crate::input::MalformedIntegerInput {
|
10588 + | /* ServerBuilderGenerator.kt:546 */
|
6613 10589 | integer_in_body: self.integer_in_body,
|
10590 + | /* ServerBuilderGenerator.kt:546 */
|
6614 10591 | integer_in_path: self
|
6615 10592 | .integer_in_path
|
10593 + | /* ServerBuilderGenerator.kt:569 */
|
6616 10594 | .ok_or(ConstraintViolation::MissingIntegerInPath)?,
|
10595 + | /* ServerBuilderGenerator.kt:546 */
|
6617 10596 | integer_in_query: self.integer_in_query,
|
10597 + | /* ServerBuilderGenerator.kt:546 */
|
6618 10598 | integer_in_header: self.integer_in_header,
|
6619 - | })
|
10599 + | /* ServerBuilderGenerator.kt:542 */
|
10600 + | }, /* ServerBuilderGenerator.kt:287 */
|
10601 + | )
|
10602 + | /* ServerBuilderGenerator.kt:283 */
|
6620 10603 | }
|
10604 + | /* ServerBuilderGenerator.kt:215 */
|
6621 10605 | }
|
10606 + |
|
10607 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6622 10608 | }
|
6623 - | /// See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10609 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
6624 10610 | pub mod malformed_request_body_input {
|
6625 10611 |
|
10612 + | /* ServerBuilderGenerator.kt:461 */
|
6626 10613 | impl ::std::convert::From<Builder> for crate::input::MalformedRequestBodyInput {
|
6627 10614 | fn from(builder: Builder) -> Self {
|
6628 10615 | builder.build()
|
6629 10616 | }
|
6630 10617 | }
|
6631 - | /// A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10618 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10619 + | /* RustType.kt:516 */
|
6632 10620 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10621 + | /* ServerBuilderGenerator.kt:211 */
|
6633 10622 | pub struct Builder {
|
6634 - | pub(crate) int: ::std::option::Option<i32>,
|
10623 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) int: ::std::option::Option<i32>,
|
10624 + | /* ServerBuilderGenerator.kt:308 */
|
6635 10625 | pub(crate) float: ::std::option::Option<f32>,
|
10626 + | /* ServerBuilderGenerator.kt:211 */
|
6636 10627 | }
|
10628 + | /* ServerBuilderGenerator.kt:215 */
|
6637 10629 | impl Builder {
|
10630 + | /* ServerBuilderGenerator.kt:331 */
|
6638 10631 | #[allow(missing_docs)] // documentation missing in model
|
10632 + | /* ServerBuilderGenerator.kt:343 */
|
6639 10633 | pub fn int(mut self, input: ::std::option::Option<i32>) -> Self {
|
6640 - | self.int = input;
|
10634 + | /* ServerBuilderGenerator.kt:344 */
|
10635 + | self.int =
|
10636 + | /* ServerBuilderGenerator.kt:376 */input
|
10637 + | /* ServerBuilderGenerator.kt:344 */;
|
6641 10638 | self
|
10639 + | /* ServerBuilderGenerator.kt:343 */
|
6642 10640 | }
|
10641 + | /* ServerBuilderGenerator.kt:426 */
|
6643 10642 | #[allow(missing_docs)] // documentation missing in model
|
10643 + | /* ServerBuilderGenerator.kt:428 */
|
6644 10644 | pub(crate) fn set_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
10645 + | /* ServerBuilderGenerator.kt:429 */
|
6645 10646 | self.int = input.map(|v| v.into());
|
6646 10647 | self
|
10648 + | /* ServerBuilderGenerator.kt:428 */
|
6647 10649 | }
|
10650 + | /* ServerBuilderGenerator.kt:331 */
|
6648 10651 | #[allow(missing_docs)] // documentation missing in model
|
10652 + | /* ServerBuilderGenerator.kt:343 */
|
6649 10653 | pub fn float(mut self, input: ::std::option::Option<f32>) -> Self {
|
6650 - | self.float = input;
|
10654 + | /* ServerBuilderGenerator.kt:344 */
|
10655 + | self.float =
|
10656 + | /* ServerBuilderGenerator.kt:376 */input
|
10657 + | /* ServerBuilderGenerator.kt:344 */;
|
6651 10658 | self
|
10659 + | /* ServerBuilderGenerator.kt:343 */
|
6652 10660 | }
|
10661 + | /* ServerBuilderGenerator.kt:426 */
|
6653 10662 | #[allow(missing_docs)] // documentation missing in model
|
10663 + | /* ServerBuilderGenerator.kt:428 */
|
6654 10664 | pub(crate) fn set_float(mut self, input: Option<impl ::std::convert::Into<f32>>) -> Self {
|
10665 + | /* ServerBuilderGenerator.kt:429 */
|
6655 10666 | self.float = input.map(|v| v.into());
|
6656 10667 | self
|
10668 + | /* ServerBuilderGenerator.kt:428 */
|
6657 10669 | }
|
6658 - | /// Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10670 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10671 + | /* ServerBuilderGenerator.kt:271 */
|
6659 10672 | pub fn build(self) -> crate::input::MalformedRequestBodyInput {
|
6660 10673 | self.build_enforcing_all_constraints()
|
6661 10674 | }
|
10675 + | /* ServerBuilderGenerator.kt:283 */
|
6662 10676 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedRequestBodyInput {
|
10677 + | /* ServerBuilderGenerator.kt:542 */
|
6663 10678 | crate::input::MalformedRequestBodyInput {
|
10679 + | /* ServerBuilderGenerator.kt:546 */
|
6664 10680 | int: self.int,
|
10681 + | /* ServerBuilderGenerator.kt:546 */
|
6665 10682 | float: self.float,
|
10683 + | /* ServerBuilderGenerator.kt:542 */
|
6666 10684 | }
|
10685 + | /* ServerBuilderGenerator.kt:283 */
|
6667 10686 | }
|
10687 + | /* ServerBuilderGenerator.kt:215 */
|
6668 10688 | }
|
10689 + |
|
10690 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6669 10691 | }
|
6670 - | /// See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10692 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
6671 10693 | pub mod http_checksum_required_input {
|
6672 10694 |
|
10695 + | /* ServerBuilderGenerator.kt:461 */
|
6673 10696 | impl ::std::convert::From<Builder> for crate::input::HttpChecksumRequiredInput {
|
6674 10697 | fn from(builder: Builder) -> Self {
|
6675 10698 | builder.build()
|
6676 10699 | }
|
6677 10700 | }
|
6678 - | /// A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10701 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10702 + | /* RustType.kt:516 */
|
6679 10703 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10704 + | /* ServerBuilderGenerator.kt:211 */
|
6680 10705 | pub struct Builder {
|
10706 + | /* ServerBuilderGenerator.kt:308 */
|
6681 10707 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
10708 + | /* ServerBuilderGenerator.kt:211 */
|
6682 10709 | }
|
10710 + | /* ServerBuilderGenerator.kt:215 */
|
6683 10711 | impl Builder {
|
10712 + | /* ServerBuilderGenerator.kt:331 */
|
6684 10713 | #[allow(missing_docs)] // documentation missing in model
|
10714 + | /* ServerBuilderGenerator.kt:343 */
|
6685 10715 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
6686 - | self.foo = input;
|
10716 + | /* ServerBuilderGenerator.kt:344 */
|
10717 + | self.foo =
|
10718 + | /* ServerBuilderGenerator.kt:376 */input
|
10719 + | /* ServerBuilderGenerator.kt:344 */;
|
6687 10720 | self
|
10721 + | /* ServerBuilderGenerator.kt:343 */
|
6688 10722 | }
|
10723 + | /* ServerBuilderGenerator.kt:426 */
|
6689 10724 | #[allow(missing_docs)] // documentation missing in model
|
10725 + | /* ServerBuilderGenerator.kt:428 */
|
6690 10726 | pub(crate) fn set_foo(
|
6691 10727 | mut self,
|
6692 10728 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
6693 10729 | ) -> Self {
|
10730 + | /* ServerBuilderGenerator.kt:429 */
|
6694 10731 | self.foo = input.map(|v| v.into());
|
6695 10732 | self
|
10733 + | /* ServerBuilderGenerator.kt:428 */
|
6696 10734 | }
|
6697 - | /// Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10735 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10736 + | /* ServerBuilderGenerator.kt:271 */
|
6698 10737 | pub fn build(self) -> crate::input::HttpChecksumRequiredInput {
|
6699 10738 | self.build_enforcing_all_constraints()
|
6700 10739 | }
|
10740 + | /* ServerBuilderGenerator.kt:283 */
|
6701 10741 | fn build_enforcing_all_constraints(self) -> crate::input::HttpChecksumRequiredInput {
|
6702 - | crate::input::HttpChecksumRequiredInput { foo: self.foo }
|
10742 + | /* ServerBuilderGenerator.kt:542 */
|
10743 + | crate::input::HttpChecksumRequiredInput {
|
10744 + | /* ServerBuilderGenerator.kt:546 */
|
10745 + | foo: self.foo,
|
10746 + | /* ServerBuilderGenerator.kt:542 */
|
6703 10747 | }
|
10748 + | /* ServerBuilderGenerator.kt:283 */
|
6704 10749 | }
|
10750 + | /* ServerBuilderGenerator.kt:215 */
|
10751 + | }
|
10752 + |
|
10753 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6705 10754 | }
|
6706 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10755 + | /// /* ServerBuilderGenerator.kt:171 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
6707 10756 | pub mod host_with_path_operation_input {
|
6708 10757 |
|
10758 + | /* ServerBuilderGenerator.kt:461 */
|
6709 10759 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
6710 10760 | fn from(builder: Builder) -> Self {
|
6711 10761 | builder.build()
|
6712 10762 | }
|
6713 10763 | }
|
6714 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10764 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10765 + | /* RustType.kt:516 */
|
6715 10766 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6716 - | pub struct Builder {}
|
10767 + | /* ServerBuilderGenerator.kt:211 */
|
10768 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
10769 + | /* ServerBuilderGenerator.kt:215 */
|
6717 10770 | impl Builder {
|
6718 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10771 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10772 + | /* ServerBuilderGenerator.kt:271 */
|
6719 10773 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
6720 10774 | self.build_enforcing_all_constraints()
|
6721 10775 | }
|
10776 + | /* ServerBuilderGenerator.kt:283 */
|
6722 10777 | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
6723 - | crate::input::HostWithPathOperationInput {}
|
10778 + | /* ServerBuilderGenerator.kt:542 */
|
10779 + | crate::input::HostWithPathOperationInput {
|
10780 + | /* ServerBuilderGenerator.kt:542 */}
|
10781 + | /* ServerBuilderGenerator.kt:283 */
|
6724 10782 | }
|
10783 + | /* ServerBuilderGenerator.kt:215 */
|
6725 10784 | }
|
10785 + |
|
10786 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6726 10787 | }
|
6727 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
10788 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
6728 10789 | pub mod endpoint_with_host_label_operation_input {
|
6729 10790 |
|
10791 + | /* RustType.kt:516 */
|
6730 10792 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6731 - | /// Holds one variant for each of the ways the builder can fail.
|
10793 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10794 + | /* RustType.kt:516 */
|
6732 10795 | #[non_exhaustive]
|
10796 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6733 10797 | #[allow(clippy::enum_variant_names)]
|
6734 10798 | pub enum ConstraintViolation {
|
6735 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
10799 + | /// /* ServerBuilderConstraintViolations.kt:138 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
10800 + | /* ServerBuilderConstraintViolations.kt:143 */
|
6736 10801 | MissingLabel,
|
10802 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6737 10803 | }
|
10804 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6738 10805 | impl ::std::fmt::Display for ConstraintViolation {
|
10806 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6739 10807 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10808 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6740 10809 | match self {
|
6741 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
6742 - | }
|
10810 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
10811 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
10812 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6743 10813 | }
|
10814 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6744 10815 | }
|
10816 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6745 10817 | impl ::std::error::Error for ConstraintViolation {}
|
10818 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6746 10819 | impl ConstraintViolation {
|
6747 10820 | pub(crate) fn as_validation_exception_field(
|
6748 10821 | self,
|
6749 10822 | path: ::std::string::String,
|
6750 10823 | ) -> crate::model::ValidationExceptionField {
|
6751 10824 | match self {
|
6752 10825 | ConstraintViolation::MissingLabel => crate::model::ValidationExceptionField {
|
6753 10826 | message: format!(
|
6754 10827 | "Value at '{}/label' failed to satisfy constraint: Member must not be null",
|
6755 10828 | path
|
6756 10829 | ),
|
6757 10830 | path: path + "/label",
|
6758 10831 | },
|
6759 10832 | }
|
6760 10833 | }
|
6761 10834 | }
|
10835 + | /* ServerBuilderGenerator.kt:234 */
|
6762 10836 | impl ::std::convert::From<ConstraintViolation>
|
6763 10837 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6764 10838 | {
|
6765 10839 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6766 10840 | let first_validation_exception_field =
|
6767 10841 | constraint_violation.as_validation_exception_field("".to_owned());
|
6768 10842 | let validation_exception = crate::error::ValidationException {
|
6769 10843 | message: format!(
|
6770 10844 | "1 validation error detected. {}",
|
6771 10845 | &first_validation_exception_field.message
|
6772 10846 | ),
|
6773 10847 | field_list: Some(vec![first_validation_exception_field]),
|
6774 10848 | };
|
6775 10849 | Self::ConstraintViolation(
|
6776 10850 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6777 10851 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6778 10852 | )
|
6779 10853 | }
|
6780 10854 | }
|
10855 + | /* ServerBuilderGenerator.kt:244 */
|
6781 10856 | impl ::std::convert::From<Builder>
|
6782 10857 | for crate::constrained::MaybeConstrained<crate::input::EndpointWithHostLabelOperationInput>
|
6783 10858 | {
|
6784 10859 | fn from(builder: Builder) -> Self {
|
6785 10860 | Self::Unconstrained(builder)
|
6786 10861 | }
|
6787 10862 | }
|
10863 + | /* ServerBuilderGenerator.kt:446 */
|
6788 10864 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
6789 10865 | type Error = ConstraintViolation;
|
6790 10866 |
|
6791 10867 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6792 10868 | builder.build()
|
6793 10869 | }
|
6794 10870 | }
|
6795 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
10871 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
10872 + | /* RustType.kt:516 */
|
6796 10873 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10874 + | /* ServerBuilderGenerator.kt:211 */
|
6797 10875 | pub struct Builder {
|
10876 + | /* ServerBuilderGenerator.kt:308 */
|
6798 10877 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
10878 + | /* ServerBuilderGenerator.kt:211 */
|
6799 10879 | }
|
10880 + | /* ServerBuilderGenerator.kt:215 */
|
6800 10881 | impl Builder {
|
10882 + | /* ServerBuilderGenerator.kt:331 */
|
6801 10883 | #[allow(missing_docs)] // documentation missing in model
|
10884 + | /* ServerBuilderGenerator.kt:343 */
|
6802 10885 | pub fn label(mut self, input: ::std::string::String) -> Self {
|
6803 - | self.label = Some(input);
|
10886 + | /* ServerBuilderGenerator.kt:344 */
|
10887 + | self.label =
|
10888 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10889 + | /* ServerBuilderGenerator.kt:376 */input
|
10890 + | /* ServerBuilderGenerator.kt:345 */)
|
10891 + | /* ServerBuilderGenerator.kt:344 */;
|
6804 10892 | self
|
10893 + | /* ServerBuilderGenerator.kt:343 */
|
6805 10894 | }
|
10895 + | /* ServerBuilderGenerator.kt:426 */
|
6806 10896 | #[allow(missing_docs)] // documentation missing in model
|
10897 + | /* ServerBuilderGenerator.kt:428 */
|
6807 10898 | pub(crate) fn set_label(
|
6808 10899 | mut self,
|
6809 10900 | input: impl ::std::convert::Into<::std::string::String>,
|
6810 10901 | ) -> Self {
|
10902 + | /* ServerBuilderGenerator.kt:429 */
|
6811 10903 | self.label = Some(input.into());
|
6812 10904 | self
|
10905 + | /* ServerBuilderGenerator.kt:428 */
|
6813 10906 | }
|
6814 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
6815 - | ///
|
10907 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
10908 + | /// /* ServerBuilderGenerator.kt:260 */
|
6816 10909 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if a [`ConstraintViolation`] occurs.
|
6817 10910 | ///
|
10911 + | /* ServerBuilderGenerator.kt:271 */
|
6818 10912 | pub fn build(
|
6819 10913 | self,
|
6820 10914 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
6821 10915 | {
|
6822 10916 | self.build_enforcing_all_constraints()
|
6823 10917 | }
|
10918 + | /* ServerBuilderGenerator.kt:283 */
|
6824 10919 | fn build_enforcing_all_constraints(
|
6825 10920 | self,
|
6826 10921 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
6827 10922 | {
|
6828 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
6829 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
6830 - | })
|
10923 + | /* ServerBuilderGenerator.kt:287 */
|
10924 + | Ok(
|
10925 + | /* ServerBuilderGenerator.kt:542 */
|
10926 + | crate::input::EndpointWithHostLabelOperationInput {
|
10927 + | /* ServerBuilderGenerator.kt:546 */
|
10928 + | label: self
|
10929 + | .label
|
10930 + | /* ServerBuilderGenerator.kt:569 */
|
10931 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
10932 + | /* ServerBuilderGenerator.kt:542 */
|
10933 + | }, /* ServerBuilderGenerator.kt:287 */
|
10934 + | )
|
10935 + | /* ServerBuilderGenerator.kt:283 */
|
6831 10936 | }
|
10937 + | /* ServerBuilderGenerator.kt:215 */
|
6832 10938 | }
|
10939 + |
|
10940 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6833 10941 | }
|
6834 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
10942 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
6835 10943 | pub mod endpoint_operation_input {
|
6836 10944 |
|
10945 + | /* ServerBuilderGenerator.kt:461 */
|
6837 10946 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
6838 10947 | fn from(builder: Builder) -> Self {
|
6839 10948 | builder.build()
|
6840 10949 | }
|
6841 10950 | }
|
6842 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
10951 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
10952 + | /* RustType.kt:516 */
|
6843 10953 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6844 - | pub struct Builder {}
|
10954 + | /* ServerBuilderGenerator.kt:211 */
|
10955 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
10956 + | /* ServerBuilderGenerator.kt:215 */
|
6845 10957 | impl Builder {
|
6846 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
10958 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
10959 + | /* ServerBuilderGenerator.kt:271 */
|
6847 10960 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
6848 10961 | self.build_enforcing_all_constraints()
|
6849 10962 | }
|
10963 + | /* ServerBuilderGenerator.kt:283 */
|
6850 10964 | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
6851 - | crate::input::EndpointOperationInput {}
|
10965 + | /* ServerBuilderGenerator.kt:542 */
|
10966 + | crate::input::EndpointOperationInput {
|
10967 + | /* ServerBuilderGenerator.kt:542 */}
|
10968 + | /* ServerBuilderGenerator.kt:283 */
|
6852 10969 | }
|
10970 + | /* ServerBuilderGenerator.kt:215 */
|
6853 10971 | }
|
10972 + |
|
10973 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6854 10974 | }
|
6855 - | /// See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
10975 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
6856 10976 | pub mod post_union_with_json_name_input {
|
6857 10977 |
|
10978 + | /* ServerBuilderGenerator.kt:461 */
|
6858 10979 | impl ::std::convert::From<Builder> for crate::input::PostUnionWithJsonNameInput {
|
6859 10980 | fn from(builder: Builder) -> Self {
|
6860 10981 | builder.build()
|
6861 10982 | }
|
6862 10983 | }
|
6863 - | /// A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
10984 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
10985 + | /* RustType.kt:516 */
|
6864 10986 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10987 + | /* ServerBuilderGenerator.kt:211 */
|
6865 10988 | pub struct Builder {
|
10989 + | /* ServerBuilderGenerator.kt:308 */
|
6866 10990 | pub(crate) value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
10991 + | /* ServerBuilderGenerator.kt:211 */
|
6867 10992 | }
|
10993 + | /* ServerBuilderGenerator.kt:215 */
|
6868 10994 | impl Builder {
|
10995 + | /* ServerBuilderGenerator.kt:331 */
|
6869 10996 | #[allow(missing_docs)] // documentation missing in model
|
10997 + | /* ServerBuilderGenerator.kt:343 */
|
6870 10998 | pub fn value(
|
6871 10999 | mut self,
|
6872 11000 | input: ::std::option::Option<crate::model::UnionWithJsonName>,
|
6873 11001 | ) -> Self {
|
6874 - | self.value = input;
|
11002 + | /* ServerBuilderGenerator.kt:344 */
|
11003 + | self.value =
|
11004 + | /* ServerBuilderGenerator.kt:376 */input
|
11005 + | /* ServerBuilderGenerator.kt:344 */;
|
6875 11006 | self
|
11007 + | /* ServerBuilderGenerator.kt:343 */
|
6876 11008 | }
|
11009 + | /* ServerBuilderGenerator.kt:426 */
|
6877 11010 | #[allow(missing_docs)] // documentation missing in model
|
11011 + | /* ServerBuilderGenerator.kt:428 */
|
6878 11012 | pub(crate) fn set_value(
|
6879 11013 | mut self,
|
6880 11014 | input: Option<impl ::std::convert::Into<crate::model::UnionWithJsonName>>,
|
6881 11015 | ) -> Self {
|
11016 + | /* ServerBuilderGenerator.kt:429 */
|
6882 11017 | self.value = input.map(|v| v.into());
|
6883 11018 | self
|
11019 + | /* ServerBuilderGenerator.kt:428 */
|
6884 11020 | }
|
6885 - | /// Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11021 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11022 + | /* ServerBuilderGenerator.kt:271 */
|
6886 11023 | pub fn build(self) -> crate::input::PostUnionWithJsonNameInput {
|
6887 11024 | self.build_enforcing_all_constraints()
|
6888 11025 | }
|
11026 + | /* ServerBuilderGenerator.kt:283 */
|
6889 11027 | fn build_enforcing_all_constraints(self) -> crate::input::PostUnionWithJsonNameInput {
|
6890 - | crate::input::PostUnionWithJsonNameInput { value: self.value }
|
11028 + | /* ServerBuilderGenerator.kt:542 */
|
11029 + | crate::input::PostUnionWithJsonNameInput {
|
11030 + | /* ServerBuilderGenerator.kt:546 */
|
11031 + | value: self.value,
|
11032 + | /* ServerBuilderGenerator.kt:542 */
|
6891 11033 | }
|
11034 + | /* ServerBuilderGenerator.kt:283 */
|
6892 11035 | }
|
11036 + | /* ServerBuilderGenerator.kt:215 */
|
11037 + | }
|
11038 + |
|
11039 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6893 11040 | }
|
6894 - | /// See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11041 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
6895 11042 | pub mod post_player_action_input {
|
6896 11043 |
|
11044 + | /* ServerBuilderGenerator.kt:461 */
|
6897 11045 | impl ::std::convert::From<Builder> for crate::input::PostPlayerActionInput {
|
6898 11046 | fn from(builder: Builder) -> Self {
|
6899 11047 | builder.build()
|
6900 11048 | }
|
6901 11049 | }
|
6902 - | /// A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11050 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11051 + | /* RustType.kt:516 */
|
6903 11052 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11053 + | /* ServerBuilderGenerator.kt:211 */
|
6904 11054 | pub struct Builder {
|
11055 + | /* ServerBuilderGenerator.kt:308 */
|
6905 11056 | pub(crate) action: ::std::option::Option<crate::model::PlayerAction>,
|
11057 + | /* ServerBuilderGenerator.kt:211 */
|
6906 11058 | }
|
11059 + | /* ServerBuilderGenerator.kt:215 */
|
6907 11060 | impl Builder {
|
11061 + | /* ServerBuilderGenerator.kt:331 */
|
6908 11062 | #[allow(missing_docs)] // documentation missing in model
|
11063 + | /* ServerBuilderGenerator.kt:343 */
|
6909 11064 | pub fn action(mut self, input: ::std::option::Option<crate::model::PlayerAction>) -> Self {
|
6910 - | self.action = input;
|
11065 + | /* ServerBuilderGenerator.kt:344 */
|
11066 + | self.action =
|
11067 + | /* ServerBuilderGenerator.kt:376 */input
|
11068 + | /* ServerBuilderGenerator.kt:344 */;
|
6911 11069 | self
|
11070 + | /* ServerBuilderGenerator.kt:343 */
|
6912 11071 | }
|
11072 + | /* ServerBuilderGenerator.kt:426 */
|
6913 11073 | #[allow(missing_docs)] // documentation missing in model
|
11074 + | /* ServerBuilderGenerator.kt:428 */
|
6914 11075 | pub(crate) fn set_action(
|
6915 11076 | mut self,
|
6916 11077 | input: Option<impl ::std::convert::Into<crate::model::PlayerAction>>,
|
6917 11078 | ) -> Self {
|
11079 + | /* ServerBuilderGenerator.kt:429 */
|
6918 11080 | self.action = input.map(|v| v.into());
|
6919 11081 | self
|
11082 + | /* ServerBuilderGenerator.kt:428 */
|
6920 11083 | }
|
6921 - | /// Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11084 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11085 + | /* ServerBuilderGenerator.kt:271 */
|
6922 11086 | pub fn build(self) -> crate::input::PostPlayerActionInput {
|
6923 11087 | self.build_enforcing_all_constraints()
|
6924 11088 | }
|
11089 + | /* ServerBuilderGenerator.kt:283 */
|
6925 11090 | fn build_enforcing_all_constraints(self) -> crate::input::PostPlayerActionInput {
|
11091 + | /* ServerBuilderGenerator.kt:542 */
|
6926 11092 | crate::input::PostPlayerActionInput {
|
11093 + | /* ServerBuilderGenerator.kt:546 */
|
6927 11094 | action: self.action,
|
11095 + | /* ServerBuilderGenerator.kt:542 */
|
6928 11096 | }
|
11097 + | /* ServerBuilderGenerator.kt:283 */
|
6929 11098 | }
|
11099 + | /* ServerBuilderGenerator.kt:215 */
|
6930 11100 | }
|
11101 + |
|
11102 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6931 11103 | }
|
6932 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11104 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
6933 11105 | pub mod json_unions_input {
|
6934 11106 |
|
11107 + | /* RustType.kt:516 */
|
6935 11108 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6936 - | /// Holds one variant for each of the ways the builder can fail.
|
11109 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11110 + | /* RustType.kt:516 */
|
6937 11111 | #[non_exhaustive]
|
11112 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6938 11113 | #[allow(clippy::enum_variant_names)]
|
6939 11114 | pub enum ConstraintViolation {
|
6940 - | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
11115 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
11116 + | /* RustType.kt:516 */
|
6941 11117 | #[doc(hidden)]
|
11118 + | /* ServerBuilderConstraintViolations.kt:164 */
|
6942 11119 | Contents(crate::model::my_union::ConstraintViolation),
|
11120 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6943 11121 | }
|
11122 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6944 11123 | impl ::std::fmt::Display for ConstraintViolation {
|
11124 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6945 11125 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11126 + | /* ServerBuilderConstraintViolations.kt:119 */
|
6946 11127 | match self {
|
6947 - | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
6948 - | }
|
11128 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
11129 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
11130 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6949 11131 | }
|
11132 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6950 11133 | }
|
11134 + | /* ServerBuilderConstraintViolations.kt:84 */
|
6951 11135 | impl ::std::error::Error for ConstraintViolation {}
|
11136 + | /* ServerBuilderConstraintViolations.kt:171 */
|
6952 11137 | impl ConstraintViolation {
|
6953 11138 | pub(crate) fn as_validation_exception_field(
|
6954 11139 | self,
|
6955 11140 | path: ::std::string::String,
|
6956 11141 | ) -> crate::model::ValidationExceptionField {
|
6957 11142 | match self {
|
6958 11143 | ConstraintViolation::Contents(inner) => {
|
6959 11144 | inner.as_validation_exception_field(path + "/contents")
|
6960 11145 | }
|
6961 11146 | }
|
6962 11147 | }
|
6963 11148 | }
|
11149 + | /* ServerBuilderGenerator.kt:234 */
|
6964 11150 | impl ::std::convert::From<ConstraintViolation>
|
6965 11151 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6966 11152 | {
|
6967 11153 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6968 11154 | let first_validation_exception_field =
|
6969 11155 | constraint_violation.as_validation_exception_field("".to_owned());
|
6970 11156 | let validation_exception = crate::error::ValidationException {
|
6971 11157 | message: format!(
|
6972 11158 | "1 validation error detected. {}",
|
6973 11159 | &first_validation_exception_field.message
|
6974 11160 | ),
|
6975 11161 | field_list: Some(vec![first_validation_exception_field]),
|
6976 11162 | };
|
6977 11163 | Self::ConstraintViolation(
|
6978 11164 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6979 11165 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6980 11166 | )
|
6981 11167 | }
|
6982 11168 | }
|
11169 + | /* ServerBuilderGenerator.kt:244 */
|
6983 11170 | impl ::std::convert::From<Builder>
|
6984 11171 | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
6985 11172 | {
|
6986 11173 | fn from(builder: Builder) -> Self {
|
6987 11174 | Self::Unconstrained(builder)
|
6988 11175 | }
|
6989 11176 | }
|
11177 + | /* ServerBuilderGenerator.kt:446 */
|
6990 11178 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
6991 11179 | type Error = ConstraintViolation;
|
6992 11180 |
|
6993 11181 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6994 11182 | builder.build()
|
6995 11183 | }
|
6996 11184 | }
|
6997 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11185 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11186 + | /* RustType.kt:516 */
|
6998 11187 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11188 + | /* ServerBuilderGenerator.kt:211 */
|
6999 11189 | pub struct Builder {
|
11190 + | /* ServerBuilderGenerator.kt:308 */
|
7000 11191 | pub(crate) contents:
|
7001 11192 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
11193 + | /* ServerBuilderGenerator.kt:211 */
|
7002 11194 | }
|
11195 + | /* ServerBuilderGenerator.kt:215 */
|
7003 11196 | impl Builder {
|
7004 - | /// A union with a representative set of types for members.
|
11197 + | /// /* ServerBuilderGenerator.kt:331 */A union with a representative set of types for members.
|
11198 + | /* ServerBuilderGenerator.kt:343 */
|
7005 11199 | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
7006 - | self.contents = input.map(
|
7007 - | #[allow(clippy::redundant_closure)]
|
7008 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
7009 - | );
|
11200 + | /* ServerBuilderGenerator.kt:344 */
|
11201 + | self.contents =
|
11202 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
11203 + | /* ServerBuilderGenerator.kt:344 */;
|
7010 11204 | self
|
11205 + | /* ServerBuilderGenerator.kt:343 */
|
7011 11206 | }
|
7012 - | /// A union with a representative set of types for members.
|
11207 + | /// /* ServerBuilderGenerator.kt:426 */A union with a representative set of types for members.
|
11208 + | /* ServerBuilderGenerator.kt:428 */
|
7013 11209 | pub(crate) fn set_contents(
|
7014 11210 | mut self,
|
7015 11211 | input: Option<
|
7016 11212 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
7017 11213 | >,
|
7018 11214 | ) -> Self {
|
11215 + | /* ServerBuilderGenerator.kt:429 */
|
7019 11216 | self.contents = input.map(|v| v.into());
|
7020 11217 | self
|
11218 + | /* ServerBuilderGenerator.kt:428 */
|
7021 11219 | }
|
7022 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
7023 - | ///
|
11220 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11221 + | /// /* ServerBuilderGenerator.kt:260 */
|
7024 11222 | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
7025 11223 | ///
|
11224 + | /* ServerBuilderGenerator.kt:271 */
|
7026 11225 | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
7027 11226 | self.build_enforcing_all_constraints()
|
7028 11227 | }
|
11228 + | /* ServerBuilderGenerator.kt:283 */
|
7029 11229 | fn build_enforcing_all_constraints(
|
7030 11230 | self,
|
7031 11231 | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
7032 - | Ok(crate::input::JsonUnionsInput {
|
11232 + | /* ServerBuilderGenerator.kt:287 */
|
11233 + | Ok(
|
11234 + | /* ServerBuilderGenerator.kt:542 */
|
11235 + | crate::input::JsonUnionsInput {
|
11236 + | /* ServerBuilderGenerator.kt:546 */
|
7033 11237 | contents: self
|
7034 11238 | .contents
|
11239 + | /* ServerBuilderGenerator.kt:602 */
|
7035 11240 | .map(|v| match v {
|
7036 11241 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7037 11242 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7038 11243 | })
|
11244 + | /* ServerBuilderGenerator.kt:614 */
|
7039 11245 | .map(|res| res.map_err(ConstraintViolation::Contents))
|
7040 11246 | .transpose()?,
|
7041 - | })
|
11247 + | /* ServerBuilderGenerator.kt:542 */
|
11248 + | }, /* ServerBuilderGenerator.kt:287 */
|
11249 + | )
|
11250 + | /* ServerBuilderGenerator.kt:283 */
|
7042 11251 | }
|
11252 + | /* ServerBuilderGenerator.kt:215 */
|
7043 11253 | }
|
11254 + |
|
11255 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7044 11256 | }
|
7045 - | /// See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11257 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
7046 11258 | pub mod document_type_as_map_value_input {
|
7047 11259 |
|
11260 + | /* ServerBuilderGenerator.kt:461 */
|
7048 11261 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsMapValueInput {
|
7049 11262 | fn from(builder: Builder) -> Self {
|
7050 11263 | builder.build()
|
7051 11264 | }
|
7052 11265 | }
|
7053 - | /// A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11266 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11267 + | /* RustType.kt:516 */
|
7054 11268 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11269 + | /* ServerBuilderGenerator.kt:211 */
|
7055 11270 | pub struct Builder {
|
11271 + | /* ServerBuilderGenerator.kt:308 */
|
7056 11272 | pub(crate) doc_valued_map: ::std::option::Option<
|
7057 11273 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
7058 11274 | >,
|
11275 + | /* ServerBuilderGenerator.kt:211 */
|
7059 11276 | }
|
11277 + | /* ServerBuilderGenerator.kt:215 */
|
7060 11278 | impl Builder {
|
11279 + | /* ServerBuilderGenerator.kt:331 */
|
7061 11280 | #[allow(missing_docs)] // documentation missing in model
|
11281 + | /* ServerBuilderGenerator.kt:343 */
|
7062 11282 | pub fn doc_valued_map(
|
7063 11283 | mut self,
|
7064 11284 | input: ::std::option::Option<
|
7065 11285 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
7066 11286 | >,
|
7067 11287 | ) -> Self {
|
7068 - | self.doc_valued_map = input;
|
11288 + | /* ServerBuilderGenerator.kt:344 */
|
11289 + | self.doc_valued_map =
|
11290 + | /* ServerBuilderGenerator.kt:376 */input
|
11291 + | /* ServerBuilderGenerator.kt:344 */;
|
7069 11292 | self
|
11293 + | /* ServerBuilderGenerator.kt:343 */
|
7070 11294 | }
|
11295 + | /* ServerBuilderGenerator.kt:426 */
|
7071 11296 | #[allow(missing_docs)] // documentation missing in model
|
11297 + | /* ServerBuilderGenerator.kt:428 */
|
7072 11298 | pub(crate) fn set_doc_valued_map(
|
7073 11299 | mut self,
|
7074 11300 | input: Option<
|
7075 11301 | impl ::std::convert::Into<
|
7076 11302 | ::std::collections::HashMap<
|
7077 11303 | ::std::string::String,
|
7078 11304 | ::aws_smithy_types::Document,
|
7079 11305 | >,
|
7080 11306 | >,
|
7081 11307 | >,
|
7082 11308 | ) -> Self {
|
11309 + | /* ServerBuilderGenerator.kt:429 */
|
7083 11310 | self.doc_valued_map = input.map(|v| v.into());
|
7084 11311 | self
|
11312 + | /* ServerBuilderGenerator.kt:428 */
|
7085 11313 | }
|
7086 - | /// Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11314 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11315 + | /* ServerBuilderGenerator.kt:271 */
|
7087 11316 | pub fn build(self) -> crate::input::DocumentTypeAsMapValueInput {
|
7088 11317 | self.build_enforcing_all_constraints()
|
7089 11318 | }
|
11319 + | /* ServerBuilderGenerator.kt:283 */
|
7090 11320 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsMapValueInput {
|
11321 + | /* ServerBuilderGenerator.kt:542 */
|
7091 11322 | crate::input::DocumentTypeAsMapValueInput {
|
11323 + | /* ServerBuilderGenerator.kt:546 */
|
7092 11324 | doc_valued_map: self.doc_valued_map,
|
11325 + | /* ServerBuilderGenerator.kt:542 */
|
7093 11326 | }
|
11327 + | /* ServerBuilderGenerator.kt:283 */
|
7094 11328 | }
|
11329 + | /* ServerBuilderGenerator.kt:215 */
|
7095 11330 | }
|
11331 + |
|
11332 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7096 11333 | }
|
7097 - | /// See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11334 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
7098 11335 | pub mod document_type_as_payload_input {
|
7099 11336 |
|
11337 + | /* ServerBuilderGenerator.kt:461 */
|
7100 11338 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsPayloadInput {
|
7101 11339 | fn from(builder: Builder) -> Self {
|
7102 11340 | builder.build()
|
7103 11341 | }
|
7104 11342 | }
|
7105 - | /// A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11343 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11344 + | /* RustType.kt:516 */
|
7106 11345 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11346 + | /* ServerBuilderGenerator.kt:211 */
|
7107 11347 | pub struct Builder {
|
11348 + | /* ServerBuilderGenerator.kt:308 */
|
7108 11349 | pub(crate) document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
11350 + | /* ServerBuilderGenerator.kt:211 */
|
7109 11351 | }
|
11352 + | /* ServerBuilderGenerator.kt:215 */
|
7110 11353 | impl Builder {
|
11354 + | /* ServerBuilderGenerator.kt:331 */
|
7111 11355 | #[allow(missing_docs)] // documentation missing in model
|
11356 + | /* ServerBuilderGenerator.kt:343 */
|
7112 11357 | pub fn document_value(
|
7113 11358 | mut self,
|
7114 11359 | input: ::std::option::Option<::aws_smithy_types::Document>,
|
7115 11360 | ) -> Self {
|
7116 - | self.document_value = input;
|
11361 + | /* ServerBuilderGenerator.kt:344 */
|
11362 + | self.document_value =
|
11363 + | /* ServerBuilderGenerator.kt:376 */input
|
11364 + | /* ServerBuilderGenerator.kt:344 */;
|
7117 11365 | self
|
11366 + | /* ServerBuilderGenerator.kt:343 */
|
7118 11367 | }
|
11368 + | /* ServerBuilderGenerator.kt:426 */
|
7119 11369 | #[allow(missing_docs)] // documentation missing in model
|
11370 + | /* ServerBuilderGenerator.kt:428 */
|
7120 11371 | pub(crate) fn set_document_value(
|
7121 11372 | mut self,
|
7122 11373 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Document>>,
|
7123 11374 | ) -> Self {
|
11375 + | /* ServerBuilderGenerator.kt:429 */
|
7124 11376 | self.document_value = input.map(|v| v.into());
|
7125 11377 | self
|
11378 + | /* ServerBuilderGenerator.kt:428 */
|
7126 11379 | }
|
7127 - | /// Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11380 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11381 + | /* ServerBuilderGenerator.kt:271 */
|
7128 11382 | pub fn build(self) -> crate::input::DocumentTypeAsPayloadInput {
|
7129 11383 | self.build_enforcing_all_constraints()
|
7130 11384 | }
|
11385 + | /* ServerBuilderGenerator.kt:283 */
|
7131 11386 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsPayloadInput {
|
11387 + | /* ServerBuilderGenerator.kt:542 */
|
7132 11388 | crate::input::DocumentTypeAsPayloadInput {
|
11389 + | /* ServerBuilderGenerator.kt:546 */
|
7133 11390 | document_value: self.document_value,
|
11391 + | /* ServerBuilderGenerator.kt:542 */
|
7134 11392 | }
|
11393 + | /* ServerBuilderGenerator.kt:283 */
|
7135 11394 | }
|
11395 + | /* ServerBuilderGenerator.kt:215 */
|
7136 11396 | }
|
11397 + |
|
11398 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7137 11399 | }
|
7138 - | /// See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11400 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
7139 11401 | pub mod document_type_input {
|
7140 11402 |
|
11403 + | /* ServerBuilderGenerator.kt:461 */
|
7141 11404 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeInput {
|
7142 11405 | fn from(builder: Builder) -> Self {
|
7143 11406 | builder.build()
|
7144 11407 | }
|
7145 11408 | }
|
7146 - | /// A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11409 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11410 + | /* RustType.kt:516 */
|
7147 11411 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11412 + | /* ServerBuilderGenerator.kt:211 */
|
7148 11413 | pub struct Builder {
|
11414 + | /* ServerBuilderGenerator.kt:308 */
|
7149 11415 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
11416 + | /* ServerBuilderGenerator.kt:308 */
|
7150 11417 | pub(crate) document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
11418 + | /* ServerBuilderGenerator.kt:211 */
|
7151 11419 | }
|
11420 + | /* ServerBuilderGenerator.kt:215 */
|
7152 11421 | impl Builder {
|
11422 + | /* ServerBuilderGenerator.kt:331 */
|
7153 11423 | #[allow(missing_docs)] // documentation missing in model
|
11424 + | /* ServerBuilderGenerator.kt:343 */
|
7154 11425 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
7155 - | self.string_value = input;
|
11426 + | /* ServerBuilderGenerator.kt:344 */
|
11427 + | self.string_value =
|
11428 + | /* ServerBuilderGenerator.kt:376 */input
|
11429 + | /* ServerBuilderGenerator.kt:344 */;
|
7156 11430 | self
|
11431 + | /* ServerBuilderGenerator.kt:343 */
|
7157 11432 | }
|
11433 + | /* ServerBuilderGenerator.kt:426 */
|
7158 11434 | #[allow(missing_docs)] // documentation missing in model
|
11435 + | /* ServerBuilderGenerator.kt:428 */
|
7159 11436 | pub(crate) fn set_string_value(
|
7160 11437 | mut self,
|
7161 11438 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
7162 11439 | ) -> Self {
|
11440 + | /* ServerBuilderGenerator.kt:429 */
|
7163 11441 | self.string_value = input.map(|v| v.into());
|
7164 11442 | self
|
11443 + | /* ServerBuilderGenerator.kt:428 */
|
7165 11444 | }
|
11445 + | /* ServerBuilderGenerator.kt:331 */
|
7166 11446 | #[allow(missing_docs)] // documentation missing in model
|
11447 + | /* ServerBuilderGenerator.kt:343 */
|
7167 11448 | pub fn document_value(
|
7168 11449 | mut self,
|
7169 11450 | input: ::std::option::Option<::aws_smithy_types::Document>,
|
7170 11451 | ) -> Self {
|
7171 - | self.document_value = input;
|
11452 + | /* ServerBuilderGenerator.kt:344 */
|
11453 + | self.document_value =
|
11454 + | /* ServerBuilderGenerator.kt:376 */input
|
11455 + | /* ServerBuilderGenerator.kt:344 */;
|
7172 11456 | self
|
11457 + | /* ServerBuilderGenerator.kt:343 */
|
7173 11458 | }
|
11459 + | /* ServerBuilderGenerator.kt:426 */
|
7174 11460 | #[allow(missing_docs)] // documentation missing in model
|
11461 + | /* ServerBuilderGenerator.kt:428 */
|
7175 11462 | pub(crate) fn set_document_value(
|
7176 11463 | mut self,
|
7177 11464 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Document>>,
|
7178 11465 | ) -> Self {
|
11466 + | /* ServerBuilderGenerator.kt:429 */
|
7179 11467 | self.document_value = input.map(|v| v.into());
|
7180 11468 | self
|
11469 + | /* ServerBuilderGenerator.kt:428 */
|
7181 11470 | }
|
7182 - | /// Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11471 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11472 + | /* ServerBuilderGenerator.kt:271 */
|
7183 11473 | pub fn build(self) -> crate::input::DocumentTypeInput {
|
7184 11474 | self.build_enforcing_all_constraints()
|
7185 11475 | }
|
11476 + | /* ServerBuilderGenerator.kt:283 */
|
7186 11477 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeInput {
|
11478 + | /* ServerBuilderGenerator.kt:542 */
|
7187 11479 | crate::input::DocumentTypeInput {
|
11480 + | /* ServerBuilderGenerator.kt:546 */
|
7188 11481 | string_value: self.string_value,
|
11482 + | /* ServerBuilderGenerator.kt:546 */
|
7189 11483 | document_value: self.document_value,
|
11484 + | /* ServerBuilderGenerator.kt:542 */
|
7190 11485 | }
|
11486 + | /* ServerBuilderGenerator.kt:283 */
|
7191 11487 | }
|
11488 + | /* ServerBuilderGenerator.kt:215 */
|
7192 11489 | }
|
11490 + |
|
11491 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7193 11492 | }
|
7194 - | /// See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11493 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
7195 11494 | pub mod json_blobs_input {
|
7196 11495 |
|
11496 + | /* ServerBuilderGenerator.kt:461 */
|
7197 11497 | impl ::std::convert::From<Builder> for crate::input::JsonBlobsInput {
|
7198 11498 | fn from(builder: Builder) -> Self {
|
7199 11499 | builder.build()
|
7200 11500 | }
|
7201 11501 | }
|
7202 - | /// A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11502 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11503 + | /* RustType.kt:516 */
|
7203 11504 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11505 + | /* ServerBuilderGenerator.kt:211 */
|
7204 11506 | pub struct Builder {
|
11507 + | /* ServerBuilderGenerator.kt:308 */
|
7205 11508 | pub(crate) data: ::std::option::Option<::aws_smithy_types::Blob>,
|
11509 + | /* ServerBuilderGenerator.kt:211 */
|
7206 11510 | }
|
11511 + | /* ServerBuilderGenerator.kt:215 */
|
7207 11512 | impl Builder {
|
11513 + | /* ServerBuilderGenerator.kt:331 */
|
7208 11514 | #[allow(missing_docs)] // documentation missing in model
|
11515 + | /* ServerBuilderGenerator.kt:343 */
|
7209 11516 | pub fn data(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
7210 - | self.data = input;
|
11517 + | /* ServerBuilderGenerator.kt:344 */
|
11518 + | self.data =
|
11519 + | /* ServerBuilderGenerator.kt:376 */input
|
11520 + | /* ServerBuilderGenerator.kt:344 */;
|
7211 11521 | self
|
11522 + | /* ServerBuilderGenerator.kt:343 */
|
7212 11523 | }
|
11524 + | /* ServerBuilderGenerator.kt:426 */
|
7213 11525 | #[allow(missing_docs)] // documentation missing in model
|
11526 + | /* ServerBuilderGenerator.kt:428 */
|
7214 11527 | pub(crate) fn set_data(
|
7215 11528 | mut self,
|
7216 11529 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
7217 11530 | ) -> Self {
|
11531 + | /* ServerBuilderGenerator.kt:429 */
|
7218 11532 | self.data = input.map(|v| v.into());
|
7219 11533 | self
|
11534 + | /* ServerBuilderGenerator.kt:428 */
|
7220 11535 | }
|
7221 - | /// Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11536 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11537 + | /* ServerBuilderGenerator.kt:271 */
|
7222 11538 | pub fn build(self) -> crate::input::JsonBlobsInput {
|
7223 11539 | self.build_enforcing_all_constraints()
|
7224 11540 | }
|
11541 + | /* ServerBuilderGenerator.kt:283 */
|
7225 11542 | fn build_enforcing_all_constraints(self) -> crate::input::JsonBlobsInput {
|
7226 - | crate::input::JsonBlobsInput { data: self.data }
|
11543 + | /* ServerBuilderGenerator.kt:542 */
|
11544 + | crate::input::JsonBlobsInput {
|
11545 + | /* ServerBuilderGenerator.kt:546 */
|
11546 + | data: self.data,
|
11547 + | /* ServerBuilderGenerator.kt:542 */
|
11548 + | }
|
11549 + | /* ServerBuilderGenerator.kt:283 */
|
7227 11550 | }
|
11551 + | /* ServerBuilderGenerator.kt:215 */
|
7228 11552 | }
|
11553 + |
|
11554 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7229 11555 | }
|
7230 - | /// See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11556 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
7231 11557 | pub mod sparse_json_maps_input {
|
7232 11558 |
|
11559 + | /* RustType.kt:516 */
|
7233 11560 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7234 - | /// Holds one variant for each of the ways the builder can fail.
|
11561 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11562 + | /* RustType.kt:516 */
|
7235 11563 | #[non_exhaustive]
|
11564 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7236 11565 | #[allow(clippy::enum_variant_names)]
|
7237 11566 | pub enum ConstraintViolation {
|
7238 - | /// Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
11567 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
11568 + | /* RustType.kt:516 */
|
7239 11569 | #[doc(hidden)]
|
11570 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7240 11571 | SparseSetMap(crate::model::sparse_set_map::ConstraintViolation),
|
11572 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7241 11573 | }
|
11574 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7242 11575 | impl ::std::fmt::Display for ConstraintViolation {
|
11576 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7243 11577 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11578 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7244 11579 | match self {
|
7245 - | ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
7246 - | }
|
11580 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
11581 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
11582 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7247 11583 | }
|
11584 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7248 11585 | }
|
11586 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7249 11587 | impl ::std::error::Error for ConstraintViolation {}
|
11588 + | /* ServerBuilderConstraintViolations.kt:171 */
|
7250 11589 | impl ConstraintViolation {
|
7251 11590 | pub(crate) fn as_validation_exception_field(
|
7252 11591 | self,
|
7253 11592 | path: ::std::string::String,
|
7254 11593 | ) -> crate::model::ValidationExceptionField {
|
7255 11594 | match self {
|
7256 11595 | ConstraintViolation::SparseSetMap(inner) => {
|
7257 11596 | inner.as_validation_exception_field(path + "/sparseSetMap")
|
7258 11597 | }
|
7259 11598 | }
|
7260 11599 | }
|
7261 11600 | }
|
11601 + | /* ServerBuilderGenerator.kt:234 */
|
7262 11602 | impl ::std::convert::From<ConstraintViolation>
|
7263 11603 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7264 11604 | {
|
7265 11605 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7266 11606 | let first_validation_exception_field =
|
7267 11607 | constraint_violation.as_validation_exception_field("".to_owned());
|
7268 11608 | let validation_exception = crate::error::ValidationException {
|
7269 11609 | message: format!(
|
7270 11610 | "1 validation error detected. {}",
|
7271 11611 | &first_validation_exception_field.message
|
7272 11612 | ),
|
7273 11613 | field_list: Some(vec![first_validation_exception_field]),
|
7274 11614 | };
|
7275 11615 | Self::ConstraintViolation(
|
7276 11616 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7277 11617 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7278 11618 | )
|
7279 11619 | }
|
7280 11620 | }
|
11621 + | /* ServerBuilderGenerator.kt:244 */
|
7281 11622 | impl ::std::convert::From<Builder>
|
7282 11623 | for crate::constrained::MaybeConstrained<crate::input::SparseJsonMapsInput>
|
7283 11624 | {
|
7284 11625 | fn from(builder: Builder) -> Self {
|
7285 11626 | Self::Unconstrained(builder)
|
7286 11627 | }
|
7287 11628 | }
|
11629 + | /* ServerBuilderGenerator.kt:446 */
|
7288 11630 | impl ::std::convert::TryFrom<Builder> for crate::input::SparseJsonMapsInput {
|
7289 11631 | type Error = ConstraintViolation;
|
7290 11632 |
|
7291 11633 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7292 11634 | builder.build()
|
7293 11635 | }
|
7294 11636 | }
|
7295 - | /// A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11637 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11638 + | /* RustType.kt:516 */
|
7296 11639 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11640 + | /* ServerBuilderGenerator.kt:211 */
|
7297 11641 | pub struct Builder {
|
11642 + | /* ServerBuilderGenerator.kt:308 */
|
7298 11643 | pub(crate) sparse_struct_map: ::std::option::Option<
|
7299 11644 | ::std::collections::HashMap<
|
7300 11645 | ::std::string::String,
|
7301 11646 | ::std::option::Option<crate::model::GreetingStruct>,
|
7302 11647 | >,
|
7303 11648 | >,
|
11649 + | /* ServerBuilderGenerator.kt:308 */
|
7304 11650 | pub(crate) sparse_number_map: ::std::option::Option<
|
7305 11651 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7306 11652 | >,
|
11653 + | /* ServerBuilderGenerator.kt:308 */
|
7307 11654 | pub(crate) sparse_boolean_map: ::std::option::Option<
|
7308 11655 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7309 11656 | >,
|
11657 + | /* ServerBuilderGenerator.kt:308 */
|
7310 11658 | pub(crate) sparse_string_map: ::std::option::Option<
|
7311 11659 | ::std::collections::HashMap<
|
7312 11660 | ::std::string::String,
|
7313 11661 | ::std::option::Option<::std::string::String>,
|
7314 11662 | >,
|
7315 11663 | >,
|
11664 + | /* ServerBuilderGenerator.kt:308 */
|
7316 11665 | pub(crate) sparse_set_map: ::std::option::Option<
|
7317 11666 | crate::constrained::MaybeConstrained<
|
7318 11667 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
7319 11668 | >,
|
7320 11669 | >,
|
11670 + | /* ServerBuilderGenerator.kt:211 */
|
7321 11671 | }
|
11672 + | /* ServerBuilderGenerator.kt:215 */
|
7322 11673 | impl Builder {
|
11674 + | /* ServerBuilderGenerator.kt:331 */
|
7323 11675 | #[allow(missing_docs)] // documentation missing in model
|
11676 + | /* ServerBuilderGenerator.kt:343 */
|
7324 11677 | pub fn sparse_struct_map(
|
7325 11678 | mut self,
|
7326 11679 | input: ::std::option::Option<
|
7327 11680 | ::std::collections::HashMap<
|
7328 11681 | ::std::string::String,
|
7329 11682 | ::std::option::Option<crate::model::GreetingStruct>,
|
7330 11683 | >,
|
7331 11684 | >,
|
7332 11685 | ) -> Self {
|
7333 - | self.sparse_struct_map = input;
|
11686 + | /* ServerBuilderGenerator.kt:344 */
|
11687 + | self.sparse_struct_map =
|
11688 + | /* ServerBuilderGenerator.kt:376 */input
|
11689 + | /* ServerBuilderGenerator.kt:344 */;
|
7334 11690 | self
|
11691 + | /* ServerBuilderGenerator.kt:343 */
|
7335 11692 | }
|
11693 + | /* ServerBuilderGenerator.kt:426 */
|
7336 11694 | #[allow(missing_docs)] // documentation missing in model
|
11695 + | /* ServerBuilderGenerator.kt:428 */
|
7337 11696 | pub(crate) fn set_sparse_struct_map(
|
7338 11697 | mut self,
|
7339 11698 | input: Option<
|
7340 11699 | impl ::std::convert::Into<
|
7341 11700 | ::std::collections::HashMap<
|
7342 11701 | ::std::string::String,
|
7343 11702 | ::std::option::Option<crate::model::GreetingStruct>,
|
7344 11703 | >,
|
7345 11704 | >,
|
7346 11705 | >,
|
7347 11706 | ) -> Self {
|
11707 + | /* ServerBuilderGenerator.kt:429 */
|
7348 11708 | self.sparse_struct_map = input.map(|v| v.into());
|
7349 11709 | self
|
11710 + | /* ServerBuilderGenerator.kt:428 */
|
7350 11711 | }
|
11712 + | /* ServerBuilderGenerator.kt:331 */
|
7351 11713 | #[allow(missing_docs)] // documentation missing in model
|
11714 + | /* ServerBuilderGenerator.kt:343 */
|
7352 11715 | pub fn sparse_number_map(
|
7353 11716 | mut self,
|
7354 11717 | input: ::std::option::Option<
|
7355 11718 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7356 11719 | >,
|
7357 11720 | ) -> Self {
|
7358 - | self.sparse_number_map = input;
|
11721 + | /* ServerBuilderGenerator.kt:344 */
|
11722 + | self.sparse_number_map =
|
11723 + | /* ServerBuilderGenerator.kt:376 */input
|
11724 + | /* ServerBuilderGenerator.kt:344 */;
|
7359 11725 | self
|
11726 + | /* ServerBuilderGenerator.kt:343 */
|
7360 11727 | }
|
11728 + | /* ServerBuilderGenerator.kt:426 */
|
7361 11729 | #[allow(missing_docs)] // documentation missing in model
|
11730 + | /* ServerBuilderGenerator.kt:428 */
|
7362 11731 | pub(crate) fn set_sparse_number_map(
|
7363 11732 | mut self,
|
7364 11733 | input: Option<
|
7365 11734 | impl ::std::convert::Into<
|
7366 11735 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7367 11736 | >,
|
7368 11737 | >,
|
7369 11738 | ) -> Self {
|
11739 + | /* ServerBuilderGenerator.kt:429 */
|
7370 11740 | self.sparse_number_map = input.map(|v| v.into());
|
7371 11741 | self
|
11742 + | /* ServerBuilderGenerator.kt:428 */
|
7372 11743 | }
|
11744 + | /* ServerBuilderGenerator.kt:331 */
|
7373 11745 | #[allow(missing_docs)] // documentation missing in model
|
11746 + | /* ServerBuilderGenerator.kt:343 */
|
7374 11747 | pub fn sparse_boolean_map(
|
7375 11748 | mut self,
|
7376 11749 | input: ::std::option::Option<
|
7377 11750 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7378 11751 | >,
|
7379 11752 | ) -> Self {
|
7380 - | self.sparse_boolean_map = input;
|
11753 + | /* ServerBuilderGenerator.kt:344 */
|
11754 + | self.sparse_boolean_map =
|
11755 + | /* ServerBuilderGenerator.kt:376 */input
|
11756 + | /* ServerBuilderGenerator.kt:344 */;
|
7381 11757 | self
|
11758 + | /* ServerBuilderGenerator.kt:343 */
|
7382 11759 | }
|
11760 + | /* ServerBuilderGenerator.kt:426 */
|
7383 11761 | #[allow(missing_docs)] // documentation missing in model
|
11762 + | /* ServerBuilderGenerator.kt:428 */
|
7384 11763 | pub(crate) fn set_sparse_boolean_map(
|
7385 11764 | mut self,
|
7386 11765 | input: Option<
|
7387 11766 | impl ::std::convert::Into<
|
7388 11767 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7389 11768 | >,
|
7390 11769 | >,
|
7391 11770 | ) -> Self {
|
11771 + | /* ServerBuilderGenerator.kt:429 */
|
7392 11772 | self.sparse_boolean_map = input.map(|v| v.into());
|
7393 11773 | self
|
11774 + | /* ServerBuilderGenerator.kt:428 */
|
7394 11775 | }
|
11776 + | /* ServerBuilderGenerator.kt:331 */
|
7395 11777 | #[allow(missing_docs)] // documentation missing in model
|
11778 + | /* ServerBuilderGenerator.kt:343 */
|
7396 11779 | pub fn sparse_string_map(
|
7397 11780 | mut self,
|
7398 11781 | input: ::std::option::Option<
|
7399 11782 | ::std::collections::HashMap<
|
7400 11783 | ::std::string::String,
|
7401 11784 | ::std::option::Option<::std::string::String>,
|
7402 11785 | >,
|
7403 11786 | >,
|
7404 11787 | ) -> Self {
|
7405 - | self.sparse_string_map = input;
|
11788 + | /* ServerBuilderGenerator.kt:344 */
|
11789 + | self.sparse_string_map =
|
11790 + | /* ServerBuilderGenerator.kt:376 */input
|
11791 + | /* ServerBuilderGenerator.kt:344 */;
|
7406 11792 | self
|
11793 + | /* ServerBuilderGenerator.kt:343 */
|
7407 11794 | }
|
11795 + | /* ServerBuilderGenerator.kt:426 */
|
7408 11796 | #[allow(missing_docs)] // documentation missing in model
|
11797 + | /* ServerBuilderGenerator.kt:428 */
|
7409 11798 | pub(crate) fn set_sparse_string_map(
|
7410 11799 | mut self,
|
7411 11800 | input: Option<
|
7412 11801 | impl ::std::convert::Into<
|
7413 11802 | ::std::collections::HashMap<
|
7414 11803 | ::std::string::String,
|
7415 11804 | ::std::option::Option<::std::string::String>,
|
7416 11805 | >,
|
7417 11806 | >,
|
7418 11807 | >,
|
7419 11808 | ) -> Self {
|
11809 + | /* ServerBuilderGenerator.kt:429 */
|
7420 11810 | self.sparse_string_map = input.map(|v| v.into());
|
7421 11811 | self
|
11812 + | /* ServerBuilderGenerator.kt:428 */
|
7422 11813 | }
|
11814 + | /* ServerBuilderGenerator.kt:331 */
|
7423 11815 | #[allow(missing_docs)] // documentation missing in model
|
11816 + | /* ServerBuilderGenerator.kt:343 */
|
7424 11817 | pub fn sparse_set_map(
|
7425 11818 | mut self,
|
7426 11819 | input: ::std::option::Option<
|
7427 11820 | ::std::collections::HashMap<
|
7428 11821 | ::std::string::String,
|
7429 11822 | ::std::option::Option<crate::model::StringSet>,
|
7430 11823 | >,
|
7431 11824 | >,
|
7432 11825 | ) -> Self {
|
7433 - | self.sparse_set_map = input.map(
|
7434 - | #[allow(clippy::redundant_closure)]
|
7435 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
7436 - | );
|
11826 + | /* ServerBuilderGenerator.kt:344 */
|
11827 + | self.sparse_set_map =
|
11828 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
11829 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
11830 + | /* ServerBuilderGenerator.kt:369 */)
|
11831 + | /* ServerBuilderGenerator.kt:344 */;
|
7437 11832 | self
|
11833 + | /* ServerBuilderGenerator.kt:343 */
|
7438 11834 | }
|
11835 + | /* ServerBuilderGenerator.kt:426 */
|
7439 11836 | #[allow(missing_docs)] // documentation missing in model
|
11837 + | /* ServerBuilderGenerator.kt:428 */
|
7440 11838 | pub(crate) fn set_sparse_set_map(
|
7441 11839 | mut self,
|
7442 11840 | input: Option<
|
7443 11841 | impl ::std::convert::Into<
|
7444 11842 | crate::constrained::MaybeConstrained<
|
7445 11843 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
7446 11844 | >,
|
7447 11845 | >,
|
7448 11846 | >,
|
7449 11847 | ) -> Self {
|
11848 + | /* ServerBuilderGenerator.kt:429 */
|
7450 11849 | self.sparse_set_map = input.map(|v| v.into());
|
7451 11850 | self
|
11851 + | /* ServerBuilderGenerator.kt:428 */
|
7452 11852 | }
|
7453 - | /// Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
7454 - | ///
|
11853 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11854 + | /// /* ServerBuilderGenerator.kt:260 */
|
7455 11855 | /// The builder fails to construct a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput) if a [`ConstraintViolation`] occurs.
|
7456 11856 | ///
|
11857 + | /* ServerBuilderGenerator.kt:271 */
|
7457 11858 | pub fn build(self) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
7458 11859 | self.build_enforcing_all_constraints()
|
7459 11860 | }
|
11861 + | /* ServerBuilderGenerator.kt:283 */
|
7460 11862 | fn build_enforcing_all_constraints(
|
7461 11863 | self,
|
7462 11864 | ) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
7463 - | Ok(crate::input::SparseJsonMapsInput {
|
11865 + | /* ServerBuilderGenerator.kt:287 */
|
11866 + | Ok(
|
11867 + | /* ServerBuilderGenerator.kt:542 */
|
11868 + | crate::input::SparseJsonMapsInput {
|
11869 + | /* ServerBuilderGenerator.kt:546 */
|
7464 11870 | sparse_struct_map: self.sparse_struct_map,
|
11871 + | /* ServerBuilderGenerator.kt:546 */
|
7465 11872 | sparse_number_map: self.sparse_number_map,
|
11873 + | /* ServerBuilderGenerator.kt:546 */
|
7466 11874 | sparse_boolean_map: self.sparse_boolean_map,
|
11875 + | /* ServerBuilderGenerator.kt:546 */
|
7467 11876 | sparse_string_map: self.sparse_string_map,
|
11877 + | /* ServerBuilderGenerator.kt:546 */
|
7468 11878 | sparse_set_map: self
|
7469 11879 | .sparse_set_map
|
11880 + | /* ServerBuilderGenerator.kt:602 */
|
7470 11881 | .map(|v| match v {
|
7471 11882 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7472 11883 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7473 11884 | })
|
11885 + | /* ServerBuilderGenerator.kt:614 */
|
7474 11886 | .map(|res| {
|
7475 11887 | res.map(|v| v.into())
|
7476 11888 | .map_err(ConstraintViolation::SparseSetMap)
|
7477 11889 | })
|
7478 11890 | .transpose()?,
|
7479 - | })
|
11891 + | /* ServerBuilderGenerator.kt:542 */
|
11892 + | }, /* ServerBuilderGenerator.kt:287 */
|
11893 + | )
|
11894 + | /* ServerBuilderGenerator.kt:283 */
|
7480 11895 | }
|
11896 + | /* ServerBuilderGenerator.kt:215 */
|
7481 11897 | }
|
11898 + |
|
11899 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7482 11900 | }
|
7483 - | /// See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
11901 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
7484 11902 | pub mod json_maps_input {
|
7485 11903 |
|
11904 + | /* RustType.kt:516 */
|
7486 11905 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7487 - | /// Holds one variant for each of the ways the builder can fail.
|
11906 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11907 + | /* RustType.kt:516 */
|
7488 11908 | #[non_exhaustive]
|
11909 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7489 11910 | #[allow(clippy::enum_variant_names)]
|
7490 11911 | pub enum ConstraintViolation {
|
7491 - | /// Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
11912 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
11913 + | /* RustType.kt:516 */
|
7492 11914 | #[doc(hidden)]
|
11915 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7493 11916 | DenseSetMap(crate::model::dense_set_map::ConstraintViolation),
|
11917 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7494 11918 | }
|
11919 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7495 11920 | impl ::std::fmt::Display for ConstraintViolation {
|
11921 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7496 11922 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11923 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7497 11924 | match self {
|
7498 - | ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
7499 - | }
|
11925 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
11926 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
11927 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7500 11928 | }
|
11929 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7501 11930 | }
|
11931 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7502 11932 | impl ::std::error::Error for ConstraintViolation {}
|
11933 + | /* ServerBuilderConstraintViolations.kt:171 */
|
7503 11934 | impl ConstraintViolation {
|
7504 11935 | pub(crate) fn as_validation_exception_field(
|
7505 11936 | self,
|
7506 11937 | path: ::std::string::String,
|
7507 11938 | ) -> crate::model::ValidationExceptionField {
|
7508 11939 | match self {
|
7509 11940 | ConstraintViolation::DenseSetMap(inner) => {
|
7510 11941 | inner.as_validation_exception_field(path + "/denseSetMap")
|
7511 11942 | }
|
7512 11943 | }
|
7513 11944 | }
|
7514 11945 | }
|
11946 + | /* ServerBuilderGenerator.kt:234 */
|
7515 11947 | impl ::std::convert::From<ConstraintViolation>
|
7516 11948 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7517 11949 | {
|
7518 11950 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7519 11951 | let first_validation_exception_field =
|
7520 11952 | constraint_violation.as_validation_exception_field("".to_owned());
|
7521 11953 | let validation_exception = crate::error::ValidationException {
|
7522 11954 | message: format!(
|
7523 11955 | "1 validation error detected. {}",
|
7524 11956 | &first_validation_exception_field.message
|
7525 11957 | ),
|
7526 11958 | field_list: Some(vec![first_validation_exception_field]),
|
7527 11959 | };
|
7528 11960 | Self::ConstraintViolation(
|
7529 11961 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7530 11962 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7531 11963 | )
|
7532 11964 | }
|
7533 11965 | }
|
11966 + | /* ServerBuilderGenerator.kt:244 */
|
7534 11967 | impl ::std::convert::From<Builder>
|
7535 11968 | for crate::constrained::MaybeConstrained<crate::input::JsonMapsInput>
|
7536 11969 | {
|
7537 11970 | fn from(builder: Builder) -> Self {
|
7538 11971 | Self::Unconstrained(builder)
|
7539 11972 | }
|
7540 11973 | }
|
11974 + | /* ServerBuilderGenerator.kt:446 */
|
7541 11975 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonMapsInput {
|
7542 11976 | type Error = ConstraintViolation;
|
7543 11977 |
|
7544 11978 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7545 11979 | builder.build()
|
7546 11980 | }
|
7547 11981 | }
|
7548 - | /// A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
11982 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
11983 + | /* RustType.kt:516 */
|
7549 11984 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11985 + | /* ServerBuilderGenerator.kt:211 */
|
7550 11986 | pub struct Builder {
|
11987 + | /* ServerBuilderGenerator.kt:308 */
|
7551 11988 | pub(crate) dense_struct_map: ::std::option::Option<
|
7552 11989 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
7553 11990 | >,
|
11991 + | /* ServerBuilderGenerator.kt:308 */
|
7554 11992 | pub(crate) dense_number_map:
|
7555 11993 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
11994 + | /* ServerBuilderGenerator.kt:308 */
|
7556 11995 | pub(crate) dense_boolean_map:
|
7557 11996 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
11997 + | /* ServerBuilderGenerator.kt:308 */
|
7558 11998 | pub(crate) dense_string_map: ::std::option::Option<
|
7559 11999 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7560 12000 | >,
|
12001 + | /* ServerBuilderGenerator.kt:308 */
|
7561 12002 | pub(crate) dense_set_map: ::std::option::Option<
|
7562 12003 | crate::constrained::MaybeConstrained<
|
7563 12004 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
7564 12005 | >,
|
7565 12006 | >,
|
12007 + | /* ServerBuilderGenerator.kt:211 */
|
7566 12008 | }
|
12009 + | /* ServerBuilderGenerator.kt:215 */
|
7567 12010 | impl Builder {
|
12011 + | /* ServerBuilderGenerator.kt:331 */
|
7568 12012 | #[allow(missing_docs)] // documentation missing in model
|
12013 + | /* ServerBuilderGenerator.kt:343 */
|
7569 12014 | pub fn dense_struct_map(
|
7570 12015 | mut self,
|
7571 12016 | input: ::std::option::Option<
|
7572 12017 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
7573 12018 | >,
|
7574 12019 | ) -> Self {
|
7575 - | self.dense_struct_map = input;
|
12020 + | /* ServerBuilderGenerator.kt:344 */
|
12021 + | self.dense_struct_map =
|
12022 + | /* ServerBuilderGenerator.kt:376 */input
|
12023 + | /* ServerBuilderGenerator.kt:344 */;
|
7576 12024 | self
|
12025 + | /* ServerBuilderGenerator.kt:343 */
|
7577 12026 | }
|
12027 + | /* ServerBuilderGenerator.kt:426 */
|
7578 12028 | #[allow(missing_docs)] // documentation missing in model
|
12029 + | /* ServerBuilderGenerator.kt:428 */
|
7579 12030 | pub(crate) fn set_dense_struct_map(
|
7580 12031 | mut self,
|
7581 12032 | input: Option<
|
7582 12033 | impl ::std::convert::Into<
|
7583 12034 | ::std::collections::HashMap<
|
7584 12035 | ::std::string::String,
|
7585 12036 | crate::model::GreetingStruct,
|
7586 12037 | >,
|
7587 12038 | >,
|
7588 12039 | >,
|
7589 12040 | ) -> Self {
|
12041 + | /* ServerBuilderGenerator.kt:429 */
|
7590 12042 | self.dense_struct_map = input.map(|v| v.into());
|
7591 12043 | self
|
12044 + | /* ServerBuilderGenerator.kt:428 */
|
7592 12045 | }
|
12046 + | /* ServerBuilderGenerator.kt:331 */
|
7593 12047 | #[allow(missing_docs)] // documentation missing in model
|
12048 + | /* ServerBuilderGenerator.kt:343 */
|
7594 12049 | pub fn dense_number_map(
|
7595 12050 | mut self,
|
7596 12051 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
7597 12052 | ) -> Self {
|
7598 - | self.dense_number_map = input;
|
12053 + | /* ServerBuilderGenerator.kt:344 */
|
12054 + | self.dense_number_map =
|
12055 + | /* ServerBuilderGenerator.kt:376 */input
|
12056 + | /* ServerBuilderGenerator.kt:344 */;
|
7599 12057 | self
|
12058 + | /* ServerBuilderGenerator.kt:343 */
|
7600 12059 | }
|
12060 + | /* ServerBuilderGenerator.kt:426 */
|
7601 12061 | #[allow(missing_docs)] // documentation missing in model
|
12062 + | /* ServerBuilderGenerator.kt:428 */
|
7602 12063 | pub(crate) fn set_dense_number_map(
|
7603 12064 | mut self,
|
7604 12065 | input: Option<
|
7605 12066 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
7606 12067 | >,
|
7607 12068 | ) -> Self {
|
12069 + | /* ServerBuilderGenerator.kt:429 */
|
7608 12070 | self.dense_number_map = input.map(|v| v.into());
|
7609 12071 | self
|
12072 + | /* ServerBuilderGenerator.kt:428 */
|
7610 12073 | }
|
12074 + | /* ServerBuilderGenerator.kt:331 */
|
7611 12075 | #[allow(missing_docs)] // documentation missing in model
|
12076 + | /* ServerBuilderGenerator.kt:343 */
|
7612 12077 | pub fn dense_boolean_map(
|
7613 12078 | mut self,
|
7614 12079 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
7615 12080 | ) -> Self {
|
7616 - | self.dense_boolean_map = input;
|
12081 + | /* ServerBuilderGenerator.kt:344 */
|
12082 + | self.dense_boolean_map =
|
12083 + | /* ServerBuilderGenerator.kt:376 */input
|
12084 + | /* ServerBuilderGenerator.kt:344 */;
|
7617 12085 | self
|
12086 + | /* ServerBuilderGenerator.kt:343 */
|
7618 12087 | }
|
12088 + | /* ServerBuilderGenerator.kt:426 */
|
7619 12089 | #[allow(missing_docs)] // documentation missing in model
|
12090 + | /* ServerBuilderGenerator.kt:428 */
|
7620 12091 | pub(crate) fn set_dense_boolean_map(
|
7621 12092 | mut self,
|
7622 12093 | input: Option<
|
7623 12094 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, bool>>,
|
7624 12095 | >,
|
7625 12096 | ) -> Self {
|
12097 + | /* ServerBuilderGenerator.kt:429 */
|
7626 12098 | self.dense_boolean_map = input.map(|v| v.into());
|
7627 12099 | self
|
12100 + | /* ServerBuilderGenerator.kt:428 */
|
7628 12101 | }
|
12102 + | /* ServerBuilderGenerator.kt:331 */
|
7629 12103 | #[allow(missing_docs)] // documentation missing in model
|
12104 + | /* ServerBuilderGenerator.kt:343 */
|
7630 12105 | pub fn dense_string_map(
|
7631 12106 | mut self,
|
7632 12107 | input: ::std::option::Option<
|
7633 12108 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7634 12109 | >,
|
7635 12110 | ) -> Self {
|
7636 - | self.dense_string_map = input;
|
12111 + | /* ServerBuilderGenerator.kt:344 */
|
12112 + | self.dense_string_map =
|
12113 + | /* ServerBuilderGenerator.kt:376 */input
|
12114 + | /* ServerBuilderGenerator.kt:344 */;
|
7637 12115 | self
|
12116 + | /* ServerBuilderGenerator.kt:343 */
|
7638 12117 | }
|
12118 + | /* ServerBuilderGenerator.kt:426 */
|
7639 12119 | #[allow(missing_docs)] // documentation missing in model
|
12120 + | /* ServerBuilderGenerator.kt:428 */
|
7640 12121 | pub(crate) fn set_dense_string_map(
|
7641 12122 | mut self,
|
7642 12123 | input: Option<
|
7643 12124 | impl ::std::convert::Into<
|
7644 12125 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7645 12126 | >,
|
7646 12127 | >,
|
7647 12128 | ) -> Self {
|
12129 + | /* ServerBuilderGenerator.kt:429 */
|
7648 12130 | self.dense_string_map = input.map(|v| v.into());
|
7649 12131 | self
|
12132 + | /* ServerBuilderGenerator.kt:428 */
|
7650 12133 | }
|
12134 + | /* ServerBuilderGenerator.kt:331 */
|
7651 12135 | #[allow(missing_docs)] // documentation missing in model
|
12136 + | /* ServerBuilderGenerator.kt:343 */
|
7652 12137 | pub fn dense_set_map(
|
7653 12138 | mut self,
|
7654 12139 | input: ::std::option::Option<
|
7655 12140 | ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
7656 12141 | >,
|
7657 12142 | ) -> Self {
|
7658 - | self.dense_set_map = input.map(
|
7659 - | #[allow(clippy::redundant_closure)]
|
7660 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
7661 - | );
|
12143 + | /* ServerBuilderGenerator.kt:344 */
|
12144 + | self.dense_set_map =
|
12145 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
12146 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
12147 + | /* ServerBuilderGenerator.kt:369 */)
|
12148 + | /* ServerBuilderGenerator.kt:344 */;
|
7662 12149 | self
|
12150 + | /* ServerBuilderGenerator.kt:343 */
|
7663 12151 | }
|
12152 + | /* ServerBuilderGenerator.kt:426 */
|
7664 12153 | #[allow(missing_docs)] // documentation missing in model
|
12154 + | /* ServerBuilderGenerator.kt:428 */
|
7665 12155 | pub(crate) fn set_dense_set_map(
|
7666 12156 | mut self,
|
7667 12157 | input: Option<
|
7668 12158 | impl ::std::convert::Into<
|
7669 12159 | crate::constrained::MaybeConstrained<
|
7670 12160 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
7671 12161 | >,
|
7672 12162 | >,
|
7673 12163 | >,
|
7674 12164 | ) -> Self {
|
12165 + | /* ServerBuilderGenerator.kt:429 */
|
7675 12166 | self.dense_set_map = input.map(|v| v.into());
|
7676 12167 | self
|
12168 + | /* ServerBuilderGenerator.kt:428 */
|
7677 12169 | }
|
7678 - | /// Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
7679 - | ///
|
12170 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
12171 + | /// /* ServerBuilderGenerator.kt:260 */
|
7680 12172 | /// The builder fails to construct a [`JsonMapsInput`](crate::input::JsonMapsInput) if a [`ConstraintViolation`] occurs.
|
7681 12173 | ///
|
12174 + | /* ServerBuilderGenerator.kt:271 */
|
7682 12175 | pub fn build(self) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
7683 12176 | self.build_enforcing_all_constraints()
|
7684 12177 | }
|
12178 + | /* ServerBuilderGenerator.kt:283 */
|
7685 12179 | fn build_enforcing_all_constraints(
|
7686 12180 | self,
|
7687 12181 | ) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
7688 - | Ok(crate::input::JsonMapsInput {
|
12182 + | /* ServerBuilderGenerator.kt:287 */
|
12183 + | Ok(
|
12184 + | /* ServerBuilderGenerator.kt:542 */
|
12185 + | crate::input::JsonMapsInput {
|
12186 + | /* ServerBuilderGenerator.kt:546 */
|
7689 12187 | dense_struct_map: self.dense_struct_map,
|
12188 + | /* ServerBuilderGenerator.kt:546 */
|
7690 12189 | dense_number_map: self.dense_number_map,
|
12190 + | /* ServerBuilderGenerator.kt:546 */
|
7691 12191 | dense_boolean_map: self.dense_boolean_map,
|
12192 + | /* ServerBuilderGenerator.kt:546 */
|
7692 12193 | dense_string_map: self.dense_string_map,
|
12194 + | /* ServerBuilderGenerator.kt:546 */
|
7693 12195 | dense_set_map: self
|
7694 12196 | .dense_set_map
|
12197 + | /* ServerBuilderGenerator.kt:602 */
|
7695 12198 | .map(|v| match v {
|
7696 12199 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7697 12200 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7698 12201 | })
|
12202 + | /* ServerBuilderGenerator.kt:614 */
|
7699 12203 | .map(|res| {
|
7700 12204 | res.map(|v| v.into())
|
7701 12205 | .map_err(ConstraintViolation::DenseSetMap)
|
7702 12206 | })
|
7703 12207 | .transpose()?,
|
7704 - | })
|
12208 + | /* ServerBuilderGenerator.kt:542 */
|
12209 + | }, /* ServerBuilderGenerator.kt:287 */
|
12210 + | )
|
12211 + | /* ServerBuilderGenerator.kt:283 */
|
7705 12212 | }
|
12213 + | /* ServerBuilderGenerator.kt:215 */
|
7706 12214 | }
|
12215 + |
|
12216 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7707 12217 | }
|
7708 - | /// See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12218 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
7709 12219 | pub mod sparse_json_lists_input {
|
7710 12220 |
|
12221 + | /* ServerBuilderGenerator.kt:461 */
|
7711 12222 | impl ::std::convert::From<Builder> for crate::input::SparseJsonListsInput {
|
7712 12223 | fn from(builder: Builder) -> Self {
|
7713 12224 | builder.build()
|
7714 12225 | }
|
7715 12226 | }
|
7716 - | /// A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12227 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12228 + | /* RustType.kt:516 */
|
7717 12229 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12230 + | /* ServerBuilderGenerator.kt:211 */
|
7718 12231 | pub struct Builder {
|
12232 + | /* ServerBuilderGenerator.kt:308 */
|
7719 12233 | pub(crate) sparse_string_list:
|
7720 12234 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
12235 + | /* ServerBuilderGenerator.kt:308 */
|
7721 12236 | pub(crate) sparse_short_list:
|
7722 12237 | ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
12238 + | /* ServerBuilderGenerator.kt:211 */
|
7723 12239 | }
|
12240 + | /* ServerBuilderGenerator.kt:215 */
|
7724 12241 | impl Builder {
|
12242 + | /* ServerBuilderGenerator.kt:331 */
|
7725 12243 | #[allow(missing_docs)] // documentation missing in model
|
12244 + | /* ServerBuilderGenerator.kt:343 */
|
7726 12245 | pub fn sparse_string_list(
|
7727 12246 | mut self,
|
7728 12247 | input: ::std::option::Option<
|
7729 12248 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
7730 12249 | >,
|
7731 12250 | ) -> Self {
|
7732 - | self.sparse_string_list = input;
|
12251 + | /* ServerBuilderGenerator.kt:344 */
|
12252 + | self.sparse_string_list =
|
12253 + | /* ServerBuilderGenerator.kt:376 */input
|
12254 + | /* ServerBuilderGenerator.kt:344 */;
|
7733 12255 | self
|
12256 + | /* ServerBuilderGenerator.kt:343 */
|
7734 12257 | }
|
12258 + | /* ServerBuilderGenerator.kt:426 */
|
7735 12259 | #[allow(missing_docs)] // documentation missing in model
|
12260 + | /* ServerBuilderGenerator.kt:428 */
|
7736 12261 | pub(crate) fn set_sparse_string_list(
|
7737 12262 | mut self,
|
7738 12263 | input: Option<
|
7739 12264 | impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
7740 12265 | >,
|
7741 12266 | ) -> Self {
|
12267 + | /* ServerBuilderGenerator.kt:429 */
|
7742 12268 | self.sparse_string_list = input.map(|v| v.into());
|
7743 12269 | self
|
12270 + | /* ServerBuilderGenerator.kt:428 */
|
7744 12271 | }
|
12272 + | /* ServerBuilderGenerator.kt:331 */
|
7745 12273 | #[allow(missing_docs)] // documentation missing in model
|
12274 + | /* ServerBuilderGenerator.kt:343 */
|
7746 12275 | pub fn sparse_short_list(
|
7747 12276 | mut self,
|
7748 12277 | input: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
7749 12278 | ) -> Self {
|
7750 - | self.sparse_short_list = input;
|
12279 + | /* ServerBuilderGenerator.kt:344 */
|
12280 + | self.sparse_short_list =
|
12281 + | /* ServerBuilderGenerator.kt:376 */input
|
12282 + | /* ServerBuilderGenerator.kt:344 */;
|
7751 12283 | self
|
12284 + | /* ServerBuilderGenerator.kt:343 */
|
7752 12285 | }
|
12286 + | /* ServerBuilderGenerator.kt:426 */
|
7753 12287 | #[allow(missing_docs)] // documentation missing in model
|
12288 + | /* ServerBuilderGenerator.kt:428 */
|
7754 12289 | pub(crate) fn set_sparse_short_list(
|
7755 12290 | mut self,
|
7756 12291 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<i16>>>>,
|
7757 12292 | ) -> Self {
|
12293 + | /* ServerBuilderGenerator.kt:429 */
|
7758 12294 | self.sparse_short_list = input.map(|v| v.into());
|
7759 12295 | self
|
12296 + | /* ServerBuilderGenerator.kt:428 */
|
7760 12297 | }
|
7761 - | /// Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12298 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12299 + | /* ServerBuilderGenerator.kt:271 */
|
7762 12300 | pub fn build(self) -> crate::input::SparseJsonListsInput {
|
7763 12301 | self.build_enforcing_all_constraints()
|
7764 12302 | }
|
12303 + | /* ServerBuilderGenerator.kt:283 */
|
7765 12304 | fn build_enforcing_all_constraints(self) -> crate::input::SparseJsonListsInput {
|
12305 + | /* ServerBuilderGenerator.kt:542 */
|
7766 12306 | crate::input::SparseJsonListsInput {
|
12307 + | /* ServerBuilderGenerator.kt:546 */
|
7767 12308 | sparse_string_list: self.sparse_string_list,
|
12309 + | /* ServerBuilderGenerator.kt:546 */
|
7768 12310 | sparse_short_list: self.sparse_short_list,
|
12311 + | /* ServerBuilderGenerator.kt:542 */
|
7769 12312 | }
|
12313 + | /* ServerBuilderGenerator.kt:283 */
|
7770 12314 | }
|
12315 + | /* ServerBuilderGenerator.kt:215 */
|
7771 12316 | }
|
12317 + |
|
12318 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7772 12319 | }
|
7773 - | /// See [`JsonListsInput`](crate::input::JsonListsInput).
|
12320 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonListsInput`](crate::input::JsonListsInput).
|
7774 12321 | pub mod json_lists_input {
|
7775 12322 |
|
12323 + | /* RustType.kt:516 */
|
7776 12324 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7777 - | /// Holds one variant for each of the ways the builder can fail.
|
12325 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12326 + | /* RustType.kt:516 */
|
7778 12327 | #[non_exhaustive]
|
12328 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7779 12329 | #[allow(clippy::enum_variant_names)]
|
7780 12330 | pub enum ConstraintViolation {
|
7781 - | /// Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
12331 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
12332 + | /* RustType.kt:516 */
|
7782 12333 | #[doc(hidden)]
|
12334 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7783 12335 | StringSet(crate::model::string_set::ConstraintViolation),
|
7784 - | /// Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
12336 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
12337 + | /* RustType.kt:516 */
|
7785 12338 | #[doc(hidden)]
|
12339 + | /* ServerBuilderConstraintViolations.kt:164 */
|
7786 12340 | EnumList(crate::model::foo_enum_list::ConstraintViolation),
|
12341 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7787 12342 | }
|
12343 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7788 12344 | impl ::std::fmt::Display for ConstraintViolation {
|
12345 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7789 12346 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12347 + | /* ServerBuilderConstraintViolations.kt:119 */
|
7790 12348 | match self {
|
7791 - | ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
7792 - | ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
7793 - | }
|
12349 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
12350 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
12351 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
12352 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7794 12353 | }
|
12354 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7795 12355 | }
|
12356 + | /* ServerBuilderConstraintViolations.kt:84 */
|
7796 12357 | impl ::std::error::Error for ConstraintViolation {}
|
12358 + | /* ServerBuilderConstraintViolations.kt:171 */
|
7797 12359 | impl ConstraintViolation {
|
7798 12360 | pub(crate) fn as_validation_exception_field(
|
7799 12361 | self,
|
7800 12362 | path: ::std::string::String,
|
7801 12363 | ) -> crate::model::ValidationExceptionField {
|
7802 12364 | match self {
|
7803 12365 | ConstraintViolation::StringSet(inner) => {
|
7804 12366 | inner.as_validation_exception_field(path + "/stringSet")
|
7805 12367 | }
|
7806 12368 | ConstraintViolation::EnumList(inner) => {
|
7807 12369 | inner.as_validation_exception_field(path + "/enumList")
|
7808 12370 | }
|
7809 12371 | }
|
7810 12372 | }
|
7811 12373 | }
|
12374 + | /* ServerBuilderGenerator.kt:234 */
|
7812 12375 | impl ::std::convert::From<ConstraintViolation>
|
7813 12376 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7814 12377 | {
|
7815 12378 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7816 12379 | let first_validation_exception_field =
|
7817 12380 | constraint_violation.as_validation_exception_field("".to_owned());
|
7818 12381 | let validation_exception = crate::error::ValidationException {
|
7819 12382 | message: format!(
|
7820 12383 | "1 validation error detected. {}",
|
7821 12384 | &first_validation_exception_field.message
|
7822 12385 | ),
|
7823 12386 | field_list: Some(vec![first_validation_exception_field]),
|
7824 12387 | };
|
7825 12388 | Self::ConstraintViolation(
|
7826 12389 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7827 12390 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7828 12391 | )
|
7829 12392 | }
|
7830 12393 | }
|
12394 + | /* ServerBuilderGenerator.kt:244 */
|
7831 12395 | impl ::std::convert::From<Builder>
|
7832 12396 | for crate::constrained::MaybeConstrained<crate::input::JsonListsInput>
|
7833 12397 | {
|
7834 12398 | fn from(builder: Builder) -> Self {
|
7835 12399 | Self::Unconstrained(builder)
|
7836 12400 | }
|
7837 12401 | }
|
12402 + | /* ServerBuilderGenerator.kt:446 */
|
7838 12403 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonListsInput {
|
7839 12404 | type Error = ConstraintViolation;
|
7840 12405 |
|
7841 12406 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7842 12407 | builder.build()
|
7843 12408 | }
|
7844 12409 | }
|
7845 - | /// A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
12410 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
12411 + | /* RustType.kt:516 */
|
7846 12412 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12413 + | /* ServerBuilderGenerator.kt:211 */
|
7847 12414 | pub struct Builder {
|
12415 + | /* ServerBuilderGenerator.kt:308 */
|
7848 12416 | pub(crate) string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12417 + | /* ServerBuilderGenerator.kt:308 */
|
7849 12418 | pub(crate) string_set:
|
7850 12419 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
12420 + | /* ServerBuilderGenerator.kt:308 */
|
7851 12421 | pub(crate) integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
12422 + | /* ServerBuilderGenerator.kt:308 */
|
7852 12423 | pub(crate) boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
12424 + | /* ServerBuilderGenerator.kt:308 */
|
7853 12425 | pub(crate) timestamp_list:
|
7854 12426 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
12427 + | /* ServerBuilderGenerator.kt:308 */
|
7855 12428 | pub(crate) enum_list: ::std::option::Option<
|
7856 12429 | crate::constrained::MaybeConstrained<
|
7857 12430 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
7858 12431 | >,
|
7859 12432 | >,
|
12433 + | /* ServerBuilderGenerator.kt:308 */
|
7860 12434 | pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
12435 + | /* ServerBuilderGenerator.kt:308 */
|
7861 12436 | pub(crate) nested_string_list:
|
7862 12437 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
12438 + | /* ServerBuilderGenerator.kt:308 */
|
7863 12439 | pub(crate) structure_list:
|
7864 12440 | ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
12441 + | /* ServerBuilderGenerator.kt:211 */
|
7865 12442 | }
|
12443 + | /* ServerBuilderGenerator.kt:215 */
|
7866 12444 | impl Builder {
|
12445 + | /* ServerBuilderGenerator.kt:331 */
|
7867 12446 | #[allow(missing_docs)] // documentation missing in model
|
12447 + | /* ServerBuilderGenerator.kt:343 */
|
7868 12448 | pub fn string_list(
|
7869 12449 | mut self,
|
7870 12450 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7871 12451 | ) -> Self {
|
7872 - | self.string_list = input;
|
12452 + | /* ServerBuilderGenerator.kt:344 */
|
12453 + | self.string_list =
|
12454 + | /* ServerBuilderGenerator.kt:376 */input
|
12455 + | /* ServerBuilderGenerator.kt:344 */;
|
7873 12456 | self
|
12457 + | /* ServerBuilderGenerator.kt:343 */
|
7874 12458 | }
|
12459 + | /* ServerBuilderGenerator.kt:426 */
|
7875 12460 | #[allow(missing_docs)] // documentation missing in model
|
12461 + | /* ServerBuilderGenerator.kt:428 */
|
7876 12462 | pub(crate) fn set_string_list(
|
7877 12463 | mut self,
|
7878 12464 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
7879 12465 | ) -> Self {
|
12466 + | /* ServerBuilderGenerator.kt:429 */
|
7880 12467 | self.string_list = input.map(|v| v.into());
|
7881 12468 | self
|
12469 + | /* ServerBuilderGenerator.kt:428 */
|
7882 12470 | }
|
12471 + | /* ServerBuilderGenerator.kt:331 */
|
7883 12472 | #[allow(missing_docs)] // documentation missing in model
|
12473 + | /* ServerBuilderGenerator.kt:343 */
|
7884 12474 | pub fn string_set(mut self, input: ::std::option::Option<crate::model::StringSet>) -> Self {
|
7885 - | self.string_set = input.map(
|
7886 - | #[allow(clippy::redundant_closure)]
|
7887 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
7888 - | );
|
12475 + | /* ServerBuilderGenerator.kt:344 */
|
12476 + | self.string_set =
|
12477 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
12478 + | /* ServerBuilderGenerator.kt:344 */;
|
7889 12479 | self
|
12480 + | /* ServerBuilderGenerator.kt:343 */
|
7890 12481 | }
|
12482 + | /* ServerBuilderGenerator.kt:426 */
|
7891 12483 | #[allow(missing_docs)] // documentation missing in model
|
12484 + | /* ServerBuilderGenerator.kt:428 */
|
7892 12485 | pub(crate) fn set_string_set(
|
7893 12486 | mut self,
|
7894 12487 | input: Option<
|
7895 12488 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
7896 12489 | >,
|
7897 12490 | ) -> Self {
|
12491 + | /* ServerBuilderGenerator.kt:429 */
|
7898 12492 | self.string_set = input.map(|v| v.into());
|
7899 12493 | self
|
12494 + | /* ServerBuilderGenerator.kt:428 */
|
7900 12495 | }
|
12496 + | /* ServerBuilderGenerator.kt:331 */
|
7901 12497 | #[allow(missing_docs)] // documentation missing in model
|
12498 + | /* ServerBuilderGenerator.kt:343 */
|
7902 12499 | pub fn integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
7903 - | self.integer_list = input;
|
12500 + | /* ServerBuilderGenerator.kt:344 */
|
12501 + | self.integer_list =
|
12502 + | /* ServerBuilderGenerator.kt:376 */input
|
12503 + | /* ServerBuilderGenerator.kt:344 */;
|
7904 12504 | self
|
12505 + | /* ServerBuilderGenerator.kt:343 */
|
7905 12506 | }
|
12507 + | /* ServerBuilderGenerator.kt:426 */
|
7906 12508 | #[allow(missing_docs)] // documentation missing in model
|
12509 + | /* ServerBuilderGenerator.kt:428 */
|
7907 12510 | pub(crate) fn set_integer_list(
|
7908 12511 | mut self,
|
7909 12512 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
7910 12513 | ) -> Self {
|
12514 + | /* ServerBuilderGenerator.kt:429 */
|
7911 12515 | self.integer_list = input.map(|v| v.into());
|
7912 12516 | self
|
12517 + | /* ServerBuilderGenerator.kt:428 */
|
7913 12518 | }
|
12519 + | /* ServerBuilderGenerator.kt:331 */
|
7914 12520 | #[allow(missing_docs)] // documentation missing in model
|
12521 + | /* ServerBuilderGenerator.kt:343 */
|
7915 12522 | pub fn boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
|
7916 - | self.boolean_list = input;
|
12523 + | /* ServerBuilderGenerator.kt:344 */
|
12524 + | self.boolean_list =
|
12525 + | /* ServerBuilderGenerator.kt:376 */input
|
12526 + | /* ServerBuilderGenerator.kt:344 */;
|
7917 12527 | self
|
12528 + | /* ServerBuilderGenerator.kt:343 */
|
7918 12529 | }
|
12530 + | /* ServerBuilderGenerator.kt:426 */
|
7919 12531 | #[allow(missing_docs)] // documentation missing in model
|
12532 + | /* ServerBuilderGenerator.kt:428 */
|
7920 12533 | pub(crate) fn set_boolean_list(
|
7921 12534 | mut self,
|
7922 12535 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
7923 12536 | ) -> Self {
|
12537 + | /* ServerBuilderGenerator.kt:429 */
|
7924 12538 | self.boolean_list = input.map(|v| v.into());
|
7925 12539 | self
|
12540 + | /* ServerBuilderGenerator.kt:428 */
|
7926 12541 | }
|
12542 + | /* ServerBuilderGenerator.kt:331 */
|
7927 12543 | #[allow(missing_docs)] // documentation missing in model
|
12544 + | /* ServerBuilderGenerator.kt:343 */
|
7928 12545 | pub fn timestamp_list(
|
7929 12546 | mut self,
|
7930 12547 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
7931 12548 | ) -> Self {
|
7932 - | self.timestamp_list = input;
|
12549 + | /* ServerBuilderGenerator.kt:344 */
|
12550 + | self.timestamp_list =
|
12551 + | /* ServerBuilderGenerator.kt:376 */input
|
12552 + | /* ServerBuilderGenerator.kt:344 */;
|
7933 12553 | self
|
12554 + | /* ServerBuilderGenerator.kt:343 */
|
7934 12555 | }
|
12556 + | /* ServerBuilderGenerator.kt:426 */
|
7935 12557 | #[allow(missing_docs)] // documentation missing in model
|
12558 + | /* ServerBuilderGenerator.kt:428 */
|
7936 12559 | pub(crate) fn set_timestamp_list(
|
7937 12560 | mut self,
|
7938 12561 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
7939 12562 | ) -> Self {
|
12563 + | /* ServerBuilderGenerator.kt:429 */
|
7940 12564 | self.timestamp_list = input.map(|v| v.into());
|
7941 12565 | self
|
12566 + | /* ServerBuilderGenerator.kt:428 */
|
7942 12567 | }
|
12568 + | /* ServerBuilderGenerator.kt:331 */
|
7943 12569 | #[allow(missing_docs)] // documentation missing in model
|
12570 + | /* ServerBuilderGenerator.kt:343 */
|
7944 12571 | pub fn enum_list(
|
7945 12572 | mut self,
|
7946 12573 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
7947 12574 | ) -> Self {
|
7948 - | self.enum_list = input.map(
|
7949 - | #[allow(clippy::redundant_closure)]
|
7950 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
7951 - | );
|
12575 + | /* ServerBuilderGenerator.kt:344 */
|
12576 + | self.enum_list =
|
12577 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
12578 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
12579 + | /* ServerBuilderGenerator.kt:369 */)
|
12580 + | /* ServerBuilderGenerator.kt:344 */;
|
7952 12581 | self
|
12582 + | /* ServerBuilderGenerator.kt:343 */
|
7953 12583 | }
|
12584 + | /* ServerBuilderGenerator.kt:426 */
|
7954 12585 | #[allow(missing_docs)] // documentation missing in model
|
12586 + | /* ServerBuilderGenerator.kt:428 */
|
7955 12587 | pub(crate) fn set_enum_list(
|
7956 12588 | mut self,
|
7957 12589 | input: Option<
|
7958 12590 | impl ::std::convert::Into<
|
7959 12591 | crate::constrained::MaybeConstrained<
|
7960 12592 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
7961 12593 | >,
|
7962 12594 | >,
|
7963 12595 | >,
|
7964 12596 | ) -> Self {
|
12597 + | /* ServerBuilderGenerator.kt:429 */
|
7965 12598 | self.enum_list = input.map(|v| v.into());
|
7966 12599 | self
|
12600 + | /* ServerBuilderGenerator.kt:428 */
|
7967 12601 | }
|
12602 + | /* ServerBuilderGenerator.kt:331 */
|
7968 12603 | #[allow(missing_docs)] // documentation missing in model
|
12604 + | /* ServerBuilderGenerator.kt:343 */
|
7969 12605 | pub fn int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
7970 - | self.int_enum_list = input;
|
12606 + | /* ServerBuilderGenerator.kt:344 */
|
12607 + | self.int_enum_list =
|
12608 + | /* ServerBuilderGenerator.kt:376 */input
|
12609 + | /* ServerBuilderGenerator.kt:344 */;
|
7971 12610 | self
|
12611 + | /* ServerBuilderGenerator.kt:343 */
|
7972 12612 | }
|
12613 + | /* ServerBuilderGenerator.kt:426 */
|
7973 12614 | #[allow(missing_docs)] // documentation missing in model
|
12615 + | /* ServerBuilderGenerator.kt:428 */
|
7974 12616 | pub(crate) fn set_int_enum_list(
|
7975 12617 | mut self,
|
7976 12618 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
7977 12619 | ) -> Self {
|
12620 + | /* ServerBuilderGenerator.kt:429 */
|
7978 12621 | self.int_enum_list = input.map(|v| v.into());
|
7979 12622 | self
|
12623 + | /* ServerBuilderGenerator.kt:428 */
|
7980 12624 | }
|
7981 - | /// A list of lists of strings.
|
12625 + | /// /* ServerBuilderGenerator.kt:331 */A list of lists of strings.
|
12626 + | /* ServerBuilderGenerator.kt:343 */
|
7982 12627 | pub fn nested_string_list(
|
7983 12628 | mut self,
|
7984 12629 | input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
7985 12630 | ) -> Self {
|
7986 - | self.nested_string_list = input;
|
12631 + | /* ServerBuilderGenerator.kt:344 */
|
12632 + | self.nested_string_list =
|
12633 + | /* ServerBuilderGenerator.kt:376 */input
|
12634 + | /* ServerBuilderGenerator.kt:344 */;
|
7987 12635 | self
|
12636 + | /* ServerBuilderGenerator.kt:343 */
|
7988 12637 | }
|
7989 - | /// A list of lists of strings.
|
12638 + | /// /* ServerBuilderGenerator.kt:426 */A list of lists of strings.
|
12639 + | /* ServerBuilderGenerator.kt:428 */
|
7990 12640 | pub(crate) fn set_nested_string_list(
|
7991 12641 | mut self,
|
7992 12642 | input: Option<
|
7993 12643 | impl ::std::convert::Into<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
7994 12644 | >,
|
7995 12645 | ) -> Self {
|
12646 + | /* ServerBuilderGenerator.kt:429 */
|
7996 12647 | self.nested_string_list = input.map(|v| v.into());
|
7997 12648 | self
|
12649 + | /* ServerBuilderGenerator.kt:428 */
|
7998 12650 | }
|
12651 + | /* ServerBuilderGenerator.kt:331 */
|
7999 12652 | #[allow(missing_docs)] // documentation missing in model
|
12653 + | /* ServerBuilderGenerator.kt:343 */
|
8000 12654 | pub fn structure_list(
|
8001 12655 | mut self,
|
8002 12656 | input: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
8003 12657 | ) -> Self {
|
8004 - | self.structure_list = input;
|
12658 + | /* ServerBuilderGenerator.kt:344 */
|
12659 + | self.structure_list =
|
12660 + | /* ServerBuilderGenerator.kt:376 */input
|
12661 + | /* ServerBuilderGenerator.kt:344 */;
|
8005 12662 | self
|
12663 + | /* ServerBuilderGenerator.kt:343 */
|
8006 12664 | }
|
12665 + | /* ServerBuilderGenerator.kt:426 */
|
8007 12666 | #[allow(missing_docs)] // documentation missing in model
|
12667 + | /* ServerBuilderGenerator.kt:428 */
|
8008 12668 | pub(crate) fn set_structure_list(
|
8009 12669 | mut self,
|
8010 12670 | input: Option<
|
8011 12671 | impl ::std::convert::Into<::std::vec::Vec<crate::model::StructureListMember>>,
|
8012 12672 | >,
|
8013 12673 | ) -> Self {
|
12674 + | /* ServerBuilderGenerator.kt:429 */
|
8014 12675 | self.structure_list = input.map(|v| v.into());
|
8015 12676 | self
|
12677 + | /* ServerBuilderGenerator.kt:428 */
|
8016 12678 | }
|
8017 - | /// Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
8018 - | ///
|
12679 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
12680 + | /// /* ServerBuilderGenerator.kt:260 */
|
8019 12681 | /// The builder fails to construct a [`JsonListsInput`](crate::input::JsonListsInput) if a [`ConstraintViolation`] occurs.
|
8020 12682 | ///
|
8021 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12683 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12684 + | /* ServerBuilderGenerator.kt:271 */
|
8022 12685 | pub fn build(self) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
8023 12686 | self.build_enforcing_all_constraints()
|
8024 12687 | }
|
12688 + | /* ServerBuilderGenerator.kt:283 */
|
8025 12689 | fn build_enforcing_all_constraints(
|
8026 12690 | self,
|
8027 12691 | ) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
8028 - | Ok(crate::input::JsonListsInput {
|
12692 + | /* ServerBuilderGenerator.kt:287 */
|
12693 + | Ok(
|
12694 + | /* ServerBuilderGenerator.kt:542 */
|
12695 + | crate::input::JsonListsInput {
|
12696 + | /* ServerBuilderGenerator.kt:546 */
|
8029 12697 | string_list: self.string_list,
|
12698 + | /* ServerBuilderGenerator.kt:546 */
|
8030 12699 | string_set: self
|
8031 12700 | .string_set
|
12701 + | /* ServerBuilderGenerator.kt:602 */
|
8032 12702 | .map(|v| match v {
|
8033 12703 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8034 12704 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8035 12705 | })
|
12706 + | /* ServerBuilderGenerator.kt:614 */
|
8036 12707 | .map(|res| res.map_err(ConstraintViolation::StringSet))
|
8037 12708 | .transpose()?,
|
12709 + | /* ServerBuilderGenerator.kt:546 */
|
8038 12710 | integer_list: self.integer_list,
|
12711 + | /* ServerBuilderGenerator.kt:546 */
|
8039 12712 | boolean_list: self.boolean_list,
|
12713 + | /* ServerBuilderGenerator.kt:546 */
|
8040 12714 | timestamp_list: self.timestamp_list,
|
12715 + | /* ServerBuilderGenerator.kt:546 */
|
8041 12716 | enum_list: self
|
8042 12717 | .enum_list
|
12718 + | /* ServerBuilderGenerator.kt:602 */
|
8043 12719 | .map(|v| match v {
|
8044 12720 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8045 12721 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8046 12722 | })
|
12723 + | /* ServerBuilderGenerator.kt:614 */
|
8047 12724 | .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::EnumList))
|
8048 12725 | .transpose()?,
|
12726 + | /* ServerBuilderGenerator.kt:546 */
|
8049 12727 | int_enum_list: self.int_enum_list,
|
12728 + | /* ServerBuilderGenerator.kt:546 */
|
8050 12729 | nested_string_list: self.nested_string_list,
|
12730 + | /* ServerBuilderGenerator.kt:546 */
|
8051 12731 | structure_list: self.structure_list,
|
8052 - | })
|
12732 + | /* ServerBuilderGenerator.kt:542 */
|
12733 + | }, /* ServerBuilderGenerator.kt:287 */
|
12734 + | )
|
12735 + | /* ServerBuilderGenerator.kt:283 */
|
8053 12736 | }
|
12737 + | /* ServerBuilderGenerator.kt:215 */
|
8054 12738 | }
|
12739 + |
|
12740 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8055 12741 | }
|
8056 - | /// See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12742 + | /// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
8057 12743 | pub mod recursive_shapes_input {
|
8058 12744 |
|
12745 + | /* ServerBuilderGenerator.kt:461 */
|
8059 12746 | impl ::std::convert::From<Builder> for crate::input::RecursiveShapesInput {
|
8060 12747 | fn from(builder: Builder) -> Self {
|
8061 12748 | builder.build()
|
8062 12749 | }
|
8063 12750 | }
|
8064 - | /// A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12751 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12752 + | /* RustType.kt:516 */
|
8065 12753 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12754 + | /* ServerBuilderGenerator.kt:211 */
|
8066 12755 | pub struct Builder {
|
12756 + | /* ServerBuilderGenerator.kt:308 */
|
8067 12757 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
12758 + | /* ServerBuilderGenerator.kt:211 */
|
8068 12759 | }
|
12760 + | /* ServerBuilderGenerator.kt:215 */
|
8069 12761 | impl Builder {
|
12762 + | /* ServerBuilderGenerator.kt:331 */
|
8070 12763 | #[allow(missing_docs)] // documentation missing in model
|
12764 + | /* ServerBuilderGenerator.kt:343 */
|
8071 12765 | pub fn nested(
|
8072 12766 | mut self,
|
8073 12767 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
8074 12768 | ) -> Self {
|
8075 - | self.nested = input;
|
12769 + | /* ServerBuilderGenerator.kt:344 */
|
12770 + | self.nested =
|
12771 + | /* ServerBuilderGenerator.kt:376 */input
|
12772 + | /* ServerBuilderGenerator.kt:344 */;
|
8076 12773 | self
|
12774 + | /* ServerBuilderGenerator.kt:343 */
|
8077 12775 | }
|
12776 + | /* ServerBuilderGenerator.kt:426 */
|
8078 12777 | #[allow(missing_docs)] // documentation missing in model
|
12778 + | /* ServerBuilderGenerator.kt:428 */
|
8079 12779 | pub(crate) fn set_nested(
|
8080 12780 | mut self,
|
8081 12781 | input: Option<
|
8082 12782 | impl ::std::convert::Into<crate::model::RecursiveShapesInputOutputNested1>,
|
8083 12783 | >,
|
8084 12784 | ) -> Self {
|
12785 + | /* ServerBuilderGenerator.kt:429 */
|
8085 12786 | self.nested = input.map(|v| v.into());
|
8086 12787 | self
|
12788 + | /* ServerBuilderGenerator.kt:428 */
|
8087 12789 | }
|
8088 - | /// Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12790 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12791 + | /* ServerBuilderGenerator.kt:271 */
|
8089 12792 | pub fn build(self) -> crate::input::RecursiveShapesInput {
|
8090 12793 | self.build_enforcing_all_constraints()
|
8091 12794 | }
|
12795 + | /* ServerBuilderGenerator.kt:283 */
|
8092 12796 | fn build_enforcing_all_constraints(self) -> crate::input::RecursiveShapesInput {
|
12797 + | /* ServerBuilderGenerator.kt:542 */
|
8093 12798 | crate::input::RecursiveShapesInput {
|
12799 + | /* ServerBuilderGenerator.kt:546 */
|
8094 12800 | nested: self.nested,
|
12801 + | /* ServerBuilderGenerator.kt:542 */
|
8095 12802 | }
|
12803 + | /* ServerBuilderGenerator.kt:283 */
|
8096 12804 | }
|
12805 + | /* ServerBuilderGenerator.kt:215 */
|
8097 12806 | }
|
12807 + |
|
12808 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8098 12809 | }
|
8099 - | /// See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
12810 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
8100 12811 | pub mod json_int_enums_input {
|
8101 12812 |
|
12813 + | /* RustType.kt:516 */
|
8102 12814 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8103 - | /// Holds one variant for each of the ways the builder can fail.
|
12815 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12816 + | /* RustType.kt:516 */
|
8104 12817 | #[non_exhaustive]
|
12818 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8105 12819 | #[allow(clippy::enum_variant_names)]
|
8106 12820 | pub enum ConstraintViolation {
|
8107 - | /// Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
12821 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
12822 + | /* RustType.kt:516 */
|
8108 12823 | #[doc(hidden)]
|
12824 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8109 12825 | IntegerEnumSet(crate::model::integer_enum_set::ConstraintViolation),
|
12826 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8110 12827 | }
|
12828 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8111 12829 | impl ::std::fmt::Display for ConstraintViolation {
|
12830 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8112 12831 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12832 + | /* ServerBuilderConstraintViolations.kt:119 */
|
8113 12833 | match self {
|
8114 - | ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
8115 - | }
|
12834 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
12835 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
12836 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8116 12837 | }
|
12838 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8117 12839 | }
|
12840 + | /* ServerBuilderConstraintViolations.kt:84 */
|
8118 12841 | impl ::std::error::Error for ConstraintViolation {}
|
12842 + | /* ServerBuilderConstraintViolations.kt:171 */
|
8119 12843 | impl ConstraintViolation {
|
8120 12844 | pub(crate) fn as_validation_exception_field(
|
8121 12845 | self,
|
8122 12846 | path: ::std::string::String,
|
8123 12847 | ) -> crate::model::ValidationExceptionField {
|
8124 12848 | match self {
|
8125 12849 | ConstraintViolation::IntegerEnumSet(inner) => {
|
8126 12850 | inner.as_validation_exception_field(path + "/integerEnumSet")
|
8127 12851 | }
|
8128 12852 | }
|
8129 12853 | }
|
8130 12854 | }
|
12855 + | /* ServerBuilderGenerator.kt:234 */
|
8131 12856 | impl ::std::convert::From<ConstraintViolation>
|
8132 12857 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
8133 12858 | {
|
8134 12859 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
8135 12860 | let first_validation_exception_field =
|
8136 12861 | constraint_violation.as_validation_exception_field("".to_owned());
|
8137 12862 | let validation_exception = crate::error::ValidationException {
|
8138 12863 | message: format!(
|
8139 12864 | "1 validation error detected. {}",
|
8140 12865 | &first_validation_exception_field.message
|
8141 12866 | ),
|
8142 12867 | field_list: Some(vec![first_validation_exception_field]),
|
8143 12868 | };
|
8144 12869 | Self::ConstraintViolation(
|
8145 12870 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
8146 12871 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
8147 12872 | )
|
8148 12873 | }
|
8149 12874 | }
|
12875 + | /* ServerBuilderGenerator.kt:244 */
|
8150 12876 | impl ::std::convert::From<Builder>
|
8151 12877 | for crate::constrained::MaybeConstrained<crate::input::JsonIntEnumsInput>
|
8152 12878 | {
|
8153 12879 | fn from(builder: Builder) -> Self {
|
8154 12880 | Self::Unconstrained(builder)
|
8155 12881 | }
|
8156 12882 | }
|
12883 + | /* ServerBuilderGenerator.kt:446 */
|
8157 12884 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonIntEnumsInput {
|
8158 12885 | type Error = ConstraintViolation;
|
8159 12886 |
|
8160 12887 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8161 12888 | builder.build()
|
8162 12889 | }
|
8163 12890 | }
|
8164 - | /// A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
12891 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
12892 + | /* RustType.kt:516 */
|
8165 12893 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12894 + | /* ServerBuilderGenerator.kt:211 */
|
8166 12895 | pub struct Builder {
|
12896 + | /* ServerBuilderGenerator.kt:308 */
|
8167 12897 | pub(crate) integer_enum1: ::std::option::Option<i32>,
|
12898 + | /* ServerBuilderGenerator.kt:308 */
|
8168 12899 | pub(crate) integer_enum2: ::std::option::Option<i32>,
|
12900 + | /* ServerBuilderGenerator.kt:308 */
|
8169 12901 | pub(crate) integer_enum3: ::std::option::Option<i32>,
|
12902 + | /* ServerBuilderGenerator.kt:308 */
|
8170 12903 | pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
12904 + | /* ServerBuilderGenerator.kt:308 */
|
8171 12905 | pub(crate) integer_enum_set: ::std::option::Option<
|
8172 12906 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
8173 12907 | >,
|
12908 + | /* ServerBuilderGenerator.kt:308 */
|
8174 12909 | pub(crate) integer_enum_map:
|
8175 12910 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
12911 + | /* ServerBuilderGenerator.kt:211 */
|
8176 12912 | }
|
12913 + | /* ServerBuilderGenerator.kt:215 */
|
8177 12914 | impl Builder {
|
12915 + | /* ServerBuilderGenerator.kt:331 */
|
8178 12916 | #[allow(missing_docs)] // documentation missing in model
|
12917 + | /* ServerBuilderGenerator.kt:343 */
|
8179 12918 | pub fn integer_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
|
8180 - | self.integer_enum1 = input;
|
12919 + | /* ServerBuilderGenerator.kt:344 */
|
12920 + | self.integer_enum1 =
|
12921 + | /* ServerBuilderGenerator.kt:376 */input
|
12922 + | /* ServerBuilderGenerator.kt:344 */;
|
8181 12923 | self
|
12924 + | /* ServerBuilderGenerator.kt:343 */
|
8182 12925 | }
|
12926 + | /* ServerBuilderGenerator.kt:426 */
|
8183 12927 | #[allow(missing_docs)] // documentation missing in model
|
12928 + | /* ServerBuilderGenerator.kt:428 */
|
8184 12929 | pub(crate) fn set_integer_enum1(
|
8185 12930 | mut self,
|
8186 12931 | input: Option<impl ::std::convert::Into<i32>>,
|
8187 12932 | ) -> Self {
|
12933 + | /* ServerBuilderGenerator.kt:429 */
|
8188 12934 | self.integer_enum1 = input.map(|v| v.into());
|
8189 12935 | self
|
12936 + | /* ServerBuilderGenerator.kt:428 */
|
8190 12937 | }
|
12938 + | /* ServerBuilderGenerator.kt:331 */
|
8191 12939 | #[allow(missing_docs)] // documentation missing in model
|
12940 + | /* ServerBuilderGenerator.kt:343 */
|
8192 12941 | pub fn integer_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
|
8193 - | self.integer_enum2 = input;
|
12942 + | /* ServerBuilderGenerator.kt:344 */
|
12943 + | self.integer_enum2 =
|
12944 + | /* ServerBuilderGenerator.kt:376 */input
|
12945 + | /* ServerBuilderGenerator.kt:344 */;
|
8194 12946 | self
|
12947 + | /* ServerBuilderGenerator.kt:343 */
|
8195 12948 | }
|
12949 + | /* ServerBuilderGenerator.kt:426 */
|
8196 12950 | #[allow(missing_docs)] // documentation missing in model
|
12951 + | /* ServerBuilderGenerator.kt:428 */
|
8197 12952 | pub(crate) fn set_integer_enum2(
|
8198 12953 | mut self,
|
8199 12954 | input: Option<impl ::std::convert::Into<i32>>,
|
8200 12955 | ) -> Self {
|
12956 + | /* ServerBuilderGenerator.kt:429 */
|
8201 12957 | self.integer_enum2 = input.map(|v| v.into());
|
8202 12958 | self
|
12959 + | /* ServerBuilderGenerator.kt:428 */
|
8203 12960 | }
|
12961 + | /* ServerBuilderGenerator.kt:331 */
|
8204 12962 | #[allow(missing_docs)] // documentation missing in model
|
12963 + | /* ServerBuilderGenerator.kt:343 */
|
8205 12964 | pub fn integer_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
|
8206 - | self.integer_enum3 = input;
|
12965 + | /* ServerBuilderGenerator.kt:344 */
|
12966 + | self.integer_enum3 =
|
12967 + | /* ServerBuilderGenerator.kt:376 */input
|
12968 + | /* ServerBuilderGenerator.kt:344 */;
|
8207 12969 | self
|
12970 + | /* ServerBuilderGenerator.kt:343 */
|
8208 12971 | }
|
12972 + | /* ServerBuilderGenerator.kt:426 */
|
8209 12973 | #[allow(missing_docs)] // documentation missing in model
|
12974 + | /* ServerBuilderGenerator.kt:428 */
|
8210 12975 | pub(crate) fn set_integer_enum3(
|
8211 12976 | mut self,
|
8212 12977 | input: Option<impl ::std::convert::Into<i32>>,
|
8213 12978 | ) -> Self {
|
12979 + | /* ServerBuilderGenerator.kt:429 */
|
8214 12980 | self.integer_enum3 = input.map(|v| v.into());
|
8215 12981 | self
|
12982 + | /* ServerBuilderGenerator.kt:428 */
|
8216 12983 | }
|
12984 + | /* ServerBuilderGenerator.kt:331 */
|
8217 12985 | #[allow(missing_docs)] // documentation missing in model
|
12986 + | /* ServerBuilderGenerator.kt:343 */
|
8218 12987 | pub fn integer_enum_list(
|
8219 12988 | mut self,
|
8220 12989 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
8221 12990 | ) -> Self {
|
8222 - | self.integer_enum_list = input;
|
12991 + | /* ServerBuilderGenerator.kt:344 */
|
12992 + | self.integer_enum_list =
|
12993 + | /* ServerBuilderGenerator.kt:376 */input
|
12994 + | /* ServerBuilderGenerator.kt:344 */;
|
8223 12995 | self
|
12996 + | /* ServerBuilderGenerator.kt:343 */
|
8224 12997 | }
|
12998 + | /* ServerBuilderGenerator.kt:426 */
|
8225 12999 | #[allow(missing_docs)] // documentation missing in model
|
13000 + | /* ServerBuilderGenerator.kt:428 */
|
8226 13001 | pub(crate) fn set_integer_enum_list(
|
8227 13002 | mut self,
|
8228 13003 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
8229 13004 | ) -> Self {
|
13005 + | /* ServerBuilderGenerator.kt:429 */
|
8230 13006 | self.integer_enum_list = input.map(|v| v.into());
|
8231 13007 | self
|
13008 + | /* ServerBuilderGenerator.kt:428 */
|
8232 13009 | }
|
13010 + | /* ServerBuilderGenerator.kt:331 */
|
8233 13011 | #[allow(missing_docs)] // documentation missing in model
|
13012 + | /* ServerBuilderGenerator.kt:343 */
|
8234 13013 | pub fn integer_enum_set(
|
8235 13014 | mut self,
|
8236 13015 | input: ::std::option::Option<crate::model::IntegerEnumSet>,
|
8237 13016 | ) -> Self {
|
8238 - | self.integer_enum_set = input.map(
|
8239 - | #[allow(clippy::redundant_closure)]
|
8240 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
8241 - | );
|
13017 + | /* ServerBuilderGenerator.kt:344 */
|
13018 + | self.integer_enum_set =
|
13019 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13020 + | /* ServerBuilderGenerator.kt:344 */;
|
8242 13021 | self
|
13022 + | /* ServerBuilderGenerator.kt:343 */
|
8243 13023 | }
|
13024 + | /* ServerBuilderGenerator.kt:426 */
|
8244 13025 | #[allow(missing_docs)] // documentation missing in model
|
13026 + | /* ServerBuilderGenerator.kt:428 */
|
8245 13027 | pub(crate) fn set_integer_enum_set(
|
8246 13028 | mut self,
|
8247 13029 | input: Option<
|
8248 13030 | impl ::std::convert::Into<
|
8249 13031 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
8250 13032 | >,
|
8251 13033 | >,
|
8252 13034 | ) -> Self {
|
13035 + | /* ServerBuilderGenerator.kt:429 */
|
8253 13036 | self.integer_enum_set = input.map(|v| v.into());
|
8254 13037 | self
|
13038 + | /* ServerBuilderGenerator.kt:428 */
|
8255 13039 | }
|
13040 + | /* ServerBuilderGenerator.kt:331 */
|
8256 13041 | #[allow(missing_docs)] // documentation missing in model
|
13042 + | /* ServerBuilderGenerator.kt:343 */
|
8257 13043 | pub fn integer_enum_map(
|
8258 13044 | mut self,
|
8259 13045 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
8260 13046 | ) -> Self {
|
8261 - | self.integer_enum_map = input;
|
13047 + | /* ServerBuilderGenerator.kt:344 */
|
13048 + | self.integer_enum_map =
|
13049 + | /* ServerBuilderGenerator.kt:376 */input
|
13050 + | /* ServerBuilderGenerator.kt:344 */;
|
8262 13051 | self
|
13052 + | /* ServerBuilderGenerator.kt:343 */
|
8263 13053 | }
|
13054 + | /* ServerBuilderGenerator.kt:426 */
|
8264 13055 | #[allow(missing_docs)] // documentation missing in model
|
13056 + | /* ServerBuilderGenerator.kt:428 */
|
8265 13057 | pub(crate) fn set_integer_enum_map(
|
8266 13058 | mut self,
|
8267 13059 | input: Option<
|
8268 13060 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
8269 13061 | >,
|
8270 13062 | ) -> Self {
|
13063 + | /* ServerBuilderGenerator.kt:429 */
|
8271 13064 | self.integer_enum_map = input.map(|v| v.into());
|
8272 13065 | self
|
13066 + | /* ServerBuilderGenerator.kt:428 */
|
8273 13067 | }
|
8274 - | /// Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
8275 - | ///
|
13068 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
13069 + | /// /* ServerBuilderGenerator.kt:260 */
|
8276 13070 | /// The builder fails to construct a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput) if a [`ConstraintViolation`] occurs.
|
8277 13071 | ///
|
13072 + | /* ServerBuilderGenerator.kt:271 */
|
8278 13073 | pub fn build(self) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
8279 13074 | self.build_enforcing_all_constraints()
|
8280 13075 | }
|
13076 + | /* ServerBuilderGenerator.kt:283 */
|
8281 13077 | fn build_enforcing_all_constraints(
|
8282 13078 | self,
|
8283 13079 | ) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
8284 - | Ok(crate::input::JsonIntEnumsInput {
|
13080 + | /* ServerBuilderGenerator.kt:287 */
|
13081 + | Ok(
|
13082 + | /* ServerBuilderGenerator.kt:542 */
|
13083 + | crate::input::JsonIntEnumsInput {
|
13084 + | /* ServerBuilderGenerator.kt:546 */
|
8285 13085 | integer_enum1: self.integer_enum1,
|
13086 + | /* ServerBuilderGenerator.kt:546 */
|
8286 13087 | integer_enum2: self.integer_enum2,
|
13088 + | /* ServerBuilderGenerator.kt:546 */
|
8287 13089 | integer_enum3: self.integer_enum3,
|
13090 + | /* ServerBuilderGenerator.kt:546 */
|
8288 13091 | integer_enum_list: self.integer_enum_list,
|
13092 + | /* ServerBuilderGenerator.kt:546 */
|
8289 13093 | integer_enum_set: self
|
8290 13094 | .integer_enum_set
|
13095 + | /* ServerBuilderGenerator.kt:602 */
|
8291 13096 | .map(|v| match v {
|
8292 13097 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8293 13098 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8294 13099 | })
|
13100 + | /* ServerBuilderGenerator.kt:614 */
|
8295 13101 | .map(|res| res.map_err(ConstraintViolation::IntegerEnumSet))
|
8296 13102 | .transpose()?,
|
13103 + | /* ServerBuilderGenerator.kt:546 */
|
8297 13104 | integer_enum_map: self.integer_enum_map,
|
8298 - | })
|
13105 + | /* ServerBuilderGenerator.kt:542 */
|
13106 + | }, /* ServerBuilderGenerator.kt:287 */
|
13107 + | )
|
13108 + | /* ServerBuilderGenerator.kt:283 */
|
8299 13109 | }
|
13110 + | /* ServerBuilderGenerator.kt:215 */
|
8300 13111 | }
|
13112 + |
|
13113 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8301 13114 | }
|
8302 - | /// See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13115 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
8303 13116 | pub mod json_enums_input {
|
8304 13117 |
|
13118 + | /* RustType.kt:516 */
|
8305 13119 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8306 - | /// Holds one variant for each of the ways the builder can fail.
|
13120 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13121 + | /* RustType.kt:516 */
|
8307 13122 | #[non_exhaustive]
|
13123 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8308 13124 | #[allow(clippy::enum_variant_names)]
|
8309 13125 | pub enum ConstraintViolation {
|
8310 - | /// Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
13126 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
13127 + | /* RustType.kt:516 */
|
8311 13128 | #[doc(hidden)]
|
13129 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8312 13130 | FooEnum1(crate::model::foo_enum::ConstraintViolation),
|
8313 - | /// Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
13131 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
13132 + | /* RustType.kt:516 */
|
8314 13133 | #[doc(hidden)]
|
13134 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8315 13135 | FooEnum2(crate::model::foo_enum::ConstraintViolation),
|
8316 - | /// Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
13136 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
13137 + | /* RustType.kt:516 */
|
8317 13138 | #[doc(hidden)]
|
13139 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8318 13140 | FooEnum3(crate::model::foo_enum::ConstraintViolation),
|
8319 - | /// Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
13141 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
13142 + | /* RustType.kt:516 */
|
8320 13143 | #[doc(hidden)]
|
13144 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8321 13145 | FooEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
8322 - | /// Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
13146 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
13147 + | /* RustType.kt:516 */
|
8323 13148 | #[doc(hidden)]
|
13149 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8324 13150 | FooEnumSet(crate::model::foo_enum_set::ConstraintViolation),
|
8325 - | /// Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
13151 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
13152 + | /* RustType.kt:516 */
|
8326 13153 | #[doc(hidden)]
|
13154 + | /* ServerBuilderConstraintViolations.kt:164 */
|
8327 13155 | FooEnumMap(crate::model::foo_enum_map::ConstraintViolation),
|
13156 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8328 13157 | }
|
13158 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8329 13159 | impl ::std::fmt::Display for ConstraintViolation {
|
13160 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8330 13161 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13162 + | /* ServerBuilderConstraintViolations.kt:119 */
|
8331 13163 | match self {
|
8332 - | ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
8333 - | ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
8334 - | ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
8335 - | ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
8336 - | ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
8337 - | ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
8338 - | }
|
8339 - | }
|
8340 - | }
|
13164 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
13165 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
13166 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
13167 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
13168 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
13169 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
13170 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
13171 + | /* ServerBuilderConstraintViolations.kt:118 */
|
13172 + | }
|
13173 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13174 + | }
|
13175 + | /* ServerBuilderConstraintViolations.kt:84 */
|
8341 13176 | impl ::std::error::Error for ConstraintViolation {}
|
13177 + | /* ServerBuilderConstraintViolations.kt:171 */
|
8342 13178 | impl ConstraintViolation {
|
8343 13179 | pub(crate) fn as_validation_exception_field(
|
8344 13180 | self,
|
8345 13181 | path: ::std::string::String,
|
8346 13182 | ) -> crate::model::ValidationExceptionField {
|
8347 13183 | match self {
|
8348 13184 | ConstraintViolation::FooEnum1(inner) => {
|
8349 13185 | inner.as_validation_exception_field(path + "/fooEnum1")
|
8350 13186 | }
|
8351 13187 | ConstraintViolation::FooEnum2(inner) => {
|
8352 13188 | inner.as_validation_exception_field(path + "/fooEnum2")
|
8353 13189 | }
|
8354 13190 | ConstraintViolation::FooEnum3(inner) => {
|
8355 13191 | inner.as_validation_exception_field(path + "/fooEnum3")
|
8356 13192 | }
|
8357 13193 | ConstraintViolation::FooEnumList(inner) => {
|
8358 13194 | inner.as_validation_exception_field(path + "/fooEnumList")
|
8359 13195 | }
|
8360 13196 | ConstraintViolation::FooEnumSet(inner) => {
|
8361 13197 | inner.as_validation_exception_field(path + "/fooEnumSet")
|
8362 13198 | }
|
8363 13199 | ConstraintViolation::FooEnumMap(inner) => {
|
8364 13200 | inner.as_validation_exception_field(path + "/fooEnumMap")
|
8365 13201 | }
|
8366 13202 | }
|
8367 13203 | }
|
8368 13204 | }
|
13205 + | /* ServerBuilderGenerator.kt:234 */
|
8369 13206 | impl ::std::convert::From<ConstraintViolation>
|
8370 13207 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
8371 13208 | {
|
8372 13209 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
8373 13210 | let first_validation_exception_field =
|
8374 13211 | constraint_violation.as_validation_exception_field("".to_owned());
|
8375 13212 | let validation_exception = crate::error::ValidationException {
|
8376 13213 | message: format!(
|
8377 13214 | "1 validation error detected. {}",
|
8378 13215 | &first_validation_exception_field.message
|
8379 13216 | ),
|
8380 13217 | field_list: Some(vec![first_validation_exception_field]),
|
8381 13218 | };
|
8382 13219 | Self::ConstraintViolation(
|
8383 13220 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
8384 13221 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
8385 13222 | )
|
8386 13223 | }
|
8387 13224 | }
|
13225 + | /* ServerBuilderGenerator.kt:244 */
|
8388 13226 | impl ::std::convert::From<Builder>
|
8389 13227 | for crate::constrained::MaybeConstrained<crate::input::JsonEnumsInput>
|
8390 13228 | {
|
8391 13229 | fn from(builder: Builder) -> Self {
|
8392 13230 | Self::Unconstrained(builder)
|
8393 13231 | }
|
8394 13232 | }
|
13233 + | /* ServerBuilderGenerator.kt:446 */
|
8395 13234 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonEnumsInput {
|
8396 13235 | type Error = ConstraintViolation;
|
8397 13236 |
|
8398 13237 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8399 13238 | builder.build()
|
8400 13239 | }
|
8401 13240 | }
|
8402 - | /// A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13241 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13242 + | /* RustType.kt:516 */
|
8403 13243 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13244 + | /* ServerBuilderGenerator.kt:211 */
|
8404 13245 | pub struct Builder {
|
13246 + | /* ServerBuilderGenerator.kt:308 */
|
8405 13247 | pub(crate) foo_enum1:
|
8406 13248 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13249 + | /* ServerBuilderGenerator.kt:308 */
|
8407 13250 | pub(crate) foo_enum2:
|
8408 13251 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13252 + | /* ServerBuilderGenerator.kt:308 */
|
8409 13253 | pub(crate) foo_enum3:
|
8410 13254 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13255 + | /* ServerBuilderGenerator.kt:308 */
|
8411 13256 | pub(crate) foo_enum_list: ::std::option::Option<
|
8412 13257 | crate::constrained::MaybeConstrained<
|
8413 13258 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
8414 13259 | >,
|
8415 13260 | >,
|
13261 + | /* ServerBuilderGenerator.kt:308 */
|
8416 13262 | pub(crate) foo_enum_set:
|
8417 13263 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnumSet>>,
|
13264 + | /* ServerBuilderGenerator.kt:308 */
|
8418 13265 | pub(crate) foo_enum_map: ::std::option::Option<
|
8419 13266 | crate::constrained::MaybeConstrained<
|
8420 13267 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
8421 13268 | >,
|
8422 13269 | >,
|
13270 + | /* ServerBuilderGenerator.kt:211 */
|
8423 13271 | }
|
13272 + | /* ServerBuilderGenerator.kt:215 */
|
8424 13273 | impl Builder {
|
13274 + | /* ServerBuilderGenerator.kt:331 */
|
8425 13275 | #[allow(missing_docs)] // documentation missing in model
|
13276 + | /* ServerBuilderGenerator.kt:343 */
|
8426 13277 | pub fn foo_enum1(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8427 - | self.foo_enum1 = input.map(
|
8428 - | #[allow(clippy::redundant_closure)]
|
8429 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
8430 - | );
|
13278 + | /* ServerBuilderGenerator.kt:344 */
|
13279 + | self.foo_enum1 =
|
13280 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13281 + | /* ServerBuilderGenerator.kt:344 */;
|
8431 13282 | self
|
13283 + | /* ServerBuilderGenerator.kt:343 */
|
8432 13284 | }
|
13285 + | /* ServerBuilderGenerator.kt:426 */
|
8433 13286 | #[allow(missing_docs)] // documentation missing in model
|
13287 + | /* ServerBuilderGenerator.kt:428 */
|
8434 13288 | pub(crate) fn set_foo_enum1(
|
8435 13289 | mut self,
|
8436 13290 | input: Option<
|
8437 13291 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8438 13292 | >,
|
8439 13293 | ) -> Self {
|
13294 + | /* ServerBuilderGenerator.kt:429 */
|
8440 13295 | self.foo_enum1 = input.map(|v| v.into());
|
8441 13296 | self
|
13297 + | /* ServerBuilderGenerator.kt:428 */
|
8442 13298 | }
|
13299 + | /* ServerBuilderGenerator.kt:331 */
|
8443 13300 | #[allow(missing_docs)] // documentation missing in model
|
13301 + | /* ServerBuilderGenerator.kt:343 */
|
8444 13302 | pub fn foo_enum2(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8445 - | self.foo_enum2 = input.map(
|
8446 - | #[allow(clippy::redundant_closure)]
|
8447 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
8448 - | );
|
13303 + | /* ServerBuilderGenerator.kt:344 */
|
13304 + | self.foo_enum2 =
|
13305 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13306 + | /* ServerBuilderGenerator.kt:344 */;
|
8449 13307 | self
|
13308 + | /* ServerBuilderGenerator.kt:343 */
|
8450 13309 | }
|
13310 + | /* ServerBuilderGenerator.kt:426 */
|
8451 13311 | #[allow(missing_docs)] // documentation missing in model
|
13312 + | /* ServerBuilderGenerator.kt:428 */
|
8452 13313 | pub(crate) fn set_foo_enum2(
|
8453 13314 | mut self,
|
8454 13315 | input: Option<
|
8455 13316 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8456 13317 | >,
|
8457 13318 | ) -> Self {
|
13319 + | /* ServerBuilderGenerator.kt:429 */
|
8458 13320 | self.foo_enum2 = input.map(|v| v.into());
|
8459 13321 | self
|
13322 + | /* ServerBuilderGenerator.kt:428 */
|
8460 13323 | }
|
13324 + | /* ServerBuilderGenerator.kt:331 */
|
8461 13325 | #[allow(missing_docs)] // documentation missing in model
|
13326 + | /* ServerBuilderGenerator.kt:343 */
|
8462 13327 | pub fn foo_enum3(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8463 - | self.foo_enum3 = input.map(
|
8464 - | #[allow(clippy::redundant_closure)]
|
8465 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
8466 - | );
|
13328 + | /* ServerBuilderGenerator.kt:344 */
|
13329 + | self.foo_enum3 =
|
13330 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13331 + | /* ServerBuilderGenerator.kt:344 */;
|
8467 13332 | self
|
13333 + | /* ServerBuilderGenerator.kt:343 */
|
8468 13334 | }
|
13335 + | /* ServerBuilderGenerator.kt:426 */
|
8469 13336 | #[allow(missing_docs)] // documentation missing in model
|
13337 + | /* ServerBuilderGenerator.kt:428 */
|
8470 13338 | pub(crate) fn set_foo_enum3(
|
8471 13339 | mut self,
|
8472 13340 | input: Option<
|
8473 13341 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8474 13342 | >,
|
8475 13343 | ) -> Self {
|
13344 + | /* ServerBuilderGenerator.kt:429 */
|
8476 13345 | self.foo_enum3 = input.map(|v| v.into());
|
8477 13346 | self
|
13347 + | /* ServerBuilderGenerator.kt:428 */
|
8478 13348 | }
|
13349 + | /* ServerBuilderGenerator.kt:331 */
|
8479 13350 | #[allow(missing_docs)] // documentation missing in model
|
13351 + | /* ServerBuilderGenerator.kt:343 */
|
8480 13352 | pub fn foo_enum_list(
|
8481 13353 | mut self,
|
8482 13354 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
8483 13355 | ) -> Self {
|
8484 - | self.foo_enum_list = input.map(
|
8485 - | #[allow(clippy::redundant_closure)]
|
8486 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
8487 - | );
|
13356 + | /* ServerBuilderGenerator.kt:344 */
|
13357 + | self.foo_enum_list =
|
13358 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
13359 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
13360 + | /* ServerBuilderGenerator.kt:369 */)
|
13361 + | /* ServerBuilderGenerator.kt:344 */;
|
8488 13362 | self
|
13363 + | /* ServerBuilderGenerator.kt:343 */
|
8489 13364 | }
|
13365 + | /* ServerBuilderGenerator.kt:426 */
|
8490 13366 | #[allow(missing_docs)] // documentation missing in model
|
13367 + | /* ServerBuilderGenerator.kt:428 */
|
8491 13368 | pub(crate) fn set_foo_enum_list(
|
8492 13369 | mut self,
|
8493 13370 | input: Option<
|
8494 13371 | impl ::std::convert::Into<
|
8495 13372 | crate::constrained::MaybeConstrained<
|
8496 13373 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
8497 13374 | >,
|
8498 13375 | >,
|
8499 13376 | >,
|
8500 13377 | ) -> Self {
|
13378 + | /* ServerBuilderGenerator.kt:429 */
|
8501 13379 | self.foo_enum_list = input.map(|v| v.into());
|
8502 13380 | self
|
13381 + | /* ServerBuilderGenerator.kt:428 */
|
8503 13382 | }
|
13383 + | /* ServerBuilderGenerator.kt:331 */
|
8504 13384 | #[allow(missing_docs)] // documentation missing in model
|
13385 + | /* ServerBuilderGenerator.kt:343 */
|
8505 13386 | pub fn foo_enum_set(
|
8506 13387 | mut self,
|
8507 13388 | input: ::std::option::Option<crate::model::FooEnumSet>,
|
8508 13389 | ) -> Self {
|
8509 - | self.foo_enum_set = input.map(
|
8510 - | #[allow(clippy::redundant_closure)]
|
8511 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
8512 - | );
|
13390 + | /* ServerBuilderGenerator.kt:344 */
|
13391 + | self.foo_enum_set =
|
13392 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13393 + | /* ServerBuilderGenerator.kt:344 */;
|
8513 13394 | self
|
13395 + | /* ServerBuilderGenerator.kt:343 */
|
8514 13396 | }
|
13397 + | /* ServerBuilderGenerator.kt:426 */
|
8515 13398 | #[allow(missing_docs)] // documentation missing in model
|
13399 + | /* ServerBuilderGenerator.kt:428 */
|
8516 13400 | pub(crate) fn set_foo_enum_set(
|
8517 13401 | mut self,
|
8518 13402 | input: Option<
|
8519 13403 | impl ::std::convert::Into<
|
8520 13404 | crate::constrained::MaybeConstrained<crate::model::FooEnumSet>,
|
8521 13405 | >,
|
8522 13406 | >,
|
8523 13407 | ) -> Self {
|
13408 + | /* ServerBuilderGenerator.kt:429 */
|
8524 13409 | self.foo_enum_set = input.map(|v| v.into());
|
8525 13410 | self
|
13411 + | /* ServerBuilderGenerator.kt:428 */
|
8526 13412 | }
|
13413 + | /* ServerBuilderGenerator.kt:331 */
|
8527 13414 | #[allow(missing_docs)] // documentation missing in model
|
13415 + | /* ServerBuilderGenerator.kt:343 */
|
8528 13416 | pub fn foo_enum_map(
|
8529 13417 | mut self,
|
8530 13418 | input: ::std::option::Option<
|
8531 13419 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
8532 13420 | >,
|
8533 13421 | ) -> Self {
|
8534 - | self.foo_enum_map = input.map(
|
8535 - | #[allow(clippy::redundant_closure)]
|
8536 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
8537 - | );
|
13422 + | /* ServerBuilderGenerator.kt:344 */
|
13423 + | self.foo_enum_map =
|
13424 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
13425 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
13426 + | /* ServerBuilderGenerator.kt:369 */)
|
13427 + | /* ServerBuilderGenerator.kt:344 */;
|
8538 13428 | self
|
13429 + | /* ServerBuilderGenerator.kt:343 */
|
8539 13430 | }
|
13431 + | /* ServerBuilderGenerator.kt:426 */
|
8540 13432 | #[allow(missing_docs)] // documentation missing in model
|
13433 + | /* ServerBuilderGenerator.kt:428 */
|
8541 13434 | pub(crate) fn set_foo_enum_map(
|
8542 13435 | mut self,
|
8543 13436 | input: Option<
|
8544 13437 | impl ::std::convert::Into<
|
8545 13438 | crate::constrained::MaybeConstrained<
|
8546 13439 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
8547 13440 | >,
|
8548 13441 | >,
|
8549 13442 | >,
|
8550 13443 | ) -> Self {
|
13444 + | /* ServerBuilderGenerator.kt:429 */
|
8551 13445 | self.foo_enum_map = input.map(|v| v.into());
|
8552 13446 | self
|
13447 + | /* ServerBuilderGenerator.kt:428 */
|
8553 13448 | }
|
8554 - | /// Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
8555 - | ///
|
13449 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13450 + | /// /* ServerBuilderGenerator.kt:260 */
|
8556 13451 | /// The builder fails to construct a [`JsonEnumsInput`](crate::input::JsonEnumsInput) if a [`ConstraintViolation`] occurs.
|
8557 13452 | ///
|
8558 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
13453 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
13454 + | /* ServerBuilderGenerator.kt:271 */
|
8559 13455 | pub fn build(self) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
8560 13456 | self.build_enforcing_all_constraints()
|
8561 13457 | }
|
13458 + | /* ServerBuilderGenerator.kt:283 */
|
8562 13459 | fn build_enforcing_all_constraints(
|
8563 13460 | self,
|
8564 13461 | ) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
8565 - | Ok(crate::input::JsonEnumsInput {
|
13462 + | /* ServerBuilderGenerator.kt:287 */
|
13463 + | Ok(
|
13464 + | /* ServerBuilderGenerator.kt:542 */
|
13465 + | crate::input::JsonEnumsInput {
|
13466 + | /* ServerBuilderGenerator.kt:546 */
|
8566 13467 | foo_enum1: self
|
8567 13468 | .foo_enum1
|
13469 + | /* ServerBuilderGenerator.kt:602 */
|
8568 13470 | .map(|v| match v {
|
8569 13471 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8570 13472 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8571 13473 | })
|
13474 + | /* ServerBuilderGenerator.kt:614 */
|
8572 13475 | .map(|res| res.map_err(ConstraintViolation::FooEnum1))
|
8573 13476 | .transpose()?,
|
13477 + | /* ServerBuilderGenerator.kt:546 */
|
8574 13478 | foo_enum2: self
|
8575 13479 | .foo_enum2
|
13480 + | /* ServerBuilderGenerator.kt:602 */
|
8576 13481 | .map(|v| match v {
|
8577 13482 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8578 13483 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8579 13484 | })
|
13485 + | /* ServerBuilderGenerator.kt:614 */
|
8580 13486 | .map(|res| res.map_err(ConstraintViolation::FooEnum2))
|
8581 13487 | .transpose()?,
|
13488 + | /* ServerBuilderGenerator.kt:546 */
|
8582 13489 | foo_enum3: self
|
8583 13490 | .foo_enum3
|
13491 + | /* ServerBuilderGenerator.kt:602 */
|
8584 13492 | .map(|v| match v {
|
8585 13493 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8586 13494 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8587 13495 | })
|
13496 + | /* ServerBuilderGenerator.kt:614 */
|
8588 13497 | .map(|res| res.map_err(ConstraintViolation::FooEnum3))
|
8589 13498 | .transpose()?,
|
13499 + | /* ServerBuilderGenerator.kt:546 */
|
8590 13500 | foo_enum_list: self
|
8591 13501 | .foo_enum_list
|
13502 + | /* ServerBuilderGenerator.kt:602 */
|
8592 13503 | .map(|v| match v {
|
8593 13504 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8594 13505 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8595 13506 | })
|
13507 + | /* ServerBuilderGenerator.kt:614 */
|
8596 13508 | .map(|res| {
|
8597 13509 | res.map(|v| v.into())
|
8598 13510 | .map_err(ConstraintViolation::FooEnumList)
|
8599 13511 | })
|
8600 13512 | .transpose()?,
|
13513 + | /* ServerBuilderGenerator.kt:546 */
|
8601 13514 | foo_enum_set: self
|
8602 13515 | .foo_enum_set
|
13516 + | /* ServerBuilderGenerator.kt:602 */
|
8603 13517 | .map(|v| match v {
|
8604 13518 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8605 13519 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8606 13520 | })
|
13521 + | /* ServerBuilderGenerator.kt:614 */
|
8607 13522 | .map(|res| res.map_err(ConstraintViolation::FooEnumSet))
|
8608 13523 | .transpose()?,
|
13524 + | /* ServerBuilderGenerator.kt:546 */
|
8609 13525 | foo_enum_map: self
|
8610 13526 | .foo_enum_map
|
13527 + | /* ServerBuilderGenerator.kt:602 */
|
8611 13528 | .map(|v| match v {
|
8612 13529 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8613 13530 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8614 13531 | })
|
13532 + | /* ServerBuilderGenerator.kt:614 */
|
8615 13533 | .map(|res| {
|
8616 13534 | res.map(|v| v.into())
|
8617 13535 | .map_err(ConstraintViolation::FooEnumMap)
|
8618 13536 | })
|
8619 13537 | .transpose()?,
|
8620 - | })
|
13538 + | /* ServerBuilderGenerator.kt:542 */
|
13539 + | }, /* ServerBuilderGenerator.kt:287 */
|
13540 + | )
|
13541 + | /* ServerBuilderGenerator.kt:283 */
|
8621 13542 | }
|
13543 + | /* ServerBuilderGenerator.kt:215 */
|
8622 13544 | }
|
13545 + |
|
13546 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8623 13547 | }
|
8624 - | /// See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13548 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
8625 13549 | pub mod json_timestamps_input {
|
8626 13550 |
|
13551 + | /* ServerBuilderGenerator.kt:461 */
|
8627 13552 | impl ::std::convert::From<Builder> for crate::input::JsonTimestampsInput {
|
8628 13553 | fn from(builder: Builder) -> Self {
|
8629 13554 | builder.build()
|
8630 13555 | }
|
8631 13556 | }
|
8632 - | /// A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13557 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13558 + | /* RustType.kt:516 */
|
8633 13559 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13560 + | /* ServerBuilderGenerator.kt:211 */
|
8634 13561 | pub struct Builder {
|
13562 + | /* ServerBuilderGenerator.kt:308 */
|
8635 13563 | pub(crate) normal: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13564 + | /* ServerBuilderGenerator.kt:308 */
|
8636 13565 | pub(crate) date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13566 + | /* ServerBuilderGenerator.kt:308 */
|
8637 13567 | pub(crate) date_time_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13568 + | /* ServerBuilderGenerator.kt:308 */
|
8638 13569 | pub(crate) epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13570 + | /* ServerBuilderGenerator.kt:308 */
|
8639 13571 | pub(crate) epoch_seconds_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13572 + | /* ServerBuilderGenerator.kt:308 */
|
8640 13573 | pub(crate) http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13574 + | /* ServerBuilderGenerator.kt:308 */
|
8641 13575 | pub(crate) http_date_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13576 + | /* ServerBuilderGenerator.kt:211 */
|
8642 13577 | }
|
13578 + | /* ServerBuilderGenerator.kt:215 */
|
8643 13579 | impl Builder {
|
13580 + | /* ServerBuilderGenerator.kt:331 */
|
8644 13581 | #[allow(missing_docs)] // documentation missing in model
|
13582 + | /* ServerBuilderGenerator.kt:343 */
|
8645 13583 | pub fn normal(
|
8646 13584 | mut self,
|
8647 13585 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8648 13586 | ) -> Self {
|
8649 - | self.normal = input;
|
13587 + | /* ServerBuilderGenerator.kt:344 */
|
13588 + | self.normal =
|
13589 + | /* ServerBuilderGenerator.kt:376 */input
|
13590 + | /* ServerBuilderGenerator.kt:344 */;
|
8650 13591 | self
|
13592 + | /* ServerBuilderGenerator.kt:343 */
|
8651 13593 | }
|
13594 + | /* ServerBuilderGenerator.kt:426 */
|
8652 13595 | #[allow(missing_docs)] // documentation missing in model
|
13596 + | /* ServerBuilderGenerator.kt:428 */
|
8653 13597 | pub(crate) fn set_normal(
|
8654 13598 | mut self,
|
8655 13599 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8656 13600 | ) -> Self {
|
13601 + | /* ServerBuilderGenerator.kt:429 */
|
8657 13602 | self.normal = input.map(|v| v.into());
|
8658 13603 | self
|
13604 + | /* ServerBuilderGenerator.kt:428 */
|
8659 13605 | }
|
13606 + | /* ServerBuilderGenerator.kt:331 */
|
8660 13607 | #[allow(missing_docs)] // documentation missing in model
|
13608 + | /* ServerBuilderGenerator.kt:343 */
|
8661 13609 | pub fn date_time(
|
8662 13610 | mut self,
|
8663 13611 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8664 13612 | ) -> Self {
|
8665 - | self.date_time = input;
|
13613 + | /* ServerBuilderGenerator.kt:344 */
|
13614 + | self.date_time =
|
13615 + | /* ServerBuilderGenerator.kt:376 */input
|
13616 + | /* ServerBuilderGenerator.kt:344 */;
|
8666 13617 | self
|
13618 + | /* ServerBuilderGenerator.kt:343 */
|
8667 13619 | }
|
13620 + | /* ServerBuilderGenerator.kt:426 */
|
8668 13621 | #[allow(missing_docs)] // documentation missing in model
|
13622 + | /* ServerBuilderGenerator.kt:428 */
|
8669 13623 | pub(crate) fn set_date_time(
|
8670 13624 | mut self,
|
8671 13625 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8672 13626 | ) -> Self {
|
13627 + | /* ServerBuilderGenerator.kt:429 */
|
8673 13628 | self.date_time = input.map(|v| v.into());
|
8674 13629 | self
|
13630 + | /* ServerBuilderGenerator.kt:428 */
|
8675 13631 | }
|
13632 + | /* ServerBuilderGenerator.kt:331 */
|
8676 13633 | #[allow(missing_docs)] // documentation missing in model
|
13634 + | /* ServerBuilderGenerator.kt:343 */
|
8677 13635 | pub fn date_time_on_target(
|
8678 13636 | mut self,
|
8679 13637 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8680 13638 | ) -> Self {
|
8681 - | self.date_time_on_target = input;
|
13639 + | /* ServerBuilderGenerator.kt:344 */
|
13640 + | self.date_time_on_target =
|
13641 + | /* ServerBuilderGenerator.kt:376 */input
|
13642 + | /* ServerBuilderGenerator.kt:344 */;
|
8682 13643 | self
|
13644 + | /* ServerBuilderGenerator.kt:343 */
|
8683 13645 | }
|
13646 + | /* ServerBuilderGenerator.kt:426 */
|
8684 13647 | #[allow(missing_docs)] // documentation missing in model
|
13648 + | /* ServerBuilderGenerator.kt:428 */
|
8685 13649 | pub(crate) fn set_date_time_on_target(
|
8686 13650 | mut self,
|
8687 13651 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8688 13652 | ) -> Self {
|
13653 + | /* ServerBuilderGenerator.kt:429 */
|
8689 13654 | self.date_time_on_target = input.map(|v| v.into());
|
8690 13655 | self
|
13656 + | /* ServerBuilderGenerator.kt:428 */
|
8691 13657 | }
|
13658 + | /* ServerBuilderGenerator.kt:331 */
|
8692 13659 | #[allow(missing_docs)] // documentation missing in model
|
13660 + | /* ServerBuilderGenerator.kt:343 */
|
8693 13661 | pub fn epoch_seconds(
|
8694 13662 | mut self,
|
8695 13663 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8696 13664 | ) -> Self {
|
8697 - | self.epoch_seconds = input;
|
13665 + | /* ServerBuilderGenerator.kt:344 */
|
13666 + | self.epoch_seconds =
|
13667 + | /* ServerBuilderGenerator.kt:376 */input
|
13668 + | /* ServerBuilderGenerator.kt:344 */;
|
8698 13669 | self
|
13670 + | /* ServerBuilderGenerator.kt:343 */
|
8699 13671 | }
|
13672 + | /* ServerBuilderGenerator.kt:426 */
|
8700 13673 | #[allow(missing_docs)] // documentation missing in model
|
13674 + | /* ServerBuilderGenerator.kt:428 */
|
8701 13675 | pub(crate) fn set_epoch_seconds(
|
8702 13676 | mut self,
|
8703 13677 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8704 13678 | ) -> Self {
|
13679 + | /* ServerBuilderGenerator.kt:429 */
|
8705 13680 | self.epoch_seconds = input.map(|v| v.into());
|
8706 13681 | self
|
13682 + | /* ServerBuilderGenerator.kt:428 */
|
8707 13683 | }
|
13684 + | /* ServerBuilderGenerator.kt:331 */
|
8708 13685 | #[allow(missing_docs)] // documentation missing in model
|
13686 + | /* ServerBuilderGenerator.kt:343 */
|
8709 13687 | pub fn epoch_seconds_on_target(
|
8710 13688 | mut self,
|
8711 13689 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8712 13690 | ) -> Self {
|
8713 - | self.epoch_seconds_on_target = input;
|
13691 + | /* ServerBuilderGenerator.kt:344 */
|
13692 + | self.epoch_seconds_on_target =
|
13693 + | /* ServerBuilderGenerator.kt:376 */input
|
13694 + | /* ServerBuilderGenerator.kt:344 */;
|
8714 13695 | self
|
13696 + | /* ServerBuilderGenerator.kt:343 */
|
8715 13697 | }
|
13698 + | /* ServerBuilderGenerator.kt:426 */
|
8716 13699 | #[allow(missing_docs)] // documentation missing in model
|
13700 + | /* ServerBuilderGenerator.kt:428 */
|
8717 13701 | pub(crate) fn set_epoch_seconds_on_target(
|
8718 13702 | mut self,
|
8719 13703 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8720 13704 | ) -> Self {
|
13705 + | /* ServerBuilderGenerator.kt:429 */
|
8721 13706 | self.epoch_seconds_on_target = input.map(|v| v.into());
|
8722 13707 | self
|
13708 + | /* ServerBuilderGenerator.kt:428 */
|
8723 13709 | }
|
13710 + | /* ServerBuilderGenerator.kt:331 */
|
8724 13711 | #[allow(missing_docs)] // documentation missing in model
|
13712 + | /* ServerBuilderGenerator.kt:343 */
|
8725 13713 | pub fn http_date(
|
8726 13714 | mut self,
|
8727 13715 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8728 13716 | ) -> Self {
|
8729 - | self.http_date = input;
|
13717 + | /* ServerBuilderGenerator.kt:344 */
|
13718 + | self.http_date =
|
13719 + | /* ServerBuilderGenerator.kt:376 */input
|
13720 + | /* ServerBuilderGenerator.kt:344 */;
|
8730 13721 | self
|
13722 + | /* ServerBuilderGenerator.kt:343 */
|
8731 13723 | }
|
13724 + | /* ServerBuilderGenerator.kt:426 */
|
8732 13725 | #[allow(missing_docs)] // documentation missing in model
|
13726 + | /* ServerBuilderGenerator.kt:428 */
|
8733 13727 | pub(crate) fn set_http_date(
|
8734 13728 | mut self,
|
8735 13729 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8736 13730 | ) -> Self {
|
13731 + | /* ServerBuilderGenerator.kt:429 */
|
8737 13732 | self.http_date = input.map(|v| v.into());
|
8738 13733 | self
|
13734 + | /* ServerBuilderGenerator.kt:428 */
|
8739 13735 | }
|
13736 + | /* ServerBuilderGenerator.kt:331 */
|
8740 13737 | #[allow(missing_docs)] // documentation missing in model
|
13738 + | /* ServerBuilderGenerator.kt:343 */
|
8741 13739 | pub fn http_date_on_target(
|
8742 13740 | mut self,
|
8743 13741 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8744 13742 | ) -> Self {
|
8745 - | self.http_date_on_target = input;
|
13743 + | /* ServerBuilderGenerator.kt:344 */
|
13744 + | self.http_date_on_target =
|
13745 + | /* ServerBuilderGenerator.kt:376 */input
|
13746 + | /* ServerBuilderGenerator.kt:344 */;
|
8746 13747 | self
|
13748 + | /* ServerBuilderGenerator.kt:343 */
|
8747 13749 | }
|
13750 + | /* ServerBuilderGenerator.kt:426 */
|
8748 13751 | #[allow(missing_docs)] // documentation missing in model
|
13752 + | /* ServerBuilderGenerator.kt:428 */
|
8749 13753 | pub(crate) fn set_http_date_on_target(
|
8750 13754 | mut self,
|
8751 13755 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8752 13756 | ) -> Self {
|
13757 + | /* ServerBuilderGenerator.kt:429 */
|
8753 13758 | self.http_date_on_target = input.map(|v| v.into());
|
8754 13759 | self
|
13760 + | /* ServerBuilderGenerator.kt:428 */
|
8755 13761 | }
|
8756 - | /// Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13762 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13763 + | /* ServerBuilderGenerator.kt:271 */
|
8757 13764 | pub fn build(self) -> crate::input::JsonTimestampsInput {
|
8758 13765 | self.build_enforcing_all_constraints()
|
8759 13766 | }
|
13767 + | /* ServerBuilderGenerator.kt:283 */
|
8760 13768 | fn build_enforcing_all_constraints(self) -> crate::input::JsonTimestampsInput {
|
13769 + | /* ServerBuilderGenerator.kt:542 */
|
8761 13770 | crate::input::JsonTimestampsInput {
|
13771 + | /* ServerBuilderGenerator.kt:546 */
|
8762 13772 | normal: self.normal,
|
13773 + | /* ServerBuilderGenerator.kt:546 */
|
8763 13774 | date_time: self.date_time,
|
13775 + | /* ServerBuilderGenerator.kt:546 */
|
8764 13776 | date_time_on_target: self.date_time_on_target,
|
13777 + | /* ServerBuilderGenerator.kt:546 */
|
8765 13778 | epoch_seconds: self.epoch_seconds,
|
13779 + | /* ServerBuilderGenerator.kt:546 */
|
8766 13780 | epoch_seconds_on_target: self.epoch_seconds_on_target,
|
13781 + | /* ServerBuilderGenerator.kt:546 */
|
8767 13782 | http_date: self.http_date,
|
13783 + | /* ServerBuilderGenerator.kt:546 */
|
8768 13784 | http_date_on_target: self.http_date_on_target,
|
13785 + | /* ServerBuilderGenerator.kt:542 */
|
8769 13786 | }
|
13787 + | /* ServerBuilderGenerator.kt:283 */
|
8770 13788 | }
|
13789 + | /* ServerBuilderGenerator.kt:215 */
|
8771 13790 | }
|
13791 + |
|
13792 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8772 13793 | }
|
8773 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
13794 + | /// /* ServerBuilderGenerator.kt:171 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
8774 13795 | pub mod simple_scalar_properties_input {
|
8775 13796 |
|
13797 + | /* ServerBuilderGenerator.kt:461 */
|
8776 13798 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
8777 13799 | fn from(builder: Builder) -> Self {
|
8778 13800 | builder.build()
|
8779 13801 | }
|
8780 13802 | }
|
8781 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
13803 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
13804 + | /* RustType.kt:516 */
|
8782 13805 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13806 + | /* ServerBuilderGenerator.kt:211 */
|
8783 13807 | pub struct Builder {
|
13808 + | /* ServerBuilderGenerator.kt:308 */
|
8784 13809 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
13810 + | /* ServerBuilderGenerator.kt:308 */
|
8785 13811 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
13812 + | /* ServerBuilderGenerator.kt:308 */
|
8786 13813 | pub(crate) true_boolean_value: ::std::option::Option<bool>,
|
13814 + | /* ServerBuilderGenerator.kt:308 */
|
8787 13815 | pub(crate) false_boolean_value: ::std::option::Option<bool>,
|
8788 - | pub(crate) byte_value: ::std::option::Option<i8>,
|
13816 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) byte_value: ::std::option::Option<i8>,
|
13817 + | /* ServerBuilderGenerator.kt:308 */
|
8789 13818 | pub(crate) short_value: ::std::option::Option<i16>,
|
13819 + | /* ServerBuilderGenerator.kt:308 */
|
8790 13820 | pub(crate) integer_value: ::std::option::Option<i32>,
|
13821 + | /* ServerBuilderGenerator.kt:308 */
|
8791 13822 | pub(crate) long_value: ::std::option::Option<i64>,
|
13823 + | /* ServerBuilderGenerator.kt:308 */
|
8792 13824 | pub(crate) float_value: ::std::option::Option<f32>,
|
13825 + | /* ServerBuilderGenerator.kt:308 */
|
8793 13826 | pub(crate) double_value: ::std::option::Option<f64>,
|
13827 + | /* ServerBuilderGenerator.kt:211 */
|
8794 13828 | }
|
13829 + | /* ServerBuilderGenerator.kt:215 */
|
8795 13830 | impl Builder {
|
13831 + | /* ServerBuilderGenerator.kt:331 */
|
8796 13832 | #[allow(missing_docs)] // documentation missing in model
|
13833 + | /* ServerBuilderGenerator.kt:343 */
|
8797 13834 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8798 - | self.foo = input;
|
13835 + | /* ServerBuilderGenerator.kt:344 */
|
13836 + | self.foo =
|
13837 + | /* ServerBuilderGenerator.kt:376 */input
|
13838 + | /* ServerBuilderGenerator.kt:344 */;
|
8799 13839 | self
|
13840 + | /* ServerBuilderGenerator.kt:343 */
|
8800 13841 | }
|
13842 + | /* ServerBuilderGenerator.kt:426 */
|
8801 13843 | #[allow(missing_docs)] // documentation missing in model
|
13844 + | /* ServerBuilderGenerator.kt:428 */
|
8802 13845 | pub(crate) fn set_foo(
|
8803 13846 | mut self,
|
8804 13847 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8805 13848 | ) -> Self {
|
13849 + | /* ServerBuilderGenerator.kt:429 */
|
8806 13850 | self.foo = input.map(|v| v.into());
|
8807 13851 | self
|
13852 + | /* ServerBuilderGenerator.kt:428 */
|
8808 13853 | }
|
13854 + | /* ServerBuilderGenerator.kt:331 */
|
8809 13855 | #[allow(missing_docs)] // documentation missing in model
|
13856 + | /* ServerBuilderGenerator.kt:343 */
|
8810 13857 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8811 - | self.string_value = input;
|
13858 + | /* ServerBuilderGenerator.kt:344 */
|
13859 + | self.string_value =
|
13860 + | /* ServerBuilderGenerator.kt:376 */input
|
13861 + | /* ServerBuilderGenerator.kt:344 */;
|
8812 13862 | self
|
13863 + | /* ServerBuilderGenerator.kt:343 */
|
8813 13864 | }
|
13865 + | /* ServerBuilderGenerator.kt:426 */
|
8814 13866 | #[allow(missing_docs)] // documentation missing in model
|
13867 + | /* ServerBuilderGenerator.kt:428 */
|
8815 13868 | pub(crate) fn set_string_value(
|
8816 13869 | mut self,
|
8817 13870 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8818 13871 | ) -> Self {
|
13872 + | /* ServerBuilderGenerator.kt:429 */
|
8819 13873 | self.string_value = input.map(|v| v.into());
|
8820 13874 | self
|
13875 + | /* ServerBuilderGenerator.kt:428 */
|
8821 13876 | }
|
13877 + | /* ServerBuilderGenerator.kt:331 */
|
8822 13878 | #[allow(missing_docs)] // documentation missing in model
|
13879 + | /* ServerBuilderGenerator.kt:343 */
|
8823 13880 | pub fn true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
8824 - | self.true_boolean_value = input;
|
13881 + | /* ServerBuilderGenerator.kt:344 */
|
13882 + | self.true_boolean_value =
|
13883 + | /* ServerBuilderGenerator.kt:376 */input
|
13884 + | /* ServerBuilderGenerator.kt:344 */;
|
8825 13885 | self
|
13886 + | /* ServerBuilderGenerator.kt:343 */
|
8826 13887 | }
|
13888 + | /* ServerBuilderGenerator.kt:426 */
|
8827 13889 | #[allow(missing_docs)] // documentation missing in model
|
13890 + | /* ServerBuilderGenerator.kt:428 */
|
8828 13891 | pub(crate) fn set_true_boolean_value(
|
8829 13892 | mut self,
|
8830 13893 | input: Option<impl ::std::convert::Into<bool>>,
|
8831 13894 | ) -> Self {
|
13895 + | /* ServerBuilderGenerator.kt:429 */
|
8832 13896 | self.true_boolean_value = input.map(|v| v.into());
|
8833 13897 | self
|
13898 + | /* ServerBuilderGenerator.kt:428 */
|
8834 13899 | }
|
13900 + | /* ServerBuilderGenerator.kt:331 */
|
8835 13901 | #[allow(missing_docs)] // documentation missing in model
|
13902 + | /* ServerBuilderGenerator.kt:343 */
|
8836 13903 | pub fn false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
8837 - | self.false_boolean_value = input;
|
13904 + | /* ServerBuilderGenerator.kt:344 */
|
13905 + | self.false_boolean_value =
|
13906 + | /* ServerBuilderGenerator.kt:376 */input
|
13907 + | /* ServerBuilderGenerator.kt:344 */;
|
8838 13908 | self
|
13909 + | /* ServerBuilderGenerator.kt:343 */
|
8839 13910 | }
|
13911 + | /* ServerBuilderGenerator.kt:426 */
|
8840 13912 | #[allow(missing_docs)] // documentation missing in model
|
13913 + | /* ServerBuilderGenerator.kt:428 */
|
8841 13914 | pub(crate) fn set_false_boolean_value(
|
8842 13915 | mut self,
|
8843 13916 | input: Option<impl ::std::convert::Into<bool>>,
|
8844 13917 | ) -> Self {
|
13918 + | /* ServerBuilderGenerator.kt:429 */
|
8845 13919 | self.false_boolean_value = input.map(|v| v.into());
|
8846 13920 | self
|
13921 + | /* ServerBuilderGenerator.kt:428 */
|
8847 13922 | }
|
13923 + | /* ServerBuilderGenerator.kt:331 */
|
8848 13924 | #[allow(missing_docs)] // documentation missing in model
|
13925 + | /* ServerBuilderGenerator.kt:343 */
|
8849 13926 | pub fn byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
|
8850 - | self.byte_value = input;
|
13927 + | /* ServerBuilderGenerator.kt:344 */
|
13928 + | self.byte_value =
|
13929 + | /* ServerBuilderGenerator.kt:376 */input
|
13930 + | /* ServerBuilderGenerator.kt:344 */;
|
8851 13931 | self
|
13932 + | /* ServerBuilderGenerator.kt:343 */
|
8852 13933 | }
|
13934 + | /* ServerBuilderGenerator.kt:426 */
|
8853 13935 | #[allow(missing_docs)] // documentation missing in model
|
13936 + | /* ServerBuilderGenerator.kt:428 */
|
8854 13937 | pub(crate) fn set_byte_value(
|
8855 13938 | mut self,
|
8856 13939 | input: Option<impl ::std::convert::Into<i8>>,
|
8857 13940 | ) -> Self {
|
13941 + | /* ServerBuilderGenerator.kt:429 */
|
8858 13942 | self.byte_value = input.map(|v| v.into());
|
8859 13943 | self
|
13944 + | /* ServerBuilderGenerator.kt:428 */
|
8860 13945 | }
|
13946 + | /* ServerBuilderGenerator.kt:331 */
|
8861 13947 | #[allow(missing_docs)] // documentation missing in model
|
13948 + | /* ServerBuilderGenerator.kt:343 */
|
8862 13949 | pub fn short_value(mut self, input: ::std::option::Option<i16>) -> Self {
|
8863 - | self.short_value = input;
|
13950 + | /* ServerBuilderGenerator.kt:344 */
|
13951 + | self.short_value =
|
13952 + | /* ServerBuilderGenerator.kt:376 */input
|
13953 + | /* ServerBuilderGenerator.kt:344 */;
|
8864 13954 | self
|
13955 + | /* ServerBuilderGenerator.kt:343 */
|
8865 13956 | }
|
13957 + | /* ServerBuilderGenerator.kt:426 */
|
8866 13958 | #[allow(missing_docs)] // documentation missing in model
|
13959 + | /* ServerBuilderGenerator.kt:428 */
|
8867 13960 | pub(crate) fn set_short_value(
|
8868 13961 | mut self,
|
8869 13962 | input: Option<impl ::std::convert::Into<i16>>,
|
8870 13963 | ) -> Self {
|
13964 + | /* ServerBuilderGenerator.kt:429 */
|
8871 13965 | self.short_value = input.map(|v| v.into());
|
8872 13966 | self
|
13967 + | /* ServerBuilderGenerator.kt:428 */
|
8873 13968 | }
|
13969 + | /* ServerBuilderGenerator.kt:331 */
|
8874 13970 | #[allow(missing_docs)] // documentation missing in model
|
13971 + | /* ServerBuilderGenerator.kt:343 */
|
8875 13972 | pub fn integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
|
8876 - | self.integer_value = input;
|
13973 + | /* ServerBuilderGenerator.kt:344 */
|
13974 + | self.integer_value =
|
13975 + | /* ServerBuilderGenerator.kt:376 */input
|
13976 + | /* ServerBuilderGenerator.kt:344 */;
|
8877 13977 | self
|
13978 + | /* ServerBuilderGenerator.kt:343 */
|
8878 13979 | }
|
13980 + | /* ServerBuilderGenerator.kt:426 */
|
8879 13981 | #[allow(missing_docs)] // documentation missing in model
|
13982 + | /* ServerBuilderGenerator.kt:428 */
|
8880 13983 | pub(crate) fn set_integer_value(
|
8881 13984 | mut self,
|
8882 13985 | input: Option<impl ::std::convert::Into<i32>>,
|
8883 13986 | ) -> Self {
|
13987 + | /* ServerBuilderGenerator.kt:429 */
|
8884 13988 | self.integer_value = input.map(|v| v.into());
|
8885 13989 | self
|
13990 + | /* ServerBuilderGenerator.kt:428 */
|
8886 13991 | }
|
13992 + | /* ServerBuilderGenerator.kt:331 */
|
8887 13993 | #[allow(missing_docs)] // documentation missing in model
|
13994 + | /* ServerBuilderGenerator.kt:343 */
|
8888 13995 | pub fn long_value(mut self, input: ::std::option::Option<i64>) -> Self {
|
8889 - | self.long_value = input;
|
13996 + | /* ServerBuilderGenerator.kt:344 */
|
13997 + | self.long_value =
|
13998 + | /* ServerBuilderGenerator.kt:376 */input
|
13999 + | /* ServerBuilderGenerator.kt:344 */;
|
8890 14000 | self
|
14001 + | /* ServerBuilderGenerator.kt:343 */
|
8891 14002 | }
|
14003 + | /* ServerBuilderGenerator.kt:426 */
|
8892 14004 | #[allow(missing_docs)] // documentation missing in model
|
14005 + | /* ServerBuilderGenerator.kt:428 */
|
8893 14006 | pub(crate) fn set_long_value(
|
8894 14007 | mut self,
|
8895 14008 | input: Option<impl ::std::convert::Into<i64>>,
|
8896 14009 | ) -> Self {
|
14010 + | /* ServerBuilderGenerator.kt:429 */
|
8897 14011 | self.long_value = input.map(|v| v.into());
|
8898 14012 | self
|
14013 + | /* ServerBuilderGenerator.kt:428 */
|
8899 14014 | }
|
14015 + | /* ServerBuilderGenerator.kt:331 */
|
8900 14016 | #[allow(missing_docs)] // documentation missing in model
|
14017 + | /* ServerBuilderGenerator.kt:343 */
|
8901 14018 | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
8902 - | self.float_value = input;
|
14019 + | /* ServerBuilderGenerator.kt:344 */
|
14020 + | self.float_value =
|
14021 + | /* ServerBuilderGenerator.kt:376 */input
|
14022 + | /* ServerBuilderGenerator.kt:344 */;
|
8903 14023 | self
|
14024 + | /* ServerBuilderGenerator.kt:343 */
|
8904 14025 | }
|
14026 + | /* ServerBuilderGenerator.kt:426 */
|
8905 14027 | #[allow(missing_docs)] // documentation missing in model
|
14028 + | /* ServerBuilderGenerator.kt:428 */
|
8906 14029 | pub(crate) fn set_float_value(
|
8907 14030 | mut self,
|
8908 14031 | input: Option<impl ::std::convert::Into<f32>>,
|
8909 14032 | ) -> Self {
|
14033 + | /* ServerBuilderGenerator.kt:429 */
|
8910 14034 | self.float_value = input.map(|v| v.into());
|
8911 14035 | self
|
14036 + | /* ServerBuilderGenerator.kt:428 */
|
8912 14037 | }
|
14038 + | /* ServerBuilderGenerator.kt:331 */
|
8913 14039 | #[allow(missing_docs)] // documentation missing in model
|
14040 + | /* ServerBuilderGenerator.kt:343 */
|
8914 14041 | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
8915 - | self.double_value = input;
|
14042 + | /* ServerBuilderGenerator.kt:344 */
|
14043 + | self.double_value =
|
14044 + | /* ServerBuilderGenerator.kt:376 */input
|
14045 + | /* ServerBuilderGenerator.kt:344 */;
|
8916 14046 | self
|
14047 + | /* ServerBuilderGenerator.kt:343 */
|
8917 14048 | }
|
14049 + | /* ServerBuilderGenerator.kt:426 */
|
8918 14050 | #[allow(missing_docs)] // documentation missing in model
|
14051 + | /* ServerBuilderGenerator.kt:428 */
|
8919 14052 | pub(crate) fn set_double_value(
|
8920 14053 | mut self,
|
8921 14054 | input: Option<impl ::std::convert::Into<f64>>,
|
8922 14055 | ) -> Self {
|
14056 + | /* ServerBuilderGenerator.kt:429 */
|
8923 14057 | self.double_value = input.map(|v| v.into());
|
8924 14058 | self
|
14059 + | /* ServerBuilderGenerator.kt:428 */
|
8925 14060 | }
|
8926 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14061 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14062 + | /* ServerBuilderGenerator.kt:271 */
|
8927 14063 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
8928 14064 | self.build_enforcing_all_constraints()
|
8929 14065 | }
|
14066 + | /* ServerBuilderGenerator.kt:283 */
|
8930 14067 | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
14068 + | /* ServerBuilderGenerator.kt:542 */
|
8931 14069 | crate::input::SimpleScalarPropertiesInput {
|
14070 + | /* ServerBuilderGenerator.kt:546 */
|
8932 14071 | foo: self.foo,
|
14072 + | /* ServerBuilderGenerator.kt:546 */
|
8933 14073 | string_value: self.string_value,
|
14074 + | /* ServerBuilderGenerator.kt:546 */
|
8934 14075 | true_boolean_value: self.true_boolean_value,
|
14076 + | /* ServerBuilderGenerator.kt:546 */
|
8935 14077 | false_boolean_value: self.false_boolean_value,
|
14078 + | /* ServerBuilderGenerator.kt:546 */
|
8936 14079 | byte_value: self.byte_value,
|
14080 + | /* ServerBuilderGenerator.kt:546 */
|
8937 14081 | short_value: self.short_value,
|
14082 + | /* ServerBuilderGenerator.kt:546 */
|
8938 14083 | integer_value: self.integer_value,
|
14084 + | /* ServerBuilderGenerator.kt:546 */
|
8939 14085 | long_value: self.long_value,
|
14086 + | /* ServerBuilderGenerator.kt:546 */
|
8940 14087 | float_value: self.float_value,
|
14088 + | /* ServerBuilderGenerator.kt:546 */
|
8941 14089 | double_value: self.double_value,
|
14090 + | /* ServerBuilderGenerator.kt:542 */
|
8942 14091 | }
|
14092 + | /* ServerBuilderGenerator.kt:283 */
|
8943 14093 | }
|
14094 + | /* ServerBuilderGenerator.kt:215 */
|
8944 14095 | }
|
14096 + |
|
14097 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8945 14098 | }
|
8946 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14099 + | /// /* ServerBuilderGenerator.kt:171 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
8947 14100 | pub mod greeting_with_errors_input {
|
8948 14101 |
|
14102 + | /* ServerBuilderGenerator.kt:461 */
|
8949 14103 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
8950 14104 | fn from(builder: Builder) -> Self {
|
8951 14105 | builder.build()
|
8952 14106 | }
|
8953 14107 | }
|
8954 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14108 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14109 + | /* RustType.kt:516 */
|
8955 14110 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8956 - | pub struct Builder {}
|
14111 + | /* ServerBuilderGenerator.kt:211 */
|
14112 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14113 + | /* ServerBuilderGenerator.kt:215 */
|
8957 14114 | impl Builder {
|
8958 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14115 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14116 + | /* ServerBuilderGenerator.kt:271 */
|
8959 14117 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
8960 14118 | self.build_enforcing_all_constraints()
|
8961 14119 | }
|
14120 + | /* ServerBuilderGenerator.kt:283 */
|
8962 14121 | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
8963 - | crate::input::GreetingWithErrorsInput {}
|
14122 + | /* ServerBuilderGenerator.kt:542 */
|
14123 + | crate::input::GreetingWithErrorsInput {
|
14124 + | /* ServerBuilderGenerator.kt:542 */}
|
14125 + | /* ServerBuilderGenerator.kt:283 */
|
8964 14126 | }
|
14127 + | /* ServerBuilderGenerator.kt:215 */
|
8965 14128 | }
|
14129 + |
|
14130 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8966 14131 | }
|
8967 - | /// See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14132 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
8968 14133 | pub mod streaming_traits_with_media_type_input {
|
8969 14134 |
|
14135 + | /* ServerBuilderGenerator.kt:461 */
|
8970 14136 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsWithMediaTypeInput {
|
8971 14137 | fn from(builder: Builder) -> Self {
|
8972 14138 | builder.build()
|
8973 14139 | }
|
8974 14140 | }
|
8975 - | /// A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14141 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14142 + | /* RustType.kt:516 */
|
8976 14143 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14144 + | /* ServerBuilderGenerator.kt:211 */
|
8977 14145 | pub struct Builder {
|
14146 + | /* ServerBuilderGenerator.kt:308 */
|
8978 14147 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14148 + | /* ServerBuilderGenerator.kt:308 */
|
8979 14149 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14150 + | /* ServerBuilderGenerator.kt:211 */
|
8980 14151 | }
|
14152 + | /* ServerBuilderGenerator.kt:215 */
|
8981 14153 | impl Builder {
|
14154 + | /* ServerBuilderGenerator.kt:331 */
|
8982 14155 | #[allow(missing_docs)] // documentation missing in model
|
14156 + | /* ServerBuilderGenerator.kt:343 */
|
8983 14157 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8984 - | self.foo = input;
|
14158 + | /* ServerBuilderGenerator.kt:344 */
|
14159 + | self.foo =
|
14160 + | /* ServerBuilderGenerator.kt:376 */input
|
14161 + | /* ServerBuilderGenerator.kt:344 */;
|
8985 14162 | self
|
14163 + | /* ServerBuilderGenerator.kt:343 */
|
8986 14164 | }
|
14165 + | /* ServerBuilderGenerator.kt:426 */
|
8987 14166 | #[allow(missing_docs)] // documentation missing in model
|
14167 + | /* ServerBuilderGenerator.kt:428 */
|
8988 14168 | pub(crate) fn set_foo(
|
8989 14169 | mut self,
|
8990 14170 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8991 14171 | ) -> Self {
|
14172 + | /* ServerBuilderGenerator.kt:429 */
|
8992 14173 | self.foo = input.map(|v| v.into());
|
8993 14174 | self
|
14175 + | /* ServerBuilderGenerator.kt:428 */
|
8994 14176 | }
|
14177 + | /* ServerBuilderGenerator.kt:331 */
|
8995 14178 | #[allow(missing_docs)] // documentation missing in model
|
14179 + | /* ServerBuilderGenerator.kt:343 */
|
8996 14180 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
8997 - | self.blob = Some(input);
|
14181 + | /* ServerBuilderGenerator.kt:344 */
|
14182 + | self.blob =
|
14183 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14184 + | /* ServerBuilderGenerator.kt:376 */input
|
14185 + | /* ServerBuilderGenerator.kt:345 */)
|
14186 + | /* ServerBuilderGenerator.kt:344 */;
|
8998 14187 | self
|
14188 + | /* ServerBuilderGenerator.kt:343 */
|
8999 14189 | }
|
14190 + | /* ServerBuilderGenerator.kt:426 */
|
9000 14191 | #[allow(missing_docs)] // documentation missing in model
|
14192 + | /* ServerBuilderGenerator.kt:428 */
|
9001 14193 | pub(crate) fn set_blob(
|
9002 14194 | mut self,
|
9003 14195 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9004 14196 | ) -> Self {
|
14197 + | /* ServerBuilderGenerator.kt:429 */
|
9005 14198 | self.blob = Some(input.into());
|
9006 14199 | self
|
14200 + | /* ServerBuilderGenerator.kt:428 */
|
9007 14201 | }
|
9008 - | /// Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14202 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14203 + | /* ServerBuilderGenerator.kt:271 */
|
9009 14204 | pub fn build(self) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
9010 14205 | self.build_enforcing_all_constraints()
|
9011 14206 | }
|
14207 + | /* ServerBuilderGenerator.kt:283 */
|
9012 14208 | fn build_enforcing_all_constraints(
|
9013 14209 | self,
|
9014 14210 | ) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
14211 + | /* ServerBuilderGenerator.kt:542 */
|
9015 14212 | crate::input::StreamingTraitsWithMediaTypeInput {
|
14213 + | /* ServerBuilderGenerator.kt:546 */
|
9016 14214 | foo: self.foo,
|
9017 - | blob: self.blob.unwrap_or_default(),
|
14215 + | /* ServerBuilderGenerator.kt:546 */
|
14216 + | blob: self
|
14217 + | .blob
|
14218 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
14219 + | .unwrap_or_default(),
|
14220 + | /* ServerBuilderGenerator.kt:542 */
|
9018 14221 | }
|
14222 + | /* ServerBuilderGenerator.kt:283 */
|
9019 14223 | }
|
14224 + | /* ServerBuilderGenerator.kt:215 */
|
9020 14225 | }
|
14226 + |
|
14227 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9021 14228 | }
|
9022 - | /// See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14229 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
9023 14230 | pub mod streaming_traits_require_length_input {
|
9024 14231 |
|
14232 + | /* ServerBuilderGenerator.kt:461 */
|
9025 14233 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsRequireLengthInput {
|
9026 14234 | fn from(builder: Builder) -> Self {
|
9027 14235 | builder.build()
|
9028 14236 | }
|
9029 14237 | }
|
9030 - | /// A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14238 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14239 + | /* RustType.kt:516 */
|
9031 14240 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14241 + | /* ServerBuilderGenerator.kt:211 */
|
9032 14242 | pub struct Builder {
|
14243 + | /* ServerBuilderGenerator.kt:308 */
|
9033 14244 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14245 + | /* ServerBuilderGenerator.kt:308 */
|
9034 14246 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14247 + | /* ServerBuilderGenerator.kt:211 */
|
9035 14248 | }
|
14249 + | /* ServerBuilderGenerator.kt:215 */
|
9036 14250 | impl Builder {
|
14251 + | /* ServerBuilderGenerator.kt:331 */
|
9037 14252 | #[allow(missing_docs)] // documentation missing in model
|
14253 + | /* ServerBuilderGenerator.kt:343 */
|
9038 14254 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9039 - | self.foo = input;
|
14255 + | /* ServerBuilderGenerator.kt:344 */
|
14256 + | self.foo =
|
14257 + | /* ServerBuilderGenerator.kt:376 */input
|
14258 + | /* ServerBuilderGenerator.kt:344 */;
|
9040 14259 | self
|
14260 + | /* ServerBuilderGenerator.kt:343 */
|
9041 14261 | }
|
14262 + | /* ServerBuilderGenerator.kt:426 */
|
9042 14263 | #[allow(missing_docs)] // documentation missing in model
|
14264 + | /* ServerBuilderGenerator.kt:428 */
|
9043 14265 | pub(crate) fn set_foo(
|
9044 14266 | mut self,
|
9045 14267 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9046 14268 | ) -> Self {
|
14269 + | /* ServerBuilderGenerator.kt:429 */
|
9047 14270 | self.foo = input.map(|v| v.into());
|
9048 14271 | self
|
14272 + | /* ServerBuilderGenerator.kt:428 */
|
9049 14273 | }
|
14274 + | /* ServerBuilderGenerator.kt:331 */
|
9050 14275 | #[allow(missing_docs)] // documentation missing in model
|
14276 + | /* ServerBuilderGenerator.kt:343 */
|
9051 14277 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
9052 - | self.blob = Some(input);
|
14278 + | /* ServerBuilderGenerator.kt:344 */
|
14279 + | self.blob =
|
14280 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14281 + | /* ServerBuilderGenerator.kt:376 */input
|
14282 + | /* ServerBuilderGenerator.kt:345 */)
|
14283 + | /* ServerBuilderGenerator.kt:344 */;
|
9053 14284 | self
|
14285 + | /* ServerBuilderGenerator.kt:343 */
|
9054 14286 | }
|
14287 + | /* ServerBuilderGenerator.kt:426 */
|
9055 14288 | #[allow(missing_docs)] // documentation missing in model
|
14289 + | /* ServerBuilderGenerator.kt:428 */
|
9056 14290 | pub(crate) fn set_blob(
|
9057 14291 | mut self,
|
9058 14292 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9059 14293 | ) -> Self {
|
14294 + | /* ServerBuilderGenerator.kt:429 */
|
9060 14295 | self.blob = Some(input.into());
|
9061 14296 | self
|
14297 + | /* ServerBuilderGenerator.kt:428 */
|
9062 14298 | }
|
9063 - | /// Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14299 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14300 + | /* ServerBuilderGenerator.kt:271 */
|
9064 14301 | pub fn build(self) -> crate::input::StreamingTraitsRequireLengthInput {
|
9065 14302 | self.build_enforcing_all_constraints()
|
9066 14303 | }
|
14304 + | /* ServerBuilderGenerator.kt:283 */
|
9067 14305 | fn build_enforcing_all_constraints(
|
9068 14306 | self,
|
9069 14307 | ) -> crate::input::StreamingTraitsRequireLengthInput {
|
14308 + | /* ServerBuilderGenerator.kt:542 */
|
9070 14309 | crate::input::StreamingTraitsRequireLengthInput {
|
14310 + | /* ServerBuilderGenerator.kt:546 */
|
9071 14311 | foo: self.foo,
|
9072 - | blob: self.blob.unwrap_or_default(),
|
14312 + | /* ServerBuilderGenerator.kt:546 */
|
14313 + | blob: self
|
14314 + | .blob
|
14315 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
14316 + | .unwrap_or_default(),
|
14317 + | /* ServerBuilderGenerator.kt:542 */
|
9073 14318 | }
|
14319 + | /* ServerBuilderGenerator.kt:283 */
|
9074 14320 | }
|
14321 + | /* ServerBuilderGenerator.kt:215 */
|
9075 14322 | }
|
14323 + |
|
14324 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9076 14325 | }
|
9077 - | /// See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14326 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
9078 14327 | pub mod streaming_traits_input {
|
9079 14328 |
|
14329 + | /* ServerBuilderGenerator.kt:461 */
|
9080 14330 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsInput {
|
9081 14331 | fn from(builder: Builder) -> Self {
|
9082 14332 | builder.build()
|
9083 14333 | }
|
9084 14334 | }
|
9085 - | /// A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14335 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14336 + | /* RustType.kt:516 */
|
9086 14337 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14338 + | /* ServerBuilderGenerator.kt:211 */
|
9087 14339 | pub struct Builder {
|
14340 + | /* ServerBuilderGenerator.kt:308 */
|
9088 14341 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14342 + | /* ServerBuilderGenerator.kt:308 */
|
9089 14343 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14344 + | /* ServerBuilderGenerator.kt:211 */
|
9090 14345 | }
|
14346 + | /* ServerBuilderGenerator.kt:215 */
|
9091 14347 | impl Builder {
|
14348 + | /* ServerBuilderGenerator.kt:331 */
|
9092 14349 | #[allow(missing_docs)] // documentation missing in model
|
14350 + | /* ServerBuilderGenerator.kt:343 */
|
9093 14351 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9094 - | self.foo = input;
|
14352 + | /* ServerBuilderGenerator.kt:344 */
|
14353 + | self.foo =
|
14354 + | /* ServerBuilderGenerator.kt:376 */input
|
14355 + | /* ServerBuilderGenerator.kt:344 */;
|
9095 14356 | self
|
14357 + | /* ServerBuilderGenerator.kt:343 */
|
9096 14358 | }
|
14359 + | /* ServerBuilderGenerator.kt:426 */
|
9097 14360 | #[allow(missing_docs)] // documentation missing in model
|
14361 + | /* ServerBuilderGenerator.kt:428 */
|
9098 14362 | pub(crate) fn set_foo(
|
9099 14363 | mut self,
|
9100 14364 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9101 14365 | ) -> Self {
|
14366 + | /* ServerBuilderGenerator.kt:429 */
|
9102 14367 | self.foo = input.map(|v| v.into());
|
9103 14368 | self
|
14369 + | /* ServerBuilderGenerator.kt:428 */
|
9104 14370 | }
|
14371 + | /* ServerBuilderGenerator.kt:331 */
|
9105 14372 | #[allow(missing_docs)] // documentation missing in model
|
14373 + | /* ServerBuilderGenerator.kt:343 */
|
9106 14374 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
9107 - | self.blob = Some(input);
|
14375 + | /* ServerBuilderGenerator.kt:344 */
|
14376 + | self.blob =
|
14377 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14378 + | /* ServerBuilderGenerator.kt:376 */input
|
14379 + | /* ServerBuilderGenerator.kt:345 */)
|
14380 + | /* ServerBuilderGenerator.kt:344 */;
|
9108 14381 | self
|
14382 + | /* ServerBuilderGenerator.kt:343 */
|
9109 14383 | }
|
14384 + | /* ServerBuilderGenerator.kt:426 */
|
9110 14385 | #[allow(missing_docs)] // documentation missing in model
|
14386 + | /* ServerBuilderGenerator.kt:428 */
|
9111 14387 | pub(crate) fn set_blob(
|
9112 14388 | mut self,
|
9113 14389 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9114 14390 | ) -> Self {
|
14391 + | /* ServerBuilderGenerator.kt:429 */
|
9115 14392 | self.blob = Some(input.into());
|
9116 14393 | self
|
14394 + | /* ServerBuilderGenerator.kt:428 */
|
9117 14395 | }
|
9118 - | /// Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14396 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14397 + | /* ServerBuilderGenerator.kt:271 */
|
9119 14398 | pub fn build(self) -> crate::input::StreamingTraitsInput {
|
9120 14399 | self.build_enforcing_all_constraints()
|
9121 14400 | }
|
14401 + | /* ServerBuilderGenerator.kt:283 */
|
9122 14402 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingTraitsInput {
|
14403 + | /* ServerBuilderGenerator.kt:542 */
|
9123 14404 | crate::input::StreamingTraitsInput {
|
14405 + | /* ServerBuilderGenerator.kt:546 */
|
9124 14406 | foo: self.foo,
|
9125 - | blob: self.blob.unwrap_or_default(),
|
14407 + | /* ServerBuilderGenerator.kt:546 */
|
14408 + | blob: self
|
14409 + | .blob
|
14410 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
14411 + | .unwrap_or_default(),
|
14412 + | /* ServerBuilderGenerator.kt:542 */
|
9126 14413 | }
|
14414 + | /* ServerBuilderGenerator.kt:283 */
|
9127 14415 | }
|
14416 + | /* ServerBuilderGenerator.kt:215 */
|
9128 14417 | }
|
14418 + |
|
14419 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9129 14420 | }
|
9130 - | /// See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14421 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
9131 14422 | pub mod http_response_code_input {
|
9132 14423 |
|
14424 + | /* ServerBuilderGenerator.kt:461 */
|
9133 14425 | impl ::std::convert::From<Builder> for crate::input::HttpResponseCodeInput {
|
9134 14426 | fn from(builder: Builder) -> Self {
|
9135 14427 | builder.build()
|
9136 14428 | }
|
9137 14429 | }
|
9138 - | /// A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14430 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14431 + | /* RustType.kt:516 */
|
9139 14432 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9140 - | pub struct Builder {}
|
14433 + | /* ServerBuilderGenerator.kt:211 */
|
14434 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14435 + | /* ServerBuilderGenerator.kt:215 */
|
9141 14436 | impl Builder {
|
9142 - | /// Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14437 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14438 + | /* ServerBuilderGenerator.kt:271 */
|
9143 14439 | pub fn build(self) -> crate::input::HttpResponseCodeInput {
|
9144 14440 | self.build_enforcing_all_constraints()
|
9145 14441 | }
|
14442 + | /* ServerBuilderGenerator.kt:283 */
|
9146 14443 | fn build_enforcing_all_constraints(self) -> crate::input::HttpResponseCodeInput {
|
9147 - | crate::input::HttpResponseCodeInput {}
|
14444 + | /* ServerBuilderGenerator.kt:542 */
|
14445 + | crate::input::HttpResponseCodeInput {
|
14446 + | /* ServerBuilderGenerator.kt:542 */}
|
14447 + | /* ServerBuilderGenerator.kt:283 */
|
9148 14448 | }
|
14449 + | /* ServerBuilderGenerator.kt:215 */
|
9149 14450 | }
|
14451 + |
|
14452 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9150 14453 | }
|
9151 - | /// See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14454 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
9152 14455 | pub mod http_payload_with_union_input {
|
9153 14456 |
|
14457 + | /* ServerBuilderGenerator.kt:461 */
|
9154 14458 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithUnionInput {
|
9155 14459 | fn from(builder: Builder) -> Self {
|
9156 14460 | builder.build()
|
9157 14461 | }
|
9158 14462 | }
|
9159 - | /// A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14463 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14464 + | /* RustType.kt:516 */
|
9160 14465 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14466 + | /* ServerBuilderGenerator.kt:211 */
|
9161 14467 | pub struct Builder {
|
14468 + | /* ServerBuilderGenerator.kt:308 */
|
9162 14469 | pub(crate) nested: ::std::option::Option<crate::model::UnionPayload>,
|
14470 + | /* ServerBuilderGenerator.kt:211 */
|
9163 14471 | }
|
14472 + | /* ServerBuilderGenerator.kt:215 */
|
9164 14473 | impl Builder {
|
14474 + | /* ServerBuilderGenerator.kt:331 */
|
9165 14475 | #[allow(missing_docs)] // documentation missing in model
|
14476 + | /* ServerBuilderGenerator.kt:343 */
|
9166 14477 | pub fn nested(mut self, input: ::std::option::Option<crate::model::UnionPayload>) -> Self {
|
9167 - | self.nested = input;
|
14478 + | /* ServerBuilderGenerator.kt:344 */
|
14479 + | self.nested =
|
14480 + | /* ServerBuilderGenerator.kt:376 */input
|
14481 + | /* ServerBuilderGenerator.kt:344 */;
|
9168 14482 | self
|
14483 + | /* ServerBuilderGenerator.kt:343 */
|
9169 14484 | }
|
14485 + | /* ServerBuilderGenerator.kt:426 */
|
9170 14486 | #[allow(missing_docs)] // documentation missing in model
|
14487 + | /* ServerBuilderGenerator.kt:428 */
|
9171 14488 | pub(crate) fn set_nested(
|
9172 14489 | mut self,
|
9173 14490 | input: Option<impl ::std::convert::Into<crate::model::UnionPayload>>,
|
9174 14491 | ) -> Self {
|
14492 + | /* ServerBuilderGenerator.kt:429 */
|
9175 14493 | self.nested = input.map(|v| v.into());
|
9176 14494 | self
|
14495 + | /* ServerBuilderGenerator.kt:428 */
|
9177 14496 | }
|
9178 - | /// Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14497 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14498 + | /* ServerBuilderGenerator.kt:271 */
|
9179 14499 | pub fn build(self) -> crate::input::HttpPayloadWithUnionInput {
|
9180 14500 | self.build_enforcing_all_constraints()
|
9181 14501 | }
|
14502 + | /* ServerBuilderGenerator.kt:283 */
|
9182 14503 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithUnionInput {
|
14504 + | /* ServerBuilderGenerator.kt:542 */
|
9183 14505 | crate::input::HttpPayloadWithUnionInput {
|
14506 + | /* ServerBuilderGenerator.kt:546 */
|
9184 14507 | nested: self.nested,
|
14508 + | /* ServerBuilderGenerator.kt:542 */
|
9185 14509 | }
|
14510 + | /* ServerBuilderGenerator.kt:283 */
|
9186 14511 | }
|
14512 + | /* ServerBuilderGenerator.kt:215 */
|
9187 14513 | }
|
14514 + |
|
14515 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9188 14516 | }
|
9189 - | /// See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14517 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
9190 14518 | pub mod http_string_payload_input {
|
9191 14519 |
|
14520 + | /* ServerBuilderGenerator.kt:461 */
|
9192 14521 | impl ::std::convert::From<Builder> for crate::input::HttpStringPayloadInput {
|
9193 14522 | fn from(builder: Builder) -> Self {
|
9194 14523 | builder.build()
|
9195 14524 | }
|
9196 14525 | }
|
9197 - | /// A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14526 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14527 + | /* RustType.kt:516 */
|
9198 14528 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14529 + | /* ServerBuilderGenerator.kt:211 */
|
9199 14530 | pub struct Builder {
|
14531 + | /* ServerBuilderGenerator.kt:308 */
|
9200 14532 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
14533 + | /* ServerBuilderGenerator.kt:211 */
|
9201 14534 | }
|
14535 + | /* ServerBuilderGenerator.kt:215 */
|
9202 14536 | impl Builder {
|
14537 + | /* ServerBuilderGenerator.kt:331 */
|
9203 14538 | #[allow(missing_docs)] // documentation missing in model
|
14539 + | /* ServerBuilderGenerator.kt:343 */
|
9204 14540 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9205 - | self.payload = input;
|
14541 + | /* ServerBuilderGenerator.kt:344 */
|
14542 + | self.payload =
|
14543 + | /* ServerBuilderGenerator.kt:376 */input
|
14544 + | /* ServerBuilderGenerator.kt:344 */;
|
9206 14545 | self
|
14546 + | /* ServerBuilderGenerator.kt:343 */
|
9207 14547 | }
|
14548 + | /* ServerBuilderGenerator.kt:426 */
|
9208 14549 | #[allow(missing_docs)] // documentation missing in model
|
14550 + | /* ServerBuilderGenerator.kt:428 */
|
9209 14551 | pub(crate) fn set_payload(
|
9210 14552 | mut self,
|
9211 14553 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9212 14554 | ) -> Self {
|
14555 + | /* ServerBuilderGenerator.kt:429 */
|
9213 14556 | self.payload = input.map(|v| v.into());
|
9214 14557 | self
|
14558 + | /* ServerBuilderGenerator.kt:428 */
|
9215 14559 | }
|
9216 - | /// Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14560 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14561 + | /* ServerBuilderGenerator.kt:271 */
|
9217 14562 | pub fn build(self) -> crate::input::HttpStringPayloadInput {
|
9218 14563 | self.build_enforcing_all_constraints()
|
9219 14564 | }
|
14565 + | /* ServerBuilderGenerator.kt:283 */
|
9220 14566 | fn build_enforcing_all_constraints(self) -> crate::input::HttpStringPayloadInput {
|
14567 + | /* ServerBuilderGenerator.kt:542 */
|
9221 14568 | crate::input::HttpStringPayloadInput {
|
14569 + | /* ServerBuilderGenerator.kt:546 */
|
9222 14570 | payload: self.payload,
|
14571 + | /* ServerBuilderGenerator.kt:542 */
|
9223 14572 | }
|
14573 + | /* ServerBuilderGenerator.kt:283 */
|
9224 14574 | }
|
14575 + | /* ServerBuilderGenerator.kt:215 */
|
9225 14576 | }
|
14577 + |
|
14578 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9226 14579 | }
|
9227 - | /// See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14580 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
9228 14581 | pub mod http_enum_payload_input {
|
9229 14582 |
|
14583 + | /* RustType.kt:516 */
|
9230 14584 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9231 - | /// Holds one variant for each of the ways the builder can fail.
|
14585 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14586 + | /* RustType.kt:516 */
|
9232 14587 | #[non_exhaustive]
|
14588 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9233 14589 | #[allow(clippy::enum_variant_names)]
|
9234 14590 | pub enum ConstraintViolation {
|
9235 - | /// Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
14591 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
14592 + | /* RustType.kt:516 */
|
9236 14593 | #[doc(hidden)]
|
14594 + | /* ServerBuilderConstraintViolations.kt:164 */
|
9237 14595 | Payload(crate::model::string_enum::ConstraintViolation),
|
14596 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9238 14597 | }
|
14598 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9239 14599 | impl ::std::fmt::Display for ConstraintViolation {
|
14600 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9240 14601 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14602 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9241 14603 | match self {
|
9242 - | ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
9243 - | }
|
14604 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
14605 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
14606 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9244 14607 | }
|
14608 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9245 14609 | }
|
14610 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9246 14611 | impl ::std::error::Error for ConstraintViolation {}
|
14612 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9247 14613 | impl ConstraintViolation {
|
9248 14614 | pub(crate) fn as_validation_exception_field(
|
9249 14615 | self,
|
9250 14616 | path: ::std::string::String,
|
9251 14617 | ) -> crate::model::ValidationExceptionField {
|
9252 14618 | match self {
|
9253 14619 | ConstraintViolation::Payload(inner) => {
|
9254 14620 | inner.as_validation_exception_field(path + "/payload")
|
9255 14621 | }
|
9256 14622 | }
|
9257 14623 | }
|
9258 14624 | }
|
14625 + | /* ServerBuilderGenerator.kt:234 */
|
9259 14626 | impl ::std::convert::From<ConstraintViolation>
|
9260 14627 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9261 14628 | {
|
9262 14629 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9263 14630 | let first_validation_exception_field =
|
9264 14631 | constraint_violation.as_validation_exception_field("".to_owned());
|
9265 14632 | let validation_exception = crate::error::ValidationException {
|
9266 14633 | message: format!(
|
9267 14634 | "1 validation error detected. {}",
|
9268 14635 | &first_validation_exception_field.message
|
9269 14636 | ),
|
9270 14637 | field_list: Some(vec![first_validation_exception_field]),
|
9271 14638 | };
|
9272 14639 | Self::ConstraintViolation(
|
9273 14640 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9274 14641 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9275 14642 | )
|
9276 14643 | }
|
9277 14644 | }
|
14645 + | /* ServerBuilderGenerator.kt:244 */
|
9278 14646 | impl ::std::convert::From<Builder>
|
9279 14647 | for crate::constrained::MaybeConstrained<crate::input::HttpEnumPayloadInput>
|
9280 14648 | {
|
9281 14649 | fn from(builder: Builder) -> Self {
|
9282 14650 | Self::Unconstrained(builder)
|
9283 14651 | }
|
9284 14652 | }
|
14653 + | /* ServerBuilderGenerator.kt:446 */
|
9285 14654 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpEnumPayloadInput {
|
9286 14655 | type Error = ConstraintViolation;
|
9287 14656 |
|
9288 14657 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9289 14658 | builder.build()
|
9290 14659 | }
|
9291 14660 | }
|
9292 - | /// A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14661 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14662 + | /* RustType.kt:516 */
|
9293 14663 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14664 + | /* ServerBuilderGenerator.kt:211 */
|
9294 14665 | pub struct Builder {
|
14666 + | /* ServerBuilderGenerator.kt:308 */
|
9295 14667 | pub(crate) payload:
|
9296 14668 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringEnum>>,
|
14669 + | /* ServerBuilderGenerator.kt:211 */
|
9297 14670 | }
|
14671 + | /* ServerBuilderGenerator.kt:215 */
|
9298 14672 | impl Builder {
|
14673 + | /* ServerBuilderGenerator.kt:331 */
|
9299 14674 | #[allow(missing_docs)] // documentation missing in model
|
14675 + | /* ServerBuilderGenerator.kt:343 */
|
9300 14676 | pub fn payload(mut self, input: ::std::option::Option<crate::model::StringEnum>) -> Self {
|
9301 - | self.payload = input.map(
|
9302 - | #[allow(clippy::redundant_closure)]
|
9303 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
9304 - | );
|
14677 + | /* ServerBuilderGenerator.kt:344 */
|
14678 + | self.payload =
|
14679 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
14680 + | /* ServerBuilderGenerator.kt:344 */;
|
9305 14681 | self
|
14682 + | /* ServerBuilderGenerator.kt:343 */
|
9306 14683 | }
|
14684 + | /* ServerBuilderGenerator.kt:426 */
|
9307 14685 | #[allow(missing_docs)] // documentation missing in model
|
14686 + | /* ServerBuilderGenerator.kt:428 */
|
9308 14687 | pub(crate) fn set_payload(
|
9309 14688 | mut self,
|
9310 14689 | input: Option<
|
9311 14690 | impl ::std::convert::Into<
|
9312 14691 | crate::constrained::MaybeConstrained<crate::model::StringEnum>,
|
9313 14692 | >,
|
9314 14693 | >,
|
9315 14694 | ) -> Self {
|
14695 + | /* ServerBuilderGenerator.kt:429 */
|
9316 14696 | self.payload = input.map(|v| v.into());
|
9317 14697 | self
|
14698 + | /* ServerBuilderGenerator.kt:428 */
|
9318 14699 | }
|
9319 - | /// Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
9320 - | ///
|
14700 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14701 + | /// /* ServerBuilderGenerator.kt:260 */
|
9321 14702 | /// The builder fails to construct a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput) if a [`ConstraintViolation`] occurs.
|
9322 14703 | ///
|
14704 + | /* ServerBuilderGenerator.kt:271 */
|
9323 14705 | pub fn build(self) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
9324 14706 | self.build_enforcing_all_constraints()
|
9325 14707 | }
|
14708 + | /* ServerBuilderGenerator.kt:283 */
|
9326 14709 | fn build_enforcing_all_constraints(
|
9327 14710 | self,
|
9328 14711 | ) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
9329 - | Ok(crate::input::HttpEnumPayloadInput {
|
14712 + | /* ServerBuilderGenerator.kt:287 */
|
14713 + | Ok(
|
14714 + | /* ServerBuilderGenerator.kt:542 */
|
14715 + | crate::input::HttpEnumPayloadInput {
|
14716 + | /* ServerBuilderGenerator.kt:546 */
|
9330 14717 | payload: self
|
9331 14718 | .payload
|
14719 + | /* ServerBuilderGenerator.kt:602 */
|
9332 14720 | .map(|v| match v {
|
9333 14721 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
9334 14722 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
9335 14723 | })
|
14724 + | /* ServerBuilderGenerator.kt:614 */
|
9336 14725 | .map(|res| res.map_err(ConstraintViolation::Payload))
|
9337 14726 | .transpose()?,
|
9338 - | })
|
14727 + | /* ServerBuilderGenerator.kt:542 */
|
14728 + | }, /* ServerBuilderGenerator.kt:287 */
|
14729 + | )
|
14730 + | /* ServerBuilderGenerator.kt:283 */
|
9339 14731 | }
|
14732 + | /* ServerBuilderGenerator.kt:215 */
|
9340 14733 | }
|
14734 + |
|
14735 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9341 14736 | }
|
9342 - | /// See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
14737 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
9343 14738 | pub mod http_payload_with_structure_input {
|
9344 14739 |
|
14740 + | /* ServerBuilderGenerator.kt:461 */
|
9345 14741 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithStructureInput {
|
9346 14742 | fn from(builder: Builder) -> Self {
|
9347 14743 | builder.build()
|
9348 14744 | }
|
9349 14745 | }
|
9350 - | /// A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
14746 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
14747 + | /* RustType.kt:516 */
|
9351 14748 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14749 + | /* ServerBuilderGenerator.kt:211 */
|
9352 14750 | pub struct Builder {
|
14751 + | /* ServerBuilderGenerator.kt:308 */
|
9353 14752 | pub(crate) nested: ::std::option::Option<crate::model::NestedPayload>,
|
14753 + | /* ServerBuilderGenerator.kt:211 */
|
9354 14754 | }
|
14755 + | /* ServerBuilderGenerator.kt:215 */
|
9355 14756 | impl Builder {
|
14757 + | /* ServerBuilderGenerator.kt:331 */
|
9356 14758 | #[allow(missing_docs)] // documentation missing in model
|
14759 + | /* ServerBuilderGenerator.kt:343 */
|
9357 14760 | pub fn nested(mut self, input: ::std::option::Option<crate::model::NestedPayload>) -> Self {
|
9358 - | self.nested = input;
|
14761 + | /* ServerBuilderGenerator.kt:344 */
|
14762 + | self.nested =
|
14763 + | /* ServerBuilderGenerator.kt:376 */input
|
14764 + | /* ServerBuilderGenerator.kt:344 */;
|
9359 14765 | self
|
14766 + | /* ServerBuilderGenerator.kt:343 */
|
9360 14767 | }
|
14768 + | /* ServerBuilderGenerator.kt:426 */
|
9361 14769 | #[allow(missing_docs)] // documentation missing in model
|
14770 + | /* ServerBuilderGenerator.kt:428 */
|
9362 14771 | pub(crate) fn set_nested(
|
9363 14772 | mut self,
|
9364 14773 | input: Option<impl ::std::convert::Into<crate::model::NestedPayload>>,
|
9365 14774 | ) -> Self {
|
14775 + | /* ServerBuilderGenerator.kt:429 */
|
9366 14776 | self.nested = input.map(|v| v.into());
|
9367 14777 | self
|
14778 + | /* ServerBuilderGenerator.kt:428 */
|
9368 14779 | }
|
9369 - | /// Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
14780 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
14781 + | /* ServerBuilderGenerator.kt:271 */
|
9370 14782 | pub fn build(self) -> crate::input::HttpPayloadWithStructureInput {
|
9371 14783 | self.build_enforcing_all_constraints()
|
9372 14784 | }
|
14785 + | /* ServerBuilderGenerator.kt:283 */
|
9373 14786 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithStructureInput {
|
14787 + | /* ServerBuilderGenerator.kt:542 */
|
9374 14788 | crate::input::HttpPayloadWithStructureInput {
|
14789 + | /* ServerBuilderGenerator.kt:546 */
|
9375 14790 | nested: self.nested,
|
14791 + | /* ServerBuilderGenerator.kt:542 */
|
9376 14792 | }
|
14793 + | /* ServerBuilderGenerator.kt:283 */
|
9377 14794 | }
|
14795 + | /* ServerBuilderGenerator.kt:215 */
|
9378 14796 | }
|
14797 + |
|
14798 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9379 14799 | }
|
9380 - | /// See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
14800 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
9381 14801 | pub mod http_payload_traits_with_media_type_input {
|
9382 14802 |
|
14803 + | /* ServerBuilderGenerator.kt:461 */
|
9383 14804 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
9384 14805 | fn from(builder: Builder) -> Self {
|
9385 14806 | builder.build()
|
9386 14807 | }
|
9387 14808 | }
|
9388 - | /// A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
14809 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
14810 + | /* RustType.kt:516 */
|
9389 14811 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14812 + | /* ServerBuilderGenerator.kt:211 */
|
9390 14813 | pub struct Builder {
|
14814 + | /* ServerBuilderGenerator.kt:308 */
|
9391 14815 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14816 + | /* ServerBuilderGenerator.kt:308 */
|
9392 14817 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
14818 + | /* ServerBuilderGenerator.kt:211 */
|
9393 14819 | }
|
14820 + | /* ServerBuilderGenerator.kt:215 */
|
9394 14821 | impl Builder {
|
14822 + | /* ServerBuilderGenerator.kt:331 */
|
9395 14823 | #[allow(missing_docs)] // documentation missing in model
|
14824 + | /* ServerBuilderGenerator.kt:343 */
|
9396 14825 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9397 - | self.foo = input;
|
14826 + | /* ServerBuilderGenerator.kt:344 */
|
14827 + | self.foo =
|
14828 + | /* ServerBuilderGenerator.kt:376 */input
|
14829 + | /* ServerBuilderGenerator.kt:344 */;
|
9398 14830 | self
|
14831 + | /* ServerBuilderGenerator.kt:343 */
|
9399 14832 | }
|
14833 + | /* ServerBuilderGenerator.kt:426 */
|
9400 14834 | #[allow(missing_docs)] // documentation missing in model
|
14835 + | /* ServerBuilderGenerator.kt:428 */
|
9401 14836 | pub(crate) fn set_foo(
|
9402 14837 | mut self,
|
9403 14838 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9404 14839 | ) -> Self {
|
14840 + | /* ServerBuilderGenerator.kt:429 */
|
9405 14841 | self.foo = input.map(|v| v.into());
|
9406 14842 | self
|
14843 + | /* ServerBuilderGenerator.kt:428 */
|
9407 14844 | }
|
14845 + | /* ServerBuilderGenerator.kt:331 */
|
9408 14846 | #[allow(missing_docs)] // documentation missing in model
|
14847 + | /* ServerBuilderGenerator.kt:343 */
|
9409 14848 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
9410 - | self.blob = input;
|
14849 + | /* ServerBuilderGenerator.kt:344 */
|
14850 + | self.blob =
|
14851 + | /* ServerBuilderGenerator.kt:376 */input
|
14852 + | /* ServerBuilderGenerator.kt:344 */;
|
9411 14853 | self
|
14854 + | /* ServerBuilderGenerator.kt:343 */
|
9412 14855 | }
|
14856 + | /* ServerBuilderGenerator.kt:426 */
|
9413 14857 | #[allow(missing_docs)] // documentation missing in model
|
14858 + | /* ServerBuilderGenerator.kt:428 */
|
9414 14859 | pub(crate) fn set_blob(
|
9415 14860 | mut self,
|
9416 14861 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
9417 14862 | ) -> Self {
|
14863 + | /* ServerBuilderGenerator.kt:429 */
|
9418 14864 | self.blob = input.map(|v| v.into());
|
9419 14865 | self
|
14866 + | /* ServerBuilderGenerator.kt:428 */
|
9420 14867 | }
|
9421 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
14868 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
14869 + | /* ServerBuilderGenerator.kt:271 */
|
9422 14870 | pub fn build(self) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
9423 14871 | self.build_enforcing_all_constraints()
|
9424 14872 | }
|
14873 + | /* ServerBuilderGenerator.kt:283 */
|
9425 14874 | fn build_enforcing_all_constraints(
|
9426 14875 | self,
|
9427 14876 | ) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
14877 + | /* ServerBuilderGenerator.kt:542 */
|
9428 14878 | crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
14879 + | /* ServerBuilderGenerator.kt:546 */
|
9429 14880 | foo: self.foo,
|
14881 + | /* ServerBuilderGenerator.kt:546 */
|
9430 14882 | blob: self.blob,
|
14883 + | /* ServerBuilderGenerator.kt:542 */
|
9431 14884 | }
|
14885 + | /* ServerBuilderGenerator.kt:283 */
|
9432 14886 | }
|
14887 + | /* ServerBuilderGenerator.kt:215 */
|
9433 14888 | }
|
14889 + |
|
14890 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9434 14891 | }
|
9435 - | /// See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
14892 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
9436 14893 | pub mod http_payload_traits_input {
|
9437 14894 |
|
14895 + | /* ServerBuilderGenerator.kt:461 */
|
9438 14896 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsInput {
|
9439 14897 | fn from(builder: Builder) -> Self {
|
9440 14898 | builder.build()
|
9441 14899 | }
|
9442 14900 | }
|
9443 - | /// A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
14901 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
14902 + | /* RustType.kt:516 */
|
9444 14903 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14904 + | /* ServerBuilderGenerator.kt:211 */
|
9445 14905 | pub struct Builder {
|
14906 + | /* ServerBuilderGenerator.kt:308 */
|
9446 14907 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14908 + | /* ServerBuilderGenerator.kt:308 */
|
9447 14909 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
14910 + | /* ServerBuilderGenerator.kt:211 */
|
9448 14911 | }
|
14912 + | /* ServerBuilderGenerator.kt:215 */
|
9449 14913 | impl Builder {
|
14914 + | /* ServerBuilderGenerator.kt:331 */
|
9450 14915 | #[allow(missing_docs)] // documentation missing in model
|
14916 + | /* ServerBuilderGenerator.kt:343 */
|
9451 14917 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9452 - | self.foo = input;
|
14918 + | /* ServerBuilderGenerator.kt:344 */
|
14919 + | self.foo =
|
14920 + | /* ServerBuilderGenerator.kt:376 */input
|
14921 + | /* ServerBuilderGenerator.kt:344 */;
|
9453 14922 | self
|
14923 + | /* ServerBuilderGenerator.kt:343 */
|
9454 14924 | }
|
14925 + | /* ServerBuilderGenerator.kt:426 */
|
9455 14926 | #[allow(missing_docs)] // documentation missing in model
|
14927 + | /* ServerBuilderGenerator.kt:428 */
|
9456 14928 | pub(crate) fn set_foo(
|
9457 14929 | mut self,
|
9458 14930 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9459 14931 | ) -> Self {
|
14932 + | /* ServerBuilderGenerator.kt:429 */
|
9460 14933 | self.foo = input.map(|v| v.into());
|
9461 14934 | self
|
14935 + | /* ServerBuilderGenerator.kt:428 */
|
9462 14936 | }
|
14937 + | /* ServerBuilderGenerator.kt:331 */
|
9463 14938 | #[allow(missing_docs)] // documentation missing in model
|
14939 + | /* ServerBuilderGenerator.kt:343 */
|
9464 14940 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
9465 - | self.blob = input;
|
14941 + | /* ServerBuilderGenerator.kt:344 */
|
14942 + | self.blob =
|
14943 + | /* ServerBuilderGenerator.kt:376 */input
|
14944 + | /* ServerBuilderGenerator.kt:344 */;
|
9466 14945 | self
|
14946 + | /* ServerBuilderGenerator.kt:343 */
|
9467 14947 | }
|
14948 + | /* ServerBuilderGenerator.kt:426 */
|
9468 14949 | #[allow(missing_docs)] // documentation missing in model
|
14950 + | /* ServerBuilderGenerator.kt:428 */
|
9469 14951 | pub(crate) fn set_blob(
|
9470 14952 | mut self,
|
9471 14953 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
9472 14954 | ) -> Self {
|
14955 + | /* ServerBuilderGenerator.kt:429 */
|
9473 14956 | self.blob = input.map(|v| v.into());
|
9474 14957 | self
|
14958 + | /* ServerBuilderGenerator.kt:428 */
|
9475 14959 | }
|
9476 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
14960 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
14961 + | /* ServerBuilderGenerator.kt:271 */
|
9477 14962 | pub fn build(self) -> crate::input::HttpPayloadTraitsInput {
|
9478 14963 | self.build_enforcing_all_constraints()
|
9479 14964 | }
|
14965 + | /* ServerBuilderGenerator.kt:283 */
|
9480 14966 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadTraitsInput {
|
14967 + | /* ServerBuilderGenerator.kt:542 */
|
9481 14968 | crate::input::HttpPayloadTraitsInput {
|
14969 + | /* ServerBuilderGenerator.kt:546 */
|
9482 14970 | foo: self.foo,
|
14971 + | /* ServerBuilderGenerator.kt:546 */
|
9483 14972 | blob: self.blob,
|
14973 + | /* ServerBuilderGenerator.kt:542 */
|
9484 14974 | }
|
14975 + | /* ServerBuilderGenerator.kt:283 */
|
9485 14976 | }
|
14977 + | /* ServerBuilderGenerator.kt:215 */
|
9486 14978 | }
|
14979 + |
|
14980 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9487 14981 | }
|
9488 - | /// See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
14982 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
9489 14983 | pub mod http_prefix_headers_in_response_input {
|
9490 14984 |
|
14985 + | /* ServerBuilderGenerator.kt:461 */
|
9491 14986 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInResponseInput {
|
9492 14987 | fn from(builder: Builder) -> Self {
|
9493 14988 | builder.build()
|
9494 14989 | }
|
9495 14990 | }
|
9496 - | /// A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
14991 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
14992 + | /* RustType.kt:516 */
|
9497 14993 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9498 - | pub struct Builder {}
|
14994 + | /* ServerBuilderGenerator.kt:211 */
|
14995 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14996 + | /* ServerBuilderGenerator.kt:215 */
|
9499 14997 | impl Builder {
|
9500 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
14998 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
14999 + | /* ServerBuilderGenerator.kt:271 */
|
9501 15000 | pub fn build(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
9502 15001 | self.build_enforcing_all_constraints()
|
9503 15002 | }
|
15003 + | /* ServerBuilderGenerator.kt:283 */
|
9504 15004 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
9505 - | crate::input::HttpPrefixHeadersInResponseInput {}
|
15005 + | /* ServerBuilderGenerator.kt:542 */
|
15006 + | crate::input::HttpPrefixHeadersInResponseInput {
|
15007 + | /* ServerBuilderGenerator.kt:542 */}
|
15008 + | /* ServerBuilderGenerator.kt:283 */
|
9506 15009 | }
|
15010 + | /* ServerBuilderGenerator.kt:215 */
|
9507 15011 | }
|
15012 + |
|
15013 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9508 15014 | }
|
9509 - | /// See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15015 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
9510 15016 | pub mod http_prefix_headers_input {
|
9511 15017 |
|
15018 + | /* ServerBuilderGenerator.kt:461 */
|
9512 15019 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInput {
|
9513 15020 | fn from(builder: Builder) -> Self {
|
9514 15021 | builder.build()
|
9515 15022 | }
|
9516 15023 | }
|
9517 - | /// A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15024 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15025 + | /* RustType.kt:516 */
|
9518 15026 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15027 + | /* ServerBuilderGenerator.kt:211 */
|
9519 15028 | pub struct Builder {
|
15029 + | /* ServerBuilderGenerator.kt:308 */
|
9520 15030 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15031 + | /* ServerBuilderGenerator.kt:308 */
|
9521 15032 | pub(crate) foo_map: ::std::option::Option<
|
9522 15033 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9523 15034 | >,
|
15035 + | /* ServerBuilderGenerator.kt:211 */
|
9524 15036 | }
|
15037 + | /* ServerBuilderGenerator.kt:215 */
|
9525 15038 | impl Builder {
|
15039 + | /* ServerBuilderGenerator.kt:331 */
|
9526 15040 | #[allow(missing_docs)] // documentation missing in model
|
15041 + | /* ServerBuilderGenerator.kt:343 */
|
9527 15042 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9528 - | self.foo = input;
|
15043 + | /* ServerBuilderGenerator.kt:344 */
|
15044 + | self.foo =
|
15045 + | /* ServerBuilderGenerator.kt:376 */input
|
15046 + | /* ServerBuilderGenerator.kt:344 */;
|
9529 15047 | self
|
15048 + | /* ServerBuilderGenerator.kt:343 */
|
9530 15049 | }
|
15050 + | /* ServerBuilderGenerator.kt:426 */
|
9531 15051 | #[allow(missing_docs)] // documentation missing in model
|
15052 + | /* ServerBuilderGenerator.kt:428 */
|
9532 15053 | pub(crate) fn set_foo(
|
9533 15054 | mut self,
|
9534 15055 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9535 15056 | ) -> Self {
|
15057 + | /* ServerBuilderGenerator.kt:429 */
|
9536 15058 | self.foo = input.map(|v| v.into());
|
9537 15059 | self
|
15060 + | /* ServerBuilderGenerator.kt:428 */
|
9538 15061 | }
|
15062 + | /* ServerBuilderGenerator.kt:331 */
|
9539 15063 | #[allow(missing_docs)] // documentation missing in model
|
15064 + | /* ServerBuilderGenerator.kt:343 */
|
9540 15065 | pub fn foo_map(
|
9541 15066 | mut self,
|
9542 15067 | input: ::std::option::Option<
|
9543 15068 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9544 15069 | >,
|
9545 15070 | ) -> Self {
|
9546 - | self.foo_map = input;
|
15071 + | /* ServerBuilderGenerator.kt:344 */
|
15072 + | self.foo_map =
|
15073 + | /* ServerBuilderGenerator.kt:376 */input
|
15074 + | /* ServerBuilderGenerator.kt:344 */;
|
9547 15075 | self
|
15076 + | /* ServerBuilderGenerator.kt:343 */
|
9548 15077 | }
|
15078 + | /* ServerBuilderGenerator.kt:426 */
|
9549 15079 | #[allow(missing_docs)] // documentation missing in model
|
15080 + | /* ServerBuilderGenerator.kt:428 */
|
9550 15081 | pub(crate) fn set_foo_map(
|
9551 15082 | mut self,
|
9552 15083 | input: Option<
|
9553 15084 | impl ::std::convert::Into<
|
9554 15085 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9555 15086 | >,
|
9556 15087 | >,
|
9557 15088 | ) -> Self {
|
15089 + | /* ServerBuilderGenerator.kt:429 */
|
9558 15090 | self.foo_map = input.map(|v| v.into());
|
9559 15091 | self
|
15092 + | /* ServerBuilderGenerator.kt:428 */
|
9560 15093 | }
|
9561 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15094 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15095 + | /* ServerBuilderGenerator.kt:271 */
|
9562 15096 | pub fn build(self) -> crate::input::HttpPrefixHeadersInput {
|
9563 15097 | self.build_enforcing_all_constraints()
|
9564 15098 | }
|
15099 + | /* ServerBuilderGenerator.kt:283 */
|
9565 15100 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInput {
|
15101 + | /* ServerBuilderGenerator.kt:542 */
|
9566 15102 | crate::input::HttpPrefixHeadersInput {
|
15103 + | /* ServerBuilderGenerator.kt:546 */
|
9567 15104 | foo: self.foo,
|
15105 + | /* ServerBuilderGenerator.kt:546 */
|
9568 15106 | foo_map: self.foo_map,
|
15107 + | /* ServerBuilderGenerator.kt:542 */
|
9569 15108 | }
|
15109 + | /* ServerBuilderGenerator.kt:283 */
|
9570 15110 | }
|
15111 + | /* ServerBuilderGenerator.kt:215 */
|
9571 15112 | }
|
15113 + |
|
15114 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9572 15115 | }
|
9573 - | /// See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15116 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
9574 15117 | pub mod query_params_as_string_list_map_input {
|
9575 15118 |
|
15119 + | /* ServerBuilderGenerator.kt:461 */
|
9576 15120 | impl ::std::convert::From<Builder> for crate::input::QueryParamsAsStringListMapInput {
|
9577 15121 | fn from(builder: Builder) -> Self {
|
9578 15122 | builder.build()
|
9579 15123 | }
|
9580 15124 | }
|
9581 - | /// A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15125 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15126 + | /* RustType.kt:516 */
|
9582 15127 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15128 + | /* ServerBuilderGenerator.kt:211 */
|
9583 15129 | pub struct Builder {
|
15130 + | /* ServerBuilderGenerator.kt:308 */
|
9584 15131 | pub(crate) qux: ::std::option::Option<::std::string::String>,
|
15132 + | /* ServerBuilderGenerator.kt:308 */
|
9585 15133 | pub(crate) foo: ::std::option::Option<
|
9586 15134 | ::std::collections::HashMap<
|
9587 15135 | ::std::string::String,
|
9588 15136 | ::std::vec::Vec<::std::string::String>,
|
9589 15137 | >,
|
9590 15138 | >,
|
15139 + | /* ServerBuilderGenerator.kt:211 */
|
9591 15140 | }
|
15141 + | /* ServerBuilderGenerator.kt:215 */
|
9592 15142 | impl Builder {
|
15143 + | /* ServerBuilderGenerator.kt:331 */
|
9593 15144 | #[allow(missing_docs)] // documentation missing in model
|
15145 + | /* ServerBuilderGenerator.kt:343 */
|
9594 15146 | pub fn qux(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9595 - | self.qux = input;
|
15147 + | /* ServerBuilderGenerator.kt:344 */
|
15148 + | self.qux =
|
15149 + | /* ServerBuilderGenerator.kt:376 */input
|
15150 + | /* ServerBuilderGenerator.kt:344 */;
|
9596 15151 | self
|
15152 + | /* ServerBuilderGenerator.kt:343 */
|
9597 15153 | }
|
15154 + | /* ServerBuilderGenerator.kt:426 */
|
9598 15155 | #[allow(missing_docs)] // documentation missing in model
|
15156 + | /* ServerBuilderGenerator.kt:428 */
|
9599 15157 | pub(crate) fn set_qux(
|
9600 15158 | mut self,
|
9601 15159 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9602 15160 | ) -> Self {
|
15161 + | /* ServerBuilderGenerator.kt:429 */
|
9603 15162 | self.qux = input.map(|v| v.into());
|
9604 15163 | self
|
15164 + | /* ServerBuilderGenerator.kt:428 */
|
9605 15165 | }
|
15166 + | /* ServerBuilderGenerator.kt:331 */
|
9606 15167 | #[allow(missing_docs)] // documentation missing in model
|
15168 + | /* ServerBuilderGenerator.kt:343 */
|
9607 15169 | pub fn foo(
|
9608 15170 | mut self,
|
9609 15171 | input: ::std::option::Option<
|
9610 15172 | ::std::collections::HashMap<
|
9611 15173 | ::std::string::String,
|
9612 15174 | ::std::vec::Vec<::std::string::String>,
|
9613 15175 | >,
|
9614 15176 | >,
|
9615 15177 | ) -> Self {
|
9616 - | self.foo = input;
|
15178 + | /* ServerBuilderGenerator.kt:344 */
|
15179 + | self.foo =
|
15180 + | /* ServerBuilderGenerator.kt:376 */input
|
15181 + | /* ServerBuilderGenerator.kt:344 */;
|
9617 15182 | self
|
15183 + | /* ServerBuilderGenerator.kt:343 */
|
9618 15184 | }
|
15185 + | /* ServerBuilderGenerator.kt:426 */
|
9619 15186 | #[allow(missing_docs)] // documentation missing in model
|
15187 + | /* ServerBuilderGenerator.kt:428 */
|
9620 15188 | pub(crate) fn set_foo(
|
9621 15189 | mut self,
|
9622 15190 | input: Option<
|
9623 15191 | impl ::std::convert::Into<
|
9624 15192 | ::std::collections::HashMap<
|
9625 15193 | ::std::string::String,
|
9626 15194 | ::std::vec::Vec<::std::string::String>,
|
9627 15195 | >,
|
9628 15196 | >,
|
9629 15197 | >,
|
9630 15198 | ) -> Self {
|
15199 + | /* ServerBuilderGenerator.kt:429 */
|
9631 15200 | self.foo = input.map(|v| v.into());
|
9632 15201 | self
|
15202 + | /* ServerBuilderGenerator.kt:428 */
|
9633 15203 | }
|
9634 - | /// Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15204 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15205 + | /* ServerBuilderGenerator.kt:271 */
|
9635 15206 | pub fn build(self) -> crate::input::QueryParamsAsStringListMapInput {
|
9636 15207 | self.build_enforcing_all_constraints()
|
9637 15208 | }
|
15209 + | /* ServerBuilderGenerator.kt:283 */
|
9638 15210 | fn build_enforcing_all_constraints(self) -> crate::input::QueryParamsAsStringListMapInput {
|
15211 + | /* ServerBuilderGenerator.kt:542 */
|
9639 15212 | crate::input::QueryParamsAsStringListMapInput {
|
15213 + | /* ServerBuilderGenerator.kt:546 */
|
9640 15214 | qux: self.qux,
|
15215 + | /* ServerBuilderGenerator.kt:546 */
|
9641 15216 | foo: self.foo,
|
15217 + | /* ServerBuilderGenerator.kt:542 */
|
9642 15218 | }
|
15219 + | /* ServerBuilderGenerator.kt:283 */
|
9643 15220 | }
|
15221 + | /* ServerBuilderGenerator.kt:215 */
|
9644 15222 | }
|
15223 + |
|
15224 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9645 15225 | }
|
9646 - | /// See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15226 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
9647 15227 | pub mod query_precedence_input {
|
9648 15228 |
|
15229 + | /* ServerBuilderGenerator.kt:461 */
|
9649 15230 | impl ::std::convert::From<Builder> for crate::input::QueryPrecedenceInput {
|
9650 15231 | fn from(builder: Builder) -> Self {
|
9651 15232 | builder.build()
|
9652 15233 | }
|
9653 15234 | }
|
9654 - | /// A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15235 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15236 + | /* RustType.kt:516 */
|
9655 15237 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15238 + | /* ServerBuilderGenerator.kt:211 */
|
9656 15239 | pub struct Builder {
|
15240 + | /* ServerBuilderGenerator.kt:308 */
|
9657 15241 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15242 + | /* ServerBuilderGenerator.kt:308 */
|
9658 15243 | pub(crate) baz: ::std::option::Option<
|
9659 15244 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9660 15245 | >,
|
15246 + | /* ServerBuilderGenerator.kt:211 */
|
9661 15247 | }
|
15248 + | /* ServerBuilderGenerator.kt:215 */
|
9662 15249 | impl Builder {
|
15250 + | /* ServerBuilderGenerator.kt:331 */
|
9663 15251 | #[allow(missing_docs)] // documentation missing in model
|
15252 + | /* ServerBuilderGenerator.kt:343 */
|
9664 15253 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9665 - | self.foo = input;
|
15254 + | /* ServerBuilderGenerator.kt:344 */
|
15255 + | self.foo =
|
15256 + | /* ServerBuilderGenerator.kt:376 */input
|
15257 + | /* ServerBuilderGenerator.kt:344 */;
|
9666 15258 | self
|
15259 + | /* ServerBuilderGenerator.kt:343 */
|
9667 15260 | }
|
15261 + | /* ServerBuilderGenerator.kt:426 */
|
9668 15262 | #[allow(missing_docs)] // documentation missing in model
|
15263 + | /* ServerBuilderGenerator.kt:428 */
|
9669 15264 | pub(crate) fn set_foo(
|
9670 15265 | mut self,
|
9671 15266 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9672 15267 | ) -> Self {
|
15268 + | /* ServerBuilderGenerator.kt:429 */
|
9673 15269 | self.foo = input.map(|v| v.into());
|
9674 15270 | self
|
15271 + | /* ServerBuilderGenerator.kt:428 */
|
9675 15272 | }
|
15273 + | /* ServerBuilderGenerator.kt:331 */
|
9676 15274 | #[allow(missing_docs)] // documentation missing in model
|
15275 + | /* ServerBuilderGenerator.kt:343 */
|
9677 15276 | pub fn baz(
|
9678 15277 | mut self,
|
9679 15278 | input: ::std::option::Option<
|
9680 15279 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9681 15280 | >,
|
9682 15281 | ) -> Self {
|
9683 - | self.baz = input;
|
15282 + | /* ServerBuilderGenerator.kt:344 */
|
15283 + | self.baz =
|
15284 + | /* ServerBuilderGenerator.kt:376 */input
|
15285 + | /* ServerBuilderGenerator.kt:344 */;
|
9684 15286 | self
|
15287 + | /* ServerBuilderGenerator.kt:343 */
|
9685 15288 | }
|
15289 + | /* ServerBuilderGenerator.kt:426 */
|
9686 15290 | #[allow(missing_docs)] // documentation missing in model
|
15291 + | /* ServerBuilderGenerator.kt:428 */
|
9687 15292 | pub(crate) fn set_baz(
|
9688 15293 | mut self,
|
9689 15294 | input: Option<
|
9690 15295 | impl ::std::convert::Into<
|
9691 15296 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9692 15297 | >,
|
9693 15298 | >,
|
9694 15299 | ) -> Self {
|
15300 + | /* ServerBuilderGenerator.kt:429 */
|
9695 15301 | self.baz = input.map(|v| v.into());
|
9696 15302 | self
|
15303 + | /* ServerBuilderGenerator.kt:428 */
|
9697 15304 | }
|
9698 - | /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15305 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15306 + | /* ServerBuilderGenerator.kt:271 */
|
9699 15307 | pub fn build(self) -> crate::input::QueryPrecedenceInput {
|
9700 15308 | self.build_enforcing_all_constraints()
|
9701 15309 | }
|
15310 + | /* ServerBuilderGenerator.kt:283 */
|
9702 15311 | fn build_enforcing_all_constraints(self) -> crate::input::QueryPrecedenceInput {
|
15312 + | /* ServerBuilderGenerator.kt:542 */
|
9703 15313 | crate::input::QueryPrecedenceInput {
|
15314 + | /* ServerBuilderGenerator.kt:546 */
|
9704 15315 | foo: self.foo,
|
15316 + | /* ServerBuilderGenerator.kt:546 */
|
9705 15317 | baz: self.baz,
|
15318 + | /* ServerBuilderGenerator.kt:542 */
|
9706 15319 | }
|
15320 + | /* ServerBuilderGenerator.kt:283 */
|
9707 15321 | }
|
15322 + | /* ServerBuilderGenerator.kt:215 */
|
9708 15323 | }
|
15324 + |
|
15325 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9709 15326 | }
|
9710 - | /// See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15327 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
9711 15328 | pub mod query_idempotency_token_auto_fill_input {
|
9712 15329 |
|
15330 + | /* ServerBuilderGenerator.kt:461 */
|
9713 15331 | impl ::std::convert::From<Builder> for crate::input::QueryIdempotencyTokenAutoFillInput {
|
9714 15332 | fn from(builder: Builder) -> Self {
|
9715 15333 | builder.build()
|
9716 15334 | }
|
9717 15335 | }
|
9718 - | /// A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15336 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15337 + | /* RustType.kt:516 */
|
9719 15338 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15339 + | /* ServerBuilderGenerator.kt:211 */
|
9720 15340 | pub struct Builder {
|
15341 + | /* ServerBuilderGenerator.kt:308 */
|
9721 15342 | pub(crate) token: ::std::option::Option<::std::string::String>,
|
15343 + | /* ServerBuilderGenerator.kt:211 */
|
9722 15344 | }
|
15345 + | /* ServerBuilderGenerator.kt:215 */
|
9723 15346 | impl Builder {
|
15347 + | /* ServerBuilderGenerator.kt:331 */
|
9724 15348 | #[allow(missing_docs)] // documentation missing in model
|
15349 + | /* ServerBuilderGenerator.kt:343 */
|
9725 15350 | pub fn token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9726 - | self.token = input;
|
15351 + | /* ServerBuilderGenerator.kt:344 */
|
15352 + | self.token =
|
15353 + | /* ServerBuilderGenerator.kt:376 */input
|
15354 + | /* ServerBuilderGenerator.kt:344 */;
|
9727 15355 | self
|
15356 + | /* ServerBuilderGenerator.kt:343 */
|
9728 15357 | }
|
15358 + | /* ServerBuilderGenerator.kt:426 */
|
9729 15359 | #[allow(missing_docs)] // documentation missing in model
|
15360 + | /* ServerBuilderGenerator.kt:428 */
|
9730 15361 | pub(crate) fn set_token(
|
9731 15362 | mut self,
|
9732 15363 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9733 15364 | ) -> Self {
|
15365 + | /* ServerBuilderGenerator.kt:429 */
|
9734 15366 | self.token = input.map(|v| v.into());
|
9735 15367 | self
|
15368 + | /* ServerBuilderGenerator.kt:428 */
|
9736 15369 | }
|
9737 - | /// Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15370 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15371 + | /* ServerBuilderGenerator.kt:271 */
|
9738 15372 | pub fn build(self) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
9739 15373 | self.build_enforcing_all_constraints()
|
9740 15374 | }
|
15375 + | /* ServerBuilderGenerator.kt:283 */
|
9741 15376 | fn build_enforcing_all_constraints(
|
9742 15377 | self,
|
9743 15378 | ) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
9744 - | crate::input::QueryIdempotencyTokenAutoFillInput { token: self.token }
|
15379 + | /* ServerBuilderGenerator.kt:542 */
|
15380 + | crate::input::QueryIdempotencyTokenAutoFillInput {
|
15381 + | /* ServerBuilderGenerator.kt:546 */
|
15382 + | token: self.token,
|
15383 + | /* ServerBuilderGenerator.kt:542 */
|
9745 15384 | }
|
15385 + | /* ServerBuilderGenerator.kt:283 */
|
9746 15386 | }
|
15387 + | /* ServerBuilderGenerator.kt:215 */
|
15388 + | }
|
15389 + |
|
15390 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9747 15391 | }
|
9748 - | /// See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15392 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
9749 15393 | pub mod omits_serializing_empty_lists_input {
|
9750 15394 |
|
15395 + | /* RustType.kt:516 */
|
9751 15396 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9752 - | /// Holds one variant for each of the ways the builder can fail.
|
15397 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15398 + | /* RustType.kt:516 */
|
9753 15399 | #[non_exhaustive]
|
15400 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9754 15401 | #[allow(clippy::enum_variant_names)]
|
9755 15402 | pub enum ConstraintViolation {
|
9756 - | /// Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
15403 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
15404 + | /* RustType.kt:516 */
|
9757 15405 | #[doc(hidden)]
|
15406 + | /* ServerBuilderConstraintViolations.kt:164 */
|
9758 15407 | QueryEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
15408 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9759 15409 | }
|
15410 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9760 15411 | impl ::std::fmt::Display for ConstraintViolation {
|
15412 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9761 15413 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15414 + | /* ServerBuilderConstraintViolations.kt:119 */
|
9762 15415 | match self {
|
9763 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
9764 - | }
|
15416 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
15417 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15418 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9765 15419 | }
|
15420 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9766 15421 | }
|
15422 + | /* ServerBuilderConstraintViolations.kt:84 */
|
9767 15423 | impl ::std::error::Error for ConstraintViolation {}
|
15424 + | /* ServerBuilderConstraintViolations.kt:171 */
|
9768 15425 | impl ConstraintViolation {
|
9769 15426 | pub(crate) fn as_validation_exception_field(
|
9770 15427 | self,
|
9771 15428 | path: ::std::string::String,
|
9772 15429 | ) -> crate::model::ValidationExceptionField {
|
9773 15430 | match self {
|
9774 15431 | ConstraintViolation::QueryEnumList(inner) => {
|
9775 15432 | inner.as_validation_exception_field(path + "/queryEnumList")
|
9776 15433 | }
|
9777 15434 | }
|
9778 15435 | }
|
9779 15436 | }
|
15437 + | /* ServerBuilderGenerator.kt:234 */
|
9780 15438 | impl ::std::convert::From<ConstraintViolation>
|
9781 15439 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9782 15440 | {
|
9783 15441 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9784 15442 | let first_validation_exception_field =
|
9785 15443 | constraint_violation.as_validation_exception_field("".to_owned());
|
9786 15444 | let validation_exception = crate::error::ValidationException {
|
9787 15445 | message: format!(
|
9788 15446 | "1 validation error detected. {}",
|
9789 15447 | &first_validation_exception_field.message
|
9790 15448 | ),
|
9791 15449 | field_list: Some(vec![first_validation_exception_field]),
|
9792 15450 | };
|
9793 15451 | Self::ConstraintViolation(
|
9794 15452 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9795 15453 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9796 15454 | )
|
9797 15455 | }
|
9798 15456 | }
|
15457 + | /* ServerBuilderGenerator.kt:244 */
|
9799 15458 | impl ::std::convert::From<Builder>
|
9800 15459 | for crate::constrained::MaybeConstrained<crate::input::OmitsSerializingEmptyListsInput>
|
9801 15460 | {
|
9802 15461 | fn from(builder: Builder) -> Self {
|
9803 15462 | Self::Unconstrained(builder)
|
9804 15463 | }
|
9805 15464 | }
|
15465 + | /* ServerBuilderGenerator.kt:446 */
|
9806 15466 | impl ::std::convert::TryFrom<Builder> for crate::input::OmitsSerializingEmptyListsInput {
|
9807 15467 | type Error = ConstraintViolation;
|
9808 15468 |
|
9809 15469 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9810 15470 | builder.build()
|
9811 15471 | }
|
9812 15472 | }
|
9813 - | /// A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15473 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15474 + | /* RustType.kt:516 */
|
9814 15475 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15476 + | /* ServerBuilderGenerator.kt:211 */
|
9815 15477 | pub struct Builder {
|
15478 + | /* ServerBuilderGenerator.kt:308 */
|
9816 15479 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
15480 + | /* ServerBuilderGenerator.kt:308 */
|
9817 15481 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
15482 + | /* ServerBuilderGenerator.kt:308 */
|
9818 15483 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
15484 + | /* ServerBuilderGenerator.kt:308 */
|
9819 15485 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
15486 + | /* ServerBuilderGenerator.kt:308 */
|
9820 15487 | pub(crate) query_timestamp_list:
|
9821 15488 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
15489 + | /* ServerBuilderGenerator.kt:308 */
|
9822 15490 | pub(crate) query_enum_list: ::std::option::Option<
|
9823 15491 | crate::constrained::MaybeConstrained<
|
9824 15492 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
9825 15493 | >,
|
9826 15494 | >,
|
15495 + | /* ServerBuilderGenerator.kt:308 */
|
9827 15496 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
15497 + | /* ServerBuilderGenerator.kt:211 */
|
9828 15498 | }
|
15499 + | /* ServerBuilderGenerator.kt:215 */
|
9829 15500 | impl Builder {
|
15501 + | /* ServerBuilderGenerator.kt:331 */
|
9830 15502 | #[allow(missing_docs)] // documentation missing in model
|
15503 + | /* ServerBuilderGenerator.kt:343 */
|
9831 15504 | pub fn query_string_list(
|
9832 15505 | mut self,
|
9833 15506 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
9834 15507 | ) -> Self {
|
9835 - | self.query_string_list = input;
|
15508 + | /* ServerBuilderGenerator.kt:344 */
|
15509 + | self.query_string_list =
|
15510 + | /* ServerBuilderGenerator.kt:376 */input
|
15511 + | /* ServerBuilderGenerator.kt:344 */;
|
9836 15512 | self
|
15513 + | /* ServerBuilderGenerator.kt:343 */
|
9837 15514 | }
|
15515 + | /* ServerBuilderGenerator.kt:426 */
|
9838 15516 | #[allow(missing_docs)] // documentation missing in model
|
15517 + | /* ServerBuilderGenerator.kt:428 */
|
9839 15518 | pub(crate) fn set_query_string_list(
|
9840 15519 | mut self,
|
9841 15520 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
9842 15521 | ) -> Self {
|
15522 + | /* ServerBuilderGenerator.kt:429 */
|
9843 15523 | self.query_string_list = input.map(|v| v.into());
|
9844 15524 | self
|
15525 + | /* ServerBuilderGenerator.kt:428 */
|
9845 15526 | }
|
15527 + | /* ServerBuilderGenerator.kt:331 */
|
9846 15528 | #[allow(missing_docs)] // documentation missing in model
|
15529 + | /* ServerBuilderGenerator.kt:343 */
|
9847 15530 | pub fn query_integer_list(
|
9848 15531 | mut self,
|
9849 15532 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
9850 15533 | ) -> Self {
|
9851 - | self.query_integer_list = input;
|
15534 + | /* ServerBuilderGenerator.kt:344 */
|
15535 + | self.query_integer_list =
|
15536 + | /* ServerBuilderGenerator.kt:376 */input
|
15537 + | /* ServerBuilderGenerator.kt:344 */;
|
9852 15538 | self
|
15539 + | /* ServerBuilderGenerator.kt:343 */
|
9853 15540 | }
|
15541 + | /* ServerBuilderGenerator.kt:426 */
|
9854 15542 | #[allow(missing_docs)] // documentation missing in model
|
15543 + | /* ServerBuilderGenerator.kt:428 */
|
9855 15544 | pub(crate) fn set_query_integer_list(
|
9856 15545 | mut self,
|
9857 15546 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
9858 15547 | ) -> Self {
|
15548 + | /* ServerBuilderGenerator.kt:429 */
|
9859 15549 | self.query_integer_list = input.map(|v| v.into());
|
9860 15550 | self
|
15551 + | /* ServerBuilderGenerator.kt:428 */
|
9861 15552 | }
|
15553 + | /* ServerBuilderGenerator.kt:331 */
|
9862 15554 | #[allow(missing_docs)] // documentation missing in model
|
15555 + | /* ServerBuilderGenerator.kt:343 */
|
9863 15556 | pub fn query_double_list(
|
9864 15557 | mut self,
|
9865 15558 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
9866 15559 | ) -> Self {
|
9867 - | self.query_double_list = input;
|
15560 + | /* ServerBuilderGenerator.kt:344 */
|
15561 + | self.query_double_list =
|
15562 + | /* ServerBuilderGenerator.kt:376 */input
|
15563 + | /* ServerBuilderGenerator.kt:344 */;
|
9868 15564 | self
|
15565 + | /* ServerBuilderGenerator.kt:343 */
|
9869 15566 | }
|
15567 + | /* ServerBuilderGenerator.kt:426 */
|
9870 15568 | #[allow(missing_docs)] // documentation missing in model
|
15569 + | /* ServerBuilderGenerator.kt:428 */
|
9871 15570 | pub(crate) fn set_query_double_list(
|
9872 15571 | mut self,
|
9873 15572 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
9874 15573 | ) -> Self {
|
15574 + | /* ServerBuilderGenerator.kt:429 */
|
9875 15575 | self.query_double_list = input.map(|v| v.into());
|
9876 15576 | self
|
15577 + | /* ServerBuilderGenerator.kt:428 */
|
9877 15578 | }
|
15579 + | /* ServerBuilderGenerator.kt:331 */
|
9878 15580 | #[allow(missing_docs)] // documentation missing in model
|
15581 + | /* ServerBuilderGenerator.kt:343 */
|
9879 15582 | pub fn query_boolean_list(
|
9880 15583 | mut self,
|
9881 15584 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
9882 15585 | ) -> Self {
|
9883 - | self.query_boolean_list = input;
|
15586 + | /* ServerBuilderGenerator.kt:344 */
|
15587 + | self.query_boolean_list =
|
15588 + | /* ServerBuilderGenerator.kt:376 */input
|
15589 + | /* ServerBuilderGenerator.kt:344 */;
|
9884 15590 | self
|
15591 + | /* ServerBuilderGenerator.kt:343 */
|
9885 15592 | }
|
15593 + | /* ServerBuilderGenerator.kt:426 */
|
9886 15594 | #[allow(missing_docs)] // documentation missing in model
|
15595 + | /* ServerBuilderGenerator.kt:428 */
|
9887 15596 | pub(crate) fn set_query_boolean_list(
|
9888 15597 | mut self,
|
9889 15598 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
9890 15599 | ) -> Self {
|
15600 + | /* ServerBuilderGenerator.kt:429 */
|
9891 15601 | self.query_boolean_list = input.map(|v| v.into());
|
9892 15602 | self
|
15603 + | /* ServerBuilderGenerator.kt:428 */
|
9893 15604 | }
|
15605 + | /* ServerBuilderGenerator.kt:331 */
|
9894 15606 | #[allow(missing_docs)] // documentation missing in model
|
15607 + | /* ServerBuilderGenerator.kt:343 */
|
9895 15608 | pub fn query_timestamp_list(
|
9896 15609 | mut self,
|
9897 15610 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
9898 15611 | ) -> Self {
|
9899 - | self.query_timestamp_list = input;
|
15612 + | /* ServerBuilderGenerator.kt:344 */
|
15613 + | self.query_timestamp_list =
|
15614 + | /* ServerBuilderGenerator.kt:376 */input
|
15615 + | /* ServerBuilderGenerator.kt:344 */;
|
9900 15616 | self
|
15617 + | /* ServerBuilderGenerator.kt:343 */
|
9901 15618 | }
|
15619 + | /* ServerBuilderGenerator.kt:426 */
|
9902 15620 | #[allow(missing_docs)] // documentation missing in model
|
15621 + | /* ServerBuilderGenerator.kt:428 */
|
9903 15622 | pub(crate) fn set_query_timestamp_list(
|
9904 15623 | mut self,
|
9905 15624 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
9906 15625 | ) -> Self {
|
15626 + | /* ServerBuilderGenerator.kt:429 */
|
9907 15627 | self.query_timestamp_list = input.map(|v| v.into());
|
9908 15628 | self
|
15629 + | /* ServerBuilderGenerator.kt:428 */
|
9909 15630 | }
|
15631 + | /* ServerBuilderGenerator.kt:331 */
|
9910 15632 | #[allow(missing_docs)] // documentation missing in model
|
15633 + | /* ServerBuilderGenerator.kt:343 */
|
9911 15634 | pub fn query_enum_list(
|
9912 15635 | mut self,
|
9913 15636 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
9914 15637 | ) -> Self {
|
9915 - | self.query_enum_list = input.map(
|
9916 - | #[allow(clippy::redundant_closure)]
|
9917 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
9918 - | );
|
15638 + | /* ServerBuilderGenerator.kt:344 */
|
15639 + | self.query_enum_list =
|
15640 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
15641 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
15642 + | /* ServerBuilderGenerator.kt:369 */)
|
15643 + | /* ServerBuilderGenerator.kt:344 */;
|
9919 15644 | self
|
15645 + | /* ServerBuilderGenerator.kt:343 */
|
9920 15646 | }
|
15647 + | /* ServerBuilderGenerator.kt:426 */
|
9921 15648 | #[allow(missing_docs)] // documentation missing in model
|
15649 + | /* ServerBuilderGenerator.kt:428 */
|
9922 15650 | pub(crate) fn set_query_enum_list(
|
9923 15651 | mut self,
|
9924 15652 | input: Option<
|
9925 15653 | impl ::std::convert::Into<
|
9926 15654 | crate::constrained::MaybeConstrained<
|
9927 15655 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
9928 15656 | >,
|
9929 15657 | >,
|
9930 15658 | >,
|
9931 15659 | ) -> Self {
|
15660 + | /* ServerBuilderGenerator.kt:429 */
|
9932 15661 | self.query_enum_list = input.map(|v| v.into());
|
9933 15662 | self
|
15663 + | /* ServerBuilderGenerator.kt:428 */
|
9934 15664 | }
|
15665 + | /* ServerBuilderGenerator.kt:331 */
|
9935 15666 | #[allow(missing_docs)] // documentation missing in model
|
15667 + | /* ServerBuilderGenerator.kt:343 */
|
9936 15668 | pub fn query_integer_enum_list(
|
9937 15669 | mut self,
|
9938 15670 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
9939 15671 | ) -> Self {
|
9940 - | self.query_integer_enum_list = input;
|
15672 + | /* ServerBuilderGenerator.kt:344 */
|
15673 + | self.query_integer_enum_list =
|
15674 + | /* ServerBuilderGenerator.kt:376 */input
|
15675 + | /* ServerBuilderGenerator.kt:344 */;
|
9941 15676 | self
|
15677 + | /* ServerBuilderGenerator.kt:343 */
|
9942 15678 | }
|
15679 + | /* ServerBuilderGenerator.kt:426 */
|
9943 15680 | #[allow(missing_docs)] // documentation missing in model
|
15681 + | /* ServerBuilderGenerator.kt:428 */
|
9944 15682 | pub(crate) fn set_query_integer_enum_list(
|
9945 15683 | mut self,
|
9946 15684 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
9947 15685 | ) -> Self {
|
15686 + | /* ServerBuilderGenerator.kt:429 */
|
9948 15687 | self.query_integer_enum_list = input.map(|v| v.into());
|
9949 15688 | self
|
15689 + | /* ServerBuilderGenerator.kt:428 */
|
9950 15690 | }
|
9951 - | /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
9952 - | ///
|
15691 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15692 + | /// /* ServerBuilderGenerator.kt:260 */
|
9953 15693 | /// The builder fails to construct a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput) if a [`ConstraintViolation`] occurs.
|
9954 15694 | ///
|
15695 + | /* ServerBuilderGenerator.kt:271 */
|
9955 15696 | pub fn build(
|
9956 15697 | self,
|
9957 15698 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
9958 15699 | self.build_enforcing_all_constraints()
|
9959 15700 | }
|
15701 + | /* ServerBuilderGenerator.kt:283 */
|
9960 15702 | fn build_enforcing_all_constraints(
|
9961 15703 | self,
|
9962 15704 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
9963 - | Ok(crate::input::OmitsSerializingEmptyListsInput {
|
15705 + | /* ServerBuilderGenerator.kt:287 */
|
15706 + | Ok(
|
15707 + | /* ServerBuilderGenerator.kt:542 */
|
15708 + | crate::input::OmitsSerializingEmptyListsInput {
|
15709 + | /* ServerBuilderGenerator.kt:546 */
|
9964 15710 | query_string_list: self.query_string_list,
|
15711 + | /* ServerBuilderGenerator.kt:546 */
|
9965 15712 | query_integer_list: self.query_integer_list,
|
15713 + | /* ServerBuilderGenerator.kt:546 */
|
9966 15714 | query_double_list: self.query_double_list,
|
15715 + | /* ServerBuilderGenerator.kt:546 */
|
9967 15716 | query_boolean_list: self.query_boolean_list,
|
15717 + | /* ServerBuilderGenerator.kt:546 */
|
9968 15718 | query_timestamp_list: self.query_timestamp_list,
|
15719 + | /* ServerBuilderGenerator.kt:546 */
|
9969 15720 | query_enum_list: self
|
9970 15721 | .query_enum_list
|
15722 + | /* ServerBuilderGenerator.kt:602 */
|
9971 15723 | .map(|v| match v {
|
9972 15724 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
9973 15725 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
9974 15726 | })
|
15727 + | /* ServerBuilderGenerator.kt:614 */
|
9975 15728 | .map(|res| {
|
9976 15729 | res.map(|v| v.into())
|
9977 15730 | .map_err(ConstraintViolation::QueryEnumList)
|
9978 15731 | })
|
9979 15732 | .transpose()?,
|
15733 + | /* ServerBuilderGenerator.kt:546 */
|
9980 15734 | query_integer_enum_list: self.query_integer_enum_list,
|
9981 - | })
|
15735 + | /* ServerBuilderGenerator.kt:542 */
|
15736 + | }, /* ServerBuilderGenerator.kt:287 */
|
15737 + | )
|
15738 + | /* ServerBuilderGenerator.kt:283 */
|
9982 15739 | }
|
15740 + | /* ServerBuilderGenerator.kt:215 */
|
9983 15741 | }
|
15742 + |
|
15743 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9984 15744 | }
|
9985 - | /// See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
15745 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
9986 15746 | pub mod omits_null_serializes_empty_string_input {
|
9987 15747 |
|
15748 + | /* ServerBuilderGenerator.kt:461 */
|
9988 15749 | impl ::std::convert::From<Builder> for crate::input::OmitsNullSerializesEmptyStringInput {
|
9989 15750 | fn from(builder: Builder) -> Self {
|
9990 15751 | builder.build()
|
9991 15752 | }
|
9992 15753 | }
|
9993 - | /// A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
15754 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
15755 + | /* RustType.kt:516 */
|
9994 15756 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15757 + | /* ServerBuilderGenerator.kt:211 */
|
9995 15758 | pub struct Builder {
|
15759 + | /* ServerBuilderGenerator.kt:308 */
|
9996 15760 | pub(crate) null_value: ::std::option::Option<::std::string::String>,
|
15761 + | /* ServerBuilderGenerator.kt:308 */
|
9997 15762 | pub(crate) empty_string: ::std::option::Option<::std::string::String>,
|
15763 + | /* ServerBuilderGenerator.kt:211 */
|
9998 15764 | }
|
15765 + | /* ServerBuilderGenerator.kt:215 */
|
9999 15766 | impl Builder {
|
15767 + | /* ServerBuilderGenerator.kt:331 */
|
10000 15768 | #[allow(missing_docs)] // documentation missing in model
|
15769 + | /* ServerBuilderGenerator.kt:343 */
|
10001 15770 | pub fn null_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10002 - | self.null_value = input;
|
15771 + | /* ServerBuilderGenerator.kt:344 */
|
15772 + | self.null_value =
|
15773 + | /* ServerBuilderGenerator.kt:376 */input
|
15774 + | /* ServerBuilderGenerator.kt:344 */;
|
10003 15775 | self
|
15776 + | /* ServerBuilderGenerator.kt:343 */
|
10004 15777 | }
|
15778 + | /* ServerBuilderGenerator.kt:426 */
|
10005 15779 | #[allow(missing_docs)] // documentation missing in model
|
15780 + | /* ServerBuilderGenerator.kt:428 */
|
10006 15781 | pub(crate) fn set_null_value(
|
10007 15782 | mut self,
|
10008 15783 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10009 15784 | ) -> Self {
|
15785 + | /* ServerBuilderGenerator.kt:429 */
|
10010 15786 | self.null_value = input.map(|v| v.into());
|
10011 15787 | self
|
15788 + | /* ServerBuilderGenerator.kt:428 */
|
10012 15789 | }
|
15790 + | /* ServerBuilderGenerator.kt:331 */
|
10013 15791 | #[allow(missing_docs)] // documentation missing in model
|
15792 + | /* ServerBuilderGenerator.kt:343 */
|
10014 15793 | pub fn empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10015 - | self.empty_string = input;
|
15794 + | /* ServerBuilderGenerator.kt:344 */
|
15795 + | self.empty_string =
|
15796 + | /* ServerBuilderGenerator.kt:376 */input
|
15797 + | /* ServerBuilderGenerator.kt:344 */;
|
10016 15798 | self
|
15799 + | /* ServerBuilderGenerator.kt:343 */
|
10017 15800 | }
|
15801 + | /* ServerBuilderGenerator.kt:426 */
|
10018 15802 | #[allow(missing_docs)] // documentation missing in model
|
15803 + | /* ServerBuilderGenerator.kt:428 */
|
10019 15804 | pub(crate) fn set_empty_string(
|
10020 15805 | mut self,
|
10021 15806 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10022 15807 | ) -> Self {
|
15808 + | /* ServerBuilderGenerator.kt:429 */
|
10023 15809 | self.empty_string = input.map(|v| v.into());
|
10024 15810 | self
|
15811 + | /* ServerBuilderGenerator.kt:428 */
|
10025 15812 | }
|
10026 - | /// Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
15813 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
15814 + | /* ServerBuilderGenerator.kt:271 */
|
10027 15815 | pub fn build(self) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
10028 15816 | self.build_enforcing_all_constraints()
|
10029 15817 | }
|
15818 + | /* ServerBuilderGenerator.kt:283 */
|
10030 15819 | fn build_enforcing_all_constraints(
|
10031 15820 | self,
|
10032 15821 | ) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
15822 + | /* ServerBuilderGenerator.kt:542 */
|
10033 15823 | crate::input::OmitsNullSerializesEmptyStringInput {
|
15824 + | /* ServerBuilderGenerator.kt:546 */
|
10034 15825 | null_value: self.null_value,
|
15826 + | /* ServerBuilderGenerator.kt:546 */
|
10035 15827 | empty_string: self.empty_string,
|
15828 + | /* ServerBuilderGenerator.kt:542 */
|
10036 15829 | }
|
15830 + | /* ServerBuilderGenerator.kt:283 */
|
10037 15831 | }
|
15832 + | /* ServerBuilderGenerator.kt:215 */
|
10038 15833 | }
|
15834 + |
|
15835 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10039 15836 | }
|
10040 - | /// See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
15837 + | /// /* ServerBuilderGenerator.kt:171 */See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
10041 15838 | pub mod ignore_query_params_in_response_input {
|
10042 15839 |
|
15840 + | /* ServerBuilderGenerator.kt:461 */
|
10043 15841 | impl ::std::convert::From<Builder> for crate::input::IgnoreQueryParamsInResponseInput {
|
10044 15842 | fn from(builder: Builder) -> Self {
|
10045 15843 | builder.build()
|
10046 15844 | }
|
10047 15845 | }
|
10048 - | /// A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
15846 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
15847 + | /* RustType.kt:516 */
|
10049 15848 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10050 - | pub struct Builder {}
|
15849 + | /* ServerBuilderGenerator.kt:211 */
|
15850 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
15851 + | /* ServerBuilderGenerator.kt:215 */
|
10051 15852 | impl Builder {
|
10052 - | /// Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
15853 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
15854 + | /* ServerBuilderGenerator.kt:271 */
|
10053 15855 | pub fn build(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
10054 15856 | self.build_enforcing_all_constraints()
|
10055 15857 | }
|
15858 + | /* ServerBuilderGenerator.kt:283 */
|
10056 15859 | fn build_enforcing_all_constraints(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
10057 - | crate::input::IgnoreQueryParamsInResponseInput {}
|
15860 + | /* ServerBuilderGenerator.kt:542 */
|
15861 + | crate::input::IgnoreQueryParamsInResponseInput {
|
15862 + | /* ServerBuilderGenerator.kt:542 */}
|
15863 + | /* ServerBuilderGenerator.kt:283 */
|
10058 15864 | }
|
15865 + | /* ServerBuilderGenerator.kt:215 */
|
10059 15866 | }
|
15867 + |
|
15868 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10060 15869 | }
|
10061 - | /// See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
15870 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
10062 15871 | pub mod constant_and_variable_query_string_input {
|
10063 15872 |
|
15873 + | /* ServerBuilderGenerator.kt:461 */
|
10064 15874 | impl ::std::convert::From<Builder> for crate::input::ConstantAndVariableQueryStringInput {
|
10065 15875 | fn from(builder: Builder) -> Self {
|
10066 15876 | builder.build()
|
10067 15877 | }
|
10068 15878 | }
|
10069 - | /// A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
15879 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
15880 + | /* RustType.kt:516 */
|
10070 15881 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15882 + | /* ServerBuilderGenerator.kt:211 */
|
10071 15883 | pub struct Builder {
|
15884 + | /* ServerBuilderGenerator.kt:308 */
|
10072 15885 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
15886 + | /* ServerBuilderGenerator.kt:308 */
|
10073 15887 | pub(crate) maybe_set: ::std::option::Option<::std::string::String>,
|
15888 + | /* ServerBuilderGenerator.kt:211 */
|
10074 15889 | }
|
15890 + | /* ServerBuilderGenerator.kt:215 */
|
10075 15891 | impl Builder {
|
15892 + | /* ServerBuilderGenerator.kt:331 */
|
10076 15893 | #[allow(missing_docs)] // documentation missing in model
|
15894 + | /* ServerBuilderGenerator.kt:343 */
|
10077 15895 | pub fn baz(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10078 - | self.baz = input;
|
15896 + | /* ServerBuilderGenerator.kt:344 */
|
15897 + | self.baz =
|
15898 + | /* ServerBuilderGenerator.kt:376 */input
|
15899 + | /* ServerBuilderGenerator.kt:344 */;
|
10079 15900 | self
|
15901 + | /* ServerBuilderGenerator.kt:343 */
|
10080 15902 | }
|
15903 + | /* ServerBuilderGenerator.kt:426 */
|
10081 15904 | #[allow(missing_docs)] // documentation missing in model
|
15905 + | /* ServerBuilderGenerator.kt:428 */
|
10082 15906 | pub(crate) fn set_baz(
|
10083 15907 | mut self,
|
10084 15908 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10085 15909 | ) -> Self {
|
15910 + | /* ServerBuilderGenerator.kt:429 */
|
10086 15911 | self.baz = input.map(|v| v.into());
|
10087 15912 | self
|
15913 + | /* ServerBuilderGenerator.kt:428 */
|
10088 15914 | }
|
15915 + | /* ServerBuilderGenerator.kt:331 */
|
10089 15916 | #[allow(missing_docs)] // documentation missing in model
|
15917 + | /* ServerBuilderGenerator.kt:343 */
|
10090 15918 | pub fn maybe_set(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10091 - | self.maybe_set = input;
|
15919 + | /* ServerBuilderGenerator.kt:344 */
|
15920 + | self.maybe_set =
|
15921 + | /* ServerBuilderGenerator.kt:376 */input
|
15922 + | /* ServerBuilderGenerator.kt:344 */;
|
10092 15923 | self
|
15924 + | /* ServerBuilderGenerator.kt:343 */
|
10093 15925 | }
|
15926 + | /* ServerBuilderGenerator.kt:426 */
|
10094 15927 | #[allow(missing_docs)] // documentation missing in model
|
15928 + | /* ServerBuilderGenerator.kt:428 */
|
10095 15929 | pub(crate) fn set_maybe_set(
|
10096 15930 | mut self,
|
10097 15931 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10098 15932 | ) -> Self {
|
15933 + | /* ServerBuilderGenerator.kt:429 */
|
10099 15934 | self.maybe_set = input.map(|v| v.into());
|
10100 15935 | self
|
15936 + | /* ServerBuilderGenerator.kt:428 */
|
10101 15937 | }
|
10102 - | /// Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
15938 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
15939 + | /* ServerBuilderGenerator.kt:271 */
|
10103 15940 | pub fn build(self) -> crate::input::ConstantAndVariableQueryStringInput {
|
10104 15941 | self.build_enforcing_all_constraints()
|
10105 15942 | }
|
15943 + | /* ServerBuilderGenerator.kt:283 */
|
10106 15944 | fn build_enforcing_all_constraints(
|
10107 15945 | self,
|
10108 15946 | ) -> crate::input::ConstantAndVariableQueryStringInput {
|
15947 + | /* ServerBuilderGenerator.kt:542 */
|
10109 15948 | crate::input::ConstantAndVariableQueryStringInput {
|
15949 + | /* ServerBuilderGenerator.kt:546 */
|
10110 15950 | baz: self.baz,
|
15951 + | /* ServerBuilderGenerator.kt:546 */
|
10111 15952 | maybe_set: self.maybe_set,
|
15953 + | /* ServerBuilderGenerator.kt:542 */
|
10112 15954 | }
|
15955 + | /* ServerBuilderGenerator.kt:283 */
|
10113 15956 | }
|
15957 + | /* ServerBuilderGenerator.kt:215 */
|
10114 15958 | }
|
15959 + |
|
15960 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10115 15961 | }
|
10116 - | /// See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
15962 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
10117 15963 | pub mod constant_query_string_input {
|
10118 15964 |
|
15965 + | /* RustType.kt:516 */
|
10119 15966 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10120 - | /// Holds one variant for each of the ways the builder can fail.
|
15967 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15968 + | /* RustType.kt:516 */
|
10121 15969 | #[non_exhaustive]
|
15970 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10122 15971 | #[allow(clippy::enum_variant_names)]
|
10123 15972 | pub enum ConstraintViolation {
|
10124 - | /// `hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
15973 + | /// /* ServerBuilderConstraintViolations.kt:138 */`hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
15974 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10125 15975 | MissingHello,
|
15976 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10126 15977 | }
|
15978 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10127 15979 | impl ::std::fmt::Display for ConstraintViolation {
|
15980 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10128 15981 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15982 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10129 15983 | match self {
|
10130 - | ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
10131 - | }
|
15984 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
15985 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
15986 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10132 15987 | }
|
15988 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10133 15989 | }
|
15990 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10134 15991 | impl ::std::error::Error for ConstraintViolation {}
|
15992 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10135 15993 | impl ConstraintViolation {
|
10136 15994 | pub(crate) fn as_validation_exception_field(
|
10137 15995 | self,
|
10138 15996 | path: ::std::string::String,
|
10139 15997 | ) -> crate::model::ValidationExceptionField {
|
10140 15998 | match self {
|
10141 15999 | ConstraintViolation::MissingHello => crate::model::ValidationExceptionField {
|
10142 16000 | message: format!(
|
10143 16001 | "Value at '{}/hello' failed to satisfy constraint: Member must not be null",
|
10144 16002 | path
|
10145 16003 | ),
|
10146 16004 | path: path + "/hello",
|
10147 16005 | },
|
10148 16006 | }
|
10149 16007 | }
|
10150 16008 | }
|
16009 + | /* ServerBuilderGenerator.kt:234 */
|
10151 16010 | impl ::std::convert::From<ConstraintViolation>
|
10152 16011 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10153 16012 | {
|
10154 16013 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10155 16014 | let first_validation_exception_field =
|
10156 16015 | constraint_violation.as_validation_exception_field("".to_owned());
|
10157 16016 | let validation_exception = crate::error::ValidationException {
|
10158 16017 | message: format!(
|
10159 16018 | "1 validation error detected. {}",
|
10160 16019 | &first_validation_exception_field.message
|
10161 16020 | ),
|
10162 16021 | field_list: Some(vec![first_validation_exception_field]),
|
10163 16022 | };
|
10164 16023 | Self::ConstraintViolation(
|
10165 16024 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10166 16025 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10167 16026 | )
|
10168 16027 | }
|
10169 16028 | }
|
16029 + | /* ServerBuilderGenerator.kt:244 */
|
10170 16030 | impl ::std::convert::From<Builder>
|
10171 16031 | for crate::constrained::MaybeConstrained<crate::input::ConstantQueryStringInput>
|
10172 16032 | {
|
10173 16033 | fn from(builder: Builder) -> Self {
|
10174 16034 | Self::Unconstrained(builder)
|
10175 16035 | }
|
10176 16036 | }
|
16037 + | /* ServerBuilderGenerator.kt:446 */
|
10177 16038 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstantQueryStringInput {
|
10178 16039 | type Error = ConstraintViolation;
|
10179 16040 |
|
10180 16041 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10181 16042 | builder.build()
|
10182 16043 | }
|
10183 16044 | }
|
10184 - | /// A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16045 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16046 + | /* RustType.kt:516 */
|
10185 16047 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16048 + | /* ServerBuilderGenerator.kt:211 */
|
10186 16049 | pub struct Builder {
|
16050 + | /* ServerBuilderGenerator.kt:308 */
|
10187 16051 | pub(crate) hello: ::std::option::Option<::std::string::String>,
|
16052 + | /* ServerBuilderGenerator.kt:211 */
|
10188 16053 | }
|
16054 + | /* ServerBuilderGenerator.kt:215 */
|
10189 16055 | impl Builder {
|
16056 + | /* ServerBuilderGenerator.kt:331 */
|
10190 16057 | #[allow(missing_docs)] // documentation missing in model
|
16058 + | /* ServerBuilderGenerator.kt:343 */
|
10191 16059 | pub fn hello(mut self, input: ::std::string::String) -> Self {
|
10192 - | self.hello = Some(input);
|
16060 + | /* ServerBuilderGenerator.kt:344 */
|
16061 + | self.hello =
|
16062 + | /* ServerBuilderGenerator.kt:345 */Some(
|
16063 + | /* ServerBuilderGenerator.kt:376 */input
|
16064 + | /* ServerBuilderGenerator.kt:345 */)
|
16065 + | /* ServerBuilderGenerator.kt:344 */;
|
10193 16066 | self
|
16067 + | /* ServerBuilderGenerator.kt:343 */
|
10194 16068 | }
|
16069 + | /* ServerBuilderGenerator.kt:426 */
|
10195 16070 | #[allow(missing_docs)] // documentation missing in model
|
16071 + | /* ServerBuilderGenerator.kt:428 */
|
10196 16072 | pub(crate) fn set_hello(
|
10197 16073 | mut self,
|
10198 16074 | input: impl ::std::convert::Into<::std::string::String>,
|
10199 16075 | ) -> Self {
|
16076 + | /* ServerBuilderGenerator.kt:429 */
|
10200 16077 | self.hello = Some(input.into());
|
10201 16078 | self
|
16079 + | /* ServerBuilderGenerator.kt:428 */
|
10202 16080 | }
|
10203 - | /// Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
10204 - | ///
|
16081 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16082 + | /// /* ServerBuilderGenerator.kt:260 */
|
10205 16083 | /// The builder fails to construct a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) if a [`ConstraintViolation`] occurs.
|
10206 16084 | ///
|
16085 + | /* ServerBuilderGenerator.kt:271 */
|
10207 16086 | pub fn build(self) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
10208 16087 | self.build_enforcing_all_constraints()
|
10209 16088 | }
|
16089 + | /* ServerBuilderGenerator.kt:283 */
|
10210 16090 | fn build_enforcing_all_constraints(
|
10211 16091 | self,
|
10212 16092 | ) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
10213 - | Ok(crate::input::ConstantQueryStringInput {
|
10214 - | hello: self.hello.ok_or(ConstraintViolation::MissingHello)?,
|
10215 - | })
|
16093 + | /* ServerBuilderGenerator.kt:287 */
|
16094 + | Ok(
|
16095 + | /* ServerBuilderGenerator.kt:542 */
|
16096 + | crate::input::ConstantQueryStringInput {
|
16097 + | /* ServerBuilderGenerator.kt:546 */
|
16098 + | hello: self
|
16099 + | .hello
|
16100 + | /* ServerBuilderGenerator.kt:569 */
|
16101 + | .ok_or(ConstraintViolation::MissingHello)?,
|
16102 + | /* ServerBuilderGenerator.kt:542 */
|
16103 + | }, /* ServerBuilderGenerator.kt:287 */
|
16104 + | )
|
16105 + | /* ServerBuilderGenerator.kt:283 */
|
10216 16106 | }
|
16107 + | /* ServerBuilderGenerator.kt:215 */
|
10217 16108 | }
|
16109 + |
|
16110 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10218 16111 | }
|
10219 - | /// See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16112 + | /// /* ServerBuilderGenerator.kt:171 */See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
10220 16113 | pub mod all_query_string_types_input {
|
10221 16114 |
|
16115 + | /* RustType.kt:516 */
|
10222 16116 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10223 - | /// Holds one variant for each of the ways the builder can fail.
|
16117 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16118 + | /* RustType.kt:516 */
|
10224 16119 | #[non_exhaustive]
|
16120 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10225 16121 | #[allow(clippy::enum_variant_names)]
|
10226 16122 | pub enum ConstraintViolation {
|
10227 - | /// Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
16123 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
16124 + | /* RustType.kt:516 */
|
10228 16125 | #[doc(hidden)]
|
16126 + | /* ServerBuilderConstraintViolations.kt:164 */
|
10229 16127 | QueryStringSet(crate::model::string_set::ConstraintViolation),
|
10230 - | /// Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
16128 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
16129 + | /* RustType.kt:516 */
|
10231 16130 | #[doc(hidden)]
|
16131 + | /* ServerBuilderConstraintViolations.kt:164 */
|
10232 16132 | QueryIntegerSet(crate::model::integer_set::ConstraintViolation),
|
10233 - | /// Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
16133 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
16134 + | /* RustType.kt:516 */
|
10234 16135 | #[doc(hidden)]
|
16136 + | /* ServerBuilderConstraintViolations.kt:164 */
|
10235 16137 | QueryEnum(crate::model::foo_enum::ConstraintViolation),
|
10236 - | /// Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
16138 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
16139 + | /* RustType.kt:516 */
|
10237 16140 | #[doc(hidden)]
|
16141 + | /* ServerBuilderConstraintViolations.kt:164 */
|
10238 16142 | QueryEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
16143 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10239 16144 | }
|
16145 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10240 16146 | impl ::std::fmt::Display for ConstraintViolation {
|
16147 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10241 16148 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16149 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10242 16150 | match self {
|
10243 - | ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
10244 - | ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
10245 - | ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
10246 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
10247 - | }
|
16151 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
16152 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
16153 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
16154 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
16155 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16156 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10248 16157 | }
|
16158 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10249 16159 | }
|
16160 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10250 16161 | impl ::std::error::Error for ConstraintViolation {}
|
16162 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10251 16163 | impl ConstraintViolation {
|
10252 16164 | pub(crate) fn as_validation_exception_field(
|
10253 16165 | self,
|
10254 16166 | path: ::std::string::String,
|
10255 16167 | ) -> crate::model::ValidationExceptionField {
|
10256 16168 | match self {
|
10257 16169 | ConstraintViolation::QueryStringSet(inner) => {
|
10258 16170 | inner.as_validation_exception_field(path + "/queryStringSet")
|
10259 16171 | }
|
10260 16172 | ConstraintViolation::QueryIntegerSet(inner) => {
|
10261 16173 | inner.as_validation_exception_field(path + "/queryIntegerSet")
|
10262 16174 | }
|
10263 16175 | ConstraintViolation::QueryEnum(inner) => {
|
10264 16176 | inner.as_validation_exception_field(path + "/queryEnum")
|
10265 16177 | }
|
10266 16178 | ConstraintViolation::QueryEnumList(inner) => {
|
10267 16179 | inner.as_validation_exception_field(path + "/queryEnumList")
|
10268 16180 | }
|
10269 16181 | }
|
10270 16182 | }
|
10271 16183 | }
|
16184 + | /* ServerBuilderGenerator.kt:234 */
|
10272 16185 | impl ::std::convert::From<ConstraintViolation>
|
10273 16186 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10274 16187 | {
|
10275 16188 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10276 16189 | let first_validation_exception_field =
|
10277 16190 | constraint_violation.as_validation_exception_field("".to_owned());
|
10278 16191 | let validation_exception = crate::error::ValidationException {
|
10279 16192 | message: format!(
|
10280 16193 | "1 validation error detected. {}",
|
10281 16194 | &first_validation_exception_field.message
|
10282 16195 | ),
|
10283 16196 | field_list: Some(vec![first_validation_exception_field]),
|
10284 16197 | };
|
10285 16198 | Self::ConstraintViolation(
|
10286 16199 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10287 16200 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10288 16201 | )
|
10289 16202 | }
|
10290 16203 | }
|
16204 + | /* ServerBuilderGenerator.kt:244 */
|
10291 16205 | impl ::std::convert::From<Builder>
|
10292 16206 | for crate::constrained::MaybeConstrained<crate::input::AllQueryStringTypesInput>
|
10293 16207 | {
|
10294 16208 | fn from(builder: Builder) -> Self {
|
10295 16209 | Self::Unconstrained(builder)
|
10296 16210 | }
|
10297 16211 | }
|
16212 + | /* ServerBuilderGenerator.kt:446 */
|
10298 16213 | impl ::std::convert::TryFrom<Builder> for crate::input::AllQueryStringTypesInput {
|
10299 16214 | type Error = ConstraintViolation;
|
10300 16215 |
|
10301 16216 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10302 16217 | builder.build()
|
10303 16218 | }
|
10304 16219 | }
|
10305 - | /// A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16220 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16221 + | /* RustType.kt:516 */
|
10306 16222 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16223 + | /* ServerBuilderGenerator.kt:211 */
|
10307 16224 | pub struct Builder {
|
16225 + | /* ServerBuilderGenerator.kt:308 */
|
10308 16226 | pub(crate) query_string: ::std::option::Option<::std::string::String>,
|
16227 + | /* ServerBuilderGenerator.kt:308 */
|
10309 16228 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
16229 + | /* ServerBuilderGenerator.kt:308 */
|
10310 16230 | pub(crate) query_string_set:
|
10311 16231 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
10312 - | pub(crate) query_byte: ::std::option::Option<i8>,
|
16232 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) query_byte: ::std::option::Option<i8>,
|
16233 + | /* ServerBuilderGenerator.kt:308 */
|
10313 16234 | pub(crate) query_short: ::std::option::Option<i16>,
|
16235 + | /* ServerBuilderGenerator.kt:308 */
|
10314 16236 | pub(crate) query_integer: ::std::option::Option<i32>,
|
16237 + | /* ServerBuilderGenerator.kt:308 */
|
10315 16238 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
16239 + | /* ServerBuilderGenerator.kt:308 */
|
10316 16240 | pub(crate) query_integer_set:
|
10317 16241 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::IntegerSet>>,
|
16242 + | /* ServerBuilderGenerator.kt:308 */
|
10318 16243 | pub(crate) query_long: ::std::option::Option<i64>,
|
16244 + | /* ServerBuilderGenerator.kt:308 */
|
10319 16245 | pub(crate) query_float: ::std::option::Option<f32>,
|
16246 + | /* ServerBuilderGenerator.kt:308 */
|
10320 16247 | pub(crate) query_double: ::std::option::Option<f64>,
|
16248 + | /* ServerBuilderGenerator.kt:308 */
|
10321 16249 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
16250 + | /* ServerBuilderGenerator.kt:308 */
|
10322 16251 | pub(crate) query_boolean: ::std::option::Option<bool>,
|
16252 + | /* ServerBuilderGenerator.kt:308 */
|
10323 16253 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
16254 + | /* ServerBuilderGenerator.kt:308 */
|
10324 16255 | pub(crate) query_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
16256 + | /* ServerBuilderGenerator.kt:308 */
|
10325 16257 | pub(crate) query_timestamp_list:
|
10326 16258 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
16259 + | /* ServerBuilderGenerator.kt:308 */
|
10327 16260 | pub(crate) query_enum:
|
10328 16261 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
16262 + | /* ServerBuilderGenerator.kt:308 */
|
10329 16263 | pub(crate) query_enum_list: ::std::option::Option<
|
10330 16264 | crate::constrained::MaybeConstrained<
|
10331 16265 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10332 16266 | >,
|
10333 16267 | >,
|
16268 + | /* ServerBuilderGenerator.kt:308 */
|
10334 16269 | pub(crate) query_integer_enum: ::std::option::Option<i32>,
|
16270 + | /* ServerBuilderGenerator.kt:308 */
|
10335 16271 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
16272 + | /* ServerBuilderGenerator.kt:308 */
|
10336 16273 | pub(crate) query_params_map_of_string_list: ::std::option::Option<
|
10337 16274 | ::std::collections::HashMap<
|
10338 16275 | ::std::string::String,
|
10339 16276 | ::std::vec::Vec<::std::string::String>,
|
10340 16277 | >,
|
10341 16278 | >,
|
16279 + | /* ServerBuilderGenerator.kt:211 */
|
10342 16280 | }
|
16281 + | /* ServerBuilderGenerator.kt:215 */
|
10343 16282 | impl Builder {
|
16283 + | /* ServerBuilderGenerator.kt:331 */
|
10344 16284 | #[allow(missing_docs)] // documentation missing in model
|
16285 + | /* ServerBuilderGenerator.kt:343 */
|
10345 16286 | pub fn query_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10346 - | self.query_string = input;
|
16287 + | /* ServerBuilderGenerator.kt:344 */
|
16288 + | self.query_string =
|
16289 + | /* ServerBuilderGenerator.kt:376 */input
|
16290 + | /* ServerBuilderGenerator.kt:344 */;
|
10347 16291 | self
|
16292 + | /* ServerBuilderGenerator.kt:343 */
|
10348 16293 | }
|
16294 + | /* ServerBuilderGenerator.kt:426 */
|
10349 16295 | #[allow(missing_docs)] // documentation missing in model
|
16296 + | /* ServerBuilderGenerator.kt:428 */
|
10350 16297 | pub(crate) fn set_query_string(
|
10351 16298 | mut self,
|
10352 16299 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10353 16300 | ) -> Self {
|
16301 + | /* ServerBuilderGenerator.kt:429 */
|
10354 16302 | self.query_string = input.map(|v| v.into());
|
10355 16303 | self
|
16304 + | /* ServerBuilderGenerator.kt:428 */
|
10356 16305 | }
|
16306 + | /* ServerBuilderGenerator.kt:331 */
|
10357 16307 | #[allow(missing_docs)] // documentation missing in model
|
16308 + | /* ServerBuilderGenerator.kt:343 */
|
10358 16309 | pub fn query_string_list(
|
10359 16310 | mut self,
|
10360 16311 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10361 16312 | ) -> Self {
|
10362 - | self.query_string_list = input;
|
16313 + | /* ServerBuilderGenerator.kt:344 */
|
16314 + | self.query_string_list =
|
16315 + | /* ServerBuilderGenerator.kt:376 */input
|
16316 + | /* ServerBuilderGenerator.kt:344 */;
|
10363 16317 | self
|
16318 + | /* ServerBuilderGenerator.kt:343 */
|
10364 16319 | }
|
16320 + | /* ServerBuilderGenerator.kt:426 */
|
10365 16321 | #[allow(missing_docs)] // documentation missing in model
|
16322 + | /* ServerBuilderGenerator.kt:428 */
|
10366 16323 | pub(crate) fn set_query_string_list(
|
10367 16324 | mut self,
|
10368 16325 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
10369 16326 | ) -> Self {
|
16327 + | /* ServerBuilderGenerator.kt:429 */
|
10370 16328 | self.query_string_list = input.map(|v| v.into());
|
10371 16329 | self
|
16330 + | /* ServerBuilderGenerator.kt:428 */
|
10372 16331 | }
|
16332 + | /* ServerBuilderGenerator.kt:331 */
|
10373 16333 | #[allow(missing_docs)] // documentation missing in model
|
16334 + | /* ServerBuilderGenerator.kt:343 */
|
10374 16335 | pub fn query_string_set(
|
10375 16336 | mut self,
|
10376 16337 | input: ::std::option::Option<crate::model::StringSet>,
|
10377 16338 | ) -> Self {
|
10378 - | self.query_string_set = input.map(
|
10379 - | #[allow(clippy::redundant_closure)]
|
10380 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
10381 - | );
|
16339 + | /* ServerBuilderGenerator.kt:344 */
|
16340 + | self.query_string_set =
|
16341 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
16342 + | /* ServerBuilderGenerator.kt:344 */;
|
10382 16343 | self
|
16344 + | /* ServerBuilderGenerator.kt:343 */
|
10383 16345 | }
|
16346 + | /* ServerBuilderGenerator.kt:426 */
|
10384 16347 | #[allow(missing_docs)] // documentation missing in model
|
16348 + | /* ServerBuilderGenerator.kt:428 */
|
10385 16349 | pub(crate) fn set_query_string_set(
|
10386 16350 | mut self,
|
10387 16351 | input: Option<
|
10388 16352 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
10389 16353 | >,
|
10390 16354 | ) -> Self {
|
16355 + | /* ServerBuilderGenerator.kt:429 */
|
10391 16356 | self.query_string_set = input.map(|v| v.into());
|
10392 16357 | self
|
16358 + | /* ServerBuilderGenerator.kt:428 */
|
10393 16359 | }
|
16360 + | /* ServerBuilderGenerator.kt:331 */
|
10394 16361 | #[allow(missing_docs)] // documentation missing in model
|
16362 + | /* ServerBuilderGenerator.kt:343 */
|
10395 16363 | pub fn query_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
10396 - | self.query_byte = input;
|
16364 + | /* ServerBuilderGenerator.kt:344 */
|
16365 + | self.query_byte =
|
16366 + | /* ServerBuilderGenerator.kt:376 */input
|
16367 + | /* ServerBuilderGenerator.kt:344 */;
|
10397 16368 | self
|
16369 + | /* ServerBuilderGenerator.kt:343 */
|
10398 16370 | }
|
16371 + | /* ServerBuilderGenerator.kt:426 */
|
10399 16372 | #[allow(missing_docs)] // documentation missing in model
|
16373 + | /* ServerBuilderGenerator.kt:428 */
|
10400 16374 | pub(crate) fn set_query_byte(
|
10401 16375 | mut self,
|
10402 16376 | input: Option<impl ::std::convert::Into<i8>>,
|
10403 16377 | ) -> Self {
|
16378 + | /* ServerBuilderGenerator.kt:429 */
|
10404 16379 | self.query_byte = input.map(|v| v.into());
|
10405 16380 | self
|
16381 + | /* ServerBuilderGenerator.kt:428 */
|
10406 16382 | }
|
16383 + | /* ServerBuilderGenerator.kt:331 */
|
10407 16384 | #[allow(missing_docs)] // documentation missing in model
|
16385 + | /* ServerBuilderGenerator.kt:343 */
|
10408 16386 | pub fn query_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
10409 - | self.query_short = input;
|
16387 + | /* ServerBuilderGenerator.kt:344 */
|
16388 + | self.query_short =
|
16389 + | /* ServerBuilderGenerator.kt:376 */input
|
16390 + | /* ServerBuilderGenerator.kt:344 */;
|
10410 16391 | self
|
16392 + | /* ServerBuilderGenerator.kt:343 */
|
10411 16393 | }
|
16394 + | /* ServerBuilderGenerator.kt:426 */
|
10412 16395 | #[allow(missing_docs)] // documentation missing in model
|
16396 + | /* ServerBuilderGenerator.kt:428 */
|
10413 16397 | pub(crate) fn set_query_short(
|
10414 16398 | mut self,
|
10415 16399 | input: Option<impl ::std::convert::Into<i16>>,
|
10416 16400 | ) -> Self {
|
16401 + | /* ServerBuilderGenerator.kt:429 */
|
10417 16402 | self.query_short = input.map(|v| v.into());
|
10418 16403 | self
|
16404 + | /* ServerBuilderGenerator.kt:428 */
|
10419 16405 | }
|
16406 + | /* ServerBuilderGenerator.kt:331 */
|
10420 16407 | #[allow(missing_docs)] // documentation missing in model
|
16408 + | /* ServerBuilderGenerator.kt:343 */
|
10421 16409 | pub fn query_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
10422 - | self.query_integer = input;
|
16410 + | /* ServerBuilderGenerator.kt:344 */
|
16411 + | self.query_integer =
|
16412 + | /* ServerBuilderGenerator.kt:376 */input
|
16413 + | /* ServerBuilderGenerator.kt:344 */;
|
10423 16414 | self
|
16415 + | /* ServerBuilderGenerator.kt:343 */
|
10424 16416 | }
|
16417 + | /* ServerBuilderGenerator.kt:426 */
|
10425 16418 | #[allow(missing_docs)] // documentation missing in model
|
16419 + | /* ServerBuilderGenerator.kt:428 */
|
10426 16420 | pub(crate) fn set_query_integer(
|
10427 16421 | mut self,
|
10428 16422 | input: Option<impl ::std::convert::Into<i32>>,
|
10429 16423 | ) -> Self {
|
16424 + | /* ServerBuilderGenerator.kt:429 */
|
10430 16425 | self.query_integer = input.map(|v| v.into());
|
10431 16426 | self
|
16427 + | /* ServerBuilderGenerator.kt:428 */
|
10432 16428 | }
|
16429 + | /* ServerBuilderGenerator.kt:331 */
|
10433 16430 | #[allow(missing_docs)] // documentation missing in model
|
16431 + | /* ServerBuilderGenerator.kt:343 */
|
10434 16432 | pub fn query_integer_list(
|
10435 16433 | mut self,
|
10436 16434 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10437 16435 | ) -> Self {
|
10438 - | self.query_integer_list = input;
|
16436 + | /* ServerBuilderGenerator.kt:344 */
|
16437 + | self.query_integer_list =
|
16438 + | /* ServerBuilderGenerator.kt:376 */input
|
16439 + | /* ServerBuilderGenerator.kt:344 */;
|
10439 16440 | self
|
16441 + | /* ServerBuilderGenerator.kt:343 */
|
10440 16442 | }
|
16443 + | /* ServerBuilderGenerator.kt:426 */
|
10441 16444 | #[allow(missing_docs)] // documentation missing in model
|
16445 + | /* ServerBuilderGenerator.kt:428 */
|
10442 16446 | pub(crate) fn set_query_integer_list(
|
10443 16447 | mut self,
|
10444 16448 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10445 16449 | ) -> Self {
|
16450 + | /* ServerBuilderGenerator.kt:429 */
|
10446 16451 | self.query_integer_list = input.map(|v| v.into());
|
10447 16452 | self
|
16453 + | /* ServerBuilderGenerator.kt:428 */
|
10448 16454 | }
|
16455 + | /* ServerBuilderGenerator.kt:331 */
|
10449 16456 | #[allow(missing_docs)] // documentation missing in model
|
16457 + | /* ServerBuilderGenerator.kt:343 */
|
10450 16458 | pub fn query_integer_set(
|
10451 16459 | mut self,
|
10452 16460 | input: ::std::option::Option<crate::model::IntegerSet>,
|
10453 16461 | ) -> Self {
|
10454 - | self.query_integer_set = input.map(
|
10455 - | #[allow(clippy::redundant_closure)]
|
10456 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
10457 - | );
|
16462 + | /* ServerBuilderGenerator.kt:344 */
|
16463 + | self.query_integer_set =
|
16464 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
16465 + | /* ServerBuilderGenerator.kt:344 */;
|
10458 16466 | self
|
16467 + | /* ServerBuilderGenerator.kt:343 */
|
10459 16468 | }
|
16469 + | /* ServerBuilderGenerator.kt:426 */
|
10460 16470 | #[allow(missing_docs)] // documentation missing in model
|
16471 + | /* ServerBuilderGenerator.kt:428 */
|
10461 16472 | pub(crate) fn set_query_integer_set(
|
10462 16473 | mut self,
|
10463 16474 | input: Option<
|
10464 16475 | impl ::std::convert::Into<
|
10465 16476 | crate::constrained::MaybeConstrained<crate::model::IntegerSet>,
|
10466 16477 | >,
|
10467 16478 | >,
|
10468 16479 | ) -> Self {
|
16480 + | /* ServerBuilderGenerator.kt:429 */
|
10469 16481 | self.query_integer_set = input.map(|v| v.into());
|
10470 16482 | self
|
16483 + | /* ServerBuilderGenerator.kt:428 */
|
10471 16484 | }
|
16485 + | /* ServerBuilderGenerator.kt:331 */
|
10472 16486 | #[allow(missing_docs)] // documentation missing in model
|
16487 + | /* ServerBuilderGenerator.kt:343 */
|
10473 16488 | pub fn query_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
10474 - | self.query_long = input;
|
16489 + | /* ServerBuilderGenerator.kt:344 */
|
16490 + | self.query_long =
|
16491 + | /* ServerBuilderGenerator.kt:376 */input
|
16492 + | /* ServerBuilderGenerator.kt:344 */;
|
10475 16493 | self
|
16494 + | /* ServerBuilderGenerator.kt:343 */
|
10476 16495 | }
|
16496 + | /* ServerBuilderGenerator.kt:426 */
|
10477 16497 | #[allow(missing_docs)] // documentation missing in model
|
16498 + | /* ServerBuilderGenerator.kt:428 */
|
10478 16499 | pub(crate) fn set_query_long(
|
10479 16500 | mut self,
|
10480 16501 | input: Option<impl ::std::convert::Into<i64>>,
|
10481 16502 | ) -> Self {
|
16503 + | /* ServerBuilderGenerator.kt:429 */
|
10482 16504 | self.query_long = input.map(|v| v.into());
|
10483 16505 | self
|
16506 + | /* ServerBuilderGenerator.kt:428 */
|
10484 16507 | }
|
16508 + | /* ServerBuilderGenerator.kt:331 */
|
10485 16509 | #[allow(missing_docs)] // documentation missing in model
|
16510 + | /* ServerBuilderGenerator.kt:343 */
|
10486 16511 | pub fn query_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
10487 - | self.query_float = input;
|
16512 + | /* ServerBuilderGenerator.kt:344 */
|
16513 + | self.query_float =
|
16514 + | /* ServerBuilderGenerator.kt:376 */input
|
16515 + | /* ServerBuilderGenerator.kt:344 */;
|
10488 16516 | self
|
16517 + | /* ServerBuilderGenerator.kt:343 */
|
10489 16518 | }
|
16519 + | /* ServerBuilderGenerator.kt:426 */
|
10490 16520 | #[allow(missing_docs)] // documentation missing in model
|
16521 + | /* ServerBuilderGenerator.kt:428 */
|
10491 16522 | pub(crate) fn set_query_float(
|
10492 16523 | mut self,
|
10493 16524 | input: Option<impl ::std::convert::Into<f32>>,
|
10494 16525 | ) -> Self {
|
16526 + | /* ServerBuilderGenerator.kt:429 */
|
10495 16527 | self.query_float = input.map(|v| v.into());
|
10496 16528 | self
|
16529 + | /* ServerBuilderGenerator.kt:428 */
|
10497 16530 | }
|
16531 + | /* ServerBuilderGenerator.kt:331 */
|
10498 16532 | #[allow(missing_docs)] // documentation missing in model
|
16533 + | /* ServerBuilderGenerator.kt:343 */
|
10499 16534 | pub fn query_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
10500 - | self.query_double = input;
|
16535 + | /* ServerBuilderGenerator.kt:344 */
|
16536 + | self.query_double =
|
16537 + | /* ServerBuilderGenerator.kt:376 */input
|
16538 + | /* ServerBuilderGenerator.kt:344 */;
|
10501 16539 | self
|
16540 + | /* ServerBuilderGenerator.kt:343 */
|
10502 16541 | }
|
16542 + | /* ServerBuilderGenerator.kt:426 */
|
10503 16543 | #[allow(missing_docs)] // documentation missing in model
|
16544 + | /* ServerBuilderGenerator.kt:428 */
|
10504 16545 | pub(crate) fn set_query_double(
|
10505 16546 | mut self,
|
10506 16547 | input: Option<impl ::std::convert::Into<f64>>,
|
10507 16548 | ) -> Self {
|
16549 + | /* ServerBuilderGenerator.kt:429 */
|
10508 16550 | self.query_double = input.map(|v| v.into());
|
10509 16551 | self
|
16552 + | /* ServerBuilderGenerator.kt:428 */
|
10510 16553 | }
|
16554 + | /* ServerBuilderGenerator.kt:331 */
|
10511 16555 | #[allow(missing_docs)] // documentation missing in model
|
16556 + | /* ServerBuilderGenerator.kt:343 */
|
10512 16557 | pub fn query_double_list(
|
10513 16558 | mut self,
|
10514 16559 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
10515 16560 | ) -> Self {
|
10516 - | self.query_double_list = input;
|
16561 + | /* ServerBuilderGenerator.kt:344 */
|
16562 + | self.query_double_list =
|
16563 + | /* ServerBuilderGenerator.kt:376 */input
|
16564 + | /* ServerBuilderGenerator.kt:344 */;
|
10517 16565 | self
|
16566 + | /* ServerBuilderGenerator.kt:343 */
|
10518 16567 | }
|
16568 + | /* ServerBuilderGenerator.kt:426 */
|
10519 16569 | #[allow(missing_docs)] // documentation missing in model
|
16570 + | /* ServerBuilderGenerator.kt:428 */
|
10520 16571 | pub(crate) fn set_query_double_list(
|
10521 16572 | mut self,
|
10522 16573 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
10523 16574 | ) -> Self {
|
16575 + | /* ServerBuilderGenerator.kt:429 */
|
10524 16576 | self.query_double_list = input.map(|v| v.into());
|
10525 16577 | self
|
16578 + | /* ServerBuilderGenerator.kt:428 */
|
10526 16579 | }
|
16580 + | /* ServerBuilderGenerator.kt:331 */
|
10527 16581 | #[allow(missing_docs)] // documentation missing in model
|
16582 + | /* ServerBuilderGenerator.kt:343 */
|
10528 16583 | pub fn query_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
|
10529 - | self.query_boolean = input;
|
16584 + | /* ServerBuilderGenerator.kt:344 */
|
16585 + | self.query_boolean =
|
16586 + | /* ServerBuilderGenerator.kt:376 */input
|
16587 + | /* ServerBuilderGenerator.kt:344 */;
|
10530 16588 | self
|
16589 + | /* ServerBuilderGenerator.kt:343 */
|
10531 16590 | }
|
16591 + | /* ServerBuilderGenerator.kt:426 */
|
10532 16592 | #[allow(missing_docs)] // documentation missing in model
|
16593 + | /* ServerBuilderGenerator.kt:428 */
|
10533 16594 | pub(crate) fn set_query_boolean(
|
10534 16595 | mut self,
|
10535 16596 | input: Option<impl ::std::convert::Into<bool>>,
|
10536 16597 | ) -> Self {
|
16598 + | /* ServerBuilderGenerator.kt:429 */
|
10537 16599 | self.query_boolean = input.map(|v| v.into());
|
10538 16600 | self
|
16601 + | /* ServerBuilderGenerator.kt:428 */
|
10539 16602 | }
|
16603 + | /* ServerBuilderGenerator.kt:331 */
|
10540 16604 | #[allow(missing_docs)] // documentation missing in model
|
16605 + | /* ServerBuilderGenerator.kt:343 */
|
10541 16606 | pub fn query_boolean_list(
|
10542 16607 | mut self,
|
10543 16608 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
10544 16609 | ) -> Self {
|
10545 - | self.query_boolean_list = input;
|
16610 + | /* ServerBuilderGenerator.kt:344 */
|
16611 + | self.query_boolean_list =
|
16612 + | /* ServerBuilderGenerator.kt:376 */input
|
16613 + | /* ServerBuilderGenerator.kt:344 */;
|
10546 16614 | self
|
16615 + | /* ServerBuilderGenerator.kt:343 */
|
10547 16616 | }
|
16617 + | /* ServerBuilderGenerator.kt:426 */
|
10548 16618 | #[allow(missing_docs)] // documentation missing in model
|
16619 + | /* ServerBuilderGenerator.kt:428 */
|
10549 16620 | pub(crate) fn set_query_boolean_list(
|
10550 16621 | mut self,
|
10551 16622 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
10552 16623 | ) -> Self {
|
16624 + | /* ServerBuilderGenerator.kt:429 */
|
10553 16625 | self.query_boolean_list = input.map(|v| v.into());
|
10554 16626 | self
|
16627 + | /* ServerBuilderGenerator.kt:428 */
|
10555 16628 | }
|
16629 + | /* ServerBuilderGenerator.kt:331 */
|
10556 16630 | #[allow(missing_docs)] // documentation missing in model
|
16631 + | /* ServerBuilderGenerator.kt:343 */
|
10557 16632 | pub fn query_timestamp(
|
10558 16633 | mut self,
|
10559 16634 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
10560 16635 | ) -> Self {
|
10561 - | self.query_timestamp = input;
|
16636 + | /* ServerBuilderGenerator.kt:344 */
|
16637 + | self.query_timestamp =
|
16638 + | /* ServerBuilderGenerator.kt:376 */input
|
16639 + | /* ServerBuilderGenerator.kt:344 */;
|
10562 16640 | self
|
16641 + | /* ServerBuilderGenerator.kt:343 */
|
10563 16642 | }
|
16643 + | /* ServerBuilderGenerator.kt:426 */
|
10564 16644 | #[allow(missing_docs)] // documentation missing in model
|
16645 + | /* ServerBuilderGenerator.kt:428 */
|
10565 16646 | pub(crate) fn set_query_timestamp(
|
10566 16647 | mut self,
|
10567 16648 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
10568 16649 | ) -> Self {
|
16650 + | /* ServerBuilderGenerator.kt:429 */
|
10569 16651 | self.query_timestamp = input.map(|v| v.into());
|
10570 16652 | self
|
16653 + | /* ServerBuilderGenerator.kt:428 */
|
10571 16654 | }
|
16655 + | /* ServerBuilderGenerator.kt:331 */
|
10572 16656 | #[allow(missing_docs)] // documentation missing in model
|
16657 + | /* ServerBuilderGenerator.kt:343 */
|
10573 16658 | pub fn query_timestamp_list(
|
10574 16659 | mut self,
|
10575 16660 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
10576 16661 | ) -> Self {
|
10577 - | self.query_timestamp_list = input;
|
16662 + | /* ServerBuilderGenerator.kt:344 */
|
16663 + | self.query_timestamp_list =
|
16664 + | /* ServerBuilderGenerator.kt:376 */input
|
16665 + | /* ServerBuilderGenerator.kt:344 */;
|
10578 16666 | self
|
16667 + | /* ServerBuilderGenerator.kt:343 */
|
10579 16668 | }
|
16669 + | /* ServerBuilderGenerator.kt:426 */
|
10580 16670 | #[allow(missing_docs)] // documentation missing in model
|
16671 + | /* ServerBuilderGenerator.kt:428 */
|
10581 16672 | pub(crate) fn set_query_timestamp_list(
|
10582 16673 | mut self,
|
10583 16674 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
10584 16675 | ) -> Self {
|
16676 + | /* ServerBuilderGenerator.kt:429 */
|
10585 16677 | self.query_timestamp_list = input.map(|v| v.into());
|
10586 16678 | self
|
16679 + | /* ServerBuilderGenerator.kt:428 */
|
10587 16680 | }
|
16681 + | /* ServerBuilderGenerator.kt:331 */
|
10588 16682 | #[allow(missing_docs)] // documentation missing in model
|
16683 + | /* ServerBuilderGenerator.kt:343 */
|
10589 16684 | pub fn query_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
10590 - | self.query_enum = input.map(
|
10591 - | #[allow(clippy::redundant_closure)]
|
10592 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
10593 - | );
|
16685 + | /* ServerBuilderGenerator.kt:344 */
|
16686 + | self.query_enum =
|
16687 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
16688 + | /* ServerBuilderGenerator.kt:344 */;
|
10594 16689 | self
|
16690 + | /* ServerBuilderGenerator.kt:343 */
|
10595 16691 | }
|
16692 + | /* ServerBuilderGenerator.kt:426 */
|
10596 16693 | #[allow(missing_docs)] // documentation missing in model
|
16694 + | /* ServerBuilderGenerator.kt:428 */
|
10597 16695 | pub(crate) fn set_query_enum(
|
10598 16696 | mut self,
|
10599 16697 | input: Option<
|
10600 16698 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
10601 16699 | >,
|
10602 16700 | ) -> Self {
|
16701 + | /* ServerBuilderGenerator.kt:429 */
|
10603 16702 | self.query_enum = input.map(|v| v.into());
|
10604 16703 | self
|
16704 + | /* ServerBuilderGenerator.kt:428 */
|
10605 16705 | }
|
16706 + | /* ServerBuilderGenerator.kt:331 */
|
10606 16707 | #[allow(missing_docs)] // documentation missing in model
|
16708 + | /* ServerBuilderGenerator.kt:343 */
|
10607 16709 | pub fn query_enum_list(
|
10608 16710 | mut self,
|
10609 16711 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
10610 16712 | ) -> Self {
|
10611 - | self.query_enum_list = input.map(
|
10612 - | #[allow(clippy::redundant_closure)]
|
10613 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
10614 - | );
|
16713 + | /* ServerBuilderGenerator.kt:344 */
|
16714 + | self.query_enum_list =
|
16715 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
16716 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
16717 + | /* ServerBuilderGenerator.kt:369 */)
|
16718 + | /* ServerBuilderGenerator.kt:344 */;
|
10615 16719 | self
|
16720 + | /* ServerBuilderGenerator.kt:343 */
|
10616 16721 | }
|
16722 + | /* ServerBuilderGenerator.kt:426 */
|
10617 16723 | #[allow(missing_docs)] // documentation missing in model
|
16724 + | /* ServerBuilderGenerator.kt:428 */
|
10618 16725 | pub(crate) fn set_query_enum_list(
|
10619 16726 | mut self,
|
10620 16727 | input: Option<
|
10621 16728 | impl ::std::convert::Into<
|
10622 16729 | crate::constrained::MaybeConstrained<
|
10623 16730 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10624 16731 | >,
|
10625 16732 | >,
|
10626 16733 | >,
|
10627 16734 | ) -> Self {
|
16735 + | /* ServerBuilderGenerator.kt:429 */
|
10628 16736 | self.query_enum_list = input.map(|v| v.into());
|
10629 16737 | self
|
16738 + | /* ServerBuilderGenerator.kt:428 */
|
10630 16739 | }
|
16740 + | /* ServerBuilderGenerator.kt:331 */
|
10631 16741 | #[allow(missing_docs)] // documentation missing in model
|
16742 + | /* ServerBuilderGenerator.kt:343 */
|
10632 16743 | pub fn query_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
10633 - | self.query_integer_enum = input;
|
16744 + | /* ServerBuilderGenerator.kt:344 */
|
16745 + | self.query_integer_enum =
|
16746 + | /* ServerBuilderGenerator.kt:376 */input
|
16747 + | /* ServerBuilderGenerator.kt:344 */;
|
10634 16748 | self
|
16749 + | /* ServerBuilderGenerator.kt:343 */
|
10635 16750 | }
|
16751 + | /* ServerBuilderGenerator.kt:426 */
|
10636 16752 | #[allow(missing_docs)] // documentation missing in model
|
16753 + | /* ServerBuilderGenerator.kt:428 */
|
10637 16754 | pub(crate) fn set_query_integer_enum(
|
10638 16755 | mut self,
|
10639 16756 | input: Option<impl ::std::convert::Into<i32>>,
|
10640 16757 | ) -> Self {
|
16758 + | /* ServerBuilderGenerator.kt:429 */
|
10641 16759 | self.query_integer_enum = input.map(|v| v.into());
|
10642 16760 | self
|
16761 + | /* ServerBuilderGenerator.kt:428 */
|
10643 16762 | }
|
16763 + | /* ServerBuilderGenerator.kt:331 */
|
10644 16764 | #[allow(missing_docs)] // documentation missing in model
|
16765 + | /* ServerBuilderGenerator.kt:343 */
|
10645 16766 | pub fn query_integer_enum_list(
|
10646 16767 | mut self,
|
10647 16768 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10648 16769 | ) -> Self {
|
10649 - | self.query_integer_enum_list = input;
|
16770 + | /* ServerBuilderGenerator.kt:344 */
|
16771 + | self.query_integer_enum_list =
|
16772 + | /* ServerBuilderGenerator.kt:376 */input
|
16773 + | /* ServerBuilderGenerator.kt:344 */;
|
10650 16774 | self
|
16775 + | /* ServerBuilderGenerator.kt:343 */
|
10651 16776 | }
|
16777 + | /* ServerBuilderGenerator.kt:426 */
|
10652 16778 | #[allow(missing_docs)] // documentation missing in model
|
16779 + | /* ServerBuilderGenerator.kt:428 */
|
10653 16780 | pub(crate) fn set_query_integer_enum_list(
|
10654 16781 | mut self,
|
10655 16782 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10656 16783 | ) -> Self {
|
16784 + | /* ServerBuilderGenerator.kt:429 */
|
10657 16785 | self.query_integer_enum_list = input.map(|v| v.into());
|
10658 16786 | self
|
16787 + | /* ServerBuilderGenerator.kt:428 */
|
10659 16788 | }
|
16789 + | /* ServerBuilderGenerator.kt:331 */
|
10660 16790 | #[allow(missing_docs)] // documentation missing in model
|
16791 + | /* ServerBuilderGenerator.kt:343 */
|
10661 16792 | pub fn query_params_map_of_string_list(
|
10662 16793 | mut self,
|
10663 16794 | input: ::std::option::Option<
|
10664 16795 | ::std::collections::HashMap<
|
10665 16796 | ::std::string::String,
|
10666 16797 | ::std::vec::Vec<::std::string::String>,
|
10667 16798 | >,
|
10668 16799 | >,
|
10669 16800 | ) -> Self {
|
10670 - | self.query_params_map_of_string_list = input;
|
16801 + | /* ServerBuilderGenerator.kt:344 */
|
16802 + | self.query_params_map_of_string_list =
|
16803 + | /* ServerBuilderGenerator.kt:376 */input
|
16804 + | /* ServerBuilderGenerator.kt:344 */;
|
10671 16805 | self
|
16806 + | /* ServerBuilderGenerator.kt:343 */
|
10672 16807 | }
|
16808 + | /* ServerBuilderGenerator.kt:426 */
|
10673 16809 | #[allow(missing_docs)] // documentation missing in model
|
16810 + | /* ServerBuilderGenerator.kt:428 */
|
10674 16811 | pub(crate) fn set_query_params_map_of_string_list(
|
10675 16812 | mut self,
|
10676 16813 | input: Option<
|
10677 16814 | impl ::std::convert::Into<
|
10678 16815 | ::std::collections::HashMap<
|
10679 16816 | ::std::string::String,
|
10680 16817 | ::std::vec::Vec<::std::string::String>,
|
10681 16818 | >,
|
10682 16819 | >,
|
10683 16820 | >,
|
10684 16821 | ) -> Self {
|
16822 + | /* ServerBuilderGenerator.kt:429 */
|
10685 16823 | self.query_params_map_of_string_list = input.map(|v| v.into());
|
10686 16824 | self
|
16825 + | /* ServerBuilderGenerator.kt:428 */
|
10687 16826 | }
|
10688 - | /// Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
10689 - | ///
|
16827 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16828 + | /// /* ServerBuilderGenerator.kt:260 */
|
10690 16829 | /// The builder fails to construct a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput) if a [`ConstraintViolation`] occurs.
|
10691 16830 | ///
|
10692 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
16831 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
16832 + | /* ServerBuilderGenerator.kt:271 */
|
10693 16833 | pub fn build(self) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
10694 16834 | self.build_enforcing_all_constraints()
|
10695 16835 | }
|
16836 + | /* ServerBuilderGenerator.kt:283 */
|
10696 16837 | fn build_enforcing_all_constraints(
|
10697 16838 | self,
|
10698 16839 | ) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
10699 - | Ok(crate::input::AllQueryStringTypesInput {
|
16840 + | /* ServerBuilderGenerator.kt:287 */
|
16841 + | Ok(
|
16842 + | /* ServerBuilderGenerator.kt:542 */
|
16843 + | crate::input::AllQueryStringTypesInput {
|
16844 + | /* ServerBuilderGenerator.kt:546 */
|
10700 16845 | query_string: self.query_string,
|
16846 + | /* ServerBuilderGenerator.kt:546 */
|
10701 16847 | query_string_list: self.query_string_list,
|
16848 + | /* ServerBuilderGenerator.kt:546 */
|
10702 16849 | query_string_set: self
|
10703 16850 | .query_string_set
|
16851 + | /* ServerBuilderGenerator.kt:602 */
|
10704 16852 | .map(|v| match v {
|
10705 16853 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10706 16854 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10707 16855 | })
|
16856 + | /* ServerBuilderGenerator.kt:614 */
|
10708 16857 | .map(|res| res.map_err(ConstraintViolation::QueryStringSet))
|
10709 16858 | .transpose()?,
|
16859 + | /* ServerBuilderGenerator.kt:546 */
|
10710 16860 | query_byte: self.query_byte,
|
16861 + | /* ServerBuilderGenerator.kt:546 */
|
10711 16862 | query_short: self.query_short,
|
16863 + | /* ServerBuilderGenerator.kt:546 */
|
10712 16864 | query_integer: self.query_integer,
|
16865 + | /* ServerBuilderGenerator.kt:546 */
|
10713 16866 | query_integer_list: self.query_integer_list,
|
16867 + | /* ServerBuilderGenerator.kt:546 */
|
10714 16868 | query_integer_set: self
|
10715 16869 | .query_integer_set
|
16870 + | /* ServerBuilderGenerator.kt:602 */
|
10716 16871 | .map(|v| match v {
|
10717 16872 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10718 16873 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10719 16874 | })
|
16875 + | /* ServerBuilderGenerator.kt:614 */
|
10720 16876 | .map(|res| res.map_err(ConstraintViolation::QueryIntegerSet))
|
10721 16877 | .transpose()?,
|
16878 + | /* ServerBuilderGenerator.kt:546 */
|
10722 16879 | query_long: self.query_long,
|
16880 + | /* ServerBuilderGenerator.kt:546 */
|
10723 16881 | query_float: self.query_float,
|
16882 + | /* ServerBuilderGenerator.kt:546 */
|
10724 16883 | query_double: self.query_double,
|
16884 + | /* ServerBuilderGenerator.kt:546 */
|
10725 16885 | query_double_list: self.query_double_list,
|
16886 + | /* ServerBuilderGenerator.kt:546 */
|
10726 16887 | query_boolean: self.query_boolean,
|
16888 + | /* ServerBuilderGenerator.kt:546 */
|
10727 16889 | query_boolean_list: self.query_boolean_list,
|
16890 + | /* ServerBuilderGenerator.kt:546 */
|
10728 16891 | query_timestamp: self.query_timestamp,
|
16892 + | /* ServerBuilderGenerator.kt:546 */
|
10729 16893 | query_timestamp_list: self.query_timestamp_list,
|
16894 + | /* ServerBuilderGenerator.kt:546 */
|
10730 16895 | query_enum: self
|
10731 16896 | .query_enum
|
16897 + | /* ServerBuilderGenerator.kt:602 */
|
10732 16898 | .map(|v| match v {
|
10733 16899 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10734 16900 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10735 16901 | })
|
16902 + | /* ServerBuilderGenerator.kt:614 */
|
10736 16903 | .map(|res| res.map_err(ConstraintViolation::QueryEnum))
|
10737 16904 | .transpose()?,
|
16905 + | /* ServerBuilderGenerator.kt:546 */
|
10738 16906 | query_enum_list: self
|
10739 16907 | .query_enum_list
|
16908 + | /* ServerBuilderGenerator.kt:602 */
|
10740 16909 | .map(|v| match v {
|
10741 16910 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10742 16911 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10743 16912 | })
|
16913 + | /* ServerBuilderGenerator.kt:614 */
|
10744 16914 | .map(|res| {
|
10745 16915 | res.map(|v| v.into())
|
10746 16916 | .map_err(ConstraintViolation::QueryEnumList)
|
10747 16917 | })
|
10748 16918 | .transpose()?,
|
16919 + | /* ServerBuilderGenerator.kt:546 */
|
10749 16920 | query_integer_enum: self.query_integer_enum,
|
16921 + | /* ServerBuilderGenerator.kt:546 */
|
10750 16922 | query_integer_enum_list: self.query_integer_enum_list,
|
16923 + | /* ServerBuilderGenerator.kt:546 */
|
10751 16924 | query_params_map_of_string_list: self.query_params_map_of_string_list,
|
10752 - | })
|
16925 + | /* ServerBuilderGenerator.kt:542 */
|
16926 + | }, /* ServerBuilderGenerator.kt:287 */
|
16927 + | )
|
16928 + | /* ServerBuilderGenerator.kt:283 */
|
10753 16929 | }
|
16930 + | /* ServerBuilderGenerator.kt:215 */
|
10754 16931 | }
|
16932 + |
|
16933 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10755 16934 | }
|
10756 - | /// See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
16935 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
10757 16936 | pub mod http_request_with_regex_literal_input {
|
10758 16937 |
|
16938 + | /* RustType.kt:516 */
|
10759 16939 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10760 - | /// Holds one variant for each of the ways the builder can fail.
|
16940 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16941 + | /* RustType.kt:516 */
|
10761 16942 | #[non_exhaustive]
|
16943 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10762 16944 | #[allow(clippy::enum_variant_names)]
|
10763 16945 | pub enum ConstraintViolation {
|
10764 - | /// `str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
16946 + | /// /* ServerBuilderConstraintViolations.kt:138 */`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
16947 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10765 16948 | MissingStr,
|
16949 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10766 16950 | }
|
16951 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10767 16952 | impl ::std::fmt::Display for ConstraintViolation {
|
16953 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10768 16954 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16955 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10769 16956 | match self {
|
10770 - | ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
10771 - | }
|
16957 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
16958 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
16959 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10772 16960 | }
|
16961 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10773 16962 | }
|
16963 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10774 16964 | impl ::std::error::Error for ConstraintViolation {}
|
16965 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10775 16966 | impl ConstraintViolation {
|
10776 16967 | pub(crate) fn as_validation_exception_field(
|
10777 16968 | self,
|
10778 16969 | path: ::std::string::String,
|
10779 16970 | ) -> crate::model::ValidationExceptionField {
|
10780 16971 | match self {
|
10781 16972 | ConstraintViolation::MissingStr => crate::model::ValidationExceptionField {
|
10782 16973 | message: format!(
|
10783 16974 | "Value at '{}/str' failed to satisfy constraint: Member must not be null",
|
10784 16975 | path
|
10785 16976 | ),
|
10786 16977 | path: path + "/str",
|
10787 16978 | },
|
10788 16979 | }
|
10789 16980 | }
|
10790 16981 | }
|
16982 + | /* ServerBuilderGenerator.kt:234 */
|
10791 16983 | impl ::std::convert::From<ConstraintViolation>
|
10792 16984 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10793 16985 | {
|
10794 16986 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10795 16987 | let first_validation_exception_field =
|
10796 16988 | constraint_violation.as_validation_exception_field("".to_owned());
|
10797 16989 | let validation_exception = crate::error::ValidationException {
|
10798 16990 | message: format!(
|
10799 16991 | "1 validation error detected. {}",
|
10800 16992 | &first_validation_exception_field.message
|
10801 16993 | ),
|
10802 16994 | field_list: Some(vec![first_validation_exception_field]),
|
10803 16995 | };
|
10804 16996 | Self::ConstraintViolation(
|
10805 16997 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10806 16998 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10807 16999 | )
|
10808 17000 | }
|
10809 17001 | }
|
17002 + | /* ServerBuilderGenerator.kt:244 */
|
10810 17003 | impl ::std::convert::From<Builder>
|
10811 17004 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithRegexLiteralInput>
|
10812 17005 | {
|
10813 17006 | fn from(builder: Builder) -> Self {
|
10814 17007 | Self::Unconstrained(builder)
|
10815 17008 | }
|
10816 17009 | }
|
17010 + | /* ServerBuilderGenerator.kt:446 */
|
10817 17011 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithRegexLiteralInput {
|
10818 17012 | type Error = ConstraintViolation;
|
10819 17013 |
|
10820 17014 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10821 17015 | builder.build()
|
10822 17016 | }
|
10823 17017 | }
|
10824 - | /// A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17018 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17019 + | /* RustType.kt:516 */
|
10825 17020 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17021 + | /* ServerBuilderGenerator.kt:211 */
|
10826 17022 | pub struct Builder {
|
17023 + | /* ServerBuilderGenerator.kt:308 */
|
10827 17024 | pub(crate) str: ::std::option::Option<::std::string::String>,
|
17025 + | /* ServerBuilderGenerator.kt:211 */
|
10828 17026 | }
|
17027 + | /* ServerBuilderGenerator.kt:215 */
|
10829 17028 | impl Builder {
|
17029 + | /* ServerBuilderGenerator.kt:331 */
|
10830 17030 | #[allow(missing_docs)] // documentation missing in model
|
17031 + | /* ServerBuilderGenerator.kt:343 */
|
10831 17032 | pub fn str(mut self, input: ::std::string::String) -> Self {
|
10832 - | self.str = Some(input);
|
17033 + | /* ServerBuilderGenerator.kt:344 */
|
17034 + | self.str =
|
17035 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17036 + | /* ServerBuilderGenerator.kt:376 */input
|
17037 + | /* ServerBuilderGenerator.kt:345 */)
|
17038 + | /* ServerBuilderGenerator.kt:344 */;
|
10833 17039 | self
|
17040 + | /* ServerBuilderGenerator.kt:343 */
|
10834 17041 | }
|
17042 + | /* ServerBuilderGenerator.kt:426 */
|
10835 17043 | #[allow(missing_docs)] // documentation missing in model
|
17044 + | /* ServerBuilderGenerator.kt:428 */
|
10836 17045 | pub(crate) fn set_str(
|
10837 17046 | mut self,
|
10838 17047 | input: impl ::std::convert::Into<::std::string::String>,
|
10839 17048 | ) -> Self {
|
17049 + | /* ServerBuilderGenerator.kt:429 */
|
10840 17050 | self.str = Some(input.into());
|
10841 17051 | self
|
17052 + | /* ServerBuilderGenerator.kt:428 */
|
10842 17053 | }
|
10843 - | /// Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
10844 - | ///
|
17054 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17055 + | /// /* ServerBuilderGenerator.kt:260 */
|
10845 17056 | /// The builder fails to construct a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) if a [`ConstraintViolation`] occurs.
|
10846 17057 | ///
|
17058 + | /* ServerBuilderGenerator.kt:271 */
|
10847 17059 | pub fn build(
|
10848 17060 | self,
|
10849 17061 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
10850 17062 | self.build_enforcing_all_constraints()
|
10851 17063 | }
|
17064 + | /* ServerBuilderGenerator.kt:283 */
|
10852 17065 | fn build_enforcing_all_constraints(
|
10853 17066 | self,
|
10854 17067 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
10855 - | Ok(crate::input::HttpRequestWithRegexLiteralInput {
|
10856 - | str: self.str.ok_or(ConstraintViolation::MissingStr)?,
|
10857 - | })
|
17068 + | /* ServerBuilderGenerator.kt:287 */
|
17069 + | Ok(
|
17070 + | /* ServerBuilderGenerator.kt:542 */
|
17071 + | crate::input::HttpRequestWithRegexLiteralInput {
|
17072 + | /* ServerBuilderGenerator.kt:546 */
|
17073 + | str: self
|
17074 + | .str
|
17075 + | /* ServerBuilderGenerator.kt:569 */
|
17076 + | .ok_or(ConstraintViolation::MissingStr)?,
|
17077 + | /* ServerBuilderGenerator.kt:542 */
|
17078 + | }, /* ServerBuilderGenerator.kt:287 */
|
17079 + | )
|
17080 + | /* ServerBuilderGenerator.kt:283 */
|
10858 17081 | }
|
17082 + | /* ServerBuilderGenerator.kt:215 */
|
10859 17083 | }
|
17084 + |
|
17085 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10860 17086 | }
|
10861 - | /// See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17087 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
10862 17088 | pub mod http_request_with_float_labels_input {
|
10863 17089 |
|
17090 + | /* RustType.kt:516 */
|
10864 17091 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10865 - | /// Holds one variant for each of the ways the builder can fail.
|
17092 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17093 + | /* RustType.kt:516 */
|
10866 17094 | #[non_exhaustive]
|
17095 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10867 17096 | #[allow(clippy::enum_variant_names)]
|
10868 17097 | pub enum ConstraintViolation {
|
10869 - | /// `float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17098 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17099 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10870 17100 | MissingFloat,
|
10871 - | /// `double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17101 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17102 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10872 17103 | MissingDouble,
|
17104 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10873 17105 | }
|
17106 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10874 17107 | impl ::std::fmt::Display for ConstraintViolation {
|
17108 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10875 17109 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17110 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10876 17111 | match self {
|
10877 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
10878 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
10879 - | }
|
17112 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
17113 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
17114 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17115 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10880 17116 | }
|
17117 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10881 17118 | }
|
17119 + | /* ServerBuilderConstraintViolations.kt:84 */
|
10882 17120 | impl ::std::error::Error for ConstraintViolation {}
|
17121 + | /* ServerBuilderConstraintViolations.kt:171 */
|
10883 17122 | impl ConstraintViolation {
|
10884 17123 | pub(crate) fn as_validation_exception_field(
|
10885 17124 | self,
|
10886 17125 | path: ::std::string::String,
|
10887 17126 | ) -> crate::model::ValidationExceptionField {
|
10888 17127 | match self {
|
10889 17128 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
10890 17129 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
10891 17130 | path: path + "/float",
|
10892 17131 | },
|
10893 17132 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
10894 17133 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
10895 17134 | path: path + "/double",
|
10896 17135 | },
|
10897 17136 | }
|
10898 17137 | }
|
10899 17138 | }
|
17139 + | /* ServerBuilderGenerator.kt:234 */
|
10900 17140 | impl ::std::convert::From<ConstraintViolation>
|
10901 17141 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10902 17142 | {
|
10903 17143 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10904 17144 | let first_validation_exception_field =
|
10905 17145 | constraint_violation.as_validation_exception_field("".to_owned());
|
10906 17146 | let validation_exception = crate::error::ValidationException {
|
10907 17147 | message: format!(
|
10908 17148 | "1 validation error detected. {}",
|
10909 17149 | &first_validation_exception_field.message
|
10910 17150 | ),
|
10911 17151 | field_list: Some(vec![first_validation_exception_field]),
|
10912 17152 | };
|
10913 17153 | Self::ConstraintViolation(
|
10914 17154 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10915 17155 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10916 17156 | )
|
10917 17157 | }
|
10918 17158 | }
|
17159 + | /* ServerBuilderGenerator.kt:244 */
|
10919 17160 | impl ::std::convert::From<Builder>
|
10920 17161 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithFloatLabelsInput>
|
10921 17162 | {
|
10922 17163 | fn from(builder: Builder) -> Self {
|
10923 17164 | Self::Unconstrained(builder)
|
10924 17165 | }
|
10925 17166 | }
|
17167 + | /* ServerBuilderGenerator.kt:446 */
|
10926 17168 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithFloatLabelsInput {
|
10927 17169 | type Error = ConstraintViolation;
|
10928 17170 |
|
10929 17171 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10930 17172 | builder.build()
|
10931 17173 | }
|
10932 17174 | }
|
10933 - | /// A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17175 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17176 + | /* RustType.kt:516 */
|
10934 17177 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17178 + | /* ServerBuilderGenerator.kt:211 */
|
10935 17179 | pub struct Builder {
|
10936 - | pub(crate) float: ::std::option::Option<f32>,
|
17180 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
17181 + | /* ServerBuilderGenerator.kt:308 */
|
10937 17182 | pub(crate) double: ::std::option::Option<f64>,
|
17183 + | /* ServerBuilderGenerator.kt:211 */
|
10938 17184 | }
|
17185 + | /* ServerBuilderGenerator.kt:215 */
|
10939 17186 | impl Builder {
|
17187 + | /* ServerBuilderGenerator.kt:331 */
|
10940 17188 | #[allow(missing_docs)] // documentation missing in model
|
17189 + | /* ServerBuilderGenerator.kt:343 */
|
10941 17190 | pub fn float(mut self, input: f32) -> Self {
|
10942 - | self.float = Some(input);
|
17191 + | /* ServerBuilderGenerator.kt:344 */
|
17192 + | self.float =
|
17193 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17194 + | /* ServerBuilderGenerator.kt:376 */input
|
17195 + | /* ServerBuilderGenerator.kt:345 */)
|
17196 + | /* ServerBuilderGenerator.kt:344 */;
|
10943 17197 | self
|
17198 + | /* ServerBuilderGenerator.kt:343 */
|
10944 17199 | }
|
17200 + | /* ServerBuilderGenerator.kt:426 */
|
10945 17201 | #[allow(missing_docs)] // documentation missing in model
|
17202 + | /* ServerBuilderGenerator.kt:428 */
|
10946 17203 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
17204 + | /* ServerBuilderGenerator.kt:429 */
|
10947 17205 | self.float = Some(input.into());
|
10948 17206 | self
|
17207 + | /* ServerBuilderGenerator.kt:428 */
|
10949 17208 | }
|
17209 + | /* ServerBuilderGenerator.kt:331 */
|
10950 17210 | #[allow(missing_docs)] // documentation missing in model
|
17211 + | /* ServerBuilderGenerator.kt:343 */
|
10951 17212 | pub fn double(mut self, input: f64) -> Self {
|
10952 - | self.double = Some(input);
|
17213 + | /* ServerBuilderGenerator.kt:344 */
|
17214 + | self.double =
|
17215 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17216 + | /* ServerBuilderGenerator.kt:376 */input
|
17217 + | /* ServerBuilderGenerator.kt:345 */)
|
17218 + | /* ServerBuilderGenerator.kt:344 */;
|
10953 17219 | self
|
17220 + | /* ServerBuilderGenerator.kt:343 */
|
10954 17221 | }
|
17222 + | /* ServerBuilderGenerator.kt:426 */
|
10955 17223 | #[allow(missing_docs)] // documentation missing in model
|
17224 + | /* ServerBuilderGenerator.kt:428 */
|
10956 17225 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
17226 + | /* ServerBuilderGenerator.kt:429 */
|
10957 17227 | self.double = Some(input.into());
|
10958 17228 | self
|
17229 + | /* ServerBuilderGenerator.kt:428 */
|
10959 17230 | }
|
10960 - | /// Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
10961 - | ///
|
17231 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17232 + | /// /* ServerBuilderGenerator.kt:260 */
|
10962 17233 | /// The builder fails to construct a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) if a [`ConstraintViolation`] occurs.
|
10963 17234 | ///
|
10964 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17235 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17236 + | /* ServerBuilderGenerator.kt:271 */
|
10965 17237 | pub fn build(
|
10966 17238 | self,
|
10967 17239 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
10968 17240 | self.build_enforcing_all_constraints()
|
10969 17241 | }
|
17242 + | /* ServerBuilderGenerator.kt:283 */
|
10970 17243 | fn build_enforcing_all_constraints(
|
10971 17244 | self,
|
10972 17245 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
10973 - | Ok(crate::input::HttpRequestWithFloatLabelsInput {
|
10974 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
10975 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
10976 - | })
|
17246 + | /* ServerBuilderGenerator.kt:287 */
|
17247 + | Ok(
|
17248 + | /* ServerBuilderGenerator.kt:542 */
|
17249 + | crate::input::HttpRequestWithFloatLabelsInput {
|
17250 + | /* ServerBuilderGenerator.kt:546 */
|
17251 + | float: self
|
17252 + | .float
|
17253 + | /* ServerBuilderGenerator.kt:569 */
|
17254 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
17255 + | /* ServerBuilderGenerator.kt:546 */
|
17256 + | double: self
|
17257 + | .double
|
17258 + | /* ServerBuilderGenerator.kt:569 */
|
17259 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
17260 + | /* ServerBuilderGenerator.kt:542 */
|
17261 + | }, /* ServerBuilderGenerator.kt:287 */
|
17262 + | )
|
17263 + | /* ServerBuilderGenerator.kt:283 */
|
10977 17264 | }
|
17265 + | /* ServerBuilderGenerator.kt:215 */
|
10978 17266 | }
|
17267 + |
|
17268 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10979 17269 | }
|
10980 - | /// See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17270 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
10981 17271 | pub mod http_request_with_greedy_label_in_path_input {
|
10982 17272 |
|
17273 + | /* RustType.kt:516 */
|
10983 17274 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10984 - | /// Holds one variant for each of the ways the builder can fail.
|
17275 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17276 + | /* RustType.kt:516 */
|
10985 17277 | #[non_exhaustive]
|
17278 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10986 17279 | #[allow(clippy::enum_variant_names)]
|
10987 17280 | pub enum ConstraintViolation {
|
10988 - | /// `foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17281 + | /// /* ServerBuilderConstraintViolations.kt:138 */`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17282 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10989 17283 | MissingFoo,
|
10990 - | /// `baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17284 + | /// /* ServerBuilderConstraintViolations.kt:138 */`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17285 + | /* ServerBuilderConstraintViolations.kt:143 */
|
10991 17286 | MissingBaz,
|
17287 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10992 17288 | }
|
17289 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10993 17290 | impl ::std::fmt::Display for ConstraintViolation {
|
17291 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10994 17292 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17293 + | /* ServerBuilderConstraintViolations.kt:119 */
|
10995 17294 | match self {
|
10996 - | ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
10997 - | ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
10998 - | }
|
17295 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
17296 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
17297 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17298 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10999 17299 | }
|
17300 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11000 17301 | }
|
17302 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11001 17303 | impl ::std::error::Error for ConstraintViolation {}
|
17304 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11002 17305 | impl ConstraintViolation {
|
11003 17306 | pub(crate) fn as_validation_exception_field(
|
11004 17307 | self,
|
11005 17308 | path: ::std::string::String,
|
11006 17309 | ) -> crate::model::ValidationExceptionField {
|
11007 17310 | match self {
|
11008 17311 | ConstraintViolation::MissingFoo => crate::model::ValidationExceptionField {
|
11009 17312 | message: format!(
|
11010 17313 | "Value at '{}/foo' failed to satisfy constraint: Member must not be null",
|
11011 17314 | path
|
11012 17315 | ),
|
11013 17316 | path: path + "/foo",
|
11014 17317 | },
|
11015 17318 | ConstraintViolation::MissingBaz => crate::model::ValidationExceptionField {
|
11016 17319 | message: format!(
|
11017 17320 | "Value at '{}/baz' failed to satisfy constraint: Member must not be null",
|
11018 17321 | path
|
11019 17322 | ),
|
11020 17323 | path: path + "/baz",
|
11021 17324 | },
|
11022 17325 | }
|
11023 17326 | }
|
11024 17327 | }
|
17328 + | /* ServerBuilderGenerator.kt:234 */
|
11025 17329 | impl ::std::convert::From<ConstraintViolation>
|
11026 17330 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11027 17331 | {
|
11028 17332 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11029 17333 | let first_validation_exception_field =
|
11030 17334 | constraint_violation.as_validation_exception_field("".to_owned());
|
11031 17335 | let validation_exception = crate::error::ValidationException {
|
11032 17336 | message: format!(
|
11033 17337 | "1 validation error detected. {}",
|
11034 17338 | &first_validation_exception_field.message
|
11035 17339 | ),
|
11036 17340 | field_list: Some(vec![first_validation_exception_field]),
|
11037 17341 | };
|
11038 17342 | Self::ConstraintViolation(
|
11039 17343 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11040 17344 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11041 17345 | )
|
11042 17346 | }
|
11043 17347 | }
|
17348 + | /* ServerBuilderGenerator.kt:244 */
|
11044 17349 | impl ::std::convert::From<Builder>
|
11045 17350 | for crate::constrained::MaybeConstrained<
|
11046 17351 | crate::input::HttpRequestWithGreedyLabelInPathInput,
|
11047 17352 | >
|
11048 17353 | {
|
11049 17354 | fn from(builder: Builder) -> Self {
|
11050 17355 | Self::Unconstrained(builder)
|
11051 17356 | }
|
11052 17357 | }
|
17358 + | /* ServerBuilderGenerator.kt:446 */
|
11053 17359 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
11054 17360 | type Error = ConstraintViolation;
|
11055 17361 |
|
11056 17362 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11057 17363 | builder.build()
|
11058 17364 | }
|
11059 17365 | }
|
11060 - | /// A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17366 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17367 + | /* RustType.kt:516 */
|
11061 17368 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17369 + | /* ServerBuilderGenerator.kt:211 */
|
11062 17370 | pub struct Builder {
|
17371 + | /* ServerBuilderGenerator.kt:308 */
|
11063 17372 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
17373 + | /* ServerBuilderGenerator.kt:308 */
|
11064 17374 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
17375 + | /* ServerBuilderGenerator.kt:211 */
|
11065 17376 | }
|
17377 + | /* ServerBuilderGenerator.kt:215 */
|
11066 17378 | impl Builder {
|
17379 + | /* ServerBuilderGenerator.kt:331 */
|
11067 17380 | #[allow(missing_docs)] // documentation missing in model
|
17381 + | /* ServerBuilderGenerator.kt:343 */
|
11068 17382 | pub fn foo(mut self, input: ::std::string::String) -> Self {
|
11069 - | self.foo = Some(input);
|
17383 + | /* ServerBuilderGenerator.kt:344 */
|
17384 + | self.foo =
|
17385 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17386 + | /* ServerBuilderGenerator.kt:376 */input
|
17387 + | /* ServerBuilderGenerator.kt:345 */)
|
17388 + | /* ServerBuilderGenerator.kt:344 */;
|
11070 17389 | self
|
17390 + | /* ServerBuilderGenerator.kt:343 */
|
11071 17391 | }
|
17392 + | /* ServerBuilderGenerator.kt:426 */
|
11072 17393 | #[allow(missing_docs)] // documentation missing in model
|
17394 + | /* ServerBuilderGenerator.kt:428 */
|
11073 17395 | pub(crate) fn set_foo(
|
11074 17396 | mut self,
|
11075 17397 | input: impl ::std::convert::Into<::std::string::String>,
|
11076 17398 | ) -> Self {
|
17399 + | /* ServerBuilderGenerator.kt:429 */
|
11077 17400 | self.foo = Some(input.into());
|
11078 17401 | self
|
17402 + | /* ServerBuilderGenerator.kt:428 */
|
11079 17403 | }
|
17404 + | /* ServerBuilderGenerator.kt:331 */
|
11080 17405 | #[allow(missing_docs)] // documentation missing in model
|
17406 + | /* ServerBuilderGenerator.kt:343 */
|
11081 17407 | pub fn baz(mut self, input: ::std::string::String) -> Self {
|
11082 - | self.baz = Some(input);
|
17408 + | /* ServerBuilderGenerator.kt:344 */
|
17409 + | self.baz =
|
17410 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17411 + | /* ServerBuilderGenerator.kt:376 */input
|
17412 + | /* ServerBuilderGenerator.kt:345 */)
|
17413 + | /* ServerBuilderGenerator.kt:344 */;
|
11083 17414 | self
|
17415 + | /* ServerBuilderGenerator.kt:343 */
|
11084 17416 | }
|
17417 + | /* ServerBuilderGenerator.kt:426 */
|
11085 17418 | #[allow(missing_docs)] // documentation missing in model
|
17419 + | /* ServerBuilderGenerator.kt:428 */
|
11086 17420 | pub(crate) fn set_baz(
|
11087 17421 | mut self,
|
11088 17422 | input: impl ::std::convert::Into<::std::string::String>,
|
11089 17423 | ) -> Self {
|
17424 + | /* ServerBuilderGenerator.kt:429 */
|
11090 17425 | self.baz = Some(input.into());
|
11091 17426 | self
|
17427 + | /* ServerBuilderGenerator.kt:428 */
|
11092 17428 | }
|
11093 - | /// Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
11094 - | ///
|
17429 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17430 + | /// /* ServerBuilderGenerator.kt:260 */
|
11095 17431 | /// The builder fails to construct a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) if a [`ConstraintViolation`] occurs.
|
11096 17432 | ///
|
11097 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17433 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17434 + | /* ServerBuilderGenerator.kt:271 */
|
11098 17435 | pub fn build(
|
11099 17436 | self,
|
11100 17437 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
11101 17438 | {
|
11102 17439 | self.build_enforcing_all_constraints()
|
11103 17440 | }
|
17441 + | /* ServerBuilderGenerator.kt:283 */
|
11104 17442 | fn build_enforcing_all_constraints(
|
11105 17443 | self,
|
11106 17444 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
11107 17445 | {
|
11108 - | Ok(crate::input::HttpRequestWithGreedyLabelInPathInput {
|
11109 - | foo: self.foo.ok_or(ConstraintViolation::MissingFoo)?,
|
11110 - | baz: self.baz.ok_or(ConstraintViolation::MissingBaz)?,
|
11111 - | })
|
17446 + | /* ServerBuilderGenerator.kt:287 */
|
17447 + | Ok(
|
17448 + | /* ServerBuilderGenerator.kt:542 */
|
17449 + | crate::input::HttpRequestWithGreedyLabelInPathInput {
|
17450 + | /* ServerBuilderGenerator.kt:546 */
|
17451 + | foo: self
|
17452 + | .foo
|
17453 + | /* ServerBuilderGenerator.kt:569 */
|
17454 + | .ok_or(ConstraintViolation::MissingFoo)?,
|
17455 + | /* ServerBuilderGenerator.kt:546 */
|
17456 + | baz: self
|
17457 + | .baz
|
17458 + | /* ServerBuilderGenerator.kt:569 */
|
17459 + | .ok_or(ConstraintViolation::MissingBaz)?,
|
17460 + | /* ServerBuilderGenerator.kt:542 */
|
17461 + | }, /* ServerBuilderGenerator.kt:287 */
|
17462 + | )
|
17463 + | /* ServerBuilderGenerator.kt:283 */
|
11112 17464 | }
|
17465 + | /* ServerBuilderGenerator.kt:215 */
|
11113 17466 | }
|
17467 + |
|
17468 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11114 17469 | }
|
11115 - | /// See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17470 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
11116 17471 | pub mod http_request_with_labels_and_timestamp_format_input {
|
11117 17472 |
|
17473 + | /* RustType.kt:516 */
|
11118 17474 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11119 - | /// Holds one variant for each of the ways the builder can fail.
|
17475 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17476 + | /* RustType.kt:516 */
|
11120 17477 | #[non_exhaustive]
|
17478 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11121 17479 | #[allow(clippy::enum_variant_names)]
|
11122 17480 | pub enum ConstraintViolation {
|
11123 - | /// `member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17481 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17482 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11124 17483 | MissingMemberEpochSeconds,
|
11125 - | /// `member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17484 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17485 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11126 17486 | MissingMemberHttpDate,
|
11127 - | /// `member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17487 + | /// /* ServerBuilderConstraintViolations.kt:138 */`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17488 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11128 17489 | MissingMemberDateTime,
|
11129 - | /// `default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17490 + | /// /* ServerBuilderConstraintViolations.kt:138 */`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17491 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11130 17492 | MissingDefaultFormat,
|
11131 - | /// `target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17493 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17494 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11132 17495 | MissingTargetEpochSeconds,
|
11133 - | /// `target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17496 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17497 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11134 17498 | MissingTargetHttpDate,
|
11135 - | /// `target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17499 + | /// /* ServerBuilderConstraintViolations.kt:138 */`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17500 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11136 17501 | MissingTargetDateTime,
|
17502 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11137 17503 | }
|
17504 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11138 17505 | impl ::std::fmt::Display for ConstraintViolation {
|
17506 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11139 17507 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17508 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11140 17509 | match self {
|
11141 - | ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11142 - | ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11143 - | ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11144 - | ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11145 - | ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11146 - | ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11147 - | ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11148 - | }
|
11149 - | }
|
11150 - | }
|
17510 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17511 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17512 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17513 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17514 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17515 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17516 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17517 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17518 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17519 + | }
|
17520 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17521 + | }
|
17522 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11151 17523 | impl ::std::error::Error for ConstraintViolation {}
|
17524 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11152 17525 | impl ConstraintViolation {
|
11153 17526 | pub(crate) fn as_validation_exception_field(
|
11154 17527 | self,
|
11155 17528 | path: ::std::string::String,
|
11156 17529 | ) -> crate::model::ValidationExceptionField {
|
11157 17530 | match self {
|
11158 17531 | ConstraintViolation::MissingMemberEpochSeconds => crate::model::ValidationExceptionField {
|
11159 17532 | message: format!("Value at '{}/memberEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
11160 17533 | path: path + "/memberEpochSeconds",
|
11161 17534 | },
|
11162 17535 | ConstraintViolation::MissingMemberHttpDate => crate::model::ValidationExceptionField {
|
11163 17536 | message: format!("Value at '{}/memberHttpDate' failed to satisfy constraint: Member must not be null", path),
|
11164 17537 | path: path + "/memberHttpDate",
|
11165 17538 | },
|
11166 17539 | ConstraintViolation::MissingMemberDateTime => crate::model::ValidationExceptionField {
|
11167 17540 | message: format!("Value at '{}/memberDateTime' failed to satisfy constraint: Member must not be null", path),
|
11168 17541 | path: path + "/memberDateTime",
|
11169 17542 | },
|
11170 17543 | ConstraintViolation::MissingDefaultFormat => crate::model::ValidationExceptionField {
|
11171 17544 | message: format!("Value at '{}/defaultFormat' failed to satisfy constraint: Member must not be null", path),
|
11172 17545 | path: path + "/defaultFormat",
|
11173 17546 | },
|
11174 17547 | ConstraintViolation::MissingTargetEpochSeconds => crate::model::ValidationExceptionField {
|
11175 17548 | message: format!("Value at '{}/targetEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
11176 17549 | path: path + "/targetEpochSeconds",
|
11177 17550 | },
|
11178 17551 | ConstraintViolation::MissingTargetHttpDate => crate::model::ValidationExceptionField {
|
11179 17552 | message: format!("Value at '{}/targetHttpDate' failed to satisfy constraint: Member must not be null", path),
|
11180 17553 | path: path + "/targetHttpDate",
|
11181 17554 | },
|
11182 17555 | ConstraintViolation::MissingTargetDateTime => crate::model::ValidationExceptionField {
|
11183 17556 | message: format!("Value at '{}/targetDateTime' failed to satisfy constraint: Member must not be null", path),
|
11184 17557 | path: path + "/targetDateTime",
|
11185 17558 | },
|
11186 17559 | }
|
11187 17560 | }
|
11188 17561 | }
|
17562 + | /* ServerBuilderGenerator.kt:234 */
|
11189 17563 | impl ::std::convert::From<ConstraintViolation>
|
11190 17564 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11191 17565 | {
|
11192 17566 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11193 17567 | let first_validation_exception_field =
|
11194 17568 | constraint_violation.as_validation_exception_field("".to_owned());
|
11195 17569 | let validation_exception = crate::error::ValidationException {
|
11196 17570 | message: format!(
|
11197 17571 | "1 validation error detected. {}",
|
11198 17572 | &first_validation_exception_field.message
|
11199 17573 | ),
|
11200 17574 | field_list: Some(vec![first_validation_exception_field]),
|
11201 17575 | };
|
11202 17576 | Self::ConstraintViolation(
|
11203 17577 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11204 17578 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11205 17579 | )
|
11206 17580 | }
|
11207 17581 | }
|
17582 + | /* ServerBuilderGenerator.kt:244 */
|
11208 17583 | impl ::std::convert::From<Builder>
|
11209 17584 | for crate::constrained::MaybeConstrained<
|
11210 17585 | crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
|
11211 17586 | >
|
11212 17587 | {
|
11213 17588 | fn from(builder: Builder) -> Self {
|
11214 17589 | Self::Unconstrained(builder)
|
11215 17590 | }
|
11216 17591 | }
|
17592 + | /* ServerBuilderGenerator.kt:446 */
|
11217 17593 | impl ::std::convert::TryFrom<Builder>
|
11218 17594 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
11219 17595 | {
|
11220 17596 | type Error = ConstraintViolation;
|
11221 17597 |
|
11222 17598 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11223 17599 | builder.build()
|
11224 17600 | }
|
11225 17601 | }
|
11226 - | /// A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17602 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17603 + | /* RustType.kt:516 */
|
11227 17604 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17605 + | /* ServerBuilderGenerator.kt:211 */
|
11228 17606 | pub struct Builder {
|
17607 + | /* ServerBuilderGenerator.kt:308 */
|
11229 17608 | pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17609 + | /* ServerBuilderGenerator.kt:308 */
|
11230 17610 | pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17611 + | /* ServerBuilderGenerator.kt:308 */
|
11231 17612 | pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17613 + | /* ServerBuilderGenerator.kt:308 */
|
11232 17614 | pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17615 + | /* ServerBuilderGenerator.kt:308 */
|
11233 17616 | pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17617 + | /* ServerBuilderGenerator.kt:308 */
|
11234 17618 | pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17619 + | /* ServerBuilderGenerator.kt:308 */
|
11235 17620 | pub(crate) target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17621 + | /* ServerBuilderGenerator.kt:211 */
|
11236 17622 | }
|
17623 + | /* ServerBuilderGenerator.kt:215 */
|
11237 17624 | impl Builder {
|
17625 + | /* ServerBuilderGenerator.kt:331 */
|
11238 17626 | #[allow(missing_docs)] // documentation missing in model
|
17627 + | /* ServerBuilderGenerator.kt:343 */
|
11239 17628 | pub fn member_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11240 - | self.member_epoch_seconds = Some(input);
|
17629 + | /* ServerBuilderGenerator.kt:344 */
|
17630 + | self.member_epoch_seconds =
|
17631 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17632 + | /* ServerBuilderGenerator.kt:376 */input
|
17633 + | /* ServerBuilderGenerator.kt:345 */)
|
17634 + | /* ServerBuilderGenerator.kt:344 */;
|
11241 17635 | self
|
17636 + | /* ServerBuilderGenerator.kt:343 */
|
11242 17637 | }
|
17638 + | /* ServerBuilderGenerator.kt:426 */
|
11243 17639 | #[allow(missing_docs)] // documentation missing in model
|
17640 + | /* ServerBuilderGenerator.kt:428 */
|
11244 17641 | pub(crate) fn set_member_epoch_seconds(
|
11245 17642 | mut self,
|
11246 17643 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11247 17644 | ) -> Self {
|
17645 + | /* ServerBuilderGenerator.kt:429 */
|
11248 17646 | self.member_epoch_seconds = Some(input.into());
|
11249 17647 | self
|
17648 + | /* ServerBuilderGenerator.kt:428 */
|
11250 17649 | }
|
17650 + | /* ServerBuilderGenerator.kt:331 */
|
11251 17651 | #[allow(missing_docs)] // documentation missing in model
|
17652 + | /* ServerBuilderGenerator.kt:343 */
|
11252 17653 | pub fn member_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11253 - | self.member_http_date = Some(input);
|
17654 + | /* ServerBuilderGenerator.kt:344 */
|
17655 + | self.member_http_date =
|
17656 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17657 + | /* ServerBuilderGenerator.kt:376 */input
|
17658 + | /* ServerBuilderGenerator.kt:345 */)
|
17659 + | /* ServerBuilderGenerator.kt:344 */;
|
11254 17660 | self
|
17661 + | /* ServerBuilderGenerator.kt:343 */
|
11255 17662 | }
|
17663 + | /* ServerBuilderGenerator.kt:426 */
|
11256 17664 | #[allow(missing_docs)] // documentation missing in model
|
17665 + | /* ServerBuilderGenerator.kt:428 */
|
11257 17666 | pub(crate) fn set_member_http_date(
|
11258 17667 | mut self,
|
11259 17668 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11260 17669 | ) -> Self {
|
17670 + | /* ServerBuilderGenerator.kt:429 */
|
11261 17671 | self.member_http_date = Some(input.into());
|
11262 17672 | self
|
17673 + | /* ServerBuilderGenerator.kt:428 */
|
11263 17674 | }
|
17675 + | /* ServerBuilderGenerator.kt:331 */
|
11264 17676 | #[allow(missing_docs)] // documentation missing in model
|
17677 + | /* ServerBuilderGenerator.kt:343 */
|
11265 17678 | pub fn member_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11266 - | self.member_date_time = Some(input);
|
17679 + | /* ServerBuilderGenerator.kt:344 */
|
17680 + | self.member_date_time =
|
17681 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17682 + | /* ServerBuilderGenerator.kt:376 */input
|
17683 + | /* ServerBuilderGenerator.kt:345 */)
|
17684 + | /* ServerBuilderGenerator.kt:344 */;
|
11267 17685 | self
|
17686 + | /* ServerBuilderGenerator.kt:343 */
|
11268 17687 | }
|
17688 + | /* ServerBuilderGenerator.kt:426 */
|
11269 17689 | #[allow(missing_docs)] // documentation missing in model
|
17690 + | /* ServerBuilderGenerator.kt:428 */
|
11270 17691 | pub(crate) fn set_member_date_time(
|
11271 17692 | mut self,
|
11272 17693 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11273 17694 | ) -> Self {
|
17695 + | /* ServerBuilderGenerator.kt:429 */
|
11274 17696 | self.member_date_time = Some(input.into());
|
11275 17697 | self
|
17698 + | /* ServerBuilderGenerator.kt:428 */
|
11276 17699 | }
|
17700 + | /* ServerBuilderGenerator.kt:331 */
|
11277 17701 | #[allow(missing_docs)] // documentation missing in model
|
17702 + | /* ServerBuilderGenerator.kt:343 */
|
11278 17703 | pub fn default_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11279 - | self.default_format = Some(input);
|
17704 + | /* ServerBuilderGenerator.kt:344 */
|
17705 + | self.default_format =
|
17706 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17707 + | /* ServerBuilderGenerator.kt:376 */input
|
17708 + | /* ServerBuilderGenerator.kt:345 */)
|
17709 + | /* ServerBuilderGenerator.kt:344 */;
|
11280 17710 | self
|
17711 + | /* ServerBuilderGenerator.kt:343 */
|
11281 17712 | }
|
17713 + | /* ServerBuilderGenerator.kt:426 */
|
11282 17714 | #[allow(missing_docs)] // documentation missing in model
|
17715 + | /* ServerBuilderGenerator.kt:428 */
|
11283 17716 | pub(crate) fn set_default_format(
|
11284 17717 | mut self,
|
11285 17718 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11286 17719 | ) -> Self {
|
17720 + | /* ServerBuilderGenerator.kt:429 */
|
11287 17721 | self.default_format = Some(input.into());
|
11288 17722 | self
|
17723 + | /* ServerBuilderGenerator.kt:428 */
|
11289 17724 | }
|
17725 + | /* ServerBuilderGenerator.kt:331 */
|
11290 17726 | #[allow(missing_docs)] // documentation missing in model
|
17727 + | /* ServerBuilderGenerator.kt:343 */
|
11291 17728 | pub fn target_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11292 - | self.target_epoch_seconds = Some(input);
|
17729 + | /* ServerBuilderGenerator.kt:344 */
|
17730 + | self.target_epoch_seconds =
|
17731 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17732 + | /* ServerBuilderGenerator.kt:376 */input
|
17733 + | /* ServerBuilderGenerator.kt:345 */)
|
17734 + | /* ServerBuilderGenerator.kt:344 */;
|
11293 17735 | self
|
17736 + | /* ServerBuilderGenerator.kt:343 */
|
11294 17737 | }
|
17738 + | /* ServerBuilderGenerator.kt:426 */
|
11295 17739 | #[allow(missing_docs)] // documentation missing in model
|
17740 + | /* ServerBuilderGenerator.kt:428 */
|
11296 17741 | pub(crate) fn set_target_epoch_seconds(
|
11297 17742 | mut self,
|
11298 17743 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11299 17744 | ) -> Self {
|
17745 + | /* ServerBuilderGenerator.kt:429 */
|
11300 17746 | self.target_epoch_seconds = Some(input.into());
|
11301 17747 | self
|
17748 + | /* ServerBuilderGenerator.kt:428 */
|
11302 17749 | }
|
17750 + | /* ServerBuilderGenerator.kt:331 */
|
11303 17751 | #[allow(missing_docs)] // documentation missing in model
|
17752 + | /* ServerBuilderGenerator.kt:343 */
|
11304 17753 | pub fn target_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11305 - | self.target_http_date = Some(input);
|
17754 + | /* ServerBuilderGenerator.kt:344 */
|
17755 + | self.target_http_date =
|
17756 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17757 + | /* ServerBuilderGenerator.kt:376 */input
|
17758 + | /* ServerBuilderGenerator.kt:345 */)
|
17759 + | /* ServerBuilderGenerator.kt:344 */;
|
11306 17760 | self
|
17761 + | /* ServerBuilderGenerator.kt:343 */
|
11307 17762 | }
|
17763 + | /* ServerBuilderGenerator.kt:426 */
|
11308 17764 | #[allow(missing_docs)] // documentation missing in model
|
17765 + | /* ServerBuilderGenerator.kt:428 */
|
11309 17766 | pub(crate) fn set_target_http_date(
|
11310 17767 | mut self,
|
11311 17768 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11312 17769 | ) -> Self {
|
17770 + | /* ServerBuilderGenerator.kt:429 */
|
11313 17771 | self.target_http_date = Some(input.into());
|
11314 17772 | self
|
17773 + | /* ServerBuilderGenerator.kt:428 */
|
11315 17774 | }
|
17775 + | /* ServerBuilderGenerator.kt:331 */
|
11316 17776 | #[allow(missing_docs)] // documentation missing in model
|
17777 + | /* ServerBuilderGenerator.kt:343 */
|
11317 17778 | pub fn target_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11318 - | self.target_date_time = Some(input);
|
17779 + | /* ServerBuilderGenerator.kt:344 */
|
17780 + | self.target_date_time =
|
17781 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17782 + | /* ServerBuilderGenerator.kt:376 */input
|
17783 + | /* ServerBuilderGenerator.kt:345 */)
|
17784 + | /* ServerBuilderGenerator.kt:344 */;
|
11319 17785 | self
|
17786 + | /* ServerBuilderGenerator.kt:343 */
|
11320 17787 | }
|
17788 + | /* ServerBuilderGenerator.kt:426 */
|
11321 17789 | #[allow(missing_docs)] // documentation missing in model
|
17790 + | /* ServerBuilderGenerator.kt:428 */
|
11322 17791 | pub(crate) fn set_target_date_time(
|
11323 17792 | mut self,
|
11324 17793 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11325 17794 | ) -> Self {
|
17795 + | /* ServerBuilderGenerator.kt:429 */
|
11326 17796 | self.target_date_time = Some(input.into());
|
11327 17797 | self
|
17798 + | /* ServerBuilderGenerator.kt:428 */
|
11328 17799 | }
|
11329 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
11330 - | ///
|
17800 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17801 + | /// /* ServerBuilderGenerator.kt:260 */
|
11331 17802 | /// The builder fails to construct a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) if a [`ConstraintViolation`] occurs.
|
11332 17803 | ///
|
11333 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17804 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17805 + | /* ServerBuilderGenerator.kt:271 */
|
11334 17806 | pub fn build(
|
11335 17807 | self,
|
11336 17808 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
11337 17809 | {
|
11338 17810 | self.build_enforcing_all_constraints()
|
11339 17811 | }
|
17812 + | /* ServerBuilderGenerator.kt:283 */
|
11340 17813 | fn build_enforcing_all_constraints(
|
11341 17814 | self,
|
11342 17815 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
11343 17816 | {
|
11344 - | Ok(crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
17817 + | /* ServerBuilderGenerator.kt:287 */
|
17818 + | Ok(
|
17819 + | /* ServerBuilderGenerator.kt:542 */
|
17820 + | crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
17821 + | /* ServerBuilderGenerator.kt:546 */
|
11345 17822 | member_epoch_seconds: self
|
11346 17823 | .member_epoch_seconds
|
17824 + | /* ServerBuilderGenerator.kt:569 */
|
11347 17825 | .ok_or(ConstraintViolation::MissingMemberEpochSeconds)?,
|
17826 + | /* ServerBuilderGenerator.kt:546 */
|
11348 17827 | member_http_date: self
|
11349 17828 | .member_http_date
|
17829 + | /* ServerBuilderGenerator.kt:569 */
|
11350 17830 | .ok_or(ConstraintViolation::MissingMemberHttpDate)?,
|
17831 + | /* ServerBuilderGenerator.kt:546 */
|
11351 17832 | member_date_time: self
|
11352 17833 | .member_date_time
|
17834 + | /* ServerBuilderGenerator.kt:569 */
|
11353 17835 | .ok_or(ConstraintViolation::MissingMemberDateTime)?,
|
17836 + | /* ServerBuilderGenerator.kt:546 */
|
11354 17837 | default_format: self
|
11355 17838 | .default_format
|
17839 + | /* ServerBuilderGenerator.kt:569 */
|
11356 17840 | .ok_or(ConstraintViolation::MissingDefaultFormat)?,
|
17841 + | /* ServerBuilderGenerator.kt:546 */
|
11357 17842 | target_epoch_seconds: self
|
11358 17843 | .target_epoch_seconds
|
17844 + | /* ServerBuilderGenerator.kt:569 */
|
11359 17845 | .ok_or(ConstraintViolation::MissingTargetEpochSeconds)?,
|
17846 + | /* ServerBuilderGenerator.kt:546 */
|
11360 17847 | target_http_date: self
|
11361 17848 | .target_http_date
|
17849 + | /* ServerBuilderGenerator.kt:569 */
|
11362 17850 | .ok_or(ConstraintViolation::MissingTargetHttpDate)?,
|
17851 + | /* ServerBuilderGenerator.kt:546 */
|
11363 17852 | target_date_time: self
|
11364 17853 | .target_date_time
|
17854 + | /* ServerBuilderGenerator.kt:569 */
|
11365 17855 | .ok_or(ConstraintViolation::MissingTargetDateTime)?,
|
11366 - | })
|
17856 + | /* ServerBuilderGenerator.kt:542 */
|
17857 + | }, /* ServerBuilderGenerator.kt:287 */
|
17858 + | )
|
17859 + | /* ServerBuilderGenerator.kt:283 */
|
11367 17860 | }
|
17861 + | /* ServerBuilderGenerator.kt:215 */
|
11368 17862 | }
|
17863 + |
|
17864 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11369 17865 | }
|
11370 - | /// See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
17866 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
11371 17867 | pub mod http_request_with_labels_input {
|
11372 17868 |
|
17869 + | /* RustType.kt:516 */
|
11373 17870 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11374 - | /// Holds one variant for each of the ways the builder can fail.
|
17871 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17872 + | /* RustType.kt:516 */
|
11375 17873 | #[non_exhaustive]
|
17874 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11376 17875 | #[allow(clippy::enum_variant_names)]
|
11377 17876 | pub enum ConstraintViolation {
|
11378 - | /// `string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17877 + | /// /* ServerBuilderConstraintViolations.kt:138 */`string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17878 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11379 17879 | MissingString,
|
11380 - | /// `short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17880 + | /// /* ServerBuilderConstraintViolations.kt:138 */`short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17881 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11381 17882 | MissingShort,
|
11382 - | /// `integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17883 + | /// /* ServerBuilderConstraintViolations.kt:138 */`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17884 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11383 17885 | MissingInteger,
|
11384 - | /// `long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17886 + | /// /* ServerBuilderConstraintViolations.kt:138 */`long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17887 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11385 17888 | MissingLong,
|
11386 - | /// `float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17889 + | /// /* ServerBuilderConstraintViolations.kt:138 */`float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17890 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11387 17891 | MissingFloat,
|
11388 - | /// `double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17892 + | /// /* ServerBuilderConstraintViolations.kt:138 */`double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17893 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11389 17894 | MissingDouble,
|
11390 - | /// `boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17895 + | /// /* ServerBuilderConstraintViolations.kt:138 */`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17896 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11391 17897 | MissingBoolean,
|
11392 - | /// `timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17898 + | /// /* ServerBuilderConstraintViolations.kt:138 */`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
17899 + | /* ServerBuilderConstraintViolations.kt:143 */
|
11393 17900 | MissingTimestamp,
|
17901 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11394 17902 | }
|
17903 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11395 17904 | impl ::std::fmt::Display for ConstraintViolation {
|
17905 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11396 17906 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17907 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11397 17908 | match self {
|
11398 - | ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11399 - | ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11400 - | ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11401 - | ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11402 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11403 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11404 - | ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11405 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11406 - | }
|
11407 - | }
|
11408 - | }
|
17909 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17910 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17911 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17912 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17913 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17914 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17915 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17916 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
17917 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
17918 + | /* ServerBuilderConstraintViolations.kt:118 */
|
17919 + | }
|
17920 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17921 + | }
|
17922 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11409 17923 | impl ::std::error::Error for ConstraintViolation {}
|
17924 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11410 17925 | impl ConstraintViolation {
|
11411 17926 | pub(crate) fn as_validation_exception_field(
|
11412 17927 | self,
|
11413 17928 | path: ::std::string::String,
|
11414 17929 | ) -> crate::model::ValidationExceptionField {
|
11415 17930 | match self {
|
11416 17931 | ConstraintViolation::MissingString => crate::model::ValidationExceptionField {
|
11417 17932 | message: format!("Value at '{}/string' failed to satisfy constraint: Member must not be null", path),
|
11418 17933 | path: path + "/string",
|
11419 17934 | },
|
11420 17935 | ConstraintViolation::MissingShort => crate::model::ValidationExceptionField {
|
11421 17936 | message: format!("Value at '{}/short' failed to satisfy constraint: Member must not be null", path),
|
11422 17937 | path: path + "/short",
|
11423 17938 | },
|
11424 17939 | ConstraintViolation::MissingInteger => crate::model::ValidationExceptionField {
|
11425 17940 | message: format!("Value at '{}/integer' failed to satisfy constraint: Member must not be null", path),
|
11426 17941 | path: path + "/integer",
|
11427 17942 | },
|
11428 17943 | ConstraintViolation::MissingLong => crate::model::ValidationExceptionField {
|
11429 17944 | message: format!("Value at '{}/long' failed to satisfy constraint: Member must not be null", path),
|
11430 17945 | path: path + "/long",
|
11431 17946 | },
|
11432 17947 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
11433 17948 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
11434 17949 | path: path + "/float",
|
11435 17950 | },
|
11436 17951 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
11437 17952 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
11438 17953 | path: path + "/double",
|
11439 17954 | },
|
11440 17955 | ConstraintViolation::MissingBoolean => crate::model::ValidationExceptionField {
|
11441 17956 | message: format!("Value at '{}/boolean' failed to satisfy constraint: Member must not be null", path),
|
11442 17957 | path: path + "/boolean",
|
11443 17958 | },
|
11444 17959 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
11445 17960 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
11446 17961 | path: path + "/timestamp",
|
11447 17962 | },
|
11448 17963 | }
|
11449 17964 | }
|
11450 17965 | }
|
17966 + | /* ServerBuilderGenerator.kt:234 */
|
11451 17967 | impl ::std::convert::From<ConstraintViolation>
|
11452 17968 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11453 17969 | {
|
11454 17970 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11455 17971 | let first_validation_exception_field =
|
11456 17972 | constraint_violation.as_validation_exception_field("".to_owned());
|
11457 17973 | let validation_exception = crate::error::ValidationException {
|
11458 17974 | message: format!(
|
11459 17975 | "1 validation error detected. {}",
|
11460 17976 | &first_validation_exception_field.message
|
11461 17977 | ),
|
11462 17978 | field_list: Some(vec![first_validation_exception_field]),
|
11463 17979 | };
|
11464 17980 | Self::ConstraintViolation(
|
11465 17981 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11466 17982 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11467 17983 | )
|
11468 17984 | }
|
11469 17985 | }
|
17986 + | /* ServerBuilderGenerator.kt:244 */
|
11470 17987 | impl ::std::convert::From<Builder>
|
11471 17988 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithLabelsInput>
|
11472 17989 | {
|
11473 17990 | fn from(builder: Builder) -> Self {
|
11474 17991 | Self::Unconstrained(builder)
|
11475 17992 | }
|
11476 17993 | }
|
17994 + | /* ServerBuilderGenerator.kt:446 */
|
11477 17995 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithLabelsInput {
|
11478 17996 | type Error = ConstraintViolation;
|
11479 17997 |
|
11480 17998 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11481 17999 | builder.build()
|
11482 18000 | }
|
11483 18001 | }
|
11484 - | /// A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18002 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18003 + | /* RustType.kt:516 */
|
11485 18004 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18005 + | /* ServerBuilderGenerator.kt:211 */
|
11486 18006 | pub struct Builder {
|
18007 + | /* ServerBuilderGenerator.kt:308 */
|
11487 18008 | pub(crate) string: ::std::option::Option<::std::string::String>,
|
11488 - | pub(crate) short: ::std::option::Option<i16>,
|
11489 - | pub(crate) integer: ::std::option::Option<i32>,
|
11490 - | pub(crate) long: ::std::option::Option<i64>,
|
11491 - | pub(crate) float: ::std::option::Option<f32>,
|
11492 - | pub(crate) double: ::std::option::Option<f64>,
|
11493 - | pub(crate) boolean: ::std::option::Option<bool>,
|
18009 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) short: ::std::option::Option<i16>,
|
18010 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) integer: ::std::option::Option<i32>,
|
18011 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) long: ::std::option::Option<i64>,
|
18012 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
18013 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) double: ::std::option::Option<f64>,
|
18014 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) boolean: ::std::option::Option<bool>,
|
18015 + | /* ServerBuilderGenerator.kt:308 */
|
11494 18016 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18017 + | /* ServerBuilderGenerator.kt:211 */
|
11495 18018 | }
|
18019 + | /* ServerBuilderGenerator.kt:215 */
|
11496 18020 | impl Builder {
|
18021 + | /* ServerBuilderGenerator.kt:331 */
|
11497 18022 | #[allow(missing_docs)] // documentation missing in model
|
18023 + | /* ServerBuilderGenerator.kt:343 */
|
11498 18024 | pub fn string(mut self, input: ::std::string::String) -> Self {
|
11499 - | self.string = Some(input);
|
18025 + | /* ServerBuilderGenerator.kt:344 */
|
18026 + | self.string =
|
18027 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18028 + | /* ServerBuilderGenerator.kt:376 */input
|
18029 + | /* ServerBuilderGenerator.kt:345 */)
|
18030 + | /* ServerBuilderGenerator.kt:344 */;
|
11500 18031 | self
|
18032 + | /* ServerBuilderGenerator.kt:343 */
|
11501 18033 | }
|
18034 + | /* ServerBuilderGenerator.kt:426 */
|
11502 18035 | #[allow(missing_docs)] // documentation missing in model
|
18036 + | /* ServerBuilderGenerator.kt:428 */
|
11503 18037 | pub(crate) fn set_string(
|
11504 18038 | mut self,
|
11505 18039 | input: impl ::std::convert::Into<::std::string::String>,
|
11506 18040 | ) -> Self {
|
18041 + | /* ServerBuilderGenerator.kt:429 */
|
11507 18042 | self.string = Some(input.into());
|
11508 18043 | self
|
18044 + | /* ServerBuilderGenerator.kt:428 */
|
11509 18045 | }
|
18046 + | /* ServerBuilderGenerator.kt:331 */
|
11510 18047 | #[allow(missing_docs)] // documentation missing in model
|
18048 + | /* ServerBuilderGenerator.kt:343 */
|
11511 18049 | pub fn short(mut self, input: i16) -> Self {
|
11512 - | self.short = Some(input);
|
18050 + | /* ServerBuilderGenerator.kt:344 */
|
18051 + | self.short =
|
18052 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18053 + | /* ServerBuilderGenerator.kt:376 */input
|
18054 + | /* ServerBuilderGenerator.kt:345 */)
|
18055 + | /* ServerBuilderGenerator.kt:344 */;
|
11513 18056 | self
|
18057 + | /* ServerBuilderGenerator.kt:343 */
|
11514 18058 | }
|
18059 + | /* ServerBuilderGenerator.kt:426 */
|
11515 18060 | #[allow(missing_docs)] // documentation missing in model
|
18061 + | /* ServerBuilderGenerator.kt:428 */
|
11516 18062 | pub(crate) fn set_short(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
18063 + | /* ServerBuilderGenerator.kt:429 */
|
11517 18064 | self.short = Some(input.into());
|
11518 18065 | self
|
18066 + | /* ServerBuilderGenerator.kt:428 */
|
11519 18067 | }
|
18068 + | /* ServerBuilderGenerator.kt:331 */
|
11520 18069 | #[allow(missing_docs)] // documentation missing in model
|
18070 + | /* ServerBuilderGenerator.kt:343 */
|
11521 18071 | pub fn integer(mut self, input: i32) -> Self {
|
11522 - | self.integer = Some(input);
|
18072 + | /* ServerBuilderGenerator.kt:344 */
|
18073 + | self.integer =
|
18074 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18075 + | /* ServerBuilderGenerator.kt:376 */input
|
18076 + | /* ServerBuilderGenerator.kt:345 */)
|
18077 + | /* ServerBuilderGenerator.kt:344 */;
|
11523 18078 | self
|
18079 + | /* ServerBuilderGenerator.kt:343 */
|
11524 18080 | }
|
18081 + | /* ServerBuilderGenerator.kt:426 */
|
11525 18082 | #[allow(missing_docs)] // documentation missing in model
|
18083 + | /* ServerBuilderGenerator.kt:428 */
|
11526 18084 | pub(crate) fn set_integer(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
18085 + | /* ServerBuilderGenerator.kt:429 */
|
11527 18086 | self.integer = Some(input.into());
|
11528 18087 | self
|
18088 + | /* ServerBuilderGenerator.kt:428 */
|
11529 18089 | }
|
18090 + | /* ServerBuilderGenerator.kt:331 */
|
11530 18091 | #[allow(missing_docs)] // documentation missing in model
|
18092 + | /* ServerBuilderGenerator.kt:343 */
|
11531 18093 | pub fn long(mut self, input: i64) -> Self {
|
11532 - | self.long = Some(input);
|
18094 + | /* ServerBuilderGenerator.kt:344 */
|
18095 + | self.long =
|
18096 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18097 + | /* ServerBuilderGenerator.kt:376 */input
|
18098 + | /* ServerBuilderGenerator.kt:345 */)
|
18099 + | /* ServerBuilderGenerator.kt:344 */;
|
11533 18100 | self
|
18101 + | /* ServerBuilderGenerator.kt:343 */
|
11534 18102 | }
|
18103 + | /* ServerBuilderGenerator.kt:426 */
|
11535 18104 | #[allow(missing_docs)] // documentation missing in model
|
18105 + | /* ServerBuilderGenerator.kt:428 */
|
11536 18106 | pub(crate) fn set_long(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
18107 + | /* ServerBuilderGenerator.kt:429 */
|
11537 18108 | self.long = Some(input.into());
|
11538 18109 | self
|
18110 + | /* ServerBuilderGenerator.kt:428 */
|
11539 18111 | }
|
18112 + | /* ServerBuilderGenerator.kt:331 */
|
11540 18113 | #[allow(missing_docs)] // documentation missing in model
|
18114 + | /* ServerBuilderGenerator.kt:343 */
|
11541 18115 | pub fn float(mut self, input: f32) -> Self {
|
11542 - | self.float = Some(input);
|
18116 + | /* ServerBuilderGenerator.kt:344 */
|
18117 + | self.float =
|
18118 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18119 + | /* ServerBuilderGenerator.kt:376 */input
|
18120 + | /* ServerBuilderGenerator.kt:345 */)
|
18121 + | /* ServerBuilderGenerator.kt:344 */;
|
11543 18122 | self
|
18123 + | /* ServerBuilderGenerator.kt:343 */
|
11544 18124 | }
|
18125 + | /* ServerBuilderGenerator.kt:426 */
|
11545 18126 | #[allow(missing_docs)] // documentation missing in model
|
18127 + | /* ServerBuilderGenerator.kt:428 */
|
11546 18128 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
18129 + | /* ServerBuilderGenerator.kt:429 */
|
11547 18130 | self.float = Some(input.into());
|
11548 18131 | self
|
18132 + | /* ServerBuilderGenerator.kt:428 */
|
11549 18133 | }
|
18134 + | /* ServerBuilderGenerator.kt:331 */
|
11550 18135 | #[allow(missing_docs)] // documentation missing in model
|
18136 + | /* ServerBuilderGenerator.kt:343 */
|
11551 18137 | pub fn double(mut self, input: f64) -> Self {
|
11552 - | self.double = Some(input);
|
18138 + | /* ServerBuilderGenerator.kt:344 */
|
18139 + | self.double =
|
18140 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18141 + | /* ServerBuilderGenerator.kt:376 */input
|
18142 + | /* ServerBuilderGenerator.kt:345 */)
|
18143 + | /* ServerBuilderGenerator.kt:344 */;
|
11553 18144 | self
|
18145 + | /* ServerBuilderGenerator.kt:343 */
|
11554 18146 | }
|
18147 + | /* ServerBuilderGenerator.kt:426 */
|
11555 18148 | #[allow(missing_docs)] // documentation missing in model
|
18149 + | /* ServerBuilderGenerator.kt:428 */
|
11556 18150 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
18151 + | /* ServerBuilderGenerator.kt:429 */
|
11557 18152 | self.double = Some(input.into());
|
11558 18153 | self
|
18154 + | /* ServerBuilderGenerator.kt:428 */
|
11559 18155 | }
|
11560 - | /// Serialized in the path as true or false.
|
18156 + | /// /* ServerBuilderGenerator.kt:331 */Serialized in the path as true or false.
|
18157 + | /* ServerBuilderGenerator.kt:343 */
|
11561 18158 | pub fn boolean(mut self, input: bool) -> Self {
|
11562 - | self.boolean = Some(input);
|
18159 + | /* ServerBuilderGenerator.kt:344 */
|
18160 + | self.boolean =
|
18161 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18162 + | /* ServerBuilderGenerator.kt:376 */input
|
18163 + | /* ServerBuilderGenerator.kt:345 */)
|
18164 + | /* ServerBuilderGenerator.kt:344 */;
|
11563 18165 | self
|
18166 + | /* ServerBuilderGenerator.kt:343 */
|
11564 18167 | }
|
11565 - | /// Serialized in the path as true or false.
|
18168 + | /// /* ServerBuilderGenerator.kt:426 */Serialized in the path as true or false.
|
18169 + | /* ServerBuilderGenerator.kt:428 */
|
11566 18170 | pub(crate) fn set_boolean(mut self, input: impl ::std::convert::Into<bool>) -> Self {
|
18171 + | /* ServerBuilderGenerator.kt:429 */
|
11567 18172 | self.boolean = Some(input.into());
|
11568 18173 | self
|
18174 + | /* ServerBuilderGenerator.kt:428 */
|
11569 18175 | }
|
11570 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18176 + | /// /* ServerBuilderGenerator.kt:331 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18177 + | /* ServerBuilderGenerator.kt:343 */
|
11571 18178 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11572 - | self.timestamp = Some(input);
|
18179 + | /* ServerBuilderGenerator.kt:344 */
|
18180 + | self.timestamp =
|
18181 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18182 + | /* ServerBuilderGenerator.kt:376 */input
|
18183 + | /* ServerBuilderGenerator.kt:345 */)
|
18184 + | /* ServerBuilderGenerator.kt:344 */;
|
11573 18185 | self
|
18186 + | /* ServerBuilderGenerator.kt:343 */
|
11574 18187 | }
|
11575 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18188 + | /// /* ServerBuilderGenerator.kt:426 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18189 + | /* ServerBuilderGenerator.kt:428 */
|
11576 18190 | pub(crate) fn set_timestamp(
|
11577 18191 | mut self,
|
11578 18192 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11579 18193 | ) -> Self {
|
18194 + | /* ServerBuilderGenerator.kt:429 */
|
11580 18195 | self.timestamp = Some(input.into());
|
11581 18196 | self
|
18197 + | /* ServerBuilderGenerator.kt:428 */
|
11582 18198 | }
|
11583 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
11584 - | ///
|
18199 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18200 + | /// /* ServerBuilderGenerator.kt:260 */
|
11585 18201 | /// The builder fails to construct a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) if a [`ConstraintViolation`] occurs.
|
11586 18202 | ///
|
11587 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18203 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18204 + | /* ServerBuilderGenerator.kt:271 */
|
11588 18205 | pub fn build(
|
11589 18206 | self,
|
11590 18207 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
11591 18208 | self.build_enforcing_all_constraints()
|
11592 18209 | }
|
18210 + | /* ServerBuilderGenerator.kt:283 */
|
11593 18211 | fn build_enforcing_all_constraints(
|
11594 18212 | self,
|
11595 18213 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
11596 - | Ok(crate::input::HttpRequestWithLabelsInput {
|
11597 - | string: self.string.ok_or(ConstraintViolation::MissingString)?,
|
11598 - | short: self.short.ok_or(ConstraintViolation::MissingShort)?,
|
11599 - | integer: self.integer.ok_or(ConstraintViolation::MissingInteger)?,
|
11600 - | long: self.long.ok_or(ConstraintViolation::MissingLong)?,
|
11601 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
11602 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
11603 - | boolean: self.boolean.ok_or(ConstraintViolation::MissingBoolean)?,
|
18214 + | /* ServerBuilderGenerator.kt:287 */
|
18215 + | Ok(
|
18216 + | /* ServerBuilderGenerator.kt:542 */
|
18217 + | crate::input::HttpRequestWithLabelsInput {
|
18218 + | /* ServerBuilderGenerator.kt:546 */
|
18219 + | string: self
|
18220 + | .string
|
18221 + | /* ServerBuilderGenerator.kt:569 */
|
18222 + | .ok_or(ConstraintViolation::MissingString)?,
|
18223 + | /* ServerBuilderGenerator.kt:546 */
|
18224 + | short: self
|
18225 + | .short
|
18226 + | /* ServerBuilderGenerator.kt:569 */
|
18227 + | .ok_or(ConstraintViolation::MissingShort)?,
|
18228 + | /* ServerBuilderGenerator.kt:546 */
|
18229 + | integer: self
|
18230 + | .integer
|
18231 + | /* ServerBuilderGenerator.kt:569 */
|
18232 + | .ok_or(ConstraintViolation::MissingInteger)?,
|
18233 + | /* ServerBuilderGenerator.kt:546 */
|
18234 + | long: self
|
18235 + | .long
|
18236 + | /* ServerBuilderGenerator.kt:569 */
|
18237 + | .ok_or(ConstraintViolation::MissingLong)?,
|
18238 + | /* ServerBuilderGenerator.kt:546 */
|
18239 + | float: self
|
18240 + | .float
|
18241 + | /* ServerBuilderGenerator.kt:569 */
|
18242 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
18243 + | /* ServerBuilderGenerator.kt:546 */
|
18244 + | double: self
|
18245 + | .double
|
18246 + | /* ServerBuilderGenerator.kt:569 */
|
18247 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
18248 + | /* ServerBuilderGenerator.kt:546 */
|
18249 + | boolean: self
|
18250 + | .boolean
|
18251 + | /* ServerBuilderGenerator.kt:569 */
|
18252 + | .ok_or(ConstraintViolation::MissingBoolean)?,
|
18253 + | /* ServerBuilderGenerator.kt:546 */
|
11604 18254 | timestamp: self
|
11605 18255 | .timestamp
|
18256 + | /* ServerBuilderGenerator.kt:569 */
|
11606 18257 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
11607 - | })
|
18258 + | /* ServerBuilderGenerator.kt:542 */
|
18259 + | }, /* ServerBuilderGenerator.kt:287 */
|
18260 + | )
|
18261 + | /* ServerBuilderGenerator.kt:283 */
|
11608 18262 | }
|
18263 + | /* ServerBuilderGenerator.kt:215 */
|
11609 18264 | }
|
18265 + |
|
18266 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11610 18267 | }
|
11611 - | /// See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18268 + | /// /* ServerBuilderGenerator.kt:171 */See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
11612 18269 | pub mod media_type_header_input {
|
11613 18270 |
|
18271 + | /* ServerBuilderGenerator.kt:461 */
|
11614 18272 | impl ::std::convert::From<Builder> for crate::input::MediaTypeHeaderInput {
|
11615 18273 | fn from(builder: Builder) -> Self {
|
11616 18274 | builder.build()
|
11617 18275 | }
|
11618 18276 | }
|
11619 - | /// A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18277 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18278 + | /* RustType.kt:516 */
|
11620 18279 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18280 + | /* ServerBuilderGenerator.kt:211 */
|
11621 18281 | pub struct Builder {
|
18282 + | /* ServerBuilderGenerator.kt:308 */
|
11622 18283 | pub(crate) json: ::std::option::Option<::std::string::String>,
|
18284 + | /* ServerBuilderGenerator.kt:211 */
|
11623 18285 | }
|
18286 + | /* ServerBuilderGenerator.kt:215 */
|
11624 18287 | impl Builder {
|
18288 + | /* ServerBuilderGenerator.kt:331 */
|
11625 18289 | #[allow(missing_docs)] // documentation missing in model
|
18290 + | /* ServerBuilderGenerator.kt:343 */
|
11626 18291 | pub fn json(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11627 - | self.json = input;
|
18292 + | /* ServerBuilderGenerator.kt:344 */
|
18293 + | self.json =
|
18294 + | /* ServerBuilderGenerator.kt:376 */input
|
18295 + | /* ServerBuilderGenerator.kt:344 */;
|
11628 18296 | self
|
18297 + | /* ServerBuilderGenerator.kt:343 */
|
11629 18298 | }
|
18299 + | /* ServerBuilderGenerator.kt:426 */
|
11630 18300 | #[allow(missing_docs)] // documentation missing in model
|
18301 + | /* ServerBuilderGenerator.kt:428 */
|
11631 18302 | pub(crate) fn set_json(
|
11632 18303 | mut self,
|
11633 18304 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11634 18305 | ) -> Self {
|
18306 + | /* ServerBuilderGenerator.kt:429 */
|
11635 18307 | self.json = input.map(|v| v.into());
|
11636 18308 | self
|
18309 + | /* ServerBuilderGenerator.kt:428 */
|
11637 18310 | }
|
11638 - | /// Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18311 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18312 + | /* ServerBuilderGenerator.kt:271 */
|
11639 18313 | pub fn build(self) -> crate::input::MediaTypeHeaderInput {
|
11640 18314 | self.build_enforcing_all_constraints()
|
11641 18315 | }
|
18316 + | /* ServerBuilderGenerator.kt:283 */
|
11642 18317 | fn build_enforcing_all_constraints(self) -> crate::input::MediaTypeHeaderInput {
|
11643 - | crate::input::MediaTypeHeaderInput { json: self.json }
|
18318 + | /* ServerBuilderGenerator.kt:542 */
|
18319 + | crate::input::MediaTypeHeaderInput {
|
18320 + | /* ServerBuilderGenerator.kt:546 */
|
18321 + | json: self.json,
|
18322 + | /* ServerBuilderGenerator.kt:542 */
|
18323 + | }
|
18324 + | /* ServerBuilderGenerator.kt:283 */
|
11644 18325 | }
|
18326 + | /* ServerBuilderGenerator.kt:215 */
|
11645 18327 | }
|
18328 + |
|
18329 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11646 18330 | }
|
11647 - | /// See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18331 + | /// /* ServerBuilderGenerator.kt:171 */See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
11648 18332 | pub mod timestamp_format_headers_input {
|
11649 18333 |
|
18334 + | /* ServerBuilderGenerator.kt:461 */
|
11650 18335 | impl ::std::convert::From<Builder> for crate::input::TimestampFormatHeadersInput {
|
11651 18336 | fn from(builder: Builder) -> Self {
|
11652 18337 | builder.build()
|
11653 18338 | }
|
11654 18339 | }
|
11655 - | /// A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18340 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18341 + | /* RustType.kt:516 */
|
11656 18342 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18343 + | /* ServerBuilderGenerator.kt:211 */
|
11657 18344 | pub struct Builder {
|
18345 + | /* ServerBuilderGenerator.kt:308 */
|
11658 18346 | pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18347 + | /* ServerBuilderGenerator.kt:308 */
|
11659 18348 | pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18349 + | /* ServerBuilderGenerator.kt:308 */
|
11660 18350 | pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18351 + | /* ServerBuilderGenerator.kt:308 */
|
11661 18352 | pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18353 + | /* ServerBuilderGenerator.kt:308 */
|
11662 18354 | pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18355 + | /* ServerBuilderGenerator.kt:308 */
|
11663 18356 | pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18357 + | /* ServerBuilderGenerator.kt:308 */
|
11664 18358 | pub(crate) target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18359 + | /* ServerBuilderGenerator.kt:211 */
|
11665 18360 | }
|
18361 + | /* ServerBuilderGenerator.kt:215 */
|
11666 18362 | impl Builder {
|
18363 + | /* ServerBuilderGenerator.kt:331 */
|
11667 18364 | #[allow(missing_docs)] // documentation missing in model
|
18365 + | /* ServerBuilderGenerator.kt:343 */
|
11668 18366 | pub fn member_epoch_seconds(
|
11669 18367 | mut self,
|
11670 18368 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11671 18369 | ) -> Self {
|
11672 - | self.member_epoch_seconds = input;
|
18370 + | /* ServerBuilderGenerator.kt:344 */
|
18371 + | self.member_epoch_seconds =
|
18372 + | /* ServerBuilderGenerator.kt:376 */input
|
18373 + | /* ServerBuilderGenerator.kt:344 */;
|
11673 18374 | self
|
18375 + | /* ServerBuilderGenerator.kt:343 */
|
11674 18376 | }
|
18377 + | /* ServerBuilderGenerator.kt:426 */
|
11675 18378 | #[allow(missing_docs)] // documentation missing in model
|
18379 + | /* ServerBuilderGenerator.kt:428 */
|
11676 18380 | pub(crate) fn set_member_epoch_seconds(
|
11677 18381 | mut self,
|
11678 18382 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11679 18383 | ) -> Self {
|
18384 + | /* ServerBuilderGenerator.kt:429 */
|
11680 18385 | self.member_epoch_seconds = input.map(|v| v.into());
|
11681 18386 | self
|
18387 + | /* ServerBuilderGenerator.kt:428 */
|
11682 18388 | }
|
18389 + | /* ServerBuilderGenerator.kt:331 */
|
11683 18390 | #[allow(missing_docs)] // documentation missing in model
|
18391 + | /* ServerBuilderGenerator.kt:343 */
|
11684 18392 | pub fn member_http_date(
|
11685 18393 | mut self,
|
11686 18394 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11687 18395 | ) -> Self {
|
11688 - | self.member_http_date = input;
|
18396 + | /* ServerBuilderGenerator.kt:344 */
|
18397 + | self.member_http_date =
|
18398 + | /* ServerBuilderGenerator.kt:376 */input
|
18399 + | /* ServerBuilderGenerator.kt:344 */;
|
11689 18400 | self
|
18401 + | /* ServerBuilderGenerator.kt:343 */
|
11690 18402 | }
|
18403 + | /* ServerBuilderGenerator.kt:426 */
|
11691 18404 | #[allow(missing_docs)] // documentation missing in model
|
18405 + | /* ServerBuilderGenerator.kt:428 */
|
11692 18406 | pub(crate) fn set_member_http_date(
|
11693 18407 | mut self,
|
11694 18408 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11695 18409 | ) -> Self {
|
18410 + | /* ServerBuilderGenerator.kt:429 */
|
11696 18411 | self.member_http_date = input.map(|v| v.into());
|
11697 18412 | self
|
18413 + | /* ServerBuilderGenerator.kt:428 */
|
11698 18414 | }
|
18415 + | /* ServerBuilderGenerator.kt:331 */
|
11699 18416 | #[allow(missing_docs)] // documentation missing in model
|
18417 + | /* ServerBuilderGenerator.kt:343 */
|
11700 18418 | pub fn member_date_time(
|
11701 18419 | mut self,
|
11702 18420 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11703 18421 | ) -> Self {
|
11704 - | self.member_date_time = input;
|
18422 + | /* ServerBuilderGenerator.kt:344 */
|
18423 + | self.member_date_time =
|
18424 + | /* ServerBuilderGenerator.kt:376 */input
|
18425 + | /* ServerBuilderGenerator.kt:344 */;
|
11705 18426 | self
|
18427 + | /* ServerBuilderGenerator.kt:343 */
|
11706 18428 | }
|
18429 + | /* ServerBuilderGenerator.kt:426 */
|
11707 18430 | #[allow(missing_docs)] // documentation missing in model
|
18431 + | /* ServerBuilderGenerator.kt:428 */
|
11708 18432 | pub(crate) fn set_member_date_time(
|
11709 18433 | mut self,
|
11710 18434 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11711 18435 | ) -> Self {
|
18436 + | /* ServerBuilderGenerator.kt:429 */
|
11712 18437 | self.member_date_time = input.map(|v| v.into());
|
11713 18438 | self
|
18439 + | /* ServerBuilderGenerator.kt:428 */
|
11714 18440 | }
|
18441 + | /* ServerBuilderGenerator.kt:331 */
|
11715 18442 | #[allow(missing_docs)] // documentation missing in model
|
18443 + | /* ServerBuilderGenerator.kt:343 */
|
11716 18444 | pub fn default_format(
|
11717 18445 | mut self,
|
11718 18446 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11719 18447 | ) -> Self {
|
11720 - | self.default_format = input;
|
18448 + | /* ServerBuilderGenerator.kt:344 */
|
18449 + | self.default_format =
|
18450 + | /* ServerBuilderGenerator.kt:376 */input
|
18451 + | /* ServerBuilderGenerator.kt:344 */;
|
11721 18452 | self
|
18453 + | /* ServerBuilderGenerator.kt:343 */
|
11722 18454 | }
|
18455 + | /* ServerBuilderGenerator.kt:426 */
|
11723 18456 | #[allow(missing_docs)] // documentation missing in model
|
18457 + | /* ServerBuilderGenerator.kt:428 */
|
11724 18458 | pub(crate) fn set_default_format(
|
11725 18459 | mut self,
|
11726 18460 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11727 18461 | ) -> Self {
|
18462 + | /* ServerBuilderGenerator.kt:429 */
|
11728 18463 | self.default_format = input.map(|v| v.into());
|
11729 18464 | self
|
18465 + | /* ServerBuilderGenerator.kt:428 */
|
11730 18466 | }
|
18467 + | /* ServerBuilderGenerator.kt:331 */
|
11731 18468 | #[allow(missing_docs)] // documentation missing in model
|
18469 + | /* ServerBuilderGenerator.kt:343 */
|
11732 18470 | pub fn target_epoch_seconds(
|
11733 18471 | mut self,
|
11734 18472 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11735 18473 | ) -> Self {
|
11736 - | self.target_epoch_seconds = input;
|
18474 + | /* ServerBuilderGenerator.kt:344 */
|
18475 + | self.target_epoch_seconds =
|
18476 + | /* ServerBuilderGenerator.kt:376 */input
|
18477 + | /* ServerBuilderGenerator.kt:344 */;
|
11737 18478 | self
|
18479 + | /* ServerBuilderGenerator.kt:343 */
|
11738 18480 | }
|
18481 + | /* ServerBuilderGenerator.kt:426 */
|
11739 18482 | #[allow(missing_docs)] // documentation missing in model
|
18483 + | /* ServerBuilderGenerator.kt:428 */
|
11740 18484 | pub(crate) fn set_target_epoch_seconds(
|
11741 18485 | mut self,
|
11742 18486 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11743 18487 | ) -> Self {
|
18488 + | /* ServerBuilderGenerator.kt:429 */
|
11744 18489 | self.target_epoch_seconds = input.map(|v| v.into());
|
11745 18490 | self
|
18491 + | /* ServerBuilderGenerator.kt:428 */
|
11746 18492 | }
|
18493 + | /* ServerBuilderGenerator.kt:331 */
|
11747 18494 | #[allow(missing_docs)] // documentation missing in model
|
18495 + | /* ServerBuilderGenerator.kt:343 */
|
11748 18496 | pub fn target_http_date(
|
11749 18497 | mut self,
|
11750 18498 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11751 18499 | ) -> Self {
|
11752 - | self.target_http_date = input;
|
18500 + | /* ServerBuilderGenerator.kt:344 */
|
18501 + | self.target_http_date =
|
18502 + | /* ServerBuilderGenerator.kt:376 */input
|
18503 + | /* ServerBuilderGenerator.kt:344 */;
|
11753 18504 | self
|
18505 + | /* ServerBuilderGenerator.kt:343 */
|
11754 18506 | }
|
18507 + | /* ServerBuilderGenerator.kt:426 */
|
11755 18508 | #[allow(missing_docs)] // documentation missing in model
|
18509 + | /* ServerBuilderGenerator.kt:428 */
|
11756 18510 | pub(crate) fn set_target_http_date(
|
11757 18511 | mut self,
|
11758 18512 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11759 18513 | ) -> Self {
|
18514 + | /* ServerBuilderGenerator.kt:429 */
|
11760 18515 | self.target_http_date = input.map(|v| v.into());
|
11761 18516 | self
|
18517 + | /* ServerBuilderGenerator.kt:428 */
|
11762 18518 | }
|
18519 + | /* ServerBuilderGenerator.kt:331 */
|
11763 18520 | #[allow(missing_docs)] // documentation missing in model
|
18521 + | /* ServerBuilderGenerator.kt:343 */
|
11764 18522 | pub fn target_date_time(
|
11765 18523 | mut self,
|
11766 18524 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11767 18525 | ) -> Self {
|
11768 - | self.target_date_time = input;
|
18526 + | /* ServerBuilderGenerator.kt:344 */
|
18527 + | self.target_date_time =
|
18528 + | /* ServerBuilderGenerator.kt:376 */input
|
18529 + | /* ServerBuilderGenerator.kt:344 */;
|
11769 18530 | self
|
18531 + | /* ServerBuilderGenerator.kt:343 */
|
11770 18532 | }
|
18533 + | /* ServerBuilderGenerator.kt:426 */
|
11771 18534 | #[allow(missing_docs)] // documentation missing in model
|
18535 + | /* ServerBuilderGenerator.kt:428 */
|
11772 18536 | pub(crate) fn set_target_date_time(
|
11773 18537 | mut self,
|
11774 18538 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11775 18539 | ) -> Self {
|
18540 + | /* ServerBuilderGenerator.kt:429 */
|
11776 18541 | self.target_date_time = input.map(|v| v.into());
|
11777 18542 | self
|
18543 + | /* ServerBuilderGenerator.kt:428 */
|
11778 18544 | }
|
11779 - | /// Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18545 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18546 + | /* ServerBuilderGenerator.kt:271 */
|
11780 18547 | pub fn build(self) -> crate::input::TimestampFormatHeadersInput {
|
11781 18548 | self.build_enforcing_all_constraints()
|
11782 18549 | }
|
18550 + | /* ServerBuilderGenerator.kt:283 */
|
11783 18551 | fn build_enforcing_all_constraints(self) -> crate::input::TimestampFormatHeadersInput {
|
18552 + | /* ServerBuilderGenerator.kt:542 */
|
11784 18553 | crate::input::TimestampFormatHeadersInput {
|
18554 + | /* ServerBuilderGenerator.kt:546 */
|
11785 18555 | member_epoch_seconds: self.member_epoch_seconds,
|
18556 + | /* ServerBuilderGenerator.kt:546 */
|
11786 18557 | member_http_date: self.member_http_date,
|
18558 + | /* ServerBuilderGenerator.kt:546 */
|
11787 18559 | member_date_time: self.member_date_time,
|
18560 + | /* ServerBuilderGenerator.kt:546 */
|
11788 18561 | default_format: self.default_format,
|
18562 + | /* ServerBuilderGenerator.kt:546 */
|
11789 18563 | target_epoch_seconds: self.target_epoch_seconds,
|
18564 + | /* ServerBuilderGenerator.kt:546 */
|
11790 18565 | target_http_date: self.target_http_date,
|
18566 + | /* ServerBuilderGenerator.kt:546 */
|
11791 18567 | target_date_time: self.target_date_time,
|
18568 + | /* ServerBuilderGenerator.kt:542 */
|
11792 18569 | }
|
18570 + | /* ServerBuilderGenerator.kt:283 */
|
11793 18571 | }
|
18572 + | /* ServerBuilderGenerator.kt:215 */
|
11794 18573 | }
|
18574 + |
|
18575 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11795 18576 | }
|
11796 - | /// See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18577 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
11797 18578 | pub mod null_and_empty_headers_server_input {
|
11798 18579 |
|
18580 + | /* ServerBuilderGenerator.kt:461 */
|
11799 18581 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersServerInput {
|
11800 18582 | fn from(builder: Builder) -> Self {
|
11801 18583 | builder.build()
|
11802 18584 | }
|
11803 18585 | }
|
11804 - | /// A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18586 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18587 + | /* RustType.kt:516 */
|
11805 18588 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18589 + | /* ServerBuilderGenerator.kt:211 */
|
11806 18590 | pub struct Builder {
|
18591 + | /* ServerBuilderGenerator.kt:308 */
|
11807 18592 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
18593 + | /* ServerBuilderGenerator.kt:308 */
|
11808 18594 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
18595 + | /* ServerBuilderGenerator.kt:308 */
|
11809 18596 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18597 + | /* ServerBuilderGenerator.kt:211 */
|
11810 18598 | }
|
18599 + | /* ServerBuilderGenerator.kt:215 */
|
11811 18600 | impl Builder {
|
18601 + | /* ServerBuilderGenerator.kt:331 */
|
11812 18602 | #[allow(missing_docs)] // documentation missing in model
|
18603 + | /* ServerBuilderGenerator.kt:343 */
|
11813 18604 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11814 - | self.a = input;
|
18605 + | /* ServerBuilderGenerator.kt:344 */
|
18606 + | self.a =
|
18607 + | /* ServerBuilderGenerator.kt:376 */input
|
18608 + | /* ServerBuilderGenerator.kt:344 */;
|
11815 18609 | self
|
18610 + | /* ServerBuilderGenerator.kt:343 */
|
11816 18611 | }
|
18612 + | /* ServerBuilderGenerator.kt:426 */
|
11817 18613 | #[allow(missing_docs)] // documentation missing in model
|
18614 + | /* ServerBuilderGenerator.kt:428 */
|
11818 18615 | pub(crate) fn set_a(
|
11819 18616 | mut self,
|
11820 18617 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11821 18618 | ) -> Self {
|
18619 + | /* ServerBuilderGenerator.kt:429 */
|
11822 18620 | self.a = input.map(|v| v.into());
|
11823 18621 | self
|
18622 + | /* ServerBuilderGenerator.kt:428 */
|
11824 18623 | }
|
18624 + | /* ServerBuilderGenerator.kt:331 */
|
11825 18625 | #[allow(missing_docs)] // documentation missing in model
|
18626 + | /* ServerBuilderGenerator.kt:343 */
|
11826 18627 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11827 - | self.b = input;
|
18628 + | /* ServerBuilderGenerator.kt:344 */
|
18629 + | self.b =
|
18630 + | /* ServerBuilderGenerator.kt:376 */input
|
18631 + | /* ServerBuilderGenerator.kt:344 */;
|
11828 18632 | self
|
18633 + | /* ServerBuilderGenerator.kt:343 */
|
11829 18634 | }
|
18635 + | /* ServerBuilderGenerator.kt:426 */
|
11830 18636 | #[allow(missing_docs)] // documentation missing in model
|
18637 + | /* ServerBuilderGenerator.kt:428 */
|
11831 18638 | pub(crate) fn set_b(
|
11832 18639 | mut self,
|
11833 18640 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11834 18641 | ) -> Self {
|
18642 + | /* ServerBuilderGenerator.kt:429 */
|
11835 18643 | self.b = input.map(|v| v.into());
|
11836 18644 | self
|
18645 + | /* ServerBuilderGenerator.kt:428 */
|
11837 18646 | }
|
18647 + | /* ServerBuilderGenerator.kt:331 */
|
11838 18648 | #[allow(missing_docs)] // documentation missing in model
|
18649 + | /* ServerBuilderGenerator.kt:343 */
|
11839 18650 | pub fn c(
|
11840 18651 | mut self,
|
11841 18652 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
11842 18653 | ) -> Self {
|
11843 - | self.c = input;
|
18654 + | /* ServerBuilderGenerator.kt:344 */
|
18655 + | self.c =
|
18656 + | /* ServerBuilderGenerator.kt:376 */input
|
18657 + | /* ServerBuilderGenerator.kt:344 */;
|
11844 18658 | self
|
18659 + | /* ServerBuilderGenerator.kt:343 */
|
11845 18660 | }
|
18661 + | /* ServerBuilderGenerator.kt:426 */
|
11846 18662 | #[allow(missing_docs)] // documentation missing in model
|
18663 + | /* ServerBuilderGenerator.kt:428 */
|
11847 18664 | pub(crate) fn set_c(
|
11848 18665 | mut self,
|
11849 18666 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
11850 18667 | ) -> Self {
|
18668 + | /* ServerBuilderGenerator.kt:429 */
|
11851 18669 | self.c = input.map(|v| v.into());
|
11852 18670 | self
|
18671 + | /* ServerBuilderGenerator.kt:428 */
|
11853 18672 | }
|
11854 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18673 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18674 + | /* ServerBuilderGenerator.kt:271 */
|
11855 18675 | pub fn build(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
11856 18676 | self.build_enforcing_all_constraints()
|
11857 18677 | }
|
18678 + | /* ServerBuilderGenerator.kt:283 */
|
11858 18679 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
18680 + | /* ServerBuilderGenerator.kt:542 */
|
11859 18681 | crate::input::NullAndEmptyHeadersServerInput {
|
18682 + | /* ServerBuilderGenerator.kt:546 */
|
11860 18683 | a: self.a,
|
18684 + | /* ServerBuilderGenerator.kt:546 */
|
11861 18685 | b: self.b,
|
18686 + | /* ServerBuilderGenerator.kt:546 */
|
11862 18687 | c: self.c,
|
18688 + | /* ServerBuilderGenerator.kt:542 */
|
11863 18689 | }
|
18690 + | /* ServerBuilderGenerator.kt:283 */
|
11864 18691 | }
|
18692 + | /* ServerBuilderGenerator.kt:215 */
|
11865 18693 | }
|
18694 + |
|
18695 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11866 18696 | }
|
11867 - | /// See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
18697 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
11868 18698 | pub mod null_and_empty_headers_client_input {
|
11869 18699 |
|
18700 + | /* ServerBuilderGenerator.kt:461 */
|
11870 18701 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersClientInput {
|
11871 18702 | fn from(builder: Builder) -> Self {
|
11872 18703 | builder.build()
|
11873 18704 | }
|
11874 18705 | }
|
11875 - | /// A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
18706 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
18707 + | /* RustType.kt:516 */
|
11876 18708 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18709 + | /* ServerBuilderGenerator.kt:211 */
|
11877 18710 | pub struct Builder {
|
18711 + | /* ServerBuilderGenerator.kt:308 */
|
11878 18712 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
18713 + | /* ServerBuilderGenerator.kt:308 */
|
11879 18714 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
18715 + | /* ServerBuilderGenerator.kt:308 */
|
11880 18716 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18717 + | /* ServerBuilderGenerator.kt:211 */
|
11881 18718 | }
|
18719 + | /* ServerBuilderGenerator.kt:215 */
|
11882 18720 | impl Builder {
|
18721 + | /* ServerBuilderGenerator.kt:331 */
|
11883 18722 | #[allow(missing_docs)] // documentation missing in model
|
18723 + | /* ServerBuilderGenerator.kt:343 */
|
11884 18724 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11885 - | self.a = input;
|
18725 + | /* ServerBuilderGenerator.kt:344 */
|
18726 + | self.a =
|
18727 + | /* ServerBuilderGenerator.kt:376 */input
|
18728 + | /* ServerBuilderGenerator.kt:344 */;
|
11886 18729 | self
|
18730 + | /* ServerBuilderGenerator.kt:343 */
|
11887 18731 | }
|
18732 + | /* ServerBuilderGenerator.kt:426 */
|
11888 18733 | #[allow(missing_docs)] // documentation missing in model
|
18734 + | /* ServerBuilderGenerator.kt:428 */
|
11889 18735 | pub(crate) fn set_a(
|
11890 18736 | mut self,
|
11891 18737 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11892 18738 | ) -> Self {
|
18739 + | /* ServerBuilderGenerator.kt:429 */
|
11893 18740 | self.a = input.map(|v| v.into());
|
11894 18741 | self
|
18742 + | /* ServerBuilderGenerator.kt:428 */
|
11895 18743 | }
|
18744 + | /* ServerBuilderGenerator.kt:331 */
|
11896 18745 | #[allow(missing_docs)] // documentation missing in model
|
18746 + | /* ServerBuilderGenerator.kt:343 */
|
11897 18747 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11898 - | self.b = input;
|
18748 + | /* ServerBuilderGenerator.kt:344 */
|
18749 + | self.b =
|
18750 + | /* ServerBuilderGenerator.kt:376 */input
|
18751 + | /* ServerBuilderGenerator.kt:344 */;
|
11899 18752 | self
|
18753 + | /* ServerBuilderGenerator.kt:343 */
|
11900 18754 | }
|
18755 + | /* ServerBuilderGenerator.kt:426 */
|
11901 18756 | #[allow(missing_docs)] // documentation missing in model
|
18757 + | /* ServerBuilderGenerator.kt:428 */
|
11902 18758 | pub(crate) fn set_b(
|
11903 18759 | mut self,
|
11904 18760 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11905 18761 | ) -> Self {
|
18762 + | /* ServerBuilderGenerator.kt:429 */
|
11906 18763 | self.b = input.map(|v| v.into());
|
11907 18764 | self
|
18765 + | /* ServerBuilderGenerator.kt:428 */
|
11908 18766 | }
|
18767 + | /* ServerBuilderGenerator.kt:331 */
|
11909 18768 | #[allow(missing_docs)] // documentation missing in model
|
18769 + | /* ServerBuilderGenerator.kt:343 */
|
11910 18770 | pub fn c(
|
11911 18771 | mut self,
|
11912 18772 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
11913 18773 | ) -> Self {
|
11914 - | self.c = input;
|
18774 + | /* ServerBuilderGenerator.kt:344 */
|
18775 + | self.c =
|
18776 + | /* ServerBuilderGenerator.kt:376 */input
|
18777 + | /* ServerBuilderGenerator.kt:344 */;
|
11915 18778 | self
|
18779 + | /* ServerBuilderGenerator.kt:343 */
|
11916 18780 | }
|
18781 + | /* ServerBuilderGenerator.kt:426 */
|
11917 18782 | #[allow(missing_docs)] // documentation missing in model
|
18783 + | /* ServerBuilderGenerator.kt:428 */
|
11918 18784 | pub(crate) fn set_c(
|
11919 18785 | mut self,
|
11920 18786 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
11921 18787 | ) -> Self {
|
18788 + | /* ServerBuilderGenerator.kt:429 */
|
11922 18789 | self.c = input.map(|v| v.into());
|
11923 18790 | self
|
18791 + | /* ServerBuilderGenerator.kt:428 */
|
11924 18792 | }
|
11925 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
18793 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
18794 + | /* ServerBuilderGenerator.kt:271 */
|
11926 18795 | pub fn build(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
11927 18796 | self.build_enforcing_all_constraints()
|
11928 18797 | }
|
18798 + | /* ServerBuilderGenerator.kt:283 */
|
11929 18799 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
18800 + | /* ServerBuilderGenerator.kt:542 */
|
11930 18801 | crate::input::NullAndEmptyHeadersClientInput {
|
18802 + | /* ServerBuilderGenerator.kt:546 */
|
11931 18803 | a: self.a,
|
18804 + | /* ServerBuilderGenerator.kt:546 */
|
11932 18805 | b: self.b,
|
18806 + | /* ServerBuilderGenerator.kt:546 */
|
11933 18807 | c: self.c,
|
18808 + | /* ServerBuilderGenerator.kt:542 */
|
11934 18809 | }
|
18810 + | /* ServerBuilderGenerator.kt:283 */
|
11935 18811 | }
|
18812 + | /* ServerBuilderGenerator.kt:215 */
|
11936 18813 | }
|
18814 + |
|
18815 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11937 18816 | }
|
11938 - | /// See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
18817 + | /// /* ServerBuilderGenerator.kt:171 */See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
11939 18818 | pub mod input_and_output_with_headers_input {
|
11940 18819 |
|
18820 + | /* RustType.kt:516 */
|
11941 18821 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11942 - | /// Holds one variant for each of the ways the builder can fail.
|
18822 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18823 + | /* RustType.kt:516 */
|
11943 18824 | #[non_exhaustive]
|
18825 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11944 18826 | #[allow(clippy::enum_variant_names)]
|
11945 18827 | pub enum ConstraintViolation {
|
11946 - | /// Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
18828 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
18829 + | /* RustType.kt:516 */
|
11947 18830 | #[doc(hidden)]
|
18831 + | /* ServerBuilderConstraintViolations.kt:164 */
|
11948 18832 | HeaderStringSet(crate::model::string_set::ConstraintViolation),
|
11949 - | /// Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
18833 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
18834 + | /* RustType.kt:516 */
|
11950 18835 | #[doc(hidden)]
|
18836 + | /* ServerBuilderConstraintViolations.kt:164 */
|
11951 18837 | HeaderEnum(crate::model::foo_enum::ConstraintViolation),
|
11952 - | /// Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
18838 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
18839 + | /* RustType.kt:516 */
|
11953 18840 | #[doc(hidden)]
|
18841 + | /* ServerBuilderConstraintViolations.kt:164 */
|
11954 18842 | HeaderEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
18843 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11955 18844 | }
|
18845 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11956 18846 | impl ::std::fmt::Display for ConstraintViolation {
|
18847 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11957 18848 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18849 + | /* ServerBuilderConstraintViolations.kt:119 */
|
11958 18850 | match self {
|
11959 - | ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
11960 - | ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
11961 - | ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
11962 - | }
|
18851 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
18852 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
18853 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
18854 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
18855 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11963 18856 | }
|
18857 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11964 18858 | }
|
18859 + | /* ServerBuilderConstraintViolations.kt:84 */
|
11965 18860 | impl ::std::error::Error for ConstraintViolation {}
|
18861 + | /* ServerBuilderConstraintViolations.kt:171 */
|
11966 18862 | impl ConstraintViolation {
|
11967 18863 | pub(crate) fn as_validation_exception_field(
|
11968 18864 | self,
|
11969 18865 | path: ::std::string::String,
|
11970 18866 | ) -> crate::model::ValidationExceptionField {
|
11971 18867 | match self {
|
11972 18868 | ConstraintViolation::HeaderStringSet(inner) => {
|
11973 18869 | inner.as_validation_exception_field(path + "/headerStringSet")
|
11974 18870 | }
|
11975 18871 | ConstraintViolation::HeaderEnum(inner) => {
|
11976 18872 | inner.as_validation_exception_field(path + "/headerEnum")
|
11977 18873 | }
|
11978 18874 | ConstraintViolation::HeaderEnumList(inner) => {
|
11979 18875 | inner.as_validation_exception_field(path + "/headerEnumList")
|
11980 18876 | }
|
11981 18877 | }
|
11982 18878 | }
|
11983 18879 | }
|
18880 + | /* ServerBuilderGenerator.kt:234 */
|
11984 18881 | impl ::std::convert::From<ConstraintViolation>
|
11985 18882 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11986 18883 | {
|
11987 18884 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11988 18885 | let first_validation_exception_field =
|
11989 18886 | constraint_violation.as_validation_exception_field("".to_owned());
|
11990 18887 | let validation_exception = crate::error::ValidationException {
|
11991 18888 | message: format!(
|
11992 18889 | "1 validation error detected. {}",
|
11993 18890 | &first_validation_exception_field.message
|
11994 18891 | ),
|
11995 18892 | field_list: Some(vec![first_validation_exception_field]),
|
11996 18893 | };
|
11997 18894 | Self::ConstraintViolation(
|
11998 18895 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11999 18896 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
12000 18897 | )
|
12001 18898 | }
|
12002 18899 | }
|
18900 + | /* ServerBuilderGenerator.kt:244 */
|
12003 18901 | impl ::std::convert::From<Builder>
|
12004 18902 | for crate::constrained::MaybeConstrained<crate::input::InputAndOutputWithHeadersInput>
|
12005 18903 | {
|
12006 18904 | fn from(builder: Builder) -> Self {
|
12007 18905 | Self::Unconstrained(builder)
|
12008 18906 | }
|
12009 18907 | }
|
18908 + | /* ServerBuilderGenerator.kt:446 */
|
12010 18909 | impl ::std::convert::TryFrom<Builder> for crate::input::InputAndOutputWithHeadersInput {
|
12011 18910 | type Error = ConstraintViolation;
|
12012 18911 |
|
12013 18912 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12014 18913 | builder.build()
|
12015 18914 | }
|
12016 18915 | }
|
12017 - | /// A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
18916 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
18917 + | /* RustType.kt:516 */
|
12018 18918 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18919 + | /* ServerBuilderGenerator.kt:211 */
|
12019 18920 | pub struct Builder {
|
18921 + | /* ServerBuilderGenerator.kt:308 */
|
12020 18922 | pub(crate) header_string: ::std::option::Option<::std::string::String>,
|
18923 + | /* ServerBuilderGenerator.kt:308 */
|
12021 18924 | pub(crate) header_byte: ::std::option::Option<i8>,
|
18925 + | /* ServerBuilderGenerator.kt:308 */
|
12022 18926 | pub(crate) header_short: ::std::option::Option<i16>,
|
18927 + | /* ServerBuilderGenerator.kt:308 */
|
12023 18928 | pub(crate) header_integer: ::std::option::Option<i32>,
|
18929 + | /* ServerBuilderGenerator.kt:308 */
|
12024 18930 | pub(crate) header_long: ::std::option::Option<i64>,
|
18931 + | /* ServerBuilderGenerator.kt:308 */
|
12025 18932 | pub(crate) header_float: ::std::option::Option<f32>,
|
18933 + | /* ServerBuilderGenerator.kt:308 */
|
12026 18934 | pub(crate) header_double: ::std::option::Option<f64>,
|
18935 + | /* ServerBuilderGenerator.kt:308 */
|
12027 18936 | pub(crate) header_true_bool: ::std::option::Option<bool>,
|
18937 + | /* ServerBuilderGenerator.kt:308 */
|
12028 18938 | pub(crate) header_false_bool: ::std::option::Option<bool>,
|
18939 + | /* ServerBuilderGenerator.kt:308 */
|
12029 18940 | pub(crate) header_string_list:
|
12030 18941 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18942 + | /* ServerBuilderGenerator.kt:308 */
|
12031 18943 | pub(crate) header_string_set:
|
12032 18944 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
18945 + | /* ServerBuilderGenerator.kt:308 */
|
12033 18946 | pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
18947 + | /* ServerBuilderGenerator.kt:308 */
|
12034 18948 | pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
18949 + | /* ServerBuilderGenerator.kt:308 */
|
12035 18950 | pub(crate) header_timestamp_list:
|
12036 18951 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
18952 + | /* ServerBuilderGenerator.kt:308 */
|
12037 18953 | pub(crate) header_enum:
|
12038 18954 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
18955 + | /* ServerBuilderGenerator.kt:308 */
|
12039 18956 | pub(crate) header_enum_list: ::std::option::Option<
|
12040 18957 | crate::constrained::MaybeConstrained<
|
12041 18958 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
12042 18959 | >,
|
12043 18960 | >,
|
18961 + | /* ServerBuilderGenerator.kt:308 */
|
12044 18962 | pub(crate) header_integer_enum: ::std::option::Option<i32>,
|
18963 + | /* ServerBuilderGenerator.kt:308 */
|
12045 18964 | pub(crate) header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
18965 + | /* ServerBuilderGenerator.kt:211 */
|
12046 18966 | }
|
18967 + | /* ServerBuilderGenerator.kt:215 */
|
12047 18968 | impl Builder {
|
18969 + | /* ServerBuilderGenerator.kt:331 */
|
12048 18970 | #[allow(missing_docs)] // documentation missing in model
|
18971 + | /* ServerBuilderGenerator.kt:343 */
|
12049 18972 | pub fn header_string(
|
12050 18973 | mut self,
|
12051 18974 | input: ::std::option::Option<::std::string::String>,
|
12052 18975 | ) -> Self {
|
12053 - | self.header_string = input;
|
18976 + | /* ServerBuilderGenerator.kt:344 */
|
18977 + | self.header_string =
|
18978 + | /* ServerBuilderGenerator.kt:376 */input
|
18979 + | /* ServerBuilderGenerator.kt:344 */;
|
12054 18980 | self
|
18981 + | /* ServerBuilderGenerator.kt:343 */
|
12055 18982 | }
|
18983 + | /* ServerBuilderGenerator.kt:426 */
|
12056 18984 | #[allow(missing_docs)] // documentation missing in model
|
18985 + | /* ServerBuilderGenerator.kt:428 */
|
12057 18986 | pub(crate) fn set_header_string(
|
12058 18987 | mut self,
|
12059 18988 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12060 18989 | ) -> Self {
|
18990 + | /* ServerBuilderGenerator.kt:429 */
|
12061 18991 | self.header_string = input.map(|v| v.into());
|
12062 18992 | self
|
18993 + | /* ServerBuilderGenerator.kt:428 */
|
12063 18994 | }
|
18995 + | /* ServerBuilderGenerator.kt:331 */
|
12064 18996 | #[allow(missing_docs)] // documentation missing in model
|
18997 + | /* ServerBuilderGenerator.kt:343 */
|
12065 18998 | pub fn header_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
12066 - | self.header_byte = input;
|
18999 + | /* ServerBuilderGenerator.kt:344 */
|
19000 + | self.header_byte =
|
19001 + | /* ServerBuilderGenerator.kt:376 */input
|
19002 + | /* ServerBuilderGenerator.kt:344 */;
|
12067 19003 | self
|
19004 + | /* ServerBuilderGenerator.kt:343 */
|
12068 19005 | }
|
19006 + | /* ServerBuilderGenerator.kt:426 */
|
12069 19007 | #[allow(missing_docs)] // documentation missing in model
|
19008 + | /* ServerBuilderGenerator.kt:428 */
|
12070 19009 | pub(crate) fn set_header_byte(
|
12071 19010 | mut self,
|
12072 19011 | input: Option<impl ::std::convert::Into<i8>>,
|
12073 19012 | ) -> Self {
|
19013 + | /* ServerBuilderGenerator.kt:429 */
|
12074 19014 | self.header_byte = input.map(|v| v.into());
|
12075 19015 | self
|
19016 + | /* ServerBuilderGenerator.kt:428 */
|
12076 19017 | }
|
19018 + | /* ServerBuilderGenerator.kt:331 */
|
12077 19019 | #[allow(missing_docs)] // documentation missing in model
|
19020 + | /* ServerBuilderGenerator.kt:343 */
|
12078 19021 | pub fn header_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
12079 - | self.header_short = input;
|
19022 + | /* ServerBuilderGenerator.kt:344 */
|
19023 + | self.header_short =
|
19024 + | /* ServerBuilderGenerator.kt:376 */input
|
19025 + | /* ServerBuilderGenerator.kt:344 */;
|
12080 19026 | self
|
19027 + | /* ServerBuilderGenerator.kt:343 */
|
12081 19028 | }
|
19029 + | /* ServerBuilderGenerator.kt:426 */
|
12082 19030 | #[allow(missing_docs)] // documentation missing in model
|
19031 + | /* ServerBuilderGenerator.kt:428 */
|
12083 19032 | pub(crate) fn set_header_short(
|
12084 19033 | mut self,
|
12085 19034 | input: Option<impl ::std::convert::Into<i16>>,
|
12086 19035 | ) -> Self {
|
19036 + | /* ServerBuilderGenerator.kt:429 */
|
12087 19037 | self.header_short = input.map(|v| v.into());
|
12088 19038 | self
|
19039 + | /* ServerBuilderGenerator.kt:428 */
|
12089 19040 | }
|
19041 + | /* ServerBuilderGenerator.kt:331 */
|
12090 19042 | #[allow(missing_docs)] // documentation missing in model
|
19043 + | /* ServerBuilderGenerator.kt:343 */
|
12091 19044 | pub fn header_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
12092 - | self.header_integer = input;
|
19045 + | /* ServerBuilderGenerator.kt:344 */
|
19046 + | self.header_integer =
|
19047 + | /* ServerBuilderGenerator.kt:376 */input
|
19048 + | /* ServerBuilderGenerator.kt:344 */;
|
12093 19049 | self
|
19050 + | /* ServerBuilderGenerator.kt:343 */
|
12094 19051 | }
|
19052 + | /* ServerBuilderGenerator.kt:426 */
|
12095 19053 | #[allow(missing_docs)] // documentation missing in model
|
19054 + | /* ServerBuilderGenerator.kt:428 */
|
12096 19055 | pub(crate) fn set_header_integer(
|
12097 19056 | mut self,
|
12098 19057 | input: Option<impl ::std::convert::Into<i32>>,
|
12099 19058 | ) -> Self {
|
19059 + | /* ServerBuilderGenerator.kt:429 */
|
12100 19060 | self.header_integer = input.map(|v| v.into());
|
12101 19061 | self
|
19062 + | /* ServerBuilderGenerator.kt:428 */
|
12102 19063 | }
|
19064 + | /* ServerBuilderGenerator.kt:331 */
|
12103 19065 | #[allow(missing_docs)] // documentation missing in model
|
19066 + | /* ServerBuilderGenerator.kt:343 */
|
12104 19067 | pub fn header_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
12105 - | self.header_long = input;
|
19068 + | /* ServerBuilderGenerator.kt:344 */
|
19069 + | self.header_long =
|
19070 + | /* ServerBuilderGenerator.kt:376 */input
|
19071 + | /* ServerBuilderGenerator.kt:344 */;
|
12106 19072 | self
|
19073 + | /* ServerBuilderGenerator.kt:343 */
|
12107 19074 | }
|
19075 + | /* ServerBuilderGenerator.kt:426 */
|
12108 19076 | #[allow(missing_docs)] // documentation missing in model
|
19077 + | /* ServerBuilderGenerator.kt:428 */
|
12109 19078 | pub(crate) fn set_header_long(
|
12110 19079 | mut self,
|
12111 19080 | input: Option<impl ::std::convert::Into<i64>>,
|
12112 19081 | ) -> Self {
|
19082 + | /* ServerBuilderGenerator.kt:429 */
|
12113 19083 | self.header_long = input.map(|v| v.into());
|
12114 19084 | self
|
19085 + | /* ServerBuilderGenerator.kt:428 */
|
12115 19086 | }
|
19087 + | /* ServerBuilderGenerator.kt:331 */
|
12116 19088 | #[allow(missing_docs)] // documentation missing in model
|
19089 + | /* ServerBuilderGenerator.kt:343 */
|
12117 19090 | pub fn header_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
12118 - | self.header_float = input;
|
19091 + | /* ServerBuilderGenerator.kt:344 */
|
19092 + | self.header_float =
|
19093 + | /* ServerBuilderGenerator.kt:376 */input
|
19094 + | /* ServerBuilderGenerator.kt:344 */;
|
12119 19095 | self
|
19096 + | /* ServerBuilderGenerator.kt:343 */
|
12120 19097 | }
|
19098 + | /* ServerBuilderGenerator.kt:426 */
|
12121 19099 | #[allow(missing_docs)] // documentation missing in model
|
19100 + | /* ServerBuilderGenerator.kt:428 */
|
12122 19101 | pub(crate) fn set_header_float(
|
12123 19102 | mut self,
|
12124 19103 | input: Option<impl ::std::convert::Into<f32>>,
|
12125 19104 | ) -> Self {
|
19105 + | /* ServerBuilderGenerator.kt:429 */
|
12126 19106 | self.header_float = input.map(|v| v.into());
|
12127 19107 | self
|
19108 + | /* ServerBuilderGenerator.kt:428 */
|
12128 19109 | }
|
19110 + | /* ServerBuilderGenerator.kt:331 */
|
12129 19111 | #[allow(missing_docs)] // documentation missing in model
|
19112 + | /* ServerBuilderGenerator.kt:343 */
|
12130 19113 | pub fn header_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
12131 - | self.header_double = input;
|
19114 + | /* ServerBuilderGenerator.kt:344 */
|
19115 + | self.header_double =
|
19116 + | /* ServerBuilderGenerator.kt:376 */input
|
19117 + | /* ServerBuilderGenerator.kt:344 */;
|
12132 19118 | self
|
19119 + | /* ServerBuilderGenerator.kt:343 */
|
12133 19120 | }
|
19121 + | /* ServerBuilderGenerator.kt:426 */
|
12134 19122 | #[allow(missing_docs)] // documentation missing in model
|
19123 + | /* ServerBuilderGenerator.kt:428 */
|
12135 19124 | pub(crate) fn set_header_double(
|
12136 19125 | mut self,
|
12137 19126 | input: Option<impl ::std::convert::Into<f64>>,
|
12138 19127 | ) -> Self {
|
19128 + | /* ServerBuilderGenerator.kt:429 */
|
12139 19129 | self.header_double = input.map(|v| v.into());
|
12140 19130 | self
|
19131 + | /* ServerBuilderGenerator.kt:428 */
|
12141 19132 | }
|
19133 + | /* ServerBuilderGenerator.kt:331 */
|
12142 19134 | #[allow(missing_docs)] // documentation missing in model
|
19135 + | /* ServerBuilderGenerator.kt:343 */
|
12143 19136 | pub fn header_true_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
12144 - | self.header_true_bool = input;
|
19137 + | /* ServerBuilderGenerator.kt:344 */
|
19138 + | self.header_true_bool =
|
19139 + | /* ServerBuilderGenerator.kt:376 */input
|
19140 + | /* ServerBuilderGenerator.kt:344 */;
|
12145 19141 | self
|
19142 + | /* ServerBuilderGenerator.kt:343 */
|
12146 19143 | }
|
19144 + | /* ServerBuilderGenerator.kt:426 */
|
12147 19145 | #[allow(missing_docs)] // documentation missing in model
|
19146 + | /* ServerBuilderGenerator.kt:428 */
|
12148 19147 | pub(crate) fn set_header_true_bool(
|
12149 19148 | mut self,
|
12150 19149 | input: Option<impl ::std::convert::Into<bool>>,
|
12151 19150 | ) -> Self {
|
19151 + | /* ServerBuilderGenerator.kt:429 */
|
12152 19152 | self.header_true_bool = input.map(|v| v.into());
|
12153 19153 | self
|
19154 + | /* ServerBuilderGenerator.kt:428 */
|
12154 19155 | }
|
19156 + | /* ServerBuilderGenerator.kt:331 */
|
12155 19157 | #[allow(missing_docs)] // documentation missing in model
|
19158 + | /* ServerBuilderGenerator.kt:343 */
|
12156 19159 | pub fn header_false_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
12157 - | self.header_false_bool = input;
|
19160 + | /* ServerBuilderGenerator.kt:344 */
|
19161 + | self.header_false_bool =
|
19162 + | /* ServerBuilderGenerator.kt:376 */input
|
19163 + | /* ServerBuilderGenerator.kt:344 */;
|
12158 19164 | self
|
19165 + | /* ServerBuilderGenerator.kt:343 */
|
12159 19166 | }
|
19167 + | /* ServerBuilderGenerator.kt:426 */
|
12160 19168 | #[allow(missing_docs)] // documentation missing in model
|
19169 + | /* ServerBuilderGenerator.kt:428 */
|
12161 19170 | pub(crate) fn set_header_false_bool(
|
12162 19171 | mut self,
|
12163 19172 | input: Option<impl ::std::convert::Into<bool>>,
|
12164 19173 | ) -> Self {
|
19174 + | /* ServerBuilderGenerator.kt:429 */
|
12165 19175 | self.header_false_bool = input.map(|v| v.into());
|
12166 19176 | self
|
19177 + | /* ServerBuilderGenerator.kt:428 */
|
12167 19178 | }
|
19179 + | /* ServerBuilderGenerator.kt:331 */
|
12168 19180 | #[allow(missing_docs)] // documentation missing in model
|
19181 + | /* ServerBuilderGenerator.kt:343 */
|
12169 19182 | pub fn header_string_list(
|
12170 19183 | mut self,
|
12171 19184 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12172 19185 | ) -> Self {
|
12173 - | self.header_string_list = input;
|
19186 + | /* ServerBuilderGenerator.kt:344 */
|
19187 + | self.header_string_list =
|
19188 + | /* ServerBuilderGenerator.kt:376 */input
|
19189 + | /* ServerBuilderGenerator.kt:344 */;
|
12174 19190 | self
|
19191 + | /* ServerBuilderGenerator.kt:343 */
|
12175 19192 | }
|
19193 + | /* ServerBuilderGenerator.kt:426 */
|
12176 19194 | #[allow(missing_docs)] // documentation missing in model
|
19195 + | /* ServerBuilderGenerator.kt:428 */
|
12177 19196 | pub(crate) fn set_header_string_list(
|
12178 19197 | mut self,
|
12179 19198 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
12180 19199 | ) -> Self {
|
19200 + | /* ServerBuilderGenerator.kt:429 */
|
12181 19201 | self.header_string_list = input.map(|v| v.into());
|
12182 19202 | self
|
19203 + | /* ServerBuilderGenerator.kt:428 */
|
12183 19204 | }
|
19205 + | /* ServerBuilderGenerator.kt:331 */
|
12184 19206 | #[allow(missing_docs)] // documentation missing in model
|
19207 + | /* ServerBuilderGenerator.kt:343 */
|
12185 19208 | pub fn header_string_set(
|
12186 19209 | mut self,
|
12187 19210 | input: ::std::option::Option<crate::model::StringSet>,
|
12188 19211 | ) -> Self {
|
12189 - | self.header_string_set = input.map(
|
12190 - | #[allow(clippy::redundant_closure)]
|
12191 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
12192 - | );
|
19212 + | /* ServerBuilderGenerator.kt:344 */
|
19213 + | self.header_string_set =
|
19214 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
19215 + | /* ServerBuilderGenerator.kt:344 */;
|
12193 19216 | self
|
19217 + | /* ServerBuilderGenerator.kt:343 */
|
12194 19218 | }
|
19219 + | /* ServerBuilderGenerator.kt:426 */
|
12195 19220 | #[allow(missing_docs)] // documentation missing in model
|
19221 + | /* ServerBuilderGenerator.kt:428 */
|
12196 19222 | pub(crate) fn set_header_string_set(
|
12197 19223 | mut self,
|
12198 19224 | input: Option<
|
12199 19225 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
12200 19226 | >,
|
12201 19227 | ) -> Self {
|
19228 + | /* ServerBuilderGenerator.kt:429 */
|
12202 19229 | self.header_string_set = input.map(|v| v.into());
|
12203 19230 | self
|
19231 + | /* ServerBuilderGenerator.kt:428 */
|
12204 19232 | }
|
19233 + | /* ServerBuilderGenerator.kt:331 */
|
12205 19234 | #[allow(missing_docs)] // documentation missing in model
|
19235 + | /* ServerBuilderGenerator.kt:343 */
|
12206 19236 | pub fn header_integer_list(
|
12207 19237 | mut self,
|
12208 19238 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
12209 19239 | ) -> Self {
|
12210 - | self.header_integer_list = input;
|
19240 + | /* ServerBuilderGenerator.kt:344 */
|
19241 + | self.header_integer_list =
|
19242 + | /* ServerBuilderGenerator.kt:376 */input
|
19243 + | /* ServerBuilderGenerator.kt:344 */;
|
12211 19244 | self
|
19245 + | /* ServerBuilderGenerator.kt:343 */
|
12212 19246 | }
|
19247 + | /* ServerBuilderGenerator.kt:426 */
|
12213 19248 | #[allow(missing_docs)] // documentation missing in model
|
19249 + | /* ServerBuilderGenerator.kt:428 */
|
12214 19250 | pub(crate) fn set_header_integer_list(
|
12215 19251 | mut self,
|
12216 19252 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
12217 19253 | ) -> Self {
|
19254 + | /* ServerBuilderGenerator.kt:429 */
|
12218 19255 | self.header_integer_list = input.map(|v| v.into());
|
12219 19256 | self
|
19257 + | /* ServerBuilderGenerator.kt:428 */
|
12220 19258 | }
|
19259 + | /* ServerBuilderGenerator.kt:331 */
|
12221 19260 | #[allow(missing_docs)] // documentation missing in model
|
19261 + | /* ServerBuilderGenerator.kt:343 */
|
12222 19262 | pub fn header_boolean_list(
|
12223 19263 | mut self,
|
12224 19264 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
12225 19265 | ) -> Self {
|
12226 - | self.header_boolean_list = input;
|
19266 + | /* ServerBuilderGenerator.kt:344 */
|
19267 + | self.header_boolean_list =
|
19268 + | /* ServerBuilderGenerator.kt:376 */input
|
19269 + | /* ServerBuilderGenerator.kt:344 */;
|
12227 19270 | self
|
19271 + | /* ServerBuilderGenerator.kt:343 */
|
12228 19272 | }
|
19273 + | /* ServerBuilderGenerator.kt:426 */
|
12229 19274 | #[allow(missing_docs)] // documentation missing in model
|
19275 + | /* ServerBuilderGenerator.kt:428 */
|
12230 19276 | pub(crate) fn set_header_boolean_list(
|
12231 19277 | mut self,
|
12232 19278 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
12233 19279 | ) -> Self {
|
19280 + | /* ServerBuilderGenerator.kt:429 */
|
12234 19281 | self.header_boolean_list = input.map(|v| v.into());
|
12235 19282 | self
|
19283 + | /* ServerBuilderGenerator.kt:428 */
|
12236 19284 | }
|
19285 + | /* ServerBuilderGenerator.kt:331 */
|
12237 19286 | #[allow(missing_docs)] // documentation missing in model
|
19287 + | /* ServerBuilderGenerator.kt:343 */
|
12238 19288 | pub fn header_timestamp_list(
|
12239 19289 | mut self,
|
12240 19290 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
12241 19291 | ) -> Self {
|
12242 - | self.header_timestamp_list = input;
|
19292 + | /* ServerBuilderGenerator.kt:344 */
|
19293 + | self.header_timestamp_list =
|
19294 + | /* ServerBuilderGenerator.kt:376 */input
|
19295 + | /* ServerBuilderGenerator.kt:344 */;
|
12243 19296 | self
|
19297 + | /* ServerBuilderGenerator.kt:343 */
|
12244 19298 | }
|
19299 + | /* ServerBuilderGenerator.kt:426 */
|
12245 19300 | #[allow(missing_docs)] // documentation missing in model
|
19301 + | /* ServerBuilderGenerator.kt:428 */
|
12246 19302 | pub(crate) fn set_header_timestamp_list(
|
12247 19303 | mut self,
|
12248 19304 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
12249 19305 | ) -> Self {
|
19306 + | /* ServerBuilderGenerator.kt:429 */
|
12250 19307 | self.header_timestamp_list = input.map(|v| v.into());
|
12251 19308 | self
|
19309 + | /* ServerBuilderGenerator.kt:428 */
|
12252 19310 | }
|
19311 + | /* ServerBuilderGenerator.kt:331 */
|
12253 19312 | #[allow(missing_docs)] // documentation missing in model
|
19313 + | /* ServerBuilderGenerator.kt:343 */
|
12254 19314 | pub fn header_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
12255 - | self.header_enum = input.map(
|
12256 - | #[allow(clippy::redundant_closure)]
|
12257 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
12258 - | );
|
19315 + | /* ServerBuilderGenerator.kt:344 */
|
19316 + | self.header_enum =
|
19317 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
19318 + | /* ServerBuilderGenerator.kt:344 */;
|
12259 19319 | self
|
19320 + | /* ServerBuilderGenerator.kt:343 */
|
12260 19321 | }
|
19322 + | /* ServerBuilderGenerator.kt:426 */
|
12261 19323 | #[allow(missing_docs)] // documentation missing in model
|
19324 + | /* ServerBuilderGenerator.kt:428 */
|
12262 19325 | pub(crate) fn set_header_enum(
|
12263 19326 | mut self,
|
12264 19327 | input: Option<
|
12265 19328 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
12266 19329 | >,
|
12267 19330 | ) -> Self {
|
19331 + | /* ServerBuilderGenerator.kt:429 */
|
12268 19332 | self.header_enum = input.map(|v| v.into());
|
12269 19333 | self
|
19334 + | /* ServerBuilderGenerator.kt:428 */
|
12270 19335 | }
|
19336 + | /* ServerBuilderGenerator.kt:331 */
|
12271 19337 | #[allow(missing_docs)] // documentation missing in model
|
19338 + | /* ServerBuilderGenerator.kt:343 */
|
12272 19339 | pub fn header_enum_list(
|
12273 19340 | mut self,
|
12274 19341 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
12275 19342 | ) -> Self {
|
12276 - | self.header_enum_list = input.map(
|
12277 - | #[allow(clippy::redundant_closure)]
|
12278 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
12279 - | );
|
19343 + | /* ServerBuilderGenerator.kt:344 */
|
19344 + | self.header_enum_list =
|
19345 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
19346 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
19347 + | /* ServerBuilderGenerator.kt:369 */)
|
19348 + | /* ServerBuilderGenerator.kt:344 */;
|
12280 19349 | self
|
19350 + | /* ServerBuilderGenerator.kt:343 */
|
12281 19351 | }
|
19352 + | /* ServerBuilderGenerator.kt:426 */
|
12282 19353 | #[allow(missing_docs)] // documentation missing in model
|
19354 + | /* ServerBuilderGenerator.kt:428 */
|
12283 19355 | pub(crate) fn set_header_enum_list(
|
12284 19356 | mut self,
|
12285 19357 | input: Option<
|
12286 19358 | impl ::std::convert::Into<
|
12287 19359 | crate::constrained::MaybeConstrained<
|
12288 19360 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
12289 19361 | >,
|
12290 19362 | >,
|
12291 19363 | >,
|
12292 19364 | ) -> Self {
|
19365 + | /* ServerBuilderGenerator.kt:429 */
|
12293 19366 | self.header_enum_list = input.map(|v| v.into());
|
12294 19367 | self
|
19368 + | /* ServerBuilderGenerator.kt:428 */
|
12295 19369 | }
|
19370 + | /* ServerBuilderGenerator.kt:331 */
|
12296 19371 | #[allow(missing_docs)] // documentation missing in model
|
19372 + | /* ServerBuilderGenerator.kt:343 */
|
12297 19373 | pub fn header_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
12298 - | self.header_integer_enum = input;
|
19374 + | /* ServerBuilderGenerator.kt:344 */
|
19375 + | self.header_integer_enum =
|
19376 + | /* ServerBuilderGenerator.kt:376 */input
|
19377 + | /* ServerBuilderGenerator.kt:344 */;
|
12299 19378 | self
|
19379 + | /* ServerBuilderGenerator.kt:343 */
|
12300 19380 | }
|
19381 + | /* ServerBuilderGenerator.kt:426 */
|
12301 19382 | #[allow(missing_docs)] // documentation missing in model
|
19383 + | /* ServerBuilderGenerator.kt:428 */
|
12302 19384 | pub(crate) fn set_header_integer_enum(
|
12303 19385 | mut self,
|
12304 19386 | input: Option<impl ::std::convert::Into<i32>>,
|
12305 19387 | ) -> Self {
|
19388 + | /* ServerBuilderGenerator.kt:429 */
|
12306 19389 | self.header_integer_enum = input.map(|v| v.into());
|
12307 19390 | self
|
19391 + | /* ServerBuilderGenerator.kt:428 */
|
12308 19392 | }
|
19393 + | /* ServerBuilderGenerator.kt:331 */
|
12309 19394 | #[allow(missing_docs)] // documentation missing in model
|
19395 + | /* ServerBuilderGenerator.kt:343 */
|
12310 19396 | pub fn header_integer_enum_list(
|
12311 19397 | mut self,
|
12312 19398 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
12313 19399 | ) -> Self {
|
12314 - | self.header_integer_enum_list = input;
|
19400 + | /* ServerBuilderGenerator.kt:344 */
|
19401 + | self.header_integer_enum_list =
|
19402 + | /* ServerBuilderGenerator.kt:376 */input
|
19403 + | /* ServerBuilderGenerator.kt:344 */;
|
12315 19404 | self
|
19405 + | /* ServerBuilderGenerator.kt:343 */
|
12316 19406 | }
|
19407 + | /* ServerBuilderGenerator.kt:426 */
|
12317 19408 | #[allow(missing_docs)] // documentation missing in model
|
19409 + | /* ServerBuilderGenerator.kt:428 */
|
12318 19410 | pub(crate) fn set_header_integer_enum_list(
|
12319 19411 | mut self,
|
12320 19412 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
12321 19413 | ) -> Self {
|
19414 + | /* ServerBuilderGenerator.kt:429 */
|
12322 19415 | self.header_integer_enum_list = input.map(|v| v.into());
|
12323 19416 | self
|
19417 + | /* ServerBuilderGenerator.kt:428 */
|
12324 19418 | }
|
12325 - | /// Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
12326 - | ///
|
19419 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19420 + | /// /* ServerBuilderGenerator.kt:260 */
|
12327 19421 | /// The builder fails to construct a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput) if a [`ConstraintViolation`] occurs.
|
12328 19422 | ///
|
12329 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
19423 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
19424 + | /* ServerBuilderGenerator.kt:271 */
|
12330 19425 | pub fn build(
|
12331 19426 | self,
|
12332 19427 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
12333 19428 | self.build_enforcing_all_constraints()
|
12334 19429 | }
|
19430 + | /* ServerBuilderGenerator.kt:283 */
|
12335 19431 | fn build_enforcing_all_constraints(
|
12336 19432 | self,
|
12337 19433 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
12338 - | Ok(crate::input::InputAndOutputWithHeadersInput {
|
19434 + | /* ServerBuilderGenerator.kt:287 */
|
19435 + | Ok(
|
19436 + | /* ServerBuilderGenerator.kt:542 */
|
19437 + | crate::input::InputAndOutputWithHeadersInput {
|
19438 + | /* ServerBuilderGenerator.kt:546 */
|
12339 19439 | header_string: self.header_string,
|
19440 + | /* ServerBuilderGenerator.kt:546 */
|
12340 19441 | header_byte: self.header_byte,
|
19442 + | /* ServerBuilderGenerator.kt:546 */
|
12341 19443 | header_short: self.header_short,
|
19444 + | /* ServerBuilderGenerator.kt:546 */
|
12342 19445 | header_integer: self.header_integer,
|
19446 + | /* ServerBuilderGenerator.kt:546 */
|
12343 19447 | header_long: self.header_long,
|
19448 + | /* ServerBuilderGenerator.kt:546 */
|
12344 19449 | header_float: self.header_float,
|
19450 + | /* ServerBuilderGenerator.kt:546 */
|
12345 19451 | header_double: self.header_double,
|
19452 + | /* ServerBuilderGenerator.kt:546 */
|
12346 19453 | header_true_bool: self.header_true_bool,
|
19454 + | /* ServerBuilderGenerator.kt:546 */
|
12347 19455 | header_false_bool: self.header_false_bool,
|
19456 + | /* ServerBuilderGenerator.kt:546 */
|
12348 19457 | header_string_list: self.header_string_list,
|
19458 + | /* ServerBuilderGenerator.kt:546 */
|
12349 19459 | header_string_set: self
|
12350 19460 | .header_string_set
|
19461 + | /* ServerBuilderGenerator.kt:602 */
|
12351 19462 | .map(|v| match v {
|
12352 19463 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12353 19464 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12354 19465 | })
|
19466 + | /* ServerBuilderGenerator.kt:614 */
|
12355 19467 | .map(|res| res.map_err(ConstraintViolation::HeaderStringSet))
|
12356 19468 | .transpose()?,
|
19469 + | /* ServerBuilderGenerator.kt:546 */
|
12357 19470 | header_integer_list: self.header_integer_list,
|
19471 + | /* ServerBuilderGenerator.kt:546 */
|
12358 19472 | header_boolean_list: self.header_boolean_list,
|
19473 + | /* ServerBuilderGenerator.kt:546 */
|
12359 19474 | header_timestamp_list: self.header_timestamp_list,
|
19475 + | /* ServerBuilderGenerator.kt:546 */
|
12360 19476 | header_enum: self
|
12361 19477 | .header_enum
|
19478 + | /* ServerBuilderGenerator.kt:602 */
|
12362 19479 | .map(|v| match v {
|
12363 19480 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12364 19481 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12365 19482 | })
|
19483 + | /* ServerBuilderGenerator.kt:614 */
|
12366 19484 | .map(|res| res.map_err(ConstraintViolation::HeaderEnum))
|
12367 19485 | .transpose()?,
|
19486 + | /* ServerBuilderGenerator.kt:546 */
|
12368 19487 | header_enum_list: self
|
12369 19488 | .header_enum_list
|
19489 + | /* ServerBuilderGenerator.kt:602 */
|
12370 19490 | .map(|v| match v {
|
12371 19491 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12372 19492 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12373 19493 | })
|
19494 + | /* ServerBuilderGenerator.kt:614 */
|
12374 19495 | .map(|res| {
|
12375 19496 | res.map(|v| v.into())
|
12376 19497 | .map_err(ConstraintViolation::HeaderEnumList)
|
12377 19498 | })
|
12378 19499 | .transpose()?,
|
19500 + | /* ServerBuilderGenerator.kt:546 */
|
12379 19501 | header_integer_enum: self.header_integer_enum,
|
19502 + | /* ServerBuilderGenerator.kt:546 */
|
12380 19503 | header_integer_enum_list: self.header_integer_enum_list,
|
12381 - | })
|
19504 + | /* ServerBuilderGenerator.kt:542 */
|
19505 + | }, /* ServerBuilderGenerator.kt:287 */
|
19506 + | )
|
19507 + | /* ServerBuilderGenerator.kt:283 */
|
12382 19508 | }
|
19509 + | /* ServerBuilderGenerator.kt:215 */
|
12383 19510 | }
|
19511 + |
|
19512 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12384 19513 | }
|
12385 - | /// See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19514 + | /// /* ServerBuilderGenerator.kt:171 */See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
12386 19515 | pub mod unit_input_and_output_input {
|
12387 19516 |
|
19517 + | /* ServerBuilderGenerator.kt:461 */
|
12388 19518 | impl ::std::convert::From<Builder> for crate::input::UnitInputAndOutputInput {
|
12389 19519 | fn from(builder: Builder) -> Self {
|
12390 19520 | builder.build()
|
12391 19521 | }
|
12392 19522 | }
|
12393 - | /// A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19523 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19524 + | /* RustType.kt:516 */
|
12394 19525 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12395 - | pub struct Builder {}
|
19526 + | /* ServerBuilderGenerator.kt:211 */
|
19527 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19528 + | /* ServerBuilderGenerator.kt:215 */
|
12396 19529 | impl Builder {
|
12397 - | /// Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19530 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19531 + | /* ServerBuilderGenerator.kt:271 */
|
12398 19532 | pub fn build(self) -> crate::input::UnitInputAndOutputInput {
|
12399 19533 | self.build_enforcing_all_constraints()
|
12400 19534 | }
|
19535 + | /* ServerBuilderGenerator.kt:283 */
|
12401 19536 | fn build_enforcing_all_constraints(self) -> crate::input::UnitInputAndOutputInput {
|
12402 - | crate::input::UnitInputAndOutputInput {}
|
19537 + | /* ServerBuilderGenerator.kt:542 */
|
19538 + | crate::input::UnitInputAndOutputInput {
|
19539 + | /* ServerBuilderGenerator.kt:542 */}
|
19540 + | /* ServerBuilderGenerator.kt:283 */
|
12403 19541 | }
|
19542 + | /* ServerBuilderGenerator.kt:215 */
|
12404 19543 | }
|
19544 + |
|
19545 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12405 19546 | }
|
12406 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19547 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
12407 19548 | pub mod empty_input_and_empty_output_input {
|
12408 19549 |
|
19550 + | /* ServerBuilderGenerator.kt:461 */
|
12409 19551 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
12410 19552 | fn from(builder: Builder) -> Self {
|
12411 19553 | builder.build()
|
12412 19554 | }
|
12413 19555 | }
|
12414 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19556 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19557 + | /* RustType.kt:516 */
|
12415 19558 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12416 - | pub struct Builder {}
|
19559 + | /* ServerBuilderGenerator.kt:211 */
|
19560 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19561 + | /* ServerBuilderGenerator.kt:215 */
|
12417 19562 | impl Builder {
|
12418 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19563 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19564 + | /* ServerBuilderGenerator.kt:271 */
|
12419 19565 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
12420 19566 | self.build_enforcing_all_constraints()
|
12421 19567 | }
|
19568 + | /* ServerBuilderGenerator.kt:283 */
|
12422 19569 | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
12423 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
19570 + | /* ServerBuilderGenerator.kt:542 */
|
19571 + | crate::input::EmptyInputAndEmptyOutputInput {
|
19572 + | /* ServerBuilderGenerator.kt:542 */}
|
19573 + | /* ServerBuilderGenerator.kt:283 */
|
12424 19574 | }
|
19575 + | /* ServerBuilderGenerator.kt:215 */
|
12425 19576 | }
|
19577 + |
|
19578 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12426 19579 | }
|
12427 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19580 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
12428 19581 | pub mod no_input_and_output_input {
|
12429 19582 |
|
19583 + | /* ServerBuilderGenerator.kt:461 */
|
12430 19584 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
12431 19585 | fn from(builder: Builder) -> Self {
|
12432 19586 | builder.build()
|
12433 19587 | }
|
12434 19588 | }
|
12435 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19589 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19590 + | /* RustType.kt:516 */
|
12436 19591 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12437 - | pub struct Builder {}
|
19592 + | /* ServerBuilderGenerator.kt:211 */
|
19593 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19594 + | /* ServerBuilderGenerator.kt:215 */
|
12438 19595 | impl Builder {
|
12439 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19596 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19597 + | /* ServerBuilderGenerator.kt:271 */
|
12440 19598 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
12441 19599 | self.build_enforcing_all_constraints()
|
12442 19600 | }
|
19601 + | /* ServerBuilderGenerator.kt:283 */
|
12443 19602 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
12444 - | crate::input::NoInputAndOutputInput {}
|
19603 + | /* ServerBuilderGenerator.kt:542 */
|
19604 + | crate::input::NoInputAndOutputInput {
|
19605 + | /* ServerBuilderGenerator.kt:542 */}
|
19606 + | /* ServerBuilderGenerator.kt:283 */
|
12445 19607 | }
|
19608 + | /* ServerBuilderGenerator.kt:215 */
|
12446 19609 | }
|
19610 + |
|
19611 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12447 19612 | }
|
12448 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19613 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
12449 19614 | pub mod no_input_and_no_output_input {
|
12450 19615 |
|
19616 + | /* ServerBuilderGenerator.kt:461 */
|
12451 19617 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
12452 19618 | fn from(builder: Builder) -> Self {
|
12453 19619 | builder.build()
|
12454 19620 | }
|
12455 19621 | }
|
12456 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19622 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19623 + | /* RustType.kt:516 */
|
12457 19624 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12458 - | pub struct Builder {}
|
19625 + | /* ServerBuilderGenerator.kt:211 */
|
19626 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19627 + | /* ServerBuilderGenerator.kt:215 */
|
12459 19628 | impl Builder {
|
12460 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19629 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19630 + | /* ServerBuilderGenerator.kt:271 */
|
12461 19631 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
12462 19632 | self.build_enforcing_all_constraints()
|
12463 19633 | }
|
19634 + | /* ServerBuilderGenerator.kt:283 */
|
12464 19635 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
12465 - | crate::input::NoInputAndNoOutputInput {}
|
19636 + | /* ServerBuilderGenerator.kt:542 */
|
19637 + | crate::input::NoInputAndNoOutputInput {
|
19638 + | /* ServerBuilderGenerator.kt:542 */}
|
19639 + | /* ServerBuilderGenerator.kt:283 */
|
12466 19640 | }
|
19641 + | /* ServerBuilderGenerator.kt:215 */
|
12467 19642 | }
|
19643 + |
|
19644 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12468 19645 | }
|