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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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:356 */
|
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:356 */
|
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:534 */
|
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 MalformedContentTypeWithoutBodyEmptyInputInput {
|
725 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithoutBodyEmptyInputInput {
|
726 + | /* StructureGenerator.kt:231 */
|
441 727 | #[allow(missing_docs)] // documentation missing in model
|
442 728 | pub header: ::std::option::Option<::std::string::String>,
|
729 + | /* StructureGenerator.kt:201 */
|
443 730 | }
|
731 + | /* StructureGenerator.kt:135 */
|
444 732 | impl MalformedContentTypeWithoutBodyEmptyInputInput {
|
733 + | /* StructureGenerator.kt:231 */
|
445 734 | #[allow(missing_docs)] // documentation missing in model
|
735 + | /* StructureGenerator.kt:166 */
|
446 736 | pub fn header(&self) -> ::std::option::Option<&str> {
|
737 + | /* StructureGenerator.kt:169 */
|
447 738 | self.header.as_deref()
|
739 + | /* StructureGenerator.kt:166 */
|
448 740 | }
|
741 + | /* StructureGenerator.kt:135 */
|
449 742 | }
|
743 + | /* ServerCodegenVisitor.kt:356 */
|
450 744 | impl MalformedContentTypeWithoutBodyEmptyInputInput {
|
451 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
745 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
746 + | /* ServerBuilderGenerator.kt:295 */
|
452 747 | pub fn builder() -> crate::input::malformed_content_type_without_body_empty_input_input::Builder
|
453 748 | {
|
749 + | /* ServerBuilderGenerator.kt:296 */
|
454 750 | crate::input::malformed_content_type_without_body_empty_input_input::Builder::default()
|
751 + | /* ServerBuilderGenerator.kt:295 */
|
455 752 | }
|
753 + | /* ServerCodegenVisitor.kt:356 */
|
456 754 | }
|
755 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
457 756 | impl crate::constrained::Constrained
|
458 757 | for crate::input::MalformedContentTypeWithoutBodyEmptyInputInput
|
459 758 | {
|
460 759 | type Unconstrained =
|
461 760 | crate::input::malformed_content_type_without_body_empty_input_input::Builder;
|
462 761 | }
|
463 762 |
|
763 + | /* StructureGenerator.kt:197 */
|
464 764 | #[allow(missing_docs)] // documentation missing in model
|
765 + | /* RustType.kt:534 */
|
465 766 | #[derive(
|
466 767 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
467 768 | )]
|
468 - | pub struct MalformedContentTypeWithoutBodyInput {}
|
769 + | pub /* StructureGenerator.kt:201 */ struct MalformedContentTypeWithoutBodyInput {/* StructureGenerator.kt:201 */}
|
770 + | /* ServerCodegenVisitor.kt:356 */
|
469 771 | impl MalformedContentTypeWithoutBodyInput {
|
470 - | /// Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
772 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
773 + | /* ServerBuilderGenerator.kt:295 */
|
471 774 | pub fn builder() -> crate::input::malformed_content_type_without_body_input::Builder {
|
775 + | /* ServerBuilderGenerator.kt:296 */
|
472 776 | crate::input::malformed_content_type_without_body_input::Builder::default()
|
777 + | /* ServerBuilderGenerator.kt:295 */
|
473 778 | }
|
779 + | /* ServerCodegenVisitor.kt:356 */
|
474 780 | }
|
781 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
475 782 | impl crate::constrained::Constrained for crate::input::MalformedContentTypeWithoutBodyInput {
|
476 783 | type Unconstrained = crate::input::malformed_content_type_without_body_input::Builder;
|
477 784 | }
|
478 785 |
|
786 + | /* StructureGenerator.kt:197 */
|
479 787 | #[allow(missing_docs)] // documentation missing in model
|
788 + | /* RustType.kt:534 */
|
480 789 | #[derive(
|
481 790 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
482 791 | )]
|
483 - | pub struct MalformedTimestampBodyHttpDateInput {
|
792 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyHttpDateInput {
|
793 + | /* StructureGenerator.kt:231 */
|
484 794 | #[allow(missing_docs)] // documentation missing in model
|
485 795 | pub timestamp: ::aws_smithy_types::DateTime,
|
796 + | /* StructureGenerator.kt:201 */
|
486 797 | }
|
798 + | /* StructureGenerator.kt:135 */
|
487 799 | impl MalformedTimestampBodyHttpDateInput {
|
800 + | /* StructureGenerator.kt:231 */
|
488 801 | #[allow(missing_docs)] // documentation missing in model
|
802 + | /* StructureGenerator.kt:166 */
|
489 803 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
804 + | /* StructureGenerator.kt:172 */
|
490 805 | &self.timestamp
|
806 + | /* StructureGenerator.kt:166 */
|
491 807 | }
|
808 + | /* StructureGenerator.kt:135 */
|
492 809 | }
|
810 + | /* ServerCodegenVisitor.kt:356 */
|
493 811 | impl MalformedTimestampBodyHttpDateInput {
|
494 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
812 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
813 + | /* ServerBuilderGenerator.kt:295 */
|
495 814 | pub fn builder() -> crate::input::malformed_timestamp_body_http_date_input::Builder {
|
815 + | /* ServerBuilderGenerator.kt:296 */
|
496 816 | crate::input::malformed_timestamp_body_http_date_input::Builder::default()
|
817 + | /* ServerBuilderGenerator.kt:295 */
|
497 818 | }
|
819 + | /* ServerCodegenVisitor.kt:356 */
|
498 820 | }
|
821 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
499 822 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyHttpDateInput {
|
500 823 | type Unconstrained = crate::input::malformed_timestamp_body_http_date_input::Builder;
|
501 824 | }
|
502 825 |
|
826 + | /* StructureGenerator.kt:197 */
|
503 827 | #[allow(missing_docs)] // documentation missing in model
|
828 + | /* RustType.kt:534 */
|
504 829 | #[derive(
|
505 830 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
506 831 | )]
|
507 - | pub struct MalformedTimestampBodyDateTimeInput {
|
832 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDateTimeInput {
|
833 + | /* StructureGenerator.kt:231 */
|
508 834 | #[allow(missing_docs)] // documentation missing in model
|
509 835 | pub timestamp: ::aws_smithy_types::DateTime,
|
836 + | /* StructureGenerator.kt:201 */
|
510 837 | }
|
838 + | /* StructureGenerator.kt:135 */
|
511 839 | impl MalformedTimestampBodyDateTimeInput {
|
840 + | /* StructureGenerator.kt:231 */
|
512 841 | #[allow(missing_docs)] // documentation missing in model
|
842 + | /* StructureGenerator.kt:166 */
|
513 843 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
844 + | /* StructureGenerator.kt:172 */
|
514 845 | &self.timestamp
|
846 + | /* StructureGenerator.kt:166 */
|
515 847 | }
|
848 + | /* StructureGenerator.kt:135 */
|
516 849 | }
|
850 + | /* ServerCodegenVisitor.kt:356 */
|
517 851 | impl MalformedTimestampBodyDateTimeInput {
|
518 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
852 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
853 + | /* ServerBuilderGenerator.kt:295 */
|
519 854 | pub fn builder() -> crate::input::malformed_timestamp_body_date_time_input::Builder {
|
855 + | /* ServerBuilderGenerator.kt:296 */
|
520 856 | crate::input::malformed_timestamp_body_date_time_input::Builder::default()
|
857 + | /* ServerBuilderGenerator.kt:295 */
|
521 858 | }
|
859 + | /* ServerCodegenVisitor.kt:356 */
|
522 860 | }
|
861 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
523 862 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDateTimeInput {
|
524 863 | type Unconstrained = crate::input::malformed_timestamp_body_date_time_input::Builder;
|
525 864 | }
|
526 865 |
|
866 + | /* StructureGenerator.kt:197 */
|
527 867 | #[allow(missing_docs)] // documentation missing in model
|
868 + | /* RustType.kt:534 */
|
528 869 | #[derive(
|
529 870 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
530 871 | )]
|
531 - | pub struct MalformedTimestampBodyDefaultInput {
|
872 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampBodyDefaultInput {
|
873 + | /* StructureGenerator.kt:231 */
|
532 874 | #[allow(missing_docs)] // documentation missing in model
|
533 875 | pub timestamp: ::aws_smithy_types::DateTime,
|
876 + | /* StructureGenerator.kt:201 */
|
534 877 | }
|
878 + | /* StructureGenerator.kt:135 */
|
535 879 | impl MalformedTimestampBodyDefaultInput {
|
880 + | /* StructureGenerator.kt:231 */
|
536 881 | #[allow(missing_docs)] // documentation missing in model
|
882 + | /* StructureGenerator.kt:166 */
|
537 883 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
884 + | /* StructureGenerator.kt:172 */
|
538 885 | &self.timestamp
|
886 + | /* StructureGenerator.kt:166 */
|
539 887 | }
|
888 + | /* StructureGenerator.kt:135 */
|
540 889 | }
|
890 + | /* ServerCodegenVisitor.kt:356 */
|
541 891 | impl MalformedTimestampBodyDefaultInput {
|
542 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
892 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
893 + | /* ServerBuilderGenerator.kt:295 */
|
543 894 | pub fn builder() -> crate::input::malformed_timestamp_body_default_input::Builder {
|
895 + | /* ServerBuilderGenerator.kt:296 */
|
544 896 | crate::input::malformed_timestamp_body_default_input::Builder::default()
|
897 + | /* ServerBuilderGenerator.kt:295 */
|
545 898 | }
|
899 + | /* ServerCodegenVisitor.kt:356 */
|
546 900 | }
|
901 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
547 902 | impl crate::constrained::Constrained for crate::input::MalformedTimestampBodyDefaultInput {
|
548 903 | type Unconstrained = crate::input::malformed_timestamp_body_default_input::Builder;
|
549 904 | }
|
550 905 |
|
906 + | /* StructureGenerator.kt:197 */
|
551 907 | #[allow(missing_docs)] // documentation missing in model
|
908 + | /* RustType.kt:534 */
|
552 909 | #[derive(
|
553 910 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
554 911 | )]
|
555 - | pub struct MalformedTimestampHeaderEpochInput {
|
912 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderEpochInput {
|
913 + | /* StructureGenerator.kt:231 */
|
556 914 | #[allow(missing_docs)] // documentation missing in model
|
557 915 | pub timestamp: ::aws_smithy_types::DateTime,
|
916 + | /* StructureGenerator.kt:201 */
|
558 917 | }
|
918 + | /* StructureGenerator.kt:135 */
|
559 919 | impl MalformedTimestampHeaderEpochInput {
|
920 + | /* StructureGenerator.kt:231 */
|
560 921 | #[allow(missing_docs)] // documentation missing in model
|
922 + | /* StructureGenerator.kt:166 */
|
561 923 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
924 + | /* StructureGenerator.kt:172 */
|
562 925 | &self.timestamp
|
926 + | /* StructureGenerator.kt:166 */
|
563 927 | }
|
928 + | /* StructureGenerator.kt:135 */
|
564 929 | }
|
930 + | /* ServerCodegenVisitor.kt:356 */
|
565 931 | impl MalformedTimestampHeaderEpochInput {
|
566 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
932 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
933 + | /* ServerBuilderGenerator.kt:295 */
|
567 934 | pub fn builder() -> crate::input::malformed_timestamp_header_epoch_input::Builder {
|
935 + | /* ServerBuilderGenerator.kt:296 */
|
568 936 | crate::input::malformed_timestamp_header_epoch_input::Builder::default()
|
937 + | /* ServerBuilderGenerator.kt:295 */
|
569 938 | }
|
939 + | /* ServerCodegenVisitor.kt:356 */
|
570 940 | }
|
941 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
571 942 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderEpochInput {
|
572 943 | type Unconstrained = crate::input::malformed_timestamp_header_epoch_input::Builder;
|
573 944 | }
|
574 945 |
|
946 + | /* StructureGenerator.kt:197 */
|
575 947 | #[allow(missing_docs)] // documentation missing in model
|
948 + | /* RustType.kt:534 */
|
576 949 | #[derive(
|
577 950 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
578 951 | )]
|
579 - | pub struct MalformedTimestampHeaderDateTimeInput {
|
952 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDateTimeInput {
|
953 + | /* StructureGenerator.kt:231 */
|
580 954 | #[allow(missing_docs)] // documentation missing in model
|
581 955 | pub timestamp: ::aws_smithy_types::DateTime,
|
956 + | /* StructureGenerator.kt:201 */
|
582 957 | }
|
958 + | /* StructureGenerator.kt:135 */
|
583 959 | impl MalformedTimestampHeaderDateTimeInput {
|
960 + | /* StructureGenerator.kt:231 */
|
584 961 | #[allow(missing_docs)] // documentation missing in model
|
962 + | /* StructureGenerator.kt:166 */
|
585 963 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
964 + | /* StructureGenerator.kt:172 */
|
586 965 | &self.timestamp
|
966 + | /* StructureGenerator.kt:166 */
|
587 967 | }
|
968 + | /* StructureGenerator.kt:135 */
|
588 969 | }
|
970 + | /* ServerCodegenVisitor.kt:356 */
|
589 971 | impl MalformedTimestampHeaderDateTimeInput {
|
590 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
972 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
973 + | /* ServerBuilderGenerator.kt:295 */
|
591 974 | pub fn builder() -> crate::input::malformed_timestamp_header_date_time_input::Builder {
|
975 + | /* ServerBuilderGenerator.kt:296 */
|
592 976 | crate::input::malformed_timestamp_header_date_time_input::Builder::default()
|
977 + | /* ServerBuilderGenerator.kt:295 */
|
593 978 | }
|
979 + | /* ServerCodegenVisitor.kt:356 */
|
594 980 | }
|
981 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
595 982 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDateTimeInput {
|
596 983 | type Unconstrained = crate::input::malformed_timestamp_header_date_time_input::Builder;
|
597 984 | }
|
598 985 |
|
986 + | /* StructureGenerator.kt:197 */
|
599 987 | #[allow(missing_docs)] // documentation missing in model
|
988 + | /* RustType.kt:534 */
|
600 989 | #[derive(
|
601 990 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
602 991 | )]
|
603 - | pub struct MalformedTimestampHeaderDefaultInput {
|
992 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampHeaderDefaultInput {
|
993 + | /* StructureGenerator.kt:231 */
|
604 994 | #[allow(missing_docs)] // documentation missing in model
|
605 995 | pub timestamp: ::aws_smithy_types::DateTime,
|
996 + | /* StructureGenerator.kt:201 */
|
606 997 | }
|
998 + | /* StructureGenerator.kt:135 */
|
607 999 | impl MalformedTimestampHeaderDefaultInput {
|
1000 + | /* StructureGenerator.kt:231 */
|
608 1001 | #[allow(missing_docs)] // documentation missing in model
|
1002 + | /* StructureGenerator.kt:166 */
|
609 1003 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1004 + | /* StructureGenerator.kt:172 */
|
610 1005 | &self.timestamp
|
1006 + | /* StructureGenerator.kt:166 */
|
611 1007 | }
|
1008 + | /* StructureGenerator.kt:135 */
|
612 1009 | }
|
1010 + | /* ServerCodegenVisitor.kt:356 */
|
613 1011 | impl MalformedTimestampHeaderDefaultInput {
|
614 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
1012 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
1013 + | /* ServerBuilderGenerator.kt:295 */
|
615 1014 | pub fn builder() -> crate::input::malformed_timestamp_header_default_input::Builder {
|
1015 + | /* ServerBuilderGenerator.kt:296 */
|
616 1016 | crate::input::malformed_timestamp_header_default_input::Builder::default()
|
1017 + | /* ServerBuilderGenerator.kt:295 */
|
617 1018 | }
|
1019 + | /* ServerCodegenVisitor.kt:356 */
|
618 1020 | }
|
1021 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
619 1022 | impl crate::constrained::Constrained for crate::input::MalformedTimestampHeaderDefaultInput {
|
620 1023 | type Unconstrained = crate::input::malformed_timestamp_header_default_input::Builder;
|
621 1024 | }
|
622 1025 |
|
1026 + | /* StructureGenerator.kt:197 */
|
623 1027 | #[allow(missing_docs)] // documentation missing in model
|
1028 + | /* RustType.kt:534 */
|
624 1029 | #[derive(
|
625 1030 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
626 1031 | )]
|
627 - | pub struct MalformedTimestampQueryEpochInput {
|
1032 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryEpochInput {
|
1033 + | /* StructureGenerator.kt:231 */
|
628 1034 | #[allow(missing_docs)] // documentation missing in model
|
629 1035 | pub timestamp: ::aws_smithy_types::DateTime,
|
1036 + | /* StructureGenerator.kt:201 */
|
630 1037 | }
|
1038 + | /* StructureGenerator.kt:135 */
|
631 1039 | impl MalformedTimestampQueryEpochInput {
|
1040 + | /* StructureGenerator.kt:231 */
|
632 1041 | #[allow(missing_docs)] // documentation missing in model
|
1042 + | /* StructureGenerator.kt:166 */
|
633 1043 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1044 + | /* StructureGenerator.kt:172 */
|
634 1045 | &self.timestamp
|
1046 + | /* StructureGenerator.kt:166 */
|
635 1047 | }
|
1048 + | /* StructureGenerator.kt:135 */
|
636 1049 | }
|
1050 + | /* ServerCodegenVisitor.kt:356 */
|
637 1051 | impl MalformedTimestampQueryEpochInput {
|
638 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
1052 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
1053 + | /* ServerBuilderGenerator.kt:295 */
|
639 1054 | pub fn builder() -> crate::input::malformed_timestamp_query_epoch_input::Builder {
|
1055 + | /* ServerBuilderGenerator.kt:296 */
|
640 1056 | crate::input::malformed_timestamp_query_epoch_input::Builder::default()
|
1057 + | /* ServerBuilderGenerator.kt:295 */
|
641 1058 | }
|
1059 + | /* ServerCodegenVisitor.kt:356 */
|
642 1060 | }
|
1061 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
643 1062 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryEpochInput {
|
644 1063 | type Unconstrained = crate::input::malformed_timestamp_query_epoch_input::Builder;
|
645 1064 | }
|
646 1065 |
|
1066 + | /* StructureGenerator.kt:197 */
|
647 1067 | #[allow(missing_docs)] // documentation missing in model
|
1068 + | /* RustType.kt:534 */
|
648 1069 | #[derive(
|
649 1070 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
650 1071 | )]
|
651 - | pub struct MalformedTimestampQueryHttpDateInput {
|
1072 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryHttpDateInput {
|
1073 + | /* StructureGenerator.kt:231 */
|
652 1074 | #[allow(missing_docs)] // documentation missing in model
|
653 1075 | pub timestamp: ::aws_smithy_types::DateTime,
|
1076 + | /* StructureGenerator.kt:201 */
|
654 1077 | }
|
1078 + | /* StructureGenerator.kt:135 */
|
655 1079 | impl MalformedTimestampQueryHttpDateInput {
|
1080 + | /* StructureGenerator.kt:231 */
|
656 1081 | #[allow(missing_docs)] // documentation missing in model
|
1082 + | /* StructureGenerator.kt:166 */
|
657 1083 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1084 + | /* StructureGenerator.kt:172 */
|
658 1085 | &self.timestamp
|
1086 + | /* StructureGenerator.kt:166 */
|
659 1087 | }
|
1088 + | /* StructureGenerator.kt:135 */
|
660 1089 | }
|
1090 + | /* ServerCodegenVisitor.kt:356 */
|
661 1091 | impl MalformedTimestampQueryHttpDateInput {
|
662 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
1092 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
1093 + | /* ServerBuilderGenerator.kt:295 */
|
663 1094 | pub fn builder() -> crate::input::malformed_timestamp_query_http_date_input::Builder {
|
1095 + | /* ServerBuilderGenerator.kt:296 */
|
664 1096 | crate::input::malformed_timestamp_query_http_date_input::Builder::default()
|
1097 + | /* ServerBuilderGenerator.kt:295 */
|
665 1098 | }
|
1099 + | /* ServerCodegenVisitor.kt:356 */
|
666 1100 | }
|
1101 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
667 1102 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryHttpDateInput {
|
668 1103 | type Unconstrained = crate::input::malformed_timestamp_query_http_date_input::Builder;
|
669 1104 | }
|
670 1105 |
|
1106 + | /* StructureGenerator.kt:197 */
|
671 1107 | #[allow(missing_docs)] // documentation missing in model
|
1108 + | /* RustType.kt:534 */
|
672 1109 | #[derive(
|
673 1110 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
674 1111 | )]
|
675 - | pub struct MalformedTimestampQueryDefaultInput {
|
1112 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampQueryDefaultInput {
|
1113 + | /* StructureGenerator.kt:231 */
|
676 1114 | #[allow(missing_docs)] // documentation missing in model
|
677 1115 | pub timestamp: ::aws_smithy_types::DateTime,
|
1116 + | /* StructureGenerator.kt:201 */
|
678 1117 | }
|
1118 + | /* StructureGenerator.kt:135 */
|
679 1119 | impl MalformedTimestampQueryDefaultInput {
|
1120 + | /* StructureGenerator.kt:231 */
|
680 1121 | #[allow(missing_docs)] // documentation missing in model
|
1122 + | /* StructureGenerator.kt:166 */
|
681 1123 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1124 + | /* StructureGenerator.kt:172 */
|
682 1125 | &self.timestamp
|
1126 + | /* StructureGenerator.kt:166 */
|
683 1127 | }
|
1128 + | /* StructureGenerator.kt:135 */
|
684 1129 | }
|
1130 + | /* ServerCodegenVisitor.kt:356 */
|
685 1131 | impl MalformedTimestampQueryDefaultInput {
|
686 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
1132 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
1133 + | /* ServerBuilderGenerator.kt:295 */
|
687 1134 | pub fn builder() -> crate::input::malformed_timestamp_query_default_input::Builder {
|
1135 + | /* ServerBuilderGenerator.kt:296 */
|
688 1136 | crate::input::malformed_timestamp_query_default_input::Builder::default()
|
1137 + | /* ServerBuilderGenerator.kt:295 */
|
689 1138 | }
|
1139 + | /* ServerCodegenVisitor.kt:356 */
|
690 1140 | }
|
1141 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
691 1142 | impl crate::constrained::Constrained for crate::input::MalformedTimestampQueryDefaultInput {
|
692 1143 | type Unconstrained = crate::input::malformed_timestamp_query_default_input::Builder;
|
693 1144 | }
|
694 1145 |
|
1146 + | /* StructureGenerator.kt:197 */
|
695 1147 | #[allow(missing_docs)] // documentation missing in model
|
1148 + | /* RustType.kt:534 */
|
696 1149 | #[derive(
|
697 1150 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
698 1151 | )]
|
699 - | pub struct MalformedTimestampPathEpochInput {
|
1152 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathEpochInput {
|
1153 + | /* StructureGenerator.kt:231 */
|
700 1154 | #[allow(missing_docs)] // documentation missing in model
|
701 1155 | pub timestamp: ::aws_smithy_types::DateTime,
|
1156 + | /* StructureGenerator.kt:201 */
|
702 1157 | }
|
1158 + | /* StructureGenerator.kt:135 */
|
703 1159 | impl MalformedTimestampPathEpochInput {
|
1160 + | /* StructureGenerator.kt:231 */
|
704 1161 | #[allow(missing_docs)] // documentation missing in model
|
1162 + | /* StructureGenerator.kt:166 */
|
705 1163 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1164 + | /* StructureGenerator.kt:172 */
|
706 1165 | &self.timestamp
|
1166 + | /* StructureGenerator.kt:166 */
|
707 1167 | }
|
1168 + | /* StructureGenerator.kt:135 */
|
708 1169 | }
|
1170 + | /* ServerCodegenVisitor.kt:356 */
|
709 1171 | impl MalformedTimestampPathEpochInput {
|
710 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
1172 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
1173 + | /* ServerBuilderGenerator.kt:295 */
|
711 1174 | pub fn builder() -> crate::input::malformed_timestamp_path_epoch_input::Builder {
|
1175 + | /* ServerBuilderGenerator.kt:296 */
|
712 1176 | crate::input::malformed_timestamp_path_epoch_input::Builder::default()
|
1177 + | /* ServerBuilderGenerator.kt:295 */
|
713 1178 | }
|
1179 + | /* ServerCodegenVisitor.kt:356 */
|
714 1180 | }
|
1181 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
715 1182 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathEpochInput {
|
716 1183 | type Unconstrained = crate::input::malformed_timestamp_path_epoch_input::Builder;
|
717 1184 | }
|
718 1185 |
|
1186 + | /* StructureGenerator.kt:197 */
|
719 1187 | #[allow(missing_docs)] // documentation missing in model
|
1188 + | /* RustType.kt:534 */
|
720 1189 | #[derive(
|
721 1190 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
722 1191 | )]
|
723 - | pub struct MalformedTimestampPathHttpDateInput {
|
1192 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathHttpDateInput {
|
1193 + | /* StructureGenerator.kt:231 */
|
724 1194 | #[allow(missing_docs)] // documentation missing in model
|
725 1195 | pub timestamp: ::aws_smithy_types::DateTime,
|
1196 + | /* StructureGenerator.kt:201 */
|
726 1197 | }
|
1198 + | /* StructureGenerator.kt:135 */
|
727 1199 | impl MalformedTimestampPathHttpDateInput {
|
1200 + | /* StructureGenerator.kt:231 */
|
728 1201 | #[allow(missing_docs)] // documentation missing in model
|
1202 + | /* StructureGenerator.kt:166 */
|
729 1203 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1204 + | /* StructureGenerator.kt:172 */
|
730 1205 | &self.timestamp
|
1206 + | /* StructureGenerator.kt:166 */
|
731 1207 | }
|
1208 + | /* StructureGenerator.kt:135 */
|
732 1209 | }
|
1210 + | /* ServerCodegenVisitor.kt:356 */
|
733 1211 | impl MalformedTimestampPathHttpDateInput {
|
734 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
1212 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
1213 + | /* ServerBuilderGenerator.kt:295 */
|
735 1214 | pub fn builder() -> crate::input::malformed_timestamp_path_http_date_input::Builder {
|
1215 + | /* ServerBuilderGenerator.kt:296 */
|
736 1216 | crate::input::malformed_timestamp_path_http_date_input::Builder::default()
|
1217 + | /* ServerBuilderGenerator.kt:295 */
|
737 1218 | }
|
1219 + | /* ServerCodegenVisitor.kt:356 */
|
738 1220 | }
|
1221 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
739 1222 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathHttpDateInput {
|
740 1223 | type Unconstrained = crate::input::malformed_timestamp_path_http_date_input::Builder;
|
741 1224 | }
|
742 1225 |
|
1226 + | /* StructureGenerator.kt:197 */
|
743 1227 | #[allow(missing_docs)] // documentation missing in model
|
1228 + | /* RustType.kt:534 */
|
744 1229 | #[derive(
|
745 1230 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
746 1231 | )]
|
747 - | pub struct MalformedTimestampPathDefaultInput {
|
1232 + | pub /* StructureGenerator.kt:201 */ struct MalformedTimestampPathDefaultInput {
|
1233 + | /* StructureGenerator.kt:231 */
|
748 1234 | #[allow(missing_docs)] // documentation missing in model
|
749 1235 | pub timestamp: ::aws_smithy_types::DateTime,
|
1236 + | /* StructureGenerator.kt:201 */
|
750 1237 | }
|
1238 + | /* StructureGenerator.kt:135 */
|
751 1239 | impl MalformedTimestampPathDefaultInput {
|
1240 + | /* StructureGenerator.kt:231 */
|
752 1241 | #[allow(missing_docs)] // documentation missing in model
|
1242 + | /* StructureGenerator.kt:166 */
|
753 1243 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
1244 + | /* StructureGenerator.kt:172 */
|
754 1245 | &self.timestamp
|
1246 + | /* StructureGenerator.kt:166 */
|
755 1247 | }
|
1248 + | /* StructureGenerator.kt:135 */
|
756 1249 | }
|
1250 + | /* ServerCodegenVisitor.kt:356 */
|
757 1251 | impl MalformedTimestampPathDefaultInput {
|
758 - | /// Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
1252 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
1253 + | /* ServerBuilderGenerator.kt:295 */
|
759 1254 | pub fn builder() -> crate::input::malformed_timestamp_path_default_input::Builder {
|
1255 + | /* ServerBuilderGenerator.kt:296 */
|
760 1256 | crate::input::malformed_timestamp_path_default_input::Builder::default()
|
1257 + | /* ServerBuilderGenerator.kt:295 */
|
761 1258 | }
|
1259 + | /* ServerCodegenVisitor.kt:356 */
|
762 1260 | }
|
1261 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
763 1262 | impl crate::constrained::Constrained for crate::input::MalformedTimestampPathDefaultInput {
|
764 1263 | type Unconstrained = crate::input::malformed_timestamp_path_default_input::Builder;
|
765 1264 | }
|
766 1265 |
|
1266 + | /* StructureGenerator.kt:197 */
|
767 1267 | #[allow(missing_docs)] // documentation missing in model
|
1268 + | /* RustType.kt:534 */
|
768 1269 | #[derive(
|
769 1270 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
770 1271 | )]
|
771 - | pub struct MalformedStringInput {
|
1272 + | pub /* StructureGenerator.kt:201 */ struct MalformedStringInput {
|
1273 + | /* StructureGenerator.kt:231 */
|
772 1274 | #[allow(missing_docs)] // documentation missing in model
|
773 1275 | pub blob: ::std::option::Option<::std::string::String>,
|
1276 + | /* StructureGenerator.kt:201 */
|
774 1277 | }
|
1278 + | /* StructureGenerator.kt:135 */
|
775 1279 | impl MalformedStringInput {
|
1280 + | /* StructureGenerator.kt:231 */
|
776 1281 | #[allow(missing_docs)] // documentation missing in model
|
1282 + | /* StructureGenerator.kt:166 */
|
777 1283 | pub fn blob(&self) -> ::std::option::Option<&str> {
|
1284 + | /* StructureGenerator.kt:169 */
|
778 1285 | self.blob.as_deref()
|
1286 + | /* StructureGenerator.kt:166 */
|
779 1287 | }
|
1288 + | /* StructureGenerator.kt:135 */
|
780 1289 | }
|
1290 + | /* ServerCodegenVisitor.kt:356 */
|
781 1291 | impl MalformedStringInput {
|
782 - | /// Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
1292 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedStringInput`](crate::input::MalformedStringInput).
|
1293 + | /* ServerBuilderGenerator.kt:295 */
|
783 1294 | pub fn builder() -> crate::input::malformed_string_input::Builder {
|
1295 + | /* ServerBuilderGenerator.kt:296 */
|
784 1296 | crate::input::malformed_string_input::Builder::default()
|
1297 + | /* ServerBuilderGenerator.kt:295 */
|
785 1298 | }
|
1299 + | /* ServerCodegenVisitor.kt:356 */
|
786 1300 | }
|
1301 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
787 1302 | impl crate::constrained::Constrained for crate::input::MalformedStringInput {
|
788 1303 | type Unconstrained = crate::input::malformed_string_input::Builder;
|
789 1304 | }
|
790 1305 |
|
1306 + | /* StructureGenerator.kt:197 */
|
791 1307 | #[allow(missing_docs)] // documentation missing in model
|
1308 + | /* RustType.kt:534 */
|
792 1309 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
793 - | pub struct MalformedDoubleInput {
|
1310 + | pub /* StructureGenerator.kt:201 */ struct MalformedDoubleInput {
|
1311 + | /* StructureGenerator.kt:231 */
|
794 1312 | #[allow(missing_docs)] // documentation missing in model
|
795 1313 | pub double_in_body: ::std::option::Option<f64>,
|
1314 + | /* StructureGenerator.kt:231 */
|
796 1315 | #[allow(missing_docs)] // documentation missing in model
|
797 1316 | pub double_in_path: f64,
|
1317 + | /* StructureGenerator.kt:231 */
|
798 1318 | #[allow(missing_docs)] // documentation missing in model
|
799 1319 | pub double_in_query: ::std::option::Option<f64>,
|
1320 + | /* StructureGenerator.kt:231 */
|
800 1321 | #[allow(missing_docs)] // documentation missing in model
|
801 1322 | pub double_in_header: ::std::option::Option<f64>,
|
1323 + | /* StructureGenerator.kt:201 */
|
802 1324 | }
|
1325 + | /* StructureGenerator.kt:135 */
|
803 1326 | impl MalformedDoubleInput {
|
1327 + | /* StructureGenerator.kt:231 */
|
804 1328 | #[allow(missing_docs)] // documentation missing in model
|
1329 + | /* StructureGenerator.kt:166 */
|
805 1330 | pub fn double_in_body(&self) -> ::std::option::Option<f64> {
|
1331 + | /* StructureGenerator.kt:168 */
|
806 1332 | self.double_in_body
|
1333 + | /* StructureGenerator.kt:166 */
|
807 1334 | }
|
1335 + | /* StructureGenerator.kt:231 */
|
808 1336 | #[allow(missing_docs)] // documentation missing in model
|
1337 + | /* StructureGenerator.kt:166 */
|
809 1338 | pub fn double_in_path(&self) -> f64 {
|
1339 + | /* StructureGenerator.kt:168 */
|
810 1340 | self.double_in_path
|
1341 + | /* StructureGenerator.kt:166 */
|
811 1342 | }
|
1343 + | /* StructureGenerator.kt:231 */
|
812 1344 | #[allow(missing_docs)] // documentation missing in model
|
1345 + | /* StructureGenerator.kt:166 */
|
813 1346 | pub fn double_in_query(&self) -> ::std::option::Option<f64> {
|
1347 + | /* StructureGenerator.kt:168 */
|
814 1348 | self.double_in_query
|
1349 + | /* StructureGenerator.kt:166 */
|
815 1350 | }
|
1351 + | /* StructureGenerator.kt:231 */
|
816 1352 | #[allow(missing_docs)] // documentation missing in model
|
1353 + | /* StructureGenerator.kt:166 */
|
817 1354 | pub fn double_in_header(&self) -> ::std::option::Option<f64> {
|
1355 + | /* StructureGenerator.kt:168 */
|
818 1356 | self.double_in_header
|
1357 + | /* StructureGenerator.kt:166 */
|
819 1358 | }
|
1359 + | /* StructureGenerator.kt:135 */
|
820 1360 | }
|
1361 + | /* ServerCodegenVisitor.kt:356 */
|
821 1362 | impl MalformedDoubleInput {
|
822 - | /// Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
1363 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
1364 + | /* ServerBuilderGenerator.kt:295 */
|
823 1365 | pub fn builder() -> crate::input::malformed_double_input::Builder {
|
1366 + | /* ServerBuilderGenerator.kt:296 */
|
824 1367 | crate::input::malformed_double_input::Builder::default()
|
1368 + | /* ServerBuilderGenerator.kt:295 */
|
825 1369 | }
|
1370 + | /* ServerCodegenVisitor.kt:356 */
|
826 1371 | }
|
1372 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
827 1373 | impl crate::constrained::Constrained for crate::input::MalformedDoubleInput {
|
828 1374 | type Unconstrained = crate::input::malformed_double_input::Builder;
|
829 1375 | }
|
830 1376 |
|
1377 + | /* StructureGenerator.kt:197 */
|
831 1378 | #[allow(missing_docs)] // documentation missing in model
|
1379 + | /* RustType.kt:534 */
|
832 1380 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
833 - | pub struct MalformedFloatInput {
|
1381 + | pub /* StructureGenerator.kt:201 */ struct MalformedFloatInput {
|
1382 + | /* StructureGenerator.kt:231 */
|
834 1383 | #[allow(missing_docs)] // documentation missing in model
|
835 1384 | pub float_in_body: ::std::option::Option<f32>,
|
1385 + | /* StructureGenerator.kt:231 */
|
836 1386 | #[allow(missing_docs)] // documentation missing in model
|
837 1387 | pub float_in_path: f32,
|
1388 + | /* StructureGenerator.kt:231 */
|
838 1389 | #[allow(missing_docs)] // documentation missing in model
|
839 1390 | pub float_in_query: ::std::option::Option<f32>,
|
1391 + | /* StructureGenerator.kt:231 */
|
840 1392 | #[allow(missing_docs)] // documentation missing in model
|
841 1393 | pub float_in_header: ::std::option::Option<f32>,
|
1394 + | /* StructureGenerator.kt:201 */
|
842 1395 | }
|
1396 + | /* StructureGenerator.kt:135 */
|
843 1397 | impl MalformedFloatInput {
|
1398 + | /* StructureGenerator.kt:231 */
|
844 1399 | #[allow(missing_docs)] // documentation missing in model
|
1400 + | /* StructureGenerator.kt:166 */
|
845 1401 | pub fn float_in_body(&self) -> ::std::option::Option<f32> {
|
1402 + | /* StructureGenerator.kt:168 */
|
846 1403 | self.float_in_body
|
1404 + | /* StructureGenerator.kt:166 */
|
847 1405 | }
|
1406 + | /* StructureGenerator.kt:231 */
|
848 1407 | #[allow(missing_docs)] // documentation missing in model
|
1408 + | /* StructureGenerator.kt:166 */
|
849 1409 | pub fn float_in_path(&self) -> f32 {
|
1410 + | /* StructureGenerator.kt:168 */
|
850 1411 | self.float_in_path
|
1412 + | /* StructureGenerator.kt:166 */
|
851 1413 | }
|
1414 + | /* StructureGenerator.kt:231 */
|
852 1415 | #[allow(missing_docs)] // documentation missing in model
|
1416 + | /* StructureGenerator.kt:166 */
|
853 1417 | pub fn float_in_query(&self) -> ::std::option::Option<f32> {
|
1418 + | /* StructureGenerator.kt:168 */
|
854 1419 | self.float_in_query
|
1420 + | /* StructureGenerator.kt:166 */
|
855 1421 | }
|
1422 + | /* StructureGenerator.kt:231 */
|
856 1423 | #[allow(missing_docs)] // documentation missing in model
|
1424 + | /* StructureGenerator.kt:166 */
|
857 1425 | pub fn float_in_header(&self) -> ::std::option::Option<f32> {
|
1426 + | /* StructureGenerator.kt:168 */
|
858 1427 | self.float_in_header
|
1428 + | /* StructureGenerator.kt:166 */
|
859 1429 | }
|
1430 + | /* StructureGenerator.kt:135 */
|
860 1431 | }
|
1432 + | /* ServerCodegenVisitor.kt:356 */
|
861 1433 | impl MalformedFloatInput {
|
862 - | /// Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
1434 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
1435 + | /* ServerBuilderGenerator.kt:295 */
|
863 1436 | pub fn builder() -> crate::input::malformed_float_input::Builder {
|
1437 + | /* ServerBuilderGenerator.kt:296 */
|
864 1438 | crate::input::malformed_float_input::Builder::default()
|
1439 + | /* ServerBuilderGenerator.kt:295 */
|
865 1440 | }
|
1441 + | /* ServerCodegenVisitor.kt:356 */
|
866 1442 | }
|
1443 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
867 1444 | impl crate::constrained::Constrained for crate::input::MalformedFloatInput {
|
868 1445 | type Unconstrained = crate::input::malformed_float_input::Builder;
|
869 1446 | }
|
870 1447 |
|
1448 + | /* StructureGenerator.kt:197 */
|
871 1449 | #[allow(missing_docs)] // documentation missing in model
|
1450 + | /* RustType.kt:534 */
|
872 1451 | #[derive(
|
873 1452 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
874 1453 | )]
|
875 - | pub struct MalformedLongInput {
|
1454 + | pub /* StructureGenerator.kt:201 */ struct MalformedLongInput {
|
1455 + | /* StructureGenerator.kt:231 */
|
876 1456 | #[allow(missing_docs)] // documentation missing in model
|
877 1457 | pub long_in_body: ::std::option::Option<i64>,
|
1458 + | /* StructureGenerator.kt:231 */
|
878 1459 | #[allow(missing_docs)] // documentation missing in model
|
879 1460 | pub long_in_path: i64,
|
1461 + | /* StructureGenerator.kt:231 */
|
880 1462 | #[allow(missing_docs)] // documentation missing in model
|
881 1463 | pub long_in_query: ::std::option::Option<i64>,
|
1464 + | /* StructureGenerator.kt:231 */
|
882 1465 | #[allow(missing_docs)] // documentation missing in model
|
883 1466 | pub long_in_header: ::std::option::Option<i64>,
|
1467 + | /* StructureGenerator.kt:201 */
|
884 1468 | }
|
1469 + | /* StructureGenerator.kt:135 */
|
885 1470 | impl MalformedLongInput {
|
1471 + | /* StructureGenerator.kt:231 */
|
886 1472 | #[allow(missing_docs)] // documentation missing in model
|
1473 + | /* StructureGenerator.kt:166 */
|
887 1474 | pub fn long_in_body(&self) -> ::std::option::Option<i64> {
|
1475 + | /* StructureGenerator.kt:168 */
|
888 1476 | self.long_in_body
|
1477 + | /* StructureGenerator.kt:166 */
|
889 1478 | }
|
1479 + | /* StructureGenerator.kt:231 */
|
890 1480 | #[allow(missing_docs)] // documentation missing in model
|
1481 + | /* StructureGenerator.kt:166 */
|
891 1482 | pub fn long_in_path(&self) -> i64 {
|
1483 + | /* StructureGenerator.kt:168 */
|
892 1484 | self.long_in_path
|
1485 + | /* StructureGenerator.kt:166 */
|
893 1486 | }
|
1487 + | /* StructureGenerator.kt:231 */
|
894 1488 | #[allow(missing_docs)] // documentation missing in model
|
1489 + | /* StructureGenerator.kt:166 */
|
895 1490 | pub fn long_in_query(&self) -> ::std::option::Option<i64> {
|
1491 + | /* StructureGenerator.kt:168 */
|
896 1492 | self.long_in_query
|
1493 + | /* StructureGenerator.kt:166 */
|
897 1494 | }
|
1495 + | /* StructureGenerator.kt:231 */
|
898 1496 | #[allow(missing_docs)] // documentation missing in model
|
1497 + | /* StructureGenerator.kt:166 */
|
899 1498 | pub fn long_in_header(&self) -> ::std::option::Option<i64> {
|
1499 + | /* StructureGenerator.kt:168 */
|
900 1500 | self.long_in_header
|
1501 + | /* StructureGenerator.kt:166 */
|
901 1502 | }
|
1503 + | /* StructureGenerator.kt:135 */
|
902 1504 | }
|
1505 + | /* ServerCodegenVisitor.kt:356 */
|
903 1506 | impl MalformedLongInput {
|
904 - | /// Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
1507 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedLongInput`](crate::input::MalformedLongInput).
|
1508 + | /* ServerBuilderGenerator.kt:295 */
|
905 1509 | pub fn builder() -> crate::input::malformed_long_input::Builder {
|
1510 + | /* ServerBuilderGenerator.kt:296 */
|
906 1511 | crate::input::malformed_long_input::Builder::default()
|
1512 + | /* ServerBuilderGenerator.kt:295 */
|
907 1513 | }
|
1514 + | /* ServerCodegenVisitor.kt:356 */
|
908 1515 | }
|
1516 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
909 1517 | impl crate::constrained::Constrained for crate::input::MalformedLongInput {
|
910 1518 | type Unconstrained = crate::input::malformed_long_input::Builder;
|
911 1519 | }
|
912 1520 |
|
1521 + | /* StructureGenerator.kt:197 */
|
913 1522 | #[allow(missing_docs)] // documentation missing in model
|
1523 + | /* RustType.kt:534 */
|
914 1524 | #[derive(
|
915 1525 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
916 1526 | )]
|
917 - | pub struct MalformedShortInput {
|
1527 + | pub /* StructureGenerator.kt:201 */ struct MalformedShortInput {
|
1528 + | /* StructureGenerator.kt:231 */
|
918 1529 | #[allow(missing_docs)] // documentation missing in model
|
919 1530 | pub short_in_body: ::std::option::Option<i16>,
|
1531 + | /* StructureGenerator.kt:231 */
|
920 1532 | #[allow(missing_docs)] // documentation missing in model
|
921 1533 | pub short_in_path: i16,
|
1534 + | /* StructureGenerator.kt:231 */
|
922 1535 | #[allow(missing_docs)] // documentation missing in model
|
923 1536 | pub short_in_query: ::std::option::Option<i16>,
|
1537 + | /* StructureGenerator.kt:231 */
|
924 1538 | #[allow(missing_docs)] // documentation missing in model
|
925 1539 | pub short_in_header: ::std::option::Option<i16>,
|
1540 + | /* StructureGenerator.kt:201 */
|
926 1541 | }
|
1542 + | /* StructureGenerator.kt:135 */
|
927 1543 | impl MalformedShortInput {
|
1544 + | /* StructureGenerator.kt:231 */
|
928 1545 | #[allow(missing_docs)] // documentation missing in model
|
1546 + | /* StructureGenerator.kt:166 */
|
929 1547 | pub fn short_in_body(&self) -> ::std::option::Option<i16> {
|
1548 + | /* StructureGenerator.kt:168 */
|
930 1549 | self.short_in_body
|
1550 + | /* StructureGenerator.kt:166 */
|
931 1551 | }
|
1552 + | /* StructureGenerator.kt:231 */
|
932 1553 | #[allow(missing_docs)] // documentation missing in model
|
1554 + | /* StructureGenerator.kt:166 */
|
933 1555 | pub fn short_in_path(&self) -> i16 {
|
1556 + | /* StructureGenerator.kt:168 */
|
934 1557 | self.short_in_path
|
1558 + | /* StructureGenerator.kt:166 */
|
935 1559 | }
|
1560 + | /* StructureGenerator.kt:231 */
|
936 1561 | #[allow(missing_docs)] // documentation missing in model
|
1562 + | /* StructureGenerator.kt:166 */
|
937 1563 | pub fn short_in_query(&self) -> ::std::option::Option<i16> {
|
1564 + | /* StructureGenerator.kt:168 */
|
938 1565 | self.short_in_query
|
1566 + | /* StructureGenerator.kt:166 */
|
939 1567 | }
|
1568 + | /* StructureGenerator.kt:231 */
|
940 1569 | #[allow(missing_docs)] // documentation missing in model
|
1570 + | /* StructureGenerator.kt:166 */
|
941 1571 | pub fn short_in_header(&self) -> ::std::option::Option<i16> {
|
1572 + | /* StructureGenerator.kt:168 */
|
942 1573 | self.short_in_header
|
1574 + | /* StructureGenerator.kt:166 */
|
943 1575 | }
|
1576 + | /* StructureGenerator.kt:135 */
|
944 1577 | }
|
1578 + | /* ServerCodegenVisitor.kt:356 */
|
945 1579 | impl MalformedShortInput {
|
946 - | /// Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
1580 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedShortInput`](crate::input::MalformedShortInput).
|
1581 + | /* ServerBuilderGenerator.kt:295 */
|
947 1582 | pub fn builder() -> crate::input::malformed_short_input::Builder {
|
1583 + | /* ServerBuilderGenerator.kt:296 */
|
948 1584 | crate::input::malformed_short_input::Builder::default()
|
1585 + | /* ServerBuilderGenerator.kt:295 */
|
949 1586 | }
|
1587 + | /* ServerCodegenVisitor.kt:356 */
|
950 1588 | }
|
1589 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
951 1590 | impl crate::constrained::Constrained for crate::input::MalformedShortInput {
|
952 1591 | type Unconstrained = crate::input::malformed_short_input::Builder;
|
953 1592 | }
|
954 1593 |
|
1594 + | /* StructureGenerator.kt:197 */
|
955 1595 | #[allow(missing_docs)] // documentation missing in model
|
1596 + | /* RustType.kt:534 */
|
956 1597 | #[derive(
|
957 1598 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
958 1599 | )]
|
959 - | pub struct MalformedByteInput {
|
1600 + | pub /* StructureGenerator.kt:201 */ struct MalformedByteInput {
|
1601 + | /* StructureGenerator.kt:231 */
|
960 1602 | #[allow(missing_docs)] // documentation missing in model
|
961 1603 | pub byte_in_body: ::std::option::Option<i8>,
|
1604 + | /* StructureGenerator.kt:231 */
|
962 1605 | #[allow(missing_docs)] // documentation missing in model
|
963 1606 | pub byte_in_path: i8,
|
1607 + | /* StructureGenerator.kt:231 */
|
964 1608 | #[allow(missing_docs)] // documentation missing in model
|
965 1609 | pub byte_in_query: ::std::option::Option<i8>,
|
1610 + | /* StructureGenerator.kt:231 */
|
966 1611 | #[allow(missing_docs)] // documentation missing in model
|
967 1612 | pub byte_in_header: ::std::option::Option<i8>,
|
1613 + | /* StructureGenerator.kt:201 */
|
968 1614 | }
|
1615 + | /* StructureGenerator.kt:135 */
|
969 1616 | impl MalformedByteInput {
|
1617 + | /* StructureGenerator.kt:231 */
|
970 1618 | #[allow(missing_docs)] // documentation missing in model
|
1619 + | /* StructureGenerator.kt:166 */
|
971 1620 | pub fn byte_in_body(&self) -> ::std::option::Option<i8> {
|
1621 + | /* StructureGenerator.kt:168 */
|
972 1622 | self.byte_in_body
|
1623 + | /* StructureGenerator.kt:166 */
|
973 1624 | }
|
1625 + | /* StructureGenerator.kt:231 */
|
974 1626 | #[allow(missing_docs)] // documentation missing in model
|
1627 + | /* StructureGenerator.kt:166 */
|
975 1628 | pub fn byte_in_path(&self) -> i8 {
|
1629 + | /* StructureGenerator.kt:168 */
|
976 1630 | self.byte_in_path
|
1631 + | /* StructureGenerator.kt:166 */
|
977 1632 | }
|
1633 + | /* StructureGenerator.kt:231 */
|
978 1634 | #[allow(missing_docs)] // documentation missing in model
|
1635 + | /* StructureGenerator.kt:166 */
|
979 1636 | pub fn byte_in_query(&self) -> ::std::option::Option<i8> {
|
1637 + | /* StructureGenerator.kt:168 */
|
980 1638 | self.byte_in_query
|
1639 + | /* StructureGenerator.kt:166 */
|
981 1640 | }
|
1641 + | /* StructureGenerator.kt:231 */
|
982 1642 | #[allow(missing_docs)] // documentation missing in model
|
1643 + | /* StructureGenerator.kt:166 */
|
983 1644 | pub fn byte_in_header(&self) -> ::std::option::Option<i8> {
|
1645 + | /* StructureGenerator.kt:168 */
|
984 1646 | self.byte_in_header
|
1647 + | /* StructureGenerator.kt:166 */
|
985 1648 | }
|
1649 + | /* StructureGenerator.kt:135 */
|
986 1650 | }
|
1651 + | /* ServerCodegenVisitor.kt:356 */
|
987 1652 | impl MalformedByteInput {
|
988 - | /// Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
1653 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedByteInput`](crate::input::MalformedByteInput).
|
1654 + | /* ServerBuilderGenerator.kt:295 */
|
989 1655 | pub fn builder() -> crate::input::malformed_byte_input::Builder {
|
1656 + | /* ServerBuilderGenerator.kt:296 */
|
990 1657 | crate::input::malformed_byte_input::Builder::default()
|
1658 + | /* ServerBuilderGenerator.kt:295 */
|
991 1659 | }
|
1660 + | /* ServerCodegenVisitor.kt:356 */
|
992 1661 | }
|
1662 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
993 1663 | impl crate::constrained::Constrained for crate::input::MalformedByteInput {
|
994 1664 | type Unconstrained = crate::input::malformed_byte_input::Builder;
|
995 1665 | }
|
996 1666 |
|
1667 + | /* StructureGenerator.kt:197 */
|
997 1668 | #[allow(missing_docs)] // documentation missing in model
|
1669 + | /* RustType.kt:534 */
|
998 1670 | #[derive(
|
999 1671 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1000 1672 | )]
|
1001 - | pub struct MalformedBlobInput {
|
1673 + | pub /* StructureGenerator.kt:201 */ struct MalformedBlobInput {
|
1674 + | /* StructureGenerator.kt:231 */
|
1002 1675 | #[allow(missing_docs)] // documentation missing in model
|
1003 1676 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1677 + | /* StructureGenerator.kt:201 */
|
1004 1678 | }
|
1679 + | /* StructureGenerator.kt:135 */
|
1005 1680 | impl MalformedBlobInput {
|
1681 + | /* StructureGenerator.kt:231 */
|
1006 1682 | #[allow(missing_docs)] // documentation missing in model
|
1683 + | /* StructureGenerator.kt:166 */
|
1007 1684 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
1685 + | /* StructureGenerator.kt:170 */
|
1008 1686 | self.blob.as_ref()
|
1687 + | /* StructureGenerator.kt:166 */
|
1009 1688 | }
|
1689 + | /* StructureGenerator.kt:135 */
|
1010 1690 | }
|
1691 + | /* ServerCodegenVisitor.kt:356 */
|
1011 1692 | impl MalformedBlobInput {
|
1012 - | /// Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
1693 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
1694 + | /* ServerBuilderGenerator.kt:295 */
|
1013 1695 | pub fn builder() -> crate::input::malformed_blob_input::Builder {
|
1696 + | /* ServerBuilderGenerator.kt:296 */
|
1014 1697 | crate::input::malformed_blob_input::Builder::default()
|
1698 + | /* ServerBuilderGenerator.kt:295 */
|
1015 1699 | }
|
1700 + | /* ServerCodegenVisitor.kt:356 */
|
1016 1701 | }
|
1702 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1017 1703 | impl crate::constrained::Constrained for crate::input::MalformedBlobInput {
|
1018 1704 | type Unconstrained = crate::input::malformed_blob_input::Builder;
|
1019 1705 | }
|
1020 1706 |
|
1707 + | /* StructureGenerator.kt:197 */
|
1021 1708 | #[allow(missing_docs)] // documentation missing in model
|
1709 + | /* RustType.kt:534 */
|
1022 1710 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1023 - | pub struct MalformedMapInput {
|
1711 + | pub /* StructureGenerator.kt:201 */ struct MalformedMapInput {
|
1712 + | /* StructureGenerator.kt:231 */
|
1024 1713 | #[allow(missing_docs)] // documentation missing in model
|
1025 1714 | pub body_map: ::std::option::Option<
|
1026 1715 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1027 1716 | >,
|
1717 + | /* StructureGenerator.kt:201 */
|
1028 1718 | }
|
1719 + | /* StructureGenerator.kt:135 */
|
1029 1720 | impl MalformedMapInput {
|
1721 + | /* StructureGenerator.kt:231 */
|
1030 1722 | #[allow(missing_docs)] // documentation missing in model
|
1723 + | /* StructureGenerator.kt:166 */
|
1031 1724 | pub fn body_map(
|
1032 1725 | &self,
|
1033 1726 | ) -> ::std::option::Option<
|
1034 1727 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1035 1728 | > {
|
1729 + | /* StructureGenerator.kt:170 */
|
1036 1730 | self.body_map.as_ref()
|
1731 + | /* StructureGenerator.kt:166 */
|
1037 1732 | }
|
1733 + | /* StructureGenerator.kt:135 */
|
1038 1734 | }
|
1735 + | /* ServerCodegenVisitor.kt:356 */
|
1039 1736 | impl MalformedMapInput {
|
1040 - | /// Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
1737 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedMapInput`](crate::input::MalformedMapInput).
|
1738 + | /* ServerBuilderGenerator.kt:295 */
|
1041 1739 | pub fn builder() -> crate::input::malformed_map_input::Builder {
|
1740 + | /* ServerBuilderGenerator.kt:296 */
|
1042 1741 | crate::input::malformed_map_input::Builder::default()
|
1742 + | /* ServerBuilderGenerator.kt:295 */
|
1043 1743 | }
|
1744 + | /* ServerCodegenVisitor.kt:356 */
|
1044 1745 | }
|
1746 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1045 1747 | impl crate::constrained::Constrained for crate::input::MalformedMapInput {
|
1046 1748 | type Unconstrained = crate::input::malformed_map_input::Builder;
|
1047 1749 | }
|
1048 1750 |
|
1751 + | /* StructureGenerator.kt:197 */
|
1049 1752 | #[allow(missing_docs)] // documentation missing in model
|
1753 + | /* RustType.kt:534 */
|
1050 1754 | #[derive(
|
1051 1755 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1052 1756 | )]
|
1053 - | pub struct MalformedListInput {
|
1757 + | pub /* StructureGenerator.kt:201 */ struct MalformedListInput {
|
1758 + | /* StructureGenerator.kt:231 */
|
1054 1759 | #[allow(missing_docs)] // documentation missing in model
|
1055 1760 | pub body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
1761 + | /* StructureGenerator.kt:201 */
|
1056 1762 | }
|
1763 + | /* StructureGenerator.kt:135 */
|
1057 1764 | impl MalformedListInput {
|
1765 + | /* StructureGenerator.kt:231 */
|
1058 1766 | #[allow(missing_docs)] // documentation missing in model
|
1767 + | /* StructureGenerator.kt:166 */
|
1059 1768 | pub fn body_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1769 + | /* StructureGenerator.kt:169 */
|
1060 1770 | self.body_list.as_deref()
|
1771 + | /* StructureGenerator.kt:166 */
|
1061 1772 | }
|
1773 + | /* StructureGenerator.kt:135 */
|
1062 1774 | }
|
1775 + | /* ServerCodegenVisitor.kt:356 */
|
1063 1776 | impl MalformedListInput {
|
1064 - | /// Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
1777 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedListInput`](crate::input::MalformedListInput).
|
1778 + | /* ServerBuilderGenerator.kt:295 */
|
1065 1779 | pub fn builder() -> crate::input::malformed_list_input::Builder {
|
1780 + | /* ServerBuilderGenerator.kt:296 */
|
1066 1781 | crate::input::malformed_list_input::Builder::default()
|
1782 + | /* ServerBuilderGenerator.kt:295 */
|
1067 1783 | }
|
1784 + | /* ServerCodegenVisitor.kt:356 */
|
1068 1785 | }
|
1786 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1069 1787 | impl crate::constrained::Constrained for crate::input::MalformedListInput {
|
1070 1788 | type Unconstrained = crate::input::malformed_list_input::Builder;
|
1071 1789 | }
|
1072 1790 |
|
1791 + | /* StructureGenerator.kt:197 */
|
1073 1792 | #[allow(missing_docs)] // documentation missing in model
|
1793 + | /* RustType.kt:534 */
|
1074 1794 | #[derive(
|
1075 1795 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1076 1796 | )]
|
1077 - | pub struct MalformedBooleanInput {
|
1797 + | pub /* StructureGenerator.kt:201 */ struct MalformedBooleanInput {
|
1798 + | /* StructureGenerator.kt:231 */
|
1078 1799 | #[allow(missing_docs)] // documentation missing in model
|
1079 1800 | pub boolean_in_body: ::std::option::Option<bool>,
|
1801 + | /* StructureGenerator.kt:231 */
|
1080 1802 | #[allow(missing_docs)] // documentation missing in model
|
1081 1803 | pub boolean_in_path: bool,
|
1804 + | /* StructureGenerator.kt:231 */
|
1082 1805 | #[allow(missing_docs)] // documentation missing in model
|
1083 1806 | pub boolean_in_query: ::std::option::Option<bool>,
|
1807 + | /* StructureGenerator.kt:231 */
|
1084 1808 | #[allow(missing_docs)] // documentation missing in model
|
1085 1809 | pub boolean_in_header: ::std::option::Option<bool>,
|
1810 + | /* StructureGenerator.kt:201 */
|
1086 1811 | }
|
1812 + | /* StructureGenerator.kt:135 */
|
1087 1813 | impl MalformedBooleanInput {
|
1814 + | /* StructureGenerator.kt:231 */
|
1088 1815 | #[allow(missing_docs)] // documentation missing in model
|
1816 + | /* StructureGenerator.kt:166 */
|
1089 1817 | pub fn boolean_in_body(&self) -> ::std::option::Option<bool> {
|
1818 + | /* StructureGenerator.kt:168 */
|
1090 1819 | self.boolean_in_body
|
1820 + | /* StructureGenerator.kt:166 */
|
1091 1821 | }
|
1822 + | /* StructureGenerator.kt:231 */
|
1092 1823 | #[allow(missing_docs)] // documentation missing in model
|
1824 + | /* StructureGenerator.kt:166 */
|
1093 1825 | pub fn boolean_in_path(&self) -> bool {
|
1826 + | /* StructureGenerator.kt:168 */
|
1094 1827 | self.boolean_in_path
|
1828 + | /* StructureGenerator.kt:166 */
|
1095 1829 | }
|
1830 + | /* StructureGenerator.kt:231 */
|
1096 1831 | #[allow(missing_docs)] // documentation missing in model
|
1832 + | /* StructureGenerator.kt:166 */
|
1097 1833 | pub fn boolean_in_query(&self) -> ::std::option::Option<bool> {
|
1834 + | /* StructureGenerator.kt:168 */
|
1098 1835 | self.boolean_in_query
|
1836 + | /* StructureGenerator.kt:166 */
|
1099 1837 | }
|
1838 + | /* StructureGenerator.kt:231 */
|
1100 1839 | #[allow(missing_docs)] // documentation missing in model
|
1840 + | /* StructureGenerator.kt:166 */
|
1101 1841 | pub fn boolean_in_header(&self) -> ::std::option::Option<bool> {
|
1842 + | /* StructureGenerator.kt:168 */
|
1102 1843 | self.boolean_in_header
|
1844 + | /* StructureGenerator.kt:166 */
|
1103 1845 | }
|
1846 + | /* StructureGenerator.kt:135 */
|
1104 1847 | }
|
1848 + | /* ServerCodegenVisitor.kt:356 */
|
1105 1849 | impl MalformedBooleanInput {
|
1106 - | /// Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
1850 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
1851 + | /* ServerBuilderGenerator.kt:295 */
|
1107 1852 | pub fn builder() -> crate::input::malformed_boolean_input::Builder {
|
1853 + | /* ServerBuilderGenerator.kt:296 */
|
1108 1854 | crate::input::malformed_boolean_input::Builder::default()
|
1855 + | /* ServerBuilderGenerator.kt:295 */
|
1109 1856 | }
|
1857 + | /* ServerCodegenVisitor.kt:356 */
|
1110 1858 | }
|
1859 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1111 1860 | impl crate::constrained::Constrained for crate::input::MalformedBooleanInput {
|
1112 1861 | type Unconstrained = crate::input::malformed_boolean_input::Builder;
|
1113 1862 | }
|
1114 1863 |
|
1864 + | /* StructureGenerator.kt:197 */
|
1115 1865 | #[allow(missing_docs)] // documentation missing in model
|
1866 + | /* RustType.kt:534 */
|
1116 1867 | #[derive(
|
1117 1868 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1118 1869 | )]
|
1119 - | pub struct MalformedUnionInput {
|
1870 + | pub /* StructureGenerator.kt:201 */ struct MalformedUnionInput {
|
1871 + | /* StructureGenerator.kt:231 */
|
1120 1872 | #[allow(missing_docs)] // documentation missing in model
|
1121 1873 | pub union: ::std::option::Option<crate::model::SimpleUnion>,
|
1874 + | /* StructureGenerator.kt:201 */
|
1122 1875 | }
|
1876 + | /* StructureGenerator.kt:135 */
|
1123 1877 | impl MalformedUnionInput {
|
1878 + | /* StructureGenerator.kt:231 */
|
1124 1879 | #[allow(missing_docs)] // documentation missing in model
|
1880 + | /* StructureGenerator.kt:166 */
|
1125 1881 | pub fn union(&self) -> ::std::option::Option<&crate::model::SimpleUnion> {
|
1882 + | /* StructureGenerator.kt:170 */
|
1126 1883 | self.union.as_ref()
|
1884 + | /* StructureGenerator.kt:166 */
|
1127 1885 | }
|
1886 + | /* StructureGenerator.kt:135 */
|
1128 1887 | }
|
1888 + | /* ServerCodegenVisitor.kt:356 */
|
1129 1889 | impl MalformedUnionInput {
|
1130 - | /// Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
1890 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
1891 + | /* ServerBuilderGenerator.kt:295 */
|
1131 1892 | pub fn builder() -> crate::input::malformed_union_input::Builder {
|
1893 + | /* ServerBuilderGenerator.kt:296 */
|
1132 1894 | crate::input::malformed_union_input::Builder::default()
|
1895 + | /* ServerBuilderGenerator.kt:295 */
|
1133 1896 | }
|
1897 + | /* ServerCodegenVisitor.kt:356 */
|
1134 1898 | }
|
1899 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1135 1900 | impl crate::constrained::Constrained for crate::input::MalformedUnionInput {
|
1136 1901 | type Unconstrained = crate::input::malformed_union_input::Builder;
|
1137 1902 | }
|
1138 1903 |
|
1904 + | /* StructureGenerator.kt:197 */
|
1139 1905 | #[allow(missing_docs)] // documentation missing in model
|
1906 + | /* RustType.kt:534 */
|
1140 1907 | #[derive(
|
1141 1908 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1142 1909 | )]
|
1143 - | pub struct MalformedIntegerInput {
|
1910 + | pub /* StructureGenerator.kt:201 */ struct MalformedIntegerInput {
|
1911 + | /* StructureGenerator.kt:231 */
|
1144 1912 | #[allow(missing_docs)] // documentation missing in model
|
1145 1913 | pub integer_in_body: ::std::option::Option<i32>,
|
1914 + | /* StructureGenerator.kt:231 */
|
1146 1915 | #[allow(missing_docs)] // documentation missing in model
|
1147 1916 | pub integer_in_path: i32,
|
1917 + | /* StructureGenerator.kt:231 */
|
1148 1918 | #[allow(missing_docs)] // documentation missing in model
|
1149 1919 | pub integer_in_query: ::std::option::Option<i32>,
|
1920 + | /* StructureGenerator.kt:231 */
|
1150 1921 | #[allow(missing_docs)] // documentation missing in model
|
1151 1922 | pub integer_in_header: ::std::option::Option<i32>,
|
1923 + | /* StructureGenerator.kt:201 */
|
1152 1924 | }
|
1925 + | /* StructureGenerator.kt:135 */
|
1153 1926 | impl MalformedIntegerInput {
|
1927 + | /* StructureGenerator.kt:231 */
|
1154 1928 | #[allow(missing_docs)] // documentation missing in model
|
1929 + | /* StructureGenerator.kt:166 */
|
1155 1930 | pub fn integer_in_body(&self) -> ::std::option::Option<i32> {
|
1931 + | /* StructureGenerator.kt:168 */
|
1156 1932 | self.integer_in_body
|
1933 + | /* StructureGenerator.kt:166 */
|
1157 1934 | }
|
1935 + | /* StructureGenerator.kt:231 */
|
1158 1936 | #[allow(missing_docs)] // documentation missing in model
|
1937 + | /* StructureGenerator.kt:166 */
|
1159 1938 | pub fn integer_in_path(&self) -> i32 {
|
1939 + | /* StructureGenerator.kt:168 */
|
1160 1940 | self.integer_in_path
|
1941 + | /* StructureGenerator.kt:166 */
|
1161 1942 | }
|
1943 + | /* StructureGenerator.kt:231 */
|
1162 1944 | #[allow(missing_docs)] // documentation missing in model
|
1945 + | /* StructureGenerator.kt:166 */
|
1163 1946 | pub fn integer_in_query(&self) -> ::std::option::Option<i32> {
|
1947 + | /* StructureGenerator.kt:168 */
|
1164 1948 | self.integer_in_query
|
1949 + | /* StructureGenerator.kt:166 */
|
1165 1950 | }
|
1951 + | /* StructureGenerator.kt:231 */
|
1166 1952 | #[allow(missing_docs)] // documentation missing in model
|
1953 + | /* StructureGenerator.kt:166 */
|
1167 1954 | pub fn integer_in_header(&self) -> ::std::option::Option<i32> {
|
1955 + | /* StructureGenerator.kt:168 */
|
1168 1956 | self.integer_in_header
|
1957 + | /* StructureGenerator.kt:166 */
|
1169 1958 | }
|
1959 + | /* StructureGenerator.kt:135 */
|
1170 1960 | }
|
1961 + | /* ServerCodegenVisitor.kt:356 */
|
1171 1962 | impl MalformedIntegerInput {
|
1172 - | /// Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
1963 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
1964 + | /* ServerBuilderGenerator.kt:295 */
|
1173 1965 | pub fn builder() -> crate::input::malformed_integer_input::Builder {
|
1966 + | /* ServerBuilderGenerator.kt:296 */
|
1174 1967 | crate::input::malformed_integer_input::Builder::default()
|
1968 + | /* ServerBuilderGenerator.kt:295 */
|
1175 1969 | }
|
1970 + | /* ServerCodegenVisitor.kt:356 */
|
1176 1971 | }
|
1972 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1177 1973 | impl crate::constrained::Constrained for crate::input::MalformedIntegerInput {
|
1178 1974 | type Unconstrained = crate::input::malformed_integer_input::Builder;
|
1179 1975 | }
|
1180 1976 |
|
1977 + | /* StructureGenerator.kt:197 */
|
1181 1978 | #[allow(missing_docs)] // documentation missing in model
|
1979 + | /* RustType.kt:534 */
|
1182 1980 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1183 - | pub struct MalformedRequestBodyInput {
|
1981 + | pub /* StructureGenerator.kt:201 */ struct MalformedRequestBodyInput {
|
1982 + | /* StructureGenerator.kt:231 */
|
1184 1983 | #[allow(missing_docs)] // documentation missing in model
|
1185 1984 | pub int: ::std::option::Option<i32>,
|
1985 + | /* StructureGenerator.kt:231 */
|
1186 1986 | #[allow(missing_docs)] // documentation missing in model
|
1187 1987 | pub float: ::std::option::Option<f32>,
|
1988 + | /* StructureGenerator.kt:201 */
|
1188 1989 | }
|
1990 + | /* StructureGenerator.kt:135 */
|
1189 1991 | impl MalformedRequestBodyInput {
|
1992 + | /* StructureGenerator.kt:231 */
|
1190 1993 | #[allow(missing_docs)] // documentation missing in model
|
1994 + | /* StructureGenerator.kt:166 */
|
1191 1995 | pub fn int(&self) -> ::std::option::Option<i32> {
|
1996 + | /* StructureGenerator.kt:168 */
|
1192 1997 | self.int
|
1998 + | /* StructureGenerator.kt:166 */
|
1193 1999 | }
|
2000 + | /* StructureGenerator.kt:231 */
|
1194 2001 | #[allow(missing_docs)] // documentation missing in model
|
2002 + | /* StructureGenerator.kt:166 */
|
1195 2003 | pub fn float(&self) -> ::std::option::Option<f32> {
|
2004 + | /* StructureGenerator.kt:168 */
|
1196 2005 | self.float
|
2006 + | /* StructureGenerator.kt:166 */
|
1197 2007 | }
|
2008 + | /* StructureGenerator.kt:135 */
|
1198 2009 | }
|
2010 + | /* ServerCodegenVisitor.kt:356 */
|
1199 2011 | impl MalformedRequestBodyInput {
|
1200 - | /// Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
2012 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
2013 + | /* ServerBuilderGenerator.kt:295 */
|
1201 2014 | pub fn builder() -> crate::input::malformed_request_body_input::Builder {
|
2015 + | /* ServerBuilderGenerator.kt:296 */
|
1202 2016 | crate::input::malformed_request_body_input::Builder::default()
|
2017 + | /* ServerBuilderGenerator.kt:295 */
|
1203 2018 | }
|
2019 + | /* ServerCodegenVisitor.kt:356 */
|
1204 2020 | }
|
2021 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1205 2022 | impl crate::constrained::Constrained for crate::input::MalformedRequestBodyInput {
|
1206 2023 | type Unconstrained = crate::input::malformed_request_body_input::Builder;
|
1207 2024 | }
|
1208 2025 |
|
2026 + | /* StructureGenerator.kt:197 */
|
1209 2027 | #[allow(missing_docs)] // documentation missing in model
|
2028 + | /* RustType.kt:534 */
|
1210 2029 | #[derive(
|
1211 2030 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1212 2031 | )]
|
1213 - | pub struct HttpChecksumRequiredInput {
|
2032 + | pub /* StructureGenerator.kt:201 */ struct HttpChecksumRequiredInput {
|
2033 + | /* StructureGenerator.kt:231 */
|
1214 2034 | #[allow(missing_docs)] // documentation missing in model
|
1215 2035 | pub foo: ::std::option::Option<::std::string::String>,
|
2036 + | /* StructureGenerator.kt:201 */
|
1216 2037 | }
|
2038 + | /* StructureGenerator.kt:135 */
|
1217 2039 | impl HttpChecksumRequiredInput {
|
2040 + | /* StructureGenerator.kt:231 */
|
1218 2041 | #[allow(missing_docs)] // documentation missing in model
|
2042 + | /* StructureGenerator.kt:166 */
|
1219 2043 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
2044 + | /* StructureGenerator.kt:169 */
|
1220 2045 | self.foo.as_deref()
|
2046 + | /* StructureGenerator.kt:166 */
|
1221 2047 | }
|
2048 + | /* StructureGenerator.kt:135 */
|
1222 2049 | }
|
2050 + | /* ServerCodegenVisitor.kt:356 */
|
1223 2051 | impl HttpChecksumRequiredInput {
|
1224 - | /// Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
2052 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
2053 + | /* ServerBuilderGenerator.kt:295 */
|
1225 2054 | pub fn builder() -> crate::input::http_checksum_required_input::Builder {
|
2055 + | /* ServerBuilderGenerator.kt:296 */
|
1226 2056 | crate::input::http_checksum_required_input::Builder::default()
|
2057 + | /* ServerBuilderGenerator.kt:295 */
|
1227 2058 | }
|
2059 + | /* ServerCodegenVisitor.kt:356 */
|
1228 2060 | }
|
2061 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1229 2062 | impl crate::constrained::Constrained for crate::input::HttpChecksumRequiredInput {
|
1230 2063 | type Unconstrained = crate::input::http_checksum_required_input::Builder;
|
1231 2064 | }
|
1232 2065 |
|
2066 + | /* StructureGenerator.kt:197 */
|
1233 2067 | #[allow(missing_docs)] // documentation missing in model
|
2068 + | /* RustType.kt:534 */
|
1234 2069 | #[derive(
|
1235 2070 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1236 2071 | )]
|
1237 - | pub struct HostWithPathOperationInput {}
|
2072 + | pub /* StructureGenerator.kt:201 */ struct HostWithPathOperationInput {/* StructureGenerator.kt:201 */}
|
2073 + | /* ServerCodegenVisitor.kt:356 */
|
1238 2074 | impl HostWithPathOperationInput {
|
1239 - | /// Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2075 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
2076 + | /* ServerBuilderGenerator.kt:295 */
|
1240 2077 | pub fn builder() -> crate::input::host_with_path_operation_input::Builder {
|
2078 + | /* ServerBuilderGenerator.kt:296 */
|
1241 2079 | crate::input::host_with_path_operation_input::Builder::default()
|
2080 + | /* ServerBuilderGenerator.kt:295 */
|
1242 2081 | }
|
2082 + | /* ServerCodegenVisitor.kt:356 */
|
1243 2083 | }
|
2084 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1244 2085 | impl crate::constrained::Constrained for crate::input::HostWithPathOperationInput {
|
1245 2086 | type Unconstrained = crate::input::host_with_path_operation_input::Builder;
|
1246 2087 | }
|
1247 2088 |
|
2089 + | /* StructureGenerator.kt:197 */
|
1248 2090 | #[allow(missing_docs)] // documentation missing in model
|
2091 + | /* RustType.kt:534 */
|
1249 2092 | #[derive(
|
1250 2093 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1251 2094 | )]
|
1252 - | pub struct EndpointWithHostLabelOperationInput {
|
2095 + | pub /* StructureGenerator.kt:201 */ struct EndpointWithHostLabelOperationInput {
|
2096 + | /* StructureGenerator.kt:231 */
|
1253 2097 | #[allow(missing_docs)] // documentation missing in model
|
1254 2098 | pub label: ::std::string::String,
|
2099 + | /* StructureGenerator.kt:201 */
|
1255 2100 | }
|
2101 + | /* StructureGenerator.kt:135 */
|
1256 2102 | impl EndpointWithHostLabelOperationInput {
|
2103 + | /* StructureGenerator.kt:231 */
|
1257 2104 | #[allow(missing_docs)] // documentation missing in model
|
2105 + | /* StructureGenerator.kt:166 */
|
1258 2106 | pub fn label(&self) -> &str {
|
2107 + | /* StructureGenerator.kt:171 */
|
1259 2108 | use std::ops::Deref;
|
1260 2109 | self.label.deref()
|
2110 + | /* StructureGenerator.kt:166 */
|
1261 2111 | }
|
2112 + | /* StructureGenerator.kt:135 */
|
1262 2113 | }
|
2114 + | /* ServerCodegenVisitor.kt:356 */
|
1263 2115 | impl EndpointWithHostLabelOperationInput {
|
1264 - | /// Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2116 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
2117 + | /* ServerBuilderGenerator.kt:295 */
|
1265 2118 | pub fn builder() -> crate::input::endpoint_with_host_label_operation_input::Builder {
|
2119 + | /* ServerBuilderGenerator.kt:296 */
|
1266 2120 | crate::input::endpoint_with_host_label_operation_input::Builder::default()
|
2121 + | /* ServerBuilderGenerator.kt:295 */
|
1267 2122 | }
|
2123 + | /* ServerCodegenVisitor.kt:356 */
|
1268 2124 | }
|
2125 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1269 2126 | impl crate::constrained::Constrained for crate::input::EndpointWithHostLabelOperationInput {
|
1270 2127 | type Unconstrained = crate::input::endpoint_with_host_label_operation_input::Builder;
|
1271 2128 | }
|
1272 2129 |
|
2130 + | /* StructureGenerator.kt:197 */
|
1273 2131 | #[allow(missing_docs)] // documentation missing in model
|
2132 + | /* RustType.kt:534 */
|
1274 2133 | #[derive(
|
1275 2134 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1276 2135 | )]
|
1277 - | pub struct EndpointOperationInput {}
|
2136 + | pub /* StructureGenerator.kt:201 */ struct EndpointOperationInput {/* StructureGenerator.kt:201 */}
|
2137 + | /* ServerCodegenVisitor.kt:356 */
|
1278 2138 | impl EndpointOperationInput {
|
1279 - | /// Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2139 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
2140 + | /* ServerBuilderGenerator.kt:295 */
|
1280 2141 | pub fn builder() -> crate::input::endpoint_operation_input::Builder {
|
2142 + | /* ServerBuilderGenerator.kt:296 */
|
1281 2143 | crate::input::endpoint_operation_input::Builder::default()
|
2144 + | /* ServerBuilderGenerator.kt:295 */
|
1282 2145 | }
|
2146 + | /* ServerCodegenVisitor.kt:356 */
|
1283 2147 | }
|
2148 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1284 2149 | impl crate::constrained::Constrained for crate::input::EndpointOperationInput {
|
1285 2150 | type Unconstrained = crate::input::endpoint_operation_input::Builder;
|
1286 2151 | }
|
1287 2152 |
|
2153 + | /* StructureGenerator.kt:197 */
|
1288 2154 | #[allow(missing_docs)] // documentation missing in model
|
2155 + | /* RustType.kt:534 */
|
1289 2156 | #[derive(
|
1290 2157 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1291 2158 | )]
|
1292 - | pub struct PostUnionWithJsonNameInput {
|
2159 + | pub /* StructureGenerator.kt:201 */ struct PostUnionWithJsonNameInput {
|
2160 + | /* StructureGenerator.kt:231 */
|
1293 2161 | #[allow(missing_docs)] // documentation missing in model
|
1294 2162 | pub value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
2163 + | /* StructureGenerator.kt:201 */
|
1295 2164 | }
|
2165 + | /* StructureGenerator.kt:135 */
|
1296 2166 | impl PostUnionWithJsonNameInput {
|
2167 + | /* StructureGenerator.kt:231 */
|
1297 2168 | #[allow(missing_docs)] // documentation missing in model
|
2169 + | /* StructureGenerator.kt:166 */
|
1298 2170 | pub fn value(&self) -> ::std::option::Option<&crate::model::UnionWithJsonName> {
|
2171 + | /* StructureGenerator.kt:170 */
|
1299 2172 | self.value.as_ref()
|
2173 + | /* StructureGenerator.kt:166 */
|
1300 2174 | }
|
2175 + | /* StructureGenerator.kt:135 */
|
1301 2176 | }
|
2177 + | /* ServerCodegenVisitor.kt:356 */
|
1302 2178 | impl PostUnionWithJsonNameInput {
|
1303 - | /// Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
2179 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
2180 + | /* ServerBuilderGenerator.kt:295 */
|
1304 2181 | pub fn builder() -> crate::input::post_union_with_json_name_input::Builder {
|
2182 + | /* ServerBuilderGenerator.kt:296 */
|
1305 2183 | crate::input::post_union_with_json_name_input::Builder::default()
|
2184 + | /* ServerBuilderGenerator.kt:295 */
|
1306 2185 | }
|
2186 + | /* ServerCodegenVisitor.kt:356 */
|
1307 2187 | }
|
2188 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1308 2189 | impl crate::constrained::Constrained for crate::input::PostUnionWithJsonNameInput {
|
1309 2190 | type Unconstrained = crate::input::post_union_with_json_name_input::Builder;
|
1310 2191 | }
|
1311 2192 |
|
2193 + | /* StructureGenerator.kt:197 */
|
1312 2194 | #[allow(missing_docs)] // documentation missing in model
|
2195 + | /* RustType.kt:534 */
|
1313 2196 | #[derive(
|
1314 2197 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1315 2198 | )]
|
1316 - | pub struct PostPlayerActionInput {
|
2199 + | pub /* StructureGenerator.kt:201 */ struct PostPlayerActionInput {
|
2200 + | /* StructureGenerator.kt:231 */
|
1317 2201 | #[allow(missing_docs)] // documentation missing in model
|
1318 2202 | pub action: ::std::option::Option<crate::model::PlayerAction>,
|
2203 + | /* StructureGenerator.kt:201 */
|
1319 2204 | }
|
2205 + | /* StructureGenerator.kt:135 */
|
1320 2206 | impl PostPlayerActionInput {
|
2207 + | /* StructureGenerator.kt:231 */
|
1321 2208 | #[allow(missing_docs)] // documentation missing in model
|
2209 + | /* StructureGenerator.kt:166 */
|
1322 2210 | pub fn action(&self) -> ::std::option::Option<&crate::model::PlayerAction> {
|
2211 + | /* StructureGenerator.kt:170 */
|
1323 2212 | self.action.as_ref()
|
2213 + | /* StructureGenerator.kt:166 */
|
1324 2214 | }
|
2215 + | /* StructureGenerator.kt:135 */
|
1325 2216 | }
|
2217 + | /* ServerCodegenVisitor.kt:356 */
|
1326 2218 | impl PostPlayerActionInput {
|
1327 - | /// Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
2219 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
2220 + | /* ServerBuilderGenerator.kt:295 */
|
1328 2221 | pub fn builder() -> crate::input::post_player_action_input::Builder {
|
2222 + | /* ServerBuilderGenerator.kt:296 */
|
1329 2223 | crate::input::post_player_action_input::Builder::default()
|
2224 + | /* ServerBuilderGenerator.kt:295 */
|
1330 2225 | }
|
2226 + | /* ServerCodegenVisitor.kt:356 */
|
1331 2227 | }
|
2228 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1332 2229 | impl crate::constrained::Constrained for crate::input::PostPlayerActionInput {
|
1333 2230 | type Unconstrained = crate::input::post_player_action_input::Builder;
|
1334 2231 | }
|
1335 2232 |
|
1336 - | /// A shared structure that contains a single union member.
|
2233 + | /// /* StructureGenerator.kt:197 */A shared structure that contains a single union member.
|
2234 + | /* RustType.kt:534 */
|
1337 2235 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1338 - | pub struct JsonUnionsInput {
|
1339 - | /// A union with a representative set of types for members.
|
2236 + | pub /* StructureGenerator.kt:201 */ struct JsonUnionsInput {
|
2237 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
1340 2238 | pub contents: ::std::option::Option<crate::model::MyUnion>,
|
2239 + | /* StructureGenerator.kt:201 */
|
1341 2240 | }
|
2241 + | /* StructureGenerator.kt:135 */
|
1342 2242 | impl JsonUnionsInput {
|
1343 - | /// A union with a representative set of types for members.
|
2243 + | /// /* StructureGenerator.kt:231 */A union with a representative set of types for members.
|
2244 + | /* StructureGenerator.kt:166 */
|
1344 2245 | pub fn contents(&self) -> ::std::option::Option<&crate::model::MyUnion> {
|
2246 + | /* StructureGenerator.kt:170 */
|
1345 2247 | self.contents.as_ref()
|
2248 + | /* StructureGenerator.kt:166 */
|
1346 2249 | }
|
2250 + | /* StructureGenerator.kt:135 */
|
1347 2251 | }
|
2252 + | /* ServerCodegenVisitor.kt:356 */
|
1348 2253 | impl JsonUnionsInput {
|
1349 - | /// Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2254 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
2255 + | /* ServerBuilderGenerator.kt:295 */
|
1350 2256 | pub fn builder() -> crate::input::json_unions_input::Builder {
|
2257 + | /* ServerBuilderGenerator.kt:296 */
|
1351 2258 | crate::input::json_unions_input::Builder::default()
|
2259 + | /* ServerBuilderGenerator.kt:295 */
|
1352 2260 | }
|
2261 + | /* ServerCodegenVisitor.kt:356 */
|
1353 2262 | }
|
2263 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1354 2264 | impl crate::constrained::Constrained for crate::input::JsonUnionsInput {
|
1355 2265 | type Unconstrained = crate::input::json_unions_input::Builder;
|
1356 2266 | }
|
1357 2267 |
|
2268 + | /* StructureGenerator.kt:197 */
|
1358 2269 | #[allow(missing_docs)] // documentation missing in model
|
2270 + | /* RustType.kt:534 */
|
1359 2271 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1360 - | pub struct DocumentTypeAsMapValueInput {
|
2272 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsMapValueInput {
|
2273 + | /* StructureGenerator.kt:231 */
|
1361 2274 | #[allow(missing_docs)] // documentation missing in model
|
1362 2275 | pub doc_valued_map: ::std::option::Option<
|
1363 2276 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
1364 2277 | >,
|
2278 + | /* StructureGenerator.kt:201 */
|
1365 2279 | }
|
2280 + | /* StructureGenerator.kt:135 */
|
1366 2281 | impl DocumentTypeAsMapValueInput {
|
2282 + | /* StructureGenerator.kt:231 */
|
1367 2283 | #[allow(missing_docs)] // documentation missing in model
|
2284 + | /* StructureGenerator.kt:166 */
|
1368 2285 | pub fn doc_valued_map(
|
1369 2286 | &self,
|
1370 2287 | ) -> ::std::option::Option<
|
1371 2288 | &::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
1372 2289 | > {
|
2290 + | /* StructureGenerator.kt:170 */
|
1373 2291 | self.doc_valued_map.as_ref()
|
2292 + | /* StructureGenerator.kt:166 */
|
1374 2293 | }
|
2294 + | /* StructureGenerator.kt:135 */
|
1375 2295 | }
|
2296 + | /* ServerCodegenVisitor.kt:356 */
|
1376 2297 | impl DocumentTypeAsMapValueInput {
|
1377 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
2298 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
2299 + | /* ServerBuilderGenerator.kt:295 */
|
1378 2300 | pub fn builder() -> crate::input::document_type_as_map_value_input::Builder {
|
2301 + | /* ServerBuilderGenerator.kt:296 */
|
1379 2302 | crate::input::document_type_as_map_value_input::Builder::default()
|
2303 + | /* ServerBuilderGenerator.kt:295 */
|
1380 2304 | }
|
2305 + | /* ServerCodegenVisitor.kt:356 */
|
1381 2306 | }
|
2307 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1382 2308 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsMapValueInput {
|
1383 2309 | type Unconstrained = crate::input::document_type_as_map_value_input::Builder;
|
1384 2310 | }
|
1385 2311 |
|
2312 + | /* StructureGenerator.kt:197 */
|
1386 2313 | #[allow(missing_docs)] // documentation missing in model
|
2314 + | /* RustType.kt:534 */
|
1387 2315 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1388 - | pub struct DocumentTypeAsPayloadInput {
|
2316 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeAsPayloadInput {
|
2317 + | /* StructureGenerator.kt:231 */
|
1389 2318 | #[allow(missing_docs)] // documentation missing in model
|
1390 2319 | pub document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
2320 + | /* StructureGenerator.kt:201 */
|
1391 2321 | }
|
2322 + | /* StructureGenerator.kt:135 */
|
1392 2323 | impl DocumentTypeAsPayloadInput {
|
2324 + | /* StructureGenerator.kt:231 */
|
1393 2325 | #[allow(missing_docs)] // documentation missing in model
|
2326 + | /* StructureGenerator.kt:166 */
|
1394 2327 | pub fn document_value(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
|
2328 + | /* StructureGenerator.kt:170 */
|
1395 2329 | self.document_value.as_ref()
|
2330 + | /* StructureGenerator.kt:166 */
|
1396 2331 | }
|
2332 + | /* StructureGenerator.kt:135 */
|
1397 2333 | }
|
2334 + | /* ServerCodegenVisitor.kt:356 */
|
1398 2335 | impl DocumentTypeAsPayloadInput {
|
1399 - | /// Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
2336 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
2337 + | /* ServerBuilderGenerator.kt:295 */
|
1400 2338 | pub fn builder() -> crate::input::document_type_as_payload_input::Builder {
|
2339 + | /* ServerBuilderGenerator.kt:296 */
|
1401 2340 | crate::input::document_type_as_payload_input::Builder::default()
|
2341 + | /* ServerBuilderGenerator.kt:295 */
|
1402 2342 | }
|
2343 + | /* ServerCodegenVisitor.kt:356 */
|
1403 2344 | }
|
2345 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1404 2346 | impl crate::constrained::Constrained for crate::input::DocumentTypeAsPayloadInput {
|
1405 2347 | type Unconstrained = crate::input::document_type_as_payload_input::Builder;
|
1406 2348 | }
|
1407 2349 |
|
2350 + | /* StructureGenerator.kt:197 */
|
1408 2351 | #[allow(missing_docs)] // documentation missing in model
|
2352 + | /* RustType.kt:534 */
|
1409 2353 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1410 - | pub struct DocumentTypeInput {
|
2354 + | pub /* StructureGenerator.kt:201 */ struct DocumentTypeInput {
|
2355 + | /* StructureGenerator.kt:231 */
|
1411 2356 | #[allow(missing_docs)] // documentation missing in model
|
1412 2357 | pub string_value: ::std::option::Option<::std::string::String>,
|
2358 + | /* StructureGenerator.kt:231 */
|
1413 2359 | #[allow(missing_docs)] // documentation missing in model
|
1414 2360 | pub document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
2361 + | /* StructureGenerator.kt:201 */
|
1415 2362 | }
|
2363 + | /* StructureGenerator.kt:135 */
|
1416 2364 | impl DocumentTypeInput {
|
2365 + | /* StructureGenerator.kt:231 */
|
1417 2366 | #[allow(missing_docs)] // documentation missing in model
|
2367 + | /* StructureGenerator.kt:166 */
|
1418 2368 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
2369 + | /* StructureGenerator.kt:169 */
|
1419 2370 | self.string_value.as_deref()
|
2371 + | /* StructureGenerator.kt:166 */
|
1420 2372 | }
|
2373 + | /* StructureGenerator.kt:231 */
|
1421 2374 | #[allow(missing_docs)] // documentation missing in model
|
2375 + | /* StructureGenerator.kt:166 */
|
1422 2376 | pub fn document_value(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
|
2377 + | /* StructureGenerator.kt:170 */
|
1423 2378 | self.document_value.as_ref()
|
2379 + | /* StructureGenerator.kt:166 */
|
1424 2380 | }
|
2381 + | /* StructureGenerator.kt:135 */
|
1425 2382 | }
|
2383 + | /* ServerCodegenVisitor.kt:356 */
|
1426 2384 | impl DocumentTypeInput {
|
1427 - | /// Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
2385 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
2386 + | /* ServerBuilderGenerator.kt:295 */
|
1428 2387 | pub fn builder() -> crate::input::document_type_input::Builder {
|
2388 + | /* ServerBuilderGenerator.kt:296 */
|
1429 2389 | crate::input::document_type_input::Builder::default()
|
2390 + | /* ServerBuilderGenerator.kt:295 */
|
1430 2391 | }
|
2392 + | /* ServerCodegenVisitor.kt:356 */
|
1431 2393 | }
|
2394 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1432 2395 | impl crate::constrained::Constrained for crate::input::DocumentTypeInput {
|
1433 2396 | type Unconstrained = crate::input::document_type_input::Builder;
|
1434 2397 | }
|
1435 2398 |
|
2399 + | /* StructureGenerator.kt:197 */
|
1436 2400 | #[allow(missing_docs)] // documentation missing in model
|
2401 + | /* RustType.kt:534 */
|
1437 2402 | #[derive(
|
1438 2403 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1439 2404 | )]
|
1440 - | pub struct JsonBlobsInput {
|
2405 + | pub /* StructureGenerator.kt:201 */ struct JsonBlobsInput {
|
2406 + | /* StructureGenerator.kt:231 */
|
1441 2407 | #[allow(missing_docs)] // documentation missing in model
|
1442 2408 | pub data: ::std::option::Option<::aws_smithy_types::Blob>,
|
2409 + | /* StructureGenerator.kt:201 */
|
1443 2410 | }
|
2411 + | /* StructureGenerator.kt:135 */
|
1444 2412 | impl JsonBlobsInput {
|
2413 + | /* StructureGenerator.kt:231 */
|
1445 2414 | #[allow(missing_docs)] // documentation missing in model
|
2415 + | /* StructureGenerator.kt:166 */
|
1446 2416 | pub fn data(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
2417 + | /* StructureGenerator.kt:170 */
|
1447 2418 | self.data.as_ref()
|
2419 + | /* StructureGenerator.kt:166 */
|
1448 2420 | }
|
2421 + | /* StructureGenerator.kt:135 */
|
1449 2422 | }
|
2423 + | /* ServerCodegenVisitor.kt:356 */
|
1450 2424 | impl JsonBlobsInput {
|
1451 - | /// Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
2425 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
2426 + | /* ServerBuilderGenerator.kt:295 */
|
1452 2427 | pub fn builder() -> crate::input::json_blobs_input::Builder {
|
2428 + | /* ServerBuilderGenerator.kt:296 */
|
1453 2429 | crate::input::json_blobs_input::Builder::default()
|
2430 + | /* ServerBuilderGenerator.kt:295 */
|
1454 2431 | }
|
2432 + | /* ServerCodegenVisitor.kt:356 */
|
1455 2433 | }
|
2434 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1456 2435 | impl crate::constrained::Constrained for crate::input::JsonBlobsInput {
|
1457 2436 | type Unconstrained = crate::input::json_blobs_input::Builder;
|
1458 2437 | }
|
1459 2438 |
|
2439 + | /* StructureGenerator.kt:197 */
|
1460 2440 | #[allow(missing_docs)] // documentation missing in model
|
2441 + | /* RustType.kt:534 */
|
1461 2442 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1462 - | pub struct SparseJsonMapsInput {
|
2443 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonMapsInput {
|
2444 + | /* StructureGenerator.kt:231 */
|
1463 2445 | #[allow(missing_docs)] // documentation missing in model
|
1464 2446 | pub sparse_struct_map: ::std::option::Option<
|
1465 2447 | ::std::collections::HashMap<
|
1466 2448 | ::std::string::String,
|
1467 2449 | ::std::option::Option<crate::model::GreetingStruct>,
|
1468 2450 | >,
|
1469 2451 | >,
|
2452 + | /* StructureGenerator.kt:231 */
|
1470 2453 | #[allow(missing_docs)] // documentation missing in model
|
1471 2454 | pub sparse_number_map: ::std::option::Option<
|
1472 2455 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
1473 2456 | >,
|
2457 + | /* StructureGenerator.kt:231 */
|
1474 2458 | #[allow(missing_docs)] // documentation missing in model
|
1475 2459 | pub sparse_boolean_map: ::std::option::Option<
|
1476 2460 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
1477 2461 | >,
|
2462 + | /* StructureGenerator.kt:231 */
|
1478 2463 | #[allow(missing_docs)] // documentation missing in model
|
1479 2464 | pub sparse_string_map: ::std::option::Option<
|
1480 2465 | ::std::collections::HashMap<
|
1481 2466 | ::std::string::String,
|
1482 2467 | ::std::option::Option<::std::string::String>,
|
1483 2468 | >,
|
1484 2469 | >,
|
2470 + | /* StructureGenerator.kt:231 */
|
1485 2471 | #[allow(missing_docs)] // documentation missing in model
|
1486 2472 | pub sparse_set_map: ::std::option::Option<
|
1487 2473 | ::std::collections::HashMap<
|
1488 2474 | ::std::string::String,
|
1489 2475 | ::std::option::Option<crate::model::StringSet>,
|
1490 2476 | >,
|
1491 2477 | >,
|
2478 + | /* StructureGenerator.kt:201 */
|
1492 2479 | }
|
2480 + | /* StructureGenerator.kt:135 */
|
1493 2481 | impl SparseJsonMapsInput {
|
2482 + | /* StructureGenerator.kt:231 */
|
1494 2483 | #[allow(missing_docs)] // documentation missing in model
|
2484 + | /* StructureGenerator.kt:166 */
|
1495 2485 | pub fn sparse_struct_map(
|
1496 2486 | &self,
|
1497 2487 | ) -> ::std::option::Option<
|
1498 2488 | &::std::collections::HashMap<
|
1499 2489 | ::std::string::String,
|
1500 2490 | ::std::option::Option<crate::model::GreetingStruct>,
|
1501 2491 | >,
|
1502 2492 | > {
|
2493 + | /* StructureGenerator.kt:170 */
|
1503 2494 | self.sparse_struct_map.as_ref()
|
2495 + | /* StructureGenerator.kt:166 */
|
1504 2496 | }
|
2497 + | /* StructureGenerator.kt:231 */
|
1505 2498 | #[allow(missing_docs)] // documentation missing in model
|
2499 + | /* StructureGenerator.kt:166 */
|
1506 2500 | pub fn sparse_number_map(
|
1507 2501 | &self,
|
1508 2502 | ) -> ::std::option::Option<
|
1509 2503 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
1510 2504 | > {
|
2505 + | /* StructureGenerator.kt:170 */
|
1511 2506 | self.sparse_number_map.as_ref()
|
2507 + | /* StructureGenerator.kt:166 */
|
1512 2508 | }
|
2509 + | /* StructureGenerator.kt:231 */
|
1513 2510 | #[allow(missing_docs)] // documentation missing in model
|
2511 + | /* StructureGenerator.kt:166 */
|
1514 2512 | pub fn sparse_boolean_map(
|
1515 2513 | &self,
|
1516 2514 | ) -> ::std::option::Option<
|
1517 2515 | &::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
1518 2516 | > {
|
2517 + | /* StructureGenerator.kt:170 */
|
1519 2518 | self.sparse_boolean_map.as_ref()
|
2519 + | /* StructureGenerator.kt:166 */
|
1520 2520 | }
|
2521 + | /* StructureGenerator.kt:231 */
|
1521 2522 | #[allow(missing_docs)] // documentation missing in model
|
2523 + | /* StructureGenerator.kt:166 */
|
1522 2524 | pub fn sparse_string_map(
|
1523 2525 | &self,
|
1524 2526 | ) -> ::std::option::Option<
|
1525 2527 | &::std::collections::HashMap<
|
1526 2528 | ::std::string::String,
|
1527 2529 | ::std::option::Option<::std::string::String>,
|
1528 2530 | >,
|
1529 2531 | > {
|
2532 + | /* StructureGenerator.kt:170 */
|
1530 2533 | self.sparse_string_map.as_ref()
|
2534 + | /* StructureGenerator.kt:166 */
|
1531 2535 | }
|
2536 + | /* StructureGenerator.kt:231 */
|
1532 2537 | #[allow(missing_docs)] // documentation missing in model
|
2538 + | /* StructureGenerator.kt:166 */
|
1533 2539 | pub fn sparse_set_map(
|
1534 2540 | &self,
|
1535 2541 | ) -> ::std::option::Option<
|
1536 2542 | &::std::collections::HashMap<
|
1537 2543 | ::std::string::String,
|
1538 2544 | ::std::option::Option<crate::model::StringSet>,
|
1539 2545 | >,
|
1540 2546 | > {
|
2547 + | /* StructureGenerator.kt:170 */
|
1541 2548 | self.sparse_set_map.as_ref()
|
2549 + | /* StructureGenerator.kt:166 */
|
1542 2550 | }
|
2551 + | /* StructureGenerator.kt:135 */
|
1543 2552 | }
|
2553 + | /* ServerCodegenVisitor.kt:356 */
|
1544 2554 | impl SparseJsonMapsInput {
|
1545 - | /// Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
2555 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
2556 + | /* ServerBuilderGenerator.kt:295 */
|
1546 2557 | pub fn builder() -> crate::input::sparse_json_maps_input::Builder {
|
2558 + | /* ServerBuilderGenerator.kt:296 */
|
1547 2559 | crate::input::sparse_json_maps_input::Builder::default()
|
2560 + | /* ServerBuilderGenerator.kt:295 */
|
1548 2561 | }
|
2562 + | /* ServerCodegenVisitor.kt:356 */
|
1549 2563 | }
|
2564 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1550 2565 | impl crate::constrained::Constrained for crate::input::SparseJsonMapsInput {
|
1551 2566 | type Unconstrained = crate::input::sparse_json_maps_input::Builder;
|
1552 2567 | }
|
1553 2568 |
|
2569 + | /* StructureGenerator.kt:197 */
|
1554 2570 | #[allow(missing_docs)] // documentation missing in model
|
2571 + | /* RustType.kt:534 */
|
1555 2572 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1556 - | pub struct JsonMapsInput {
|
2573 + | pub /* StructureGenerator.kt:201 */ struct JsonMapsInput {
|
2574 + | /* StructureGenerator.kt:231 */
|
1557 2575 | #[allow(missing_docs)] // documentation missing in model
|
1558 2576 | pub dense_struct_map: ::std::option::Option<
|
1559 2577 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
1560 2578 | >,
|
2579 + | /* StructureGenerator.kt:231 */
|
1561 2580 | #[allow(missing_docs)] // documentation missing in model
|
1562 2581 | pub dense_number_map:
|
1563 2582 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
2583 + | /* StructureGenerator.kt:231 */
|
1564 2584 | #[allow(missing_docs)] // documentation missing in model
|
1565 2585 | pub dense_boolean_map:
|
1566 2586 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
2587 + | /* StructureGenerator.kt:231 */
|
1567 2588 | #[allow(missing_docs)] // documentation missing in model
|
1568 2589 | pub dense_string_map: ::std::option::Option<
|
1569 2590 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1570 2591 | >,
|
2592 + | /* StructureGenerator.kt:231 */
|
1571 2593 | #[allow(missing_docs)] // documentation missing in model
|
1572 2594 | pub dense_set_map: ::std::option::Option<
|
1573 2595 | ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
1574 2596 | >,
|
2597 + | /* StructureGenerator.kt:201 */
|
1575 2598 | }
|
2599 + | /* StructureGenerator.kt:135 */
|
1576 2600 | impl JsonMapsInput {
|
2601 + | /* StructureGenerator.kt:231 */
|
1577 2602 | #[allow(missing_docs)] // documentation missing in model
|
2603 + | /* StructureGenerator.kt:166 */
|
1578 2604 | pub fn dense_struct_map(
|
1579 2605 | &self,
|
1580 2606 | ) -> ::std::option::Option<
|
1581 2607 | &::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
1582 2608 | > {
|
2609 + | /* StructureGenerator.kt:170 */
|
1583 2610 | self.dense_struct_map.as_ref()
|
2611 + | /* StructureGenerator.kt:166 */
|
1584 2612 | }
|
2613 + | /* StructureGenerator.kt:231 */
|
1585 2614 | #[allow(missing_docs)] // documentation missing in model
|
2615 + | /* StructureGenerator.kt:166 */
|
1586 2616 | pub fn dense_number_map(
|
1587 2617 | &self,
|
1588 2618 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
2619 + | /* StructureGenerator.kt:170 */
|
1589 2620 | self.dense_number_map.as_ref()
|
2621 + | /* StructureGenerator.kt:166 */
|
1590 2622 | }
|
2623 + | /* StructureGenerator.kt:231 */
|
1591 2624 | #[allow(missing_docs)] // documentation missing in model
|
2625 + | /* StructureGenerator.kt:166 */
|
1592 2626 | pub fn dense_boolean_map(
|
1593 2627 | &self,
|
1594 2628 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
|
2629 + | /* StructureGenerator.kt:170 */
|
1595 2630 | self.dense_boolean_map.as_ref()
|
2631 + | /* StructureGenerator.kt:166 */
|
1596 2632 | }
|
2633 + | /* StructureGenerator.kt:231 */
|
1597 2634 | #[allow(missing_docs)] // documentation missing in model
|
2635 + | /* StructureGenerator.kt:166 */
|
1598 2636 | pub fn dense_string_map(
|
1599 2637 | &self,
|
1600 2638 | ) -> ::std::option::Option<
|
1601 2639 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1602 2640 | > {
|
2641 + | /* StructureGenerator.kt:170 */
|
1603 2642 | self.dense_string_map.as_ref()
|
2643 + | /* StructureGenerator.kt:166 */
|
1604 2644 | }
|
2645 + | /* StructureGenerator.kt:231 */
|
1605 2646 | #[allow(missing_docs)] // documentation missing in model
|
2647 + | /* StructureGenerator.kt:166 */
|
1606 2648 | pub fn dense_set_map(
|
1607 2649 | &self,
|
1608 2650 | ) -> ::std::option::Option<
|
1609 2651 | &::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
1610 2652 | > {
|
2653 + | /* StructureGenerator.kt:170 */
|
1611 2654 | self.dense_set_map.as_ref()
|
2655 + | /* StructureGenerator.kt:166 */
|
1612 2656 | }
|
2657 + | /* StructureGenerator.kt:135 */
|
1613 2658 | }
|
2659 + | /* ServerCodegenVisitor.kt:356 */
|
1614 2660 | impl JsonMapsInput {
|
1615 - | /// Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
2661 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonMapsInput`](crate::input::JsonMapsInput).
|
2662 + | /* ServerBuilderGenerator.kt:295 */
|
1616 2663 | pub fn builder() -> crate::input::json_maps_input::Builder {
|
2664 + | /* ServerBuilderGenerator.kt:296 */
|
1617 2665 | crate::input::json_maps_input::Builder::default()
|
2666 + | /* ServerBuilderGenerator.kt:295 */
|
1618 2667 | }
|
2668 + | /* ServerCodegenVisitor.kt:356 */
|
1619 2669 | }
|
2670 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1620 2671 | impl crate::constrained::Constrained for crate::input::JsonMapsInput {
|
1621 2672 | type Unconstrained = crate::input::json_maps_input::Builder;
|
1622 2673 | }
|
1623 2674 |
|
2675 + | /* StructureGenerator.kt:197 */
|
1624 2676 | #[allow(missing_docs)] // documentation missing in model
|
2677 + | /* RustType.kt:534 */
|
1625 2678 | #[derive(
|
1626 2679 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1627 2680 | )]
|
1628 - | pub struct SparseJsonListsInput {
|
2681 + | pub /* StructureGenerator.kt:201 */ struct SparseJsonListsInput {
|
2682 + | /* StructureGenerator.kt:231 */
|
1629 2683 | #[allow(missing_docs)] // documentation missing in model
|
1630 2684 | pub sparse_string_list:
|
1631 2685 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
2686 + | /* StructureGenerator.kt:231 */
|
1632 2687 | #[allow(missing_docs)] // documentation missing in model
|
1633 2688 | pub sparse_short_list: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
2689 + | /* StructureGenerator.kt:201 */
|
1634 2690 | }
|
2691 + | /* StructureGenerator.kt:135 */
|
1635 2692 | impl SparseJsonListsInput {
|
2693 + | /* StructureGenerator.kt:231 */
|
1636 2694 | #[allow(missing_docs)] // documentation missing in model
|
2695 + | /* StructureGenerator.kt:166 */
|
1637 2696 | pub fn sparse_string_list(
|
1638 2697 | &self,
|
1639 2698 | ) -> ::std::option::Option<&[::std::option::Option<::std::string::String>]> {
|
2699 + | /* StructureGenerator.kt:169 */
|
1640 2700 | self.sparse_string_list.as_deref()
|
2701 + | /* StructureGenerator.kt:166 */
|
1641 2702 | }
|
2703 + | /* StructureGenerator.kt:231 */
|
1642 2704 | #[allow(missing_docs)] // documentation missing in model
|
2705 + | /* StructureGenerator.kt:166 */
|
1643 2706 | pub fn sparse_short_list(&self) -> ::std::option::Option<&[::std::option::Option<i16>]> {
|
2707 + | /* StructureGenerator.kt:169 */
|
1644 2708 | self.sparse_short_list.as_deref()
|
2709 + | /* StructureGenerator.kt:166 */
|
1645 2710 | }
|
2711 + | /* StructureGenerator.kt:135 */
|
1646 2712 | }
|
2713 + | /* ServerCodegenVisitor.kt:356 */
|
1647 2714 | impl SparseJsonListsInput {
|
1648 - | /// Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
2715 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
2716 + | /* ServerBuilderGenerator.kt:295 */
|
1649 2717 | pub fn builder() -> crate::input::sparse_json_lists_input::Builder {
|
2718 + | /* ServerBuilderGenerator.kt:296 */
|
1650 2719 | crate::input::sparse_json_lists_input::Builder::default()
|
2720 + | /* ServerBuilderGenerator.kt:295 */
|
1651 2721 | }
|
2722 + | /* ServerCodegenVisitor.kt:356 */
|
1652 2723 | }
|
2724 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1653 2725 | impl crate::constrained::Constrained for crate::input::SparseJsonListsInput {
|
1654 2726 | type Unconstrained = crate::input::sparse_json_lists_input::Builder;
|
1655 2727 | }
|
1656 2728 |
|
2729 + | /* StructureGenerator.kt:197 */
|
1657 2730 | #[allow(missing_docs)] // documentation missing in model
|
2731 + | /* RustType.kt:534 */
|
1658 2732 | #[derive(
|
1659 2733 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1660 2734 | )]
|
1661 - | pub struct JsonListsInput {
|
2735 + | pub /* StructureGenerator.kt:201 */ struct JsonListsInput {
|
2736 + | /* StructureGenerator.kt:231 */
|
1662 2737 | #[allow(missing_docs)] // documentation missing in model
|
1663 2738 | pub string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
2739 + | /* StructureGenerator.kt:231 */
|
1664 2740 | #[allow(missing_docs)] // documentation missing in model
|
1665 2741 | pub string_set: ::std::option::Option<crate::model::StringSet>,
|
2742 + | /* StructureGenerator.kt:231 */
|
1666 2743 | #[allow(missing_docs)] // documentation missing in model
|
1667 2744 | pub integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
2745 + | /* StructureGenerator.kt:231 */
|
1668 2746 | #[allow(missing_docs)] // documentation missing in model
|
1669 2747 | pub boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
2748 + | /* StructureGenerator.kt:231 */
|
1670 2749 | #[allow(missing_docs)] // documentation missing in model
|
1671 2750 | pub timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
2751 + | /* StructureGenerator.kt:231 */
|
1672 2752 | #[allow(missing_docs)] // documentation missing in model
|
1673 2753 | pub enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
2754 + | /* StructureGenerator.kt:231 */
|
1674 2755 | #[allow(missing_docs)] // documentation missing in model
|
1675 2756 | pub int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
1676 - | /// A list of lists of strings.
|
2757 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
1677 2758 | pub nested_string_list:
|
1678 2759 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
2760 + | /* StructureGenerator.kt:231 */
|
1679 2761 | #[allow(missing_docs)] // documentation missing in model
|
1680 2762 | pub structure_list: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
2763 + | /* StructureGenerator.kt:201 */
|
1681 2764 | }
|
2765 + | /* StructureGenerator.kt:135 */
|
1682 2766 | impl JsonListsInput {
|
2767 + | /* StructureGenerator.kt:231 */
|
1683 2768 | #[allow(missing_docs)] // documentation missing in model
|
2769 + | /* StructureGenerator.kt:166 */
|
1684 2770 | pub fn string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
2771 + | /* StructureGenerator.kt:169 */
|
1685 2772 | self.string_list.as_deref()
|
2773 + | /* StructureGenerator.kt:166 */
|
1686 2774 | }
|
2775 + | /* StructureGenerator.kt:231 */
|
1687 2776 | #[allow(missing_docs)] // documentation missing in model
|
2777 + | /* StructureGenerator.kt:166 */
|
1688 2778 | pub fn string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
2779 + | /* StructureGenerator.kt:170 */
|
1689 2780 | self.string_set.as_ref()
|
2781 + | /* StructureGenerator.kt:166 */
|
1690 2782 | }
|
2783 + | /* StructureGenerator.kt:231 */
|
1691 2784 | #[allow(missing_docs)] // documentation missing in model
|
2785 + | /* StructureGenerator.kt:166 */
|
1692 2786 | pub fn integer_list(&self) -> ::std::option::Option<&[i32]> {
|
2787 + | /* StructureGenerator.kt:169 */
|
1693 2788 | self.integer_list.as_deref()
|
2789 + | /* StructureGenerator.kt:166 */
|
1694 2790 | }
|
2791 + | /* StructureGenerator.kt:231 */
|
1695 2792 | #[allow(missing_docs)] // documentation missing in model
|
2793 + | /* StructureGenerator.kt:166 */
|
1696 2794 | pub fn boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
2795 + | /* StructureGenerator.kt:169 */
|
1697 2796 | self.boolean_list.as_deref()
|
2797 + | /* StructureGenerator.kt:166 */
|
1698 2798 | }
|
2799 + | /* StructureGenerator.kt:231 */
|
1699 2800 | #[allow(missing_docs)] // documentation missing in model
|
2801 + | /* StructureGenerator.kt:166 */
|
1700 2802 | pub fn timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
2803 + | /* StructureGenerator.kt:169 */
|
1701 2804 | self.timestamp_list.as_deref()
|
2805 + | /* StructureGenerator.kt:166 */
|
1702 2806 | }
|
2807 + | /* StructureGenerator.kt:231 */
|
1703 2808 | #[allow(missing_docs)] // documentation missing in model
|
2809 + | /* StructureGenerator.kt:166 */
|
1704 2810 | pub fn enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
2811 + | /* StructureGenerator.kt:169 */
|
1705 2812 | self.enum_list.as_deref()
|
2813 + | /* StructureGenerator.kt:166 */
|
1706 2814 | }
|
2815 + | /* StructureGenerator.kt:231 */
|
1707 2816 | #[allow(missing_docs)] // documentation missing in model
|
2817 + | /* StructureGenerator.kt:166 */
|
1708 2818 | pub fn int_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
2819 + | /* StructureGenerator.kt:169 */
|
1709 2820 | self.int_enum_list.as_deref()
|
2821 + | /* StructureGenerator.kt:166 */
|
1710 2822 | }
|
1711 - | /// A list of lists of strings.
|
2823 + | /// /* StructureGenerator.kt:231 */A list of lists of strings.
|
2824 + | /* StructureGenerator.kt:166 */
|
1712 2825 | pub fn nested_string_list(
|
1713 2826 | &self,
|
1714 2827 | ) -> ::std::option::Option<&[::std::vec::Vec<::std::string::String>]> {
|
2828 + | /* StructureGenerator.kt:169 */
|
1715 2829 | self.nested_string_list.as_deref()
|
2830 + | /* StructureGenerator.kt:166 */
|
1716 2831 | }
|
2832 + | /* StructureGenerator.kt:231 */
|
1717 2833 | #[allow(missing_docs)] // documentation missing in model
|
2834 + | /* StructureGenerator.kt:166 */
|
1718 2835 | pub fn structure_list(&self) -> ::std::option::Option<&[crate::model::StructureListMember]> {
|
2836 + | /* StructureGenerator.kt:169 */
|
1719 2837 | self.structure_list.as_deref()
|
2838 + | /* StructureGenerator.kt:166 */
|
1720 2839 | }
|
2840 + | /* StructureGenerator.kt:135 */
|
1721 2841 | }
|
2842 + | /* ServerCodegenVisitor.kt:356 */
|
1722 2843 | impl JsonListsInput {
|
1723 - | /// Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
2844 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonListsInput`](crate::input::JsonListsInput).
|
2845 + | /* ServerBuilderGenerator.kt:295 */
|
1724 2846 | pub fn builder() -> crate::input::json_lists_input::Builder {
|
2847 + | /* ServerBuilderGenerator.kt:296 */
|
1725 2848 | crate::input::json_lists_input::Builder::default()
|
2849 + | /* ServerBuilderGenerator.kt:295 */
|
1726 2850 | }
|
2851 + | /* ServerCodegenVisitor.kt:356 */
|
1727 2852 | }
|
2853 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1728 2854 | impl crate::constrained::Constrained for crate::input::JsonListsInput {
|
1729 2855 | type Unconstrained = crate::input::json_lists_input::Builder;
|
1730 2856 | }
|
1731 2857 |
|
2858 + | /* StructureGenerator.kt:197 */
|
1732 2859 | #[allow(missing_docs)] // documentation missing in model
|
2860 + | /* RustType.kt:534 */
|
1733 2861 | #[derive(
|
1734 2862 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1735 2863 | )]
|
1736 - | pub struct RecursiveShapesInput {
|
2864 + | pub /* StructureGenerator.kt:201 */ struct RecursiveShapesInput {
|
2865 + | /* StructureGenerator.kt:231 */
|
1737 2866 | #[allow(missing_docs)] // documentation missing in model
|
1738 2867 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2868 + | /* StructureGenerator.kt:201 */
|
1739 2869 | }
|
2870 + | /* StructureGenerator.kt:135 */
|
1740 2871 | impl RecursiveShapesInput {
|
2872 + | /* StructureGenerator.kt:231 */
|
1741 2873 | #[allow(missing_docs)] // documentation missing in model
|
2874 + | /* StructureGenerator.kt:166 */
|
1742 2875 | pub fn nested(
|
1743 2876 | &self,
|
1744 2877 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
2878 + | /* StructureGenerator.kt:170 */
|
1745 2879 | self.nested.as_ref()
|
2880 + | /* StructureGenerator.kt:166 */
|
1746 2881 | }
|
2882 + | /* StructureGenerator.kt:135 */
|
1747 2883 | }
|
2884 + | /* ServerCodegenVisitor.kt:356 */
|
1748 2885 | impl RecursiveShapesInput {
|
1749 - | /// Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
2886 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
2887 + | /* ServerBuilderGenerator.kt:295 */
|
1750 2888 | pub fn builder() -> crate::input::recursive_shapes_input::Builder {
|
2889 + | /* ServerBuilderGenerator.kt:296 */
|
1751 2890 | crate::input::recursive_shapes_input::Builder::default()
|
2891 + | /* ServerBuilderGenerator.kt:295 */
|
1752 2892 | }
|
2893 + | /* ServerCodegenVisitor.kt:356 */
|
1753 2894 | }
|
2895 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1754 2896 | impl crate::constrained::Constrained for crate::input::RecursiveShapesInput {
|
1755 2897 | type Unconstrained = crate::input::recursive_shapes_input::Builder;
|
1756 2898 | }
|
1757 2899 |
|
2900 + | /* StructureGenerator.kt:197 */
|
1758 2901 | #[allow(missing_docs)] // documentation missing in model
|
2902 + | /* RustType.kt:534 */
|
1759 2903 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1760 - | pub struct JsonIntEnumsInput {
|
2904 + | pub /* StructureGenerator.kt:201 */ struct JsonIntEnumsInput {
|
2905 + | /* StructureGenerator.kt:231 */
|
1761 2906 | #[allow(missing_docs)] // documentation missing in model
|
1762 2907 | pub integer_enum1: ::std::option::Option<i32>,
|
2908 + | /* StructureGenerator.kt:231 */
|
1763 2909 | #[allow(missing_docs)] // documentation missing in model
|
1764 2910 | pub integer_enum2: ::std::option::Option<i32>,
|
2911 + | /* StructureGenerator.kt:231 */
|
1765 2912 | #[allow(missing_docs)] // documentation missing in model
|
1766 2913 | pub integer_enum3: ::std::option::Option<i32>,
|
2914 + | /* StructureGenerator.kt:231 */
|
1767 2915 | #[allow(missing_docs)] // documentation missing in model
|
1768 2916 | pub integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
2917 + | /* StructureGenerator.kt:231 */
|
1769 2918 | #[allow(missing_docs)] // documentation missing in model
|
1770 2919 | pub integer_enum_set: ::std::option::Option<crate::model::IntegerEnumSet>,
|
2920 + | /* StructureGenerator.kt:231 */
|
1771 2921 | #[allow(missing_docs)] // documentation missing in model
|
1772 2922 | pub integer_enum_map:
|
1773 2923 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
2924 + | /* StructureGenerator.kt:201 */
|
1774 2925 | }
|
2926 + | /* StructureGenerator.kt:135 */
|
1775 2927 | impl JsonIntEnumsInput {
|
2928 + | /* StructureGenerator.kt:231 */
|
1776 2929 | #[allow(missing_docs)] // documentation missing in model
|
2930 + | /* StructureGenerator.kt:166 */
|
1777 2931 | pub fn integer_enum1(&self) -> ::std::option::Option<i32> {
|
2932 + | /* StructureGenerator.kt:168 */
|
1778 2933 | self.integer_enum1
|
2934 + | /* StructureGenerator.kt:166 */
|
1779 2935 | }
|
2936 + | /* StructureGenerator.kt:231 */
|
1780 2937 | #[allow(missing_docs)] // documentation missing in model
|
2938 + | /* StructureGenerator.kt:166 */
|
1781 2939 | pub fn integer_enum2(&self) -> ::std::option::Option<i32> {
|
2940 + | /* StructureGenerator.kt:168 */
|
1782 2941 | self.integer_enum2
|
2942 + | /* StructureGenerator.kt:166 */
|
1783 2943 | }
|
2944 + | /* StructureGenerator.kt:231 */
|
1784 2945 | #[allow(missing_docs)] // documentation missing in model
|
2946 + | /* StructureGenerator.kt:166 */
|
1785 2947 | pub fn integer_enum3(&self) -> ::std::option::Option<i32> {
|
2948 + | /* StructureGenerator.kt:168 */
|
1786 2949 | self.integer_enum3
|
2950 + | /* StructureGenerator.kt:166 */
|
1787 2951 | }
|
2952 + | /* StructureGenerator.kt:231 */
|
1788 2953 | #[allow(missing_docs)] // documentation missing in model
|
2954 + | /* StructureGenerator.kt:166 */
|
1789 2955 | pub fn integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
2956 + | /* StructureGenerator.kt:169 */
|
1790 2957 | self.integer_enum_list.as_deref()
|
2958 + | /* StructureGenerator.kt:166 */
|
1791 2959 | }
|
2960 + | /* StructureGenerator.kt:231 */
|
1792 2961 | #[allow(missing_docs)] // documentation missing in model
|
2962 + | /* StructureGenerator.kt:166 */
|
1793 2963 | pub fn integer_enum_set(&self) -> ::std::option::Option<&crate::model::IntegerEnumSet> {
|
2964 + | /* StructureGenerator.kt:170 */
|
1794 2965 | self.integer_enum_set.as_ref()
|
2966 + | /* StructureGenerator.kt:166 */
|
1795 2967 | }
|
2968 + | /* StructureGenerator.kt:231 */
|
1796 2969 | #[allow(missing_docs)] // documentation missing in model
|
2970 + | /* StructureGenerator.kt:166 */
|
1797 2971 | pub fn integer_enum_map(
|
1798 2972 | &self,
|
1799 2973 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i32>> {
|
2974 + | /* StructureGenerator.kt:170 */
|
1800 2975 | self.integer_enum_map.as_ref()
|
2976 + | /* StructureGenerator.kt:166 */
|
1801 2977 | }
|
2978 + | /* StructureGenerator.kt:135 */
|
1802 2979 | }
|
2980 + | /* ServerCodegenVisitor.kt:356 */
|
1803 2981 | impl JsonIntEnumsInput {
|
1804 - | /// Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
2982 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
2983 + | /* ServerBuilderGenerator.kt:295 */
|
1805 2984 | pub fn builder() -> crate::input::json_int_enums_input::Builder {
|
2985 + | /* ServerBuilderGenerator.kt:296 */
|
1806 2986 | crate::input::json_int_enums_input::Builder::default()
|
2987 + | /* ServerBuilderGenerator.kt:295 */
|
1807 2988 | }
|
2989 + | /* ServerCodegenVisitor.kt:356 */
|
1808 2990 | }
|
2991 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1809 2992 | impl crate::constrained::Constrained for crate::input::JsonIntEnumsInput {
|
1810 2993 | type Unconstrained = crate::input::json_int_enums_input::Builder;
|
1811 2994 | }
|
1812 2995 |
|
2996 + | /* StructureGenerator.kt:197 */
|
1813 2997 | #[allow(missing_docs)] // documentation missing in model
|
2998 + | /* RustType.kt:534 */
|
1814 2999 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1815 - | pub struct JsonEnumsInput {
|
3000 + | pub /* StructureGenerator.kt:201 */ struct JsonEnumsInput {
|
3001 + | /* StructureGenerator.kt:231 */
|
1816 3002 | #[allow(missing_docs)] // documentation missing in model
|
1817 3003 | pub foo_enum1: ::std::option::Option<crate::model::FooEnum>,
|
3004 + | /* StructureGenerator.kt:231 */
|
1818 3005 | #[allow(missing_docs)] // documentation missing in model
|
1819 3006 | pub foo_enum2: ::std::option::Option<crate::model::FooEnum>,
|
3007 + | /* StructureGenerator.kt:231 */
|
1820 3008 | #[allow(missing_docs)] // documentation missing in model
|
1821 3009 | pub foo_enum3: ::std::option::Option<crate::model::FooEnum>,
|
3010 + | /* StructureGenerator.kt:231 */
|
1822 3011 | #[allow(missing_docs)] // documentation missing in model
|
1823 3012 | pub foo_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
3013 + | /* StructureGenerator.kt:231 */
|
1824 3014 | #[allow(missing_docs)] // documentation missing in model
|
1825 3015 | pub foo_enum_set: ::std::option::Option<crate::model::FooEnumSet>,
|
3016 + | /* StructureGenerator.kt:231 */
|
1826 3017 | #[allow(missing_docs)] // documentation missing in model
|
1827 3018 | pub foo_enum_map: ::std::option::Option<
|
1828 3019 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
1829 3020 | >,
|
3021 + | /* StructureGenerator.kt:201 */
|
1830 3022 | }
|
3023 + | /* StructureGenerator.kt:135 */
|
1831 3024 | impl JsonEnumsInput {
|
3025 + | /* StructureGenerator.kt:231 */
|
1832 3026 | #[allow(missing_docs)] // documentation missing in model
|
3027 + | /* StructureGenerator.kt:166 */
|
1833 3028 | pub fn foo_enum1(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
3029 + | /* StructureGenerator.kt:170 */
|
1834 3030 | self.foo_enum1.as_ref()
|
3031 + | /* StructureGenerator.kt:166 */
|
1835 3032 | }
|
3033 + | /* StructureGenerator.kt:231 */
|
1836 3034 | #[allow(missing_docs)] // documentation missing in model
|
3035 + | /* StructureGenerator.kt:166 */
|
1837 3036 | pub fn foo_enum2(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
3037 + | /* StructureGenerator.kt:170 */
|
1838 3038 | self.foo_enum2.as_ref()
|
3039 + | /* StructureGenerator.kt:166 */
|
1839 3040 | }
|
3041 + | /* StructureGenerator.kt:231 */
|
1840 3042 | #[allow(missing_docs)] // documentation missing in model
|
3043 + | /* StructureGenerator.kt:166 */
|
1841 3044 | pub fn foo_enum3(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
3045 + | /* StructureGenerator.kt:170 */
|
1842 3046 | self.foo_enum3.as_ref()
|
3047 + | /* StructureGenerator.kt:166 */
|
1843 3048 | }
|
3049 + | /* StructureGenerator.kt:231 */
|
1844 3050 | #[allow(missing_docs)] // documentation missing in model
|
3051 + | /* StructureGenerator.kt:166 */
|
1845 3052 | pub fn foo_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
3053 + | /* StructureGenerator.kt:169 */
|
1846 3054 | self.foo_enum_list.as_deref()
|
3055 + | /* StructureGenerator.kt:166 */
|
1847 3056 | }
|
3057 + | /* StructureGenerator.kt:231 */
|
1848 3058 | #[allow(missing_docs)] // documentation missing in model
|
3059 + | /* StructureGenerator.kt:166 */
|
1849 3060 | pub fn foo_enum_set(&self) -> ::std::option::Option<&crate::model::FooEnumSet> {
|
3061 + | /* StructureGenerator.kt:170 */
|
1850 3062 | self.foo_enum_set.as_ref()
|
3063 + | /* StructureGenerator.kt:166 */
|
1851 3064 | }
|
3065 + | /* StructureGenerator.kt:231 */
|
1852 3066 | #[allow(missing_docs)] // documentation missing in model
|
3067 + | /* StructureGenerator.kt:166 */
|
1853 3068 | pub fn foo_enum_map(
|
1854 3069 | &self,
|
1855 3070 | ) -> ::std::option::Option<
|
1856 3071 | &::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
1857 3072 | > {
|
3073 + | /* StructureGenerator.kt:170 */
|
1858 3074 | self.foo_enum_map.as_ref()
|
3075 + | /* StructureGenerator.kt:166 */
|
1859 3076 | }
|
3077 + | /* StructureGenerator.kt:135 */
|
1860 3078 | }
|
3079 + | /* ServerCodegenVisitor.kt:356 */
|
1861 3080 | impl JsonEnumsInput {
|
1862 - | /// Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
3081 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
3082 + | /* ServerBuilderGenerator.kt:295 */
|
1863 3083 | pub fn builder() -> crate::input::json_enums_input::Builder {
|
3084 + | /* ServerBuilderGenerator.kt:296 */
|
1864 3085 | crate::input::json_enums_input::Builder::default()
|
3086 + | /* ServerBuilderGenerator.kt:295 */
|
1865 3087 | }
|
3088 + | /* ServerCodegenVisitor.kt:356 */
|
1866 3089 | }
|
3090 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1867 3091 | impl crate::constrained::Constrained for crate::input::JsonEnumsInput {
|
1868 3092 | type Unconstrained = crate::input::json_enums_input::Builder;
|
1869 3093 | }
|
1870 3094 |
|
3095 + | /* StructureGenerator.kt:197 */
|
1871 3096 | #[allow(missing_docs)] // documentation missing in model
|
3097 + | /* RustType.kt:534 */
|
1872 3098 | #[derive(
|
1873 3099 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1874 3100 | )]
|
1875 - | pub struct JsonTimestampsInput {
|
3101 + | pub /* StructureGenerator.kt:201 */ struct JsonTimestampsInput {
|
3102 + | /* StructureGenerator.kt:231 */
|
1876 3103 | #[allow(missing_docs)] // documentation missing in model
|
1877 3104 | pub normal: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3105 + | /* StructureGenerator.kt:231 */
|
1878 3106 | #[allow(missing_docs)] // documentation missing in model
|
1879 3107 | pub date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3108 + | /* StructureGenerator.kt:231 */
|
1880 3109 | #[allow(missing_docs)] // documentation missing in model
|
1881 3110 | pub date_time_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3111 + | /* StructureGenerator.kt:231 */
|
1882 3112 | #[allow(missing_docs)] // documentation missing in model
|
1883 3113 | pub epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3114 + | /* StructureGenerator.kt:231 */
|
1884 3115 | #[allow(missing_docs)] // documentation missing in model
|
1885 3116 | pub epoch_seconds_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3117 + | /* StructureGenerator.kt:231 */
|
1886 3118 | #[allow(missing_docs)] // documentation missing in model
|
1887 3119 | pub http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3120 + | /* StructureGenerator.kt:231 */
|
1888 3121 | #[allow(missing_docs)] // documentation missing in model
|
1889 3122 | pub http_date_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
3123 + | /* StructureGenerator.kt:201 */
|
1890 3124 | }
|
3125 + | /* StructureGenerator.kt:135 */
|
1891 3126 | impl JsonTimestampsInput {
|
3127 + | /* StructureGenerator.kt:231 */
|
1892 3128 | #[allow(missing_docs)] // documentation missing in model
|
3129 + | /* StructureGenerator.kt:166 */
|
1893 3130 | pub fn normal(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3131 + | /* StructureGenerator.kt:170 */
|
1894 3132 | self.normal.as_ref()
|
3133 + | /* StructureGenerator.kt:166 */
|
1895 3134 | }
|
3135 + | /* StructureGenerator.kt:231 */
|
1896 3136 | #[allow(missing_docs)] // documentation missing in model
|
3137 + | /* StructureGenerator.kt:166 */
|
1897 3138 | pub fn date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3139 + | /* StructureGenerator.kt:170 */
|
1898 3140 | self.date_time.as_ref()
|
3141 + | /* StructureGenerator.kt:166 */
|
1899 3142 | }
|
3143 + | /* StructureGenerator.kt:231 */
|
1900 3144 | #[allow(missing_docs)] // documentation missing in model
|
3145 + | /* StructureGenerator.kt:166 */
|
1901 3146 | pub fn date_time_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3147 + | /* StructureGenerator.kt:170 */
|
1902 3148 | self.date_time_on_target.as_ref()
|
3149 + | /* StructureGenerator.kt:166 */
|
1903 3150 | }
|
3151 + | /* StructureGenerator.kt:231 */
|
1904 3152 | #[allow(missing_docs)] // documentation missing in model
|
3153 + | /* StructureGenerator.kt:166 */
|
1905 3154 | pub fn epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3155 + | /* StructureGenerator.kt:170 */
|
1906 3156 | self.epoch_seconds.as_ref()
|
3157 + | /* StructureGenerator.kt:166 */
|
1907 3158 | }
|
3159 + | /* StructureGenerator.kt:231 */
|
1908 3160 | #[allow(missing_docs)] // documentation missing in model
|
3161 + | /* StructureGenerator.kt:166 */
|
1909 3162 | pub fn epoch_seconds_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3163 + | /* StructureGenerator.kt:170 */
|
1910 3164 | self.epoch_seconds_on_target.as_ref()
|
3165 + | /* StructureGenerator.kt:166 */
|
1911 3166 | }
|
3167 + | /* StructureGenerator.kt:231 */
|
1912 3168 | #[allow(missing_docs)] // documentation missing in model
|
3169 + | /* StructureGenerator.kt:166 */
|
1913 3170 | pub fn http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3171 + | /* StructureGenerator.kt:170 */
|
1914 3172 | self.http_date.as_ref()
|
3173 + | /* StructureGenerator.kt:166 */
|
1915 3174 | }
|
3175 + | /* StructureGenerator.kt:231 */
|
1916 3176 | #[allow(missing_docs)] // documentation missing in model
|
3177 + | /* StructureGenerator.kt:166 */
|
1917 3178 | pub fn http_date_on_target(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
3179 + | /* StructureGenerator.kt:170 */
|
1918 3180 | self.http_date_on_target.as_ref()
|
3181 + | /* StructureGenerator.kt:166 */
|
1919 3182 | }
|
3183 + | /* StructureGenerator.kt:135 */
|
1920 3184 | }
|
3185 + | /* ServerCodegenVisitor.kt:356 */
|
1921 3186 | impl JsonTimestampsInput {
|
1922 - | /// Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
3187 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
3188 + | /* ServerBuilderGenerator.kt:295 */
|
1923 3189 | pub fn builder() -> crate::input::json_timestamps_input::Builder {
|
3190 + | /* ServerBuilderGenerator.kt:296 */
|
1924 3191 | crate::input::json_timestamps_input::Builder::default()
|
3192 + | /* ServerBuilderGenerator.kt:295 */
|
1925 3193 | }
|
3194 + | /* ServerCodegenVisitor.kt:356 */
|
1926 3195 | }
|
3196 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
1927 3197 | impl crate::constrained::Constrained for crate::input::JsonTimestampsInput {
|
1928 3198 | type Unconstrained = crate::input::json_timestamps_input::Builder;
|
1929 3199 | }
|
1930 3200 |
|
3201 + | /* StructureGenerator.kt:197 */
|
1931 3202 | #[allow(missing_docs)] // documentation missing in model
|
3203 + | /* RustType.kt:534 */
|
1932 3204 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1933 - | pub struct SimpleScalarPropertiesInput {
|
3205 + | pub /* StructureGenerator.kt:201 */ struct SimpleScalarPropertiesInput {
|
3206 + | /* StructureGenerator.kt:231 */
|
1934 3207 | #[allow(missing_docs)] // documentation missing in model
|
1935 3208 | pub foo: ::std::option::Option<::std::string::String>,
|
3209 + | /* StructureGenerator.kt:231 */
|
1936 3210 | #[allow(missing_docs)] // documentation missing in model
|
1937 3211 | pub string_value: ::std::option::Option<::std::string::String>,
|
3212 + | /* StructureGenerator.kt:231 */
|
1938 3213 | #[allow(missing_docs)] // documentation missing in model
|
1939 3214 | pub true_boolean_value: ::std::option::Option<bool>,
|
3215 + | /* StructureGenerator.kt:231 */
|
1940 3216 | #[allow(missing_docs)] // documentation missing in model
|
1941 3217 | pub false_boolean_value: ::std::option::Option<bool>,
|
3218 + | /* StructureGenerator.kt:231 */
|
1942 3219 | #[allow(missing_docs)] // documentation missing in model
|
1943 3220 | pub byte_value: ::std::option::Option<i8>,
|
3221 + | /* StructureGenerator.kt:231 */
|
1944 3222 | #[allow(missing_docs)] // documentation missing in model
|
1945 3223 | pub short_value: ::std::option::Option<i16>,
|
3224 + | /* StructureGenerator.kt:231 */
|
1946 3225 | #[allow(missing_docs)] // documentation missing in model
|
1947 3226 | pub integer_value: ::std::option::Option<i32>,
|
3227 + | /* StructureGenerator.kt:231 */
|
1948 3228 | #[allow(missing_docs)] // documentation missing in model
|
1949 3229 | pub long_value: ::std::option::Option<i64>,
|
3230 + | /* StructureGenerator.kt:231 */
|
1950 3231 | #[allow(missing_docs)] // documentation missing in model
|
1951 3232 | pub float_value: ::std::option::Option<f32>,
|
3233 + | /* StructureGenerator.kt:231 */
|
1952 3234 | #[allow(missing_docs)] // documentation missing in model
|
1953 3235 | pub double_value: ::std::option::Option<f64>,
|
3236 + | /* StructureGenerator.kt:201 */
|
1954 3237 | }
|
3238 + | /* StructureGenerator.kt:135 */
|
1955 3239 | impl SimpleScalarPropertiesInput {
|
3240 + | /* StructureGenerator.kt:231 */
|
1956 3241 | #[allow(missing_docs)] // documentation missing in model
|
3242 + | /* StructureGenerator.kt:166 */
|
1957 3243 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3244 + | /* StructureGenerator.kt:169 */
|
1958 3245 | self.foo.as_deref()
|
3246 + | /* StructureGenerator.kt:166 */
|
1959 3247 | }
|
3248 + | /* StructureGenerator.kt:231 */
|
1960 3249 | #[allow(missing_docs)] // documentation missing in model
|
3250 + | /* StructureGenerator.kt:166 */
|
1961 3251 | pub fn string_value(&self) -> ::std::option::Option<&str> {
|
3252 + | /* StructureGenerator.kt:169 */
|
1962 3253 | self.string_value.as_deref()
|
3254 + | /* StructureGenerator.kt:166 */
|
1963 3255 | }
|
3256 + | /* StructureGenerator.kt:231 */
|
1964 3257 | #[allow(missing_docs)] // documentation missing in model
|
3258 + | /* StructureGenerator.kt:166 */
|
1965 3259 | pub fn true_boolean_value(&self) -> ::std::option::Option<bool> {
|
3260 + | /* StructureGenerator.kt:168 */
|
1966 3261 | self.true_boolean_value
|
3262 + | /* StructureGenerator.kt:166 */
|
1967 3263 | }
|
3264 + | /* StructureGenerator.kt:231 */
|
1968 3265 | #[allow(missing_docs)] // documentation missing in model
|
3266 + | /* StructureGenerator.kt:166 */
|
1969 3267 | pub fn false_boolean_value(&self) -> ::std::option::Option<bool> {
|
3268 + | /* StructureGenerator.kt:168 */
|
1970 3269 | self.false_boolean_value
|
3270 + | /* StructureGenerator.kt:166 */
|
1971 3271 | }
|
3272 + | /* StructureGenerator.kt:231 */
|
1972 3273 | #[allow(missing_docs)] // documentation missing in model
|
3274 + | /* StructureGenerator.kt:166 */
|
1973 3275 | pub fn byte_value(&self) -> ::std::option::Option<i8> {
|
3276 + | /* StructureGenerator.kt:168 */
|
1974 3277 | self.byte_value
|
3278 + | /* StructureGenerator.kt:166 */
|
1975 3279 | }
|
3280 + | /* StructureGenerator.kt:231 */
|
1976 3281 | #[allow(missing_docs)] // documentation missing in model
|
3282 + | /* StructureGenerator.kt:166 */
|
1977 3283 | pub fn short_value(&self) -> ::std::option::Option<i16> {
|
3284 + | /* StructureGenerator.kt:168 */
|
1978 3285 | self.short_value
|
3286 + | /* StructureGenerator.kt:166 */
|
1979 3287 | }
|
3288 + | /* StructureGenerator.kt:231 */
|
1980 3289 | #[allow(missing_docs)] // documentation missing in model
|
3290 + | /* StructureGenerator.kt:166 */
|
1981 3291 | pub fn integer_value(&self) -> ::std::option::Option<i32> {
|
3292 + | /* StructureGenerator.kt:168 */
|
1982 3293 | self.integer_value
|
3294 + | /* StructureGenerator.kt:166 */
|
1983 3295 | }
|
3296 + | /* StructureGenerator.kt:231 */
|
1984 3297 | #[allow(missing_docs)] // documentation missing in model
|
3298 + | /* StructureGenerator.kt:166 */
|
1985 3299 | pub fn long_value(&self) -> ::std::option::Option<i64> {
|
3300 + | /* StructureGenerator.kt:168 */
|
1986 3301 | self.long_value
|
3302 + | /* StructureGenerator.kt:166 */
|
1987 3303 | }
|
3304 + | /* StructureGenerator.kt:231 */
|
1988 3305 | #[allow(missing_docs)] // documentation missing in model
|
3306 + | /* StructureGenerator.kt:166 */
|
1989 3307 | pub fn float_value(&self) -> ::std::option::Option<f32> {
|
3308 + | /* StructureGenerator.kt:168 */
|
1990 3309 | self.float_value
|
3310 + | /* StructureGenerator.kt:166 */
|
1991 3311 | }
|
3312 + | /* StructureGenerator.kt:231 */
|
1992 3313 | #[allow(missing_docs)] // documentation missing in model
|
3314 + | /* StructureGenerator.kt:166 */
|
1993 3315 | pub fn double_value(&self) -> ::std::option::Option<f64> {
|
3316 + | /* StructureGenerator.kt:168 */
|
1994 3317 | self.double_value
|
3318 + | /* StructureGenerator.kt:166 */
|
1995 3319 | }
|
3320 + | /* StructureGenerator.kt:135 */
|
1996 3321 | }
|
3322 + | /* ServerCodegenVisitor.kt:356 */
|
1997 3323 | impl SimpleScalarPropertiesInput {
|
1998 - | /// Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
3324 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
3325 + | /* ServerBuilderGenerator.kt:295 */
|
1999 3326 | pub fn builder() -> crate::input::simple_scalar_properties_input::Builder {
|
3327 + | /* ServerBuilderGenerator.kt:296 */
|
2000 3328 | crate::input::simple_scalar_properties_input::Builder::default()
|
3329 + | /* ServerBuilderGenerator.kt:295 */
|
2001 3330 | }
|
3331 + | /* ServerCodegenVisitor.kt:356 */
|
2002 3332 | }
|
3333 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2003 3334 | impl crate::constrained::Constrained for crate::input::SimpleScalarPropertiesInput {
|
2004 3335 | type Unconstrained = crate::input::simple_scalar_properties_input::Builder;
|
2005 3336 | }
|
2006 3337 |
|
3338 + | /* StructureGenerator.kt:197 */
|
2007 3339 | #[allow(missing_docs)] // documentation missing in model
|
3340 + | /* RustType.kt:534 */
|
2008 3341 | #[derive(
|
2009 3342 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2010 3343 | )]
|
2011 - | pub struct GreetingWithErrorsInput {}
|
3344 + | pub /* StructureGenerator.kt:201 */ struct GreetingWithErrorsInput {/* StructureGenerator.kt:201 */}
|
3345 + | /* ServerCodegenVisitor.kt:356 */
|
2012 3346 | impl GreetingWithErrorsInput {
|
2013 - | /// Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
3347 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
3348 + | /* ServerBuilderGenerator.kt:295 */
|
2014 3349 | pub fn builder() -> crate::input::greeting_with_errors_input::Builder {
|
3350 + | /* ServerBuilderGenerator.kt:296 */
|
2015 3351 | crate::input::greeting_with_errors_input::Builder::default()
|
3352 + | /* ServerBuilderGenerator.kt:295 */
|
2016 3353 | }
|
3354 + | /* ServerCodegenVisitor.kt:356 */
|
2017 3355 | }
|
3356 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2018 3357 | impl crate::constrained::Constrained for crate::input::GreetingWithErrorsInput {
|
2019 3358 | type Unconstrained = crate::input::greeting_with_errors_input::Builder;
|
2020 3359 | }
|
2021 3360 |
|
3361 + | /* StructureGenerator.kt:197 */
|
2022 3362 | #[allow(missing_docs)] // documentation missing in model
|
3363 + | /* RustType.kt:534 */
|
2023 3364 | #[derive(::std::fmt::Debug)]
|
2024 - | pub struct StreamingTraitsWithMediaTypeInput {
|
3365 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsWithMediaTypeInput {
|
3366 + | /* StructureGenerator.kt:231 */
|
2025 3367 | #[allow(missing_docs)] // documentation missing in model
|
2026 3368 | pub foo: ::std::option::Option<::std::string::String>,
|
3369 + | /* StructureGenerator.kt:231 */
|
2027 3370 | #[allow(missing_docs)] // documentation missing in model
|
2028 3371 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3372 + | /* StructureGenerator.kt:201 */
|
2029 3373 | }
|
3374 + | /* StructureGenerator.kt:135 */
|
2030 3375 | impl StreamingTraitsWithMediaTypeInput {
|
3376 + | /* StructureGenerator.kt:231 */
|
2031 3377 | #[allow(missing_docs)] // documentation missing in model
|
3378 + | /* StructureGenerator.kt:166 */
|
2032 3379 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3380 + | /* StructureGenerator.kt:169 */
|
2033 3381 | self.foo.as_deref()
|
3382 + | /* StructureGenerator.kt:166 */
|
2034 3383 | }
|
3384 + | /* StructureGenerator.kt:231 */
|
2035 3385 | #[allow(missing_docs)] // documentation missing in model
|
3386 + | /* StructureGenerator.kt:166 */
|
2036 3387 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3388 + | /* StructureGenerator.kt:172 */
|
2037 3389 | &self.blob
|
3390 + | /* StructureGenerator.kt:166 */
|
2038 3391 | }
|
3392 + | /* StructureGenerator.kt:135 */
|
2039 3393 | }
|
3394 + | /* ServerCodegenVisitor.kt:356 */
|
2040 3395 | impl StreamingTraitsWithMediaTypeInput {
|
2041 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
3396 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
3397 + | /* ServerBuilderGenerator.kt:295 */
|
2042 3398 | pub fn builder() -> crate::input::streaming_traits_with_media_type_input::Builder {
|
3399 + | /* ServerBuilderGenerator.kt:296 */
|
2043 3400 | crate::input::streaming_traits_with_media_type_input::Builder::default()
|
3401 + | /* ServerBuilderGenerator.kt:295 */
|
2044 3402 | }
|
3403 + | /* ServerCodegenVisitor.kt:356 */
|
2045 3404 | }
|
3405 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2046 3406 | impl crate::constrained::Constrained for crate::input::StreamingTraitsWithMediaTypeInput {
|
2047 3407 | type Unconstrained = crate::input::streaming_traits_with_media_type_input::Builder;
|
2048 3408 | }
|
2049 3409 |
|
3410 + | /* StructureGenerator.kt:197 */
|
2050 3411 | #[allow(missing_docs)] // documentation missing in model
|
3412 + | /* RustType.kt:534 */
|
2051 3413 | #[derive(::std::fmt::Debug)]
|
2052 - | pub struct StreamingTraitsRequireLengthInput {
|
3414 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsRequireLengthInput {
|
3415 + | /* StructureGenerator.kt:231 */
|
2053 3416 | #[allow(missing_docs)] // documentation missing in model
|
2054 3417 | pub foo: ::std::option::Option<::std::string::String>,
|
3418 + | /* StructureGenerator.kt:231 */
|
2055 3419 | #[allow(missing_docs)] // documentation missing in model
|
2056 3420 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3421 + | /* StructureGenerator.kt:201 */
|
2057 3422 | }
|
3423 + | /* StructureGenerator.kt:135 */
|
2058 3424 | impl StreamingTraitsRequireLengthInput {
|
3425 + | /* StructureGenerator.kt:231 */
|
2059 3426 | #[allow(missing_docs)] // documentation missing in model
|
3427 + | /* StructureGenerator.kt:166 */
|
2060 3428 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3429 + | /* StructureGenerator.kt:169 */
|
2061 3430 | self.foo.as_deref()
|
3431 + | /* StructureGenerator.kt:166 */
|
2062 3432 | }
|
3433 + | /* StructureGenerator.kt:231 */
|
2063 3434 | #[allow(missing_docs)] // documentation missing in model
|
3435 + | /* StructureGenerator.kt:166 */
|
2064 3436 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3437 + | /* StructureGenerator.kt:172 */
|
2065 3438 | &self.blob
|
3439 + | /* StructureGenerator.kt:166 */
|
2066 3440 | }
|
3441 + | /* StructureGenerator.kt:135 */
|
2067 3442 | }
|
3443 + | /* ServerCodegenVisitor.kt:356 */
|
2068 3444 | impl StreamingTraitsRequireLengthInput {
|
2069 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
3445 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
3446 + | /* ServerBuilderGenerator.kt:295 */
|
2070 3447 | pub fn builder() -> crate::input::streaming_traits_require_length_input::Builder {
|
3448 + | /* ServerBuilderGenerator.kt:296 */
|
2071 3449 | crate::input::streaming_traits_require_length_input::Builder::default()
|
3450 + | /* ServerBuilderGenerator.kt:295 */
|
2072 3451 | }
|
3452 + | /* ServerCodegenVisitor.kt:356 */
|
2073 3453 | }
|
3454 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2074 3455 | impl crate::constrained::Constrained for crate::input::StreamingTraitsRequireLengthInput {
|
2075 3456 | type Unconstrained = crate::input::streaming_traits_require_length_input::Builder;
|
2076 3457 | }
|
2077 3458 |
|
3459 + | /* StructureGenerator.kt:197 */
|
2078 3460 | #[allow(missing_docs)] // documentation missing in model
|
3461 + | /* RustType.kt:534 */
|
2079 3462 | #[derive(::std::fmt::Debug)]
|
2080 - | pub struct StreamingTraitsInput {
|
3463 + | pub /* StructureGenerator.kt:201 */ struct StreamingTraitsInput {
|
3464 + | /* StructureGenerator.kt:231 */
|
2081 3465 | #[allow(missing_docs)] // documentation missing in model
|
2082 3466 | pub foo: ::std::option::Option<::std::string::String>,
|
3467 + | /* StructureGenerator.kt:231 */
|
2083 3468 | #[allow(missing_docs)] // documentation missing in model
|
2084 3469 | pub blob: ::aws_smithy_types::byte_stream::ByteStream,
|
3470 + | /* StructureGenerator.kt:201 */
|
2085 3471 | }
|
3472 + | /* StructureGenerator.kt:135 */
|
2086 3473 | impl StreamingTraitsInput {
|
3474 + | /* StructureGenerator.kt:231 */
|
2087 3475 | #[allow(missing_docs)] // documentation missing in model
|
3476 + | /* StructureGenerator.kt:166 */
|
2088 3477 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3478 + | /* StructureGenerator.kt:169 */
|
2089 3479 | self.foo.as_deref()
|
3480 + | /* StructureGenerator.kt:166 */
|
2090 3481 | }
|
3482 + | /* StructureGenerator.kt:231 */
|
2091 3483 | #[allow(missing_docs)] // documentation missing in model
|
3484 + | /* StructureGenerator.kt:166 */
|
2092 3485 | pub fn blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
3486 + | /* StructureGenerator.kt:172 */
|
2093 3487 | &self.blob
|
3488 + | /* StructureGenerator.kt:166 */
|
2094 3489 | }
|
3490 + | /* StructureGenerator.kt:135 */
|
2095 3491 | }
|
3492 + | /* ServerCodegenVisitor.kt:356 */
|
2096 3493 | impl StreamingTraitsInput {
|
2097 - | /// Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
3494 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
3495 + | /* ServerBuilderGenerator.kt:295 */
|
2098 3496 | pub fn builder() -> crate::input::streaming_traits_input::Builder {
|
3497 + | /* ServerBuilderGenerator.kt:296 */
|
2099 3498 | crate::input::streaming_traits_input::Builder::default()
|
3499 + | /* ServerBuilderGenerator.kt:295 */
|
2100 3500 | }
|
3501 + | /* ServerCodegenVisitor.kt:356 */
|
2101 3502 | }
|
3503 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2102 3504 | impl crate::constrained::Constrained for crate::input::StreamingTraitsInput {
|
2103 3505 | type Unconstrained = crate::input::streaming_traits_input::Builder;
|
2104 3506 | }
|
2105 3507 |
|
3508 + | /* StructureGenerator.kt:197 */
|
2106 3509 | #[allow(missing_docs)] // documentation missing in model
|
3510 + | /* RustType.kt:534 */
|
2107 3511 | #[derive(
|
2108 3512 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2109 3513 | )]
|
2110 - | pub struct ResponseCodeHttpFallbackInput {}
|
3514 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeHttpFallbackInput {/* StructureGenerator.kt:201 */}
|
3515 + | /* ServerCodegenVisitor.kt:356 */
|
2111 3516 | impl ResponseCodeHttpFallbackInput {
|
2112 - | /// Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
3517 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
3518 + | /* ServerBuilderGenerator.kt:295 */
|
2113 3519 | pub fn builder() -> crate::input::response_code_http_fallback_input::Builder {
|
3520 + | /* ServerBuilderGenerator.kt:296 */
|
2114 3521 | crate::input::response_code_http_fallback_input::Builder::default()
|
3522 + | /* ServerBuilderGenerator.kt:295 */
|
2115 3523 | }
|
3524 + | /* ServerCodegenVisitor.kt:356 */
|
2116 3525 | }
|
3526 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2117 3527 | impl crate::constrained::Constrained for crate::input::ResponseCodeHttpFallbackInput {
|
2118 3528 | type Unconstrained = crate::input::response_code_http_fallback_input::Builder;
|
2119 3529 | }
|
2120 3530 |
|
3531 + | /* StructureGenerator.kt:197 */
|
2121 3532 | #[allow(missing_docs)] // documentation missing in model
|
3533 + | /* RustType.kt:534 */
|
2122 3534 | #[derive(
|
2123 3535 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2124 3536 | )]
|
2125 - | pub struct ResponseCodeRequiredInput {}
|
3537 + | pub /* StructureGenerator.kt:201 */ struct ResponseCodeRequiredInput {/* StructureGenerator.kt:201 */}
|
3538 + | /* ServerCodegenVisitor.kt:356 */
|
2126 3539 | impl ResponseCodeRequiredInput {
|
2127 - | /// Creates a new builder-style object to manufacture [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
3540 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
3541 + | /* ServerBuilderGenerator.kt:295 */
|
2128 3542 | pub fn builder() -> crate::input::response_code_required_input::Builder {
|
3543 + | /* ServerBuilderGenerator.kt:296 */
|
2129 3544 | crate::input::response_code_required_input::Builder::default()
|
3545 + | /* ServerBuilderGenerator.kt:295 */
|
2130 3546 | }
|
3547 + | /* ServerCodegenVisitor.kt:356 */
|
2131 3548 | }
|
3549 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2132 3550 | impl crate::constrained::Constrained for crate::input::ResponseCodeRequiredInput {
|
2133 3551 | type Unconstrained = crate::input::response_code_required_input::Builder;
|
2134 3552 | }
|
2135 3553 |
|
3554 + | /* StructureGenerator.kt:197 */
|
2136 3555 | #[allow(missing_docs)] // documentation missing in model
|
3556 + | /* RustType.kt:534 */
|
2137 3557 | #[derive(
|
2138 3558 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2139 3559 | )]
|
2140 - | pub struct HttpResponseCodeInput {}
|
3560 + | pub /* StructureGenerator.kt:201 */ struct HttpResponseCodeInput {/* StructureGenerator.kt:201 */}
|
3561 + | /* ServerCodegenVisitor.kt:356 */
|
2141 3562 | impl HttpResponseCodeInput {
|
2142 - | /// Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
3563 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
3564 + | /* ServerBuilderGenerator.kt:295 */
|
2143 3565 | pub fn builder() -> crate::input::http_response_code_input::Builder {
|
3566 + | /* ServerBuilderGenerator.kt:296 */
|
2144 3567 | crate::input::http_response_code_input::Builder::default()
|
3568 + | /* ServerBuilderGenerator.kt:295 */
|
2145 3569 | }
|
3570 + | /* ServerCodegenVisitor.kt:356 */
|
2146 3571 | }
|
3572 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2147 3573 | impl crate::constrained::Constrained for crate::input::HttpResponseCodeInput {
|
2148 3574 | type Unconstrained = crate::input::http_response_code_input::Builder;
|
2149 3575 | }
|
2150 3576 |
|
3577 + | /* StructureGenerator.kt:197 */
|
2151 3578 | #[allow(missing_docs)] // documentation missing in model
|
3579 + | /* RustType.kt:534 */
|
2152 3580 | #[derive(
|
2153 3581 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2154 3582 | )]
|
2155 - | pub struct HttpPayloadWithUnionInput {
|
3583 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithUnionInput {
|
3584 + | /* StructureGenerator.kt:231 */
|
2156 3585 | #[allow(missing_docs)] // documentation missing in model
|
2157 3586 | pub nested: ::std::option::Option<crate::model::UnionPayload>,
|
3587 + | /* StructureGenerator.kt:201 */
|
2158 3588 | }
|
3589 + | /* StructureGenerator.kt:135 */
|
2159 3590 | impl HttpPayloadWithUnionInput {
|
3591 + | /* StructureGenerator.kt:231 */
|
2160 3592 | #[allow(missing_docs)] // documentation missing in model
|
3593 + | /* StructureGenerator.kt:166 */
|
2161 3594 | pub fn nested(&self) -> ::std::option::Option<&crate::model::UnionPayload> {
|
3595 + | /* StructureGenerator.kt:170 */
|
2162 3596 | self.nested.as_ref()
|
3597 + | /* StructureGenerator.kt:166 */
|
2163 3598 | }
|
3599 + | /* StructureGenerator.kt:135 */
|
2164 3600 | }
|
3601 + | /* ServerCodegenVisitor.kt:356 */
|
2165 3602 | impl HttpPayloadWithUnionInput {
|
2166 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
3603 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
3604 + | /* ServerBuilderGenerator.kt:295 */
|
2167 3605 | pub fn builder() -> crate::input::http_payload_with_union_input::Builder {
|
3606 + | /* ServerBuilderGenerator.kt:296 */
|
2168 3607 | crate::input::http_payload_with_union_input::Builder::default()
|
3608 + | /* ServerBuilderGenerator.kt:295 */
|
2169 3609 | }
|
3610 + | /* ServerCodegenVisitor.kt:356 */
|
2170 3611 | }
|
3612 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2171 3613 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithUnionInput {
|
2172 3614 | type Unconstrained = crate::input::http_payload_with_union_input::Builder;
|
2173 3615 | }
|
2174 3616 |
|
3617 + | /* StructureGenerator.kt:197 */
|
2175 3618 | #[allow(missing_docs)] // documentation missing in model
|
3619 + | /* RustType.kt:534 */
|
2176 3620 | #[derive(
|
2177 3621 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2178 3622 | )]
|
2179 - | pub struct HttpStringPayloadInput {
|
3623 + | pub /* StructureGenerator.kt:201 */ struct HttpStringPayloadInput {
|
3624 + | /* StructureGenerator.kt:231 */
|
2180 3625 | #[allow(missing_docs)] // documentation missing in model
|
2181 3626 | pub payload: ::std::option::Option<::std::string::String>,
|
3627 + | /* StructureGenerator.kt:201 */
|
2182 3628 | }
|
3629 + | /* StructureGenerator.kt:135 */
|
2183 3630 | impl HttpStringPayloadInput {
|
3631 + | /* StructureGenerator.kt:231 */
|
2184 3632 | #[allow(missing_docs)] // documentation missing in model
|
3633 + | /* StructureGenerator.kt:166 */
|
2185 3634 | pub fn payload(&self) -> ::std::option::Option<&str> {
|
3635 + | /* StructureGenerator.kt:169 */
|
2186 3636 | self.payload.as_deref()
|
3637 + | /* StructureGenerator.kt:166 */
|
2187 3638 | }
|
3639 + | /* StructureGenerator.kt:135 */
|
2188 3640 | }
|
3641 + | /* ServerCodegenVisitor.kt:356 */
|
2189 3642 | impl HttpStringPayloadInput {
|
2190 - | /// Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
3643 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
3644 + | /* ServerBuilderGenerator.kt:295 */
|
2191 3645 | pub fn builder() -> crate::input::http_string_payload_input::Builder {
|
3646 + | /* ServerBuilderGenerator.kt:296 */
|
2192 3647 | crate::input::http_string_payload_input::Builder::default()
|
3648 + | /* ServerBuilderGenerator.kt:295 */
|
2193 3649 | }
|
3650 + | /* ServerCodegenVisitor.kt:356 */
|
2194 3651 | }
|
3652 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2195 3653 | impl crate::constrained::Constrained for crate::input::HttpStringPayloadInput {
|
2196 3654 | type Unconstrained = crate::input::http_string_payload_input::Builder;
|
2197 3655 | }
|
2198 3656 |
|
3657 + | /* StructureGenerator.kt:197 */
|
2199 3658 | #[allow(missing_docs)] // documentation missing in model
|
3659 + | /* RustType.kt:534 */
|
2200 3660 | #[derive(
|
2201 3661 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2202 3662 | )]
|
2203 - | pub struct HttpEnumPayloadInput {
|
3663 + | pub /* StructureGenerator.kt:201 */ struct HttpEnumPayloadInput {
|
3664 + | /* StructureGenerator.kt:231 */
|
2204 3665 | #[allow(missing_docs)] // documentation missing in model
|
2205 3666 | pub payload: ::std::option::Option<crate::model::StringEnum>,
|
3667 + | /* StructureGenerator.kt:201 */
|
2206 3668 | }
|
3669 + | /* StructureGenerator.kt:135 */
|
2207 3670 | impl HttpEnumPayloadInput {
|
3671 + | /* StructureGenerator.kt:231 */
|
2208 3672 | #[allow(missing_docs)] // documentation missing in model
|
3673 + | /* StructureGenerator.kt:166 */
|
2209 3674 | pub fn payload(&self) -> ::std::option::Option<&crate::model::StringEnum> {
|
3675 + | /* StructureGenerator.kt:170 */
|
2210 3676 | self.payload.as_ref()
|
3677 + | /* StructureGenerator.kt:166 */
|
2211 3678 | }
|
3679 + | /* StructureGenerator.kt:135 */
|
2212 3680 | }
|
3681 + | /* ServerCodegenVisitor.kt:356 */
|
2213 3682 | impl HttpEnumPayloadInput {
|
2214 - | /// Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
3683 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
3684 + | /* ServerBuilderGenerator.kt:295 */
|
2215 3685 | pub fn builder() -> crate::input::http_enum_payload_input::Builder {
|
3686 + | /* ServerBuilderGenerator.kt:296 */
|
2216 3687 | crate::input::http_enum_payload_input::Builder::default()
|
3688 + | /* ServerBuilderGenerator.kt:295 */
|
2217 3689 | }
|
3690 + | /* ServerCodegenVisitor.kt:356 */
|
2218 3691 | }
|
3692 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2219 3693 | impl crate::constrained::Constrained for crate::input::HttpEnumPayloadInput {
|
2220 3694 | type Unconstrained = crate::input::http_enum_payload_input::Builder;
|
2221 3695 | }
|
2222 3696 |
|
3697 + | /* StructureGenerator.kt:197 */
|
2223 3698 | #[allow(missing_docs)] // documentation missing in model
|
3699 + | /* RustType.kt:534 */
|
2224 3700 | #[derive(
|
2225 3701 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2226 3702 | )]
|
2227 - | pub struct HttpPayloadWithStructureInput {
|
3703 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadWithStructureInput {
|
3704 + | /* StructureGenerator.kt:231 */
|
2228 3705 | #[allow(missing_docs)] // documentation missing in model
|
2229 3706 | pub nested: ::std::option::Option<crate::model::NestedPayload>,
|
3707 + | /* StructureGenerator.kt:201 */
|
2230 3708 | }
|
3709 + | /* StructureGenerator.kt:135 */
|
2231 3710 | impl HttpPayloadWithStructureInput {
|
3711 + | /* StructureGenerator.kt:231 */
|
2232 3712 | #[allow(missing_docs)] // documentation missing in model
|
3713 + | /* StructureGenerator.kt:166 */
|
2233 3714 | pub fn nested(&self) -> ::std::option::Option<&crate::model::NestedPayload> {
|
3715 + | /* StructureGenerator.kt:170 */
|
2234 3716 | self.nested.as_ref()
|
3717 + | /* StructureGenerator.kt:166 */
|
2235 3718 | }
|
3719 + | /* StructureGenerator.kt:135 */
|
2236 3720 | }
|
3721 + | /* ServerCodegenVisitor.kt:356 */
|
2237 3722 | impl HttpPayloadWithStructureInput {
|
2238 - | /// Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
3723 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
3724 + | /* ServerBuilderGenerator.kt:295 */
|
2239 3725 | pub fn builder() -> crate::input::http_payload_with_structure_input::Builder {
|
3726 + | /* ServerBuilderGenerator.kt:296 */
|
2240 3727 | crate::input::http_payload_with_structure_input::Builder::default()
|
3728 + | /* ServerBuilderGenerator.kt:295 */
|
2241 3729 | }
|
3730 + | /* ServerCodegenVisitor.kt:356 */
|
2242 3731 | }
|
3732 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2243 3733 | impl crate::constrained::Constrained for crate::input::HttpPayloadWithStructureInput {
|
2244 3734 | type Unconstrained = crate::input::http_payload_with_structure_input::Builder;
|
2245 3735 | }
|
2246 3736 |
|
3737 + | /* StructureGenerator.kt:197 */
|
2247 3738 | #[allow(missing_docs)] // documentation missing in model
|
3739 + | /* RustType.kt:534 */
|
2248 3740 | #[derive(
|
2249 3741 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2250 3742 | )]
|
2251 - | pub struct HttpPayloadTraitsWithMediaTypeInput {
|
3743 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsWithMediaTypeInput {
|
3744 + | /* StructureGenerator.kt:231 */
|
2252 3745 | #[allow(missing_docs)] // documentation missing in model
|
2253 3746 | pub foo: ::std::option::Option<::std::string::String>,
|
3747 + | /* StructureGenerator.kt:231 */
|
2254 3748 | #[allow(missing_docs)] // documentation missing in model
|
2255 3749 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
3750 + | /* StructureGenerator.kt:201 */
|
2256 3751 | }
|
3752 + | /* StructureGenerator.kt:135 */
|
2257 3753 | impl HttpPayloadTraitsWithMediaTypeInput {
|
3754 + | /* StructureGenerator.kt:231 */
|
2258 3755 | #[allow(missing_docs)] // documentation missing in model
|
3756 + | /* StructureGenerator.kt:166 */
|
2259 3757 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3758 + | /* StructureGenerator.kt:169 */
|
2260 3759 | self.foo.as_deref()
|
3760 + | /* StructureGenerator.kt:166 */
|
2261 3761 | }
|
3762 + | /* StructureGenerator.kt:231 */
|
2262 3763 | #[allow(missing_docs)] // documentation missing in model
|
3764 + | /* StructureGenerator.kt:166 */
|
2263 3765 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
3766 + | /* StructureGenerator.kt:170 */
|
2264 3767 | self.blob.as_ref()
|
3768 + | /* StructureGenerator.kt:166 */
|
2265 3769 | }
|
3770 + | /* StructureGenerator.kt:135 */
|
2266 3771 | }
|
3772 + | /* ServerCodegenVisitor.kt:356 */
|
2267 3773 | impl HttpPayloadTraitsWithMediaTypeInput {
|
2268 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
3774 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
3775 + | /* ServerBuilderGenerator.kt:295 */
|
2269 3776 | pub fn builder() -> crate::input::http_payload_traits_with_media_type_input::Builder {
|
3777 + | /* ServerBuilderGenerator.kt:296 */
|
2270 3778 | crate::input::http_payload_traits_with_media_type_input::Builder::default()
|
3779 + | /* ServerBuilderGenerator.kt:295 */
|
2271 3780 | }
|
3781 + | /* ServerCodegenVisitor.kt:356 */
|
2272 3782 | }
|
3783 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2273 3784 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
2274 3785 | type Unconstrained = crate::input::http_payload_traits_with_media_type_input::Builder;
|
2275 3786 | }
|
2276 3787 |
|
3788 + | /* StructureGenerator.kt:197 */
|
2277 3789 | #[allow(missing_docs)] // documentation missing in model
|
3790 + | /* RustType.kt:534 */
|
2278 3791 | #[derive(
|
2279 3792 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2280 3793 | )]
|
2281 - | pub struct HttpPayloadTraitsInput {
|
3794 + | pub /* StructureGenerator.kt:201 */ struct HttpPayloadTraitsInput {
|
3795 + | /* StructureGenerator.kt:231 */
|
2282 3796 | #[allow(missing_docs)] // documentation missing in model
|
2283 3797 | pub foo: ::std::option::Option<::std::string::String>,
|
3798 + | /* StructureGenerator.kt:231 */
|
2284 3799 | #[allow(missing_docs)] // documentation missing in model
|
2285 3800 | pub blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
3801 + | /* StructureGenerator.kt:201 */
|
2286 3802 | }
|
3803 + | /* StructureGenerator.kt:135 */
|
2287 3804 | impl HttpPayloadTraitsInput {
|
3805 + | /* StructureGenerator.kt:231 */
|
2288 3806 | #[allow(missing_docs)] // documentation missing in model
|
3807 + | /* StructureGenerator.kt:166 */
|
2289 3808 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3809 + | /* StructureGenerator.kt:169 */
|
2290 3810 | self.foo.as_deref()
|
3811 + | /* StructureGenerator.kt:166 */
|
2291 3812 | }
|
3813 + | /* StructureGenerator.kt:231 */
|
2292 3814 | #[allow(missing_docs)] // documentation missing in model
|
3815 + | /* StructureGenerator.kt:166 */
|
2293 3816 | pub fn blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
3817 + | /* StructureGenerator.kt:170 */
|
2294 3818 | self.blob.as_ref()
|
3819 + | /* StructureGenerator.kt:166 */
|
2295 3820 | }
|
3821 + | /* StructureGenerator.kt:135 */
|
2296 3822 | }
|
3823 + | /* ServerCodegenVisitor.kt:356 */
|
2297 3824 | impl HttpPayloadTraitsInput {
|
2298 - | /// Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
3825 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
3826 + | /* ServerBuilderGenerator.kt:295 */
|
2299 3827 | pub fn builder() -> crate::input::http_payload_traits_input::Builder {
|
3828 + | /* ServerBuilderGenerator.kt:296 */
|
2300 3829 | crate::input::http_payload_traits_input::Builder::default()
|
3830 + | /* ServerBuilderGenerator.kt:295 */
|
2301 3831 | }
|
3832 + | /* ServerCodegenVisitor.kt:356 */
|
2302 3833 | }
|
3834 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2303 3835 | impl crate::constrained::Constrained for crate::input::HttpPayloadTraitsInput {
|
2304 3836 | type Unconstrained = crate::input::http_payload_traits_input::Builder;
|
2305 3837 | }
|
2306 3838 |
|
3839 + | /* StructureGenerator.kt:197 */
|
2307 3840 | #[allow(missing_docs)] // documentation missing in model
|
3841 + | /* RustType.kt:534 */
|
2308 3842 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2309 - | pub struct HttpEmptyPrefixHeadersInput {
|
3843 + | pub /* StructureGenerator.kt:201 */ struct HttpEmptyPrefixHeadersInput {
|
3844 + | /* StructureGenerator.kt:231 */
|
2310 3845 | #[allow(missing_docs)] // documentation missing in model
|
2311 3846 | pub prefix_headers: ::std::option::Option<
|
2312 3847 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2313 3848 | >,
|
3849 + | /* StructureGenerator.kt:231 */
|
2314 3850 | #[allow(missing_docs)] // documentation missing in model
|
2315 3851 | pub specific_header: ::std::option::Option<::std::string::String>,
|
3852 + | /* StructureGenerator.kt:201 */
|
2316 3853 | }
|
3854 + | /* StructureGenerator.kt:135 */
|
2317 3855 | impl HttpEmptyPrefixHeadersInput {
|
3856 + | /* StructureGenerator.kt:231 */
|
2318 3857 | #[allow(missing_docs)] // documentation missing in model
|
3858 + | /* StructureGenerator.kt:166 */
|
2319 3859 | pub fn prefix_headers(
|
2320 3860 | &self,
|
2321 3861 | ) -> ::std::option::Option<
|
2322 3862 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2323 3863 | > {
|
3864 + | /* StructureGenerator.kt:170 */
|
2324 3865 | self.prefix_headers.as_ref()
|
3866 + | /* StructureGenerator.kt:166 */
|
2325 3867 | }
|
3868 + | /* StructureGenerator.kt:231 */
|
2326 3869 | #[allow(missing_docs)] // documentation missing in model
|
3870 + | /* StructureGenerator.kt:166 */
|
2327 3871 | pub fn specific_header(&self) -> ::std::option::Option<&str> {
|
3872 + | /* StructureGenerator.kt:169 */
|
2328 3873 | self.specific_header.as_deref()
|
3874 + | /* StructureGenerator.kt:166 */
|
2329 3875 | }
|
3876 + | /* StructureGenerator.kt:135 */
|
2330 3877 | }
|
3878 + | /* ServerCodegenVisitor.kt:356 */
|
2331 3879 | impl HttpEmptyPrefixHeadersInput {
|
2332 - | /// Creates a new builder-style object to manufacture [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
3880 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
3881 + | /* ServerBuilderGenerator.kt:295 */
|
2333 3882 | pub fn builder() -> crate::input::http_empty_prefix_headers_input::Builder {
|
3883 + | /* ServerBuilderGenerator.kt:296 */
|
2334 3884 | crate::input::http_empty_prefix_headers_input::Builder::default()
|
3885 + | /* ServerBuilderGenerator.kt:295 */
|
2335 3886 | }
|
3887 + | /* ServerCodegenVisitor.kt:356 */
|
2336 3888 | }
|
3889 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2337 3890 | impl crate::constrained::Constrained for crate::input::HttpEmptyPrefixHeadersInput {
|
2338 3891 | type Unconstrained = crate::input::http_empty_prefix_headers_input::Builder;
|
2339 3892 | }
|
2340 3893 |
|
3894 + | /* StructureGenerator.kt:197 */
|
2341 3895 | #[allow(missing_docs)] // documentation missing in model
|
3896 + | /* RustType.kt:534 */
|
2342 3897 | #[derive(
|
2343 3898 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2344 3899 | )]
|
2345 - | pub struct HttpPrefixHeadersInResponseInput {}
|
3900 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInResponseInput {/* StructureGenerator.kt:201 */}
|
3901 + | /* ServerCodegenVisitor.kt:356 */
|
2346 3902 | impl HttpPrefixHeadersInResponseInput {
|
2347 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
3903 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
3904 + | /* ServerBuilderGenerator.kt:295 */
|
2348 3905 | pub fn builder() -> crate::input::http_prefix_headers_in_response_input::Builder {
|
3906 + | /* ServerBuilderGenerator.kt:296 */
|
2349 3907 | crate::input::http_prefix_headers_in_response_input::Builder::default()
|
3908 + | /* ServerBuilderGenerator.kt:295 */
|
2350 3909 | }
|
3910 + | /* ServerCodegenVisitor.kt:356 */
|
2351 3911 | }
|
3912 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2352 3913 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInResponseInput {
|
2353 3914 | type Unconstrained = crate::input::http_prefix_headers_in_response_input::Builder;
|
2354 3915 | }
|
2355 3916 |
|
3917 + | /* StructureGenerator.kt:197 */
|
2356 3918 | #[allow(missing_docs)] // documentation missing in model
|
3919 + | /* RustType.kt:534 */
|
2357 3920 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2358 - | pub struct HttpPrefixHeadersInput {
|
3921 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersInput {
|
3922 + | /* StructureGenerator.kt:231 */
|
2359 3923 | #[allow(missing_docs)] // documentation missing in model
|
2360 3924 | pub foo: ::std::option::Option<::std::string::String>,
|
3925 + | /* StructureGenerator.kt:231 */
|
2361 3926 | #[allow(missing_docs)] // documentation missing in model
|
2362 3927 | pub foo_map: ::std::option::Option<
|
2363 3928 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2364 3929 | >,
|
3930 + | /* StructureGenerator.kt:201 */
|
2365 3931 | }
|
3932 + | /* StructureGenerator.kt:135 */
|
2366 3933 | impl HttpPrefixHeadersInput {
|
3934 + | /* StructureGenerator.kt:231 */
|
2367 3935 | #[allow(missing_docs)] // documentation missing in model
|
3936 + | /* StructureGenerator.kt:166 */
|
2368 3937 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
3938 + | /* StructureGenerator.kt:169 */
|
2369 3939 | self.foo.as_deref()
|
3940 + | /* StructureGenerator.kt:166 */
|
2370 3941 | }
|
3942 + | /* StructureGenerator.kt:231 */
|
2371 3943 | #[allow(missing_docs)] // documentation missing in model
|
3944 + | /* StructureGenerator.kt:166 */
|
2372 3945 | pub fn foo_map(
|
2373 3946 | &self,
|
2374 3947 | ) -> ::std::option::Option<
|
2375 3948 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2376 3949 | > {
|
3950 + | /* StructureGenerator.kt:170 */
|
2377 3951 | self.foo_map.as_ref()
|
3952 + | /* StructureGenerator.kt:166 */
|
2378 3953 | }
|
3954 + | /* StructureGenerator.kt:135 */
|
2379 3955 | }
|
3956 + | /* ServerCodegenVisitor.kt:356 */
|
2380 3957 | impl HttpPrefixHeadersInput {
|
2381 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
3958 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
3959 + | /* ServerBuilderGenerator.kt:295 */
|
2382 3960 | pub fn builder() -> crate::input::http_prefix_headers_input::Builder {
|
3961 + | /* ServerBuilderGenerator.kt:296 */
|
2383 3962 | crate::input::http_prefix_headers_input::Builder::default()
|
3963 + | /* ServerBuilderGenerator.kt:295 */
|
2384 3964 | }
|
3965 + | /* ServerCodegenVisitor.kt:356 */
|
2385 3966 | }
|
3967 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2386 3968 | impl crate::constrained::Constrained for crate::input::HttpPrefixHeadersInput {
|
2387 3969 | type Unconstrained = crate::input::http_prefix_headers_input::Builder;
|
2388 3970 | }
|
2389 3971 |
|
3972 + | /* StructureGenerator.kt:197 */
|
2390 3973 | #[allow(missing_docs)] // documentation missing in model
|
3974 + | /* RustType.kt:534 */
|
2391 3975 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2392 - | pub struct QueryParamsAsStringListMapInput {
|
3976 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsAsStringListMapInput {
|
3977 + | /* StructureGenerator.kt:231 */
|
2393 3978 | #[allow(missing_docs)] // documentation missing in model
|
2394 3979 | pub qux: ::std::option::Option<::std::string::String>,
|
3980 + | /* StructureGenerator.kt:231 */
|
2395 3981 | #[allow(missing_docs)] // documentation missing in model
|
2396 3982 | pub foo: ::std::option::Option<
|
2397 3983 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2398 3984 | >,
|
3985 + | /* StructureGenerator.kt:201 */
|
2399 3986 | }
|
3987 + | /* StructureGenerator.kt:135 */
|
2400 3988 | impl QueryParamsAsStringListMapInput {
|
3989 + | /* StructureGenerator.kt:231 */
|
2401 3990 | #[allow(missing_docs)] // documentation missing in model
|
3991 + | /* StructureGenerator.kt:166 */
|
2402 3992 | pub fn qux(&self) -> ::std::option::Option<&str> {
|
3993 + | /* StructureGenerator.kt:169 */
|
2403 3994 | self.qux.as_deref()
|
3995 + | /* StructureGenerator.kt:166 */
|
2404 3996 | }
|
3997 + | /* StructureGenerator.kt:231 */
|
2405 3998 | #[allow(missing_docs)] // documentation missing in model
|
3999 + | /* StructureGenerator.kt:166 */
|
2406 4000 | pub fn foo(
|
2407 4001 | &self,
|
2408 4002 | ) -> ::std::option::Option<
|
2409 4003 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2410 4004 | > {
|
4005 + | /* StructureGenerator.kt:170 */
|
2411 4006 | self.foo.as_ref()
|
4007 + | /* StructureGenerator.kt:166 */
|
2412 4008 | }
|
4009 + | /* StructureGenerator.kt:135 */
|
2413 4010 | }
|
4011 + | /* ServerCodegenVisitor.kt:356 */
|
2414 4012 | impl QueryParamsAsStringListMapInput {
|
2415 - | /// Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
4013 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
4014 + | /* ServerBuilderGenerator.kt:295 */
|
2416 4015 | pub fn builder() -> crate::input::query_params_as_string_list_map_input::Builder {
|
4016 + | /* ServerBuilderGenerator.kt:296 */
|
2417 4017 | crate::input::query_params_as_string_list_map_input::Builder::default()
|
4018 + | /* ServerBuilderGenerator.kt:295 */
|
2418 4019 | }
|
4020 + | /* ServerCodegenVisitor.kt:356 */
|
2419 4021 | }
|
4022 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2420 4023 | impl crate::constrained::Constrained for crate::input::QueryParamsAsStringListMapInput {
|
2421 4024 | type Unconstrained = crate::input::query_params_as_string_list_map_input::Builder;
|
2422 4025 | }
|
2423 4026 |
|
4027 + | /* StructureGenerator.kt:197 */
|
2424 4028 | #[allow(missing_docs)] // documentation missing in model
|
4029 + | /* RustType.kt:534 */
|
2425 4030 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2426 - | pub struct QueryPrecedenceInput {
|
4031 + | pub /* StructureGenerator.kt:201 */ struct QueryPrecedenceInput {
|
4032 + | /* StructureGenerator.kt:231 */
|
2427 4033 | #[allow(missing_docs)] // documentation missing in model
|
2428 4034 | pub foo: ::std::option::Option<::std::string::String>,
|
4035 + | /* StructureGenerator.kt:231 */
|
2429 4036 | #[allow(missing_docs)] // documentation missing in model
|
2430 4037 | pub baz: ::std::option::Option<
|
2431 4038 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2432 4039 | >,
|
4040 + | /* StructureGenerator.kt:201 */
|
2433 4041 | }
|
4042 + | /* StructureGenerator.kt:135 */
|
2434 4043 | impl QueryPrecedenceInput {
|
4044 + | /* StructureGenerator.kt:231 */
|
2435 4045 | #[allow(missing_docs)] // documentation missing in model
|
4046 + | /* StructureGenerator.kt:166 */
|
2436 4047 | pub fn foo(&self) -> ::std::option::Option<&str> {
|
4048 + | /* StructureGenerator.kt:169 */
|
2437 4049 | self.foo.as_deref()
|
4050 + | /* StructureGenerator.kt:166 */
|
2438 4051 | }
|
4052 + | /* StructureGenerator.kt:231 */
|
2439 4053 | #[allow(missing_docs)] // documentation missing in model
|
4054 + | /* StructureGenerator.kt:166 */
|
2440 4055 | pub fn baz(
|
2441 4056 | &self,
|
2442 4057 | ) -> ::std::option::Option<
|
2443 4058 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2444 4059 | > {
|
4060 + | /* StructureGenerator.kt:170 */
|
2445 4061 | self.baz.as_ref()
|
4062 + | /* StructureGenerator.kt:166 */
|
2446 4063 | }
|
4064 + | /* StructureGenerator.kt:135 */
|
2447 4065 | }
|
4066 + | /* ServerCodegenVisitor.kt:356 */
|
2448 4067 | impl QueryPrecedenceInput {
|
2449 - | /// Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
4068 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
4069 + | /* ServerBuilderGenerator.kt:295 */
|
2450 4070 | pub fn builder() -> crate::input::query_precedence_input::Builder {
|
4071 + | /* ServerBuilderGenerator.kt:296 */
|
2451 4072 | crate::input::query_precedence_input::Builder::default()
|
4073 + | /* ServerBuilderGenerator.kt:295 */
|
2452 4074 | }
|
4075 + | /* ServerCodegenVisitor.kt:356 */
|
2453 4076 | }
|
4077 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2454 4078 | impl crate::constrained::Constrained for crate::input::QueryPrecedenceInput {
|
2455 4079 | type Unconstrained = crate::input::query_precedence_input::Builder;
|
2456 4080 | }
|
2457 4081 |
|
4082 + | /* StructureGenerator.kt:197 */
|
2458 4083 | #[allow(missing_docs)] // documentation missing in model
|
4084 + | /* RustType.kt:534 */
|
2459 4085 | #[derive(
|
2460 4086 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2461 4087 | )]
|
2462 - | pub struct QueryIdempotencyTokenAutoFillInput {
|
4088 + | pub /* StructureGenerator.kt:201 */ struct QueryIdempotencyTokenAutoFillInput {
|
4089 + | /* StructureGenerator.kt:231 */
|
2463 4090 | #[allow(missing_docs)] // documentation missing in model
|
2464 4091 | pub token: ::std::option::Option<::std::string::String>,
|
4092 + | /* StructureGenerator.kt:201 */
|
2465 4093 | }
|
4094 + | /* StructureGenerator.kt:135 */
|
2466 4095 | impl QueryIdempotencyTokenAutoFillInput {
|
4096 + | /* StructureGenerator.kt:231 */
|
2467 4097 | #[allow(missing_docs)] // documentation missing in model
|
4098 + | /* StructureGenerator.kt:166 */
|
2468 4099 | pub fn token(&self) -> ::std::option::Option<&str> {
|
4100 + | /* StructureGenerator.kt:169 */
|
2469 4101 | self.token.as_deref()
|
4102 + | /* StructureGenerator.kt:166 */
|
2470 4103 | }
|
4104 + | /* StructureGenerator.kt:135 */
|
2471 4105 | }
|
4106 + | /* ServerCodegenVisitor.kt:356 */
|
2472 4107 | impl QueryIdempotencyTokenAutoFillInput {
|
2473 - | /// Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
4108 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
4109 + | /* ServerBuilderGenerator.kt:295 */
|
2474 4110 | pub fn builder() -> crate::input::query_idempotency_token_auto_fill_input::Builder {
|
4111 + | /* ServerBuilderGenerator.kt:296 */
|
2475 4112 | crate::input::query_idempotency_token_auto_fill_input::Builder::default()
|
4113 + | /* ServerBuilderGenerator.kt:295 */
|
2476 4114 | }
|
4115 + | /* ServerCodegenVisitor.kt:356 */
|
2477 4116 | }
|
4117 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2478 4118 | impl crate::constrained::Constrained for crate::input::QueryIdempotencyTokenAutoFillInput {
|
2479 4119 | type Unconstrained = crate::input::query_idempotency_token_auto_fill_input::Builder;
|
2480 4120 | }
|
2481 4121 |
|
4122 + | /* StructureGenerator.kt:197 */
|
2482 4123 | #[allow(missing_docs)] // documentation missing in model
|
4124 + | /* RustType.kt:534 */
|
2483 4125 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2484 - | pub struct OmitsSerializingEmptyListsInput {
|
4126 + | pub /* StructureGenerator.kt:201 */ struct OmitsSerializingEmptyListsInput {
|
4127 + | /* StructureGenerator.kt:231 */
|
2485 4128 | #[allow(missing_docs)] // documentation missing in model
|
2486 4129 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4130 + | /* StructureGenerator.kt:231 */
|
2487 4131 | #[allow(missing_docs)] // documentation missing in model
|
2488 4132 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4133 + | /* StructureGenerator.kt:231 */
|
2489 4134 | #[allow(missing_docs)] // documentation missing in model
|
2490 4135 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
4136 + | /* StructureGenerator.kt:231 */
|
2491 4137 | #[allow(missing_docs)] // documentation missing in model
|
2492 4138 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
4139 + | /* StructureGenerator.kt:231 */
|
2493 4140 | #[allow(missing_docs)] // documentation missing in model
|
2494 4141 | pub query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
4142 + | /* StructureGenerator.kt:231 */
|
2495 4143 | #[allow(missing_docs)] // documentation missing in model
|
2496 4144 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4145 + | /* StructureGenerator.kt:231 */
|
2497 4146 | #[allow(missing_docs)] // documentation missing in model
|
2498 4147 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4148 + | /* StructureGenerator.kt:201 */
|
2499 4149 | }
|
4150 + | /* StructureGenerator.kt:135 */
|
2500 4151 | impl OmitsSerializingEmptyListsInput {
|
4152 + | /* StructureGenerator.kt:231 */
|
2501 4153 | #[allow(missing_docs)] // documentation missing in model
|
4154 + | /* StructureGenerator.kt:166 */
|
2502 4155 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
4156 + | /* StructureGenerator.kt:169 */
|
2503 4157 | self.query_string_list.as_deref()
|
4158 + | /* StructureGenerator.kt:166 */
|
2504 4159 | }
|
4160 + | /* StructureGenerator.kt:231 */
|
2505 4161 | #[allow(missing_docs)] // documentation missing in model
|
4162 + | /* StructureGenerator.kt:166 */
|
2506 4163 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
4164 + | /* StructureGenerator.kt:169 */
|
2507 4165 | self.query_integer_list.as_deref()
|
4166 + | /* StructureGenerator.kt:166 */
|
2508 4167 | }
|
4168 + | /* StructureGenerator.kt:231 */
|
2509 4169 | #[allow(missing_docs)] // documentation missing in model
|
4170 + | /* StructureGenerator.kt:166 */
|
2510 4171 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
4172 + | /* StructureGenerator.kt:169 */
|
2511 4173 | self.query_double_list.as_deref()
|
4174 + | /* StructureGenerator.kt:166 */
|
2512 4175 | }
|
4176 + | /* StructureGenerator.kt:231 */
|
2513 4177 | #[allow(missing_docs)] // documentation missing in model
|
4178 + | /* StructureGenerator.kt:166 */
|
2514 4179 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
4180 + | /* StructureGenerator.kt:169 */
|
2515 4181 | self.query_boolean_list.as_deref()
|
4182 + | /* StructureGenerator.kt:166 */
|
2516 4183 | }
|
4184 + | /* StructureGenerator.kt:231 */
|
2517 4185 | #[allow(missing_docs)] // documentation missing in model
|
4186 + | /* StructureGenerator.kt:166 */
|
2518 4187 | pub fn query_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
4188 + | /* StructureGenerator.kt:169 */
|
2519 4189 | self.query_timestamp_list.as_deref()
|
4190 + | /* StructureGenerator.kt:166 */
|
2520 4191 | }
|
4192 + | /* StructureGenerator.kt:231 */
|
2521 4193 | #[allow(missing_docs)] // documentation missing in model
|
4194 + | /* StructureGenerator.kt:166 */
|
2522 4195 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
4196 + | /* StructureGenerator.kt:169 */
|
2523 4197 | self.query_enum_list.as_deref()
|
4198 + | /* StructureGenerator.kt:166 */
|
2524 4199 | }
|
4200 + | /* StructureGenerator.kt:231 */
|
2525 4201 | #[allow(missing_docs)] // documentation missing in model
|
4202 + | /* StructureGenerator.kt:166 */
|
2526 4203 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
4204 + | /* StructureGenerator.kt:169 */
|
2527 4205 | self.query_integer_enum_list.as_deref()
|
4206 + | /* StructureGenerator.kt:166 */
|
2528 4207 | }
|
4208 + | /* StructureGenerator.kt:135 */
|
2529 4209 | }
|
4210 + | /* ServerCodegenVisitor.kt:356 */
|
2530 4211 | impl OmitsSerializingEmptyListsInput {
|
2531 - | /// Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
4212 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
4213 + | /* ServerBuilderGenerator.kt:295 */
|
2532 4214 | pub fn builder() -> crate::input::omits_serializing_empty_lists_input::Builder {
|
4215 + | /* ServerBuilderGenerator.kt:296 */
|
2533 4216 | crate::input::omits_serializing_empty_lists_input::Builder::default()
|
4217 + | /* ServerBuilderGenerator.kt:295 */
|
2534 4218 | }
|
4219 + | /* ServerCodegenVisitor.kt:356 */
|
2535 4220 | }
|
4221 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2536 4222 | impl crate::constrained::Constrained for crate::input::OmitsSerializingEmptyListsInput {
|
2537 4223 | type Unconstrained = crate::input::omits_serializing_empty_lists_input::Builder;
|
2538 4224 | }
|
2539 4225 |
|
4226 + | /* StructureGenerator.kt:197 */
|
2540 4227 | #[allow(missing_docs)] // documentation missing in model
|
4228 + | /* RustType.kt:534 */
|
2541 4229 | #[derive(
|
2542 4230 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2543 4231 | )]
|
2544 - | pub struct OmitsNullSerializesEmptyStringInput {
|
4232 + | pub /* StructureGenerator.kt:201 */ struct OmitsNullSerializesEmptyStringInput {
|
4233 + | /* StructureGenerator.kt:231 */
|
2545 4234 | #[allow(missing_docs)] // documentation missing in model
|
2546 4235 | pub null_value: ::std::option::Option<::std::string::String>,
|
4236 + | /* StructureGenerator.kt:231 */
|
2547 4237 | #[allow(missing_docs)] // documentation missing in model
|
2548 4238 | pub empty_string: ::std::option::Option<::std::string::String>,
|
4239 + | /* StructureGenerator.kt:201 */
|
2549 4240 | }
|
4241 + | /* StructureGenerator.kt:135 */
|
2550 4242 | impl OmitsNullSerializesEmptyStringInput {
|
4243 + | /* StructureGenerator.kt:231 */
|
2551 4244 | #[allow(missing_docs)] // documentation missing in model
|
4245 + | /* StructureGenerator.kt:166 */
|
2552 4246 | pub fn null_value(&self) -> ::std::option::Option<&str> {
|
4247 + | /* StructureGenerator.kt:169 */
|
2553 4248 | self.null_value.as_deref()
|
4249 + | /* StructureGenerator.kt:166 */
|
2554 4250 | }
|
4251 + | /* StructureGenerator.kt:231 */
|
2555 4252 | #[allow(missing_docs)] // documentation missing in model
|
4253 + | /* StructureGenerator.kt:166 */
|
2556 4254 | pub fn empty_string(&self) -> ::std::option::Option<&str> {
|
4255 + | /* StructureGenerator.kt:169 */
|
2557 4256 | self.empty_string.as_deref()
|
4257 + | /* StructureGenerator.kt:166 */
|
2558 4258 | }
|
4259 + | /* StructureGenerator.kt:135 */
|
2559 4260 | }
|
4261 + | /* ServerCodegenVisitor.kt:356 */
|
2560 4262 | impl OmitsNullSerializesEmptyStringInput {
|
2561 - | /// Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
4263 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
4264 + | /* ServerBuilderGenerator.kt:295 */
|
2562 4265 | pub fn builder() -> crate::input::omits_null_serializes_empty_string_input::Builder {
|
4266 + | /* ServerBuilderGenerator.kt:296 */
|
2563 4267 | crate::input::omits_null_serializes_empty_string_input::Builder::default()
|
4268 + | /* ServerBuilderGenerator.kt:295 */
|
2564 4269 | }
|
4270 + | /* ServerCodegenVisitor.kt:356 */
|
2565 4271 | }
|
4272 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2566 4273 | impl crate::constrained::Constrained for crate::input::OmitsNullSerializesEmptyStringInput {
|
2567 4274 | type Unconstrained = crate::input::omits_null_serializes_empty_string_input::Builder;
|
2568 4275 | }
|
2569 4276 |
|
4277 + | /* StructureGenerator.kt:197 */
|
2570 4278 | #[allow(missing_docs)] // documentation missing in model
|
4279 + | /* RustType.kt:534 */
|
2571 4280 | #[derive(
|
2572 4281 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2573 4282 | )]
|
2574 - | pub struct IgnoreQueryParamsInResponseInput {}
|
4283 + | pub /* StructureGenerator.kt:201 */ struct IgnoreQueryParamsInResponseInput {/* StructureGenerator.kt:201 */}
|
4284 + | /* ServerCodegenVisitor.kt:356 */
|
2575 4285 | impl IgnoreQueryParamsInResponseInput {
|
2576 - | /// Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
4286 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
4287 + | /* ServerBuilderGenerator.kt:295 */
|
2577 4288 | pub fn builder() -> crate::input::ignore_query_params_in_response_input::Builder {
|
4289 + | /* ServerBuilderGenerator.kt:296 */
|
2578 4290 | crate::input::ignore_query_params_in_response_input::Builder::default()
|
4291 + | /* ServerBuilderGenerator.kt:295 */
|
2579 4292 | }
|
4293 + | /* ServerCodegenVisitor.kt:356 */
|
2580 4294 | }
|
4295 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2581 4296 | impl crate::constrained::Constrained for crate::input::IgnoreQueryParamsInResponseInput {
|
2582 4297 | type Unconstrained = crate::input::ignore_query_params_in_response_input::Builder;
|
2583 4298 | }
|
2584 4299 |
|
4300 + | /* StructureGenerator.kt:197 */
|
2585 4301 | #[allow(missing_docs)] // documentation missing in model
|
4302 + | /* RustType.kt:534 */
|
2586 4303 | #[derive(
|
2587 4304 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2588 4305 | )]
|
2589 - | pub struct ConstantAndVariableQueryStringInput {
|
4306 + | pub /* StructureGenerator.kt:201 */ struct ConstantAndVariableQueryStringInput {
|
4307 + | /* StructureGenerator.kt:231 */
|
2590 4308 | #[allow(missing_docs)] // documentation missing in model
|
2591 4309 | pub baz: ::std::option::Option<::std::string::String>,
|
4310 + | /* StructureGenerator.kt:231 */
|
2592 4311 | #[allow(missing_docs)] // documentation missing in model
|
2593 4312 | pub maybe_set: ::std::option::Option<::std::string::String>,
|
4313 + | /* StructureGenerator.kt:201 */
|
2594 4314 | }
|
4315 + | /* StructureGenerator.kt:135 */
|
2595 4316 | impl ConstantAndVariableQueryStringInput {
|
4317 + | /* StructureGenerator.kt:231 */
|
2596 4318 | #[allow(missing_docs)] // documentation missing in model
|
4319 + | /* StructureGenerator.kt:166 */
|
2597 4320 | pub fn baz(&self) -> ::std::option::Option<&str> {
|
4321 + | /* StructureGenerator.kt:169 */
|
2598 4322 | self.baz.as_deref()
|
4323 + | /* StructureGenerator.kt:166 */
|
2599 4324 | }
|
4325 + | /* StructureGenerator.kt:231 */
|
2600 4326 | #[allow(missing_docs)] // documentation missing in model
|
4327 + | /* StructureGenerator.kt:166 */
|
2601 4328 | pub fn maybe_set(&self) -> ::std::option::Option<&str> {
|
4329 + | /* StructureGenerator.kt:169 */
|
2602 4330 | self.maybe_set.as_deref()
|
4331 + | /* StructureGenerator.kt:166 */
|
2603 4332 | }
|
4333 + | /* StructureGenerator.kt:135 */
|
2604 4334 | }
|
4335 + | /* ServerCodegenVisitor.kt:356 */
|
2605 4336 | impl ConstantAndVariableQueryStringInput {
|
2606 - | /// Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
4337 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
4338 + | /* ServerBuilderGenerator.kt:295 */
|
2607 4339 | pub fn builder() -> crate::input::constant_and_variable_query_string_input::Builder {
|
4340 + | /* ServerBuilderGenerator.kt:296 */
|
2608 4341 | crate::input::constant_and_variable_query_string_input::Builder::default()
|
4342 + | /* ServerBuilderGenerator.kt:295 */
|
2609 4343 | }
|
4344 + | /* ServerCodegenVisitor.kt:356 */
|
2610 4345 | }
|
4346 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2611 4347 | impl crate::constrained::Constrained for crate::input::ConstantAndVariableQueryStringInput {
|
2612 4348 | type Unconstrained = crate::input::constant_and_variable_query_string_input::Builder;
|
2613 4349 | }
|
2614 4350 |
|
4351 + | /* StructureGenerator.kt:197 */
|
2615 4352 | #[allow(missing_docs)] // documentation missing in model
|
4353 + | /* RustType.kt:534 */
|
2616 4354 | #[derive(
|
2617 4355 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2618 4356 | )]
|
2619 - | pub struct ConstantQueryStringInput {
|
4357 + | pub /* StructureGenerator.kt:201 */ struct ConstantQueryStringInput {
|
4358 + | /* StructureGenerator.kt:231 */
|
2620 4359 | #[allow(missing_docs)] // documentation missing in model
|
2621 4360 | pub hello: ::std::string::String,
|
4361 + | /* StructureGenerator.kt:201 */
|
2622 4362 | }
|
4363 + | /* StructureGenerator.kt:135 */
|
2623 4364 | impl ConstantQueryStringInput {
|
4365 + | /* StructureGenerator.kt:231 */
|
2624 4366 | #[allow(missing_docs)] // documentation missing in model
|
4367 + | /* StructureGenerator.kt:166 */
|
2625 4368 | pub fn hello(&self) -> &str {
|
4369 + | /* StructureGenerator.kt:171 */
|
2626 4370 | use std::ops::Deref;
|
2627 4371 | self.hello.deref()
|
4372 + | /* StructureGenerator.kt:166 */
|
2628 4373 | }
|
4374 + | /* StructureGenerator.kt:135 */
|
2629 4375 | }
|
4376 + | /* ServerCodegenVisitor.kt:356 */
|
2630 4377 | impl ConstantQueryStringInput {
|
2631 - | /// Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
4378 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
4379 + | /* ServerBuilderGenerator.kt:295 */
|
2632 4380 | pub fn builder() -> crate::input::constant_query_string_input::Builder {
|
4381 + | /* ServerBuilderGenerator.kt:296 */
|
2633 4382 | crate::input::constant_query_string_input::Builder::default()
|
4383 + | /* ServerBuilderGenerator.kt:295 */
|
2634 4384 | }
|
4385 + | /* ServerCodegenVisitor.kt:356 */
|
2635 4386 | }
|
4387 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2636 4388 | impl crate::constrained::Constrained for crate::input::ConstantQueryStringInput {
|
2637 4389 | type Unconstrained = crate::input::constant_query_string_input::Builder;
|
2638 4390 | }
|
2639 4391 |
|
4392 + | /* StructureGenerator.kt:197 */
|
2640 4393 | #[allow(missing_docs)] // documentation missing in model
|
4394 + | /* RustType.kt:534 */
|
2641 4395 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2642 - | pub struct AllQueryStringTypesInput {
|
4396 + | pub /* StructureGenerator.kt:201 */ struct AllQueryStringTypesInput {
|
4397 + | /* StructureGenerator.kt:231 */
|
2643 4398 | #[allow(missing_docs)] // documentation missing in model
|
2644 4399 | pub query_string: ::std::option::Option<::std::string::String>,
|
4400 + | /* StructureGenerator.kt:231 */
|
2645 4401 | #[allow(missing_docs)] // documentation missing in model
|
2646 4402 | pub query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4403 + | /* StructureGenerator.kt:231 */
|
2647 4404 | #[allow(missing_docs)] // documentation missing in model
|
2648 4405 | pub query_string_set: ::std::option::Option<crate::model::StringSet>,
|
4406 + | /* StructureGenerator.kt:231 */
|
2649 4407 | #[allow(missing_docs)] // documentation missing in model
|
2650 4408 | pub query_byte: ::std::option::Option<i8>,
|
4409 + | /* StructureGenerator.kt:231 */
|
2651 4410 | #[allow(missing_docs)] // documentation missing in model
|
2652 4411 | pub query_short: ::std::option::Option<i16>,
|
4412 + | /* StructureGenerator.kt:231 */
|
2653 4413 | #[allow(missing_docs)] // documentation missing in model
|
2654 4414 | pub query_integer: ::std::option::Option<i32>,
|
4415 + | /* StructureGenerator.kt:231 */
|
2655 4416 | #[allow(missing_docs)] // documentation missing in model
|
2656 4417 | pub query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4418 + | /* StructureGenerator.kt:231 */
|
2657 4419 | #[allow(missing_docs)] // documentation missing in model
|
2658 4420 | pub query_integer_set: ::std::option::Option<crate::model::IntegerSet>,
|
4421 + | /* StructureGenerator.kt:231 */
|
2659 4422 | #[allow(missing_docs)] // documentation missing in model
|
2660 4423 | pub query_long: ::std::option::Option<i64>,
|
4424 + | /* StructureGenerator.kt:231 */
|
2661 4425 | #[allow(missing_docs)] // documentation missing in model
|
2662 4426 | pub query_float: ::std::option::Option<f32>,
|
4427 + | /* StructureGenerator.kt:231 */
|
2663 4428 | #[allow(missing_docs)] // documentation missing in model
|
2664 4429 | pub query_double: ::std::option::Option<f64>,
|
4430 + | /* StructureGenerator.kt:231 */
|
2665 4431 | #[allow(missing_docs)] // documentation missing in model
|
2666 4432 | pub query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
4433 + | /* StructureGenerator.kt:231 */
|
2667 4434 | #[allow(missing_docs)] // documentation missing in model
|
2668 4435 | pub query_boolean: ::std::option::Option<bool>,
|
4436 + | /* StructureGenerator.kt:231 */
|
2669 4437 | #[allow(missing_docs)] // documentation missing in model
|
2670 4438 | pub query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
4439 + | /* StructureGenerator.kt:231 */
|
2671 4440 | #[allow(missing_docs)] // documentation missing in model
|
2672 4441 | pub query_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
4442 + | /* StructureGenerator.kt:231 */
|
2673 4443 | #[allow(missing_docs)] // documentation missing in model
|
2674 4444 | pub query_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
4445 + | /* StructureGenerator.kt:231 */
|
2675 4446 | #[allow(missing_docs)] // documentation missing in model
|
2676 4447 | pub query_enum: ::std::option::Option<crate::model::FooEnum>,
|
4448 + | /* StructureGenerator.kt:231 */
|
2677 4449 | #[allow(missing_docs)] // documentation missing in model
|
2678 4450 | pub query_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
4451 + | /* StructureGenerator.kt:231 */
|
2679 4452 | #[allow(missing_docs)] // documentation missing in model
|
2680 4453 | pub query_integer_enum: ::std::option::Option<i32>,
|
4454 + | /* StructureGenerator.kt:231 */
|
2681 4455 | #[allow(missing_docs)] // documentation missing in model
|
2682 4456 | pub query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
4457 + | /* StructureGenerator.kt:231 */
|
2683 4458 | #[allow(missing_docs)] // documentation missing in model
|
2684 4459 | pub query_params_map_of_string_list: ::std::option::Option<
|
2685 4460 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2686 4461 | >,
|
4462 + | /* StructureGenerator.kt:201 */
|
2687 4463 | }
|
4464 + | /* StructureGenerator.kt:135 */
|
2688 4465 | impl AllQueryStringTypesInput {
|
4466 + | /* StructureGenerator.kt:231 */
|
2689 4467 | #[allow(missing_docs)] // documentation missing in model
|
4468 + | /* StructureGenerator.kt:166 */
|
2690 4469 | pub fn query_string(&self) -> ::std::option::Option<&str> {
|
4470 + | /* StructureGenerator.kt:169 */
|
2691 4471 | self.query_string.as_deref()
|
4472 + | /* StructureGenerator.kt:166 */
|
2692 4473 | }
|
4474 + | /* StructureGenerator.kt:231 */
|
2693 4475 | #[allow(missing_docs)] // documentation missing in model
|
4476 + | /* StructureGenerator.kt:166 */
|
2694 4477 | pub fn query_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
4478 + | /* StructureGenerator.kt:169 */
|
2695 4479 | self.query_string_list.as_deref()
|
4480 + | /* StructureGenerator.kt:166 */
|
2696 4481 | }
|
4482 + | /* StructureGenerator.kt:231 */
|
2697 4483 | #[allow(missing_docs)] // documentation missing in model
|
4484 + | /* StructureGenerator.kt:166 */
|
2698 4485 | pub fn query_string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
4486 + | /* StructureGenerator.kt:170 */
|
2699 4487 | self.query_string_set.as_ref()
|
4488 + | /* StructureGenerator.kt:166 */
|
2700 4489 | }
|
4490 + | /* StructureGenerator.kt:231 */
|
2701 4491 | #[allow(missing_docs)] // documentation missing in model
|
4492 + | /* StructureGenerator.kt:166 */
|
2702 4493 | pub fn query_byte(&self) -> ::std::option::Option<i8> {
|
4494 + | /* StructureGenerator.kt:168 */
|
2703 4495 | self.query_byte
|
4496 + | /* StructureGenerator.kt:166 */
|
2704 4497 | }
|
4498 + | /* StructureGenerator.kt:231 */
|
2705 4499 | #[allow(missing_docs)] // documentation missing in model
|
4500 + | /* StructureGenerator.kt:166 */
|
2706 4501 | pub fn query_short(&self) -> ::std::option::Option<i16> {
|
4502 + | /* StructureGenerator.kt:168 */
|
2707 4503 | self.query_short
|
4504 + | /* StructureGenerator.kt:166 */
|
2708 4505 | }
|
4506 + | /* StructureGenerator.kt:231 */
|
2709 4507 | #[allow(missing_docs)] // documentation missing in model
|
4508 + | /* StructureGenerator.kt:166 */
|
2710 4509 | pub fn query_integer(&self) -> ::std::option::Option<i32> {
|
4510 + | /* StructureGenerator.kt:168 */
|
2711 4511 | self.query_integer
|
4512 + | /* StructureGenerator.kt:166 */
|
2712 4513 | }
|
4514 + | /* StructureGenerator.kt:231 */
|
2713 4515 | #[allow(missing_docs)] // documentation missing in model
|
4516 + | /* StructureGenerator.kt:166 */
|
2714 4517 | pub fn query_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
4518 + | /* StructureGenerator.kt:169 */
|
2715 4519 | self.query_integer_list.as_deref()
|
4520 + | /* StructureGenerator.kt:166 */
|
2716 4521 | }
|
4522 + | /* StructureGenerator.kt:231 */
|
2717 4523 | #[allow(missing_docs)] // documentation missing in model
|
4524 + | /* StructureGenerator.kt:166 */
|
2718 4525 | pub fn query_integer_set(&self) -> ::std::option::Option<&crate::model::IntegerSet> {
|
4526 + | /* StructureGenerator.kt:170 */
|
2719 4527 | self.query_integer_set.as_ref()
|
4528 + | /* StructureGenerator.kt:166 */
|
2720 4529 | }
|
4530 + | /* StructureGenerator.kt:231 */
|
2721 4531 | #[allow(missing_docs)] // documentation missing in model
|
4532 + | /* StructureGenerator.kt:166 */
|
2722 4533 | pub fn query_long(&self) -> ::std::option::Option<i64> {
|
4534 + | /* StructureGenerator.kt:168 */
|
2723 4535 | self.query_long
|
4536 + | /* StructureGenerator.kt:166 */
|
2724 4537 | }
|
4538 + | /* StructureGenerator.kt:231 */
|
2725 4539 | #[allow(missing_docs)] // documentation missing in model
|
4540 + | /* StructureGenerator.kt:166 */
|
2726 4541 | pub fn query_float(&self) -> ::std::option::Option<f32> {
|
4542 + | /* StructureGenerator.kt:168 */
|
2727 4543 | self.query_float
|
4544 + | /* StructureGenerator.kt:166 */
|
2728 4545 | }
|
4546 + | /* StructureGenerator.kt:231 */
|
2729 4547 | #[allow(missing_docs)] // documentation missing in model
|
4548 + | /* StructureGenerator.kt:166 */
|
2730 4549 | pub fn query_double(&self) -> ::std::option::Option<f64> {
|
4550 + | /* StructureGenerator.kt:168 */
|
2731 4551 | self.query_double
|
4552 + | /* StructureGenerator.kt:166 */
|
2732 4553 | }
|
4554 + | /* StructureGenerator.kt:231 */
|
2733 4555 | #[allow(missing_docs)] // documentation missing in model
|
4556 + | /* StructureGenerator.kt:166 */
|
2734 4557 | pub fn query_double_list(&self) -> ::std::option::Option<&[f64]> {
|
4558 + | /* StructureGenerator.kt:169 */
|
2735 4559 | self.query_double_list.as_deref()
|
4560 + | /* StructureGenerator.kt:166 */
|
2736 4561 | }
|
4562 + | /* StructureGenerator.kt:231 */
|
2737 4563 | #[allow(missing_docs)] // documentation missing in model
|
4564 + | /* StructureGenerator.kt:166 */
|
2738 4565 | pub fn query_boolean(&self) -> ::std::option::Option<bool> {
|
4566 + | /* StructureGenerator.kt:168 */
|
2739 4567 | self.query_boolean
|
4568 + | /* StructureGenerator.kt:166 */
|
2740 4569 | }
|
4570 + | /* StructureGenerator.kt:231 */
|
2741 4571 | #[allow(missing_docs)] // documentation missing in model
|
4572 + | /* StructureGenerator.kt:166 */
|
2742 4573 | pub fn query_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
4574 + | /* StructureGenerator.kt:169 */
|
2743 4575 | self.query_boolean_list.as_deref()
|
4576 + | /* StructureGenerator.kt:166 */
|
2744 4577 | }
|
4578 + | /* StructureGenerator.kt:231 */
|
2745 4579 | #[allow(missing_docs)] // documentation missing in model
|
4580 + | /* StructureGenerator.kt:166 */
|
2746 4581 | pub fn query_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
4582 + | /* StructureGenerator.kt:170 */
|
2747 4583 | self.query_timestamp.as_ref()
|
4584 + | /* StructureGenerator.kt:166 */
|
2748 4585 | }
|
4586 + | /* StructureGenerator.kt:231 */
|
2749 4587 | #[allow(missing_docs)] // documentation missing in model
|
4588 + | /* StructureGenerator.kt:166 */
|
2750 4589 | pub fn query_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
4590 + | /* StructureGenerator.kt:169 */
|
2751 4591 | self.query_timestamp_list.as_deref()
|
4592 + | /* StructureGenerator.kt:166 */
|
2752 4593 | }
|
4594 + | /* StructureGenerator.kt:231 */
|
2753 4595 | #[allow(missing_docs)] // documentation missing in model
|
4596 + | /* StructureGenerator.kt:166 */
|
2754 4597 | pub fn query_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
4598 + | /* StructureGenerator.kt:170 */
|
2755 4599 | self.query_enum.as_ref()
|
4600 + | /* StructureGenerator.kt:166 */
|
2756 4601 | }
|
4602 + | /* StructureGenerator.kt:231 */
|
2757 4603 | #[allow(missing_docs)] // documentation missing in model
|
4604 + | /* StructureGenerator.kt:166 */
|
2758 4605 | pub fn query_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
4606 + | /* StructureGenerator.kt:169 */
|
2759 4607 | self.query_enum_list.as_deref()
|
4608 + | /* StructureGenerator.kt:166 */
|
2760 4609 | }
|
4610 + | /* StructureGenerator.kt:231 */
|
2761 4611 | #[allow(missing_docs)] // documentation missing in model
|
4612 + | /* StructureGenerator.kt:166 */
|
2762 4613 | pub fn query_integer_enum(&self) -> ::std::option::Option<i32> {
|
4614 + | /* StructureGenerator.kt:168 */
|
2763 4615 | self.query_integer_enum
|
4616 + | /* StructureGenerator.kt:166 */
|
2764 4617 | }
|
4618 + | /* StructureGenerator.kt:231 */
|
2765 4619 | #[allow(missing_docs)] // documentation missing in model
|
4620 + | /* StructureGenerator.kt:166 */
|
2766 4621 | pub fn query_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
4622 + | /* StructureGenerator.kt:169 */
|
2767 4623 | self.query_integer_enum_list.as_deref()
|
4624 + | /* StructureGenerator.kt:166 */
|
2768 4625 | }
|
4626 + | /* StructureGenerator.kt:231 */
|
2769 4627 | #[allow(missing_docs)] // documentation missing in model
|
4628 + | /* StructureGenerator.kt:166 */
|
2770 4629 | pub fn query_params_map_of_string_list(
|
2771 4630 | &self,
|
2772 4631 | ) -> ::std::option::Option<
|
2773 4632 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
2774 4633 | > {
|
4634 + | /* StructureGenerator.kt:170 */
|
2775 4635 | self.query_params_map_of_string_list.as_ref()
|
4636 + | /* StructureGenerator.kt:166 */
|
2776 4637 | }
|
4638 + | /* StructureGenerator.kt:135 */
|
2777 4639 | }
|
4640 + | /* ServerCodegenVisitor.kt:356 */
|
2778 4641 | impl AllQueryStringTypesInput {
|
2779 - | /// Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
4642 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
4643 + | /* ServerBuilderGenerator.kt:295 */
|
2780 4644 | pub fn builder() -> crate::input::all_query_string_types_input::Builder {
|
4645 + | /* ServerBuilderGenerator.kt:296 */
|
2781 4646 | crate::input::all_query_string_types_input::Builder::default()
|
4647 + | /* ServerBuilderGenerator.kt:295 */
|
2782 4648 | }
|
4649 + | /* ServerCodegenVisitor.kt:356 */
|
2783 4650 | }
|
4651 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2784 4652 | impl crate::constrained::Constrained for crate::input::AllQueryStringTypesInput {
|
2785 4653 | type Unconstrained = crate::input::all_query_string_types_input::Builder;
|
2786 4654 | }
|
2787 4655 |
|
4656 + | /* StructureGenerator.kt:197 */
|
2788 4657 | #[allow(missing_docs)] // documentation missing in model
|
4658 + | /* RustType.kt:534 */
|
2789 4659 | #[derive(
|
2790 4660 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2791 4661 | )]
|
2792 - | pub struct HttpRequestWithRegexLiteralInput {
|
4662 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithRegexLiteralInput {
|
4663 + | /* StructureGenerator.kt:231 */
|
2793 4664 | #[allow(missing_docs)] // documentation missing in model
|
2794 4665 | pub str: ::std::string::String,
|
4666 + | /* StructureGenerator.kt:201 */
|
2795 4667 | }
|
4668 + | /* StructureGenerator.kt:135 */
|
2796 4669 | impl HttpRequestWithRegexLiteralInput {
|
4670 + | /* StructureGenerator.kt:231 */
|
2797 4671 | #[allow(missing_docs)] // documentation missing in model
|
4672 + | /* StructureGenerator.kt:166 */
|
2798 4673 | pub fn str(&self) -> &str {
|
4674 + | /* StructureGenerator.kt:171 */
|
2799 4675 | use std::ops::Deref;
|
2800 4676 | self.str.deref()
|
4677 + | /* StructureGenerator.kt:166 */
|
2801 4678 | }
|
4679 + | /* StructureGenerator.kt:135 */
|
2802 4680 | }
|
4681 + | /* ServerCodegenVisitor.kt:356 */
|
2803 4682 | impl HttpRequestWithRegexLiteralInput {
|
2804 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
4683 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
4684 + | /* ServerBuilderGenerator.kt:295 */
|
2805 4685 | pub fn builder() -> crate::input::http_request_with_regex_literal_input::Builder {
|
4686 + | /* ServerBuilderGenerator.kt:296 */
|
2806 4687 | crate::input::http_request_with_regex_literal_input::Builder::default()
|
4688 + | /* ServerBuilderGenerator.kt:295 */
|
2807 4689 | }
|
4690 + | /* ServerCodegenVisitor.kt:356 */
|
2808 4691 | }
|
4692 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2809 4693 | impl crate::constrained::Constrained for crate::input::HttpRequestWithRegexLiteralInput {
|
2810 4694 | type Unconstrained = crate::input::http_request_with_regex_literal_input::Builder;
|
2811 4695 | }
|
2812 4696 |
|
4697 + | /* StructureGenerator.kt:197 */
|
2813 4698 | #[allow(missing_docs)] // documentation missing in model
|
4699 + | /* RustType.kt:534 */
|
2814 4700 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2815 - | pub struct HttpRequestWithFloatLabelsInput {
|
4701 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithFloatLabelsInput {
|
4702 + | /* StructureGenerator.kt:231 */
|
2816 4703 | #[allow(missing_docs)] // documentation missing in model
|
2817 4704 | pub float: f32,
|
4705 + | /* StructureGenerator.kt:231 */
|
2818 4706 | #[allow(missing_docs)] // documentation missing in model
|
2819 4707 | pub double: f64,
|
4708 + | /* StructureGenerator.kt:201 */
|
2820 4709 | }
|
4710 + | /* StructureGenerator.kt:135 */
|
2821 4711 | impl HttpRequestWithFloatLabelsInput {
|
4712 + | /* StructureGenerator.kt:231 */
|
2822 4713 | #[allow(missing_docs)] // documentation missing in model
|
4714 + | /* StructureGenerator.kt:166 */
|
2823 4715 | pub fn float(&self) -> f32 {
|
4716 + | /* StructureGenerator.kt:168 */
|
2824 4717 | self.float
|
4718 + | /* StructureGenerator.kt:166 */
|
2825 4719 | }
|
4720 + | /* StructureGenerator.kt:231 */
|
2826 4721 | #[allow(missing_docs)] // documentation missing in model
|
4722 + | /* StructureGenerator.kt:166 */
|
2827 4723 | pub fn double(&self) -> f64 {
|
4724 + | /* StructureGenerator.kt:168 */
|
2828 4725 | self.double
|
4726 + | /* StructureGenerator.kt:166 */
|
2829 4727 | }
|
4728 + | /* StructureGenerator.kt:135 */
|
2830 4729 | }
|
4730 + | /* ServerCodegenVisitor.kt:356 */
|
2831 4731 | impl HttpRequestWithFloatLabelsInput {
|
2832 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
4732 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
4733 + | /* ServerBuilderGenerator.kt:295 */
|
2833 4734 | pub fn builder() -> crate::input::http_request_with_float_labels_input::Builder {
|
4735 + | /* ServerBuilderGenerator.kt:296 */
|
2834 4736 | crate::input::http_request_with_float_labels_input::Builder::default()
|
4737 + | /* ServerBuilderGenerator.kt:295 */
|
2835 4738 | }
|
4739 + | /* ServerCodegenVisitor.kt:356 */
|
2836 4740 | }
|
4741 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2837 4742 | impl crate::constrained::Constrained for crate::input::HttpRequestWithFloatLabelsInput {
|
2838 4743 | type Unconstrained = crate::input::http_request_with_float_labels_input::Builder;
|
2839 4744 | }
|
2840 4745 |
|
4746 + | /* StructureGenerator.kt:197 */
|
2841 4747 | #[allow(missing_docs)] // documentation missing in model
|
4748 + | /* RustType.kt:534 */
|
2842 4749 | #[derive(
|
2843 4750 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2844 4751 | )]
|
2845 - | pub struct HttpRequestWithGreedyLabelInPathInput {
|
4752 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithGreedyLabelInPathInput {
|
4753 + | /* StructureGenerator.kt:231 */
|
2846 4754 | #[allow(missing_docs)] // documentation missing in model
|
2847 4755 | pub foo: ::std::string::String,
|
4756 + | /* StructureGenerator.kt:231 */
|
2848 4757 | #[allow(missing_docs)] // documentation missing in model
|
2849 4758 | pub baz: ::std::string::String,
|
4759 + | /* StructureGenerator.kt:201 */
|
2850 4760 | }
|
4761 + | /* StructureGenerator.kt:135 */
|
2851 4762 | impl HttpRequestWithGreedyLabelInPathInput {
|
4763 + | /* StructureGenerator.kt:231 */
|
2852 4764 | #[allow(missing_docs)] // documentation missing in model
|
4765 + | /* StructureGenerator.kt:166 */
|
2853 4766 | pub fn foo(&self) -> &str {
|
4767 + | /* StructureGenerator.kt:171 */
|
2854 4768 | use std::ops::Deref;
|
2855 4769 | self.foo.deref()
|
4770 + | /* StructureGenerator.kt:166 */
|
2856 4771 | }
|
4772 + | /* StructureGenerator.kt:231 */
|
2857 4773 | #[allow(missing_docs)] // documentation missing in model
|
4774 + | /* StructureGenerator.kt:166 */
|
2858 4775 | pub fn baz(&self) -> &str {
|
4776 + | /* StructureGenerator.kt:171 */
|
2859 4777 | use std::ops::Deref;
|
2860 4778 | self.baz.deref()
|
4779 + | /* StructureGenerator.kt:166 */
|
2861 4780 | }
|
4781 + | /* StructureGenerator.kt:135 */
|
2862 4782 | }
|
4783 + | /* ServerCodegenVisitor.kt:356 */
|
2863 4784 | impl HttpRequestWithGreedyLabelInPathInput {
|
2864 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
4785 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
4786 + | /* ServerBuilderGenerator.kt:295 */
|
2865 4787 | pub fn builder() -> crate::input::http_request_with_greedy_label_in_path_input::Builder {
|
4788 + | /* ServerBuilderGenerator.kt:296 */
|
2866 4789 | crate::input::http_request_with_greedy_label_in_path_input::Builder::default()
|
4790 + | /* ServerBuilderGenerator.kt:295 */
|
2867 4791 | }
|
4792 + | /* ServerCodegenVisitor.kt:356 */
|
2868 4793 | }
|
4794 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2869 4795 | impl crate::constrained::Constrained for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
2870 4796 | type Unconstrained = crate::input::http_request_with_greedy_label_in_path_input::Builder;
|
2871 4797 | }
|
2872 4798 |
|
4799 + | /* StructureGenerator.kt:197 */
|
2873 4800 | #[allow(missing_docs)] // documentation missing in model
|
4801 + | /* RustType.kt:534 */
|
2874 4802 | #[derive(
|
2875 4803 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
2876 4804 | )]
|
2877 - | pub struct HttpRequestWithLabelsAndTimestampFormatInput {
|
4805 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsAndTimestampFormatInput {
|
4806 + | /* StructureGenerator.kt:231 */
|
2878 4807 | #[allow(missing_docs)] // documentation missing in model
|
2879 4808 | pub member_epoch_seconds: ::aws_smithy_types::DateTime,
|
4809 + | /* StructureGenerator.kt:231 */
|
2880 4810 | #[allow(missing_docs)] // documentation missing in model
|
2881 4811 | pub member_http_date: ::aws_smithy_types::DateTime,
|
4812 + | /* StructureGenerator.kt:231 */
|
2882 4813 | #[allow(missing_docs)] // documentation missing in model
|
2883 4814 | pub member_date_time: ::aws_smithy_types::DateTime,
|
4815 + | /* StructureGenerator.kt:231 */
|
2884 4816 | #[allow(missing_docs)] // documentation missing in model
|
2885 4817 | pub default_format: ::aws_smithy_types::DateTime,
|
4818 + | /* StructureGenerator.kt:231 */
|
2886 4819 | #[allow(missing_docs)] // documentation missing in model
|
2887 4820 | pub target_epoch_seconds: ::aws_smithy_types::DateTime,
|
4821 + | /* StructureGenerator.kt:231 */
|
2888 4822 | #[allow(missing_docs)] // documentation missing in model
|
2889 4823 | pub target_http_date: ::aws_smithy_types::DateTime,
|
4824 + | /* StructureGenerator.kt:231 */
|
2890 4825 | #[allow(missing_docs)] // documentation missing in model
|
2891 4826 | pub target_date_time: ::aws_smithy_types::DateTime,
|
4827 + | /* StructureGenerator.kt:201 */
|
2892 4828 | }
|
4829 + | /* StructureGenerator.kt:135 */
|
2893 4830 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
4831 + | /* StructureGenerator.kt:231 */
|
2894 4832 | #[allow(missing_docs)] // documentation missing in model
|
4833 + | /* StructureGenerator.kt:166 */
|
2895 4834 | pub fn member_epoch_seconds(&self) -> &::aws_smithy_types::DateTime {
|
4835 + | /* StructureGenerator.kt:172 */
|
2896 4836 | &self.member_epoch_seconds
|
4837 + | /* StructureGenerator.kt:166 */
|
2897 4838 | }
|
4839 + | /* StructureGenerator.kt:231 */
|
2898 4840 | #[allow(missing_docs)] // documentation missing in model
|
4841 + | /* StructureGenerator.kt:166 */
|
2899 4842 | pub fn member_http_date(&self) -> &::aws_smithy_types::DateTime {
|
4843 + | /* StructureGenerator.kt:172 */
|
2900 4844 | &self.member_http_date
|
4845 + | /* StructureGenerator.kt:166 */
|
2901 4846 | }
|
4847 + | /* StructureGenerator.kt:231 */
|
2902 4848 | #[allow(missing_docs)] // documentation missing in model
|
4849 + | /* StructureGenerator.kt:166 */
|
2903 4850 | pub fn member_date_time(&self) -> &::aws_smithy_types::DateTime {
|
4851 + | /* StructureGenerator.kt:172 */
|
2904 4852 | &self.member_date_time
|
4853 + | /* StructureGenerator.kt:166 */
|
2905 4854 | }
|
4855 + | /* StructureGenerator.kt:231 */
|
2906 4856 | #[allow(missing_docs)] // documentation missing in model
|
4857 + | /* StructureGenerator.kt:166 */
|
2907 4858 | pub fn default_format(&self) -> &::aws_smithy_types::DateTime {
|
4859 + | /* StructureGenerator.kt:172 */
|
2908 4860 | &self.default_format
|
4861 + | /* StructureGenerator.kt:166 */
|
2909 4862 | }
|
4863 + | /* StructureGenerator.kt:231 */
|
2910 4864 | #[allow(missing_docs)] // documentation missing in model
|
4865 + | /* StructureGenerator.kt:166 */
|
2911 4866 | pub fn target_epoch_seconds(&self) -> &::aws_smithy_types::DateTime {
|
4867 + | /* StructureGenerator.kt:172 */
|
2912 4868 | &self.target_epoch_seconds
|
4869 + | /* StructureGenerator.kt:166 */
|
2913 4870 | }
|
4871 + | /* StructureGenerator.kt:231 */
|
2914 4872 | #[allow(missing_docs)] // documentation missing in model
|
4873 + | /* StructureGenerator.kt:166 */
|
2915 4874 | pub fn target_http_date(&self) -> &::aws_smithy_types::DateTime {
|
4875 + | /* StructureGenerator.kt:172 */
|
2916 4876 | &self.target_http_date
|
4877 + | /* StructureGenerator.kt:166 */
|
2917 4878 | }
|
4879 + | /* StructureGenerator.kt:231 */
|
2918 4880 | #[allow(missing_docs)] // documentation missing in model
|
4881 + | /* StructureGenerator.kt:166 */
|
2919 4882 | pub fn target_date_time(&self) -> &::aws_smithy_types::DateTime {
|
4883 + | /* StructureGenerator.kt:172 */
|
2920 4884 | &self.target_date_time
|
4885 + | /* StructureGenerator.kt:166 */
|
2921 4886 | }
|
4887 + | /* StructureGenerator.kt:135 */
|
2922 4888 | }
|
4889 + | /* ServerCodegenVisitor.kt:356 */
|
2923 4890 | impl HttpRequestWithLabelsAndTimestampFormatInput {
|
2924 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
4891 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
4892 + | /* ServerBuilderGenerator.kt:295 */
|
2925 4893 | pub fn builder() -> crate::input::http_request_with_labels_and_timestamp_format_input::Builder {
|
4894 + | /* ServerBuilderGenerator.kt:296 */
|
2926 4895 | crate::input::http_request_with_labels_and_timestamp_format_input::Builder::default()
|
4896 + | /* ServerBuilderGenerator.kt:295 */
|
2927 4897 | }
|
4898 + | /* ServerCodegenVisitor.kt:356 */
|
2928 4899 | }
|
4900 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2929 4901 | impl crate::constrained::Constrained
|
2930 4902 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
2931 4903 | {
|
2932 4904 | type Unconstrained = crate::input::http_request_with_labels_and_timestamp_format_input::Builder;
|
2933 4905 | }
|
2934 4906 |
|
4907 + | /* StructureGenerator.kt:197 */
|
2935 4908 | #[allow(missing_docs)] // documentation missing in model
|
4909 + | /* RustType.kt:534 */
|
2936 4910 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2937 - | pub struct HttpRequestWithLabelsInput {
|
4911 + | pub /* StructureGenerator.kt:201 */ struct HttpRequestWithLabelsInput {
|
4912 + | /* StructureGenerator.kt:231 */
|
2938 4913 | #[allow(missing_docs)] // documentation missing in model
|
2939 4914 | pub string: ::std::string::String,
|
4915 + | /* StructureGenerator.kt:231 */
|
2940 4916 | #[allow(missing_docs)] // documentation missing in model
|
2941 4917 | pub short: i16,
|
4918 + | /* StructureGenerator.kt:231 */
|
2942 4919 | #[allow(missing_docs)] // documentation missing in model
|
2943 4920 | pub integer: i32,
|
4921 + | /* StructureGenerator.kt:231 */
|
2944 4922 | #[allow(missing_docs)] // documentation missing in model
|
2945 4923 | pub long: i64,
|
4924 + | /* StructureGenerator.kt:231 */
|
2946 4925 | #[allow(missing_docs)] // documentation missing in model
|
2947 4926 | pub float: f32,
|
4927 + | /* StructureGenerator.kt:231 */
|
2948 4928 | #[allow(missing_docs)] // documentation missing in model
|
2949 4929 | pub double: f64,
|
2950 - | /// Serialized in the path as true or false.
|
4930 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
2951 4931 | pub boolean: bool,
|
2952 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4932 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
2953 4933 | pub timestamp: ::aws_smithy_types::DateTime,
|
4934 + | /* StructureGenerator.kt:201 */
|
2954 4935 | }
|
4936 + | /* StructureGenerator.kt:135 */
|
2955 4937 | impl HttpRequestWithLabelsInput {
|
4938 + | /* StructureGenerator.kt:231 */
|
2956 4939 | #[allow(missing_docs)] // documentation missing in model
|
4940 + | /* StructureGenerator.kt:166 */
|
2957 4941 | pub fn string(&self) -> &str {
|
4942 + | /* StructureGenerator.kt:171 */
|
2958 4943 | use std::ops::Deref;
|
2959 4944 | self.string.deref()
|
4945 + | /* StructureGenerator.kt:166 */
|
2960 4946 | }
|
4947 + | /* StructureGenerator.kt:231 */
|
2961 4948 | #[allow(missing_docs)] // documentation missing in model
|
4949 + | /* StructureGenerator.kt:166 */
|
2962 4950 | pub fn short(&self) -> i16 {
|
4951 + | /* StructureGenerator.kt:168 */
|
2963 4952 | self.short
|
4953 + | /* StructureGenerator.kt:166 */
|
2964 4954 | }
|
4955 + | /* StructureGenerator.kt:231 */
|
2965 4956 | #[allow(missing_docs)] // documentation missing in model
|
4957 + | /* StructureGenerator.kt:166 */
|
2966 4958 | pub fn integer(&self) -> i32 {
|
4959 + | /* StructureGenerator.kt:168 */
|
2967 4960 | self.integer
|
4961 + | /* StructureGenerator.kt:166 */
|
2968 4962 | }
|
4963 + | /* StructureGenerator.kt:231 */
|
2969 4964 | #[allow(missing_docs)] // documentation missing in model
|
4965 + | /* StructureGenerator.kt:166 */
|
2970 4966 | pub fn long(&self) -> i64 {
|
4967 + | /* StructureGenerator.kt:168 */
|
2971 4968 | self.long
|
4969 + | /* StructureGenerator.kt:166 */
|
2972 4970 | }
|
4971 + | /* StructureGenerator.kt:231 */
|
2973 4972 | #[allow(missing_docs)] // documentation missing in model
|
4973 + | /* StructureGenerator.kt:166 */
|
2974 4974 | pub fn float(&self) -> f32 {
|
4975 + | /* StructureGenerator.kt:168 */
|
2975 4976 | self.float
|
4977 + | /* StructureGenerator.kt:166 */
|
2976 4978 | }
|
4979 + | /* StructureGenerator.kt:231 */
|
2977 4980 | #[allow(missing_docs)] // documentation missing in model
|
4981 + | /* StructureGenerator.kt:166 */
|
2978 4982 | pub fn double(&self) -> f64 {
|
4983 + | /* StructureGenerator.kt:168 */
|
2979 4984 | self.double
|
4985 + | /* StructureGenerator.kt:166 */
|
2980 4986 | }
|
2981 - | /// Serialized in the path as true or false.
|
4987 + | /// /* StructureGenerator.kt:231 */Serialized in the path as true or false.
|
4988 + | /* StructureGenerator.kt:166 */
|
2982 4989 | pub fn boolean(&self) -> bool {
|
4990 + | /* StructureGenerator.kt:168 */
|
2983 4991 | self.boolean
|
4992 + | /* StructureGenerator.kt:166 */
|
2984 4993 | }
|
2985 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4994 + | /// /* StructureGenerator.kt:231 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
4995 + | /* StructureGenerator.kt:166 */
|
2986 4996 | pub fn timestamp(&self) -> &::aws_smithy_types::DateTime {
|
4997 + | /* StructureGenerator.kt:172 */
|
2987 4998 | &self.timestamp
|
4999 + | /* StructureGenerator.kt:166 */
|
2988 5000 | }
|
5001 + | /* StructureGenerator.kt:135 */
|
2989 5002 | }
|
5003 + | /* ServerCodegenVisitor.kt:356 */
|
2990 5004 | impl HttpRequestWithLabelsInput {
|
2991 - | /// Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
5005 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
5006 + | /* ServerBuilderGenerator.kt:295 */
|
2992 5007 | pub fn builder() -> crate::input::http_request_with_labels_input::Builder {
|
5008 + | /* ServerBuilderGenerator.kt:296 */
|
2993 5009 | crate::input::http_request_with_labels_input::Builder::default()
|
5010 + | /* ServerBuilderGenerator.kt:295 */
|
2994 5011 | }
|
5012 + | /* ServerCodegenVisitor.kt:356 */
|
2995 5013 | }
|
5014 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
2996 5015 | impl crate::constrained::Constrained for crate::input::HttpRequestWithLabelsInput {
|
2997 5016 | type Unconstrained = crate::input::http_request_with_labels_input::Builder;
|
2998 5017 | }
|
2999 5018 |
|
5019 + | /* StructureGenerator.kt:197 */
|
3000 5020 | #[allow(missing_docs)] // documentation missing in model
|
5021 + | /* RustType.kt:534 */
|
3001 5022 | #[derive(
|
3002 5023 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3003 5024 | )]
|
3004 - | pub struct MediaTypeHeaderInput {
|
5025 + | pub /* StructureGenerator.kt:201 */ struct MediaTypeHeaderInput {
|
5026 + | /* StructureGenerator.kt:231 */
|
3005 5027 | #[allow(missing_docs)] // documentation missing in model
|
3006 5028 | pub json: ::std::option::Option<::std::string::String>,
|
5029 + | /* StructureGenerator.kt:201 */
|
3007 5030 | }
|
5031 + | /* StructureGenerator.kt:135 */
|
3008 5032 | impl MediaTypeHeaderInput {
|
5033 + | /* StructureGenerator.kt:231 */
|
3009 5034 | #[allow(missing_docs)] // documentation missing in model
|
5035 + | /* StructureGenerator.kt:166 */
|
3010 5036 | pub fn json(&self) -> ::std::option::Option<&str> {
|
5037 + | /* StructureGenerator.kt:169 */
|
3011 5038 | self.json.as_deref()
|
5039 + | /* StructureGenerator.kt:166 */
|
3012 5040 | }
|
5041 + | /* StructureGenerator.kt:135 */
|
3013 5042 | }
|
5043 + | /* ServerCodegenVisitor.kt:356 */
|
3014 5044 | impl MediaTypeHeaderInput {
|
3015 - | /// Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
5045 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
5046 + | /* ServerBuilderGenerator.kt:295 */
|
3016 5047 | pub fn builder() -> crate::input::media_type_header_input::Builder {
|
5048 + | /* ServerBuilderGenerator.kt:296 */
|
3017 5049 | crate::input::media_type_header_input::Builder::default()
|
5050 + | /* ServerBuilderGenerator.kt:295 */
|
3018 5051 | }
|
5052 + | /* ServerCodegenVisitor.kt:356 */
|
3019 5053 | }
|
5054 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3020 5055 | impl crate::constrained::Constrained for crate::input::MediaTypeHeaderInput {
|
3021 5056 | type Unconstrained = crate::input::media_type_header_input::Builder;
|
3022 5057 | }
|
3023 5058 |
|
5059 + | /* StructureGenerator.kt:197 */
|
3024 5060 | #[allow(missing_docs)] // documentation missing in model
|
5061 + | /* RustType.kt:534 */
|
3025 5062 | #[derive(
|
3026 5063 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3027 5064 | )]
|
3028 - | pub struct TimestampFormatHeadersInput {
|
5065 + | pub /* StructureGenerator.kt:201 */ struct TimestampFormatHeadersInput {
|
5066 + | /* StructureGenerator.kt:231 */
|
3029 5067 | #[allow(missing_docs)] // documentation missing in model
|
3030 5068 | pub member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5069 + | /* StructureGenerator.kt:231 */
|
3031 5070 | #[allow(missing_docs)] // documentation missing in model
|
3032 5071 | pub member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5072 + | /* StructureGenerator.kt:231 */
|
3033 5073 | #[allow(missing_docs)] // documentation missing in model
|
3034 5074 | pub member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5075 + | /* StructureGenerator.kt:231 */
|
3035 5076 | #[allow(missing_docs)] // documentation missing in model
|
3036 5077 | pub default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5078 + | /* StructureGenerator.kt:231 */
|
3037 5079 | #[allow(missing_docs)] // documentation missing in model
|
3038 5080 | pub target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5081 + | /* StructureGenerator.kt:231 */
|
3039 5082 | #[allow(missing_docs)] // documentation missing in model
|
3040 5083 | pub target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5084 + | /* StructureGenerator.kt:231 */
|
3041 5085 | #[allow(missing_docs)] // documentation missing in model
|
3042 5086 | pub target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
5087 + | /* StructureGenerator.kt:201 */
|
3043 5088 | }
|
5089 + | /* StructureGenerator.kt:135 */
|
3044 5090 | impl TimestampFormatHeadersInput {
|
5091 + | /* StructureGenerator.kt:231 */
|
3045 5092 | #[allow(missing_docs)] // documentation missing in model
|
5093 + | /* StructureGenerator.kt:166 */
|
3046 5094 | pub fn member_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5095 + | /* StructureGenerator.kt:170 */
|
3047 5096 | self.member_epoch_seconds.as_ref()
|
5097 + | /* StructureGenerator.kt:166 */
|
3048 5098 | }
|
5099 + | /* StructureGenerator.kt:231 */
|
3049 5100 | #[allow(missing_docs)] // documentation missing in model
|
5101 + | /* StructureGenerator.kt:166 */
|
3050 5102 | pub fn member_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5103 + | /* StructureGenerator.kt:170 */
|
3051 5104 | self.member_http_date.as_ref()
|
5105 + | /* StructureGenerator.kt:166 */
|
3052 5106 | }
|
5107 + | /* StructureGenerator.kt:231 */
|
3053 5108 | #[allow(missing_docs)] // documentation missing in model
|
5109 + | /* StructureGenerator.kt:166 */
|
3054 5110 | pub fn member_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5111 + | /* StructureGenerator.kt:170 */
|
3055 5112 | self.member_date_time.as_ref()
|
5113 + | /* StructureGenerator.kt:166 */
|
3056 5114 | }
|
5115 + | /* StructureGenerator.kt:231 */
|
3057 5116 | #[allow(missing_docs)] // documentation missing in model
|
5117 + | /* StructureGenerator.kt:166 */
|
3058 5118 | pub fn default_format(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5119 + | /* StructureGenerator.kt:170 */
|
3059 5120 | self.default_format.as_ref()
|
5121 + | /* StructureGenerator.kt:166 */
|
3060 5122 | }
|
5123 + | /* StructureGenerator.kt:231 */
|
3061 5124 | #[allow(missing_docs)] // documentation missing in model
|
5125 + | /* StructureGenerator.kt:166 */
|
3062 5126 | pub fn target_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5127 + | /* StructureGenerator.kt:170 */
|
3063 5128 | self.target_epoch_seconds.as_ref()
|
5129 + | /* StructureGenerator.kt:166 */
|
3064 5130 | }
|
5131 + | /* StructureGenerator.kt:231 */
|
3065 5132 | #[allow(missing_docs)] // documentation missing in model
|
5133 + | /* StructureGenerator.kt:166 */
|
3066 5134 | pub fn target_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5135 + | /* StructureGenerator.kt:170 */
|
3067 5136 | self.target_http_date.as_ref()
|
5137 + | /* StructureGenerator.kt:166 */
|
3068 5138 | }
|
5139 + | /* StructureGenerator.kt:231 */
|
3069 5140 | #[allow(missing_docs)] // documentation missing in model
|
5141 + | /* StructureGenerator.kt:166 */
|
3070 5142 | pub fn target_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
5143 + | /* StructureGenerator.kt:170 */
|
3071 5144 | self.target_date_time.as_ref()
|
5145 + | /* StructureGenerator.kt:166 */
|
3072 5146 | }
|
5147 + | /* StructureGenerator.kt:135 */
|
3073 5148 | }
|
5149 + | /* ServerCodegenVisitor.kt:356 */
|
3074 5150 | impl TimestampFormatHeadersInput {
|
3075 - | /// Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
5151 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
5152 + | /* ServerBuilderGenerator.kt:295 */
|
3076 5153 | pub fn builder() -> crate::input::timestamp_format_headers_input::Builder {
|
5154 + | /* ServerBuilderGenerator.kt:296 */
|
3077 5155 | crate::input::timestamp_format_headers_input::Builder::default()
|
5156 + | /* ServerBuilderGenerator.kt:295 */
|
3078 5157 | }
|
5158 + | /* ServerCodegenVisitor.kt:356 */
|
3079 5159 | }
|
5160 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3080 5161 | impl crate::constrained::Constrained for crate::input::TimestampFormatHeadersInput {
|
3081 5162 | type Unconstrained = crate::input::timestamp_format_headers_input::Builder;
|
3082 5163 | }
|
3083 5164 |
|
5165 + | /* StructureGenerator.kt:197 */
|
3084 5166 | #[allow(missing_docs)] // documentation missing in model
|
5167 + | /* RustType.kt:534 */
|
3085 5168 | #[derive(
|
3086 5169 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3087 5170 | )]
|
3088 - | pub struct NullAndEmptyHeadersServerInput {
|
5171 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersServerInput {
|
5172 + | /* StructureGenerator.kt:231 */
|
3089 5173 | #[allow(missing_docs)] // documentation missing in model
|
3090 5174 | pub a: ::std::option::Option<::std::string::String>,
|
5175 + | /* StructureGenerator.kt:231 */
|
3091 5176 | #[allow(missing_docs)] // documentation missing in model
|
3092 5177 | pub b: ::std::option::Option<::std::string::String>,
|
5178 + | /* StructureGenerator.kt:231 */
|
3093 5179 | #[allow(missing_docs)] // documentation missing in model
|
3094 5180 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5181 + | /* StructureGenerator.kt:201 */
|
3095 5182 | }
|
5183 + | /* StructureGenerator.kt:135 */
|
3096 5184 | impl NullAndEmptyHeadersServerInput {
|
5185 + | /* StructureGenerator.kt:231 */
|
3097 5186 | #[allow(missing_docs)] // documentation missing in model
|
5187 + | /* StructureGenerator.kt:166 */
|
3098 5188 | pub fn a(&self) -> ::std::option::Option<&str> {
|
5189 + | /* StructureGenerator.kt:169 */
|
3099 5190 | self.a.as_deref()
|
5191 + | /* StructureGenerator.kt:166 */
|
3100 5192 | }
|
5193 + | /* StructureGenerator.kt:231 */
|
3101 5194 | #[allow(missing_docs)] // documentation missing in model
|
5195 + | /* StructureGenerator.kt:166 */
|
3102 5196 | pub fn b(&self) -> ::std::option::Option<&str> {
|
5197 + | /* StructureGenerator.kt:169 */
|
3103 5198 | self.b.as_deref()
|
5199 + | /* StructureGenerator.kt:166 */
|
3104 5200 | }
|
5201 + | /* StructureGenerator.kt:231 */
|
3105 5202 | #[allow(missing_docs)] // documentation missing in model
|
5203 + | /* StructureGenerator.kt:166 */
|
3106 5204 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5205 + | /* StructureGenerator.kt:169 */
|
3107 5206 | self.c.as_deref()
|
5207 + | /* StructureGenerator.kt:166 */
|
3108 5208 | }
|
5209 + | /* StructureGenerator.kt:135 */
|
3109 5210 | }
|
5211 + | /* ServerCodegenVisitor.kt:356 */
|
3110 5212 | impl NullAndEmptyHeadersServerInput {
|
3111 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
5213 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
5214 + | /* ServerBuilderGenerator.kt:295 */
|
3112 5215 | pub fn builder() -> crate::input::null_and_empty_headers_server_input::Builder {
|
5216 + | /* ServerBuilderGenerator.kt:296 */
|
3113 5217 | crate::input::null_and_empty_headers_server_input::Builder::default()
|
5218 + | /* ServerBuilderGenerator.kt:295 */
|
3114 5219 | }
|
5220 + | /* ServerCodegenVisitor.kt:356 */
|
3115 5221 | }
|
5222 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3116 5223 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersServerInput {
|
3117 5224 | type Unconstrained = crate::input::null_and_empty_headers_server_input::Builder;
|
3118 5225 | }
|
3119 5226 |
|
5227 + | /* StructureGenerator.kt:197 */
|
3120 5228 | #[allow(missing_docs)] // documentation missing in model
|
5229 + | /* RustType.kt:534 */
|
3121 5230 | #[derive(
|
3122 5231 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3123 5232 | )]
|
3124 - | pub struct NullAndEmptyHeadersClientInput {
|
5233 + | pub /* StructureGenerator.kt:201 */ struct NullAndEmptyHeadersClientInput {
|
5234 + | /* StructureGenerator.kt:231 */
|
3125 5235 | #[allow(missing_docs)] // documentation missing in model
|
3126 5236 | pub a: ::std::option::Option<::std::string::String>,
|
5237 + | /* StructureGenerator.kt:231 */
|
3127 5238 | #[allow(missing_docs)] // documentation missing in model
|
3128 5239 | pub b: ::std::option::Option<::std::string::String>,
|
5240 + | /* StructureGenerator.kt:231 */
|
3129 5241 | #[allow(missing_docs)] // documentation missing in model
|
3130 5242 | pub c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5243 + | /* StructureGenerator.kt:201 */
|
3131 5244 | }
|
5245 + | /* StructureGenerator.kt:135 */
|
3132 5246 | impl NullAndEmptyHeadersClientInput {
|
5247 + | /* StructureGenerator.kt:231 */
|
3133 5248 | #[allow(missing_docs)] // documentation missing in model
|
5249 + | /* StructureGenerator.kt:166 */
|
3134 5250 | pub fn a(&self) -> ::std::option::Option<&str> {
|
5251 + | /* StructureGenerator.kt:169 */
|
3135 5252 | self.a.as_deref()
|
5253 + | /* StructureGenerator.kt:166 */
|
3136 5254 | }
|
5255 + | /* StructureGenerator.kt:231 */
|
3137 5256 | #[allow(missing_docs)] // documentation missing in model
|
5257 + | /* StructureGenerator.kt:166 */
|
3138 5258 | pub fn b(&self) -> ::std::option::Option<&str> {
|
5259 + | /* StructureGenerator.kt:169 */
|
3139 5260 | self.b.as_deref()
|
5261 + | /* StructureGenerator.kt:166 */
|
3140 5262 | }
|
5263 + | /* StructureGenerator.kt:231 */
|
3141 5264 | #[allow(missing_docs)] // documentation missing in model
|
5265 + | /* StructureGenerator.kt:166 */
|
3142 5266 | pub fn c(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5267 + | /* StructureGenerator.kt:169 */
|
3143 5268 | self.c.as_deref()
|
5269 + | /* StructureGenerator.kt:166 */
|
3144 5270 | }
|
5271 + | /* StructureGenerator.kt:135 */
|
3145 5272 | }
|
5273 + | /* ServerCodegenVisitor.kt:356 */
|
3146 5274 | impl NullAndEmptyHeadersClientInput {
|
3147 - | /// Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
5275 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
5276 + | /* ServerBuilderGenerator.kt:295 */
|
3148 5277 | pub fn builder() -> crate::input::null_and_empty_headers_client_input::Builder {
|
5278 + | /* ServerBuilderGenerator.kt:296 */
|
3149 5279 | crate::input::null_and_empty_headers_client_input::Builder::default()
|
5280 + | /* ServerBuilderGenerator.kt:295 */
|
3150 5281 | }
|
5282 + | /* ServerCodegenVisitor.kt:356 */
|
3151 5283 | }
|
5284 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3152 5285 | impl crate::constrained::Constrained for crate::input::NullAndEmptyHeadersClientInput {
|
3153 5286 | type Unconstrained = crate::input::null_and_empty_headers_client_input::Builder;
|
3154 5287 | }
|
3155 5288 |
|
5289 + | /* StructureGenerator.kt:197 */
|
3156 5290 | #[allow(missing_docs)] // documentation missing in model
|
5291 + | /* RustType.kt:534 */
|
3157 5292 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3158 - | pub struct InputAndOutputWithHeadersInput {
|
5293 + | pub /* StructureGenerator.kt:201 */ struct InputAndOutputWithHeadersInput {
|
5294 + | /* StructureGenerator.kt:231 */
|
3159 5295 | #[allow(missing_docs)] // documentation missing in model
|
3160 5296 | pub header_string: ::std::option::Option<::std::string::String>,
|
5297 + | /* StructureGenerator.kt:231 */
|
3161 5298 | #[allow(missing_docs)] // documentation missing in model
|
3162 5299 | pub header_byte: ::std::option::Option<i8>,
|
5300 + | /* StructureGenerator.kt:231 */
|
3163 5301 | #[allow(missing_docs)] // documentation missing in model
|
3164 5302 | pub header_short: ::std::option::Option<i16>,
|
5303 + | /* StructureGenerator.kt:231 */
|
3165 5304 | #[allow(missing_docs)] // documentation missing in model
|
3166 5305 | pub header_integer: ::std::option::Option<i32>,
|
5306 + | /* StructureGenerator.kt:231 */
|
3167 5307 | #[allow(missing_docs)] // documentation missing in model
|
3168 5308 | pub header_long: ::std::option::Option<i64>,
|
5309 + | /* StructureGenerator.kt:231 */
|
3169 5310 | #[allow(missing_docs)] // documentation missing in model
|
3170 5311 | pub header_float: ::std::option::Option<f32>,
|
5312 + | /* StructureGenerator.kt:231 */
|
3171 5313 | #[allow(missing_docs)] // documentation missing in model
|
3172 5314 | pub header_double: ::std::option::Option<f64>,
|
5315 + | /* StructureGenerator.kt:231 */
|
3173 5316 | #[allow(missing_docs)] // documentation missing in model
|
3174 5317 | pub header_true_bool: ::std::option::Option<bool>,
|
5318 + | /* StructureGenerator.kt:231 */
|
3175 5319 | #[allow(missing_docs)] // documentation missing in model
|
3176 5320 | pub header_false_bool: ::std::option::Option<bool>,
|
5321 + | /* StructureGenerator.kt:231 */
|
3177 5322 | #[allow(missing_docs)] // documentation missing in model
|
3178 5323 | pub header_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5324 + | /* StructureGenerator.kt:231 */
|
3179 5325 | #[allow(missing_docs)] // documentation missing in model
|
3180 5326 | pub header_string_set: ::std::option::Option<crate::model::StringSet>,
|
5327 + | /* StructureGenerator.kt:231 */
|
3181 5328 | #[allow(missing_docs)] // documentation missing in model
|
3182 5329 | pub header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5330 + | /* StructureGenerator.kt:231 */
|
3183 5331 | #[allow(missing_docs)] // documentation missing in model
|
3184 5332 | pub header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
5333 + | /* StructureGenerator.kt:231 */
|
3185 5334 | #[allow(missing_docs)] // documentation missing in model
|
3186 5335 | pub header_timestamp_list: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
5336 + | /* StructureGenerator.kt:231 */
|
3187 5337 | #[allow(missing_docs)] // documentation missing in model
|
3188 5338 | pub header_enum: ::std::option::Option<crate::model::FooEnum>,
|
5339 + | /* StructureGenerator.kt:231 */
|
3189 5340 | #[allow(missing_docs)] // documentation missing in model
|
3190 5341 | pub header_enum_list: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
5342 + | /* StructureGenerator.kt:231 */
|
3191 5343 | #[allow(missing_docs)] // documentation missing in model
|
3192 5344 | pub header_integer_enum: ::std::option::Option<i32>,
|
5345 + | /* StructureGenerator.kt:231 */
|
3193 5346 | #[allow(missing_docs)] // documentation missing in model
|
3194 5347 | pub header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
5348 + | /* StructureGenerator.kt:201 */
|
3195 5349 | }
|
5350 + | /* StructureGenerator.kt:135 */
|
3196 5351 | impl InputAndOutputWithHeadersInput {
|
5352 + | /* StructureGenerator.kt:231 */
|
3197 5353 | #[allow(missing_docs)] // documentation missing in model
|
5354 + | /* StructureGenerator.kt:166 */
|
3198 5355 | pub fn header_string(&self) -> ::std::option::Option<&str> {
|
5356 + | /* StructureGenerator.kt:169 */
|
3199 5357 | self.header_string.as_deref()
|
5358 + | /* StructureGenerator.kt:166 */
|
3200 5359 | }
|
5360 + | /* StructureGenerator.kt:231 */
|
3201 5361 | #[allow(missing_docs)] // documentation missing in model
|
5362 + | /* StructureGenerator.kt:166 */
|
3202 5363 | pub fn header_byte(&self) -> ::std::option::Option<i8> {
|
5364 + | /* StructureGenerator.kt:168 */
|
3203 5365 | self.header_byte
|
5366 + | /* StructureGenerator.kt:166 */
|
3204 5367 | }
|
5368 + | /* StructureGenerator.kt:231 */
|
3205 5369 | #[allow(missing_docs)] // documentation missing in model
|
5370 + | /* StructureGenerator.kt:166 */
|
3206 5371 | pub fn header_short(&self) -> ::std::option::Option<i16> {
|
5372 + | /* StructureGenerator.kt:168 */
|
3207 5373 | self.header_short
|
5374 + | /* StructureGenerator.kt:166 */
|
3208 5375 | }
|
5376 + | /* StructureGenerator.kt:231 */
|
3209 5377 | #[allow(missing_docs)] // documentation missing in model
|
5378 + | /* StructureGenerator.kt:166 */
|
3210 5379 | pub fn header_integer(&self) -> ::std::option::Option<i32> {
|
5380 + | /* StructureGenerator.kt:168 */
|
3211 5381 | self.header_integer
|
5382 + | /* StructureGenerator.kt:166 */
|
3212 5383 | }
|
5384 + | /* StructureGenerator.kt:231 */
|
3213 5385 | #[allow(missing_docs)] // documentation missing in model
|
5386 + | /* StructureGenerator.kt:166 */
|
3214 5387 | pub fn header_long(&self) -> ::std::option::Option<i64> {
|
5388 + | /* StructureGenerator.kt:168 */
|
3215 5389 | self.header_long
|
5390 + | /* StructureGenerator.kt:166 */
|
3216 5391 | }
|
5392 + | /* StructureGenerator.kt:231 */
|
3217 5393 | #[allow(missing_docs)] // documentation missing in model
|
5394 + | /* StructureGenerator.kt:166 */
|
3218 5395 | pub fn header_float(&self) -> ::std::option::Option<f32> {
|
5396 + | /* StructureGenerator.kt:168 */
|
3219 5397 | self.header_float
|
5398 + | /* StructureGenerator.kt:166 */
|
3220 5399 | }
|
5400 + | /* StructureGenerator.kt:231 */
|
3221 5401 | #[allow(missing_docs)] // documentation missing in model
|
5402 + | /* StructureGenerator.kt:166 */
|
3222 5403 | pub fn header_double(&self) -> ::std::option::Option<f64> {
|
5404 + | /* StructureGenerator.kt:168 */
|
3223 5405 | self.header_double
|
5406 + | /* StructureGenerator.kt:166 */
|
3224 5407 | }
|
5408 + | /* StructureGenerator.kt:231 */
|
3225 5409 | #[allow(missing_docs)] // documentation missing in model
|
5410 + | /* StructureGenerator.kt:166 */
|
3226 5411 | pub fn header_true_bool(&self) -> ::std::option::Option<bool> {
|
5412 + | /* StructureGenerator.kt:168 */
|
3227 5413 | self.header_true_bool
|
5414 + | /* StructureGenerator.kt:166 */
|
3228 5415 | }
|
5416 + | /* StructureGenerator.kt:231 */
|
3229 5417 | #[allow(missing_docs)] // documentation missing in model
|
5418 + | /* StructureGenerator.kt:166 */
|
3230 5419 | pub fn header_false_bool(&self) -> ::std::option::Option<bool> {
|
5420 + | /* StructureGenerator.kt:168 */
|
3231 5421 | self.header_false_bool
|
5422 + | /* StructureGenerator.kt:166 */
|
3232 5423 | }
|
5424 + | /* StructureGenerator.kt:231 */
|
3233 5425 | #[allow(missing_docs)] // documentation missing in model
|
5426 + | /* StructureGenerator.kt:166 */
|
3234 5427 | pub fn header_string_list(&self) -> ::std::option::Option<&[::std::string::String]> {
|
5428 + | /* StructureGenerator.kt:169 */
|
3235 5429 | self.header_string_list.as_deref()
|
5430 + | /* StructureGenerator.kt:166 */
|
3236 5431 | }
|
5432 + | /* StructureGenerator.kt:231 */
|
3237 5433 | #[allow(missing_docs)] // documentation missing in model
|
5434 + | /* StructureGenerator.kt:166 */
|
3238 5435 | pub fn header_string_set(&self) -> ::std::option::Option<&crate::model::StringSet> {
|
5436 + | /* StructureGenerator.kt:170 */
|
3239 5437 | self.header_string_set.as_ref()
|
5438 + | /* StructureGenerator.kt:166 */
|
3240 5439 | }
|
5440 + | /* StructureGenerator.kt:231 */
|
3241 5441 | #[allow(missing_docs)] // documentation missing in model
|
5442 + | /* StructureGenerator.kt:166 */
|
3242 5443 | pub fn header_integer_list(&self) -> ::std::option::Option<&[i32]> {
|
5444 + | /* StructureGenerator.kt:169 */
|
3243 5445 | self.header_integer_list.as_deref()
|
5446 + | /* StructureGenerator.kt:166 */
|
3244 5447 | }
|
5448 + | /* StructureGenerator.kt:231 */
|
3245 5449 | #[allow(missing_docs)] // documentation missing in model
|
5450 + | /* StructureGenerator.kt:166 */
|
3246 5451 | pub fn header_boolean_list(&self) -> ::std::option::Option<&[bool]> {
|
5452 + | /* StructureGenerator.kt:169 */
|
3247 5453 | self.header_boolean_list.as_deref()
|
5454 + | /* StructureGenerator.kt:166 */
|
3248 5455 | }
|
5456 + | /* StructureGenerator.kt:231 */
|
3249 5457 | #[allow(missing_docs)] // documentation missing in model
|
5458 + | /* StructureGenerator.kt:166 */
|
3250 5459 | pub fn header_timestamp_list(&self) -> ::std::option::Option<&[::aws_smithy_types::DateTime]> {
|
5460 + | /* StructureGenerator.kt:169 */
|
3251 5461 | self.header_timestamp_list.as_deref()
|
5462 + | /* StructureGenerator.kt:166 */
|
3252 5463 | }
|
5464 + | /* StructureGenerator.kt:231 */
|
3253 5465 | #[allow(missing_docs)] // documentation missing in model
|
5466 + | /* StructureGenerator.kt:166 */
|
3254 5467 | pub fn header_enum(&self) -> ::std::option::Option<&crate::model::FooEnum> {
|
5468 + | /* StructureGenerator.kt:170 */
|
3255 5469 | self.header_enum.as_ref()
|
5470 + | /* StructureGenerator.kt:166 */
|
3256 5471 | }
|
5472 + | /* StructureGenerator.kt:231 */
|
3257 5473 | #[allow(missing_docs)] // documentation missing in model
|
5474 + | /* StructureGenerator.kt:166 */
|
3258 5475 | pub fn header_enum_list(&self) -> ::std::option::Option<&[crate::model::FooEnum]> {
|
5476 + | /* StructureGenerator.kt:169 */
|
3259 5477 | self.header_enum_list.as_deref()
|
5478 + | /* StructureGenerator.kt:166 */
|
3260 5479 | }
|
5480 + | /* StructureGenerator.kt:231 */
|
3261 5481 | #[allow(missing_docs)] // documentation missing in model
|
5482 + | /* StructureGenerator.kt:166 */
|
3262 5483 | pub fn header_integer_enum(&self) -> ::std::option::Option<i32> {
|
5484 + | /* StructureGenerator.kt:168 */
|
3263 5485 | self.header_integer_enum
|
5486 + | /* StructureGenerator.kt:166 */
|
3264 5487 | }
|
5488 + | /* StructureGenerator.kt:231 */
|
3265 5489 | #[allow(missing_docs)] // documentation missing in model
|
5490 + | /* StructureGenerator.kt:166 */
|
3266 5491 | pub fn header_integer_enum_list(&self) -> ::std::option::Option<&[i32]> {
|
5492 + | /* StructureGenerator.kt:169 */
|
3267 5493 | self.header_integer_enum_list.as_deref()
|
5494 + | /* StructureGenerator.kt:166 */
|
3268 5495 | }
|
5496 + | /* StructureGenerator.kt:135 */
|
3269 5497 | }
|
5498 + | /* ServerCodegenVisitor.kt:356 */
|
3270 5499 | impl InputAndOutputWithHeadersInput {
|
3271 - | /// Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
5500 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
5501 + | /* ServerBuilderGenerator.kt:295 */
|
3272 5502 | pub fn builder() -> crate::input::input_and_output_with_headers_input::Builder {
|
5503 + | /* ServerBuilderGenerator.kt:296 */
|
3273 5504 | crate::input::input_and_output_with_headers_input::Builder::default()
|
5505 + | /* ServerBuilderGenerator.kt:295 */
|
3274 5506 | }
|
5507 + | /* ServerCodegenVisitor.kt:356 */
|
3275 5508 | }
|
5509 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3276 5510 | impl crate::constrained::Constrained for crate::input::InputAndOutputWithHeadersInput {
|
3277 5511 | type Unconstrained = crate::input::input_and_output_with_headers_input::Builder;
|
3278 5512 | }
|
3279 5513 |
|
5514 + | /* StructureGenerator.kt:197 */
|
3280 5515 | #[allow(missing_docs)] // documentation missing in model
|
5516 + | /* RustType.kt:534 */
|
3281 5517 | #[derive(
|
3282 5518 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3283 5519 | )]
|
3284 - | pub struct UnitInputAndOutputInput {}
|
5520 + | pub /* StructureGenerator.kt:201 */ struct UnitInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
5521 + | /* ServerCodegenVisitor.kt:356 */
|
3285 5522 | impl UnitInputAndOutputInput {
|
3286 - | /// Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
5523 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
5524 + | /* ServerBuilderGenerator.kt:295 */
|
3287 5525 | pub fn builder() -> crate::input::unit_input_and_output_input::Builder {
|
5526 + | /* ServerBuilderGenerator.kt:296 */
|
3288 5527 | crate::input::unit_input_and_output_input::Builder::default()
|
5528 + | /* ServerBuilderGenerator.kt:295 */
|
3289 5529 | }
|
5530 + | /* ServerCodegenVisitor.kt:356 */
|
3290 5531 | }
|
5532 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3291 5533 | impl crate::constrained::Constrained for crate::input::UnitInputAndOutputInput {
|
3292 5534 | type Unconstrained = crate::input::unit_input_and_output_input::Builder;
|
3293 5535 | }
|
3294 5536 |
|
5537 + | /* StructureGenerator.kt:197 */
|
3295 5538 | #[allow(missing_docs)] // documentation missing in model
|
5539 + | /* RustType.kt:534 */
|
3296 5540 | #[derive(
|
3297 5541 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3298 5542 | )]
|
3299 - | pub struct EmptyInputAndEmptyOutputInput {}
|
5543 + | pub /* StructureGenerator.kt:201 */ struct EmptyInputAndEmptyOutputInput {/* StructureGenerator.kt:201 */}
|
5544 + | /* ServerCodegenVisitor.kt:356 */
|
3300 5545 | impl EmptyInputAndEmptyOutputInput {
|
3301 - | /// Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
5546 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
5547 + | /* ServerBuilderGenerator.kt:295 */
|
3302 5548 | pub fn builder() -> crate::input::empty_input_and_empty_output_input::Builder {
|
5549 + | /* ServerBuilderGenerator.kt:296 */
|
3303 5550 | crate::input::empty_input_and_empty_output_input::Builder::default()
|
5551 + | /* ServerBuilderGenerator.kt:295 */
|
3304 5552 | }
|
5553 + | /* ServerCodegenVisitor.kt:356 */
|
3305 5554 | }
|
5555 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3306 5556 | impl crate::constrained::Constrained for crate::input::EmptyInputAndEmptyOutputInput {
|
3307 5557 | type Unconstrained = crate::input::empty_input_and_empty_output_input::Builder;
|
3308 5558 | }
|
3309 5559 |
|
5560 + | /* StructureGenerator.kt:197 */
|
3310 5561 | #[allow(missing_docs)] // documentation missing in model
|
5562 + | /* RustType.kt:534 */
|
3311 5563 | #[derive(
|
3312 5564 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3313 5565 | )]
|
3314 - | pub struct NoInputAndOutputInput {}
|
5566 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndOutputInput {/* StructureGenerator.kt:201 */}
|
5567 + | /* ServerCodegenVisitor.kt:356 */
|
3315 5568 | impl NoInputAndOutputInput {
|
3316 - | /// Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
5569 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
5570 + | /* ServerBuilderGenerator.kt:295 */
|
3317 5571 | pub fn builder() -> crate::input::no_input_and_output_input::Builder {
|
5572 + | /* ServerBuilderGenerator.kt:296 */
|
3318 5573 | crate::input::no_input_and_output_input::Builder::default()
|
5574 + | /* ServerBuilderGenerator.kt:295 */
|
3319 5575 | }
|
5576 + | /* ServerCodegenVisitor.kt:356 */
|
3320 5577 | }
|
5578 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3321 5579 | impl crate::constrained::Constrained for crate::input::NoInputAndOutputInput {
|
3322 5580 | type Unconstrained = crate::input::no_input_and_output_input::Builder;
|
3323 5581 | }
|
3324 5582 |
|
5583 + | /* StructureGenerator.kt:197 */
|
3325 5584 | #[allow(missing_docs)] // documentation missing in model
|
5585 + | /* RustType.kt:534 */
|
3326 5586 | #[derive(
|
3327 5587 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
3328 5588 | )]
|
3329 - | pub struct NoInputAndNoOutputInput {}
|
5589 + | pub /* StructureGenerator.kt:201 */ struct NoInputAndNoOutputInput {/* StructureGenerator.kt:201 */}
|
5590 + | /* ServerCodegenVisitor.kt:356 */
|
3330 5591 | impl NoInputAndNoOutputInput {
|
3331 - | /// Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
5592 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
5593 + | /* ServerBuilderGenerator.kt:295 */
|
3332 5594 | pub fn builder() -> crate::input::no_input_and_no_output_input::Builder {
|
5595 + | /* ServerBuilderGenerator.kt:296 */
|
3333 5596 | crate::input::no_input_and_no_output_input::Builder::default()
|
5597 + | /* ServerBuilderGenerator.kt:295 */
|
3334 5598 | }
|
5599 + | /* ServerCodegenVisitor.kt:356 */
|
3335 5600 | }
|
5601 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
3336 5602 | impl crate::constrained::Constrained for crate::input::NoInputAndNoOutputInput {
|
3337 5603 | type Unconstrained = crate::input::no_input_and_no_output_input::Builder;
|
3338 5604 | }
|
3339 - | /// See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5605 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
3340 5606 | pub mod operation_with_nested_structure_input {
|
3341 5607 |
|
5608 + | /* RustType.kt:534 */
|
3342 5609 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3343 - | /// Holds one variant for each of the ways the builder can fail.
|
5610 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5611 + | /* RustType.kt:534 */
|
3344 5612 | #[non_exhaustive]
|
5613 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3345 5614 | #[allow(clippy::enum_variant_names)]
|
3346 5615 | pub enum ConstraintViolation {
|
3347 - | /// `top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
5616 + | /// /* ServerBuilderConstraintViolations.kt:137 */`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`.
|
5617 + | /* ServerBuilderConstraintViolations.kt:144 */
|
3348 5618 | MissingTopLevel,
|
3349 - | /// Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
5619 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`.
|
5620 + | /* RustType.kt:534 */
|
3350 5621 | #[doc(hidden)]
|
5622 + | /* ServerBuilderConstraintViolations.kt:165 */
|
3351 5623 | TopLevel(crate::model::top_level::ConstraintViolation),
|
5624 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3352 5625 | }
|
5626 + | /* ServerBuilderConstraintViolations.kt:116 */
|
3353 5627 | impl ::std::fmt::Display for ConstraintViolation {
|
5628 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3354 5629 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5630 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3355 5631 | match self {
|
3356 - | ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
3357 - | ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
3358 - | }
|
5632 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTopLevel => write!(f, "`top_level` was not provided but it is required when building `OperationWithNestedStructureInput`"),
|
5633 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::TopLevel(_) => write!(f, "constraint violation occurred building member `top_level` when building `OperationWithNestedStructureInput`"),
|
5634 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
5635 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3359 5636 | }
|
5637 + | /* ServerBuilderConstraintViolations.kt:116 */
|
3360 5638 | }
|
5639 + | /* ServerBuilderConstraintViolations.kt:83 */
|
3361 5640 | impl ::std::error::Error for ConstraintViolation {}
|
5641 + | /* ServerBuilderConstraintViolations.kt:172 */
|
3362 5642 | impl ConstraintViolation {
|
3363 5643 | pub(crate) fn as_validation_exception_field(
|
3364 5644 | self,
|
3365 5645 | path: ::std::string::String,
|
3366 5646 | ) -> crate::model::ValidationExceptionField {
|
3367 5647 | match self {
|
3368 5648 | ConstraintViolation::MissingTopLevel => crate::model::ValidationExceptionField {
|
3369 5649 | message: format!("Value at '{}/topLevel' failed to satisfy constraint: Member must not be null", path),
|
3370 5650 | path: path + "/topLevel",
|
3371 5651 | },
|
3372 5652 | ConstraintViolation::TopLevel(inner) => inner.as_validation_exception_field(path + "/topLevel"),
|
3373 5653 | }
|
3374 5654 | }
|
3375 5655 | }
|
5656 + | /* ServerBuilderGenerator.kt:234 */
|
3376 5657 | impl ::std::convert::From<ConstraintViolation>
|
3377 5658 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3378 5659 | {
|
3379 5660 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3380 5661 | let first_validation_exception_field =
|
3381 5662 | constraint_violation.as_validation_exception_field("".to_owned());
|
3382 5663 | let validation_exception = crate::error::ValidationException {
|
3383 5664 | message: format!(
|
3384 5665 | "1 validation error detected. {}",
|
3385 5666 | &first_validation_exception_field.message
|
3386 5667 | ),
|
3387 5668 | field_list: Some(vec![first_validation_exception_field]),
|
3388 5669 | };
|
3389 5670 | Self::ConstraintViolation(
|
3390 5671 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3391 5672 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3392 5673 | )
|
3393 5674 | }
|
3394 5675 | }
|
5676 + | /* ServerBuilderGenerator.kt:244 */
|
3395 5677 | impl ::std::convert::From<Builder>
|
3396 5678 | for crate::constrained::MaybeConstrained<crate::input::OperationWithNestedStructureInput>
|
3397 5679 | {
|
3398 5680 | fn from(builder: Builder) -> Self {
|
3399 5681 | Self::Unconstrained(builder)
|
3400 5682 | }
|
3401 5683 | }
|
5684 + | /* ServerBuilderGenerator.kt:446 */
|
3402 5685 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithNestedStructureInput {
|
3403 5686 | type Error = ConstraintViolation;
|
3404 5687 |
|
3405 5688 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3406 5689 | builder.build()
|
3407 5690 | }
|
3408 5691 | }
|
3409 - | /// A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5692 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5693 + | /* RustType.kt:534 */
|
3410 5694 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5695 + | /* ServerBuilderGenerator.kt:211 */
|
3411 5696 | pub struct Builder {
|
5697 + | /* ServerBuilderGenerator.kt:308 */
|
3412 5698 | pub(crate) top_level:
|
3413 5699 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::TopLevel>>,
|
5700 + | /* ServerBuilderGenerator.kt:211 */
|
3414 5701 | }
|
5702 + | /* ServerBuilderGenerator.kt:215 */
|
3415 5703 | impl Builder {
|
5704 + | /* ServerBuilderGenerator.kt:331 */
|
3416 5705 | #[allow(missing_docs)] // documentation missing in model
|
5706 + | /* ServerBuilderGenerator.kt:343 */
|
3417 5707 | pub fn top_level(mut self, input: crate::model::TopLevel) -> Self {
|
3418 - | self.top_level = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5708 + | /* ServerBuilderGenerator.kt:344 */
|
5709 + | self.top_level =
|
5710 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5711 + | /* ServerBuilderGenerator.kt:372 */crate::constrained::MaybeConstrained::Constrained(input)
|
5712 + | /* ServerBuilderGenerator.kt:345 */)
|
5713 + | /* ServerBuilderGenerator.kt:344 */;
|
3419 5714 | self
|
5715 + | /* ServerBuilderGenerator.kt:343 */
|
3420 5716 | }
|
5717 + | /* ServerBuilderGenerator.kt:426 */
|
3421 5718 | #[allow(missing_docs)] // documentation missing in model
|
5719 + | /* ServerBuilderGenerator.kt:428 */
|
3422 5720 | pub(crate) fn set_top_level(
|
3423 5721 | mut self,
|
3424 5722 | input: impl ::std::convert::Into<
|
3425 5723 | crate::constrained::MaybeConstrained<crate::model::TopLevel>,
|
3426 5724 | >,
|
3427 5725 | ) -> Self {
|
5726 + | /* ServerBuilderGenerator.kt:429 */
|
3428 5727 | self.top_level = Some(input.into());
|
3429 5728 | self
|
5729 + | /* ServerBuilderGenerator.kt:428 */
|
3430 5730 | }
|
3431 - | /// Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
3432 - | ///
|
5731 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput).
|
5732 + | /// /* ServerBuilderGenerator.kt:260 */
|
3433 5733 | /// The builder fails to construct a [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) if a [`ConstraintViolation`] occurs.
|
3434 5734 | ///
|
3435 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5735 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5736 + | /* ServerBuilderGenerator.kt:271 */
|
3436 5737 | pub fn build(
|
3437 5738 | self,
|
3438 5739 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
3439 5740 | self.build_enforcing_all_constraints()
|
3440 5741 | }
|
5742 + | /* ServerBuilderGenerator.kt:283 */
|
3441 5743 | fn build_enforcing_all_constraints(
|
3442 5744 | self,
|
3443 5745 | ) -> Result<crate::input::OperationWithNestedStructureInput, ConstraintViolation> {
|
3444 - | Ok(crate::input::OperationWithNestedStructureInput {
|
5746 + | /* ServerBuilderGenerator.kt:287 */
|
5747 + | Ok(
|
5748 + | /* ServerBuilderGenerator.kt:542 */
|
5749 + | crate::input::OperationWithNestedStructureInput {
|
5750 + | /* ServerBuilderGenerator.kt:546 */
|
3445 5751 | top_level: self
|
3446 5752 | .top_level
|
5753 + | /* ServerBuilderGenerator.kt:602 */
|
3447 5754 | .map(|v| match v {
|
3448 5755 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3449 5756 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3450 5757 | })
|
5758 + | /* ServerBuilderGenerator.kt:614 */
|
3451 5759 | .map(|res| res.map_err(ConstraintViolation::TopLevel))
|
3452 5760 | .transpose()?
|
5761 + | /* ServerBuilderGenerator.kt:569 */
|
3453 5762 | .ok_or(ConstraintViolation::MissingTopLevel)?,
|
3454 - | })
|
5763 + | /* ServerBuilderGenerator.kt:542 */
|
5764 + | }, /* ServerBuilderGenerator.kt:287 */
|
5765 + | )
|
5766 + | /* ServerBuilderGenerator.kt:283 */
|
3455 5767 | }
|
5768 + | /* ServerBuilderGenerator.kt:215 */
|
3456 5769 | }
|
5770 + |
|
5771 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3457 5772 | }
|
3458 - | /// See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5773 + | /// /* ServerBuilderGenerator.kt:171 */See [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
3459 5774 | pub mod operation_with_defaults_input {
|
3460 5775 |
|
5776 + | /* RustType.kt:534 */
|
3461 5777 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3462 - | /// Holds one variant for each of the ways the builder can fail.
|
5778 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5779 + | /* RustType.kt:534 */
|
3463 5780 | #[non_exhaustive]
|
5781 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3464 5782 | #[allow(clippy::enum_variant_names)]
|
3465 5783 | pub enum ConstraintViolation {
|
3466 - | /// Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
5784 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`.
|
5785 + | /* RustType.kt:534 */
|
3467 5786 | #[doc(hidden)]
|
5787 + | /* ServerBuilderConstraintViolations.kt:165 */
|
3468 5788 | Defaults(crate::model::defaults::ConstraintViolation),
|
5789 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3469 5790 | }
|
5791 + | /* ServerBuilderConstraintViolations.kt:116 */
|
3470 5792 | impl ::std::fmt::Display for ConstraintViolation {
|
5793 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3471 5794 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5795 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3472 5796 | match self {
|
3473 - | ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
3474 - | }
|
5797 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::Defaults(_) => write!(f, "constraint violation occurred building member `defaults` when building `OperationWithDefaultsInput`"),
|
5798 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
5799 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3475 5800 | }
|
5801 + | /* ServerBuilderConstraintViolations.kt:116 */
|
3476 5802 | }
|
5803 + | /* ServerBuilderConstraintViolations.kt:83 */
|
3477 5804 | impl ::std::error::Error for ConstraintViolation {}
|
5805 + | /* ServerBuilderConstraintViolations.kt:172 */
|
3478 5806 | impl ConstraintViolation {
|
3479 5807 | pub(crate) fn as_validation_exception_field(
|
3480 5808 | self,
|
3481 5809 | path: ::std::string::String,
|
3482 5810 | ) -> crate::model::ValidationExceptionField {
|
3483 5811 | match self {
|
3484 5812 | ConstraintViolation::Defaults(inner) => {
|
3485 5813 | inner.as_validation_exception_field(path + "/defaults")
|
3486 5814 | }
|
3487 5815 | }
|
3488 5816 | }
|
3489 5817 | }
|
5818 + | /* ServerBuilderGenerator.kt:234 */
|
3490 5819 | impl ::std::convert::From<ConstraintViolation>
|
3491 5820 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3492 5821 | {
|
3493 5822 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3494 5823 | let first_validation_exception_field =
|
3495 5824 | constraint_violation.as_validation_exception_field("".to_owned());
|
3496 5825 | let validation_exception = crate::error::ValidationException {
|
3497 5826 | message: format!(
|
3498 5827 | "1 validation error detected. {}",
|
3499 5828 | &first_validation_exception_field.message
|
3500 5829 | ),
|
3501 5830 | field_list: Some(vec![first_validation_exception_field]),
|
3502 5831 | };
|
3503 5832 | Self::ConstraintViolation(
|
3504 5833 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3505 5834 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3506 5835 | )
|
3507 5836 | }
|
3508 5837 | }
|
5838 + | /* ServerBuilderGenerator.kt:244 */
|
3509 5839 | impl ::std::convert::From<Builder>
|
3510 5840 | for crate::constrained::MaybeConstrained<crate::input::OperationWithDefaultsInput>
|
3511 5841 | {
|
3512 5842 | fn from(builder: Builder) -> Self {
|
3513 5843 | Self::Unconstrained(builder)
|
3514 5844 | }
|
3515 5845 | }
|
5846 + | /* ServerBuilderGenerator.kt:446 */
|
3516 5847 | impl ::std::convert::TryFrom<Builder> for crate::input::OperationWithDefaultsInput {
|
3517 5848 | type Error = ConstraintViolation;
|
3518 5849 |
|
3519 5850 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3520 5851 | builder.build()
|
3521 5852 | }
|
3522 5853 | }
|
3523 - | /// A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5854 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5855 + | /* RustType.kt:534 */
|
3524 5856 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5857 + | /* ServerBuilderGenerator.kt:211 */
|
3525 5858 | pub struct Builder {
|
5859 + | /* ServerBuilderGenerator.kt:308 */
|
3526 5860 | pub(crate) defaults:
|
3527 5861 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
5862 + | /* ServerBuilderGenerator.kt:308 */
|
3528 5863 | pub(crate) client_optional_defaults:
|
3529 5864 | ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
5865 + | /* ServerBuilderGenerator.kt:308 */
|
3530 5866 | pub(crate) top_level_default: ::std::option::Option<::std::string::String>,
|
5867 + | /* ServerBuilderGenerator.kt:308 */
|
3531 5868 | pub(crate) other_top_level_default: ::std::option::Option<i32>,
|
5869 + | /* ServerBuilderGenerator.kt:211 */
|
3532 5870 | }
|
5871 + | /* ServerBuilderGenerator.kt:215 */
|
3533 5872 | impl Builder {
|
5873 + | /* ServerBuilderGenerator.kt:331 */
|
3534 5874 | #[allow(missing_docs)] // documentation missing in model
|
5875 + | /* ServerBuilderGenerator.kt:343 */
|
3535 5876 | pub fn defaults(mut self, input: ::std::option::Option<crate::model::Defaults>) -> Self {
|
3536 - | self.defaults = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5877 + | /* ServerBuilderGenerator.kt:344 */
|
5878 + | self.defaults =
|
5879 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5880 + | /* ServerBuilderGenerator.kt:344 */;
|
3537 5881 | self
|
5882 + | /* ServerBuilderGenerator.kt:343 */
|
3538 5883 | }
|
5884 + | /* ServerBuilderGenerator.kt:426 */
|
3539 5885 | #[allow(missing_docs)] // documentation missing in model
|
5886 + | /* ServerBuilderGenerator.kt:428 */
|
3540 5887 | pub(crate) fn set_defaults(
|
3541 5888 | mut self,
|
3542 5889 | input: Option<
|
3543 5890 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::Defaults>>,
|
3544 5891 | >,
|
3545 5892 | ) -> Self {
|
5893 + | /* ServerBuilderGenerator.kt:429 */
|
3546 5894 | self.defaults = input.map(|v| v.into());
|
3547 5895 | self
|
5896 + | /* ServerBuilderGenerator.kt:428 */
|
3548 5897 | }
|
5898 + | /* ServerBuilderGenerator.kt:331 */
|
3549 5899 | #[allow(missing_docs)] // documentation missing in model
|
5900 + | /* ServerBuilderGenerator.kt:343 */
|
3550 5901 | pub fn client_optional_defaults(
|
3551 5902 | mut self,
|
3552 5903 | input: ::std::option::Option<crate::model::ClientOptionalDefaults>,
|
3553 5904 | ) -> Self {
|
3554 - | self.client_optional_defaults = input;
|
5905 + | /* ServerBuilderGenerator.kt:344 */
|
5906 + | self.client_optional_defaults =
|
5907 + | /* ServerBuilderGenerator.kt:376 */input
|
5908 + | /* ServerBuilderGenerator.kt:344 */;
|
3555 5909 | self
|
5910 + | /* ServerBuilderGenerator.kt:343 */
|
3556 5911 | }
|
5912 + | /* ServerBuilderGenerator.kt:426 */
|
3557 5913 | #[allow(missing_docs)] // documentation missing in model
|
5914 + | /* ServerBuilderGenerator.kt:428 */
|
3558 5915 | pub(crate) fn set_client_optional_defaults(
|
3559 5916 | mut self,
|
3560 5917 | input: Option<impl ::std::convert::Into<crate::model::ClientOptionalDefaults>>,
|
3561 5918 | ) -> Self {
|
5919 + | /* ServerBuilderGenerator.kt:429 */
|
3562 5920 | self.client_optional_defaults = input.map(|v| v.into());
|
3563 5921 | self
|
5922 + | /* ServerBuilderGenerator.kt:428 */
|
3564 5923 | }
|
5924 + | /* ServerBuilderGenerator.kt:331 */
|
3565 5925 | #[allow(missing_docs)] // documentation missing in model
|
5926 + | /* ServerBuilderGenerator.kt:343 */
|
3566 5927 | pub fn top_level_default(mut self, input: ::std::string::String) -> Self {
|
3567 - | self.top_level_default = Some(input);
|
5928 + | /* ServerBuilderGenerator.kt:344 */
|
5929 + | self.top_level_default =
|
5930 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5931 + | /* ServerBuilderGenerator.kt:376 */input
|
5932 + | /* ServerBuilderGenerator.kt:345 */)
|
5933 + | /* ServerBuilderGenerator.kt:344 */;
|
3568 5934 | self
|
5935 + | /* ServerBuilderGenerator.kt:343 */
|
3569 5936 | }
|
5937 + | /* ServerBuilderGenerator.kt:426 */
|
3570 5938 | #[allow(missing_docs)] // documentation missing in model
|
5939 + | /* ServerBuilderGenerator.kt:428 */
|
3571 5940 | pub(crate) fn set_top_level_default(
|
3572 5941 | mut self,
|
3573 5942 | input: impl ::std::convert::Into<::std::string::String>,
|
3574 5943 | ) -> Self {
|
5944 + | /* ServerBuilderGenerator.kt:429 */
|
3575 5945 | self.top_level_default = Some(input.into());
|
3576 5946 | self
|
5947 + | /* ServerBuilderGenerator.kt:428 */
|
3577 5948 | }
|
5949 + | /* ServerBuilderGenerator.kt:331 */
|
3578 5950 | #[allow(missing_docs)] // documentation missing in model
|
5951 + | /* ServerBuilderGenerator.kt:343 */
|
3579 5952 | pub fn other_top_level_default(mut self, input: i32) -> Self {
|
3580 - | self.other_top_level_default = Some(input);
|
5953 + | /* ServerBuilderGenerator.kt:344 */
|
5954 + | self.other_top_level_default =
|
5955 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5956 + | /* ServerBuilderGenerator.kt:376 */input
|
5957 + | /* ServerBuilderGenerator.kt:345 */)
|
5958 + | /* ServerBuilderGenerator.kt:344 */;
|
3581 5959 | self
|
5960 + | /* ServerBuilderGenerator.kt:343 */
|
3582 5961 | }
|
5962 + | /* ServerBuilderGenerator.kt:426 */
|
3583 5963 | #[allow(missing_docs)] // documentation missing in model
|
5964 + | /* ServerBuilderGenerator.kt:428 */
|
3584 5965 | pub(crate) fn set_other_top_level_default(
|
3585 5966 | mut self,
|
3586 5967 | input: impl ::std::convert::Into<i32>,
|
3587 5968 | ) -> Self {
|
5969 + | /* ServerBuilderGenerator.kt:429 */
|
3588 5970 | self.other_top_level_default = Some(input.into());
|
3589 5971 | self
|
5972 + | /* ServerBuilderGenerator.kt:428 */
|
3590 5973 | }
|
3591 - | /// Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
3592 - | ///
|
5974 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput).
|
5975 + | /// /* ServerBuilderGenerator.kt:260 */
|
3593 5976 | /// The builder fails to construct a [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) if a [`ConstraintViolation`] occurs.
|
3594 5977 | ///
|
5978 + | /* ServerBuilderGenerator.kt:271 */
|
3595 5979 | pub fn build(
|
3596 5980 | self,
|
3597 5981 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
3598 5982 | self.build_enforcing_all_constraints()
|
3599 5983 | }
|
5984 + | /* ServerBuilderGenerator.kt:283 */
|
3600 5985 | fn build_enforcing_all_constraints(
|
3601 5986 | self,
|
3602 5987 | ) -> Result<crate::input::OperationWithDefaultsInput, ConstraintViolation> {
|
3603 - | Ok(crate::input::OperationWithDefaultsInput {
|
5988 + | /* ServerBuilderGenerator.kt:287 */
|
5989 + | Ok(
|
5990 + | /* ServerBuilderGenerator.kt:542 */
|
5991 + | crate::input::OperationWithDefaultsInput {
|
5992 + | /* ServerBuilderGenerator.kt:546 */
|
3604 5993 | defaults: self
|
3605 5994 | .defaults
|
5995 + | /* ServerBuilderGenerator.kt:602 */
|
3606 5996 | .map(|v| match v {
|
3607 5997 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3608 5998 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3609 5999 | })
|
6000 + | /* ServerBuilderGenerator.kt:614 */
|
3610 6001 | .map(|res| res.map_err(ConstraintViolation::Defaults))
|
3611 6002 | .transpose()?,
|
6003 + | /* ServerBuilderGenerator.kt:546 */
|
3612 6004 | client_optional_defaults: self.client_optional_defaults,
|
3613 - | top_level_default: self.top_level_default.unwrap_or_else(|| String::from("hi")),
|
3614 - | other_top_level_default: self.other_top_level_default.unwrap_or(0i32),
|
3615 - | })
|
6005 + | /* ServerBuilderGenerator.kt:546 */
|
6006 + | top_level_default: self
|
6007 + | .top_level_default
|
6008 + | /* ServerBuilderGeneratorCommon.kt:129 */
|
6009 + | .unwrap_or_else(|| String::from("hi")),
|
6010 + | /* ServerBuilderGenerator.kt:546 */
|
6011 + | other_top_level_default: self
|
6012 + | .other_top_level_default
|
6013 + | /* ServerBuilderGeneratorCommon.kt:125 */
|
6014 + | .unwrap_or(0i32),
|
6015 + | /* ServerBuilderGenerator.kt:542 */
|
6016 + | }, /* ServerBuilderGenerator.kt:287 */
|
6017 + | )
|
6018 + | /* ServerBuilderGenerator.kt:283 */
|
3616 6019 | }
|
6020 + | /* ServerBuilderGenerator.kt:215 */
|
3617 6021 | }
|
6022 + |
|
6023 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3618 6024 | }
|
3619 - | /// See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
6025 + | /// /* ServerBuilderGenerator.kt:171 */See [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
3620 6026 | pub mod content_type_parameters_input {
|
3621 6027 |
|
6028 + | /* ServerBuilderGenerator.kt:461 */
|
3622 6029 | impl ::std::convert::From<Builder> for crate::input::ContentTypeParametersInput {
|
3623 6030 | fn from(builder: Builder) -> Self {
|
3624 6031 | builder.build()
|
3625 6032 | }
|
3626 6033 | }
|
3627 - | /// A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
6034 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
6035 + | /* RustType.kt:534 */
|
3628 6036 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6037 + | /* ServerBuilderGenerator.kt:211 */
|
3629 6038 | pub struct Builder {
|
6039 + | /* ServerBuilderGenerator.kt:308 */
|
3630 6040 | pub(crate) value: ::std::option::Option<i32>,
|
6041 + | /* ServerBuilderGenerator.kt:211 */
|
3631 6042 | }
|
6043 + | /* ServerBuilderGenerator.kt:215 */
|
3632 6044 | impl Builder {
|
6045 + | /* ServerBuilderGenerator.kt:331 */
|
3633 6046 | #[allow(missing_docs)] // documentation missing in model
|
6047 + | /* ServerBuilderGenerator.kt:343 */
|
3634 6048 | pub fn value(mut self, input: ::std::option::Option<i32>) -> Self {
|
3635 - | self.value = input;
|
6049 + | /* ServerBuilderGenerator.kt:344 */
|
6050 + | self.value =
|
6051 + | /* ServerBuilderGenerator.kt:376 */input
|
6052 + | /* ServerBuilderGenerator.kt:344 */;
|
3636 6053 | self
|
6054 + | /* ServerBuilderGenerator.kt:343 */
|
3637 6055 | }
|
6056 + | /* ServerBuilderGenerator.kt:426 */
|
3638 6057 | #[allow(missing_docs)] // documentation missing in model
|
6058 + | /* ServerBuilderGenerator.kt:428 */
|
3639 6059 | pub(crate) fn set_value(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
6060 + | /* ServerBuilderGenerator.kt:429 */
|
3640 6061 | self.value = input.map(|v| v.into());
|
3641 6062 | self
|
6063 + | /* ServerBuilderGenerator.kt:428 */
|
3642 6064 | }
|
3643 - | /// Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
6065 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput).
|
6066 + | /* ServerBuilderGenerator.kt:271 */
|
3644 6067 | pub fn build(self) -> crate::input::ContentTypeParametersInput {
|
3645 6068 | self.build_enforcing_all_constraints()
|
3646 6069 | }
|
6070 + | /* ServerBuilderGenerator.kt:283 */
|
3647 6071 | fn build_enforcing_all_constraints(self) -> crate::input::ContentTypeParametersInput {
|
3648 - | crate::input::ContentTypeParametersInput { value: self.value }
|
6072 + | /* ServerBuilderGenerator.kt:542 */
|
6073 + | crate::input::ContentTypeParametersInput {
|
6074 + | /* ServerBuilderGenerator.kt:546 */
|
6075 + | value: self.value,
|
6076 + | /* ServerBuilderGenerator.kt:542 */
|
6077 + | }
|
6078 + | /* ServerBuilderGenerator.kt:283 */
|
3649 6079 | }
|
6080 + | /* ServerBuilderGenerator.kt:215 */
|
3650 6081 | }
|
6082 + |
|
6083 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3651 6084 | }
|
3652 - | /// See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6085 + | /// /* ServerBuilderGenerator.kt:171 */See [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
3653 6086 | pub mod put_with_content_encoding_input {
|
3654 6087 |
|
6088 + | /* ServerBuilderGenerator.kt:461 */
|
3655 6089 | impl ::std::convert::From<Builder> for crate::input::PutWithContentEncodingInput {
|
3656 6090 | fn from(builder: Builder) -> Self {
|
3657 6091 | builder.build()
|
3658 6092 | }
|
3659 6093 | }
|
3660 - | /// A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6094 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6095 + | /* RustType.kt:534 */
|
3661 6096 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6097 + | /* ServerBuilderGenerator.kt:211 */
|
3662 6098 | pub struct Builder {
|
6099 + | /* ServerBuilderGenerator.kt:308 */
|
3663 6100 | pub(crate) encoding: ::std::option::Option<::std::string::String>,
|
6101 + | /* ServerBuilderGenerator.kt:308 */
|
3664 6102 | pub(crate) data: ::std::option::Option<::std::string::String>,
|
6103 + | /* ServerBuilderGenerator.kt:211 */
|
3665 6104 | }
|
6105 + | /* ServerBuilderGenerator.kt:215 */
|
3666 6106 | impl Builder {
|
6107 + | /* ServerBuilderGenerator.kt:331 */
|
3667 6108 | #[allow(missing_docs)] // documentation missing in model
|
6109 + | /* ServerBuilderGenerator.kt:343 */
|
3668 6110 | pub fn encoding(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3669 - | self.encoding = input;
|
6111 + | /* ServerBuilderGenerator.kt:344 */
|
6112 + | self.encoding =
|
6113 + | /* ServerBuilderGenerator.kt:376 */input
|
6114 + | /* ServerBuilderGenerator.kt:344 */;
|
3670 6115 | self
|
6116 + | /* ServerBuilderGenerator.kt:343 */
|
3671 6117 | }
|
6118 + | /* ServerBuilderGenerator.kt:426 */
|
3672 6119 | #[allow(missing_docs)] // documentation missing in model
|
6120 + | /* ServerBuilderGenerator.kt:428 */
|
3673 6121 | pub(crate) fn set_encoding(
|
3674 6122 | mut self,
|
3675 6123 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3676 6124 | ) -> Self {
|
6125 + | /* ServerBuilderGenerator.kt:429 */
|
3677 6126 | self.encoding = input.map(|v| v.into());
|
3678 6127 | self
|
6128 + | /* ServerBuilderGenerator.kt:428 */
|
3679 6129 | }
|
6130 + | /* ServerBuilderGenerator.kt:331 */
|
3680 6131 | #[allow(missing_docs)] // documentation missing in model
|
6132 + | /* ServerBuilderGenerator.kt:343 */
|
3681 6133 | pub fn data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3682 - | self.data = input;
|
6134 + | /* ServerBuilderGenerator.kt:344 */
|
6135 + | self.data =
|
6136 + | /* ServerBuilderGenerator.kt:376 */input
|
6137 + | /* ServerBuilderGenerator.kt:344 */;
|
3683 6138 | self
|
6139 + | /* ServerBuilderGenerator.kt:343 */
|
3684 6140 | }
|
6141 + | /* ServerBuilderGenerator.kt:426 */
|
3685 6142 | #[allow(missing_docs)] // documentation missing in model
|
6143 + | /* ServerBuilderGenerator.kt:428 */
|
3686 6144 | pub(crate) fn set_data(
|
3687 6145 | mut self,
|
3688 6146 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3689 6147 | ) -> Self {
|
6148 + | /* ServerBuilderGenerator.kt:429 */
|
3690 6149 | self.data = input.map(|v| v.into());
|
3691 6150 | self
|
6151 + | /* ServerBuilderGenerator.kt:428 */
|
3692 6152 | }
|
3693 - | /// Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6153 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput).
|
6154 + | /* ServerBuilderGenerator.kt:271 */
|
3694 6155 | pub fn build(self) -> crate::input::PutWithContentEncodingInput {
|
3695 6156 | self.build_enforcing_all_constraints()
|
3696 6157 | }
|
6158 + | /* ServerBuilderGenerator.kt:283 */
|
3697 6159 | fn build_enforcing_all_constraints(self) -> crate::input::PutWithContentEncodingInput {
|
6160 + | /* ServerBuilderGenerator.kt:542 */
|
3698 6161 | crate::input::PutWithContentEncodingInput {
|
6162 + | /* ServerBuilderGenerator.kt:546 */
|
3699 6163 | encoding: self.encoding,
|
6164 + | /* ServerBuilderGenerator.kt:546 */
|
3700 6165 | data: self.data,
|
6166 + | /* ServerBuilderGenerator.kt:542 */
|
3701 6167 | }
|
6168 + | /* ServerBuilderGenerator.kt:283 */
|
3702 6169 | }
|
6170 + | /* ServerBuilderGenerator.kt:215 */
|
3703 6171 | }
|
6172 + |
|
6173 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3704 6174 | }
|
3705 - | /// See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6175 + | /// /* ServerBuilderGenerator.kt:171 */See [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
3706 6176 | pub mod fractional_seconds_input {
|
3707 6177 |
|
6178 + | /* ServerBuilderGenerator.kt:461 */
|
3708 6179 | impl ::std::convert::From<Builder> for crate::input::FractionalSecondsInput {
|
3709 6180 | fn from(builder: Builder) -> Self {
|
3710 6181 | builder.build()
|
3711 6182 | }
|
3712 6183 | }
|
3713 - | /// A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6184 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6185 + | /* RustType.kt:534 */
|
3714 6186 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3715 - | pub struct Builder {}
|
6187 + | /* ServerBuilderGenerator.kt:211 */
|
6188 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6189 + | /* ServerBuilderGenerator.kt:215 */
|
3716 6190 | impl Builder {
|
3717 - | /// Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6191 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`FractionalSecondsInput`](crate::input::FractionalSecondsInput).
|
6192 + | /* ServerBuilderGenerator.kt:271 */
|
3718 6193 | pub fn build(self) -> crate::input::FractionalSecondsInput {
|
3719 6194 | self.build_enforcing_all_constraints()
|
3720 6195 | }
|
6196 + | /* ServerBuilderGenerator.kt:283 */
|
3721 6197 | fn build_enforcing_all_constraints(self) -> crate::input::FractionalSecondsInput {
|
3722 - | crate::input::FractionalSecondsInput {}
|
6198 + | /* ServerBuilderGenerator.kt:542 */
|
6199 + | crate::input::FractionalSecondsInput {
|
6200 + | /* ServerBuilderGenerator.kt:542 */}
|
6201 + | /* ServerBuilderGenerator.kt:283 */
|
3723 6202 | }
|
6203 + | /* ServerBuilderGenerator.kt:215 */
|
3724 6204 | }
|
6205 + |
|
6206 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3725 6207 | }
|
3726 - | /// See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6208 + | /// /* ServerBuilderGenerator.kt:171 */See [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
3727 6209 | pub mod datetime_offsets_input {
|
3728 6210 |
|
6211 + | /* ServerBuilderGenerator.kt:461 */
|
3729 6212 | impl ::std::convert::From<Builder> for crate::input::DatetimeOffsetsInput {
|
3730 6213 | fn from(builder: Builder) -> Self {
|
3731 6214 | builder.build()
|
3732 6215 | }
|
3733 6216 | }
|
3734 - | /// A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6217 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6218 + | /* RustType.kt:534 */
|
3735 6219 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3736 - | pub struct Builder {}
|
6220 + | /* ServerBuilderGenerator.kt:211 */
|
6221 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6222 + | /* ServerBuilderGenerator.kt:215 */
|
3737 6223 | impl Builder {
|
3738 - | /// Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6224 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput).
|
6225 + | /* ServerBuilderGenerator.kt:271 */
|
3739 6226 | pub fn build(self) -> crate::input::DatetimeOffsetsInput {
|
3740 6227 | self.build_enforcing_all_constraints()
|
3741 6228 | }
|
6229 + | /* ServerBuilderGenerator.kt:283 */
|
3742 6230 | fn build_enforcing_all_constraints(self) -> crate::input::DatetimeOffsetsInput {
|
3743 - | crate::input::DatetimeOffsetsInput {}
|
6231 + | /* ServerBuilderGenerator.kt:542 */
|
6232 + | crate::input::DatetimeOffsetsInput {
|
6233 + | /* ServerBuilderGenerator.kt:542 */}
|
6234 + | /* ServerBuilderGenerator.kt:283 */
|
3744 6235 | }
|
6236 + | /* ServerBuilderGenerator.kt:215 */
|
3745 6237 | }
|
6238 + |
|
6239 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3746 6240 | }
|
3747 - | /// See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6241 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
3748 6242 | pub mod test_post_no_input_no_payload_input {
|
3749 6243 |
|
6244 + | /* ServerBuilderGenerator.kt:461 */
|
3750 6245 | impl ::std::convert::From<Builder> for crate::input::TestPostNoInputNoPayloadInput {
|
3751 6246 | fn from(builder: Builder) -> Self {
|
3752 6247 | builder.build()
|
3753 6248 | }
|
3754 6249 | }
|
3755 - | /// A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6250 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6251 + | /* RustType.kt:534 */
|
3756 6252 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3757 - | pub struct Builder {}
|
6253 + | /* ServerBuilderGenerator.kt:211 */
|
6254 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6255 + | /* ServerBuilderGenerator.kt:215 */
|
3758 6256 | impl Builder {
|
3759 - | /// Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6257 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput).
|
6258 + | /* ServerBuilderGenerator.kt:271 */
|
3760 6259 | pub fn build(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
3761 6260 | self.build_enforcing_all_constraints()
|
3762 6261 | }
|
6262 + | /* ServerBuilderGenerator.kt:283 */
|
3763 6263 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoInputNoPayloadInput {
|
3764 - | crate::input::TestPostNoInputNoPayloadInput {}
|
6264 + | /* ServerBuilderGenerator.kt:542 */
|
6265 + | crate::input::TestPostNoInputNoPayloadInput {
|
6266 + | /* ServerBuilderGenerator.kt:542 */}
|
6267 + | /* ServerBuilderGenerator.kt:283 */
|
3765 6268 | }
|
6269 + | /* ServerBuilderGenerator.kt:215 */
|
3766 6270 | }
|
6271 + |
|
6272 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3767 6273 | }
|
3768 - | /// See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6274 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
3769 6275 | pub mod test_get_no_input_no_payload_input {
|
3770 6276 |
|
6277 + | /* ServerBuilderGenerator.kt:461 */
|
3771 6278 | impl ::std::convert::From<Builder> for crate::input::TestGetNoInputNoPayloadInput {
|
3772 6279 | fn from(builder: Builder) -> Self {
|
3773 6280 | builder.build()
|
3774 6281 | }
|
3775 6282 | }
|
3776 - | /// A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6283 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6284 + | /* RustType.kt:534 */
|
3777 6285 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3778 - | pub struct Builder {}
|
6286 + | /* ServerBuilderGenerator.kt:211 */
|
6287 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6288 + | /* ServerBuilderGenerator.kt:215 */
|
3779 6289 | impl Builder {
|
3780 - | /// Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6290 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput).
|
6291 + | /* ServerBuilderGenerator.kt:271 */
|
3781 6292 | pub fn build(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
3782 6293 | self.build_enforcing_all_constraints()
|
3783 6294 | }
|
6295 + | /* ServerBuilderGenerator.kt:283 */
|
3784 6296 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoInputNoPayloadInput {
|
3785 - | crate::input::TestGetNoInputNoPayloadInput {}
|
6297 + | /* ServerBuilderGenerator.kt:542 */
|
6298 + | crate::input::TestGetNoInputNoPayloadInput {
|
6299 + | /* ServerBuilderGenerator.kt:542 */}
|
6300 + | /* ServerBuilderGenerator.kt:283 */
|
3786 6301 | }
|
6302 + | /* ServerBuilderGenerator.kt:215 */
|
3787 6303 | }
|
6304 + |
|
6305 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3788 6306 | }
|
3789 - | /// See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6307 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
3790 6308 | pub mod test_post_no_payload_input {
|
3791 6309 |
|
6310 + | /* ServerBuilderGenerator.kt:461 */
|
3792 6311 | impl ::std::convert::From<Builder> for crate::input::TestPostNoPayloadInput {
|
3793 6312 | fn from(builder: Builder) -> Self {
|
3794 6313 | builder.build()
|
3795 6314 | }
|
3796 6315 | }
|
3797 - | /// A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6316 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6317 + | /* RustType.kt:534 */
|
3798 6318 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6319 + | /* ServerBuilderGenerator.kt:211 */
|
3799 6320 | pub struct Builder {
|
6321 + | /* ServerBuilderGenerator.kt:308 */
|
3800 6322 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6323 + | /* ServerBuilderGenerator.kt:211 */
|
3801 6324 | }
|
6325 + | /* ServerBuilderGenerator.kt:215 */
|
3802 6326 | impl Builder {
|
6327 + | /* ServerBuilderGenerator.kt:331 */
|
3803 6328 | #[allow(missing_docs)] // documentation missing in model
|
6329 + | /* ServerBuilderGenerator.kt:343 */
|
3804 6330 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3805 - | self.test_id = input;
|
6331 + | /* ServerBuilderGenerator.kt:344 */
|
6332 + | self.test_id =
|
6333 + | /* ServerBuilderGenerator.kt:376 */input
|
6334 + | /* ServerBuilderGenerator.kt:344 */;
|
3806 6335 | self
|
6336 + | /* ServerBuilderGenerator.kt:343 */
|
3807 6337 | }
|
6338 + | /* ServerBuilderGenerator.kt:426 */
|
3808 6339 | #[allow(missing_docs)] // documentation missing in model
|
6340 + | /* ServerBuilderGenerator.kt:428 */
|
3809 6341 | pub(crate) fn set_test_id(
|
3810 6342 | mut self,
|
3811 6343 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3812 6344 | ) -> Self {
|
6345 + | /* ServerBuilderGenerator.kt:429 */
|
3813 6346 | self.test_id = input.map(|v| v.into());
|
3814 6347 | self
|
6348 + | /* ServerBuilderGenerator.kt:428 */
|
3815 6349 | }
|
3816 - | /// Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6350 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput).
|
6351 + | /* ServerBuilderGenerator.kt:271 */
|
3817 6352 | pub fn build(self) -> crate::input::TestPostNoPayloadInput {
|
3818 6353 | self.build_enforcing_all_constraints()
|
3819 6354 | }
|
6355 + | /* ServerBuilderGenerator.kt:283 */
|
3820 6356 | fn build_enforcing_all_constraints(self) -> crate::input::TestPostNoPayloadInput {
|
6357 + | /* ServerBuilderGenerator.kt:542 */
|
3821 6358 | crate::input::TestPostNoPayloadInput {
|
6359 + | /* ServerBuilderGenerator.kt:546 */
|
3822 6360 | test_id: self.test_id,
|
6361 + | /* ServerBuilderGenerator.kt:542 */
|
3823 6362 | }
|
6363 + | /* ServerBuilderGenerator.kt:283 */
|
3824 6364 | }
|
6365 + | /* ServerBuilderGenerator.kt:215 */
|
3825 6366 | }
|
6367 + |
|
6368 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3826 6369 | }
|
3827 - | /// See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6370 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
3828 6371 | pub mod test_get_no_payload_input {
|
3829 6372 |
|
6373 + | /* ServerBuilderGenerator.kt:461 */
|
3830 6374 | impl ::std::convert::From<Builder> for crate::input::TestGetNoPayloadInput {
|
3831 6375 | fn from(builder: Builder) -> Self {
|
3832 6376 | builder.build()
|
3833 6377 | }
|
3834 6378 | }
|
3835 - | /// A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6379 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6380 + | /* RustType.kt:534 */
|
3836 6381 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6382 + | /* ServerBuilderGenerator.kt:211 */
|
3837 6383 | pub struct Builder {
|
6384 + | /* ServerBuilderGenerator.kt:308 */
|
3838 6385 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6386 + | /* ServerBuilderGenerator.kt:211 */
|
3839 6387 | }
|
6388 + | /* ServerBuilderGenerator.kt:215 */
|
3840 6389 | impl Builder {
|
6390 + | /* ServerBuilderGenerator.kt:331 */
|
3841 6391 | #[allow(missing_docs)] // documentation missing in model
|
6392 + | /* ServerBuilderGenerator.kt:343 */
|
3842 6393 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3843 - | self.test_id = input;
|
6394 + | /* ServerBuilderGenerator.kt:344 */
|
6395 + | self.test_id =
|
6396 + | /* ServerBuilderGenerator.kt:376 */input
|
6397 + | /* ServerBuilderGenerator.kt:344 */;
|
3844 6398 | self
|
6399 + | /* ServerBuilderGenerator.kt:343 */
|
3845 6400 | }
|
6401 + | /* ServerBuilderGenerator.kt:426 */
|
3846 6402 | #[allow(missing_docs)] // documentation missing in model
|
6403 + | /* ServerBuilderGenerator.kt:428 */
|
3847 6404 | pub(crate) fn set_test_id(
|
3848 6405 | mut self,
|
3849 6406 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3850 6407 | ) -> Self {
|
6408 + | /* ServerBuilderGenerator.kt:429 */
|
3851 6409 | self.test_id = input.map(|v| v.into());
|
3852 6410 | self
|
6411 + | /* ServerBuilderGenerator.kt:428 */
|
3853 6412 | }
|
3854 - | /// Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6413 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput).
|
6414 + | /* ServerBuilderGenerator.kt:271 */
|
3855 6415 | pub fn build(self) -> crate::input::TestGetNoPayloadInput {
|
3856 6416 | self.build_enforcing_all_constraints()
|
3857 6417 | }
|
6418 + | /* ServerBuilderGenerator.kt:283 */
|
3858 6419 | fn build_enforcing_all_constraints(self) -> crate::input::TestGetNoPayloadInput {
|
6420 + | /* ServerBuilderGenerator.kt:542 */
|
3859 6421 | crate::input::TestGetNoPayloadInput {
|
6422 + | /* ServerBuilderGenerator.kt:546 */
|
3860 6423 | test_id: self.test_id,
|
6424 + | /* ServerBuilderGenerator.kt:542 */
|
3861 6425 | }
|
6426 + | /* ServerBuilderGenerator.kt:283 */
|
3862 6427 | }
|
6428 + | /* ServerBuilderGenerator.kt:215 */
|
3863 6429 | }
|
6430 + |
|
6431 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3864 6432 | }
|
3865 - | /// See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6433 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
3866 6434 | pub mod test_payload_blob_input {
|
3867 6435 |
|
6436 + | /* ServerBuilderGenerator.kt:461 */
|
3868 6437 | impl ::std::convert::From<Builder> for crate::input::TestPayloadBlobInput {
|
3869 6438 | fn from(builder: Builder) -> Self {
|
3870 6439 | builder.build()
|
3871 6440 | }
|
3872 6441 | }
|
3873 - | /// A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6442 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6443 + | /* RustType.kt:534 */
|
3874 6444 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6445 + | /* ServerBuilderGenerator.kt:211 */
|
3875 6446 | pub struct Builder {
|
6447 + | /* ServerBuilderGenerator.kt:308 */
|
3876 6448 | pub(crate) content_type: ::std::option::Option<::std::string::String>,
|
6449 + | /* ServerBuilderGenerator.kt:308 */
|
3877 6450 | pub(crate) data: ::std::option::Option<::aws_smithy_types::Blob>,
|
6451 + | /* ServerBuilderGenerator.kt:211 */
|
3878 6452 | }
|
6453 + | /* ServerBuilderGenerator.kt:215 */
|
3879 6454 | impl Builder {
|
6455 + | /* ServerBuilderGenerator.kt:331 */
|
3880 6456 | #[allow(missing_docs)] // documentation missing in model
|
6457 + | /* ServerBuilderGenerator.kt:343 */
|
3881 6458 | pub fn content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3882 - | self.content_type = input;
|
6459 + | /* ServerBuilderGenerator.kt:344 */
|
6460 + | self.content_type =
|
6461 + | /* ServerBuilderGenerator.kt:376 */input
|
6462 + | /* ServerBuilderGenerator.kt:344 */;
|
3883 6463 | self
|
6464 + | /* ServerBuilderGenerator.kt:343 */
|
3884 6465 | }
|
6466 + | /* ServerBuilderGenerator.kt:426 */
|
3885 6467 | #[allow(missing_docs)] // documentation missing in model
|
6468 + | /* ServerBuilderGenerator.kt:428 */
|
3886 6469 | pub(crate) fn set_content_type(
|
3887 6470 | mut self,
|
3888 6471 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3889 6472 | ) -> Self {
|
6473 + | /* ServerBuilderGenerator.kt:429 */
|
3890 6474 | self.content_type = input.map(|v| v.into());
|
3891 6475 | self
|
6476 + | /* ServerBuilderGenerator.kt:428 */
|
3892 6477 | }
|
6478 + | /* ServerBuilderGenerator.kt:331 */
|
3893 6479 | #[allow(missing_docs)] // documentation missing in model
|
6480 + | /* ServerBuilderGenerator.kt:343 */
|
3894 6481 | pub fn data(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
3895 - | self.data = input;
|
6482 + | /* ServerBuilderGenerator.kt:344 */
|
6483 + | self.data =
|
6484 + | /* ServerBuilderGenerator.kt:376 */input
|
6485 + | /* ServerBuilderGenerator.kt:344 */;
|
3896 6486 | self
|
6487 + | /* ServerBuilderGenerator.kt:343 */
|
3897 6488 | }
|
6489 + | /* ServerBuilderGenerator.kt:426 */
|
3898 6490 | #[allow(missing_docs)] // documentation missing in model
|
6491 + | /* ServerBuilderGenerator.kt:428 */
|
3899 6492 | pub(crate) fn set_data(
|
3900 6493 | mut self,
|
3901 6494 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
3902 6495 | ) -> Self {
|
6496 + | /* ServerBuilderGenerator.kt:429 */
|
3903 6497 | self.data = input.map(|v| v.into());
|
3904 6498 | self
|
6499 + | /* ServerBuilderGenerator.kt:428 */
|
3905 6500 | }
|
3906 - | /// Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6501 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput).
|
6502 + | /* ServerBuilderGenerator.kt:271 */
|
3907 6503 | pub fn build(self) -> crate::input::TestPayloadBlobInput {
|
3908 6504 | self.build_enforcing_all_constraints()
|
3909 6505 | }
|
6506 + | /* ServerBuilderGenerator.kt:283 */
|
3910 6507 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadBlobInput {
|
6508 + | /* ServerBuilderGenerator.kt:542 */
|
3911 6509 | crate::input::TestPayloadBlobInput {
|
6510 + | /* ServerBuilderGenerator.kt:546 */
|
3912 6511 | content_type: self.content_type,
|
6512 + | /* ServerBuilderGenerator.kt:546 */
|
3913 6513 | data: self.data,
|
6514 + | /* ServerBuilderGenerator.kt:542 */
|
3914 6515 | }
|
6516 + | /* ServerBuilderGenerator.kt:283 */
|
3915 6517 | }
|
6518 + | /* ServerBuilderGenerator.kt:215 */
|
3916 6519 | }
|
6520 + |
|
6521 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3917 6522 | }
|
3918 - | /// See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6523 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
3919 6524 | pub mod test_payload_structure_input {
|
3920 6525 |
|
6526 + | /* ServerBuilderGenerator.kt:461 */
|
3921 6527 | impl ::std::convert::From<Builder> for crate::input::TestPayloadStructureInput {
|
3922 6528 | fn from(builder: Builder) -> Self {
|
3923 6529 | builder.build()
|
3924 6530 | }
|
3925 6531 | }
|
3926 - | /// A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6532 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6533 + | /* RustType.kt:534 */
|
3927 6534 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6535 + | /* ServerBuilderGenerator.kt:211 */
|
3928 6536 | pub struct Builder {
|
6537 + | /* ServerBuilderGenerator.kt:308 */
|
3929 6538 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6539 + | /* ServerBuilderGenerator.kt:308 */
|
3930 6540 | pub(crate) payload_config: ::std::option::Option<crate::model::PayloadConfig>,
|
6541 + | /* ServerBuilderGenerator.kt:211 */
|
3931 6542 | }
|
6543 + | /* ServerBuilderGenerator.kt:215 */
|
3932 6544 | impl Builder {
|
6545 + | /* ServerBuilderGenerator.kt:331 */
|
3933 6546 | #[allow(missing_docs)] // documentation missing in model
|
6547 + | /* ServerBuilderGenerator.kt:343 */
|
3934 6548 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3935 - | self.test_id = input;
|
6549 + | /* ServerBuilderGenerator.kt:344 */
|
6550 + | self.test_id =
|
6551 + | /* ServerBuilderGenerator.kt:376 */input
|
6552 + | /* ServerBuilderGenerator.kt:344 */;
|
3936 6553 | self
|
6554 + | /* ServerBuilderGenerator.kt:343 */
|
3937 6555 | }
|
6556 + | /* ServerBuilderGenerator.kt:426 */
|
3938 6557 | #[allow(missing_docs)] // documentation missing in model
|
6558 + | /* ServerBuilderGenerator.kt:428 */
|
3939 6559 | pub(crate) fn set_test_id(
|
3940 6560 | mut self,
|
3941 6561 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3942 6562 | ) -> Self {
|
6563 + | /* ServerBuilderGenerator.kt:429 */
|
3943 6564 | self.test_id = input.map(|v| v.into());
|
3944 6565 | self
|
6566 + | /* ServerBuilderGenerator.kt:428 */
|
3945 6567 | }
|
6568 + | /* ServerBuilderGenerator.kt:331 */
|
3946 6569 | #[allow(missing_docs)] // documentation missing in model
|
6570 + | /* ServerBuilderGenerator.kt:343 */
|
3947 6571 | pub fn payload_config(
|
3948 6572 | mut self,
|
3949 6573 | input: ::std::option::Option<crate::model::PayloadConfig>,
|
3950 6574 | ) -> Self {
|
3951 - | self.payload_config = input;
|
6575 + | /* ServerBuilderGenerator.kt:344 */
|
6576 + | self.payload_config =
|
6577 + | /* ServerBuilderGenerator.kt:376 */input
|
6578 + | /* ServerBuilderGenerator.kt:344 */;
|
3952 6579 | self
|
6580 + | /* ServerBuilderGenerator.kt:343 */
|
3953 6581 | }
|
6582 + | /* ServerBuilderGenerator.kt:426 */
|
3954 6583 | #[allow(missing_docs)] // documentation missing in model
|
6584 + | /* ServerBuilderGenerator.kt:428 */
|
3955 6585 | pub(crate) fn set_payload_config(
|
3956 6586 | mut self,
|
3957 6587 | input: Option<impl ::std::convert::Into<crate::model::PayloadConfig>>,
|
3958 6588 | ) -> Self {
|
6589 + | /* ServerBuilderGenerator.kt:429 */
|
3959 6590 | self.payload_config = input.map(|v| v.into());
|
3960 6591 | self
|
6592 + | /* ServerBuilderGenerator.kt:428 */
|
3961 6593 | }
|
3962 - | /// Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6594 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput).
|
6595 + | /* ServerBuilderGenerator.kt:271 */
|
3963 6596 | pub fn build(self) -> crate::input::TestPayloadStructureInput {
|
3964 6597 | self.build_enforcing_all_constraints()
|
3965 6598 | }
|
6599 + | /* ServerBuilderGenerator.kt:283 */
|
3966 6600 | fn build_enforcing_all_constraints(self) -> crate::input::TestPayloadStructureInput {
|
6601 + | /* ServerBuilderGenerator.kt:542 */
|
3967 6602 | crate::input::TestPayloadStructureInput {
|
6603 + | /* ServerBuilderGenerator.kt:546 */
|
3968 6604 | test_id: self.test_id,
|
6605 + | /* ServerBuilderGenerator.kt:546 */
|
3969 6606 | payload_config: self.payload_config,
|
6607 + | /* ServerBuilderGenerator.kt:542 */
|
3970 6608 | }
|
6609 + | /* ServerBuilderGenerator.kt:283 */
|
3971 6610 | }
|
6611 + | /* ServerBuilderGenerator.kt:215 */
|
3972 6612 | }
|
6613 + |
|
6614 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3973 6615 | }
|
3974 - | /// See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6616 + | /// /* ServerBuilderGenerator.kt:171 */See [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
3975 6617 | pub mod test_body_structure_input {
|
3976 6618 |
|
6619 + | /* ServerBuilderGenerator.kt:461 */
|
3977 6620 | impl ::std::convert::From<Builder> for crate::input::TestBodyStructureInput {
|
3978 6621 | fn from(builder: Builder) -> Self {
|
3979 6622 | builder.build()
|
3980 6623 | }
|
3981 6624 | }
|
3982 - | /// A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6625 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6626 + | /* RustType.kt:534 */
|
3983 6627 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6628 + | /* ServerBuilderGenerator.kt:211 */
|
3984 6629 | pub struct Builder {
|
6630 + | /* ServerBuilderGenerator.kt:308 */
|
3985 6631 | pub(crate) test_id: ::std::option::Option<::std::string::String>,
|
6632 + | /* ServerBuilderGenerator.kt:308 */
|
3986 6633 | pub(crate) test_config: ::std::option::Option<crate::model::TestConfig>,
|
6634 + | /* ServerBuilderGenerator.kt:211 */
|
3987 6635 | }
|
6636 + | /* ServerBuilderGenerator.kt:215 */
|
3988 6637 | impl Builder {
|
6638 + | /* ServerBuilderGenerator.kt:331 */
|
3989 6639 | #[allow(missing_docs)] // documentation missing in model
|
6640 + | /* ServerBuilderGenerator.kt:343 */
|
3990 6641 | pub fn test_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
3991 - | self.test_id = input;
|
6642 + | /* ServerBuilderGenerator.kt:344 */
|
6643 + | self.test_id =
|
6644 + | /* ServerBuilderGenerator.kt:376 */input
|
6645 + | /* ServerBuilderGenerator.kt:344 */;
|
3992 6646 | self
|
6647 + | /* ServerBuilderGenerator.kt:343 */
|
3993 6648 | }
|
6649 + | /* ServerBuilderGenerator.kt:426 */
|
3994 6650 | #[allow(missing_docs)] // documentation missing in model
|
6651 + | /* ServerBuilderGenerator.kt:428 */
|
3995 6652 | pub(crate) fn set_test_id(
|
3996 6653 | mut self,
|
3997 6654 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
3998 6655 | ) -> Self {
|
6656 + | /* ServerBuilderGenerator.kt:429 */
|
3999 6657 | self.test_id = input.map(|v| v.into());
|
4000 6658 | self
|
6659 + | /* ServerBuilderGenerator.kt:428 */
|
4001 6660 | }
|
6661 + | /* ServerBuilderGenerator.kt:331 */
|
4002 6662 | #[allow(missing_docs)] // documentation missing in model
|
6663 + | /* ServerBuilderGenerator.kt:343 */
|
4003 6664 | pub fn test_config(
|
4004 6665 | mut self,
|
4005 6666 | input: ::std::option::Option<crate::model::TestConfig>,
|
4006 6667 | ) -> Self {
|
4007 - | self.test_config = input;
|
6668 + | /* ServerBuilderGenerator.kt:344 */
|
6669 + | self.test_config =
|
6670 + | /* ServerBuilderGenerator.kt:376 */input
|
6671 + | /* ServerBuilderGenerator.kt:344 */;
|
4008 6672 | self
|
6673 + | /* ServerBuilderGenerator.kt:343 */
|
4009 6674 | }
|
6675 + | /* ServerBuilderGenerator.kt:426 */
|
4010 6676 | #[allow(missing_docs)] // documentation missing in model
|
6677 + | /* ServerBuilderGenerator.kt:428 */
|
4011 6678 | pub(crate) fn set_test_config(
|
4012 6679 | mut self,
|
4013 6680 | input: Option<impl ::std::convert::Into<crate::model::TestConfig>>,
|
4014 6681 | ) -> Self {
|
6682 + | /* ServerBuilderGenerator.kt:429 */
|
4015 6683 | self.test_config = input.map(|v| v.into());
|
4016 6684 | self
|
6685 + | /* ServerBuilderGenerator.kt:428 */
|
4017 6686 | }
|
4018 - | /// Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6687 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TestBodyStructureInput`](crate::input::TestBodyStructureInput).
|
6688 + | /* ServerBuilderGenerator.kt:271 */
|
4019 6689 | pub fn build(self) -> crate::input::TestBodyStructureInput {
|
4020 6690 | self.build_enforcing_all_constraints()
|
4021 6691 | }
|
6692 + | /* ServerBuilderGenerator.kt:283 */
|
4022 6693 | fn build_enforcing_all_constraints(self) -> crate::input::TestBodyStructureInput {
|
6694 + | /* ServerBuilderGenerator.kt:542 */
|
4023 6695 | crate::input::TestBodyStructureInput {
|
6696 + | /* ServerBuilderGenerator.kt:546 */
|
4024 6697 | test_id: self.test_id,
|
6698 + | /* ServerBuilderGenerator.kt:546 */
|
4025 6699 | test_config: self.test_config,
|
6700 + | /* ServerBuilderGenerator.kt:542 */
|
4026 6701 | }
|
6702 + | /* ServerBuilderGenerator.kt:283 */
|
4027 6703 | }
|
6704 + | /* ServerBuilderGenerator.kt:215 */
|
4028 6705 | }
|
6706 + |
|
6707 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4029 6708 | }
|
4030 - | /// See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6709 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
4031 6710 | pub mod malformed_accept_with_generic_string_input {
|
4032 6711 |
|
6712 + | /* ServerBuilderGenerator.kt:461 */
|
4033 6713 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithGenericStringInput {
|
4034 6714 | fn from(builder: Builder) -> Self {
|
4035 6715 | builder.build()
|
4036 6716 | }
|
4037 6717 | }
|
4038 - | /// A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6718 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6719 + | /* RustType.kt:534 */
|
4039 6720 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4040 - | pub struct Builder {}
|
6721 + | /* ServerBuilderGenerator.kt:211 */
|
6722 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6723 + | /* ServerBuilderGenerator.kt:215 */
|
4041 6724 | impl Builder {
|
4042 - | /// Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6725 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput).
|
6726 + | /* ServerBuilderGenerator.kt:271 */
|
4043 6727 | pub fn build(self) -> crate::input::MalformedAcceptWithGenericStringInput {
|
4044 6728 | self.build_enforcing_all_constraints()
|
4045 6729 | }
|
6730 + | /* ServerBuilderGenerator.kt:283 */
|
4046 6731 | fn build_enforcing_all_constraints(
|
4047 6732 | self,
|
4048 6733 | ) -> crate::input::MalformedAcceptWithGenericStringInput {
|
4049 - | crate::input::MalformedAcceptWithGenericStringInput {}
|
6734 + | /* ServerBuilderGenerator.kt:542 */
|
6735 + | crate::input::MalformedAcceptWithGenericStringInput {
|
6736 + | /* ServerBuilderGenerator.kt:542 */}
|
6737 + | /* ServerBuilderGenerator.kt:283 */
|
4050 6738 | }
|
6739 + | /* ServerBuilderGenerator.kt:215 */
|
4051 6740 | }
|
6741 + |
|
6742 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4052 6743 | }
|
4053 - | /// See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6744 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
4054 6745 | pub mod malformed_accept_with_payload_input {
|
4055 6746 |
|
6747 + | /* ServerBuilderGenerator.kt:461 */
|
4056 6748 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithPayloadInput {
|
4057 6749 | fn from(builder: Builder) -> Self {
|
4058 6750 | builder.build()
|
4059 6751 | }
|
4060 6752 | }
|
4061 - | /// A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6753 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6754 + | /* RustType.kt:534 */
|
4062 6755 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4063 - | pub struct Builder {}
|
6756 + | /* ServerBuilderGenerator.kt:211 */
|
6757 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6758 + | /* ServerBuilderGenerator.kt:215 */
|
4064 6759 | impl Builder {
|
4065 - | /// Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6760 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput).
|
6761 + | /* ServerBuilderGenerator.kt:271 */
|
4066 6762 | pub fn build(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
4067 6763 | self.build_enforcing_all_constraints()
|
4068 6764 | }
|
6765 + | /* ServerBuilderGenerator.kt:283 */
|
4069 6766 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithPayloadInput {
|
4070 - | crate::input::MalformedAcceptWithPayloadInput {}
|
6767 + | /* ServerBuilderGenerator.kt:542 */
|
6768 + | crate::input::MalformedAcceptWithPayloadInput {
|
6769 + | /* ServerBuilderGenerator.kt:542 */}
|
6770 + | /* ServerBuilderGenerator.kt:283 */
|
4071 6771 | }
|
6772 + | /* ServerBuilderGenerator.kt:215 */
|
4072 6773 | }
|
6774 + |
|
6775 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4073 6776 | }
|
4074 - | /// See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6777 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
4075 6778 | pub mod malformed_accept_with_body_input {
|
4076 6779 |
|
6780 + | /* ServerBuilderGenerator.kt:461 */
|
4077 6781 | impl ::std::convert::From<Builder> for crate::input::MalformedAcceptWithBodyInput {
|
4078 6782 | fn from(builder: Builder) -> Self {
|
4079 6783 | builder.build()
|
4080 6784 | }
|
4081 6785 | }
|
4082 - | /// A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6786 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6787 + | /* RustType.kt:534 */
|
4083 6788 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4084 - | pub struct Builder {}
|
6789 + | /* ServerBuilderGenerator.kt:211 */
|
6790 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6791 + | /* ServerBuilderGenerator.kt:215 */
|
4085 6792 | impl Builder {
|
4086 - | /// Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6793 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput).
|
6794 + | /* ServerBuilderGenerator.kt:271 */
|
4087 6795 | pub fn build(self) -> crate::input::MalformedAcceptWithBodyInput {
|
4088 6796 | self.build_enforcing_all_constraints()
|
4089 6797 | }
|
6798 + | /* ServerBuilderGenerator.kt:283 */
|
4090 6799 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedAcceptWithBodyInput {
|
4091 - | crate::input::MalformedAcceptWithBodyInput {}
|
6800 + | /* ServerBuilderGenerator.kt:542 */
|
6801 + | crate::input::MalformedAcceptWithBodyInput {
|
6802 + | /* ServerBuilderGenerator.kt:542 */}
|
6803 + | /* ServerBuilderGenerator.kt:283 */
|
4092 6804 | }
|
6805 + | /* ServerBuilderGenerator.kt:215 */
|
4093 6806 | }
|
6807 + |
|
6808 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4094 6809 | }
|
4095 - | /// See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6810 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
4096 6811 | pub mod malformed_content_type_with_generic_string_input {
|
4097 6812 |
|
6813 + | /* ServerBuilderGenerator.kt:461 */
|
4098 6814 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithGenericStringInput {
|
4099 6815 | fn from(builder: Builder) -> Self {
|
4100 6816 | builder.build()
|
4101 6817 | }
|
4102 6818 | }
|
4103 - | /// A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6819 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6820 + | /* RustType.kt:534 */
|
4104 6821 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6822 + | /* ServerBuilderGenerator.kt:211 */
|
4105 6823 | pub struct Builder {
|
6824 + | /* ServerBuilderGenerator.kt:308 */
|
4106 6825 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
6826 + | /* ServerBuilderGenerator.kt:211 */
|
4107 6827 | }
|
6828 + | /* ServerBuilderGenerator.kt:215 */
|
4108 6829 | impl Builder {
|
6830 + | /* ServerBuilderGenerator.kt:331 */
|
4109 6831 | #[allow(missing_docs)] // documentation missing in model
|
6832 + | /* ServerBuilderGenerator.kt:343 */
|
4110 6833 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
4111 - | self.payload = input;
|
6834 + | /* ServerBuilderGenerator.kt:344 */
|
6835 + | self.payload =
|
6836 + | /* ServerBuilderGenerator.kt:376 */input
|
6837 + | /* ServerBuilderGenerator.kt:344 */;
|
4112 6838 | self
|
6839 + | /* ServerBuilderGenerator.kt:343 */
|
4113 6840 | }
|
6841 + | /* ServerBuilderGenerator.kt:426 */
|
4114 6842 | #[allow(missing_docs)] // documentation missing in model
|
6843 + | /* ServerBuilderGenerator.kt:428 */
|
4115 6844 | pub(crate) fn set_payload(
|
4116 6845 | mut self,
|
4117 6846 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4118 6847 | ) -> Self {
|
6848 + | /* ServerBuilderGenerator.kt:429 */
|
4119 6849 | self.payload = input.map(|v| v.into());
|
4120 6850 | self
|
6851 + | /* ServerBuilderGenerator.kt:428 */
|
4121 6852 | }
|
4122 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6853 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput).
|
6854 + | /* ServerBuilderGenerator.kt:271 */
|
4123 6855 | pub fn build(self) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
4124 6856 | self.build_enforcing_all_constraints()
|
4125 6857 | }
|
6858 + | /* ServerBuilderGenerator.kt:283 */
|
4126 6859 | fn build_enforcing_all_constraints(
|
4127 6860 | self,
|
4128 6861 | ) -> crate::input::MalformedContentTypeWithGenericStringInput {
|
6862 + | /* ServerBuilderGenerator.kt:542 */
|
4129 6863 | crate::input::MalformedContentTypeWithGenericStringInput {
|
6864 + | /* ServerBuilderGenerator.kt:546 */
|
4130 6865 | payload: self.payload,
|
6866 + | /* ServerBuilderGenerator.kt:542 */
|
4131 6867 | }
|
6868 + | /* ServerBuilderGenerator.kt:283 */
|
4132 6869 | }
|
6870 + | /* ServerBuilderGenerator.kt:215 */
|
4133 6871 | }
|
6872 + |
|
6873 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4134 6874 | }
|
4135 - | /// See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6875 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
4136 6876 | pub mod malformed_content_type_with_payload_input {
|
4137 6877 |
|
6878 + | /* ServerBuilderGenerator.kt:461 */
|
4138 6879 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithPayloadInput {
|
4139 6880 | fn from(builder: Builder) -> Self {
|
4140 6881 | builder.build()
|
4141 6882 | }
|
4142 6883 | }
|
4143 - | /// A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6884 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6885 + | /* RustType.kt:534 */
|
4144 6886 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6887 + | /* ServerBuilderGenerator.kt:211 */
|
4145 6888 | pub struct Builder {
|
6889 + | /* ServerBuilderGenerator.kt:308 */
|
4146 6890 | pub(crate) payload: ::std::option::Option<::aws_smithy_types::Blob>,
|
6891 + | /* ServerBuilderGenerator.kt:211 */
|
4147 6892 | }
|
6893 + | /* ServerBuilderGenerator.kt:215 */
|
4148 6894 | impl Builder {
|
6895 + | /* ServerBuilderGenerator.kt:331 */
|
4149 6896 | #[allow(missing_docs)] // documentation missing in model
|
6897 + | /* ServerBuilderGenerator.kt:343 */
|
4150 6898 | pub fn payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
4151 - | self.payload = input;
|
6899 + | /* ServerBuilderGenerator.kt:344 */
|
6900 + | self.payload =
|
6901 + | /* ServerBuilderGenerator.kt:376 */input
|
6902 + | /* ServerBuilderGenerator.kt:344 */;
|
4152 6903 | self
|
6904 + | /* ServerBuilderGenerator.kt:343 */
|
4153 6905 | }
|
6906 + | /* ServerBuilderGenerator.kt:426 */
|
4154 6907 | #[allow(missing_docs)] // documentation missing in model
|
6908 + | /* ServerBuilderGenerator.kt:428 */
|
4155 6909 | pub(crate) fn set_payload(
|
4156 6910 | mut self,
|
4157 6911 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
4158 6912 | ) -> Self {
|
6913 + | /* ServerBuilderGenerator.kt:429 */
|
4159 6914 | self.payload = input.map(|v| v.into());
|
4160 6915 | self
|
6916 + | /* ServerBuilderGenerator.kt:428 */
|
4161 6917 | }
|
4162 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6918 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput).
|
6919 + | /* ServerBuilderGenerator.kt:271 */
|
4163 6920 | pub fn build(self) -> crate::input::MalformedContentTypeWithPayloadInput {
|
4164 6921 | self.build_enforcing_all_constraints()
|
4165 6922 | }
|
6923 + | /* ServerBuilderGenerator.kt:283 */
|
4166 6924 | fn build_enforcing_all_constraints(
|
4167 6925 | self,
|
4168 6926 | ) -> crate::input::MalformedContentTypeWithPayloadInput {
|
6927 + | /* ServerBuilderGenerator.kt:542 */
|
4169 6928 | crate::input::MalformedContentTypeWithPayloadInput {
|
6929 + | /* ServerBuilderGenerator.kt:546 */
|
4170 6930 | payload: self.payload,
|
6931 + | /* ServerBuilderGenerator.kt:542 */
|
4171 6932 | }
|
6933 + | /* ServerBuilderGenerator.kt:283 */
|
4172 6934 | }
|
6935 + | /* ServerBuilderGenerator.kt:215 */
|
4173 6936 | }
|
6937 + |
|
6938 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4174 6939 | }
|
4175 - | /// See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6940 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
4176 6941 | pub mod malformed_content_type_with_body_input {
|
4177 6942 |
|
6943 + | /* ServerBuilderGenerator.kt:461 */
|
4178 6944 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithBodyInput {
|
4179 6945 | fn from(builder: Builder) -> Self {
|
4180 6946 | builder.build()
|
4181 6947 | }
|
4182 6948 | }
|
4183 - | /// A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6949 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6950 + | /* RustType.kt:534 */
|
4184 6951 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6952 + | /* ServerBuilderGenerator.kt:211 */
|
4185 6953 | pub struct Builder {
|
6954 + | /* ServerBuilderGenerator.kt:308 */
|
4186 6955 | pub(crate) hi: ::std::option::Option<::std::string::String>,
|
6956 + | /* ServerBuilderGenerator.kt:211 */
|
4187 6957 | }
|
6958 + | /* ServerBuilderGenerator.kt:215 */
|
4188 6959 | impl Builder {
|
6960 + | /* ServerBuilderGenerator.kt:331 */
|
4189 6961 | #[allow(missing_docs)] // documentation missing in model
|
6962 + | /* ServerBuilderGenerator.kt:343 */
|
4190 6963 | pub fn hi(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
4191 - | self.hi = input;
|
6964 + | /* ServerBuilderGenerator.kt:344 */
|
6965 + | self.hi =
|
6966 + | /* ServerBuilderGenerator.kt:376 */input
|
6967 + | /* ServerBuilderGenerator.kt:344 */;
|
4192 6968 | self
|
6969 + | /* ServerBuilderGenerator.kt:343 */
|
4193 6970 | }
|
6971 + | /* ServerBuilderGenerator.kt:426 */
|
4194 6972 | #[allow(missing_docs)] // documentation missing in model
|
6973 + | /* ServerBuilderGenerator.kt:428 */
|
4195 6974 | pub(crate) fn set_hi(
|
4196 6975 | mut self,
|
4197 6976 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4198 6977 | ) -> Self {
|
6978 + | /* ServerBuilderGenerator.kt:429 */
|
4199 6979 | self.hi = input.map(|v| v.into());
|
4200 6980 | self
|
6981 + | /* ServerBuilderGenerator.kt:428 */
|
4201 6982 | }
|
4202 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6983 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput).
|
6984 + | /* ServerBuilderGenerator.kt:271 */
|
4203 6985 | pub fn build(self) -> crate::input::MalformedContentTypeWithBodyInput {
|
4204 6986 | self.build_enforcing_all_constraints()
|
4205 6987 | }
|
6988 + | /* ServerBuilderGenerator.kt:283 */
|
4206 6989 | fn build_enforcing_all_constraints(
|
4207 6990 | self,
|
4208 6991 | ) -> crate::input::MalformedContentTypeWithBodyInput {
|
4209 - | crate::input::MalformedContentTypeWithBodyInput { hi: self.hi }
|
6992 + | /* ServerBuilderGenerator.kt:542 */
|
6993 + | crate::input::MalformedContentTypeWithBodyInput {
|
6994 + | /* ServerBuilderGenerator.kt:546 */
|
6995 + | hi: self.hi,
|
6996 + | /* ServerBuilderGenerator.kt:542 */
|
4210 6997 | }
|
6998 + | /* ServerBuilderGenerator.kt:283 */
|
4211 6999 | }
|
7000 + | /* ServerBuilderGenerator.kt:215 */
|
7001 + | }
|
7002 + |
|
7003 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4212 7004 | }
|
4213 - | /// See [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
7005 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
4214 7006 | pub mod malformed_content_type_without_body_empty_input_input {
|
4215 7007 |
|
7008 + | /* ServerBuilderGenerator.kt:461 */
|
4216 7009 | impl ::std::convert::From<Builder>
|
4217 7010 | for crate::input::MalformedContentTypeWithoutBodyEmptyInputInput
|
4218 7011 | {
|
4219 7012 | fn from(builder: Builder) -> Self {
|
4220 7013 | builder.build()
|
4221 7014 | }
|
4222 7015 | }
|
4223 - | /// A builder for [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
7016 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
7017 + | /* RustType.kt:534 */
|
4224 7018 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7019 + | /* ServerBuilderGenerator.kt:211 */
|
4225 7020 | pub struct Builder {
|
7021 + | /* ServerBuilderGenerator.kt:308 */
|
4226 7022 | pub(crate) header: ::std::option::Option<::std::string::String>,
|
7023 + | /* ServerBuilderGenerator.kt:211 */
|
4227 7024 | }
|
7025 + | /* ServerBuilderGenerator.kt:215 */
|
4228 7026 | impl Builder {
|
7027 + | /* ServerBuilderGenerator.kt:331 */
|
4229 7028 | #[allow(missing_docs)] // documentation missing in model
|
7029 + | /* ServerBuilderGenerator.kt:343 */
|
4230 7030 | pub fn header(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
4231 - | self.header = input;
|
7031 + | /* ServerBuilderGenerator.kt:344 */
|
7032 + | self.header =
|
7033 + | /* ServerBuilderGenerator.kt:376 */input
|
7034 + | /* ServerBuilderGenerator.kt:344 */;
|
4232 7035 | self
|
7036 + | /* ServerBuilderGenerator.kt:343 */
|
4233 7037 | }
|
7038 + | /* ServerBuilderGenerator.kt:426 */
|
4234 7039 | #[allow(missing_docs)] // documentation missing in model
|
7040 + | /* ServerBuilderGenerator.kt:428 */
|
4235 7041 | pub(crate) fn set_header(
|
4236 7042 | mut self,
|
4237 7043 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
4238 7044 | ) -> Self {
|
7045 + | /* ServerBuilderGenerator.kt:429 */
|
4239 7046 | self.header = input.map(|v| v.into());
|
4240 7047 | self
|
7048 + | /* ServerBuilderGenerator.kt:428 */
|
4241 7049 | }
|
4242 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
7050 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput).
|
7051 + | /* ServerBuilderGenerator.kt:271 */
|
4243 7052 | pub fn build(self) -> crate::input::MalformedContentTypeWithoutBodyEmptyInputInput {
|
4244 7053 | self.build_enforcing_all_constraints()
|
4245 7054 | }
|
7055 + | /* ServerBuilderGenerator.kt:283 */
|
4246 7056 | fn build_enforcing_all_constraints(
|
4247 7057 | self,
|
4248 7058 | ) -> crate::input::MalformedContentTypeWithoutBodyEmptyInputInput {
|
7059 + | /* ServerBuilderGenerator.kt:542 */
|
4249 7060 | crate::input::MalformedContentTypeWithoutBodyEmptyInputInput {
|
7061 + | /* ServerBuilderGenerator.kt:546 */
|
4250 7062 | header: self.header,
|
7063 + | /* ServerBuilderGenerator.kt:542 */
|
4251 7064 | }
|
7065 + | /* ServerBuilderGenerator.kt:283 */
|
4252 7066 | }
|
7067 + | /* ServerBuilderGenerator.kt:215 */
|
4253 7068 | }
|
7069 + |
|
7070 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4254 7071 | }
|
4255 - | /// See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
7072 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
4256 7073 | pub mod malformed_content_type_without_body_input {
|
4257 7074 |
|
7075 + | /* ServerBuilderGenerator.kt:461 */
|
4258 7076 | impl ::std::convert::From<Builder> for crate::input::MalformedContentTypeWithoutBodyInput {
|
4259 7077 | fn from(builder: Builder) -> Self {
|
4260 7078 | builder.build()
|
4261 7079 | }
|
4262 7080 | }
|
4263 - | /// A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
7081 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
7082 + | /* RustType.kt:534 */
|
4264 7083 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4265 - | pub struct Builder {}
|
7084 + | /* ServerBuilderGenerator.kt:211 */
|
7085 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
7086 + | /* ServerBuilderGenerator.kt:215 */
|
4266 7087 | impl Builder {
|
4267 - | /// Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
7088 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput).
|
7089 + | /* ServerBuilderGenerator.kt:271 */
|
4268 7090 | pub fn build(self) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
4269 7091 | self.build_enforcing_all_constraints()
|
4270 7092 | }
|
7093 + | /* ServerBuilderGenerator.kt:283 */
|
4271 7094 | fn build_enforcing_all_constraints(
|
4272 7095 | self,
|
4273 7096 | ) -> crate::input::MalformedContentTypeWithoutBodyInput {
|
4274 - | crate::input::MalformedContentTypeWithoutBodyInput {}
|
7097 + | /* ServerBuilderGenerator.kt:542 */
|
7098 + | crate::input::MalformedContentTypeWithoutBodyInput {
|
7099 + | /* ServerBuilderGenerator.kt:542 */}
|
7100 + | /* ServerBuilderGenerator.kt:283 */
|
4275 7101 | }
|
7102 + | /* ServerBuilderGenerator.kt:215 */
|
4276 7103 | }
|
7104 + |
|
7105 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4277 7106 | }
|
4278 - | /// See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
7107 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
4279 7108 | pub mod malformed_timestamp_body_http_date_input {
|
4280 7109 |
|
7110 + | /* RustType.kt:534 */
|
4281 7111 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4282 - | /// Holds one variant for each of the ways the builder can fail.
|
7112 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7113 + | /* RustType.kt:534 */
|
4283 7114 | #[non_exhaustive]
|
7115 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4284 7116 | #[allow(clippy::enum_variant_names)]
|
4285 7117 | pub enum ConstraintViolation {
|
4286 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
7118 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`.
|
7119 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4287 7120 | MissingTimestamp,
|
7121 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4288 7122 | }
|
7123 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4289 7124 | impl ::std::fmt::Display for ConstraintViolation {
|
7125 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4290 7126 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7127 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4291 7128 | match self {
|
4292 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
4293 - | }
|
7129 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyHttpDateInput`"),
|
7130 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7131 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4294 7132 | }
|
7133 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4295 7134 | }
|
7135 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4296 7136 | impl ::std::error::Error for ConstraintViolation {}
|
7137 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4297 7138 | impl ConstraintViolation {
|
4298 7139 | pub(crate) fn as_validation_exception_field(
|
4299 7140 | self,
|
4300 7141 | path: ::std::string::String,
|
4301 7142 | ) -> crate::model::ValidationExceptionField {
|
4302 7143 | match self {
|
4303 7144 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4304 7145 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4305 7146 | path: path + "/timestamp",
|
4306 7147 | },
|
4307 7148 | }
|
4308 7149 | }
|
4309 7150 | }
|
7151 + | /* ServerBuilderGenerator.kt:234 */
|
4310 7152 | impl ::std::convert::From<ConstraintViolation>
|
4311 7153 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4312 7154 | {
|
4313 7155 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4314 7156 | let first_validation_exception_field =
|
4315 7157 | constraint_violation.as_validation_exception_field("".to_owned());
|
4316 7158 | let validation_exception = crate::error::ValidationException {
|
4317 7159 | message: format!(
|
4318 7160 | "1 validation error detected. {}",
|
4319 7161 | &first_validation_exception_field.message
|
4320 7162 | ),
|
4321 7163 | field_list: Some(vec![first_validation_exception_field]),
|
4322 7164 | };
|
4323 7165 | Self::ConstraintViolation(
|
4324 7166 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4325 7167 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4326 7168 | )
|
4327 7169 | }
|
4328 7170 | }
|
7171 + | /* ServerBuilderGenerator.kt:244 */
|
4329 7172 | impl ::std::convert::From<Builder>
|
4330 7173 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyHttpDateInput>
|
4331 7174 | {
|
4332 7175 | fn from(builder: Builder) -> Self {
|
4333 7176 | Self::Unconstrained(builder)
|
4334 7177 | }
|
4335 7178 | }
|
7179 + | /* ServerBuilderGenerator.kt:446 */
|
4336 7180 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyHttpDateInput {
|
4337 7181 | type Error = ConstraintViolation;
|
4338 7182 |
|
4339 7183 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4340 7184 | builder.build()
|
4341 7185 | }
|
4342 7186 | }
|
4343 - | /// A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
7187 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
7188 + | /* RustType.kt:534 */
|
4344 7189 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7190 + | /* ServerBuilderGenerator.kt:211 */
|
4345 7191 | pub struct Builder {
|
7192 + | /* ServerBuilderGenerator.kt:308 */
|
4346 7193 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7194 + | /* ServerBuilderGenerator.kt:211 */
|
4347 7195 | }
|
7196 + | /* ServerBuilderGenerator.kt:215 */
|
4348 7197 | impl Builder {
|
7198 + | /* ServerBuilderGenerator.kt:331 */
|
4349 7199 | #[allow(missing_docs)] // documentation missing in model
|
7200 + | /* ServerBuilderGenerator.kt:343 */
|
4350 7201 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4351 - | self.timestamp = Some(input);
|
7202 + | /* ServerBuilderGenerator.kt:344 */
|
7203 + | self.timestamp =
|
7204 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7205 + | /* ServerBuilderGenerator.kt:376 */input
|
7206 + | /* ServerBuilderGenerator.kt:345 */)
|
7207 + | /* ServerBuilderGenerator.kt:344 */;
|
4352 7208 | self
|
7209 + | /* ServerBuilderGenerator.kt:343 */
|
4353 7210 | }
|
7211 + | /* ServerBuilderGenerator.kt:426 */
|
4354 7212 | #[allow(missing_docs)] // documentation missing in model
|
7213 + | /* ServerBuilderGenerator.kt:428 */
|
4355 7214 | pub(crate) fn set_timestamp(
|
4356 7215 | mut self,
|
4357 7216 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4358 7217 | ) -> Self {
|
7218 + | /* ServerBuilderGenerator.kt:429 */
|
4359 7219 | self.timestamp = Some(input.into());
|
4360 7220 | self
|
7221 + | /* ServerBuilderGenerator.kt:428 */
|
4361 7222 | }
|
4362 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
4363 - | ///
|
7223 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput).
|
7224 + | /// /* ServerBuilderGenerator.kt:260 */
|
4364 7225 | /// The builder fails to construct a [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) if a [`ConstraintViolation`] occurs.
|
4365 7226 | ///
|
7227 + | /* ServerBuilderGenerator.kt:271 */
|
4366 7228 | pub fn build(
|
4367 7229 | self,
|
4368 7230 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
4369 7231 | {
|
4370 7232 | self.build_enforcing_all_constraints()
|
4371 7233 | }
|
7234 + | /* ServerBuilderGenerator.kt:283 */
|
4372 7235 | fn build_enforcing_all_constraints(
|
4373 7236 | self,
|
4374 7237 | ) -> Result<crate::input::MalformedTimestampBodyHttpDateInput, ConstraintViolation>
|
4375 7238 | {
|
4376 - | Ok(crate::input::MalformedTimestampBodyHttpDateInput {
|
7239 + | /* ServerBuilderGenerator.kt:287 */
|
7240 + | Ok(
|
7241 + | /* ServerBuilderGenerator.kt:542 */
|
7242 + | crate::input::MalformedTimestampBodyHttpDateInput {
|
7243 + | /* ServerBuilderGenerator.kt:546 */
|
4377 7244 | timestamp: self
|
4378 7245 | .timestamp
|
7246 + | /* ServerBuilderGenerator.kt:569 */
|
4379 7247 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4380 - | })
|
7248 + | /* ServerBuilderGenerator.kt:542 */
|
7249 + | }, /* ServerBuilderGenerator.kt:287 */
|
7250 + | )
|
7251 + | /* ServerBuilderGenerator.kt:283 */
|
4381 7252 | }
|
7253 + | /* ServerBuilderGenerator.kt:215 */
|
4382 7254 | }
|
7255 + |
|
7256 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4383 7257 | }
|
4384 - | /// See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7258 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
4385 7259 | pub mod malformed_timestamp_body_date_time_input {
|
4386 7260 |
|
7261 + | /* RustType.kt:534 */
|
4387 7262 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4388 - | /// Holds one variant for each of the ways the builder can fail.
|
7263 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7264 + | /* RustType.kt:534 */
|
4389 7265 | #[non_exhaustive]
|
7266 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4390 7267 | #[allow(clippy::enum_variant_names)]
|
4391 7268 | pub enum ConstraintViolation {
|
4392 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
7269 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`.
|
7270 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4393 7271 | MissingTimestamp,
|
7272 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4394 7273 | }
|
7274 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4395 7275 | impl ::std::fmt::Display for ConstraintViolation {
|
7276 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4396 7277 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7278 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4397 7279 | match self {
|
4398 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
4399 - | }
|
7280 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDateTimeInput`"),
|
7281 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7282 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4400 7283 | }
|
7284 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4401 7285 | }
|
7286 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4402 7287 | impl ::std::error::Error for ConstraintViolation {}
|
7288 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4403 7289 | impl ConstraintViolation {
|
4404 7290 | pub(crate) fn as_validation_exception_field(
|
4405 7291 | self,
|
4406 7292 | path: ::std::string::String,
|
4407 7293 | ) -> crate::model::ValidationExceptionField {
|
4408 7294 | match self {
|
4409 7295 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4410 7296 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4411 7297 | path: path + "/timestamp",
|
4412 7298 | },
|
4413 7299 | }
|
4414 7300 | }
|
4415 7301 | }
|
7302 + | /* ServerBuilderGenerator.kt:234 */
|
4416 7303 | impl ::std::convert::From<ConstraintViolation>
|
4417 7304 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4418 7305 | {
|
4419 7306 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4420 7307 | let first_validation_exception_field =
|
4421 7308 | constraint_violation.as_validation_exception_field("".to_owned());
|
4422 7309 | let validation_exception = crate::error::ValidationException {
|
4423 7310 | message: format!(
|
4424 7311 | "1 validation error detected. {}",
|
4425 7312 | &first_validation_exception_field.message
|
4426 7313 | ),
|
4427 7314 | field_list: Some(vec![first_validation_exception_field]),
|
4428 7315 | };
|
4429 7316 | Self::ConstraintViolation(
|
4430 7317 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4431 7318 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4432 7319 | )
|
4433 7320 | }
|
4434 7321 | }
|
7322 + | /* ServerBuilderGenerator.kt:244 */
|
4435 7323 | impl ::std::convert::From<Builder>
|
4436 7324 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDateTimeInput>
|
4437 7325 | {
|
4438 7326 | fn from(builder: Builder) -> Self {
|
4439 7327 | Self::Unconstrained(builder)
|
4440 7328 | }
|
4441 7329 | }
|
7330 + | /* ServerBuilderGenerator.kt:446 */
|
4442 7331 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDateTimeInput {
|
4443 7332 | type Error = ConstraintViolation;
|
4444 7333 |
|
4445 7334 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4446 7335 | builder.build()
|
4447 7336 | }
|
4448 7337 | }
|
4449 - | /// A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7338 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7339 + | /* RustType.kt:534 */
|
4450 7340 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7341 + | /* ServerBuilderGenerator.kt:211 */
|
4451 7342 | pub struct Builder {
|
7343 + | /* ServerBuilderGenerator.kt:308 */
|
4452 7344 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7345 + | /* ServerBuilderGenerator.kt:211 */
|
4453 7346 | }
|
7347 + | /* ServerBuilderGenerator.kt:215 */
|
4454 7348 | impl Builder {
|
7349 + | /* ServerBuilderGenerator.kt:331 */
|
4455 7350 | #[allow(missing_docs)] // documentation missing in model
|
7351 + | /* ServerBuilderGenerator.kt:343 */
|
4456 7352 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4457 - | self.timestamp = Some(input);
|
7353 + | /* ServerBuilderGenerator.kt:344 */
|
7354 + | self.timestamp =
|
7355 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7356 + | /* ServerBuilderGenerator.kt:376 */input
|
7357 + | /* ServerBuilderGenerator.kt:345 */)
|
7358 + | /* ServerBuilderGenerator.kt:344 */;
|
4458 7359 | self
|
7360 + | /* ServerBuilderGenerator.kt:343 */
|
4459 7361 | }
|
7362 + | /* ServerBuilderGenerator.kt:426 */
|
4460 7363 | #[allow(missing_docs)] // documentation missing in model
|
7364 + | /* ServerBuilderGenerator.kt:428 */
|
4461 7365 | pub(crate) fn set_timestamp(
|
4462 7366 | mut self,
|
4463 7367 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4464 7368 | ) -> Self {
|
7369 + | /* ServerBuilderGenerator.kt:429 */
|
4465 7370 | self.timestamp = Some(input.into());
|
4466 7371 | self
|
7372 + | /* ServerBuilderGenerator.kt:428 */
|
4467 7373 | }
|
4468 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
4469 - | ///
|
7374 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput).
|
7375 + | /// /* ServerBuilderGenerator.kt:260 */
|
4470 7376 | /// The builder fails to construct a [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) if a [`ConstraintViolation`] occurs.
|
4471 7377 | ///
|
7378 + | /* ServerBuilderGenerator.kt:271 */
|
4472 7379 | pub fn build(
|
4473 7380 | self,
|
4474 7381 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
4475 7382 | {
|
4476 7383 | self.build_enforcing_all_constraints()
|
4477 7384 | }
|
7385 + | /* ServerBuilderGenerator.kt:283 */
|
4478 7386 | fn build_enforcing_all_constraints(
|
4479 7387 | self,
|
4480 7388 | ) -> Result<crate::input::MalformedTimestampBodyDateTimeInput, ConstraintViolation>
|
4481 7389 | {
|
4482 - | Ok(crate::input::MalformedTimestampBodyDateTimeInput {
|
7390 + | /* ServerBuilderGenerator.kt:287 */
|
7391 + | Ok(
|
7392 + | /* ServerBuilderGenerator.kt:542 */
|
7393 + | crate::input::MalformedTimestampBodyDateTimeInput {
|
7394 + | /* ServerBuilderGenerator.kt:546 */
|
4483 7395 | timestamp: self
|
4484 7396 | .timestamp
|
7397 + | /* ServerBuilderGenerator.kt:569 */
|
4485 7398 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4486 - | })
|
7399 + | /* ServerBuilderGenerator.kt:542 */
|
7400 + | }, /* ServerBuilderGenerator.kt:287 */
|
7401 + | )
|
7402 + | /* ServerBuilderGenerator.kt:283 */
|
4487 7403 | }
|
7404 + | /* ServerBuilderGenerator.kt:215 */
|
4488 7405 | }
|
7406 + |
|
7407 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4489 7408 | }
|
4490 - | /// See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7409 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
4491 7410 | pub mod malformed_timestamp_body_default_input {
|
4492 7411 |
|
7412 + | /* RustType.kt:534 */
|
4493 7413 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4494 - | /// Holds one variant for each of the ways the builder can fail.
|
7414 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7415 + | /* RustType.kt:534 */
|
4495 7416 | #[non_exhaustive]
|
7417 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4496 7418 | #[allow(clippy::enum_variant_names)]
|
4497 7419 | pub enum ConstraintViolation {
|
4498 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
7420 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`.
|
7421 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4499 7422 | MissingTimestamp,
|
7423 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4500 7424 | }
|
7425 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4501 7426 | impl ::std::fmt::Display for ConstraintViolation {
|
7427 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4502 7428 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7429 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4503 7430 | match self {
|
4504 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
4505 - | }
|
7431 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampBodyDefaultInput`"),
|
7432 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7433 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4506 7434 | }
|
7435 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4507 7436 | }
|
7437 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4508 7438 | impl ::std::error::Error for ConstraintViolation {}
|
7439 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4509 7440 | impl ConstraintViolation {
|
4510 7441 | pub(crate) fn as_validation_exception_field(
|
4511 7442 | self,
|
4512 7443 | path: ::std::string::String,
|
4513 7444 | ) -> crate::model::ValidationExceptionField {
|
4514 7445 | match self {
|
4515 7446 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4516 7447 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4517 7448 | path: path + "/timestamp",
|
4518 7449 | },
|
4519 7450 | }
|
4520 7451 | }
|
4521 7452 | }
|
7453 + | /* ServerBuilderGenerator.kt:234 */
|
4522 7454 | impl ::std::convert::From<ConstraintViolation>
|
4523 7455 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4524 7456 | {
|
4525 7457 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4526 7458 | let first_validation_exception_field =
|
4527 7459 | constraint_violation.as_validation_exception_field("".to_owned());
|
4528 7460 | let validation_exception = crate::error::ValidationException {
|
4529 7461 | message: format!(
|
4530 7462 | "1 validation error detected. {}",
|
4531 7463 | &first_validation_exception_field.message
|
4532 7464 | ),
|
4533 7465 | field_list: Some(vec![first_validation_exception_field]),
|
4534 7466 | };
|
4535 7467 | Self::ConstraintViolation(
|
4536 7468 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4537 7469 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4538 7470 | )
|
4539 7471 | }
|
4540 7472 | }
|
7473 + | /* ServerBuilderGenerator.kt:244 */
|
4541 7474 | impl ::std::convert::From<Builder>
|
4542 7475 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampBodyDefaultInput>
|
4543 7476 | {
|
4544 7477 | fn from(builder: Builder) -> Self {
|
4545 7478 | Self::Unconstrained(builder)
|
4546 7479 | }
|
4547 7480 | }
|
7481 + | /* ServerBuilderGenerator.kt:446 */
|
4548 7482 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampBodyDefaultInput {
|
4549 7483 | type Error = ConstraintViolation;
|
4550 7484 |
|
4551 7485 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4552 7486 | builder.build()
|
4553 7487 | }
|
4554 7488 | }
|
4555 - | /// A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7489 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7490 + | /* RustType.kt:534 */
|
4556 7491 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7492 + | /* ServerBuilderGenerator.kt:211 */
|
4557 7493 | pub struct Builder {
|
7494 + | /* ServerBuilderGenerator.kt:308 */
|
4558 7495 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7496 + | /* ServerBuilderGenerator.kt:211 */
|
4559 7497 | }
|
7498 + | /* ServerBuilderGenerator.kt:215 */
|
4560 7499 | impl Builder {
|
7500 + | /* ServerBuilderGenerator.kt:331 */
|
4561 7501 | #[allow(missing_docs)] // documentation missing in model
|
7502 + | /* ServerBuilderGenerator.kt:343 */
|
4562 7503 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4563 - | self.timestamp = Some(input);
|
7504 + | /* ServerBuilderGenerator.kt:344 */
|
7505 + | self.timestamp =
|
7506 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7507 + | /* ServerBuilderGenerator.kt:376 */input
|
7508 + | /* ServerBuilderGenerator.kt:345 */)
|
7509 + | /* ServerBuilderGenerator.kt:344 */;
|
4564 7510 | self
|
7511 + | /* ServerBuilderGenerator.kt:343 */
|
4565 7512 | }
|
7513 + | /* ServerBuilderGenerator.kt:426 */
|
4566 7514 | #[allow(missing_docs)] // documentation missing in model
|
7515 + | /* ServerBuilderGenerator.kt:428 */
|
4567 7516 | pub(crate) fn set_timestamp(
|
4568 7517 | mut self,
|
4569 7518 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4570 7519 | ) -> Self {
|
7520 + | /* ServerBuilderGenerator.kt:429 */
|
4571 7521 | self.timestamp = Some(input.into());
|
4572 7522 | self
|
7523 + | /* ServerBuilderGenerator.kt:428 */
|
4573 7524 | }
|
4574 - | /// Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
4575 - | ///
|
7525 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput).
|
7526 + | /// /* ServerBuilderGenerator.kt:260 */
|
4576 7527 | /// The builder fails to construct a [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) if a [`ConstraintViolation`] occurs.
|
4577 7528 | ///
|
7529 + | /* ServerBuilderGenerator.kt:271 */
|
4578 7530 | pub fn build(
|
4579 7531 | self,
|
4580 7532 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
4581 7533 | self.build_enforcing_all_constraints()
|
4582 7534 | }
|
7535 + | /* ServerBuilderGenerator.kt:283 */
|
4583 7536 | fn build_enforcing_all_constraints(
|
4584 7537 | self,
|
4585 7538 | ) -> Result<crate::input::MalformedTimestampBodyDefaultInput, ConstraintViolation> {
|
4586 - | Ok(crate::input::MalformedTimestampBodyDefaultInput {
|
7539 + | /* ServerBuilderGenerator.kt:287 */
|
7540 + | Ok(
|
7541 + | /* ServerBuilderGenerator.kt:542 */
|
7542 + | crate::input::MalformedTimestampBodyDefaultInput {
|
7543 + | /* ServerBuilderGenerator.kt:546 */
|
4587 7544 | timestamp: self
|
4588 7545 | .timestamp
|
7546 + | /* ServerBuilderGenerator.kt:569 */
|
4589 7547 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4590 - | })
|
7548 + | /* ServerBuilderGenerator.kt:542 */
|
7549 + | }, /* ServerBuilderGenerator.kt:287 */
|
7550 + | )
|
7551 + | /* ServerBuilderGenerator.kt:283 */
|
4591 7552 | }
|
7553 + | /* ServerBuilderGenerator.kt:215 */
|
4592 7554 | }
|
7555 + |
|
7556 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4593 7557 | }
|
4594 - | /// See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7558 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
4595 7559 | pub mod malformed_timestamp_header_epoch_input {
|
4596 7560 |
|
7561 + | /* RustType.kt:534 */
|
4597 7562 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4598 - | /// Holds one variant for each of the ways the builder can fail.
|
7563 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7564 + | /* RustType.kt:534 */
|
4599 7565 | #[non_exhaustive]
|
7566 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4600 7567 | #[allow(clippy::enum_variant_names)]
|
4601 7568 | pub enum ConstraintViolation {
|
4602 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
7569 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`.
|
7570 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4603 7571 | MissingTimestamp,
|
7572 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4604 7573 | }
|
7574 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4605 7575 | impl ::std::fmt::Display for ConstraintViolation {
|
7576 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4606 7577 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7578 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4607 7579 | match self {
|
4608 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
4609 - | }
|
7580 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderEpochInput`"),
|
7581 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7582 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4610 7583 | }
|
7584 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4611 7585 | }
|
7586 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4612 7587 | impl ::std::error::Error for ConstraintViolation {}
|
7588 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4613 7589 | impl ConstraintViolation {
|
4614 7590 | pub(crate) fn as_validation_exception_field(
|
4615 7591 | self,
|
4616 7592 | path: ::std::string::String,
|
4617 7593 | ) -> crate::model::ValidationExceptionField {
|
4618 7594 | match self {
|
4619 7595 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4620 7596 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4621 7597 | path: path + "/timestamp",
|
4622 7598 | },
|
4623 7599 | }
|
4624 7600 | }
|
4625 7601 | }
|
7602 + | /* ServerBuilderGenerator.kt:234 */
|
4626 7603 | impl ::std::convert::From<ConstraintViolation>
|
4627 7604 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4628 7605 | {
|
4629 7606 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4630 7607 | let first_validation_exception_field =
|
4631 7608 | constraint_violation.as_validation_exception_field("".to_owned());
|
4632 7609 | let validation_exception = crate::error::ValidationException {
|
4633 7610 | message: format!(
|
4634 7611 | "1 validation error detected. {}",
|
4635 7612 | &first_validation_exception_field.message
|
4636 7613 | ),
|
4637 7614 | field_list: Some(vec![first_validation_exception_field]),
|
4638 7615 | };
|
4639 7616 | Self::ConstraintViolation(
|
4640 7617 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4641 7618 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4642 7619 | )
|
4643 7620 | }
|
4644 7621 | }
|
7622 + | /* ServerBuilderGenerator.kt:244 */
|
4645 7623 | impl ::std::convert::From<Builder>
|
4646 7624 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderEpochInput>
|
4647 7625 | {
|
4648 7626 | fn from(builder: Builder) -> Self {
|
4649 7627 | Self::Unconstrained(builder)
|
4650 7628 | }
|
4651 7629 | }
|
7630 + | /* ServerBuilderGenerator.kt:446 */
|
4652 7631 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderEpochInput {
|
4653 7632 | type Error = ConstraintViolation;
|
4654 7633 |
|
4655 7634 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4656 7635 | builder.build()
|
4657 7636 | }
|
4658 7637 | }
|
4659 - | /// A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7638 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7639 + | /* RustType.kt:534 */
|
4660 7640 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7641 + | /* ServerBuilderGenerator.kt:211 */
|
4661 7642 | pub struct Builder {
|
7643 + | /* ServerBuilderGenerator.kt:308 */
|
4662 7644 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7645 + | /* ServerBuilderGenerator.kt:211 */
|
4663 7646 | }
|
7647 + | /* ServerBuilderGenerator.kt:215 */
|
4664 7648 | impl Builder {
|
7649 + | /* ServerBuilderGenerator.kt:331 */
|
4665 7650 | #[allow(missing_docs)] // documentation missing in model
|
7651 + | /* ServerBuilderGenerator.kt:343 */
|
4666 7652 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4667 - | self.timestamp = Some(input);
|
7653 + | /* ServerBuilderGenerator.kt:344 */
|
7654 + | self.timestamp =
|
7655 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7656 + | /* ServerBuilderGenerator.kt:376 */input
|
7657 + | /* ServerBuilderGenerator.kt:345 */)
|
7658 + | /* ServerBuilderGenerator.kt:344 */;
|
4668 7659 | self
|
7660 + | /* ServerBuilderGenerator.kt:343 */
|
4669 7661 | }
|
7662 + | /* ServerBuilderGenerator.kt:426 */
|
4670 7663 | #[allow(missing_docs)] // documentation missing in model
|
7664 + | /* ServerBuilderGenerator.kt:428 */
|
4671 7665 | pub(crate) fn set_timestamp(
|
4672 7666 | mut self,
|
4673 7667 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4674 7668 | ) -> Self {
|
7669 + | /* ServerBuilderGenerator.kt:429 */
|
4675 7670 | self.timestamp = Some(input.into());
|
4676 7671 | self
|
7672 + | /* ServerBuilderGenerator.kt:428 */
|
4677 7673 | }
|
4678 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
4679 - | ///
|
7674 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput).
|
7675 + | /// /* ServerBuilderGenerator.kt:260 */
|
4680 7676 | /// The builder fails to construct a [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) if a [`ConstraintViolation`] occurs.
|
4681 7677 | ///
|
7678 + | /* ServerBuilderGenerator.kt:271 */
|
4682 7679 | pub fn build(
|
4683 7680 | self,
|
4684 7681 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
4685 7682 | self.build_enforcing_all_constraints()
|
4686 7683 | }
|
7684 + | /* ServerBuilderGenerator.kt:283 */
|
4687 7685 | fn build_enforcing_all_constraints(
|
4688 7686 | self,
|
4689 7687 | ) -> Result<crate::input::MalformedTimestampHeaderEpochInput, ConstraintViolation> {
|
4690 - | Ok(crate::input::MalformedTimestampHeaderEpochInput {
|
7688 + | /* ServerBuilderGenerator.kt:287 */
|
7689 + | Ok(
|
7690 + | /* ServerBuilderGenerator.kt:542 */
|
7691 + | crate::input::MalformedTimestampHeaderEpochInput {
|
7692 + | /* ServerBuilderGenerator.kt:546 */
|
4691 7693 | timestamp: self
|
4692 7694 | .timestamp
|
7695 + | /* ServerBuilderGenerator.kt:569 */
|
4693 7696 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4694 - | })
|
7697 + | /* ServerBuilderGenerator.kt:542 */
|
7698 + | }, /* ServerBuilderGenerator.kt:287 */
|
7699 + | )
|
7700 + | /* ServerBuilderGenerator.kt:283 */
|
4695 7701 | }
|
7702 + | /* ServerBuilderGenerator.kt:215 */
|
4696 7703 | }
|
7704 + |
|
7705 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4697 7706 | }
|
4698 - | /// See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7707 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
4699 7708 | pub mod malformed_timestamp_header_date_time_input {
|
4700 7709 |
|
7710 + | /* RustType.kt:534 */
|
4701 7711 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4702 - | /// Holds one variant for each of the ways the builder can fail.
|
7712 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7713 + | /* RustType.kt:534 */
|
4703 7714 | #[non_exhaustive]
|
7715 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4704 7716 | #[allow(clippy::enum_variant_names)]
|
4705 7717 | pub enum ConstraintViolation {
|
4706 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
7718 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`.
|
7719 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4707 7720 | MissingTimestamp,
|
7721 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4708 7722 | }
|
7723 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4709 7724 | impl ::std::fmt::Display for ConstraintViolation {
|
7725 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4710 7726 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7727 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4711 7728 | match self {
|
4712 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
4713 - | }
|
7729 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDateTimeInput`"),
|
7730 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7731 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4714 7732 | }
|
7733 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4715 7734 | }
|
7735 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4716 7736 | impl ::std::error::Error for ConstraintViolation {}
|
7737 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4717 7738 | impl ConstraintViolation {
|
4718 7739 | pub(crate) fn as_validation_exception_field(
|
4719 7740 | self,
|
4720 7741 | path: ::std::string::String,
|
4721 7742 | ) -> crate::model::ValidationExceptionField {
|
4722 7743 | match self {
|
4723 7744 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4724 7745 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4725 7746 | path: path + "/timestamp",
|
4726 7747 | },
|
4727 7748 | }
|
4728 7749 | }
|
4729 7750 | }
|
7751 + | /* ServerBuilderGenerator.kt:234 */
|
4730 7752 | impl ::std::convert::From<ConstraintViolation>
|
4731 7753 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4732 7754 | {
|
4733 7755 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4734 7756 | let first_validation_exception_field =
|
4735 7757 | constraint_violation.as_validation_exception_field("".to_owned());
|
4736 7758 | let validation_exception = crate::error::ValidationException {
|
4737 7759 | message: format!(
|
4738 7760 | "1 validation error detected. {}",
|
4739 7761 | &first_validation_exception_field.message
|
4740 7762 | ),
|
4741 7763 | field_list: Some(vec![first_validation_exception_field]),
|
4742 7764 | };
|
4743 7765 | Self::ConstraintViolation(
|
4744 7766 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4745 7767 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4746 7768 | )
|
4747 7769 | }
|
4748 7770 | }
|
7771 + | /* ServerBuilderGenerator.kt:244 */
|
4749 7772 | impl ::std::convert::From<Builder>
|
4750 7773 | for crate::constrained::MaybeConstrained<
|
4751 7774 | crate::input::MalformedTimestampHeaderDateTimeInput,
|
4752 7775 | >
|
4753 7776 | {
|
4754 7777 | fn from(builder: Builder) -> Self {
|
4755 7778 | Self::Unconstrained(builder)
|
4756 7779 | }
|
4757 7780 | }
|
7781 + | /* ServerBuilderGenerator.kt:446 */
|
4758 7782 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDateTimeInput {
|
4759 7783 | type Error = ConstraintViolation;
|
4760 7784 |
|
4761 7785 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4762 7786 | builder.build()
|
4763 7787 | }
|
4764 7788 | }
|
4765 - | /// A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7789 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7790 + | /* RustType.kt:534 */
|
4766 7791 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7792 + | /* ServerBuilderGenerator.kt:211 */
|
4767 7793 | pub struct Builder {
|
7794 + | /* ServerBuilderGenerator.kt:308 */
|
4768 7795 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7796 + | /* ServerBuilderGenerator.kt:211 */
|
4769 7797 | }
|
7798 + | /* ServerBuilderGenerator.kt:215 */
|
4770 7799 | impl Builder {
|
7800 + | /* ServerBuilderGenerator.kt:331 */
|
4771 7801 | #[allow(missing_docs)] // documentation missing in model
|
7802 + | /* ServerBuilderGenerator.kt:343 */
|
4772 7803 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4773 - | self.timestamp = Some(input);
|
7804 + | /* ServerBuilderGenerator.kt:344 */
|
7805 + | self.timestamp =
|
7806 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7807 + | /* ServerBuilderGenerator.kt:376 */input
|
7808 + | /* ServerBuilderGenerator.kt:345 */)
|
7809 + | /* ServerBuilderGenerator.kt:344 */;
|
4774 7810 | self
|
7811 + | /* ServerBuilderGenerator.kt:343 */
|
4775 7812 | }
|
7813 + | /* ServerBuilderGenerator.kt:426 */
|
4776 7814 | #[allow(missing_docs)] // documentation missing in model
|
7815 + | /* ServerBuilderGenerator.kt:428 */
|
4777 7816 | pub(crate) fn set_timestamp(
|
4778 7817 | mut self,
|
4779 7818 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4780 7819 | ) -> Self {
|
7820 + | /* ServerBuilderGenerator.kt:429 */
|
4781 7821 | self.timestamp = Some(input.into());
|
4782 7822 | self
|
7823 + | /* ServerBuilderGenerator.kt:428 */
|
4783 7824 | }
|
4784 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
4785 - | ///
|
7825 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput).
|
7826 + | /// /* ServerBuilderGenerator.kt:260 */
|
4786 7827 | /// The builder fails to construct a [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) if a [`ConstraintViolation`] occurs.
|
4787 7828 | ///
|
7829 + | /* ServerBuilderGenerator.kt:271 */
|
4788 7830 | pub fn build(
|
4789 7831 | self,
|
4790 7832 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
4791 7833 | {
|
4792 7834 | self.build_enforcing_all_constraints()
|
4793 7835 | }
|
7836 + | /* ServerBuilderGenerator.kt:283 */
|
4794 7837 | fn build_enforcing_all_constraints(
|
4795 7838 | self,
|
4796 7839 | ) -> Result<crate::input::MalformedTimestampHeaderDateTimeInput, ConstraintViolation>
|
4797 7840 | {
|
4798 - | Ok(crate::input::MalformedTimestampHeaderDateTimeInput {
|
7841 + | /* ServerBuilderGenerator.kt:287 */
|
7842 + | Ok(
|
7843 + | /* ServerBuilderGenerator.kt:542 */
|
7844 + | crate::input::MalformedTimestampHeaderDateTimeInput {
|
7845 + | /* ServerBuilderGenerator.kt:546 */
|
4799 7846 | timestamp: self
|
4800 7847 | .timestamp
|
7848 + | /* ServerBuilderGenerator.kt:569 */
|
4801 7849 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4802 - | })
|
7850 + | /* ServerBuilderGenerator.kt:542 */
|
7851 + | }, /* ServerBuilderGenerator.kt:287 */
|
7852 + | )
|
7853 + | /* ServerBuilderGenerator.kt:283 */
|
4803 7854 | }
|
7855 + | /* ServerBuilderGenerator.kt:215 */
|
4804 7856 | }
|
7857 + |
|
7858 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4805 7859 | }
|
4806 - | /// See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7860 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
4807 7861 | pub mod malformed_timestamp_header_default_input {
|
4808 7862 |
|
7863 + | /* RustType.kt:534 */
|
4809 7864 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4810 - | /// Holds one variant for each of the ways the builder can fail.
|
7865 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7866 + | /* RustType.kt:534 */
|
4811 7867 | #[non_exhaustive]
|
7868 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4812 7869 | #[allow(clippy::enum_variant_names)]
|
4813 7870 | pub enum ConstraintViolation {
|
4814 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
7871 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`.
|
7872 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4815 7873 | MissingTimestamp,
|
7874 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4816 7875 | }
|
7876 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4817 7877 | impl ::std::fmt::Display for ConstraintViolation {
|
7878 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4818 7879 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7880 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4819 7881 | match self {
|
4820 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
4821 - | }
|
7882 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampHeaderDefaultInput`"),
|
7883 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
7884 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4822 7885 | }
|
7886 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4823 7887 | }
|
7888 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4824 7889 | impl ::std::error::Error for ConstraintViolation {}
|
7890 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4825 7891 | impl ConstraintViolation {
|
4826 7892 | pub(crate) fn as_validation_exception_field(
|
4827 7893 | self,
|
4828 7894 | path: ::std::string::String,
|
4829 7895 | ) -> crate::model::ValidationExceptionField {
|
4830 7896 | match self {
|
4831 7897 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4832 7898 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4833 7899 | path: path + "/timestamp",
|
4834 7900 | },
|
4835 7901 | }
|
4836 7902 | }
|
4837 7903 | }
|
7904 + | /* ServerBuilderGenerator.kt:234 */
|
4838 7905 | impl ::std::convert::From<ConstraintViolation>
|
4839 7906 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4840 7907 | {
|
4841 7908 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4842 7909 | let first_validation_exception_field =
|
4843 7910 | constraint_violation.as_validation_exception_field("".to_owned());
|
4844 7911 | let validation_exception = crate::error::ValidationException {
|
4845 7912 | message: format!(
|
4846 7913 | "1 validation error detected. {}",
|
4847 7914 | &first_validation_exception_field.message
|
4848 7915 | ),
|
4849 7916 | field_list: Some(vec![first_validation_exception_field]),
|
4850 7917 | };
|
4851 7918 | Self::ConstraintViolation(
|
4852 7919 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4853 7920 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4854 7921 | )
|
4855 7922 | }
|
4856 7923 | }
|
7924 + | /* ServerBuilderGenerator.kt:244 */
|
4857 7925 | impl ::std::convert::From<Builder>
|
4858 7926 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampHeaderDefaultInput>
|
4859 7927 | {
|
4860 7928 | fn from(builder: Builder) -> Self {
|
4861 7929 | Self::Unconstrained(builder)
|
4862 7930 | }
|
4863 7931 | }
|
7932 + | /* ServerBuilderGenerator.kt:446 */
|
4864 7933 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampHeaderDefaultInput {
|
4865 7934 | type Error = ConstraintViolation;
|
4866 7935 |
|
4867 7936 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4868 7937 | builder.build()
|
4869 7938 | }
|
4870 7939 | }
|
4871 - | /// A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7940 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7941 + | /* RustType.kt:534 */
|
4872 7942 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7943 + | /* ServerBuilderGenerator.kt:211 */
|
4873 7944 | pub struct Builder {
|
7945 + | /* ServerBuilderGenerator.kt:308 */
|
4874 7946 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
7947 + | /* ServerBuilderGenerator.kt:211 */
|
4875 7948 | }
|
7949 + | /* ServerBuilderGenerator.kt:215 */
|
4876 7950 | impl Builder {
|
7951 + | /* ServerBuilderGenerator.kt:331 */
|
4877 7952 | #[allow(missing_docs)] // documentation missing in model
|
7953 + | /* ServerBuilderGenerator.kt:343 */
|
4878 7954 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4879 - | self.timestamp = Some(input);
|
7955 + | /* ServerBuilderGenerator.kt:344 */
|
7956 + | self.timestamp =
|
7957 + | /* ServerBuilderGenerator.kt:345 */Some(
|
7958 + | /* ServerBuilderGenerator.kt:376 */input
|
7959 + | /* ServerBuilderGenerator.kt:345 */)
|
7960 + | /* ServerBuilderGenerator.kt:344 */;
|
4880 7961 | self
|
7962 + | /* ServerBuilderGenerator.kt:343 */
|
4881 7963 | }
|
7964 + | /* ServerBuilderGenerator.kt:426 */
|
4882 7965 | #[allow(missing_docs)] // documentation missing in model
|
7966 + | /* ServerBuilderGenerator.kt:428 */
|
4883 7967 | pub(crate) fn set_timestamp(
|
4884 7968 | mut self,
|
4885 7969 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4886 7970 | ) -> Self {
|
7971 + | /* ServerBuilderGenerator.kt:429 */
|
4887 7972 | self.timestamp = Some(input.into());
|
4888 7973 | self
|
7974 + | /* ServerBuilderGenerator.kt:428 */
|
4889 7975 | }
|
4890 - | /// Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
4891 - | ///
|
7976 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput).
|
7977 + | /// /* ServerBuilderGenerator.kt:260 */
|
4892 7978 | /// The builder fails to construct a [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) if a [`ConstraintViolation`] occurs.
|
4893 7979 | ///
|
7980 + | /* ServerBuilderGenerator.kt:271 */
|
4894 7981 | pub fn build(
|
4895 7982 | self,
|
4896 7983 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
4897 7984 | {
|
4898 7985 | self.build_enforcing_all_constraints()
|
4899 7986 | }
|
7987 + | /* ServerBuilderGenerator.kt:283 */
|
4900 7988 | fn build_enforcing_all_constraints(
|
4901 7989 | self,
|
4902 7990 | ) -> Result<crate::input::MalformedTimestampHeaderDefaultInput, ConstraintViolation>
|
4903 7991 | {
|
4904 - | Ok(crate::input::MalformedTimestampHeaderDefaultInput {
|
7992 + | /* ServerBuilderGenerator.kt:287 */
|
7993 + | Ok(
|
7994 + | /* ServerBuilderGenerator.kt:542 */
|
7995 + | crate::input::MalformedTimestampHeaderDefaultInput {
|
7996 + | /* ServerBuilderGenerator.kt:546 */
|
4905 7997 | timestamp: self
|
4906 7998 | .timestamp
|
7999 + | /* ServerBuilderGenerator.kt:569 */
|
4907 8000 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
4908 - | })
|
8001 + | /* ServerBuilderGenerator.kt:542 */
|
8002 + | }, /* ServerBuilderGenerator.kt:287 */
|
8003 + | )
|
8004 + | /* ServerBuilderGenerator.kt:283 */
|
4909 8005 | }
|
8006 + | /* ServerBuilderGenerator.kt:215 */
|
4910 8007 | }
|
8008 + |
|
8009 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4911 8010 | }
|
4912 - | /// See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
8011 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
4913 8012 | pub mod malformed_timestamp_query_epoch_input {
|
4914 8013 |
|
8014 + | /* RustType.kt:534 */
|
4915 8015 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4916 - | /// Holds one variant for each of the ways the builder can fail.
|
8016 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8017 + | /* RustType.kt:534 */
|
4917 8018 | #[non_exhaustive]
|
8019 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4918 8020 | #[allow(clippy::enum_variant_names)]
|
4919 8021 | pub enum ConstraintViolation {
|
4920 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
8022 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`.
|
8023 + | /* ServerBuilderConstraintViolations.kt:144 */
|
4921 8024 | MissingTimestamp,
|
8025 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4922 8026 | }
|
8027 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4923 8028 | impl ::std::fmt::Display for ConstraintViolation {
|
8029 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4924 8030 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8031 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4925 8032 | match self {
|
4926 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
4927 - | }
|
8033 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryEpochInput`"),
|
8034 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8035 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4928 8036 | }
|
8037 + | /* ServerBuilderConstraintViolations.kt:116 */
|
4929 8038 | }
|
8039 + | /* ServerBuilderConstraintViolations.kt:83 */
|
4930 8040 | impl ::std::error::Error for ConstraintViolation {}
|
8041 + | /* ServerBuilderConstraintViolations.kt:172 */
|
4931 8042 | impl ConstraintViolation {
|
4932 8043 | pub(crate) fn as_validation_exception_field(
|
4933 8044 | self,
|
4934 8045 | path: ::std::string::String,
|
4935 8046 | ) -> crate::model::ValidationExceptionField {
|
4936 8047 | match self {
|
4937 8048 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
4938 8049 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
4939 8050 | path: path + "/timestamp",
|
4940 8051 | },
|
4941 8052 | }
|
4942 8053 | }
|
4943 8054 | }
|
8055 + | /* ServerBuilderGenerator.kt:234 */
|
4944 8056 | impl ::std::convert::From<ConstraintViolation>
|
4945 8057 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4946 8058 | {
|
4947 8059 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4948 8060 | let first_validation_exception_field =
|
4949 8061 | constraint_violation.as_validation_exception_field("".to_owned());
|
4950 8062 | let validation_exception = crate::error::ValidationException {
|
4951 8063 | message: format!(
|
4952 8064 | "1 validation error detected. {}",
|
4953 8065 | &first_validation_exception_field.message
|
4954 8066 | ),
|
4955 8067 | field_list: Some(vec![first_validation_exception_field]),
|
4956 8068 | };
|
4957 8069 | Self::ConstraintViolation(
|
4958 8070 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4959 8071 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4960 8072 | )
|
4961 8073 | }
|
4962 8074 | }
|
8075 + | /* ServerBuilderGenerator.kt:244 */
|
4963 8076 | impl ::std::convert::From<Builder>
|
4964 8077 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryEpochInput>
|
4965 8078 | {
|
4966 8079 | fn from(builder: Builder) -> Self {
|
4967 8080 | Self::Unconstrained(builder)
|
4968 8081 | }
|
4969 8082 | }
|
8083 + | /* ServerBuilderGenerator.kt:446 */
|
4970 8084 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryEpochInput {
|
4971 8085 | type Error = ConstraintViolation;
|
4972 8086 |
|
4973 8087 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4974 8088 | builder.build()
|
4975 8089 | }
|
4976 8090 | }
|
4977 - | /// A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
8091 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
8092 + | /* RustType.kt:534 */
|
4978 8093 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8094 + | /* ServerBuilderGenerator.kt:211 */
|
4979 8095 | pub struct Builder {
|
8096 + | /* ServerBuilderGenerator.kt:308 */
|
4980 8097 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8098 + | /* ServerBuilderGenerator.kt:211 */
|
4981 8099 | }
|
8100 + | /* ServerBuilderGenerator.kt:215 */
|
4982 8101 | impl Builder {
|
8102 + | /* ServerBuilderGenerator.kt:331 */
|
4983 8103 | #[allow(missing_docs)] // documentation missing in model
|
8104 + | /* ServerBuilderGenerator.kt:343 */
|
4984 8105 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
4985 - | self.timestamp = Some(input);
|
8106 + | /* ServerBuilderGenerator.kt:344 */
|
8107 + | self.timestamp =
|
8108 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8109 + | /* ServerBuilderGenerator.kt:376 */input
|
8110 + | /* ServerBuilderGenerator.kt:345 */)
|
8111 + | /* ServerBuilderGenerator.kt:344 */;
|
4986 8112 | self
|
8113 + | /* ServerBuilderGenerator.kt:343 */
|
4987 8114 | }
|
8115 + | /* ServerBuilderGenerator.kt:426 */
|
4988 8116 | #[allow(missing_docs)] // documentation missing in model
|
8117 + | /* ServerBuilderGenerator.kt:428 */
|
4989 8118 | pub(crate) fn set_timestamp(
|
4990 8119 | mut self,
|
4991 8120 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
4992 8121 | ) -> Self {
|
8122 + | /* ServerBuilderGenerator.kt:429 */
|
4993 8123 | self.timestamp = Some(input.into());
|
4994 8124 | self
|
8125 + | /* ServerBuilderGenerator.kt:428 */
|
4995 8126 | }
|
4996 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
4997 - | ///
|
8127 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput).
|
8128 + | /// /* ServerBuilderGenerator.kt:260 */
|
4998 8129 | /// The builder fails to construct a [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) if a [`ConstraintViolation`] occurs.
|
4999 8130 | ///
|
8131 + | /* ServerBuilderGenerator.kt:271 */
|
5000 8132 | pub fn build(
|
5001 8133 | self,
|
5002 8134 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
5003 8135 | self.build_enforcing_all_constraints()
|
5004 8136 | }
|
8137 + | /* ServerBuilderGenerator.kt:283 */
|
5005 8138 | fn build_enforcing_all_constraints(
|
5006 8139 | self,
|
5007 8140 | ) -> Result<crate::input::MalformedTimestampQueryEpochInput, ConstraintViolation> {
|
5008 - | Ok(crate::input::MalformedTimestampQueryEpochInput {
|
8141 + | /* ServerBuilderGenerator.kt:287 */
|
8142 + | Ok(
|
8143 + | /* ServerBuilderGenerator.kt:542 */
|
8144 + | crate::input::MalformedTimestampQueryEpochInput {
|
8145 + | /* ServerBuilderGenerator.kt:546 */
|
5009 8146 | timestamp: self
|
5010 8147 | .timestamp
|
8148 + | /* ServerBuilderGenerator.kt:569 */
|
5011 8149 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5012 - | })
|
8150 + | /* ServerBuilderGenerator.kt:542 */
|
8151 + | }, /* ServerBuilderGenerator.kt:287 */
|
8152 + | )
|
8153 + | /* ServerBuilderGenerator.kt:283 */
|
5013 8154 | }
|
8155 + | /* ServerBuilderGenerator.kt:215 */
|
5014 8156 | }
|
8157 + |
|
8158 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5015 8159 | }
|
5016 - | /// See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8160 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
5017 8161 | pub mod malformed_timestamp_query_http_date_input {
|
5018 8162 |
|
8163 + | /* RustType.kt:534 */
|
5019 8164 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5020 - | /// Holds one variant for each of the ways the builder can fail.
|
8165 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8166 + | /* RustType.kt:534 */
|
5021 8167 | #[non_exhaustive]
|
8168 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5022 8169 | #[allow(clippy::enum_variant_names)]
|
5023 8170 | pub enum ConstraintViolation {
|
5024 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
8171 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`.
|
8172 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5025 8173 | MissingTimestamp,
|
8174 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5026 8175 | }
|
8176 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5027 8177 | impl ::std::fmt::Display for ConstraintViolation {
|
8178 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5028 8179 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8180 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5029 8181 | match self {
|
5030 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
5031 - | }
|
8182 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryHttpDateInput`"),
|
8183 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8184 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5032 8185 | }
|
8186 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5033 8187 | }
|
8188 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5034 8189 | impl ::std::error::Error for ConstraintViolation {}
|
8190 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5035 8191 | impl ConstraintViolation {
|
5036 8192 | pub(crate) fn as_validation_exception_field(
|
5037 8193 | self,
|
5038 8194 | path: ::std::string::String,
|
5039 8195 | ) -> crate::model::ValidationExceptionField {
|
5040 8196 | match self {
|
5041 8197 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5042 8198 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5043 8199 | path: path + "/timestamp",
|
5044 8200 | },
|
5045 8201 | }
|
5046 8202 | }
|
5047 8203 | }
|
8204 + | /* ServerBuilderGenerator.kt:234 */
|
5048 8205 | impl ::std::convert::From<ConstraintViolation>
|
5049 8206 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5050 8207 | {
|
5051 8208 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5052 8209 | let first_validation_exception_field =
|
5053 8210 | constraint_violation.as_validation_exception_field("".to_owned());
|
5054 8211 | let validation_exception = crate::error::ValidationException {
|
5055 8212 | message: format!(
|
5056 8213 | "1 validation error detected. {}",
|
5057 8214 | &first_validation_exception_field.message
|
5058 8215 | ),
|
5059 8216 | field_list: Some(vec![first_validation_exception_field]),
|
5060 8217 | };
|
5061 8218 | Self::ConstraintViolation(
|
5062 8219 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5063 8220 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5064 8221 | )
|
5065 8222 | }
|
5066 8223 | }
|
8224 + | /* ServerBuilderGenerator.kt:244 */
|
5067 8225 | impl ::std::convert::From<Builder>
|
5068 8226 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryHttpDateInput>
|
5069 8227 | {
|
5070 8228 | fn from(builder: Builder) -> Self {
|
5071 8229 | Self::Unconstrained(builder)
|
5072 8230 | }
|
5073 8231 | }
|
8232 + | /* ServerBuilderGenerator.kt:446 */
|
5074 8233 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryHttpDateInput {
|
5075 8234 | type Error = ConstraintViolation;
|
5076 8235 |
|
5077 8236 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5078 8237 | builder.build()
|
5079 8238 | }
|
5080 8239 | }
|
5081 - | /// A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8240 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8241 + | /* RustType.kt:534 */
|
5082 8242 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8243 + | /* ServerBuilderGenerator.kt:211 */
|
5083 8244 | pub struct Builder {
|
8245 + | /* ServerBuilderGenerator.kt:308 */
|
5084 8246 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8247 + | /* ServerBuilderGenerator.kt:211 */
|
5085 8248 | }
|
8249 + | /* ServerBuilderGenerator.kt:215 */
|
5086 8250 | impl Builder {
|
8251 + | /* ServerBuilderGenerator.kt:331 */
|
5087 8252 | #[allow(missing_docs)] // documentation missing in model
|
8253 + | /* ServerBuilderGenerator.kt:343 */
|
5088 8254 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5089 - | self.timestamp = Some(input);
|
8255 + | /* ServerBuilderGenerator.kt:344 */
|
8256 + | self.timestamp =
|
8257 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8258 + | /* ServerBuilderGenerator.kt:376 */input
|
8259 + | /* ServerBuilderGenerator.kt:345 */)
|
8260 + | /* ServerBuilderGenerator.kt:344 */;
|
5090 8261 | self
|
8262 + | /* ServerBuilderGenerator.kt:343 */
|
5091 8263 | }
|
8264 + | /* ServerBuilderGenerator.kt:426 */
|
5092 8265 | #[allow(missing_docs)] // documentation missing in model
|
8266 + | /* ServerBuilderGenerator.kt:428 */
|
5093 8267 | pub(crate) fn set_timestamp(
|
5094 8268 | mut self,
|
5095 8269 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5096 8270 | ) -> Self {
|
8271 + | /* ServerBuilderGenerator.kt:429 */
|
5097 8272 | self.timestamp = Some(input.into());
|
5098 8273 | self
|
8274 + | /* ServerBuilderGenerator.kt:428 */
|
5099 8275 | }
|
5100 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
5101 - | ///
|
8276 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput).
|
8277 + | /// /* ServerBuilderGenerator.kt:260 */
|
5102 8278 | /// The builder fails to construct a [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) if a [`ConstraintViolation`] occurs.
|
5103 8279 | ///
|
8280 + | /* ServerBuilderGenerator.kt:271 */
|
5104 8281 | pub fn build(
|
5105 8282 | self,
|
5106 8283 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
5107 8284 | {
|
5108 8285 | self.build_enforcing_all_constraints()
|
5109 8286 | }
|
8287 + | /* ServerBuilderGenerator.kt:283 */
|
5110 8288 | fn build_enforcing_all_constraints(
|
5111 8289 | self,
|
5112 8290 | ) -> Result<crate::input::MalformedTimestampQueryHttpDateInput, ConstraintViolation>
|
5113 8291 | {
|
5114 - | Ok(crate::input::MalformedTimestampQueryHttpDateInput {
|
8292 + | /* ServerBuilderGenerator.kt:287 */
|
8293 + | Ok(
|
8294 + | /* ServerBuilderGenerator.kt:542 */
|
8295 + | crate::input::MalformedTimestampQueryHttpDateInput {
|
8296 + | /* ServerBuilderGenerator.kt:546 */
|
5115 8297 | timestamp: self
|
5116 8298 | .timestamp
|
8299 + | /* ServerBuilderGenerator.kt:569 */
|
5117 8300 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5118 - | })
|
8301 + | /* ServerBuilderGenerator.kt:542 */
|
8302 + | }, /* ServerBuilderGenerator.kt:287 */
|
8303 + | )
|
8304 + | /* ServerBuilderGenerator.kt:283 */
|
5119 8305 | }
|
8306 + | /* ServerBuilderGenerator.kt:215 */
|
5120 8307 | }
|
8308 + |
|
8309 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5121 8310 | }
|
5122 - | /// See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8311 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
5123 8312 | pub mod malformed_timestamp_query_default_input {
|
5124 8313 |
|
8314 + | /* RustType.kt:534 */
|
5125 8315 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5126 - | /// Holds one variant for each of the ways the builder can fail.
|
8316 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8317 + | /* RustType.kt:534 */
|
5127 8318 | #[non_exhaustive]
|
8319 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5128 8320 | #[allow(clippy::enum_variant_names)]
|
5129 8321 | pub enum ConstraintViolation {
|
5130 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
8322 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`.
|
8323 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5131 8324 | MissingTimestamp,
|
8325 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5132 8326 | }
|
8327 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5133 8328 | impl ::std::fmt::Display for ConstraintViolation {
|
8329 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5134 8330 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8331 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5135 8332 | match self {
|
5136 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
5137 - | }
|
8333 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampQueryDefaultInput`"),
|
8334 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8335 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5138 8336 | }
|
8337 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5139 8338 | }
|
8339 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5140 8340 | impl ::std::error::Error for ConstraintViolation {}
|
8341 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5141 8342 | impl ConstraintViolation {
|
5142 8343 | pub(crate) fn as_validation_exception_field(
|
5143 8344 | self,
|
5144 8345 | path: ::std::string::String,
|
5145 8346 | ) -> crate::model::ValidationExceptionField {
|
5146 8347 | match self {
|
5147 8348 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5148 8349 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5149 8350 | path: path + "/timestamp",
|
5150 8351 | },
|
5151 8352 | }
|
5152 8353 | }
|
5153 8354 | }
|
8355 + | /* ServerBuilderGenerator.kt:234 */
|
5154 8356 | impl ::std::convert::From<ConstraintViolation>
|
5155 8357 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5156 8358 | {
|
5157 8359 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5158 8360 | let first_validation_exception_field =
|
5159 8361 | constraint_violation.as_validation_exception_field("".to_owned());
|
5160 8362 | let validation_exception = crate::error::ValidationException {
|
5161 8363 | message: format!(
|
5162 8364 | "1 validation error detected. {}",
|
5163 8365 | &first_validation_exception_field.message
|
5164 8366 | ),
|
5165 8367 | field_list: Some(vec![first_validation_exception_field]),
|
5166 8368 | };
|
5167 8369 | Self::ConstraintViolation(
|
5168 8370 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5169 8371 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5170 8372 | )
|
5171 8373 | }
|
5172 8374 | }
|
8375 + | /* ServerBuilderGenerator.kt:244 */
|
5173 8376 | impl ::std::convert::From<Builder>
|
5174 8377 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampQueryDefaultInput>
|
5175 8378 | {
|
5176 8379 | fn from(builder: Builder) -> Self {
|
5177 8380 | Self::Unconstrained(builder)
|
5178 8381 | }
|
5179 8382 | }
|
8383 + | /* ServerBuilderGenerator.kt:446 */
|
5180 8384 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampQueryDefaultInput {
|
5181 8385 | type Error = ConstraintViolation;
|
5182 8386 |
|
5183 8387 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5184 8388 | builder.build()
|
5185 8389 | }
|
5186 8390 | }
|
5187 - | /// A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8391 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8392 + | /* RustType.kt:534 */
|
5188 8393 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8394 + | /* ServerBuilderGenerator.kt:211 */
|
5189 8395 | pub struct Builder {
|
8396 + | /* ServerBuilderGenerator.kt:308 */
|
5190 8397 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8398 + | /* ServerBuilderGenerator.kt:211 */
|
5191 8399 | }
|
8400 + | /* ServerBuilderGenerator.kt:215 */
|
5192 8401 | impl Builder {
|
8402 + | /* ServerBuilderGenerator.kt:331 */
|
5193 8403 | #[allow(missing_docs)] // documentation missing in model
|
8404 + | /* ServerBuilderGenerator.kt:343 */
|
5194 8405 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5195 - | self.timestamp = Some(input);
|
8406 + | /* ServerBuilderGenerator.kt:344 */
|
8407 + | self.timestamp =
|
8408 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8409 + | /* ServerBuilderGenerator.kt:376 */input
|
8410 + | /* ServerBuilderGenerator.kt:345 */)
|
8411 + | /* ServerBuilderGenerator.kt:344 */;
|
5196 8412 | self
|
8413 + | /* ServerBuilderGenerator.kt:343 */
|
5197 8414 | }
|
8415 + | /* ServerBuilderGenerator.kt:426 */
|
5198 8416 | #[allow(missing_docs)] // documentation missing in model
|
8417 + | /* ServerBuilderGenerator.kt:428 */
|
5199 8418 | pub(crate) fn set_timestamp(
|
5200 8419 | mut self,
|
5201 8420 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5202 8421 | ) -> Self {
|
8422 + | /* ServerBuilderGenerator.kt:429 */
|
5203 8423 | self.timestamp = Some(input.into());
|
5204 8424 | self
|
8425 + | /* ServerBuilderGenerator.kt:428 */
|
5205 8426 | }
|
5206 - | /// Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
5207 - | ///
|
8427 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput).
|
8428 + | /// /* ServerBuilderGenerator.kt:260 */
|
5208 8429 | /// The builder fails to construct a [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) if a [`ConstraintViolation`] occurs.
|
5209 8430 | ///
|
8431 + | /* ServerBuilderGenerator.kt:271 */
|
5210 8432 | pub fn build(
|
5211 8433 | self,
|
5212 8434 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
5213 8435 | {
|
5214 8436 | self.build_enforcing_all_constraints()
|
5215 8437 | }
|
8438 + | /* ServerBuilderGenerator.kt:283 */
|
5216 8439 | fn build_enforcing_all_constraints(
|
5217 8440 | self,
|
5218 8441 | ) -> Result<crate::input::MalformedTimestampQueryDefaultInput, ConstraintViolation>
|
5219 8442 | {
|
5220 - | Ok(crate::input::MalformedTimestampQueryDefaultInput {
|
8443 + | /* ServerBuilderGenerator.kt:287 */
|
8444 + | Ok(
|
8445 + | /* ServerBuilderGenerator.kt:542 */
|
8446 + | crate::input::MalformedTimestampQueryDefaultInput {
|
8447 + | /* ServerBuilderGenerator.kt:546 */
|
5221 8448 | timestamp: self
|
5222 8449 | .timestamp
|
8450 + | /* ServerBuilderGenerator.kt:569 */
|
5223 8451 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5224 - | })
|
8452 + | /* ServerBuilderGenerator.kt:542 */
|
8453 + | }, /* ServerBuilderGenerator.kt:287 */
|
8454 + | )
|
8455 + | /* ServerBuilderGenerator.kt:283 */
|
5225 8456 | }
|
8457 + | /* ServerBuilderGenerator.kt:215 */
|
5226 8458 | }
|
8459 + |
|
8460 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5227 8461 | }
|
5228 - | /// See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8462 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
5229 8463 | pub mod malformed_timestamp_path_epoch_input {
|
5230 8464 |
|
8465 + | /* RustType.kt:534 */
|
5231 8466 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5232 - | /// Holds one variant for each of the ways the builder can fail.
|
8467 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8468 + | /* RustType.kt:534 */
|
5233 8469 | #[non_exhaustive]
|
8470 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5234 8471 | #[allow(clippy::enum_variant_names)]
|
5235 8472 | pub enum ConstraintViolation {
|
5236 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
8473 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`.
|
8474 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5237 8475 | MissingTimestamp,
|
8476 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5238 8477 | }
|
8478 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5239 8479 | impl ::std::fmt::Display for ConstraintViolation {
|
8480 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5240 8481 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8482 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5241 8483 | match self {
|
5242 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
5243 - | }
|
8484 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathEpochInput`"),
|
8485 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8486 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5244 8487 | }
|
8488 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5245 8489 | }
|
8490 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5246 8491 | impl ::std::error::Error for ConstraintViolation {}
|
8492 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5247 8493 | impl ConstraintViolation {
|
5248 8494 | pub(crate) fn as_validation_exception_field(
|
5249 8495 | self,
|
5250 8496 | path: ::std::string::String,
|
5251 8497 | ) -> crate::model::ValidationExceptionField {
|
5252 8498 | match self {
|
5253 8499 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5254 8500 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5255 8501 | path: path + "/timestamp",
|
5256 8502 | },
|
5257 8503 | }
|
5258 8504 | }
|
5259 8505 | }
|
8506 + | /* ServerBuilderGenerator.kt:234 */
|
5260 8507 | impl ::std::convert::From<ConstraintViolation>
|
5261 8508 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5262 8509 | {
|
5263 8510 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5264 8511 | let first_validation_exception_field =
|
5265 8512 | constraint_violation.as_validation_exception_field("".to_owned());
|
5266 8513 | let validation_exception = crate::error::ValidationException {
|
5267 8514 | message: format!(
|
5268 8515 | "1 validation error detected. {}",
|
5269 8516 | &first_validation_exception_field.message
|
5270 8517 | ),
|
5271 8518 | field_list: Some(vec![first_validation_exception_field]),
|
5272 8519 | };
|
5273 8520 | Self::ConstraintViolation(
|
5274 8521 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5275 8522 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5276 8523 | )
|
5277 8524 | }
|
5278 8525 | }
|
8526 + | /* ServerBuilderGenerator.kt:244 */
|
5279 8527 | impl ::std::convert::From<Builder>
|
5280 8528 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathEpochInput>
|
5281 8529 | {
|
5282 8530 | fn from(builder: Builder) -> Self {
|
5283 8531 | Self::Unconstrained(builder)
|
5284 8532 | }
|
5285 8533 | }
|
8534 + | /* ServerBuilderGenerator.kt:446 */
|
5286 8535 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathEpochInput {
|
5287 8536 | type Error = ConstraintViolation;
|
5288 8537 |
|
5289 8538 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5290 8539 | builder.build()
|
5291 8540 | }
|
5292 8541 | }
|
5293 - | /// A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8542 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8543 + | /* RustType.kt:534 */
|
5294 8544 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8545 + | /* ServerBuilderGenerator.kt:211 */
|
5295 8546 | pub struct Builder {
|
8547 + | /* ServerBuilderGenerator.kt:308 */
|
5296 8548 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8549 + | /* ServerBuilderGenerator.kt:211 */
|
5297 8550 | }
|
8551 + | /* ServerBuilderGenerator.kt:215 */
|
5298 8552 | impl Builder {
|
8553 + | /* ServerBuilderGenerator.kt:331 */
|
5299 8554 | #[allow(missing_docs)] // documentation missing in model
|
8555 + | /* ServerBuilderGenerator.kt:343 */
|
5300 8556 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5301 - | self.timestamp = Some(input);
|
8557 + | /* ServerBuilderGenerator.kt:344 */
|
8558 + | self.timestamp =
|
8559 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8560 + | /* ServerBuilderGenerator.kt:376 */input
|
8561 + | /* ServerBuilderGenerator.kt:345 */)
|
8562 + | /* ServerBuilderGenerator.kt:344 */;
|
5302 8563 | self
|
8564 + | /* ServerBuilderGenerator.kt:343 */
|
5303 8565 | }
|
8566 + | /* ServerBuilderGenerator.kt:426 */
|
5304 8567 | #[allow(missing_docs)] // documentation missing in model
|
8568 + | /* ServerBuilderGenerator.kt:428 */
|
5305 8569 | pub(crate) fn set_timestamp(
|
5306 8570 | mut self,
|
5307 8571 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5308 8572 | ) -> Self {
|
8573 + | /* ServerBuilderGenerator.kt:429 */
|
5309 8574 | self.timestamp = Some(input.into());
|
5310 8575 | self
|
8576 + | /* ServerBuilderGenerator.kt:428 */
|
5311 8577 | }
|
5312 - | /// Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
5313 - | ///
|
8578 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput).
|
8579 + | /// /* ServerBuilderGenerator.kt:260 */
|
5314 8580 | /// The builder fails to construct a [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) if a [`ConstraintViolation`] occurs.
|
5315 8581 | ///
|
8582 + | /* ServerBuilderGenerator.kt:271 */
|
5316 8583 | pub fn build(
|
5317 8584 | self,
|
5318 8585 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
5319 8586 | self.build_enforcing_all_constraints()
|
5320 8587 | }
|
8588 + | /* ServerBuilderGenerator.kt:283 */
|
5321 8589 | fn build_enforcing_all_constraints(
|
5322 8590 | self,
|
5323 8591 | ) -> Result<crate::input::MalformedTimestampPathEpochInput, ConstraintViolation> {
|
5324 - | Ok(crate::input::MalformedTimestampPathEpochInput {
|
8592 + | /* ServerBuilderGenerator.kt:287 */
|
8593 + | Ok(
|
8594 + | /* ServerBuilderGenerator.kt:542 */
|
8595 + | crate::input::MalformedTimestampPathEpochInput {
|
8596 + | /* ServerBuilderGenerator.kt:546 */
|
5325 8597 | timestamp: self
|
5326 8598 | .timestamp
|
8599 + | /* ServerBuilderGenerator.kt:569 */
|
5327 8600 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5328 - | })
|
8601 + | /* ServerBuilderGenerator.kt:542 */
|
8602 + | }, /* ServerBuilderGenerator.kt:287 */
|
8603 + | )
|
8604 + | /* ServerBuilderGenerator.kt:283 */
|
5329 8605 | }
|
8606 + | /* ServerBuilderGenerator.kt:215 */
|
5330 8607 | }
|
8608 + |
|
8609 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5331 8610 | }
|
5332 - | /// See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8611 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
5333 8612 | pub mod malformed_timestamp_path_http_date_input {
|
5334 8613 |
|
8614 + | /* RustType.kt:534 */
|
5335 8615 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5336 - | /// Holds one variant for each of the ways the builder can fail.
|
8616 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8617 + | /* RustType.kt:534 */
|
5337 8618 | #[non_exhaustive]
|
8619 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5338 8620 | #[allow(clippy::enum_variant_names)]
|
5339 8621 | pub enum ConstraintViolation {
|
5340 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
8622 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`.
|
8623 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5341 8624 | MissingTimestamp,
|
8625 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5342 8626 | }
|
8627 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5343 8628 | impl ::std::fmt::Display for ConstraintViolation {
|
8629 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5344 8630 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8631 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5345 8632 | match self {
|
5346 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
5347 - | }
|
8633 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathHttpDateInput`"),
|
8634 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8635 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5348 8636 | }
|
8637 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5349 8638 | }
|
8639 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5350 8640 | impl ::std::error::Error for ConstraintViolation {}
|
8641 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5351 8642 | impl ConstraintViolation {
|
5352 8643 | pub(crate) fn as_validation_exception_field(
|
5353 8644 | self,
|
5354 8645 | path: ::std::string::String,
|
5355 8646 | ) -> crate::model::ValidationExceptionField {
|
5356 8647 | match self {
|
5357 8648 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5358 8649 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5359 8650 | path: path + "/timestamp",
|
5360 8651 | },
|
5361 8652 | }
|
5362 8653 | }
|
5363 8654 | }
|
8655 + | /* ServerBuilderGenerator.kt:234 */
|
5364 8656 | impl ::std::convert::From<ConstraintViolation>
|
5365 8657 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5366 8658 | {
|
5367 8659 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5368 8660 | let first_validation_exception_field =
|
5369 8661 | constraint_violation.as_validation_exception_field("".to_owned());
|
5370 8662 | let validation_exception = crate::error::ValidationException {
|
5371 8663 | message: format!(
|
5372 8664 | "1 validation error detected. {}",
|
5373 8665 | &first_validation_exception_field.message
|
5374 8666 | ),
|
5375 8667 | field_list: Some(vec![first_validation_exception_field]),
|
5376 8668 | };
|
5377 8669 | Self::ConstraintViolation(
|
5378 8670 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5379 8671 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5380 8672 | )
|
5381 8673 | }
|
5382 8674 | }
|
8675 + | /* ServerBuilderGenerator.kt:244 */
|
5383 8676 | impl ::std::convert::From<Builder>
|
5384 8677 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathHttpDateInput>
|
5385 8678 | {
|
5386 8679 | fn from(builder: Builder) -> Self {
|
5387 8680 | Self::Unconstrained(builder)
|
5388 8681 | }
|
5389 8682 | }
|
8683 + | /* ServerBuilderGenerator.kt:446 */
|
5390 8684 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathHttpDateInput {
|
5391 8685 | type Error = ConstraintViolation;
|
5392 8686 |
|
5393 8687 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5394 8688 | builder.build()
|
5395 8689 | }
|
5396 8690 | }
|
5397 - | /// A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8691 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8692 + | /* RustType.kt:534 */
|
5398 8693 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8694 + | /* ServerBuilderGenerator.kt:211 */
|
5399 8695 | pub struct Builder {
|
8696 + | /* ServerBuilderGenerator.kt:308 */
|
5400 8697 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8698 + | /* ServerBuilderGenerator.kt:211 */
|
5401 8699 | }
|
8700 + | /* ServerBuilderGenerator.kt:215 */
|
5402 8701 | impl Builder {
|
8702 + | /* ServerBuilderGenerator.kt:331 */
|
5403 8703 | #[allow(missing_docs)] // documentation missing in model
|
8704 + | /* ServerBuilderGenerator.kt:343 */
|
5404 8705 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5405 - | self.timestamp = Some(input);
|
8706 + | /* ServerBuilderGenerator.kt:344 */
|
8707 + | self.timestamp =
|
8708 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8709 + | /* ServerBuilderGenerator.kt:376 */input
|
8710 + | /* ServerBuilderGenerator.kt:345 */)
|
8711 + | /* ServerBuilderGenerator.kt:344 */;
|
5406 8712 | self
|
8713 + | /* ServerBuilderGenerator.kt:343 */
|
5407 8714 | }
|
8715 + | /* ServerBuilderGenerator.kt:426 */
|
5408 8716 | #[allow(missing_docs)] // documentation missing in model
|
8717 + | /* ServerBuilderGenerator.kt:428 */
|
5409 8718 | pub(crate) fn set_timestamp(
|
5410 8719 | mut self,
|
5411 8720 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5412 8721 | ) -> Self {
|
8722 + | /* ServerBuilderGenerator.kt:429 */
|
5413 8723 | self.timestamp = Some(input.into());
|
5414 8724 | self
|
8725 + | /* ServerBuilderGenerator.kt:428 */
|
5415 8726 | }
|
5416 - | /// Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
5417 - | ///
|
8727 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput).
|
8728 + | /// /* ServerBuilderGenerator.kt:260 */
|
5418 8729 | /// The builder fails to construct a [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) if a [`ConstraintViolation`] occurs.
|
5419 8730 | ///
|
8731 + | /* ServerBuilderGenerator.kt:271 */
|
5420 8732 | pub fn build(
|
5421 8733 | self,
|
5422 8734 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
5423 8735 | {
|
5424 8736 | self.build_enforcing_all_constraints()
|
5425 8737 | }
|
8738 + | /* ServerBuilderGenerator.kt:283 */
|
5426 8739 | fn build_enforcing_all_constraints(
|
5427 8740 | self,
|
5428 8741 | ) -> Result<crate::input::MalformedTimestampPathHttpDateInput, ConstraintViolation>
|
5429 8742 | {
|
5430 - | Ok(crate::input::MalformedTimestampPathHttpDateInput {
|
8743 + | /* ServerBuilderGenerator.kt:287 */
|
8744 + | Ok(
|
8745 + | /* ServerBuilderGenerator.kt:542 */
|
8746 + | crate::input::MalformedTimestampPathHttpDateInput {
|
8747 + | /* ServerBuilderGenerator.kt:546 */
|
5431 8748 | timestamp: self
|
5432 8749 | .timestamp
|
8750 + | /* ServerBuilderGenerator.kt:569 */
|
5433 8751 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5434 - | })
|
8752 + | /* ServerBuilderGenerator.kt:542 */
|
8753 + | }, /* ServerBuilderGenerator.kt:287 */
|
8754 + | )
|
8755 + | /* ServerBuilderGenerator.kt:283 */
|
5435 8756 | }
|
8757 + | /* ServerBuilderGenerator.kt:215 */
|
5436 8758 | }
|
8759 + |
|
8760 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5437 8761 | }
|
5438 - | /// See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8762 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
5439 8763 | pub mod malformed_timestamp_path_default_input {
|
5440 8764 |
|
8765 + | /* RustType.kt:534 */
|
5441 8766 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5442 - | /// Holds one variant for each of the ways the builder can fail.
|
8767 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8768 + | /* RustType.kt:534 */
|
5443 8769 | #[non_exhaustive]
|
8770 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5444 8771 | #[allow(clippy::enum_variant_names)]
|
5445 8772 | pub enum ConstraintViolation {
|
5446 - | /// `timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
8773 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`.
|
8774 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5447 8775 | MissingTimestamp,
|
8776 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5448 8777 | }
|
8778 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5449 8779 | impl ::std::fmt::Display for ConstraintViolation {
|
8780 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5450 8781 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8782 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5451 8783 | match self {
|
5452 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
5453 - | }
|
8784 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `MalformedTimestampPathDefaultInput`"),
|
8785 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8786 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5454 8787 | }
|
8788 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5455 8789 | }
|
8790 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5456 8791 | impl ::std::error::Error for ConstraintViolation {}
|
8792 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5457 8793 | impl ConstraintViolation {
|
5458 8794 | pub(crate) fn as_validation_exception_field(
|
5459 8795 | self,
|
5460 8796 | path: ::std::string::String,
|
5461 8797 | ) -> crate::model::ValidationExceptionField {
|
5462 8798 | match self {
|
5463 8799 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
5464 8800 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
5465 8801 | path: path + "/timestamp",
|
5466 8802 | },
|
5467 8803 | }
|
5468 8804 | }
|
5469 8805 | }
|
8806 + | /* ServerBuilderGenerator.kt:234 */
|
5470 8807 | impl ::std::convert::From<ConstraintViolation>
|
5471 8808 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5472 8809 | {
|
5473 8810 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5474 8811 | let first_validation_exception_field =
|
5475 8812 | constraint_violation.as_validation_exception_field("".to_owned());
|
5476 8813 | let validation_exception = crate::error::ValidationException {
|
5477 8814 | message: format!(
|
5478 8815 | "1 validation error detected. {}",
|
5479 8816 | &first_validation_exception_field.message
|
5480 8817 | ),
|
5481 8818 | field_list: Some(vec![first_validation_exception_field]),
|
5482 8819 | };
|
5483 8820 | Self::ConstraintViolation(
|
5484 8821 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5485 8822 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5486 8823 | )
|
5487 8824 | }
|
5488 8825 | }
|
8826 + | /* ServerBuilderGenerator.kt:244 */
|
5489 8827 | impl ::std::convert::From<Builder>
|
5490 8828 | for crate::constrained::MaybeConstrained<crate::input::MalformedTimestampPathDefaultInput>
|
5491 8829 | {
|
5492 8830 | fn from(builder: Builder) -> Self {
|
5493 8831 | Self::Unconstrained(builder)
|
5494 8832 | }
|
5495 8833 | }
|
8834 + | /* ServerBuilderGenerator.kt:446 */
|
5496 8835 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedTimestampPathDefaultInput {
|
5497 8836 | type Error = ConstraintViolation;
|
5498 8837 |
|
5499 8838 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5500 8839 | builder.build()
|
5501 8840 | }
|
5502 8841 | }
|
5503 - | /// A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8842 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8843 + | /* RustType.kt:534 */
|
5504 8844 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8845 + | /* ServerBuilderGenerator.kt:211 */
|
5505 8846 | pub struct Builder {
|
8847 + | /* ServerBuilderGenerator.kt:308 */
|
5506 8848 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8849 + | /* ServerBuilderGenerator.kt:211 */
|
5507 8850 | }
|
8851 + | /* ServerBuilderGenerator.kt:215 */
|
5508 8852 | impl Builder {
|
8853 + | /* ServerBuilderGenerator.kt:331 */
|
5509 8854 | #[allow(missing_docs)] // documentation missing in model
|
8855 + | /* ServerBuilderGenerator.kt:343 */
|
5510 8856 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
5511 - | self.timestamp = Some(input);
|
8857 + | /* ServerBuilderGenerator.kt:344 */
|
8858 + | self.timestamp =
|
8859 + | /* ServerBuilderGenerator.kt:345 */Some(
|
8860 + | /* ServerBuilderGenerator.kt:376 */input
|
8861 + | /* ServerBuilderGenerator.kt:345 */)
|
8862 + | /* ServerBuilderGenerator.kt:344 */;
|
5512 8863 | self
|
8864 + | /* ServerBuilderGenerator.kt:343 */
|
5513 8865 | }
|
8866 + | /* ServerBuilderGenerator.kt:426 */
|
5514 8867 | #[allow(missing_docs)] // documentation missing in model
|
8868 + | /* ServerBuilderGenerator.kt:428 */
|
5515 8869 | pub(crate) fn set_timestamp(
|
5516 8870 | mut self,
|
5517 8871 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
5518 8872 | ) -> Self {
|
8873 + | /* ServerBuilderGenerator.kt:429 */
|
5519 8874 | self.timestamp = Some(input.into());
|
5520 8875 | self
|
8876 + | /* ServerBuilderGenerator.kt:428 */
|
5521 8877 | }
|
5522 - | /// Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
5523 - | ///
|
8878 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput).
|
8879 + | /// /* ServerBuilderGenerator.kt:260 */
|
5524 8880 | /// The builder fails to construct a [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) if a [`ConstraintViolation`] occurs.
|
5525 8881 | ///
|
8882 + | /* ServerBuilderGenerator.kt:271 */
|
5526 8883 | pub fn build(
|
5527 8884 | self,
|
5528 8885 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
5529 8886 | self.build_enforcing_all_constraints()
|
5530 8887 | }
|
8888 + | /* ServerBuilderGenerator.kt:283 */
|
5531 8889 | fn build_enforcing_all_constraints(
|
5532 8890 | self,
|
5533 8891 | ) -> Result<crate::input::MalformedTimestampPathDefaultInput, ConstraintViolation> {
|
5534 - | Ok(crate::input::MalformedTimestampPathDefaultInput {
|
8892 + | /* ServerBuilderGenerator.kt:287 */
|
8893 + | Ok(
|
8894 + | /* ServerBuilderGenerator.kt:542 */
|
8895 + | crate::input::MalformedTimestampPathDefaultInput {
|
8896 + | /* ServerBuilderGenerator.kt:546 */
|
5535 8897 | timestamp: self
|
5536 8898 | .timestamp
|
8899 + | /* ServerBuilderGenerator.kt:569 */
|
5537 8900 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
5538 - | })
|
8901 + | /* ServerBuilderGenerator.kt:542 */
|
8902 + | }, /* ServerBuilderGenerator.kt:287 */
|
8903 + | )
|
8904 + | /* ServerBuilderGenerator.kt:283 */
|
5539 8905 | }
|
8906 + | /* ServerBuilderGenerator.kt:215 */
|
5540 8907 | }
|
8908 + |
|
8909 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5541 8910 | }
|
5542 - | /// See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8911 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedStringInput`](crate::input::MalformedStringInput).
|
5543 8912 | pub mod malformed_string_input {
|
5544 8913 |
|
8914 + | /* ServerBuilderGenerator.kt:461 */
|
5545 8915 | impl ::std::convert::From<Builder> for crate::input::MalformedStringInput {
|
5546 8916 | fn from(builder: Builder) -> Self {
|
5547 8917 | builder.build()
|
5548 8918 | }
|
5549 8919 | }
|
5550 - | /// A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8920 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8921 + | /* RustType.kt:534 */
|
5551 8922 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8923 + | /* ServerBuilderGenerator.kt:211 */
|
5552 8924 | pub struct Builder {
|
8925 + | /* ServerBuilderGenerator.kt:308 */
|
5553 8926 | pub(crate) blob: ::std::option::Option<::std::string::String>,
|
8927 + | /* ServerBuilderGenerator.kt:211 */
|
5554 8928 | }
|
8929 + | /* ServerBuilderGenerator.kt:215 */
|
5555 8930 | impl Builder {
|
8931 + | /* ServerBuilderGenerator.kt:331 */
|
5556 8932 | #[allow(missing_docs)] // documentation missing in model
|
8933 + | /* ServerBuilderGenerator.kt:343 */
|
5557 8934 | pub fn blob(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
5558 - | self.blob = input;
|
8935 + | /* ServerBuilderGenerator.kt:344 */
|
8936 + | self.blob =
|
8937 + | /* ServerBuilderGenerator.kt:376 */input
|
8938 + | /* ServerBuilderGenerator.kt:344 */;
|
5559 8939 | self
|
8940 + | /* ServerBuilderGenerator.kt:343 */
|
5560 8941 | }
|
8942 + | /* ServerBuilderGenerator.kt:426 */
|
5561 8943 | #[allow(missing_docs)] // documentation missing in model
|
8944 + | /* ServerBuilderGenerator.kt:428 */
|
5562 8945 | pub(crate) fn set_blob(
|
5563 8946 | mut self,
|
5564 8947 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
5565 8948 | ) -> Self {
|
8949 + | /* ServerBuilderGenerator.kt:429 */
|
5566 8950 | self.blob = input.map(|v| v.into());
|
5567 8951 | self
|
8952 + | /* ServerBuilderGenerator.kt:428 */
|
5568 8953 | }
|
5569 - | /// Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8954 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedStringInput`](crate::input::MalformedStringInput).
|
8955 + | /* ServerBuilderGenerator.kt:271 */
|
5570 8956 | pub fn build(self) -> crate::input::MalformedStringInput {
|
5571 8957 | self.build_enforcing_all_constraints()
|
5572 8958 | }
|
8959 + | /* ServerBuilderGenerator.kt:283 */
|
5573 8960 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedStringInput {
|
5574 - | crate::input::MalformedStringInput { blob: self.blob }
|
8961 + | /* ServerBuilderGenerator.kt:542 */
|
8962 + | crate::input::MalformedStringInput {
|
8963 + | /* ServerBuilderGenerator.kt:546 */
|
8964 + | blob: self.blob,
|
8965 + | /* ServerBuilderGenerator.kt:542 */
|
8966 + | }
|
8967 + | /* ServerBuilderGenerator.kt:283 */
|
5575 8968 | }
|
8969 + | /* ServerBuilderGenerator.kt:215 */
|
5576 8970 | }
|
8971 + |
|
8972 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5577 8973 | }
|
5578 - | /// See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
8974 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
5579 8975 | pub mod malformed_double_input {
|
5580 8976 |
|
8977 + | /* RustType.kt:534 */
|
5581 8978 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5582 - | /// Holds one variant for each of the ways the builder can fail.
|
8979 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
8980 + | /* RustType.kt:534 */
|
5583 8981 | #[non_exhaustive]
|
8982 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5584 8983 | #[allow(clippy::enum_variant_names)]
|
5585 8984 | pub enum ConstraintViolation {
|
5586 - | /// `double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
8985 + | /// /* ServerBuilderConstraintViolations.kt:137 */`double_in_path` was not provided but it is required when building `MalformedDoubleInput`.
|
8986 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5587 8987 | MissingDoubleInPath,
|
8988 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5588 8989 | }
|
8990 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5589 8991 | impl ::std::fmt::Display for ConstraintViolation {
|
8992 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5590 8993 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8994 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5591 8995 | match self {
|
5592 - | ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
5593 - | }
|
8996 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingDoubleInPath => write!(f, "`double_in_path` was not provided but it is required when building `MalformedDoubleInput`"),
|
8997 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
8998 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5594 8999 | }
|
9000 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5595 9001 | }
|
9002 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5596 9003 | impl ::std::error::Error for ConstraintViolation {}
|
9004 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5597 9005 | impl ConstraintViolation {
|
5598 9006 | pub(crate) fn as_validation_exception_field(
|
5599 9007 | self,
|
5600 9008 | path: ::std::string::String,
|
5601 9009 | ) -> crate::model::ValidationExceptionField {
|
5602 9010 | match self {
|
5603 9011 | ConstraintViolation::MissingDoubleInPath => crate::model::ValidationExceptionField {
|
5604 9012 | message: format!("Value at '{}/doubleInPath' failed to satisfy constraint: Member must not be null", path),
|
5605 9013 | path: path + "/doubleInPath",
|
5606 9014 | },
|
5607 9015 | }
|
5608 9016 | }
|
5609 9017 | }
|
9018 + | /* ServerBuilderGenerator.kt:234 */
|
5610 9019 | impl ::std::convert::From<ConstraintViolation>
|
5611 9020 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5612 9021 | {
|
5613 9022 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5614 9023 | let first_validation_exception_field =
|
5615 9024 | constraint_violation.as_validation_exception_field("".to_owned());
|
5616 9025 | let validation_exception = crate::error::ValidationException {
|
5617 9026 | message: format!(
|
5618 9027 | "1 validation error detected. {}",
|
5619 9028 | &first_validation_exception_field.message
|
5620 9029 | ),
|
5621 9030 | field_list: Some(vec![first_validation_exception_field]),
|
5622 9031 | };
|
5623 9032 | Self::ConstraintViolation(
|
5624 9033 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5625 9034 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5626 9035 | )
|
5627 9036 | }
|
5628 9037 | }
|
9038 + | /* ServerBuilderGenerator.kt:244 */
|
5629 9039 | impl ::std::convert::From<Builder>
|
5630 9040 | for crate::constrained::MaybeConstrained<crate::input::MalformedDoubleInput>
|
5631 9041 | {
|
5632 9042 | fn from(builder: Builder) -> Self {
|
5633 9043 | Self::Unconstrained(builder)
|
5634 9044 | }
|
5635 9045 | }
|
9046 + | /* ServerBuilderGenerator.kt:446 */
|
5636 9047 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedDoubleInput {
|
5637 9048 | type Error = ConstraintViolation;
|
5638 9049 |
|
5639 9050 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5640 9051 | builder.build()
|
5641 9052 | }
|
5642 9053 | }
|
5643 - | /// A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
9054 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
9055 + | /* RustType.kt:534 */
|
5644 9056 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9057 + | /* ServerBuilderGenerator.kt:211 */
|
5645 9058 | pub struct Builder {
|
9059 + | /* ServerBuilderGenerator.kt:308 */
|
5646 9060 | pub(crate) double_in_body: ::std::option::Option<f64>,
|
9061 + | /* ServerBuilderGenerator.kt:308 */
|
5647 9062 | pub(crate) double_in_path: ::std::option::Option<f64>,
|
9063 + | /* ServerBuilderGenerator.kt:308 */
|
5648 9064 | pub(crate) double_in_query: ::std::option::Option<f64>,
|
9065 + | /* ServerBuilderGenerator.kt:308 */
|
5649 9066 | pub(crate) double_in_header: ::std::option::Option<f64>,
|
9067 + | /* ServerBuilderGenerator.kt:211 */
|
5650 9068 | }
|
9069 + | /* ServerBuilderGenerator.kt:215 */
|
5651 9070 | impl Builder {
|
9071 + | /* ServerBuilderGenerator.kt:331 */
|
5652 9072 | #[allow(missing_docs)] // documentation missing in model
|
9073 + | /* ServerBuilderGenerator.kt:343 */
|
5653 9074 | pub fn double_in_body(mut self, input: ::std::option::Option<f64>) -> Self {
|
5654 - | self.double_in_body = input;
|
9075 + | /* ServerBuilderGenerator.kt:344 */
|
9076 + | self.double_in_body =
|
9077 + | /* ServerBuilderGenerator.kt:376 */input
|
9078 + | /* ServerBuilderGenerator.kt:344 */;
|
5655 9079 | self
|
9080 + | /* ServerBuilderGenerator.kt:343 */
|
5656 9081 | }
|
9082 + | /* ServerBuilderGenerator.kt:426 */
|
5657 9083 | #[allow(missing_docs)] // documentation missing in model
|
9084 + | /* ServerBuilderGenerator.kt:428 */
|
5658 9085 | pub(crate) fn set_double_in_body(
|
5659 9086 | mut self,
|
5660 9087 | input: Option<impl ::std::convert::Into<f64>>,
|
5661 9088 | ) -> Self {
|
9089 + | /* ServerBuilderGenerator.kt:429 */
|
5662 9090 | self.double_in_body = input.map(|v| v.into());
|
5663 9091 | self
|
9092 + | /* ServerBuilderGenerator.kt:428 */
|
5664 9093 | }
|
9094 + | /* ServerBuilderGenerator.kt:331 */
|
5665 9095 | #[allow(missing_docs)] // documentation missing in model
|
9096 + | /* ServerBuilderGenerator.kt:343 */
|
5666 9097 | pub fn double_in_path(mut self, input: f64) -> Self {
|
5667 - | self.double_in_path = Some(input);
|
9098 + | /* ServerBuilderGenerator.kt:344 */
|
9099 + | self.double_in_path =
|
9100 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9101 + | /* ServerBuilderGenerator.kt:376 */input
|
9102 + | /* ServerBuilderGenerator.kt:345 */)
|
9103 + | /* ServerBuilderGenerator.kt:344 */;
|
5668 9104 | self
|
9105 + | /* ServerBuilderGenerator.kt:343 */
|
5669 9106 | }
|
9107 + | /* ServerBuilderGenerator.kt:426 */
|
5670 9108 | #[allow(missing_docs)] // documentation missing in model
|
9109 + | /* ServerBuilderGenerator.kt:428 */
|
5671 9110 | pub(crate) fn set_double_in_path(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
9111 + | /* ServerBuilderGenerator.kt:429 */
|
5672 9112 | self.double_in_path = Some(input.into());
|
5673 9113 | self
|
9114 + | /* ServerBuilderGenerator.kt:428 */
|
5674 9115 | }
|
9116 + | /* ServerBuilderGenerator.kt:331 */
|
5675 9117 | #[allow(missing_docs)] // documentation missing in model
|
9118 + | /* ServerBuilderGenerator.kt:343 */
|
5676 9119 | pub fn double_in_query(mut self, input: ::std::option::Option<f64>) -> Self {
|
5677 - | self.double_in_query = input;
|
9120 + | /* ServerBuilderGenerator.kt:344 */
|
9121 + | self.double_in_query =
|
9122 + | /* ServerBuilderGenerator.kt:376 */input
|
9123 + | /* ServerBuilderGenerator.kt:344 */;
|
5678 9124 | self
|
9125 + | /* ServerBuilderGenerator.kt:343 */
|
5679 9126 | }
|
9127 + | /* ServerBuilderGenerator.kt:426 */
|
5680 9128 | #[allow(missing_docs)] // documentation missing in model
|
9129 + | /* ServerBuilderGenerator.kt:428 */
|
5681 9130 | pub(crate) fn set_double_in_query(
|
5682 9131 | mut self,
|
5683 9132 | input: Option<impl ::std::convert::Into<f64>>,
|
5684 9133 | ) -> Self {
|
9134 + | /* ServerBuilderGenerator.kt:429 */
|
5685 9135 | self.double_in_query = input.map(|v| v.into());
|
5686 9136 | self
|
9137 + | /* ServerBuilderGenerator.kt:428 */
|
5687 9138 | }
|
9139 + | /* ServerBuilderGenerator.kt:331 */
|
5688 9140 | #[allow(missing_docs)] // documentation missing in model
|
9141 + | /* ServerBuilderGenerator.kt:343 */
|
5689 9142 | pub fn double_in_header(mut self, input: ::std::option::Option<f64>) -> Self {
|
5690 - | self.double_in_header = input;
|
9143 + | /* ServerBuilderGenerator.kt:344 */
|
9144 + | self.double_in_header =
|
9145 + | /* ServerBuilderGenerator.kt:376 */input
|
9146 + | /* ServerBuilderGenerator.kt:344 */;
|
5691 9147 | self
|
9148 + | /* ServerBuilderGenerator.kt:343 */
|
5692 9149 | }
|
9150 + | /* ServerBuilderGenerator.kt:426 */
|
5693 9151 | #[allow(missing_docs)] // documentation missing in model
|
9152 + | /* ServerBuilderGenerator.kt:428 */
|
5694 9153 | pub(crate) fn set_double_in_header(
|
5695 9154 | mut self,
|
5696 9155 | input: Option<impl ::std::convert::Into<f64>>,
|
5697 9156 | ) -> Self {
|
9157 + | /* ServerBuilderGenerator.kt:429 */
|
5698 9158 | self.double_in_header = input.map(|v| v.into());
|
5699 9159 | self
|
9160 + | /* ServerBuilderGenerator.kt:428 */
|
5700 9161 | }
|
5701 - | /// Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
5702 - | ///
|
9162 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput).
|
9163 + | /// /* ServerBuilderGenerator.kt:260 */
|
5703 9164 | /// The builder fails to construct a [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) if a [`ConstraintViolation`] occurs.
|
5704 9165 | ///
|
9166 + | /* ServerBuilderGenerator.kt:271 */
|
5705 9167 | pub fn build(self) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
5706 9168 | self.build_enforcing_all_constraints()
|
5707 9169 | }
|
9170 + | /* ServerBuilderGenerator.kt:283 */
|
5708 9171 | fn build_enforcing_all_constraints(
|
5709 9172 | self,
|
5710 9173 | ) -> Result<crate::input::MalformedDoubleInput, ConstraintViolation> {
|
5711 - | Ok(crate::input::MalformedDoubleInput {
|
9174 + | /* ServerBuilderGenerator.kt:287 */
|
9175 + | Ok(
|
9176 + | /* ServerBuilderGenerator.kt:542 */
|
9177 + | crate::input::MalformedDoubleInput {
|
9178 + | /* ServerBuilderGenerator.kt:546 */
|
5712 9179 | double_in_body: self.double_in_body,
|
9180 + | /* ServerBuilderGenerator.kt:546 */
|
5713 9181 | double_in_path: self
|
5714 9182 | .double_in_path
|
9183 + | /* ServerBuilderGenerator.kt:569 */
|
5715 9184 | .ok_or(ConstraintViolation::MissingDoubleInPath)?,
|
9185 + | /* ServerBuilderGenerator.kt:546 */
|
5716 9186 | double_in_query: self.double_in_query,
|
9187 + | /* ServerBuilderGenerator.kt:546 */
|
5717 9188 | double_in_header: self.double_in_header,
|
5718 - | })
|
9189 + | /* ServerBuilderGenerator.kt:542 */
|
9190 + | }, /* ServerBuilderGenerator.kt:287 */
|
9191 + | )
|
9192 + | /* ServerBuilderGenerator.kt:283 */
|
5719 9193 | }
|
9194 + | /* ServerBuilderGenerator.kt:215 */
|
5720 9195 | }
|
9196 + |
|
9197 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5721 9198 | }
|
5722 - | /// See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9199 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
5723 9200 | pub mod malformed_float_input {
|
5724 9201 |
|
9202 + | /* RustType.kt:534 */
|
5725 9203 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5726 - | /// Holds one variant for each of the ways the builder can fail.
|
9204 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9205 + | /* RustType.kt:534 */
|
5727 9206 | #[non_exhaustive]
|
9207 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5728 9208 | #[allow(clippy::enum_variant_names)]
|
5729 9209 | pub enum ConstraintViolation {
|
5730 - | /// `float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
9210 + | /// /* ServerBuilderConstraintViolations.kt:137 */`float_in_path` was not provided but it is required when building `MalformedFloatInput`.
|
9211 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5731 9212 | MissingFloatInPath,
|
9213 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5732 9214 | }
|
9215 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5733 9216 | impl ::std::fmt::Display for ConstraintViolation {
|
9217 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5734 9218 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9219 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5735 9220 | match self {
|
5736 - | ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
5737 - | }
|
9221 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingFloatInPath => write!(f, "`float_in_path` was not provided but it is required when building `MalformedFloatInput`"),
|
9222 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
9223 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5738 9224 | }
|
9225 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5739 9226 | }
|
9227 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5740 9228 | impl ::std::error::Error for ConstraintViolation {}
|
9229 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5741 9230 | impl ConstraintViolation {
|
5742 9231 | pub(crate) fn as_validation_exception_field(
|
5743 9232 | self,
|
5744 9233 | path: ::std::string::String,
|
5745 9234 | ) -> crate::model::ValidationExceptionField {
|
5746 9235 | match self {
|
5747 9236 | ConstraintViolation::MissingFloatInPath => crate::model::ValidationExceptionField {
|
5748 9237 | message: format!("Value at '{}/floatInPath' failed to satisfy constraint: Member must not be null", path),
|
5749 9238 | path: path + "/floatInPath",
|
5750 9239 | },
|
5751 9240 | }
|
5752 9241 | }
|
5753 9242 | }
|
9243 + | /* ServerBuilderGenerator.kt:234 */
|
5754 9244 | impl ::std::convert::From<ConstraintViolation>
|
5755 9245 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5756 9246 | {
|
5757 9247 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5758 9248 | let first_validation_exception_field =
|
5759 9249 | constraint_violation.as_validation_exception_field("".to_owned());
|
5760 9250 | let validation_exception = crate::error::ValidationException {
|
5761 9251 | message: format!(
|
5762 9252 | "1 validation error detected. {}",
|
5763 9253 | &first_validation_exception_field.message
|
5764 9254 | ),
|
5765 9255 | field_list: Some(vec![first_validation_exception_field]),
|
5766 9256 | };
|
5767 9257 | Self::ConstraintViolation(
|
5768 9258 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5769 9259 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5770 9260 | )
|
5771 9261 | }
|
5772 9262 | }
|
9263 + | /* ServerBuilderGenerator.kt:244 */
|
5773 9264 | impl ::std::convert::From<Builder>
|
5774 9265 | for crate::constrained::MaybeConstrained<crate::input::MalformedFloatInput>
|
5775 9266 | {
|
5776 9267 | fn from(builder: Builder) -> Self {
|
5777 9268 | Self::Unconstrained(builder)
|
5778 9269 | }
|
5779 9270 | }
|
9271 + | /* ServerBuilderGenerator.kt:446 */
|
5780 9272 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedFloatInput {
|
5781 9273 | type Error = ConstraintViolation;
|
5782 9274 |
|
5783 9275 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5784 9276 | builder.build()
|
5785 9277 | }
|
5786 9278 | }
|
5787 - | /// A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9279 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9280 + | /* RustType.kt:534 */
|
5788 9281 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9282 + | /* ServerBuilderGenerator.kt:211 */
|
5789 9283 | pub struct Builder {
|
9284 + | /* ServerBuilderGenerator.kt:308 */
|
5790 9285 | pub(crate) float_in_body: ::std::option::Option<f32>,
|
9286 + | /* ServerBuilderGenerator.kt:308 */
|
5791 9287 | pub(crate) float_in_path: ::std::option::Option<f32>,
|
9288 + | /* ServerBuilderGenerator.kt:308 */
|
5792 9289 | pub(crate) float_in_query: ::std::option::Option<f32>,
|
9290 + | /* ServerBuilderGenerator.kt:308 */
|
5793 9291 | pub(crate) float_in_header: ::std::option::Option<f32>,
|
9292 + | /* ServerBuilderGenerator.kt:211 */
|
5794 9293 | }
|
9294 + | /* ServerBuilderGenerator.kt:215 */
|
5795 9295 | impl Builder {
|
9296 + | /* ServerBuilderGenerator.kt:331 */
|
5796 9297 | #[allow(missing_docs)] // documentation missing in model
|
9298 + | /* ServerBuilderGenerator.kt:343 */
|
5797 9299 | pub fn float_in_body(mut self, input: ::std::option::Option<f32>) -> Self {
|
5798 - | self.float_in_body = input;
|
9300 + | /* ServerBuilderGenerator.kt:344 */
|
9301 + | self.float_in_body =
|
9302 + | /* ServerBuilderGenerator.kt:376 */input
|
9303 + | /* ServerBuilderGenerator.kt:344 */;
|
5799 9304 | self
|
9305 + | /* ServerBuilderGenerator.kt:343 */
|
5800 9306 | }
|
9307 + | /* ServerBuilderGenerator.kt:426 */
|
5801 9308 | #[allow(missing_docs)] // documentation missing in model
|
9309 + | /* ServerBuilderGenerator.kt:428 */
|
5802 9310 | pub(crate) fn set_float_in_body(
|
5803 9311 | mut self,
|
5804 9312 | input: Option<impl ::std::convert::Into<f32>>,
|
5805 9313 | ) -> Self {
|
9314 + | /* ServerBuilderGenerator.kt:429 */
|
5806 9315 | self.float_in_body = input.map(|v| v.into());
|
5807 9316 | self
|
9317 + | /* ServerBuilderGenerator.kt:428 */
|
5808 9318 | }
|
9319 + | /* ServerBuilderGenerator.kt:331 */
|
5809 9320 | #[allow(missing_docs)] // documentation missing in model
|
9321 + | /* ServerBuilderGenerator.kt:343 */
|
5810 9322 | pub fn float_in_path(mut self, input: f32) -> Self {
|
5811 - | self.float_in_path = Some(input);
|
9323 + | /* ServerBuilderGenerator.kt:344 */
|
9324 + | self.float_in_path =
|
9325 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9326 + | /* ServerBuilderGenerator.kt:376 */input
|
9327 + | /* ServerBuilderGenerator.kt:345 */)
|
9328 + | /* ServerBuilderGenerator.kt:344 */;
|
5812 9329 | self
|
9330 + | /* ServerBuilderGenerator.kt:343 */
|
5813 9331 | }
|
9332 + | /* ServerBuilderGenerator.kt:426 */
|
5814 9333 | #[allow(missing_docs)] // documentation missing in model
|
9334 + | /* ServerBuilderGenerator.kt:428 */
|
5815 9335 | pub(crate) fn set_float_in_path(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
9336 + | /* ServerBuilderGenerator.kt:429 */
|
5816 9337 | self.float_in_path = Some(input.into());
|
5817 9338 | self
|
9339 + | /* ServerBuilderGenerator.kt:428 */
|
5818 9340 | }
|
9341 + | /* ServerBuilderGenerator.kt:331 */
|
5819 9342 | #[allow(missing_docs)] // documentation missing in model
|
9343 + | /* ServerBuilderGenerator.kt:343 */
|
5820 9344 | pub fn float_in_query(mut self, input: ::std::option::Option<f32>) -> Self {
|
5821 - | self.float_in_query = input;
|
9345 + | /* ServerBuilderGenerator.kt:344 */
|
9346 + | self.float_in_query =
|
9347 + | /* ServerBuilderGenerator.kt:376 */input
|
9348 + | /* ServerBuilderGenerator.kt:344 */;
|
5822 9349 | self
|
9350 + | /* ServerBuilderGenerator.kt:343 */
|
5823 9351 | }
|
9352 + | /* ServerBuilderGenerator.kt:426 */
|
5824 9353 | #[allow(missing_docs)] // documentation missing in model
|
9354 + | /* ServerBuilderGenerator.kt:428 */
|
5825 9355 | pub(crate) fn set_float_in_query(
|
5826 9356 | mut self,
|
5827 9357 | input: Option<impl ::std::convert::Into<f32>>,
|
5828 9358 | ) -> Self {
|
9359 + | /* ServerBuilderGenerator.kt:429 */
|
5829 9360 | self.float_in_query = input.map(|v| v.into());
|
5830 9361 | self
|
9362 + | /* ServerBuilderGenerator.kt:428 */
|
5831 9363 | }
|
9364 + | /* ServerBuilderGenerator.kt:331 */
|
5832 9365 | #[allow(missing_docs)] // documentation missing in model
|
9366 + | /* ServerBuilderGenerator.kt:343 */
|
5833 9367 | pub fn float_in_header(mut self, input: ::std::option::Option<f32>) -> Self {
|
5834 - | self.float_in_header = input;
|
9368 + | /* ServerBuilderGenerator.kt:344 */
|
9369 + | self.float_in_header =
|
9370 + | /* ServerBuilderGenerator.kt:376 */input
|
9371 + | /* ServerBuilderGenerator.kt:344 */;
|
5835 9372 | self
|
9373 + | /* ServerBuilderGenerator.kt:343 */
|
5836 9374 | }
|
9375 + | /* ServerBuilderGenerator.kt:426 */
|
5837 9376 | #[allow(missing_docs)] // documentation missing in model
|
9377 + | /* ServerBuilderGenerator.kt:428 */
|
5838 9378 | pub(crate) fn set_float_in_header(
|
5839 9379 | mut self,
|
5840 9380 | input: Option<impl ::std::convert::Into<f32>>,
|
5841 9381 | ) -> Self {
|
9382 + | /* ServerBuilderGenerator.kt:429 */
|
5842 9383 | self.float_in_header = input.map(|v| v.into());
|
5843 9384 | self
|
9385 + | /* ServerBuilderGenerator.kt:428 */
|
5844 9386 | }
|
5845 - | /// Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
5846 - | ///
|
9387 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedFloatInput`](crate::input::MalformedFloatInput).
|
9388 + | /// /* ServerBuilderGenerator.kt:260 */
|
5847 9389 | /// The builder fails to construct a [`MalformedFloatInput`](crate::input::MalformedFloatInput) if a [`ConstraintViolation`] occurs.
|
5848 9390 | ///
|
9391 + | /* ServerBuilderGenerator.kt:271 */
|
5849 9392 | pub fn build(self) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
5850 9393 | self.build_enforcing_all_constraints()
|
5851 9394 | }
|
9395 + | /* ServerBuilderGenerator.kt:283 */
|
5852 9396 | fn build_enforcing_all_constraints(
|
5853 9397 | self,
|
5854 9398 | ) -> Result<crate::input::MalformedFloatInput, ConstraintViolation> {
|
5855 - | Ok(crate::input::MalformedFloatInput {
|
9399 + | /* ServerBuilderGenerator.kt:287 */
|
9400 + | Ok(
|
9401 + | /* ServerBuilderGenerator.kt:542 */
|
9402 + | crate::input::MalformedFloatInput {
|
9403 + | /* ServerBuilderGenerator.kt:546 */
|
5856 9404 | float_in_body: self.float_in_body,
|
9405 + | /* ServerBuilderGenerator.kt:546 */
|
5857 9406 | float_in_path: self
|
5858 9407 | .float_in_path
|
9408 + | /* ServerBuilderGenerator.kt:569 */
|
5859 9409 | .ok_or(ConstraintViolation::MissingFloatInPath)?,
|
9410 + | /* ServerBuilderGenerator.kt:546 */
|
5860 9411 | float_in_query: self.float_in_query,
|
9412 + | /* ServerBuilderGenerator.kt:546 */
|
5861 9413 | float_in_header: self.float_in_header,
|
5862 - | })
|
9414 + | /* ServerBuilderGenerator.kt:542 */
|
9415 + | }, /* ServerBuilderGenerator.kt:287 */
|
9416 + | )
|
9417 + | /* ServerBuilderGenerator.kt:283 */
|
5863 9418 | }
|
9419 + | /* ServerBuilderGenerator.kt:215 */
|
5864 9420 | }
|
9421 + |
|
9422 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5865 9423 | }
|
5866 - | /// See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9424 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedLongInput`](crate::input::MalformedLongInput).
|
5867 9425 | pub mod malformed_long_input {
|
5868 9426 |
|
9427 + | /* RustType.kt:534 */
|
5869 9428 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5870 - | /// Holds one variant for each of the ways the builder can fail.
|
9429 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9430 + | /* RustType.kt:534 */
|
5871 9431 | #[non_exhaustive]
|
9432 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5872 9433 | #[allow(clippy::enum_variant_names)]
|
5873 9434 | pub enum ConstraintViolation {
|
5874 - | /// `long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
9435 + | /// /* ServerBuilderConstraintViolations.kt:137 */`long_in_path` was not provided but it is required when building `MalformedLongInput`.
|
9436 + | /* ServerBuilderConstraintViolations.kt:144 */
|
5875 9437 | MissingLongInPath,
|
9438 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5876 9439 | }
|
9440 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5877 9441 | impl ::std::fmt::Display for ConstraintViolation {
|
9442 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5878 9443 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9444 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5879 9445 | match self {
|
5880 - | ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
5881 - | }
|
9446 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingLongInPath => write!(f, "`long_in_path` was not provided but it is required when building `MalformedLongInput`"),
|
9447 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
9448 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5882 9449 | }
|
9450 + | /* ServerBuilderConstraintViolations.kt:116 */
|
5883 9451 | }
|
9452 + | /* ServerBuilderConstraintViolations.kt:83 */
|
5884 9453 | impl ::std::error::Error for ConstraintViolation {}
|
9454 + | /* ServerBuilderConstraintViolations.kt:172 */
|
5885 9455 | impl ConstraintViolation {
|
5886 9456 | pub(crate) fn as_validation_exception_field(
|
5887 9457 | self,
|
5888 9458 | path: ::std::string::String,
|
5889 9459 | ) -> crate::model::ValidationExceptionField {
|
5890 9460 | match self {
|
5891 9461 | ConstraintViolation::MissingLongInPath => crate::model::ValidationExceptionField {
|
5892 9462 | message: format!("Value at '{}/longInPath' failed to satisfy constraint: Member must not be null", path),
|
5893 9463 | path: path + "/longInPath",
|
5894 9464 | },
|
5895 9465 | }
|
5896 9466 | }
|
5897 9467 | }
|
9468 + | /* ServerBuilderGenerator.kt:234 */
|
5898 9469 | impl ::std::convert::From<ConstraintViolation>
|
5899 9470 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5900 9471 | {
|
5901 9472 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5902 9473 | let first_validation_exception_field =
|
5903 9474 | constraint_violation.as_validation_exception_field("".to_owned());
|
5904 9475 | let validation_exception = crate::error::ValidationException {
|
5905 9476 | message: format!(
|
5906 9477 | "1 validation error detected. {}",
|
5907 9478 | &first_validation_exception_field.message
|
5908 9479 | ),
|
5909 9480 | field_list: Some(vec![first_validation_exception_field]),
|
5910 9481 | };
|
5911 9482 | Self::ConstraintViolation(
|
5912 9483 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5913 9484 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5914 9485 | )
|
5915 9486 | }
|
5916 9487 | }
|
9488 + | /* ServerBuilderGenerator.kt:244 */
|
5917 9489 | impl ::std::convert::From<Builder>
|
5918 9490 | for crate::constrained::MaybeConstrained<crate::input::MalformedLongInput>
|
5919 9491 | {
|
5920 9492 | fn from(builder: Builder) -> Self {
|
5921 9493 | Self::Unconstrained(builder)
|
5922 9494 | }
|
5923 9495 | }
|
9496 + | /* ServerBuilderGenerator.kt:446 */
|
5924 9497 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedLongInput {
|
5925 9498 | type Error = ConstraintViolation;
|
5926 9499 |
|
5927 9500 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5928 9501 | builder.build()
|
5929 9502 | }
|
5930 9503 | }
|
5931 - | /// A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9504 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9505 + | /* RustType.kt:534 */
|
5932 9506 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9507 + | /* ServerBuilderGenerator.kt:211 */
|
5933 9508 | pub struct Builder {
|
9509 + | /* ServerBuilderGenerator.kt:308 */
|
5934 9510 | pub(crate) long_in_body: ::std::option::Option<i64>,
|
9511 + | /* ServerBuilderGenerator.kt:308 */
|
5935 9512 | pub(crate) long_in_path: ::std::option::Option<i64>,
|
9513 + | /* ServerBuilderGenerator.kt:308 */
|
5936 9514 | pub(crate) long_in_query: ::std::option::Option<i64>,
|
9515 + | /* ServerBuilderGenerator.kt:308 */
|
5937 9516 | pub(crate) long_in_header: ::std::option::Option<i64>,
|
9517 + | /* ServerBuilderGenerator.kt:211 */
|
5938 9518 | }
|
9519 + | /* ServerBuilderGenerator.kt:215 */
|
5939 9520 | impl Builder {
|
9521 + | /* ServerBuilderGenerator.kt:331 */
|
5940 9522 | #[allow(missing_docs)] // documentation missing in model
|
9523 + | /* ServerBuilderGenerator.kt:343 */
|
5941 9524 | pub fn long_in_body(mut self, input: ::std::option::Option<i64>) -> Self {
|
5942 - | self.long_in_body = input;
|
9525 + | /* ServerBuilderGenerator.kt:344 */
|
9526 + | self.long_in_body =
|
9527 + | /* ServerBuilderGenerator.kt:376 */input
|
9528 + | /* ServerBuilderGenerator.kt:344 */;
|
5943 9529 | self
|
9530 + | /* ServerBuilderGenerator.kt:343 */
|
5944 9531 | }
|
9532 + | /* ServerBuilderGenerator.kt:426 */
|
5945 9533 | #[allow(missing_docs)] // documentation missing in model
|
9534 + | /* ServerBuilderGenerator.kt:428 */
|
5946 9535 | pub(crate) fn set_long_in_body(
|
5947 9536 | mut self,
|
5948 9537 | input: Option<impl ::std::convert::Into<i64>>,
|
5949 9538 | ) -> Self {
|
9539 + | /* ServerBuilderGenerator.kt:429 */
|
5950 9540 | self.long_in_body = input.map(|v| v.into());
|
5951 9541 | self
|
9542 + | /* ServerBuilderGenerator.kt:428 */
|
5952 9543 | }
|
9544 + | /* ServerBuilderGenerator.kt:331 */
|
5953 9545 | #[allow(missing_docs)] // documentation missing in model
|
9546 + | /* ServerBuilderGenerator.kt:343 */
|
5954 9547 | pub fn long_in_path(mut self, input: i64) -> Self {
|
5955 - | self.long_in_path = Some(input);
|
9548 + | /* ServerBuilderGenerator.kt:344 */
|
9549 + | self.long_in_path =
|
9550 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9551 + | /* ServerBuilderGenerator.kt:376 */input
|
9552 + | /* ServerBuilderGenerator.kt:345 */)
|
9553 + | /* ServerBuilderGenerator.kt:344 */;
|
5956 9554 | self
|
9555 + | /* ServerBuilderGenerator.kt:343 */
|
5957 9556 | }
|
9557 + | /* ServerBuilderGenerator.kt:426 */
|
5958 9558 | #[allow(missing_docs)] // documentation missing in model
|
9559 + | /* ServerBuilderGenerator.kt:428 */
|
5959 9560 | pub(crate) fn set_long_in_path(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
9561 + | /* ServerBuilderGenerator.kt:429 */
|
5960 9562 | self.long_in_path = Some(input.into());
|
5961 9563 | self
|
9564 + | /* ServerBuilderGenerator.kt:428 */
|
5962 9565 | }
|
9566 + | /* ServerBuilderGenerator.kt:331 */
|
5963 9567 | #[allow(missing_docs)] // documentation missing in model
|
9568 + | /* ServerBuilderGenerator.kt:343 */
|
5964 9569 | pub fn long_in_query(mut self, input: ::std::option::Option<i64>) -> Self {
|
5965 - | self.long_in_query = input;
|
9570 + | /* ServerBuilderGenerator.kt:344 */
|
9571 + | self.long_in_query =
|
9572 + | /* ServerBuilderGenerator.kt:376 */input
|
9573 + | /* ServerBuilderGenerator.kt:344 */;
|
5966 9574 | self
|
9575 + | /* ServerBuilderGenerator.kt:343 */
|
5967 9576 | }
|
9577 + | /* ServerBuilderGenerator.kt:426 */
|
5968 9578 | #[allow(missing_docs)] // documentation missing in model
|
9579 + | /* ServerBuilderGenerator.kt:428 */
|
5969 9580 | pub(crate) fn set_long_in_query(
|
5970 9581 | mut self,
|
5971 9582 | input: Option<impl ::std::convert::Into<i64>>,
|
5972 9583 | ) -> Self {
|
9584 + | /* ServerBuilderGenerator.kt:429 */
|
5973 9585 | self.long_in_query = input.map(|v| v.into());
|
5974 9586 | self
|
9587 + | /* ServerBuilderGenerator.kt:428 */
|
5975 9588 | }
|
9589 + | /* ServerBuilderGenerator.kt:331 */
|
5976 9590 | #[allow(missing_docs)] // documentation missing in model
|
9591 + | /* ServerBuilderGenerator.kt:343 */
|
5977 9592 | pub fn long_in_header(mut self, input: ::std::option::Option<i64>) -> Self {
|
5978 - | self.long_in_header = input;
|
9593 + | /* ServerBuilderGenerator.kt:344 */
|
9594 + | self.long_in_header =
|
9595 + | /* ServerBuilderGenerator.kt:376 */input
|
9596 + | /* ServerBuilderGenerator.kt:344 */;
|
5979 9597 | self
|
9598 + | /* ServerBuilderGenerator.kt:343 */
|
5980 9599 | }
|
9600 + | /* ServerBuilderGenerator.kt:426 */
|
5981 9601 | #[allow(missing_docs)] // documentation missing in model
|
9602 + | /* ServerBuilderGenerator.kt:428 */
|
5982 9603 | pub(crate) fn set_long_in_header(
|
5983 9604 | mut self,
|
5984 9605 | input: Option<impl ::std::convert::Into<i64>>,
|
5985 9606 | ) -> Self {
|
9607 + | /* ServerBuilderGenerator.kt:429 */
|
5986 9608 | self.long_in_header = input.map(|v| v.into());
|
5987 9609 | self
|
9610 + | /* ServerBuilderGenerator.kt:428 */
|
5988 9611 | }
|
5989 - | /// Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
5990 - | ///
|
9612 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedLongInput`](crate::input::MalformedLongInput).
|
9613 + | /// /* ServerBuilderGenerator.kt:260 */
|
5991 9614 | /// The builder fails to construct a [`MalformedLongInput`](crate::input::MalformedLongInput) if a [`ConstraintViolation`] occurs.
|
5992 9615 | ///
|
9616 + | /* ServerBuilderGenerator.kt:271 */
|
5993 9617 | pub fn build(self) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
5994 9618 | self.build_enforcing_all_constraints()
|
5995 9619 | }
|
9620 + | /* ServerBuilderGenerator.kt:283 */
|
5996 9621 | fn build_enforcing_all_constraints(
|
5997 9622 | self,
|
5998 9623 | ) -> Result<crate::input::MalformedLongInput, ConstraintViolation> {
|
5999 - | Ok(crate::input::MalformedLongInput {
|
9624 + | /* ServerBuilderGenerator.kt:287 */
|
9625 + | Ok(
|
9626 + | /* ServerBuilderGenerator.kt:542 */
|
9627 + | crate::input::MalformedLongInput {
|
9628 + | /* ServerBuilderGenerator.kt:546 */
|
6000 9629 | long_in_body: self.long_in_body,
|
9630 + | /* ServerBuilderGenerator.kt:546 */
|
6001 9631 | long_in_path: self
|
6002 9632 | .long_in_path
|
9633 + | /* ServerBuilderGenerator.kt:569 */
|
6003 9634 | .ok_or(ConstraintViolation::MissingLongInPath)?,
|
9635 + | /* ServerBuilderGenerator.kt:546 */
|
6004 9636 | long_in_query: self.long_in_query,
|
9637 + | /* ServerBuilderGenerator.kt:546 */
|
6005 9638 | long_in_header: self.long_in_header,
|
6006 - | })
|
9639 + | /* ServerBuilderGenerator.kt:542 */
|
9640 + | }, /* ServerBuilderGenerator.kt:287 */
|
9641 + | )
|
9642 + | /* ServerBuilderGenerator.kt:283 */
|
6007 9643 | }
|
9644 + | /* ServerBuilderGenerator.kt:215 */
|
6008 9645 | }
|
9646 + |
|
9647 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6009 9648 | }
|
6010 - | /// See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9649 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedShortInput`](crate::input::MalformedShortInput).
|
6011 9650 | pub mod malformed_short_input {
|
6012 9651 |
|
9652 + | /* RustType.kt:534 */
|
6013 9653 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6014 - | /// Holds one variant for each of the ways the builder can fail.
|
9654 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9655 + | /* RustType.kt:534 */
|
6015 9656 | #[non_exhaustive]
|
9657 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6016 9658 | #[allow(clippy::enum_variant_names)]
|
6017 9659 | pub enum ConstraintViolation {
|
6018 - | /// `short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
9660 + | /// /* ServerBuilderConstraintViolations.kt:137 */`short_in_path` was not provided but it is required when building `MalformedShortInput`.
|
9661 + | /* ServerBuilderConstraintViolations.kt:144 */
|
6019 9662 | MissingShortInPath,
|
9663 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6020 9664 | }
|
9665 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6021 9666 | impl ::std::fmt::Display for ConstraintViolation {
|
9667 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6022 9668 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9669 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6023 9670 | match self {
|
6024 - | ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
6025 - | }
|
9671 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingShortInPath => write!(f, "`short_in_path` was not provided but it is required when building `MalformedShortInput`"),
|
9672 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
9673 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6026 9674 | }
|
9675 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6027 9676 | }
|
9677 + | /* ServerBuilderConstraintViolations.kt:83 */
|
6028 9678 | impl ::std::error::Error for ConstraintViolation {}
|
9679 + | /* ServerBuilderConstraintViolations.kt:172 */
|
6029 9680 | impl ConstraintViolation {
|
6030 9681 | pub(crate) fn as_validation_exception_field(
|
6031 9682 | self,
|
6032 9683 | path: ::std::string::String,
|
6033 9684 | ) -> crate::model::ValidationExceptionField {
|
6034 9685 | match self {
|
6035 9686 | ConstraintViolation::MissingShortInPath => crate::model::ValidationExceptionField {
|
6036 9687 | message: format!("Value at '{}/shortInPath' failed to satisfy constraint: Member must not be null", path),
|
6037 9688 | path: path + "/shortInPath",
|
6038 9689 | },
|
6039 9690 | }
|
6040 9691 | }
|
6041 9692 | }
|
9693 + | /* ServerBuilderGenerator.kt:234 */
|
6042 9694 | impl ::std::convert::From<ConstraintViolation>
|
6043 9695 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6044 9696 | {
|
6045 9697 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6046 9698 | let first_validation_exception_field =
|
6047 9699 | constraint_violation.as_validation_exception_field("".to_owned());
|
6048 9700 | let validation_exception = crate::error::ValidationException {
|
6049 9701 | message: format!(
|
6050 9702 | "1 validation error detected. {}",
|
6051 9703 | &first_validation_exception_field.message
|
6052 9704 | ),
|
6053 9705 | field_list: Some(vec![first_validation_exception_field]),
|
6054 9706 | };
|
6055 9707 | Self::ConstraintViolation(
|
6056 9708 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6057 9709 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6058 9710 | )
|
6059 9711 | }
|
6060 9712 | }
|
9713 + | /* ServerBuilderGenerator.kt:244 */
|
6061 9714 | impl ::std::convert::From<Builder>
|
6062 9715 | for crate::constrained::MaybeConstrained<crate::input::MalformedShortInput>
|
6063 9716 | {
|
6064 9717 | fn from(builder: Builder) -> Self {
|
6065 9718 | Self::Unconstrained(builder)
|
6066 9719 | }
|
6067 9720 | }
|
9721 + | /* ServerBuilderGenerator.kt:446 */
|
6068 9722 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedShortInput {
|
6069 9723 | type Error = ConstraintViolation;
|
6070 9724 |
|
6071 9725 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6072 9726 | builder.build()
|
6073 9727 | }
|
6074 9728 | }
|
6075 - | /// A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9729 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9730 + | /* RustType.kt:534 */
|
6076 9731 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9732 + | /* ServerBuilderGenerator.kt:211 */
|
6077 9733 | pub struct Builder {
|
9734 + | /* ServerBuilderGenerator.kt:308 */
|
6078 9735 | pub(crate) short_in_body: ::std::option::Option<i16>,
|
9736 + | /* ServerBuilderGenerator.kt:308 */
|
6079 9737 | pub(crate) short_in_path: ::std::option::Option<i16>,
|
9738 + | /* ServerBuilderGenerator.kt:308 */
|
6080 9739 | pub(crate) short_in_query: ::std::option::Option<i16>,
|
9740 + | /* ServerBuilderGenerator.kt:308 */
|
6081 9741 | pub(crate) short_in_header: ::std::option::Option<i16>,
|
9742 + | /* ServerBuilderGenerator.kt:211 */
|
6082 9743 | }
|
9744 + | /* ServerBuilderGenerator.kt:215 */
|
6083 9745 | impl Builder {
|
9746 + | /* ServerBuilderGenerator.kt:331 */
|
6084 9747 | #[allow(missing_docs)] // documentation missing in model
|
9748 + | /* ServerBuilderGenerator.kt:343 */
|
6085 9749 | pub fn short_in_body(mut self, input: ::std::option::Option<i16>) -> Self {
|
6086 - | self.short_in_body = input;
|
9750 + | /* ServerBuilderGenerator.kt:344 */
|
9751 + | self.short_in_body =
|
9752 + | /* ServerBuilderGenerator.kt:376 */input
|
9753 + | /* ServerBuilderGenerator.kt:344 */;
|
6087 9754 | self
|
9755 + | /* ServerBuilderGenerator.kt:343 */
|
6088 9756 | }
|
9757 + | /* ServerBuilderGenerator.kt:426 */
|
6089 9758 | #[allow(missing_docs)] // documentation missing in model
|
9759 + | /* ServerBuilderGenerator.kt:428 */
|
6090 9760 | pub(crate) fn set_short_in_body(
|
6091 9761 | mut self,
|
6092 9762 | input: Option<impl ::std::convert::Into<i16>>,
|
6093 9763 | ) -> Self {
|
9764 + | /* ServerBuilderGenerator.kt:429 */
|
6094 9765 | self.short_in_body = input.map(|v| v.into());
|
6095 9766 | self
|
9767 + | /* ServerBuilderGenerator.kt:428 */
|
6096 9768 | }
|
9769 + | /* ServerBuilderGenerator.kt:331 */
|
6097 9770 | #[allow(missing_docs)] // documentation missing in model
|
9771 + | /* ServerBuilderGenerator.kt:343 */
|
6098 9772 | pub fn short_in_path(mut self, input: i16) -> Self {
|
6099 - | self.short_in_path = Some(input);
|
9773 + | /* ServerBuilderGenerator.kt:344 */
|
9774 + | self.short_in_path =
|
9775 + | /* ServerBuilderGenerator.kt:345 */Some(
|
9776 + | /* ServerBuilderGenerator.kt:376 */input
|
9777 + | /* ServerBuilderGenerator.kt:345 */)
|
9778 + | /* ServerBuilderGenerator.kt:344 */;
|
6100 9779 | self
|
9780 + | /* ServerBuilderGenerator.kt:343 */
|
6101 9781 | }
|
9782 + | /* ServerBuilderGenerator.kt:426 */
|
6102 9783 | #[allow(missing_docs)] // documentation missing in model
|
9784 + | /* ServerBuilderGenerator.kt:428 */
|
6103 9785 | pub(crate) fn set_short_in_path(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
9786 + | /* ServerBuilderGenerator.kt:429 */
|
6104 9787 | self.short_in_path = Some(input.into());
|
6105 9788 | self
|
9789 + | /* ServerBuilderGenerator.kt:428 */
|
6106 9790 | }
|
9791 + | /* ServerBuilderGenerator.kt:331 */
|
6107 9792 | #[allow(missing_docs)] // documentation missing in model
|
9793 + | /* ServerBuilderGenerator.kt:343 */
|
6108 9794 | pub fn short_in_query(mut self, input: ::std::option::Option<i16>) -> Self {
|
6109 - | self.short_in_query = input;
|
9795 + | /* ServerBuilderGenerator.kt:344 */
|
9796 + | self.short_in_query =
|
9797 + | /* ServerBuilderGenerator.kt:376 */input
|
9798 + | /* ServerBuilderGenerator.kt:344 */;
|
6110 9799 | self
|
9800 + | /* ServerBuilderGenerator.kt:343 */
|
6111 9801 | }
|
9802 + | /* ServerBuilderGenerator.kt:426 */
|
6112 9803 | #[allow(missing_docs)] // documentation missing in model
|
9804 + | /* ServerBuilderGenerator.kt:428 */
|
6113 9805 | pub(crate) fn set_short_in_query(
|
6114 9806 | mut self,
|
6115 9807 | input: Option<impl ::std::convert::Into<i16>>,
|
6116 9808 | ) -> Self {
|
9809 + | /* ServerBuilderGenerator.kt:429 */
|
6117 9810 | self.short_in_query = input.map(|v| v.into());
|
6118 9811 | self
|
9812 + | /* ServerBuilderGenerator.kt:428 */
|
6119 9813 | }
|
9814 + | /* ServerBuilderGenerator.kt:331 */
|
6120 9815 | #[allow(missing_docs)] // documentation missing in model
|
9816 + | /* ServerBuilderGenerator.kt:343 */
|
6121 9817 | pub fn short_in_header(mut self, input: ::std::option::Option<i16>) -> Self {
|
6122 - | self.short_in_header = input;
|
9818 + | /* ServerBuilderGenerator.kt:344 */
|
9819 + | self.short_in_header =
|
9820 + | /* ServerBuilderGenerator.kt:376 */input
|
9821 + | /* ServerBuilderGenerator.kt:344 */;
|
6123 9822 | self
|
9823 + | /* ServerBuilderGenerator.kt:343 */
|
6124 9824 | }
|
9825 + | /* ServerBuilderGenerator.kt:426 */
|
6125 9826 | #[allow(missing_docs)] // documentation missing in model
|
9827 + | /* ServerBuilderGenerator.kt:428 */
|
6126 9828 | pub(crate) fn set_short_in_header(
|
6127 9829 | mut self,
|
6128 9830 | input: Option<impl ::std::convert::Into<i16>>,
|
6129 9831 | ) -> Self {
|
9832 + | /* ServerBuilderGenerator.kt:429 */
|
6130 9833 | self.short_in_header = input.map(|v| v.into());
|
6131 9834 | self
|
9835 + | /* ServerBuilderGenerator.kt:428 */
|
6132 9836 | }
|
6133 - | /// Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
6134 - | ///
|
9837 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedShortInput`](crate::input::MalformedShortInput).
|
9838 + | /// /* ServerBuilderGenerator.kt:260 */
|
6135 9839 | /// The builder fails to construct a [`MalformedShortInput`](crate::input::MalformedShortInput) if a [`ConstraintViolation`] occurs.
|
6136 9840 | ///
|
9841 + | /* ServerBuilderGenerator.kt:271 */
|
6137 9842 | pub fn build(self) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
6138 9843 | self.build_enforcing_all_constraints()
|
6139 9844 | }
|
9845 + | /* ServerBuilderGenerator.kt:283 */
|
6140 9846 | fn build_enforcing_all_constraints(
|
6141 9847 | self,
|
6142 9848 | ) -> Result<crate::input::MalformedShortInput, ConstraintViolation> {
|
6143 - | Ok(crate::input::MalformedShortInput {
|
9849 + | /* ServerBuilderGenerator.kt:287 */
|
9850 + | Ok(
|
9851 + | /* ServerBuilderGenerator.kt:542 */
|
9852 + | crate::input::MalformedShortInput {
|
9853 + | /* ServerBuilderGenerator.kt:546 */
|
6144 9854 | short_in_body: self.short_in_body,
|
9855 + | /* ServerBuilderGenerator.kt:546 */
|
6145 9856 | short_in_path: self
|
6146 9857 | .short_in_path
|
9858 + | /* ServerBuilderGenerator.kt:569 */
|
6147 9859 | .ok_or(ConstraintViolation::MissingShortInPath)?,
|
9860 + | /* ServerBuilderGenerator.kt:546 */
|
6148 9861 | short_in_query: self.short_in_query,
|
9862 + | /* ServerBuilderGenerator.kt:546 */
|
6149 9863 | short_in_header: self.short_in_header,
|
6150 - | })
|
9864 + | /* ServerBuilderGenerator.kt:542 */
|
9865 + | }, /* ServerBuilderGenerator.kt:287 */
|
9866 + | )
|
9867 + | /* ServerBuilderGenerator.kt:283 */
|
6151 9868 | }
|
9869 + | /* ServerBuilderGenerator.kt:215 */
|
6152 9870 | }
|
9871 + |
|
9872 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6153 9873 | }
|
6154 - | /// See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9874 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedByteInput`](crate::input::MalformedByteInput).
|
6155 9875 | pub mod malformed_byte_input {
|
6156 9876 |
|
9877 + | /* RustType.kt:534 */
|
6157 9878 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6158 - | /// Holds one variant for each of the ways the builder can fail.
|
9879 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
9880 + | /* RustType.kt:534 */
|
6159 9881 | #[non_exhaustive]
|
9882 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6160 9883 | #[allow(clippy::enum_variant_names)]
|
6161 9884 | pub enum ConstraintViolation {
|
6162 - | /// `byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
9885 + | /// /* ServerBuilderConstraintViolations.kt:137 */`byte_in_path` was not provided but it is required when building `MalformedByteInput`.
|
9886 + | /* ServerBuilderConstraintViolations.kt:144 */
|
6163 9887 | MissingByteInPath,
|
9888 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6164 9889 | }
|
9890 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6165 9891 | impl ::std::fmt::Display for ConstraintViolation {
|
9892 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6166 9893 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9894 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6167 9895 | match self {
|
6168 - | ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
6169 - | }
|
9896 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingByteInPath => write!(f, "`byte_in_path` was not provided but it is required when building `MalformedByteInput`"),
|
9897 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
9898 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6170 9899 | }
|
9900 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6171 9901 | }
|
9902 + | /* ServerBuilderConstraintViolations.kt:83 */
|
6172 9903 | impl ::std::error::Error for ConstraintViolation {}
|
9904 + | /* ServerBuilderConstraintViolations.kt:172 */
|
6173 9905 | impl ConstraintViolation {
|
6174 9906 | pub(crate) fn as_validation_exception_field(
|
6175 9907 | self,
|
6176 9908 | path: ::std::string::String,
|
6177 9909 | ) -> crate::model::ValidationExceptionField {
|
6178 9910 | match self {
|
6179 9911 | ConstraintViolation::MissingByteInPath => crate::model::ValidationExceptionField {
|
6180 9912 | message: format!("Value at '{}/byteInPath' failed to satisfy constraint: Member must not be null", path),
|
6181 9913 | path: path + "/byteInPath",
|
6182 9914 | },
|
6183 9915 | }
|
6184 9916 | }
|
6185 9917 | }
|
9918 + | /* ServerBuilderGenerator.kt:234 */
|
6186 9919 | impl ::std::convert::From<ConstraintViolation>
|
6187 9920 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6188 9921 | {
|
6189 9922 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6190 9923 | let first_validation_exception_field =
|
6191 9924 | constraint_violation.as_validation_exception_field("".to_owned());
|
6192 9925 | let validation_exception = crate::error::ValidationException {
|
6193 9926 | message: format!(
|
6194 9927 | "1 validation error detected. {}",
|
6195 9928 | &first_validation_exception_field.message
|
6196 9929 | ),
|
6197 9930 | field_list: Some(vec![first_validation_exception_field]),
|
6198 9931 | };
|
6199 9932 | Self::ConstraintViolation(
|
6200 9933 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6201 9934 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6202 9935 | )
|
6203 9936 | }
|
6204 9937 | }
|
9938 + | /* ServerBuilderGenerator.kt:244 */
|
6205 9939 | impl ::std::convert::From<Builder>
|
6206 9940 | for crate::constrained::MaybeConstrained<crate::input::MalformedByteInput>
|
6207 9941 | {
|
6208 9942 | fn from(builder: Builder) -> Self {
|
6209 9943 | Self::Unconstrained(builder)
|
6210 9944 | }
|
6211 9945 | }
|
9946 + | /* ServerBuilderGenerator.kt:446 */
|
6212 9947 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedByteInput {
|
6213 9948 | type Error = ConstraintViolation;
|
6214 9949 |
|
6215 9950 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6216 9951 | builder.build()
|
6217 9952 | }
|
6218 9953 | }
|
6219 - | /// A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9954 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedByteInput`](crate::input::MalformedByteInput).
|
9955 + | /* RustType.kt:534 */
|
6220 9956 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9957 + | /* ServerBuilderGenerator.kt:211 */
|
6221 9958 | pub struct Builder {
|
9959 + | /* ServerBuilderGenerator.kt:308 */
|
6222 9960 | pub(crate) byte_in_body: ::std::option::Option<i8>,
|
9961 + | /* ServerBuilderGenerator.kt:308 */
|
6223 9962 | pub(crate) byte_in_path: ::std::option::Option<i8>,
|
9963 + | /* ServerBuilderGenerator.kt:308 */
|
6224 9964 | pub(crate) byte_in_query: ::std::option::Option<i8>,
|
9965 + | /* ServerBuilderGenerator.kt:308 */
|
6225 9966 | pub(crate) byte_in_header: ::std::option::Option<i8>,
|
9967 + | /* ServerBuilderGenerator.kt:211 */
|
6226 9968 | }
|
9969 + | /* ServerBuilderGenerator.kt:215 */
|
6227 9970 | impl Builder {
|
9971 + | /* ServerBuilderGenerator.kt:331 */
|
6228 9972 | #[allow(missing_docs)] // documentation missing in model
|
9973 + | /* ServerBuilderGenerator.kt:343 */
|
6229 9974 | pub fn byte_in_body(mut self, input: ::std::option::Option<i8>) -> Self {
|
6230 - | self.byte_in_body = input;
|
9975 + | /* ServerBuilderGenerator.kt:344 */
|
9976 + | self.byte_in_body =
|
9977 + | /* ServerBuilderGenerator.kt:376 */input
|
9978 + | /* ServerBuilderGenerator.kt:344 */;
|
6231 9979 | self
|
9980 + | /* ServerBuilderGenerator.kt:343 */
|
6232 9981 | }
|
9982 + | /* ServerBuilderGenerator.kt:426 */
|
6233 9983 | #[allow(missing_docs)] // documentation missing in model
|
9984 + | /* ServerBuilderGenerator.kt:428 */
|
6234 9985 | pub(crate) fn set_byte_in_body(
|
6235 9986 | mut self,
|
6236 9987 | input: Option<impl ::std::convert::Into<i8>>,
|
6237 9988 | ) -> Self {
|
9989 + | /* ServerBuilderGenerator.kt:429 */
|
6238 9990 | self.byte_in_body = input.map(|v| v.into());
|
6239 9991 | self
|
9992 + | /* ServerBuilderGenerator.kt:428 */
|
6240 9993 | }
|
9994 + | /* ServerBuilderGenerator.kt:331 */
|
6241 9995 | #[allow(missing_docs)] // documentation missing in model
|
9996 + | /* ServerBuilderGenerator.kt:343 */
|
6242 9997 | pub fn byte_in_path(mut self, input: i8) -> Self {
|
6243 - | self.byte_in_path = Some(input);
|
9998 + | /* ServerBuilderGenerator.kt:344 */
|
9999 + | self.byte_in_path =
|
10000 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10001 + | /* ServerBuilderGenerator.kt:376 */input
|
10002 + | /* ServerBuilderGenerator.kt:345 */)
|
10003 + | /* ServerBuilderGenerator.kt:344 */;
|
6244 10004 | self
|
10005 + | /* ServerBuilderGenerator.kt:343 */
|
6245 10006 | }
|
10007 + | /* ServerBuilderGenerator.kt:426 */
|
6246 10008 | #[allow(missing_docs)] // documentation missing in model
|
10009 + | /* ServerBuilderGenerator.kt:428 */
|
6247 10010 | pub(crate) fn set_byte_in_path(mut self, input: impl ::std::convert::Into<i8>) -> Self {
|
10011 + | /* ServerBuilderGenerator.kt:429 */
|
6248 10012 | self.byte_in_path = Some(input.into());
|
6249 10013 | self
|
10014 + | /* ServerBuilderGenerator.kt:428 */
|
6250 10015 | }
|
10016 + | /* ServerBuilderGenerator.kt:331 */
|
6251 10017 | #[allow(missing_docs)] // documentation missing in model
|
10018 + | /* ServerBuilderGenerator.kt:343 */
|
6252 10019 | pub fn byte_in_query(mut self, input: ::std::option::Option<i8>) -> Self {
|
6253 - | self.byte_in_query = input;
|
10020 + | /* ServerBuilderGenerator.kt:344 */
|
10021 + | self.byte_in_query =
|
10022 + | /* ServerBuilderGenerator.kt:376 */input
|
10023 + | /* ServerBuilderGenerator.kt:344 */;
|
6254 10024 | self
|
10025 + | /* ServerBuilderGenerator.kt:343 */
|
6255 10026 | }
|
10027 + | /* ServerBuilderGenerator.kt:426 */
|
6256 10028 | #[allow(missing_docs)] // documentation missing in model
|
10029 + | /* ServerBuilderGenerator.kt:428 */
|
6257 10030 | pub(crate) fn set_byte_in_query(
|
6258 10031 | mut self,
|
6259 10032 | input: Option<impl ::std::convert::Into<i8>>,
|
6260 10033 | ) -> Self {
|
10034 + | /* ServerBuilderGenerator.kt:429 */
|
6261 10035 | self.byte_in_query = input.map(|v| v.into());
|
6262 10036 | self
|
10037 + | /* ServerBuilderGenerator.kt:428 */
|
6263 10038 | }
|
10039 + | /* ServerBuilderGenerator.kt:331 */
|
6264 10040 | #[allow(missing_docs)] // documentation missing in model
|
10041 + | /* ServerBuilderGenerator.kt:343 */
|
6265 10042 | pub fn byte_in_header(mut self, input: ::std::option::Option<i8>) -> Self {
|
6266 - | self.byte_in_header = input;
|
10043 + | /* ServerBuilderGenerator.kt:344 */
|
10044 + | self.byte_in_header =
|
10045 + | /* ServerBuilderGenerator.kt:376 */input
|
10046 + | /* ServerBuilderGenerator.kt:344 */;
|
6267 10047 | self
|
10048 + | /* ServerBuilderGenerator.kt:343 */
|
6268 10049 | }
|
10050 + | /* ServerBuilderGenerator.kt:426 */
|
6269 10051 | #[allow(missing_docs)] // documentation missing in model
|
10052 + | /* ServerBuilderGenerator.kt:428 */
|
6270 10053 | pub(crate) fn set_byte_in_header(
|
6271 10054 | mut self,
|
6272 10055 | input: Option<impl ::std::convert::Into<i8>>,
|
6273 10056 | ) -> Self {
|
10057 + | /* ServerBuilderGenerator.kt:429 */
|
6274 10058 | self.byte_in_header = input.map(|v| v.into());
|
6275 10059 | self
|
10060 + | /* ServerBuilderGenerator.kt:428 */
|
6276 10061 | }
|
6277 - | /// Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
6278 - | ///
|
10062 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedByteInput`](crate::input::MalformedByteInput).
|
10063 + | /// /* ServerBuilderGenerator.kt:260 */
|
6279 10064 | /// The builder fails to construct a [`MalformedByteInput`](crate::input::MalformedByteInput) if a [`ConstraintViolation`] occurs.
|
6280 10065 | ///
|
10066 + | /* ServerBuilderGenerator.kt:271 */
|
6281 10067 | pub fn build(self) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
6282 10068 | self.build_enforcing_all_constraints()
|
6283 10069 | }
|
10070 + | /* ServerBuilderGenerator.kt:283 */
|
6284 10071 | fn build_enforcing_all_constraints(
|
6285 10072 | self,
|
6286 10073 | ) -> Result<crate::input::MalformedByteInput, ConstraintViolation> {
|
6287 - | Ok(crate::input::MalformedByteInput {
|
10074 + | /* ServerBuilderGenerator.kt:287 */
|
10075 + | Ok(
|
10076 + | /* ServerBuilderGenerator.kt:542 */
|
10077 + | crate::input::MalformedByteInput {
|
10078 + | /* ServerBuilderGenerator.kt:546 */
|
6288 10079 | byte_in_body: self.byte_in_body,
|
10080 + | /* ServerBuilderGenerator.kt:546 */
|
6289 10081 | byte_in_path: self
|
6290 10082 | .byte_in_path
|
10083 + | /* ServerBuilderGenerator.kt:569 */
|
6291 10084 | .ok_or(ConstraintViolation::MissingByteInPath)?,
|
10085 + | /* ServerBuilderGenerator.kt:546 */
|
6292 10086 | byte_in_query: self.byte_in_query,
|
10087 + | /* ServerBuilderGenerator.kt:546 */
|
6293 10088 | byte_in_header: self.byte_in_header,
|
6294 - | })
|
10089 + | /* ServerBuilderGenerator.kt:542 */
|
10090 + | }, /* ServerBuilderGenerator.kt:287 */
|
10091 + | )
|
10092 + | /* ServerBuilderGenerator.kt:283 */
|
6295 10093 | }
|
10094 + | /* ServerBuilderGenerator.kt:215 */
|
6296 10095 | }
|
10096 + |
|
10097 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6297 10098 | }
|
6298 - | /// See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
10099 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
6299 10100 | pub mod malformed_blob_input {
|
6300 10101 |
|
10102 + | /* ServerBuilderGenerator.kt:461 */
|
6301 10103 | impl ::std::convert::From<Builder> for crate::input::MalformedBlobInput {
|
6302 10104 | fn from(builder: Builder) -> Self {
|
6303 10105 | builder.build()
|
6304 10106 | }
|
6305 10107 | }
|
6306 - | /// A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
10108 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
10109 + | /* RustType.kt:534 */
|
6307 10110 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10111 + | /* ServerBuilderGenerator.kt:211 */
|
6308 10112 | pub struct Builder {
|
10113 + | /* ServerBuilderGenerator.kt:308 */
|
6309 10114 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
10115 + | /* ServerBuilderGenerator.kt:211 */
|
6310 10116 | }
|
10117 + | /* ServerBuilderGenerator.kt:215 */
|
6311 10118 | impl Builder {
|
10119 + | /* ServerBuilderGenerator.kt:331 */
|
6312 10120 | #[allow(missing_docs)] // documentation missing in model
|
10121 + | /* ServerBuilderGenerator.kt:343 */
|
6313 10122 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
6314 - | self.blob = input;
|
10123 + | /* ServerBuilderGenerator.kt:344 */
|
10124 + | self.blob =
|
10125 + | /* ServerBuilderGenerator.kt:376 */input
|
10126 + | /* ServerBuilderGenerator.kt:344 */;
|
6315 10127 | self
|
10128 + | /* ServerBuilderGenerator.kt:343 */
|
6316 10129 | }
|
10130 + | /* ServerBuilderGenerator.kt:426 */
|
6317 10131 | #[allow(missing_docs)] // documentation missing in model
|
10132 + | /* ServerBuilderGenerator.kt:428 */
|
6318 10133 | pub(crate) fn set_blob(
|
6319 10134 | mut self,
|
6320 10135 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
6321 10136 | ) -> Self {
|
10137 + | /* ServerBuilderGenerator.kt:429 */
|
6322 10138 | self.blob = input.map(|v| v.into());
|
6323 10139 | self
|
10140 + | /* ServerBuilderGenerator.kt:428 */
|
6324 10141 | }
|
6325 - | /// Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
10142 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBlobInput`](crate::input::MalformedBlobInput).
|
10143 + | /* ServerBuilderGenerator.kt:271 */
|
6326 10144 | pub fn build(self) -> crate::input::MalformedBlobInput {
|
6327 10145 | self.build_enforcing_all_constraints()
|
6328 10146 | }
|
10147 + | /* ServerBuilderGenerator.kt:283 */
|
6329 10148 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedBlobInput {
|
6330 - | crate::input::MalformedBlobInput { blob: self.blob }
|
10149 + | /* ServerBuilderGenerator.kt:542 */
|
10150 + | crate::input::MalformedBlobInput {
|
10151 + | /* ServerBuilderGenerator.kt:546 */
|
10152 + | blob: self.blob,
|
10153 + | /* ServerBuilderGenerator.kt:542 */
|
10154 + | }
|
10155 + | /* ServerBuilderGenerator.kt:283 */
|
6331 10156 | }
|
10157 + | /* ServerBuilderGenerator.kt:215 */
|
6332 10158 | }
|
10159 + |
|
10160 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6333 10161 | }
|
6334 - | /// See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10162 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedMapInput`](crate::input::MalformedMapInput).
|
6335 10163 | pub mod malformed_map_input {
|
6336 10164 |
|
10165 + | /* ServerBuilderGenerator.kt:461 */
|
6337 10166 | impl ::std::convert::From<Builder> for crate::input::MalformedMapInput {
|
6338 10167 | fn from(builder: Builder) -> Self {
|
6339 10168 | builder.build()
|
6340 10169 | }
|
6341 10170 | }
|
6342 - | /// A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10171 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10172 + | /* RustType.kt:534 */
|
6343 10173 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10174 + | /* ServerBuilderGenerator.kt:211 */
|
6344 10175 | pub struct Builder {
|
10176 + | /* ServerBuilderGenerator.kt:308 */
|
6345 10177 | pub(crate) body_map: ::std::option::Option<
|
6346 10178 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6347 10179 | >,
|
10180 + | /* ServerBuilderGenerator.kt:211 */
|
6348 10181 | }
|
10182 + | /* ServerBuilderGenerator.kt:215 */
|
6349 10183 | impl Builder {
|
10184 + | /* ServerBuilderGenerator.kt:331 */
|
6350 10185 | #[allow(missing_docs)] // documentation missing in model
|
10186 + | /* ServerBuilderGenerator.kt:343 */
|
6351 10187 | pub fn body_map(
|
6352 10188 | mut self,
|
6353 10189 | input: ::std::option::Option<
|
6354 10190 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6355 10191 | >,
|
6356 10192 | ) -> Self {
|
6357 - | self.body_map = input;
|
10193 + | /* ServerBuilderGenerator.kt:344 */
|
10194 + | self.body_map =
|
10195 + | /* ServerBuilderGenerator.kt:376 */input
|
10196 + | /* ServerBuilderGenerator.kt:344 */;
|
6358 10197 | self
|
10198 + | /* ServerBuilderGenerator.kt:343 */
|
6359 10199 | }
|
10200 + | /* ServerBuilderGenerator.kt:426 */
|
6360 10201 | #[allow(missing_docs)] // documentation missing in model
|
10202 + | /* ServerBuilderGenerator.kt:428 */
|
6361 10203 | pub(crate) fn set_body_map(
|
6362 10204 | mut self,
|
6363 10205 | input: Option<
|
6364 10206 | impl ::std::convert::Into<
|
6365 10207 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
6366 10208 | >,
|
6367 10209 | >,
|
6368 10210 | ) -> Self {
|
10211 + | /* ServerBuilderGenerator.kt:429 */
|
6369 10212 | self.body_map = input.map(|v| v.into());
|
6370 10213 | self
|
10214 + | /* ServerBuilderGenerator.kt:428 */
|
6371 10215 | }
|
6372 - | /// Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10216 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedMapInput`](crate::input::MalformedMapInput).
|
10217 + | /* ServerBuilderGenerator.kt:271 */
|
6373 10218 | pub fn build(self) -> crate::input::MalformedMapInput {
|
6374 10219 | self.build_enforcing_all_constraints()
|
6375 10220 | }
|
10221 + | /* ServerBuilderGenerator.kt:283 */
|
6376 10222 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedMapInput {
|
10223 + | /* ServerBuilderGenerator.kt:542 */
|
6377 10224 | crate::input::MalformedMapInput {
|
10225 + | /* ServerBuilderGenerator.kt:546 */
|
6378 10226 | body_map: self.body_map,
|
10227 + | /* ServerBuilderGenerator.kt:542 */
|
6379 10228 | }
|
10229 + | /* ServerBuilderGenerator.kt:283 */
|
6380 10230 | }
|
10231 + | /* ServerBuilderGenerator.kt:215 */
|
6381 10232 | }
|
10233 + |
|
10234 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6382 10235 | }
|
6383 - | /// See [`MalformedListInput`](crate::input::MalformedListInput).
|
10236 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedListInput`](crate::input::MalformedListInput).
|
6384 10237 | pub mod malformed_list_input {
|
6385 10238 |
|
10239 + | /* ServerBuilderGenerator.kt:461 */
|
6386 10240 | impl ::std::convert::From<Builder> for crate::input::MalformedListInput {
|
6387 10241 | fn from(builder: Builder) -> Self {
|
6388 10242 | builder.build()
|
6389 10243 | }
|
6390 10244 | }
|
6391 - | /// A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
10245 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedListInput`](crate::input::MalformedListInput).
|
10246 + | /* RustType.kt:534 */
|
6392 10247 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10248 + | /* ServerBuilderGenerator.kt:211 */
|
6393 10249 | pub struct Builder {
|
10250 + | /* ServerBuilderGenerator.kt:308 */
|
6394 10251 | pub(crate) body_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10252 + | /* ServerBuilderGenerator.kt:211 */
|
6395 10253 | }
|
10254 + | /* ServerBuilderGenerator.kt:215 */
|
6396 10255 | impl Builder {
|
10256 + | /* ServerBuilderGenerator.kt:331 */
|
6397 10257 | #[allow(missing_docs)] // documentation missing in model
|
10258 + | /* ServerBuilderGenerator.kt:343 */
|
6398 10259 | pub fn body_list(
|
6399 10260 | mut self,
|
6400 10261 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6401 10262 | ) -> Self {
|
6402 - | self.body_list = input;
|
10263 + | /* ServerBuilderGenerator.kt:344 */
|
10264 + | self.body_list =
|
10265 + | /* ServerBuilderGenerator.kt:376 */input
|
10266 + | /* ServerBuilderGenerator.kt:344 */;
|
6403 10267 | self
|
10268 + | /* ServerBuilderGenerator.kt:343 */
|
6404 10269 | }
|
10270 + | /* ServerBuilderGenerator.kt:426 */
|
6405 10271 | #[allow(missing_docs)] // documentation missing in model
|
10272 + | /* ServerBuilderGenerator.kt:428 */
|
6406 10273 | pub(crate) fn set_body_list(
|
6407 10274 | mut self,
|
6408 10275 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
6409 10276 | ) -> Self {
|
10277 + | /* ServerBuilderGenerator.kt:429 */
|
6410 10278 | self.body_list = input.map(|v| v.into());
|
6411 10279 | self
|
10280 + | /* ServerBuilderGenerator.kt:428 */
|
6412 10281 | }
|
6413 - | /// Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
10282 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedListInput`](crate::input::MalformedListInput).
|
10283 + | /* ServerBuilderGenerator.kt:271 */
|
6414 10284 | pub fn build(self) -> crate::input::MalformedListInput {
|
6415 10285 | self.build_enforcing_all_constraints()
|
6416 10286 | }
|
10287 + | /* ServerBuilderGenerator.kt:283 */
|
6417 10288 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedListInput {
|
10289 + | /* ServerBuilderGenerator.kt:542 */
|
6418 10290 | crate::input::MalformedListInput {
|
10291 + | /* ServerBuilderGenerator.kt:546 */
|
6419 10292 | body_list: self.body_list,
|
10293 + | /* ServerBuilderGenerator.kt:542 */
|
6420 10294 | }
|
10295 + | /* ServerBuilderGenerator.kt:283 */
|
6421 10296 | }
|
10297 + | /* ServerBuilderGenerator.kt:215 */
|
6422 10298 | }
|
10299 + |
|
10300 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6423 10301 | }
|
6424 - | /// See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10302 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
6425 10303 | pub mod malformed_boolean_input {
|
6426 10304 |
|
10305 + | /* RustType.kt:534 */
|
6427 10306 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6428 - | /// Holds one variant for each of the ways the builder can fail.
|
10307 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10308 + | /* RustType.kt:534 */
|
6429 10309 | #[non_exhaustive]
|
10310 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6430 10311 | #[allow(clippy::enum_variant_names)]
|
6431 10312 | pub enum ConstraintViolation {
|
6432 - | /// `boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
10313 + | /// /* ServerBuilderConstraintViolations.kt:137 */`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`.
|
10314 + | /* ServerBuilderConstraintViolations.kt:144 */
|
6433 10315 | MissingBooleanInPath,
|
10316 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6434 10317 | }
|
10318 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6435 10319 | impl ::std::fmt::Display for ConstraintViolation {
|
10320 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6436 10321 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10322 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6437 10323 | match self {
|
6438 - | ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
6439 - | }
|
10324 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingBooleanInPath => write!(f, "`boolean_in_path` was not provided but it is required when building `MalformedBooleanInput`"),
|
10325 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
10326 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6440 10327 | }
|
10328 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6441 10329 | }
|
10330 + | /* ServerBuilderConstraintViolations.kt:83 */
|
6442 10331 | impl ::std::error::Error for ConstraintViolation {}
|
10332 + | /* ServerBuilderConstraintViolations.kt:172 */
|
6443 10333 | impl ConstraintViolation {
|
6444 10334 | pub(crate) fn as_validation_exception_field(
|
6445 10335 | self,
|
6446 10336 | path: ::std::string::String,
|
6447 10337 | ) -> crate::model::ValidationExceptionField {
|
6448 10338 | match self {
|
6449 10339 | ConstraintViolation::MissingBooleanInPath => crate::model::ValidationExceptionField {
|
6450 10340 | message: format!("Value at '{}/booleanInPath' failed to satisfy constraint: Member must not be null", path),
|
6451 10341 | path: path + "/booleanInPath",
|
6452 10342 | },
|
6453 10343 | }
|
6454 10344 | }
|
6455 10345 | }
|
10346 + | /* ServerBuilderGenerator.kt:234 */
|
6456 10347 | impl ::std::convert::From<ConstraintViolation>
|
6457 10348 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6458 10349 | {
|
6459 10350 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6460 10351 | let first_validation_exception_field =
|
6461 10352 | constraint_violation.as_validation_exception_field("".to_owned());
|
6462 10353 | let validation_exception = crate::error::ValidationException {
|
6463 10354 | message: format!(
|
6464 10355 | "1 validation error detected. {}",
|
6465 10356 | &first_validation_exception_field.message
|
6466 10357 | ),
|
6467 10358 | field_list: Some(vec![first_validation_exception_field]),
|
6468 10359 | };
|
6469 10360 | Self::ConstraintViolation(
|
6470 10361 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6471 10362 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6472 10363 | )
|
6473 10364 | }
|
6474 10365 | }
|
10366 + | /* ServerBuilderGenerator.kt:244 */
|
6475 10367 | impl ::std::convert::From<Builder>
|
6476 10368 | for crate::constrained::MaybeConstrained<crate::input::MalformedBooleanInput>
|
6477 10369 | {
|
6478 10370 | fn from(builder: Builder) -> Self {
|
6479 10371 | Self::Unconstrained(builder)
|
6480 10372 | }
|
6481 10373 | }
|
10374 + | /* ServerBuilderGenerator.kt:446 */
|
6482 10375 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedBooleanInput {
|
6483 10376 | type Error = ConstraintViolation;
|
6484 10377 |
|
6485 10378 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6486 10379 | builder.build()
|
6487 10380 | }
|
6488 10381 | }
|
6489 - | /// A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10382 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10383 + | /* RustType.kt:534 */
|
6490 10384 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10385 + | /* ServerBuilderGenerator.kt:211 */
|
6491 10386 | pub struct Builder {
|
10387 + | /* ServerBuilderGenerator.kt:308 */
|
6492 10388 | pub(crate) boolean_in_body: ::std::option::Option<bool>,
|
10389 + | /* ServerBuilderGenerator.kt:308 */
|
6493 10390 | pub(crate) boolean_in_path: ::std::option::Option<bool>,
|
10391 + | /* ServerBuilderGenerator.kt:308 */
|
6494 10392 | pub(crate) boolean_in_query: ::std::option::Option<bool>,
|
10393 + | /* ServerBuilderGenerator.kt:308 */
|
6495 10394 | pub(crate) boolean_in_header: ::std::option::Option<bool>,
|
10395 + | /* ServerBuilderGenerator.kt:211 */
|
6496 10396 | }
|
10397 + | /* ServerBuilderGenerator.kt:215 */
|
6497 10398 | impl Builder {
|
10399 + | /* ServerBuilderGenerator.kt:331 */
|
6498 10400 | #[allow(missing_docs)] // documentation missing in model
|
10401 + | /* ServerBuilderGenerator.kt:343 */
|
6499 10402 | pub fn boolean_in_body(mut self, input: ::std::option::Option<bool>) -> Self {
|
6500 - | self.boolean_in_body = input;
|
10403 + | /* ServerBuilderGenerator.kt:344 */
|
10404 + | self.boolean_in_body =
|
10405 + | /* ServerBuilderGenerator.kt:376 */input
|
10406 + | /* ServerBuilderGenerator.kt:344 */;
|
6501 10407 | self
|
10408 + | /* ServerBuilderGenerator.kt:343 */
|
6502 10409 | }
|
10410 + | /* ServerBuilderGenerator.kt:426 */
|
6503 10411 | #[allow(missing_docs)] // documentation missing in model
|
10412 + | /* ServerBuilderGenerator.kt:428 */
|
6504 10413 | pub(crate) fn set_boolean_in_body(
|
6505 10414 | mut self,
|
6506 10415 | input: Option<impl ::std::convert::Into<bool>>,
|
6507 10416 | ) -> Self {
|
10417 + | /* ServerBuilderGenerator.kt:429 */
|
6508 10418 | self.boolean_in_body = input.map(|v| v.into());
|
6509 10419 | self
|
10420 + | /* ServerBuilderGenerator.kt:428 */
|
6510 10421 | }
|
10422 + | /* ServerBuilderGenerator.kt:331 */
|
6511 10423 | #[allow(missing_docs)] // documentation missing in model
|
10424 + | /* ServerBuilderGenerator.kt:343 */
|
6512 10425 | pub fn boolean_in_path(mut self, input: bool) -> Self {
|
6513 - | self.boolean_in_path = Some(input);
|
10426 + | /* ServerBuilderGenerator.kt:344 */
|
10427 + | self.boolean_in_path =
|
10428 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10429 + | /* ServerBuilderGenerator.kt:376 */input
|
10430 + | /* ServerBuilderGenerator.kt:345 */)
|
10431 + | /* ServerBuilderGenerator.kt:344 */;
|
6514 10432 | self
|
10433 + | /* ServerBuilderGenerator.kt:343 */
|
6515 10434 | }
|
10435 + | /* ServerBuilderGenerator.kt:426 */
|
6516 10436 | #[allow(missing_docs)] // documentation missing in model
|
10437 + | /* ServerBuilderGenerator.kt:428 */
|
6517 10438 | pub(crate) fn set_boolean_in_path(
|
6518 10439 | mut self,
|
6519 10440 | input: impl ::std::convert::Into<bool>,
|
6520 10441 | ) -> Self {
|
10442 + | /* ServerBuilderGenerator.kt:429 */
|
6521 10443 | self.boolean_in_path = Some(input.into());
|
6522 10444 | self
|
10445 + | /* ServerBuilderGenerator.kt:428 */
|
6523 10446 | }
|
10447 + | /* ServerBuilderGenerator.kt:331 */
|
6524 10448 | #[allow(missing_docs)] // documentation missing in model
|
10449 + | /* ServerBuilderGenerator.kt:343 */
|
6525 10450 | pub fn boolean_in_query(mut self, input: ::std::option::Option<bool>) -> Self {
|
6526 - | self.boolean_in_query = input;
|
10451 + | /* ServerBuilderGenerator.kt:344 */
|
10452 + | self.boolean_in_query =
|
10453 + | /* ServerBuilderGenerator.kt:376 */input
|
10454 + | /* ServerBuilderGenerator.kt:344 */;
|
6527 10455 | self
|
10456 + | /* ServerBuilderGenerator.kt:343 */
|
6528 10457 | }
|
10458 + | /* ServerBuilderGenerator.kt:426 */
|
6529 10459 | #[allow(missing_docs)] // documentation missing in model
|
10460 + | /* ServerBuilderGenerator.kt:428 */
|
6530 10461 | pub(crate) fn set_boolean_in_query(
|
6531 10462 | mut self,
|
6532 10463 | input: Option<impl ::std::convert::Into<bool>>,
|
6533 10464 | ) -> Self {
|
10465 + | /* ServerBuilderGenerator.kt:429 */
|
6534 10466 | self.boolean_in_query = input.map(|v| v.into());
|
6535 10467 | self
|
10468 + | /* ServerBuilderGenerator.kt:428 */
|
6536 10469 | }
|
10470 + | /* ServerBuilderGenerator.kt:331 */
|
6537 10471 | #[allow(missing_docs)] // documentation missing in model
|
10472 + | /* ServerBuilderGenerator.kt:343 */
|
6538 10473 | pub fn boolean_in_header(mut self, input: ::std::option::Option<bool>) -> Self {
|
6539 - | self.boolean_in_header = input;
|
10474 + | /* ServerBuilderGenerator.kt:344 */
|
10475 + | self.boolean_in_header =
|
10476 + | /* ServerBuilderGenerator.kt:376 */input
|
10477 + | /* ServerBuilderGenerator.kt:344 */;
|
6540 10478 | self
|
10479 + | /* ServerBuilderGenerator.kt:343 */
|
6541 10480 | }
|
10481 + | /* ServerBuilderGenerator.kt:426 */
|
6542 10482 | #[allow(missing_docs)] // documentation missing in model
|
10483 + | /* ServerBuilderGenerator.kt:428 */
|
6543 10484 | pub(crate) fn set_boolean_in_header(
|
6544 10485 | mut self,
|
6545 10486 | input: Option<impl ::std::convert::Into<bool>>,
|
6546 10487 | ) -> Self {
|
10488 + | /* ServerBuilderGenerator.kt:429 */
|
6547 10489 | self.boolean_in_header = input.map(|v| v.into());
|
6548 10490 | self
|
10491 + | /* ServerBuilderGenerator.kt:428 */
|
6549 10492 | }
|
6550 - | /// Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
6551 - | ///
|
10493 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput).
|
10494 + | /// /* ServerBuilderGenerator.kt:260 */
|
6552 10495 | /// The builder fails to construct a [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) if a [`ConstraintViolation`] occurs.
|
6553 10496 | ///
|
10497 + | /* ServerBuilderGenerator.kt:271 */
|
6554 10498 | pub fn build(self) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
6555 10499 | self.build_enforcing_all_constraints()
|
6556 10500 | }
|
10501 + | /* ServerBuilderGenerator.kt:283 */
|
6557 10502 | fn build_enforcing_all_constraints(
|
6558 10503 | self,
|
6559 10504 | ) -> Result<crate::input::MalformedBooleanInput, ConstraintViolation> {
|
6560 - | Ok(crate::input::MalformedBooleanInput {
|
10505 + | /* ServerBuilderGenerator.kt:287 */
|
10506 + | Ok(
|
10507 + | /* ServerBuilderGenerator.kt:542 */
|
10508 + | crate::input::MalformedBooleanInput {
|
10509 + | /* ServerBuilderGenerator.kt:546 */
|
6561 10510 | boolean_in_body: self.boolean_in_body,
|
10511 + | /* ServerBuilderGenerator.kt:546 */
|
6562 10512 | boolean_in_path: self
|
6563 10513 | .boolean_in_path
|
10514 + | /* ServerBuilderGenerator.kt:569 */
|
6564 10515 | .ok_or(ConstraintViolation::MissingBooleanInPath)?,
|
10516 + | /* ServerBuilderGenerator.kt:546 */
|
6565 10517 | boolean_in_query: self.boolean_in_query,
|
10518 + | /* ServerBuilderGenerator.kt:546 */
|
6566 10519 | boolean_in_header: self.boolean_in_header,
|
6567 - | })
|
10520 + | /* ServerBuilderGenerator.kt:542 */
|
10521 + | }, /* ServerBuilderGenerator.kt:287 */
|
10522 + | )
|
10523 + | /* ServerBuilderGenerator.kt:283 */
|
6568 10524 | }
|
10525 + | /* ServerBuilderGenerator.kt:215 */
|
6569 10526 | }
|
10527 + |
|
10528 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6570 10529 | }
|
6571 - | /// See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10530 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
6572 10531 | pub mod malformed_union_input {
|
6573 10532 |
|
10533 + | /* ServerBuilderGenerator.kt:461 */
|
6574 10534 | impl ::std::convert::From<Builder> for crate::input::MalformedUnionInput {
|
6575 10535 | fn from(builder: Builder) -> Self {
|
6576 10536 | builder.build()
|
6577 10537 | }
|
6578 10538 | }
|
6579 - | /// A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10539 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10540 + | /* RustType.kt:534 */
|
6580 10541 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10542 + | /* ServerBuilderGenerator.kt:211 */
|
6581 10543 | pub struct Builder {
|
10544 + | /* ServerBuilderGenerator.kt:308 */
|
6582 10545 | pub(crate) union: ::std::option::Option<crate::model::SimpleUnion>,
|
10546 + | /* ServerBuilderGenerator.kt:211 */
|
6583 10547 | }
|
10548 + | /* ServerBuilderGenerator.kt:215 */
|
6584 10549 | impl Builder {
|
10550 + | /* ServerBuilderGenerator.kt:331 */
|
6585 10551 | #[allow(missing_docs)] // documentation missing in model
|
10552 + | /* ServerBuilderGenerator.kt:343 */
|
6586 10553 | pub fn union(mut self, input: ::std::option::Option<crate::model::SimpleUnion>) -> Self {
|
6587 - | self.union = input;
|
10554 + | /* ServerBuilderGenerator.kt:344 */
|
10555 + | self.union =
|
10556 + | /* ServerBuilderGenerator.kt:376 */input
|
10557 + | /* ServerBuilderGenerator.kt:344 */;
|
6588 10558 | self
|
10559 + | /* ServerBuilderGenerator.kt:343 */
|
6589 10560 | }
|
10561 + | /* ServerBuilderGenerator.kt:426 */
|
6590 10562 | #[allow(missing_docs)] // documentation missing in model
|
10563 + | /* ServerBuilderGenerator.kt:428 */
|
6591 10564 | pub(crate) fn set_union(
|
6592 10565 | mut self,
|
6593 10566 | input: Option<impl ::std::convert::Into<crate::model::SimpleUnion>>,
|
6594 10567 | ) -> Self {
|
10568 + | /* ServerBuilderGenerator.kt:429 */
|
6595 10569 | self.union = input.map(|v| v.into());
|
6596 10570 | self
|
10571 + | /* ServerBuilderGenerator.kt:428 */
|
6597 10572 | }
|
6598 - | /// Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10573 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedUnionInput`](crate::input::MalformedUnionInput).
|
10574 + | /* ServerBuilderGenerator.kt:271 */
|
6599 10575 | pub fn build(self) -> crate::input::MalformedUnionInput {
|
6600 10576 | self.build_enforcing_all_constraints()
|
6601 10577 | }
|
10578 + | /* ServerBuilderGenerator.kt:283 */
|
6602 10579 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedUnionInput {
|
6603 - | crate::input::MalformedUnionInput { union: self.union }
|
10580 + | /* ServerBuilderGenerator.kt:542 */
|
10581 + | crate::input::MalformedUnionInput {
|
10582 + | /* ServerBuilderGenerator.kt:546 */
|
10583 + | union: self.union,
|
10584 + | /* ServerBuilderGenerator.kt:542 */
|
10585 + | }
|
10586 + | /* ServerBuilderGenerator.kt:283 */
|
6604 10587 | }
|
10588 + | /* ServerBuilderGenerator.kt:215 */
|
6605 10589 | }
|
10590 + |
|
10591 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6606 10592 | }
|
6607 - | /// See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10593 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
6608 10594 | pub mod malformed_integer_input {
|
6609 10595 |
|
10596 + | /* RustType.kt:534 */
|
6610 10597 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6611 - | /// Holds one variant for each of the ways the builder can fail.
|
10598 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
10599 + | /* RustType.kt:534 */
|
6612 10600 | #[non_exhaustive]
|
10601 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6613 10602 | #[allow(clippy::enum_variant_names)]
|
6614 10603 | pub enum ConstraintViolation {
|
6615 - | /// `integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
10604 + | /// /* ServerBuilderConstraintViolations.kt:137 */`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`.
|
10605 + | /* ServerBuilderConstraintViolations.kt:144 */
|
6616 10606 | MissingIntegerInPath,
|
10607 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6617 10608 | }
|
10609 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6618 10610 | impl ::std::fmt::Display for ConstraintViolation {
|
10611 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6619 10612 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10613 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6620 10614 | match self {
|
6621 - | ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
6622 - | }
|
10615 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingIntegerInPath => write!(f, "`integer_in_path` was not provided but it is required when building `MalformedIntegerInput`"),
|
10616 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
10617 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6623 10618 | }
|
10619 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6624 10620 | }
|
10621 + | /* ServerBuilderConstraintViolations.kt:83 */
|
6625 10622 | impl ::std::error::Error for ConstraintViolation {}
|
10623 + | /* ServerBuilderConstraintViolations.kt:172 */
|
6626 10624 | impl ConstraintViolation {
|
6627 10625 | pub(crate) fn as_validation_exception_field(
|
6628 10626 | self,
|
6629 10627 | path: ::std::string::String,
|
6630 10628 | ) -> crate::model::ValidationExceptionField {
|
6631 10629 | match self {
|
6632 10630 | ConstraintViolation::MissingIntegerInPath => crate::model::ValidationExceptionField {
|
6633 10631 | message: format!("Value at '{}/integerInPath' failed to satisfy constraint: Member must not be null", path),
|
6634 10632 | path: path + "/integerInPath",
|
6635 10633 | },
|
6636 10634 | }
|
6637 10635 | }
|
6638 10636 | }
|
10637 + | /* ServerBuilderGenerator.kt:234 */
|
6639 10638 | impl ::std::convert::From<ConstraintViolation>
|
6640 10639 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6641 10640 | {
|
6642 10641 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6643 10642 | let first_validation_exception_field =
|
6644 10643 | constraint_violation.as_validation_exception_field("".to_owned());
|
6645 10644 | let validation_exception = crate::error::ValidationException {
|
6646 10645 | message: format!(
|
6647 10646 | "1 validation error detected. {}",
|
6648 10647 | &first_validation_exception_field.message
|
6649 10648 | ),
|
6650 10649 | field_list: Some(vec![first_validation_exception_field]),
|
6651 10650 | };
|
6652 10651 | Self::ConstraintViolation(
|
6653 10652 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6654 10653 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6655 10654 | )
|
6656 10655 | }
|
6657 10656 | }
|
10657 + | /* ServerBuilderGenerator.kt:244 */
|
6658 10658 | impl ::std::convert::From<Builder>
|
6659 10659 | for crate::constrained::MaybeConstrained<crate::input::MalformedIntegerInput>
|
6660 10660 | {
|
6661 10661 | fn from(builder: Builder) -> Self {
|
6662 10662 | Self::Unconstrained(builder)
|
6663 10663 | }
|
6664 10664 | }
|
10665 + | /* ServerBuilderGenerator.kt:446 */
|
6665 10666 | impl ::std::convert::TryFrom<Builder> for crate::input::MalformedIntegerInput {
|
6666 10667 | type Error = ConstraintViolation;
|
6667 10668 |
|
6668 10669 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6669 10670 | builder.build()
|
6670 10671 | }
|
6671 10672 | }
|
6672 - | /// A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10673 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10674 + | /* RustType.kt:534 */
|
6673 10675 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10676 + | /* ServerBuilderGenerator.kt:211 */
|
6674 10677 | pub struct Builder {
|
10678 + | /* ServerBuilderGenerator.kt:308 */
|
6675 10679 | pub(crate) integer_in_body: ::std::option::Option<i32>,
|
10680 + | /* ServerBuilderGenerator.kt:308 */
|
6676 10681 | pub(crate) integer_in_path: ::std::option::Option<i32>,
|
10682 + | /* ServerBuilderGenerator.kt:308 */
|
6677 10683 | pub(crate) integer_in_query: ::std::option::Option<i32>,
|
10684 + | /* ServerBuilderGenerator.kt:308 */
|
6678 10685 | pub(crate) integer_in_header: ::std::option::Option<i32>,
|
10686 + | /* ServerBuilderGenerator.kt:211 */
|
6679 10687 | }
|
10688 + | /* ServerBuilderGenerator.kt:215 */
|
6680 10689 | impl Builder {
|
10690 + | /* ServerBuilderGenerator.kt:331 */
|
6681 10691 | #[allow(missing_docs)] // documentation missing in model
|
10692 + | /* ServerBuilderGenerator.kt:343 */
|
6682 10693 | pub fn integer_in_body(mut self, input: ::std::option::Option<i32>) -> Self {
|
6683 - | self.integer_in_body = input;
|
10694 + | /* ServerBuilderGenerator.kt:344 */
|
10695 + | self.integer_in_body =
|
10696 + | /* ServerBuilderGenerator.kt:376 */input
|
10697 + | /* ServerBuilderGenerator.kt:344 */;
|
6684 10698 | self
|
10699 + | /* ServerBuilderGenerator.kt:343 */
|
6685 10700 | }
|
10701 + | /* ServerBuilderGenerator.kt:426 */
|
6686 10702 | #[allow(missing_docs)] // documentation missing in model
|
10703 + | /* ServerBuilderGenerator.kt:428 */
|
6687 10704 | pub(crate) fn set_integer_in_body(
|
6688 10705 | mut self,
|
6689 10706 | input: Option<impl ::std::convert::Into<i32>>,
|
6690 10707 | ) -> Self {
|
10708 + | /* ServerBuilderGenerator.kt:429 */
|
6691 10709 | self.integer_in_body = input.map(|v| v.into());
|
6692 10710 | self
|
10711 + | /* ServerBuilderGenerator.kt:428 */
|
6693 10712 | }
|
10713 + | /* ServerBuilderGenerator.kt:331 */
|
6694 10714 | #[allow(missing_docs)] // documentation missing in model
|
10715 + | /* ServerBuilderGenerator.kt:343 */
|
6695 10716 | pub fn integer_in_path(mut self, input: i32) -> Self {
|
6696 - | self.integer_in_path = Some(input);
|
10717 + | /* ServerBuilderGenerator.kt:344 */
|
10718 + | self.integer_in_path =
|
10719 + | /* ServerBuilderGenerator.kt:345 */Some(
|
10720 + | /* ServerBuilderGenerator.kt:376 */input
|
10721 + | /* ServerBuilderGenerator.kt:345 */)
|
10722 + | /* ServerBuilderGenerator.kt:344 */;
|
6697 10723 | self
|
10724 + | /* ServerBuilderGenerator.kt:343 */
|
6698 10725 | }
|
10726 + | /* ServerBuilderGenerator.kt:426 */
|
6699 10727 | #[allow(missing_docs)] // documentation missing in model
|
10728 + | /* ServerBuilderGenerator.kt:428 */
|
6700 10729 | pub(crate) fn set_integer_in_path(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
10730 + | /* ServerBuilderGenerator.kt:429 */
|
6701 10731 | self.integer_in_path = Some(input.into());
|
6702 10732 | self
|
10733 + | /* ServerBuilderGenerator.kt:428 */
|
6703 10734 | }
|
10735 + | /* ServerBuilderGenerator.kt:331 */
|
6704 10736 | #[allow(missing_docs)] // documentation missing in model
|
10737 + | /* ServerBuilderGenerator.kt:343 */
|
6705 10738 | pub fn integer_in_query(mut self, input: ::std::option::Option<i32>) -> Self {
|
6706 - | self.integer_in_query = input;
|
10739 + | /* ServerBuilderGenerator.kt:344 */
|
10740 + | self.integer_in_query =
|
10741 + | /* ServerBuilderGenerator.kt:376 */input
|
10742 + | /* ServerBuilderGenerator.kt:344 */;
|
6707 10743 | self
|
10744 + | /* ServerBuilderGenerator.kt:343 */
|
6708 10745 | }
|
10746 + | /* ServerBuilderGenerator.kt:426 */
|
6709 10747 | #[allow(missing_docs)] // documentation missing in model
|
10748 + | /* ServerBuilderGenerator.kt:428 */
|
6710 10749 | pub(crate) fn set_integer_in_query(
|
6711 10750 | mut self,
|
6712 10751 | input: Option<impl ::std::convert::Into<i32>>,
|
6713 10752 | ) -> Self {
|
10753 + | /* ServerBuilderGenerator.kt:429 */
|
6714 10754 | self.integer_in_query = input.map(|v| v.into());
|
6715 10755 | self
|
10756 + | /* ServerBuilderGenerator.kt:428 */
|
6716 10757 | }
|
10758 + | /* ServerBuilderGenerator.kt:331 */
|
6717 10759 | #[allow(missing_docs)] // documentation missing in model
|
10760 + | /* ServerBuilderGenerator.kt:343 */
|
6718 10761 | pub fn integer_in_header(mut self, input: ::std::option::Option<i32>) -> Self {
|
6719 - | self.integer_in_header = input;
|
10762 + | /* ServerBuilderGenerator.kt:344 */
|
10763 + | self.integer_in_header =
|
10764 + | /* ServerBuilderGenerator.kt:376 */input
|
10765 + | /* ServerBuilderGenerator.kt:344 */;
|
6720 10766 | self
|
10767 + | /* ServerBuilderGenerator.kt:343 */
|
6721 10768 | }
|
10769 + | /* ServerBuilderGenerator.kt:426 */
|
6722 10770 | #[allow(missing_docs)] // documentation missing in model
|
10771 + | /* ServerBuilderGenerator.kt:428 */
|
6723 10772 | pub(crate) fn set_integer_in_header(
|
6724 10773 | mut self,
|
6725 10774 | input: Option<impl ::std::convert::Into<i32>>,
|
6726 10775 | ) -> Self {
|
10776 + | /* ServerBuilderGenerator.kt:429 */
|
6727 10777 | self.integer_in_header = input.map(|v| v.into());
|
6728 10778 | self
|
10779 + | /* ServerBuilderGenerator.kt:428 */
|
6729 10780 | }
|
6730 - | /// Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
6731 - | ///
|
10781 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput).
|
10782 + | /// /* ServerBuilderGenerator.kt:260 */
|
6732 10783 | /// The builder fails to construct a [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) if a [`ConstraintViolation`] occurs.
|
6733 10784 | ///
|
10785 + | /* ServerBuilderGenerator.kt:271 */
|
6734 10786 | pub fn build(self) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
6735 10787 | self.build_enforcing_all_constraints()
|
6736 10788 | }
|
10789 + | /* ServerBuilderGenerator.kt:283 */
|
6737 10790 | fn build_enforcing_all_constraints(
|
6738 10791 | self,
|
6739 10792 | ) -> Result<crate::input::MalformedIntegerInput, ConstraintViolation> {
|
6740 - | Ok(crate::input::MalformedIntegerInput {
|
10793 + | /* ServerBuilderGenerator.kt:287 */
|
10794 + | Ok(
|
10795 + | /* ServerBuilderGenerator.kt:542 */
|
10796 + | crate::input::MalformedIntegerInput {
|
10797 + | /* ServerBuilderGenerator.kt:546 */
|
6741 10798 | integer_in_body: self.integer_in_body,
|
10799 + | /* ServerBuilderGenerator.kt:546 */
|
6742 10800 | integer_in_path: self
|
6743 10801 | .integer_in_path
|
10802 + | /* ServerBuilderGenerator.kt:569 */
|
6744 10803 | .ok_or(ConstraintViolation::MissingIntegerInPath)?,
|
10804 + | /* ServerBuilderGenerator.kt:546 */
|
6745 10805 | integer_in_query: self.integer_in_query,
|
10806 + | /* ServerBuilderGenerator.kt:546 */
|
6746 10807 | integer_in_header: self.integer_in_header,
|
6747 - | })
|
10808 + | /* ServerBuilderGenerator.kt:542 */
|
10809 + | }, /* ServerBuilderGenerator.kt:287 */
|
10810 + | )
|
10811 + | /* ServerBuilderGenerator.kt:283 */
|
6748 10812 | }
|
10813 + | /* ServerBuilderGenerator.kt:215 */
|
6749 10814 | }
|
10815 + |
|
10816 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6750 10817 | }
|
6751 - | /// See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10818 + | /// /* ServerBuilderGenerator.kt:171 */See [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
6752 10819 | pub mod malformed_request_body_input {
|
6753 10820 |
|
10821 + | /* ServerBuilderGenerator.kt:461 */
|
6754 10822 | impl ::std::convert::From<Builder> for crate::input::MalformedRequestBodyInput {
|
6755 10823 | fn from(builder: Builder) -> Self {
|
6756 10824 | builder.build()
|
6757 10825 | }
|
6758 10826 | }
|
6759 - | /// A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10827 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10828 + | /* RustType.kt:534 */
|
6760 10829 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10830 + | /* ServerBuilderGenerator.kt:211 */
|
6761 10831 | pub struct Builder {
|
6762 - | pub(crate) int: ::std::option::Option<i32>,
|
10832 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) int: ::std::option::Option<i32>,
|
10833 + | /* ServerBuilderGenerator.kt:308 */
|
6763 10834 | pub(crate) float: ::std::option::Option<f32>,
|
10835 + | /* ServerBuilderGenerator.kt:211 */
|
6764 10836 | }
|
10837 + | /* ServerBuilderGenerator.kt:215 */
|
6765 10838 | impl Builder {
|
10839 + | /* ServerBuilderGenerator.kt:331 */
|
6766 10840 | #[allow(missing_docs)] // documentation missing in model
|
10841 + | /* ServerBuilderGenerator.kt:343 */
|
6767 10842 | pub fn int(mut self, input: ::std::option::Option<i32>) -> Self {
|
6768 - | self.int = input;
|
10843 + | /* ServerBuilderGenerator.kt:344 */
|
10844 + | self.int =
|
10845 + | /* ServerBuilderGenerator.kt:376 */input
|
10846 + | /* ServerBuilderGenerator.kt:344 */;
|
6769 10847 | self
|
10848 + | /* ServerBuilderGenerator.kt:343 */
|
6770 10849 | }
|
10850 + | /* ServerBuilderGenerator.kt:426 */
|
6771 10851 | #[allow(missing_docs)] // documentation missing in model
|
10852 + | /* ServerBuilderGenerator.kt:428 */
|
6772 10853 | pub(crate) fn set_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
10854 + | /* ServerBuilderGenerator.kt:429 */
|
6773 10855 | self.int = input.map(|v| v.into());
|
6774 10856 | self
|
10857 + | /* ServerBuilderGenerator.kt:428 */
|
6775 10858 | }
|
10859 + | /* ServerBuilderGenerator.kt:331 */
|
6776 10860 | #[allow(missing_docs)] // documentation missing in model
|
10861 + | /* ServerBuilderGenerator.kt:343 */
|
6777 10862 | pub fn float(mut self, input: ::std::option::Option<f32>) -> Self {
|
6778 - | self.float = input;
|
10863 + | /* ServerBuilderGenerator.kt:344 */
|
10864 + | self.float =
|
10865 + | /* ServerBuilderGenerator.kt:376 */input
|
10866 + | /* ServerBuilderGenerator.kt:344 */;
|
6779 10867 | self
|
10868 + | /* ServerBuilderGenerator.kt:343 */
|
6780 10869 | }
|
10870 + | /* ServerBuilderGenerator.kt:426 */
|
6781 10871 | #[allow(missing_docs)] // documentation missing in model
|
10872 + | /* ServerBuilderGenerator.kt:428 */
|
6782 10873 | pub(crate) fn set_float(mut self, input: Option<impl ::std::convert::Into<f32>>) -> Self {
|
10874 + | /* ServerBuilderGenerator.kt:429 */
|
6783 10875 | self.float = input.map(|v| v.into());
|
6784 10876 | self
|
10877 + | /* ServerBuilderGenerator.kt:428 */
|
6785 10878 | }
|
6786 - | /// Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10879 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput).
|
10880 + | /* ServerBuilderGenerator.kt:271 */
|
6787 10881 | pub fn build(self) -> crate::input::MalformedRequestBodyInput {
|
6788 10882 | self.build_enforcing_all_constraints()
|
6789 10883 | }
|
10884 + | /* ServerBuilderGenerator.kt:283 */
|
6790 10885 | fn build_enforcing_all_constraints(self) -> crate::input::MalformedRequestBodyInput {
|
10886 + | /* ServerBuilderGenerator.kt:542 */
|
6791 10887 | crate::input::MalformedRequestBodyInput {
|
10888 + | /* ServerBuilderGenerator.kt:546 */
|
6792 10889 | int: self.int,
|
10890 + | /* ServerBuilderGenerator.kt:546 */
|
6793 10891 | float: self.float,
|
10892 + | /* ServerBuilderGenerator.kt:542 */
|
6794 10893 | }
|
10894 + | /* ServerBuilderGenerator.kt:283 */
|
6795 10895 | }
|
10896 + | /* ServerBuilderGenerator.kt:215 */
|
6796 10897 | }
|
10898 + |
|
10899 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6797 10900 | }
|
6798 - | /// See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10901 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
6799 10902 | pub mod http_checksum_required_input {
|
6800 10903 |
|
10904 + | /* ServerBuilderGenerator.kt:461 */
|
6801 10905 | impl ::std::convert::From<Builder> for crate::input::HttpChecksumRequiredInput {
|
6802 10906 | fn from(builder: Builder) -> Self {
|
6803 10907 | builder.build()
|
6804 10908 | }
|
6805 10909 | }
|
6806 - | /// A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10910 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10911 + | /* RustType.kt:534 */
|
6807 10912 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10913 + | /* ServerBuilderGenerator.kt:211 */
|
6808 10914 | pub struct Builder {
|
10915 + | /* ServerBuilderGenerator.kt:308 */
|
6809 10916 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
10917 + | /* ServerBuilderGenerator.kt:211 */
|
6810 10918 | }
|
10919 + | /* ServerBuilderGenerator.kt:215 */
|
6811 10920 | impl Builder {
|
10921 + | /* ServerBuilderGenerator.kt:331 */
|
6812 10922 | #[allow(missing_docs)] // documentation missing in model
|
10923 + | /* ServerBuilderGenerator.kt:343 */
|
6813 10924 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
6814 - | self.foo = input;
|
10925 + | /* ServerBuilderGenerator.kt:344 */
|
10926 + | self.foo =
|
10927 + | /* ServerBuilderGenerator.kt:376 */input
|
10928 + | /* ServerBuilderGenerator.kt:344 */;
|
6815 10929 | self
|
10930 + | /* ServerBuilderGenerator.kt:343 */
|
6816 10931 | }
|
10932 + | /* ServerBuilderGenerator.kt:426 */
|
6817 10933 | #[allow(missing_docs)] // documentation missing in model
|
10934 + | /* ServerBuilderGenerator.kt:428 */
|
6818 10935 | pub(crate) fn set_foo(
|
6819 10936 | mut self,
|
6820 10937 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
6821 10938 | ) -> Self {
|
10939 + | /* ServerBuilderGenerator.kt:429 */
|
6822 10940 | self.foo = input.map(|v| v.into());
|
6823 10941 | self
|
10942 + | /* ServerBuilderGenerator.kt:428 */
|
6824 10943 | }
|
6825 - | /// Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10944 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput).
|
10945 + | /* ServerBuilderGenerator.kt:271 */
|
6826 10946 | pub fn build(self) -> crate::input::HttpChecksumRequiredInput {
|
6827 10947 | self.build_enforcing_all_constraints()
|
6828 10948 | }
|
10949 + | /* ServerBuilderGenerator.kt:283 */
|
6829 10950 | fn build_enforcing_all_constraints(self) -> crate::input::HttpChecksumRequiredInput {
|
6830 - | crate::input::HttpChecksumRequiredInput { foo: self.foo }
|
10951 + | /* ServerBuilderGenerator.kt:542 */
|
10952 + | crate::input::HttpChecksumRequiredInput {
|
10953 + | /* ServerBuilderGenerator.kt:546 */
|
10954 + | foo: self.foo,
|
10955 + | /* ServerBuilderGenerator.kt:542 */
|
6831 10956 | }
|
10957 + | /* ServerBuilderGenerator.kt:283 */
|
6832 10958 | }
|
10959 + | /* ServerBuilderGenerator.kt:215 */
|
10960 + | }
|
10961 + |
|
10962 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6833 10963 | }
|
6834 - | /// See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10964 + | /// /* ServerBuilderGenerator.kt:171 */See [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
6835 10965 | pub mod host_with_path_operation_input {
|
6836 10966 |
|
10967 + | /* ServerBuilderGenerator.kt:461 */
|
6837 10968 | impl ::std::convert::From<Builder> for crate::input::HostWithPathOperationInput {
|
6838 10969 | fn from(builder: Builder) -> Self {
|
6839 10970 | builder.build()
|
6840 10971 | }
|
6841 10972 | }
|
6842 - | /// A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10973 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10974 + | /* RustType.kt:534 */
|
6843 10975 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6844 - | pub struct Builder {}
|
10976 + | /* ServerBuilderGenerator.kt:211 */
|
10977 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
10978 + | /* ServerBuilderGenerator.kt:215 */
|
6845 10979 | impl Builder {
|
6846 - | /// Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10980 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput).
|
10981 + | /* ServerBuilderGenerator.kt:271 */
|
6847 10982 | pub fn build(self) -> crate::input::HostWithPathOperationInput {
|
6848 10983 | self.build_enforcing_all_constraints()
|
6849 10984 | }
|
10985 + | /* ServerBuilderGenerator.kt:283 */
|
6850 10986 | fn build_enforcing_all_constraints(self) -> crate::input::HostWithPathOperationInput {
|
6851 - | crate::input::HostWithPathOperationInput {}
|
10987 + | /* ServerBuilderGenerator.kt:542 */
|
10988 + | crate::input::HostWithPathOperationInput {
|
10989 + | /* ServerBuilderGenerator.kt:542 */}
|
10990 + | /* ServerBuilderGenerator.kt:283 */
|
6852 10991 | }
|
10992 + | /* ServerBuilderGenerator.kt:215 */
|
6853 10993 | }
|
10994 + |
|
10995 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6854 10996 | }
|
6855 - | /// See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
10997 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
6856 10998 | pub mod endpoint_with_host_label_operation_input {
|
6857 10999 |
|
11000 + | /* RustType.kt:534 */
|
6858 11001 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6859 - | /// Holds one variant for each of the ways the builder can fail.
|
11002 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11003 + | /* RustType.kt:534 */
|
6860 11004 | #[non_exhaustive]
|
11005 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6861 11006 | #[allow(clippy::enum_variant_names)]
|
6862 11007 | pub enum ConstraintViolation {
|
6863 - | /// `label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
11008 + | /// /* ServerBuilderConstraintViolations.kt:137 */`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`.
|
11009 + | /* ServerBuilderConstraintViolations.kt:144 */
|
6864 11010 | MissingLabel,
|
11011 + | /* ServerBuilderConstraintViolations.kt:75 */
|
6865 11012 | }
|
11013 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6866 11014 | impl ::std::fmt::Display for ConstraintViolation {
|
11015 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6867 11016 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11017 + | /* ServerBuilderConstraintViolations.kt:118 */
|
6868 11018 | match self {
|
6869 - | ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
6870 - | }
|
11019 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingLabel => write!(f, "`label` was not provided but it is required when building `EndpointWithHostLabelOperationInput`"),
|
11020 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
11021 + | /* ServerBuilderConstraintViolations.kt:117 */
|
6871 11022 | }
|
11023 + | /* ServerBuilderConstraintViolations.kt:116 */
|
6872 11024 | }
|
11025 + | /* ServerBuilderConstraintViolations.kt:83 */
|
6873 11026 | impl ::std::error::Error for ConstraintViolation {}
|
11027 + | /* ServerBuilderConstraintViolations.kt:172 */
|
6874 11028 | impl ConstraintViolation {
|
6875 11029 | pub(crate) fn as_validation_exception_field(
|
6876 11030 | self,
|
6877 11031 | path: ::std::string::String,
|
6878 11032 | ) -> crate::model::ValidationExceptionField {
|
6879 11033 | match self {
|
6880 11034 | ConstraintViolation::MissingLabel => crate::model::ValidationExceptionField {
|
6881 11035 | message: format!(
|
6882 11036 | "Value at '{}/label' failed to satisfy constraint: Member must not be null",
|
6883 11037 | path
|
6884 11038 | ),
|
6885 11039 | path: path + "/label",
|
6886 11040 | },
|
6887 11041 | }
|
6888 11042 | }
|
6889 11043 | }
|
11044 + | /* ServerBuilderGenerator.kt:234 */
|
6890 11045 | impl ::std::convert::From<ConstraintViolation>
|
6891 11046 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
6892 11047 | {
|
6893 11048 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
6894 11049 | let first_validation_exception_field =
|
6895 11050 | constraint_violation.as_validation_exception_field("".to_owned());
|
6896 11051 | let validation_exception = crate::error::ValidationException {
|
6897 11052 | message: format!(
|
6898 11053 | "1 validation error detected. {}",
|
6899 11054 | &first_validation_exception_field.message
|
6900 11055 | ),
|
6901 11056 | field_list: Some(vec![first_validation_exception_field]),
|
6902 11057 | };
|
6903 11058 | Self::ConstraintViolation(
|
6904 11059 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
6905 11060 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
6906 11061 | )
|
6907 11062 | }
|
6908 11063 | }
|
11064 + | /* ServerBuilderGenerator.kt:244 */
|
6909 11065 | impl ::std::convert::From<Builder>
|
6910 11066 | for crate::constrained::MaybeConstrained<crate::input::EndpointWithHostLabelOperationInput>
|
6911 11067 | {
|
6912 11068 | fn from(builder: Builder) -> Self {
|
6913 11069 | Self::Unconstrained(builder)
|
6914 11070 | }
|
6915 11071 | }
|
11072 + | /* ServerBuilderGenerator.kt:446 */
|
6916 11073 | impl ::std::convert::TryFrom<Builder> for crate::input::EndpointWithHostLabelOperationInput {
|
6917 11074 | type Error = ConstraintViolation;
|
6918 11075 |
|
6919 11076 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6920 11077 | builder.build()
|
6921 11078 | }
|
6922 11079 | }
|
6923 - | /// A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
11080 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
11081 + | /* RustType.kt:534 */
|
6924 11082 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11083 + | /* ServerBuilderGenerator.kt:211 */
|
6925 11084 | pub struct Builder {
|
11085 + | /* ServerBuilderGenerator.kt:308 */
|
6926 11086 | pub(crate) label: ::std::option::Option<::std::string::String>,
|
11087 + | /* ServerBuilderGenerator.kt:211 */
|
6927 11088 | }
|
11089 + | /* ServerBuilderGenerator.kt:215 */
|
6928 11090 | impl Builder {
|
11091 + | /* ServerBuilderGenerator.kt:331 */
|
6929 11092 | #[allow(missing_docs)] // documentation missing in model
|
11093 + | /* ServerBuilderGenerator.kt:343 */
|
6930 11094 | pub fn label(mut self, input: ::std::string::String) -> Self {
|
6931 - | self.label = Some(input);
|
11095 + | /* ServerBuilderGenerator.kt:344 */
|
11096 + | self.label =
|
11097 + | /* ServerBuilderGenerator.kt:345 */Some(
|
11098 + | /* ServerBuilderGenerator.kt:376 */input
|
11099 + | /* ServerBuilderGenerator.kt:345 */)
|
11100 + | /* ServerBuilderGenerator.kt:344 */;
|
6932 11101 | self
|
11102 + | /* ServerBuilderGenerator.kt:343 */
|
6933 11103 | }
|
11104 + | /* ServerBuilderGenerator.kt:426 */
|
6934 11105 | #[allow(missing_docs)] // documentation missing in model
|
11106 + | /* ServerBuilderGenerator.kt:428 */
|
6935 11107 | pub(crate) fn set_label(
|
6936 11108 | mut self,
|
6937 11109 | input: impl ::std::convert::Into<::std::string::String>,
|
6938 11110 | ) -> Self {
|
11111 + | /* ServerBuilderGenerator.kt:429 */
|
6939 11112 | self.label = Some(input.into());
|
6940 11113 | self
|
11114 + | /* ServerBuilderGenerator.kt:428 */
|
6941 11115 | }
|
6942 - | /// Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
6943 - | ///
|
11116 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput).
|
11117 + | /// /* ServerBuilderGenerator.kt:260 */
|
6944 11118 | /// The builder fails to construct a [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) if a [`ConstraintViolation`] occurs.
|
6945 11119 | ///
|
11120 + | /* ServerBuilderGenerator.kt:271 */
|
6946 11121 | pub fn build(
|
6947 11122 | self,
|
6948 11123 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
6949 11124 | {
|
6950 11125 | self.build_enforcing_all_constraints()
|
6951 11126 | }
|
11127 + | /* ServerBuilderGenerator.kt:283 */
|
6952 11128 | fn build_enforcing_all_constraints(
|
6953 11129 | self,
|
6954 11130 | ) -> Result<crate::input::EndpointWithHostLabelOperationInput, ConstraintViolation>
|
6955 11131 | {
|
6956 - | Ok(crate::input::EndpointWithHostLabelOperationInput {
|
6957 - | label: self.label.ok_or(ConstraintViolation::MissingLabel)?,
|
6958 - | })
|
11132 + | /* ServerBuilderGenerator.kt:287 */
|
11133 + | Ok(
|
11134 + | /* ServerBuilderGenerator.kt:542 */
|
11135 + | crate::input::EndpointWithHostLabelOperationInput {
|
11136 + | /* ServerBuilderGenerator.kt:546 */
|
11137 + | label: self
|
11138 + | .label
|
11139 + | /* ServerBuilderGenerator.kt:569 */
|
11140 + | .ok_or(ConstraintViolation::MissingLabel)?,
|
11141 + | /* ServerBuilderGenerator.kt:542 */
|
11142 + | }, /* ServerBuilderGenerator.kt:287 */
|
11143 + | )
|
11144 + | /* ServerBuilderGenerator.kt:283 */
|
6959 11145 | }
|
11146 + | /* ServerBuilderGenerator.kt:215 */
|
6960 11147 | }
|
11148 + |
|
11149 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6961 11150 | }
|
6962 - | /// See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
11151 + | /// /* ServerBuilderGenerator.kt:171 */See [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
6963 11152 | pub mod endpoint_operation_input {
|
6964 11153 |
|
11154 + | /* ServerBuilderGenerator.kt:461 */
|
6965 11155 | impl ::std::convert::From<Builder> for crate::input::EndpointOperationInput {
|
6966 11156 | fn from(builder: Builder) -> Self {
|
6967 11157 | builder.build()
|
6968 11158 | }
|
6969 11159 | }
|
6970 - | /// A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
11160 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
11161 + | /* RustType.kt:534 */
|
6971 11162 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6972 - | pub struct Builder {}
|
11163 + | /* ServerBuilderGenerator.kt:211 */
|
11164 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
11165 + | /* ServerBuilderGenerator.kt:215 */
|
6973 11166 | impl Builder {
|
6974 - | /// Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
11167 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EndpointOperationInput`](crate::input::EndpointOperationInput).
|
11168 + | /* ServerBuilderGenerator.kt:271 */
|
6975 11169 | pub fn build(self) -> crate::input::EndpointOperationInput {
|
6976 11170 | self.build_enforcing_all_constraints()
|
6977 11171 | }
|
11172 + | /* ServerBuilderGenerator.kt:283 */
|
6978 11173 | fn build_enforcing_all_constraints(self) -> crate::input::EndpointOperationInput {
|
6979 - | crate::input::EndpointOperationInput {}
|
11174 + | /* ServerBuilderGenerator.kt:542 */
|
11175 + | crate::input::EndpointOperationInput {
|
11176 + | /* ServerBuilderGenerator.kt:542 */}
|
11177 + | /* ServerBuilderGenerator.kt:283 */
|
6980 11178 | }
|
11179 + | /* ServerBuilderGenerator.kt:215 */
|
6981 11180 | }
|
11181 + |
|
11182 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
6982 11183 | }
|
6983 - | /// See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11184 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
6984 11185 | pub mod post_union_with_json_name_input {
|
6985 11186 |
|
11187 + | /* ServerBuilderGenerator.kt:461 */
|
6986 11188 | impl ::std::convert::From<Builder> for crate::input::PostUnionWithJsonNameInput {
|
6987 11189 | fn from(builder: Builder) -> Self {
|
6988 11190 | builder.build()
|
6989 11191 | }
|
6990 11192 | }
|
6991 - | /// A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11193 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11194 + | /* RustType.kt:534 */
|
6992 11195 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11196 + | /* ServerBuilderGenerator.kt:211 */
|
6993 11197 | pub struct Builder {
|
11198 + | /* ServerBuilderGenerator.kt:308 */
|
6994 11199 | pub(crate) value: ::std::option::Option<crate::model::UnionWithJsonName>,
|
11200 + | /* ServerBuilderGenerator.kt:211 */
|
6995 11201 | }
|
11202 + | /* ServerBuilderGenerator.kt:215 */
|
6996 11203 | impl Builder {
|
11204 + | /* ServerBuilderGenerator.kt:331 */
|
6997 11205 | #[allow(missing_docs)] // documentation missing in model
|
11206 + | /* ServerBuilderGenerator.kt:343 */
|
6998 11207 | pub fn value(
|
6999 11208 | mut self,
|
7000 11209 | input: ::std::option::Option<crate::model::UnionWithJsonName>,
|
7001 11210 | ) -> Self {
|
7002 - | self.value = input;
|
11211 + | /* ServerBuilderGenerator.kt:344 */
|
11212 + | self.value =
|
11213 + | /* ServerBuilderGenerator.kt:376 */input
|
11214 + | /* ServerBuilderGenerator.kt:344 */;
|
7003 11215 | self
|
11216 + | /* ServerBuilderGenerator.kt:343 */
|
7004 11217 | }
|
11218 + | /* ServerBuilderGenerator.kt:426 */
|
7005 11219 | #[allow(missing_docs)] // documentation missing in model
|
11220 + | /* ServerBuilderGenerator.kt:428 */
|
7006 11221 | pub(crate) fn set_value(
|
7007 11222 | mut self,
|
7008 11223 | input: Option<impl ::std::convert::Into<crate::model::UnionWithJsonName>>,
|
7009 11224 | ) -> Self {
|
11225 + | /* ServerBuilderGenerator.kt:429 */
|
7010 11226 | self.value = input.map(|v| v.into());
|
7011 11227 | self
|
11228 + | /* ServerBuilderGenerator.kt:428 */
|
7012 11229 | }
|
7013 - | /// Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11230 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput).
|
11231 + | /* ServerBuilderGenerator.kt:271 */
|
7014 11232 | pub fn build(self) -> crate::input::PostUnionWithJsonNameInput {
|
7015 11233 | self.build_enforcing_all_constraints()
|
7016 11234 | }
|
11235 + | /* ServerBuilderGenerator.kt:283 */
|
7017 11236 | fn build_enforcing_all_constraints(self) -> crate::input::PostUnionWithJsonNameInput {
|
7018 - | crate::input::PostUnionWithJsonNameInput { value: self.value }
|
11237 + | /* ServerBuilderGenerator.kt:542 */
|
11238 + | crate::input::PostUnionWithJsonNameInput {
|
11239 + | /* ServerBuilderGenerator.kt:546 */
|
11240 + | value: self.value,
|
11241 + | /* ServerBuilderGenerator.kt:542 */
|
7019 11242 | }
|
11243 + | /* ServerBuilderGenerator.kt:283 */
|
7020 11244 | }
|
11245 + | /* ServerBuilderGenerator.kt:215 */
|
11246 + | }
|
11247 + |
|
11248 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7021 11249 | }
|
7022 - | /// See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11250 + | /// /* ServerBuilderGenerator.kt:171 */See [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
7023 11251 | pub mod post_player_action_input {
|
7024 11252 |
|
11253 + | /* ServerBuilderGenerator.kt:461 */
|
7025 11254 | impl ::std::convert::From<Builder> for crate::input::PostPlayerActionInput {
|
7026 11255 | fn from(builder: Builder) -> Self {
|
7027 11256 | builder.build()
|
7028 11257 | }
|
7029 11258 | }
|
7030 - | /// A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11259 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11260 + | /* RustType.kt:534 */
|
7031 11261 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11262 + | /* ServerBuilderGenerator.kt:211 */
|
7032 11263 | pub struct Builder {
|
11264 + | /* ServerBuilderGenerator.kt:308 */
|
7033 11265 | pub(crate) action: ::std::option::Option<crate::model::PlayerAction>,
|
11266 + | /* ServerBuilderGenerator.kt:211 */
|
7034 11267 | }
|
11268 + | /* ServerBuilderGenerator.kt:215 */
|
7035 11269 | impl Builder {
|
11270 + | /* ServerBuilderGenerator.kt:331 */
|
7036 11271 | #[allow(missing_docs)] // documentation missing in model
|
11272 + | /* ServerBuilderGenerator.kt:343 */
|
7037 11273 | pub fn action(mut self, input: ::std::option::Option<crate::model::PlayerAction>) -> Self {
|
7038 - | self.action = input;
|
11274 + | /* ServerBuilderGenerator.kt:344 */
|
11275 + | self.action =
|
11276 + | /* ServerBuilderGenerator.kt:376 */input
|
11277 + | /* ServerBuilderGenerator.kt:344 */;
|
7039 11278 | self
|
11279 + | /* ServerBuilderGenerator.kt:343 */
|
7040 11280 | }
|
11281 + | /* ServerBuilderGenerator.kt:426 */
|
7041 11282 | #[allow(missing_docs)] // documentation missing in model
|
11283 + | /* ServerBuilderGenerator.kt:428 */
|
7042 11284 | pub(crate) fn set_action(
|
7043 11285 | mut self,
|
7044 11286 | input: Option<impl ::std::convert::Into<crate::model::PlayerAction>>,
|
7045 11287 | ) -> Self {
|
11288 + | /* ServerBuilderGenerator.kt:429 */
|
7046 11289 | self.action = input.map(|v| v.into());
|
7047 11290 | self
|
11291 + | /* ServerBuilderGenerator.kt:428 */
|
7048 11292 | }
|
7049 - | /// Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11293 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`PostPlayerActionInput`](crate::input::PostPlayerActionInput).
|
11294 + | /* ServerBuilderGenerator.kt:271 */
|
7050 11295 | pub fn build(self) -> crate::input::PostPlayerActionInput {
|
7051 11296 | self.build_enforcing_all_constraints()
|
7052 11297 | }
|
11298 + | /* ServerBuilderGenerator.kt:283 */
|
7053 11299 | fn build_enforcing_all_constraints(self) -> crate::input::PostPlayerActionInput {
|
11300 + | /* ServerBuilderGenerator.kt:542 */
|
7054 11301 | crate::input::PostPlayerActionInput {
|
11302 + | /* ServerBuilderGenerator.kt:546 */
|
7055 11303 | action: self.action,
|
11304 + | /* ServerBuilderGenerator.kt:542 */
|
7056 11305 | }
|
11306 + | /* ServerBuilderGenerator.kt:283 */
|
7057 11307 | }
|
11308 + | /* ServerBuilderGenerator.kt:215 */
|
7058 11309 | }
|
11310 + |
|
11311 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7059 11312 | }
|
7060 - | /// See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11313 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
7061 11314 | pub mod json_unions_input {
|
7062 11315 |
|
11316 + | /* RustType.kt:534 */
|
7063 11317 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7064 - | /// Holds one variant for each of the ways the builder can fail.
|
11318 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11319 + | /* RustType.kt:534 */
|
7065 11320 | #[non_exhaustive]
|
11321 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7066 11322 | #[allow(clippy::enum_variant_names)]
|
7067 11323 | pub enum ConstraintViolation {
|
7068 - | /// Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
11324 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `contents` when building `JsonUnionsInput`.
|
11325 + | /* RustType.kt:534 */
|
7069 11326 | #[doc(hidden)]
|
11327 + | /* ServerBuilderConstraintViolations.kt:165 */
|
7070 11328 | Contents(crate::model::my_union::ConstraintViolation),
|
11329 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7071 11330 | }
|
11331 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7072 11332 | impl ::std::fmt::Display for ConstraintViolation {
|
11333 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7073 11334 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11335 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7074 11336 | match self {
|
7075 - | ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
7076 - | }
|
11337 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::Contents(_) => write!(f, "constraint violation occurred building member `contents` when building `JsonUnionsInput`"),
|
11338 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
11339 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7077 11340 | }
|
11341 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7078 11342 | }
|
11343 + | /* ServerBuilderConstraintViolations.kt:83 */
|
7079 11344 | impl ::std::error::Error for ConstraintViolation {}
|
11345 + | /* ServerBuilderConstraintViolations.kt:172 */
|
7080 11346 | impl ConstraintViolation {
|
7081 11347 | pub(crate) fn as_validation_exception_field(
|
7082 11348 | self,
|
7083 11349 | path: ::std::string::String,
|
7084 11350 | ) -> crate::model::ValidationExceptionField {
|
7085 11351 | match self {
|
7086 11352 | ConstraintViolation::Contents(inner) => {
|
7087 11353 | inner.as_validation_exception_field(path + "/contents")
|
7088 11354 | }
|
7089 11355 | }
|
7090 11356 | }
|
7091 11357 | }
|
11358 + | /* ServerBuilderGenerator.kt:234 */
|
7092 11359 | impl ::std::convert::From<ConstraintViolation>
|
7093 11360 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7094 11361 | {
|
7095 11362 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7096 11363 | let first_validation_exception_field =
|
7097 11364 | constraint_violation.as_validation_exception_field("".to_owned());
|
7098 11365 | let validation_exception = crate::error::ValidationException {
|
7099 11366 | message: format!(
|
7100 11367 | "1 validation error detected. {}",
|
7101 11368 | &first_validation_exception_field.message
|
7102 11369 | ),
|
7103 11370 | field_list: Some(vec![first_validation_exception_field]),
|
7104 11371 | };
|
7105 11372 | Self::ConstraintViolation(
|
7106 11373 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7107 11374 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7108 11375 | )
|
7109 11376 | }
|
7110 11377 | }
|
11378 + | /* ServerBuilderGenerator.kt:244 */
|
7111 11379 | impl ::std::convert::From<Builder>
|
7112 11380 | for crate::constrained::MaybeConstrained<crate::input::JsonUnionsInput>
|
7113 11381 | {
|
7114 11382 | fn from(builder: Builder) -> Self {
|
7115 11383 | Self::Unconstrained(builder)
|
7116 11384 | }
|
7117 11385 | }
|
11386 + | /* ServerBuilderGenerator.kt:446 */
|
7118 11387 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonUnionsInput {
|
7119 11388 | type Error = ConstraintViolation;
|
7120 11389 |
|
7121 11390 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7122 11391 | builder.build()
|
7123 11392 | }
|
7124 11393 | }
|
7125 - | /// A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11394 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11395 + | /* RustType.kt:534 */
|
7126 11396 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11397 + | /* ServerBuilderGenerator.kt:211 */
|
7127 11398 | pub struct Builder {
|
11399 + | /* ServerBuilderGenerator.kt:308 */
|
7128 11400 | pub(crate) contents:
|
7129 11401 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
11402 + | /* ServerBuilderGenerator.kt:211 */
|
7130 11403 | }
|
11404 + | /* ServerBuilderGenerator.kt:215 */
|
7131 11405 | impl Builder {
|
7132 - | /// A union with a representative set of types for members.
|
11406 + | /// /* ServerBuilderGenerator.kt:331 */A union with a representative set of types for members.
|
11407 + | /* ServerBuilderGenerator.kt:343 */
|
7133 11408 | pub fn contents(mut self, input: ::std::option::Option<crate::model::MyUnion>) -> Self {
|
7134 - | self.contents = input.map(crate::constrained::MaybeConstrained::Constrained);
|
11409 + | /* ServerBuilderGenerator.kt:344 */
|
11410 + | self.contents =
|
11411 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
11412 + | /* ServerBuilderGenerator.kt:344 */;
|
7135 11413 | self
|
11414 + | /* ServerBuilderGenerator.kt:343 */
|
7136 11415 | }
|
7137 - | /// A union with a representative set of types for members.
|
11416 + | /// /* ServerBuilderGenerator.kt:426 */A union with a representative set of types for members.
|
11417 + | /* ServerBuilderGenerator.kt:428 */
|
7138 11418 | pub(crate) fn set_contents(
|
7139 11419 | mut self,
|
7140 11420 | input: Option<
|
7141 11421 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MyUnion>>,
|
7142 11422 | >,
|
7143 11423 | ) -> Self {
|
11424 + | /* ServerBuilderGenerator.kt:429 */
|
7144 11425 | self.contents = input.map(|v| v.into());
|
7145 11426 | self
|
11427 + | /* ServerBuilderGenerator.kt:428 */
|
7146 11428 | }
|
7147 - | /// Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
7148 - | ///
|
11429 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonUnionsInput`](crate::input::JsonUnionsInput).
|
11430 + | /// /* ServerBuilderGenerator.kt:260 */
|
7149 11431 | /// The builder fails to construct a [`JsonUnionsInput`](crate::input::JsonUnionsInput) if a [`ConstraintViolation`] occurs.
|
7150 11432 | ///
|
11433 + | /* ServerBuilderGenerator.kt:271 */
|
7151 11434 | pub fn build(self) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
7152 11435 | self.build_enforcing_all_constraints()
|
7153 11436 | }
|
11437 + | /* ServerBuilderGenerator.kt:283 */
|
7154 11438 | fn build_enforcing_all_constraints(
|
7155 11439 | self,
|
7156 11440 | ) -> Result<crate::input::JsonUnionsInput, ConstraintViolation> {
|
7157 - | Ok(crate::input::JsonUnionsInput {
|
11441 + | /* ServerBuilderGenerator.kt:287 */
|
11442 + | Ok(
|
11443 + | /* ServerBuilderGenerator.kt:542 */
|
11444 + | crate::input::JsonUnionsInput {
|
11445 + | /* ServerBuilderGenerator.kt:546 */
|
7158 11446 | contents: self
|
7159 11447 | .contents
|
11448 + | /* ServerBuilderGenerator.kt:602 */
|
7160 11449 | .map(|v| match v {
|
7161 11450 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7162 11451 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7163 11452 | })
|
11453 + | /* ServerBuilderGenerator.kt:614 */
|
7164 11454 | .map(|res| res.map_err(ConstraintViolation::Contents))
|
7165 11455 | .transpose()?,
|
7166 - | })
|
11456 + | /* ServerBuilderGenerator.kt:542 */
|
11457 + | }, /* ServerBuilderGenerator.kt:287 */
|
11458 + | )
|
11459 + | /* ServerBuilderGenerator.kt:283 */
|
7167 11460 | }
|
11461 + | /* ServerBuilderGenerator.kt:215 */
|
7168 11462 | }
|
11463 + |
|
11464 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7169 11465 | }
|
7170 - | /// See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11466 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
7171 11467 | pub mod document_type_as_map_value_input {
|
7172 11468 |
|
11469 + | /* ServerBuilderGenerator.kt:461 */
|
7173 11470 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsMapValueInput {
|
7174 11471 | fn from(builder: Builder) -> Self {
|
7175 11472 | builder.build()
|
7176 11473 | }
|
7177 11474 | }
|
7178 - | /// A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11475 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11476 + | /* RustType.kt:534 */
|
7179 11477 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11478 + | /* ServerBuilderGenerator.kt:211 */
|
7180 11479 | pub struct Builder {
|
11480 + | /* ServerBuilderGenerator.kt:308 */
|
7181 11481 | pub(crate) doc_valued_map: ::std::option::Option<
|
7182 11482 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
7183 11483 | >,
|
11484 + | /* ServerBuilderGenerator.kt:211 */
|
7184 11485 | }
|
11486 + | /* ServerBuilderGenerator.kt:215 */
|
7185 11487 | impl Builder {
|
11488 + | /* ServerBuilderGenerator.kt:331 */
|
7186 11489 | #[allow(missing_docs)] // documentation missing in model
|
11490 + | /* ServerBuilderGenerator.kt:343 */
|
7187 11491 | pub fn doc_valued_map(
|
7188 11492 | mut self,
|
7189 11493 | input: ::std::option::Option<
|
7190 11494 | ::std::collections::HashMap<::std::string::String, ::aws_smithy_types::Document>,
|
7191 11495 | >,
|
7192 11496 | ) -> Self {
|
7193 - | self.doc_valued_map = input;
|
11497 + | /* ServerBuilderGenerator.kt:344 */
|
11498 + | self.doc_valued_map =
|
11499 + | /* ServerBuilderGenerator.kt:376 */input
|
11500 + | /* ServerBuilderGenerator.kt:344 */;
|
7194 11501 | self
|
11502 + | /* ServerBuilderGenerator.kt:343 */
|
7195 11503 | }
|
11504 + | /* ServerBuilderGenerator.kt:426 */
|
7196 11505 | #[allow(missing_docs)] // documentation missing in model
|
11506 + | /* ServerBuilderGenerator.kt:428 */
|
7197 11507 | pub(crate) fn set_doc_valued_map(
|
7198 11508 | mut self,
|
7199 11509 | input: Option<
|
7200 11510 | impl ::std::convert::Into<
|
7201 11511 | ::std::collections::HashMap<
|
7202 11512 | ::std::string::String,
|
7203 11513 | ::aws_smithy_types::Document,
|
7204 11514 | >,
|
7205 11515 | >,
|
7206 11516 | >,
|
7207 11517 | ) -> Self {
|
11518 + | /* ServerBuilderGenerator.kt:429 */
|
7208 11519 | self.doc_valued_map = input.map(|v| v.into());
|
7209 11520 | self
|
11521 + | /* ServerBuilderGenerator.kt:428 */
|
7210 11522 | }
|
7211 - | /// Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11523 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput).
|
11524 + | /* ServerBuilderGenerator.kt:271 */
|
7212 11525 | pub fn build(self) -> crate::input::DocumentTypeAsMapValueInput {
|
7213 11526 | self.build_enforcing_all_constraints()
|
7214 11527 | }
|
11528 + | /* ServerBuilderGenerator.kt:283 */
|
7215 11529 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsMapValueInput {
|
11530 + | /* ServerBuilderGenerator.kt:542 */
|
7216 11531 | crate::input::DocumentTypeAsMapValueInput {
|
11532 + | /* ServerBuilderGenerator.kt:546 */
|
7217 11533 | doc_valued_map: self.doc_valued_map,
|
11534 + | /* ServerBuilderGenerator.kt:542 */
|
7218 11535 | }
|
11536 + | /* ServerBuilderGenerator.kt:283 */
|
7219 11537 | }
|
11538 + | /* ServerBuilderGenerator.kt:215 */
|
7220 11539 | }
|
11540 + |
|
11541 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7221 11542 | }
|
7222 - | /// See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11543 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
7223 11544 | pub mod document_type_as_payload_input {
|
7224 11545 |
|
11546 + | /* ServerBuilderGenerator.kt:461 */
|
7225 11547 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeAsPayloadInput {
|
7226 11548 | fn from(builder: Builder) -> Self {
|
7227 11549 | builder.build()
|
7228 11550 | }
|
7229 11551 | }
|
7230 - | /// A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11552 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11553 + | /* RustType.kt:534 */
|
7231 11554 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11555 + | /* ServerBuilderGenerator.kt:211 */
|
7232 11556 | pub struct Builder {
|
11557 + | /* ServerBuilderGenerator.kt:308 */
|
7233 11558 | pub(crate) document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
11559 + | /* ServerBuilderGenerator.kt:211 */
|
7234 11560 | }
|
11561 + | /* ServerBuilderGenerator.kt:215 */
|
7235 11562 | impl Builder {
|
11563 + | /* ServerBuilderGenerator.kt:331 */
|
7236 11564 | #[allow(missing_docs)] // documentation missing in model
|
11565 + | /* ServerBuilderGenerator.kt:343 */
|
7237 11566 | pub fn document_value(
|
7238 11567 | mut self,
|
7239 11568 | input: ::std::option::Option<::aws_smithy_types::Document>,
|
7240 11569 | ) -> Self {
|
7241 - | self.document_value = input;
|
11570 + | /* ServerBuilderGenerator.kt:344 */
|
11571 + | self.document_value =
|
11572 + | /* ServerBuilderGenerator.kt:376 */input
|
11573 + | /* ServerBuilderGenerator.kt:344 */;
|
7242 11574 | self
|
11575 + | /* ServerBuilderGenerator.kt:343 */
|
7243 11576 | }
|
11577 + | /* ServerBuilderGenerator.kt:426 */
|
7244 11578 | #[allow(missing_docs)] // documentation missing in model
|
11579 + | /* ServerBuilderGenerator.kt:428 */
|
7245 11580 | pub(crate) fn set_document_value(
|
7246 11581 | mut self,
|
7247 11582 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Document>>,
|
7248 11583 | ) -> Self {
|
11584 + | /* ServerBuilderGenerator.kt:429 */
|
7249 11585 | self.document_value = input.map(|v| v.into());
|
7250 11586 | self
|
11587 + | /* ServerBuilderGenerator.kt:428 */
|
7251 11588 | }
|
7252 - | /// Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11589 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput).
|
11590 + | /* ServerBuilderGenerator.kt:271 */
|
7253 11591 | pub fn build(self) -> crate::input::DocumentTypeAsPayloadInput {
|
7254 11592 | self.build_enforcing_all_constraints()
|
7255 11593 | }
|
11594 + | /* ServerBuilderGenerator.kt:283 */
|
7256 11595 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeAsPayloadInput {
|
11596 + | /* ServerBuilderGenerator.kt:542 */
|
7257 11597 | crate::input::DocumentTypeAsPayloadInput {
|
11598 + | /* ServerBuilderGenerator.kt:546 */
|
7258 11599 | document_value: self.document_value,
|
11600 + | /* ServerBuilderGenerator.kt:542 */
|
7259 11601 | }
|
11602 + | /* ServerBuilderGenerator.kt:283 */
|
7260 11603 | }
|
11604 + | /* ServerBuilderGenerator.kt:215 */
|
7261 11605 | }
|
11606 + |
|
11607 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7262 11608 | }
|
7263 - | /// See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11609 + | /// /* ServerBuilderGenerator.kt:171 */See [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
7264 11610 | pub mod document_type_input {
|
7265 11611 |
|
11612 + | /* ServerBuilderGenerator.kt:461 */
|
7266 11613 | impl ::std::convert::From<Builder> for crate::input::DocumentTypeInput {
|
7267 11614 | fn from(builder: Builder) -> Self {
|
7268 11615 | builder.build()
|
7269 11616 | }
|
7270 11617 | }
|
7271 - | /// A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11618 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11619 + | /* RustType.kt:534 */
|
7272 11620 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11621 + | /* ServerBuilderGenerator.kt:211 */
|
7273 11622 | pub struct Builder {
|
11623 + | /* ServerBuilderGenerator.kt:308 */
|
7274 11624 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
11625 + | /* ServerBuilderGenerator.kt:308 */
|
7275 11626 | pub(crate) document_value: ::std::option::Option<::aws_smithy_types::Document>,
|
11627 + | /* ServerBuilderGenerator.kt:211 */
|
7276 11628 | }
|
11629 + | /* ServerBuilderGenerator.kt:215 */
|
7277 11630 | impl Builder {
|
11631 + | /* ServerBuilderGenerator.kt:331 */
|
7278 11632 | #[allow(missing_docs)] // documentation missing in model
|
11633 + | /* ServerBuilderGenerator.kt:343 */
|
7279 11634 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
7280 - | self.string_value = input;
|
11635 + | /* ServerBuilderGenerator.kt:344 */
|
11636 + | self.string_value =
|
11637 + | /* ServerBuilderGenerator.kt:376 */input
|
11638 + | /* ServerBuilderGenerator.kt:344 */;
|
7281 11639 | self
|
11640 + | /* ServerBuilderGenerator.kt:343 */
|
7282 11641 | }
|
11642 + | /* ServerBuilderGenerator.kt:426 */
|
7283 11643 | #[allow(missing_docs)] // documentation missing in model
|
11644 + | /* ServerBuilderGenerator.kt:428 */
|
7284 11645 | pub(crate) fn set_string_value(
|
7285 11646 | mut self,
|
7286 11647 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
7287 11648 | ) -> Self {
|
11649 + | /* ServerBuilderGenerator.kt:429 */
|
7288 11650 | self.string_value = input.map(|v| v.into());
|
7289 11651 | self
|
11652 + | /* ServerBuilderGenerator.kt:428 */
|
7290 11653 | }
|
11654 + | /* ServerBuilderGenerator.kt:331 */
|
7291 11655 | #[allow(missing_docs)] // documentation missing in model
|
11656 + | /* ServerBuilderGenerator.kt:343 */
|
7292 11657 | pub fn document_value(
|
7293 11658 | mut self,
|
7294 11659 | input: ::std::option::Option<::aws_smithy_types::Document>,
|
7295 11660 | ) -> Self {
|
7296 - | self.document_value = input;
|
11661 + | /* ServerBuilderGenerator.kt:344 */
|
11662 + | self.document_value =
|
11663 + | /* ServerBuilderGenerator.kt:376 */input
|
11664 + | /* ServerBuilderGenerator.kt:344 */;
|
7297 11665 | self
|
11666 + | /* ServerBuilderGenerator.kt:343 */
|
7298 11667 | }
|
11668 + | /* ServerBuilderGenerator.kt:426 */
|
7299 11669 | #[allow(missing_docs)] // documentation missing in model
|
11670 + | /* ServerBuilderGenerator.kt:428 */
|
7300 11671 | pub(crate) fn set_document_value(
|
7301 11672 | mut self,
|
7302 11673 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Document>>,
|
7303 11674 | ) -> Self {
|
11675 + | /* ServerBuilderGenerator.kt:429 */
|
7304 11676 | self.document_value = input.map(|v| v.into());
|
7305 11677 | self
|
11678 + | /* ServerBuilderGenerator.kt:428 */
|
7306 11679 | }
|
7307 - | /// Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11680 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`DocumentTypeInput`](crate::input::DocumentTypeInput).
|
11681 + | /* ServerBuilderGenerator.kt:271 */
|
7308 11682 | pub fn build(self) -> crate::input::DocumentTypeInput {
|
7309 11683 | self.build_enforcing_all_constraints()
|
7310 11684 | }
|
11685 + | /* ServerBuilderGenerator.kt:283 */
|
7311 11686 | fn build_enforcing_all_constraints(self) -> crate::input::DocumentTypeInput {
|
11687 + | /* ServerBuilderGenerator.kt:542 */
|
7312 11688 | crate::input::DocumentTypeInput {
|
11689 + | /* ServerBuilderGenerator.kt:546 */
|
7313 11690 | string_value: self.string_value,
|
11691 + | /* ServerBuilderGenerator.kt:546 */
|
7314 11692 | document_value: self.document_value,
|
11693 + | /* ServerBuilderGenerator.kt:542 */
|
7315 11694 | }
|
11695 + | /* ServerBuilderGenerator.kt:283 */
|
7316 11696 | }
|
11697 + | /* ServerBuilderGenerator.kt:215 */
|
7317 11698 | }
|
11699 + |
|
11700 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7318 11701 | }
|
7319 - | /// See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11702 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
7320 11703 | pub mod json_blobs_input {
|
7321 11704 |
|
11705 + | /* ServerBuilderGenerator.kt:461 */
|
7322 11706 | impl ::std::convert::From<Builder> for crate::input::JsonBlobsInput {
|
7323 11707 | fn from(builder: Builder) -> Self {
|
7324 11708 | builder.build()
|
7325 11709 | }
|
7326 11710 | }
|
7327 - | /// A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11711 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11712 + | /* RustType.kt:534 */
|
7328 11713 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11714 + | /* ServerBuilderGenerator.kt:211 */
|
7329 11715 | pub struct Builder {
|
11716 + | /* ServerBuilderGenerator.kt:308 */
|
7330 11717 | pub(crate) data: ::std::option::Option<::aws_smithy_types::Blob>,
|
11718 + | /* ServerBuilderGenerator.kt:211 */
|
7331 11719 | }
|
11720 + | /* ServerBuilderGenerator.kt:215 */
|
7332 11721 | impl Builder {
|
11722 + | /* ServerBuilderGenerator.kt:331 */
|
7333 11723 | #[allow(missing_docs)] // documentation missing in model
|
11724 + | /* ServerBuilderGenerator.kt:343 */
|
7334 11725 | pub fn data(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
7335 - | self.data = input;
|
11726 + | /* ServerBuilderGenerator.kt:344 */
|
11727 + | self.data =
|
11728 + | /* ServerBuilderGenerator.kt:376 */input
|
11729 + | /* ServerBuilderGenerator.kt:344 */;
|
7336 11730 | self
|
11731 + | /* ServerBuilderGenerator.kt:343 */
|
7337 11732 | }
|
11733 + | /* ServerBuilderGenerator.kt:426 */
|
7338 11734 | #[allow(missing_docs)] // documentation missing in model
|
11735 + | /* ServerBuilderGenerator.kt:428 */
|
7339 11736 | pub(crate) fn set_data(
|
7340 11737 | mut self,
|
7341 11738 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
7342 11739 | ) -> Self {
|
11740 + | /* ServerBuilderGenerator.kt:429 */
|
7343 11741 | self.data = input.map(|v| v.into());
|
7344 11742 | self
|
11743 + | /* ServerBuilderGenerator.kt:428 */
|
7345 11744 | }
|
7346 - | /// Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11745 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonBlobsInput`](crate::input::JsonBlobsInput).
|
11746 + | /* ServerBuilderGenerator.kt:271 */
|
7347 11747 | pub fn build(self) -> crate::input::JsonBlobsInput {
|
7348 11748 | self.build_enforcing_all_constraints()
|
7349 11749 | }
|
11750 + | /* ServerBuilderGenerator.kt:283 */
|
7350 11751 | fn build_enforcing_all_constraints(self) -> crate::input::JsonBlobsInput {
|
7351 - | crate::input::JsonBlobsInput { data: self.data }
|
11752 + | /* ServerBuilderGenerator.kt:542 */
|
11753 + | crate::input::JsonBlobsInput {
|
11754 + | /* ServerBuilderGenerator.kt:546 */
|
11755 + | data: self.data,
|
11756 + | /* ServerBuilderGenerator.kt:542 */
|
11757 + | }
|
11758 + | /* ServerBuilderGenerator.kt:283 */
|
7352 11759 | }
|
11760 + | /* ServerBuilderGenerator.kt:215 */
|
7353 11761 | }
|
11762 + |
|
11763 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7354 11764 | }
|
7355 - | /// See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11765 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
7356 11766 | pub mod sparse_json_maps_input {
|
7357 11767 |
|
11768 + | /* RustType.kt:534 */
|
7358 11769 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7359 - | /// Holds one variant for each of the ways the builder can fail.
|
11770 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
11771 + | /* RustType.kt:534 */
|
7360 11772 | #[non_exhaustive]
|
11773 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7361 11774 | #[allow(clippy::enum_variant_names)]
|
7362 11775 | pub enum ConstraintViolation {
|
7363 - | /// Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
11776 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`.
|
11777 + | /* RustType.kt:534 */
|
7364 11778 | #[doc(hidden)]
|
11779 + | /* ServerBuilderConstraintViolations.kt:165 */
|
7365 11780 | SparseSetMap(crate::model::sparse_set_map::ConstraintViolation),
|
11781 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7366 11782 | }
|
11783 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7367 11784 | impl ::std::fmt::Display for ConstraintViolation {
|
11785 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7368 11786 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
11787 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7369 11788 | match self {
|
7370 - | ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
7371 - | }
|
11789 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::SparseSetMap(_) => write!(f, "constraint violation occurred building member `sparse_set_map` when building `SparseJsonMapsInput`"),
|
11790 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
11791 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7372 11792 | }
|
11793 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7373 11794 | }
|
11795 + | /* ServerBuilderConstraintViolations.kt:83 */
|
7374 11796 | impl ::std::error::Error for ConstraintViolation {}
|
11797 + | /* ServerBuilderConstraintViolations.kt:172 */
|
7375 11798 | impl ConstraintViolation {
|
7376 11799 | pub(crate) fn as_validation_exception_field(
|
7377 11800 | self,
|
7378 11801 | path: ::std::string::String,
|
7379 11802 | ) -> crate::model::ValidationExceptionField {
|
7380 11803 | match self {
|
7381 11804 | ConstraintViolation::SparseSetMap(inner) => {
|
7382 11805 | inner.as_validation_exception_field(path + "/sparseSetMap")
|
7383 11806 | }
|
7384 11807 | }
|
7385 11808 | }
|
7386 11809 | }
|
11810 + | /* ServerBuilderGenerator.kt:234 */
|
7387 11811 | impl ::std::convert::From<ConstraintViolation>
|
7388 11812 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7389 11813 | {
|
7390 11814 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7391 11815 | let first_validation_exception_field =
|
7392 11816 | constraint_violation.as_validation_exception_field("".to_owned());
|
7393 11817 | let validation_exception = crate::error::ValidationException {
|
7394 11818 | message: format!(
|
7395 11819 | "1 validation error detected. {}",
|
7396 11820 | &first_validation_exception_field.message
|
7397 11821 | ),
|
7398 11822 | field_list: Some(vec![first_validation_exception_field]),
|
7399 11823 | };
|
7400 11824 | Self::ConstraintViolation(
|
7401 11825 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7402 11826 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7403 11827 | )
|
7404 11828 | }
|
7405 11829 | }
|
11830 + | /* ServerBuilderGenerator.kt:244 */
|
7406 11831 | impl ::std::convert::From<Builder>
|
7407 11832 | for crate::constrained::MaybeConstrained<crate::input::SparseJsonMapsInput>
|
7408 11833 | {
|
7409 11834 | fn from(builder: Builder) -> Self {
|
7410 11835 | Self::Unconstrained(builder)
|
7411 11836 | }
|
7412 11837 | }
|
11838 + | /* ServerBuilderGenerator.kt:446 */
|
7413 11839 | impl ::std::convert::TryFrom<Builder> for crate::input::SparseJsonMapsInput {
|
7414 11840 | type Error = ConstraintViolation;
|
7415 11841 |
|
7416 11842 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7417 11843 | builder.build()
|
7418 11844 | }
|
7419 11845 | }
|
7420 - | /// A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11846 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
11847 + | /* RustType.kt:534 */
|
7421 11848 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
11849 + | /* ServerBuilderGenerator.kt:211 */
|
7422 11850 | pub struct Builder {
|
11851 + | /* ServerBuilderGenerator.kt:308 */
|
7423 11852 | pub(crate) sparse_struct_map: ::std::option::Option<
|
7424 11853 | ::std::collections::HashMap<
|
7425 11854 | ::std::string::String,
|
7426 11855 | ::std::option::Option<crate::model::GreetingStruct>,
|
7427 11856 | >,
|
7428 11857 | >,
|
11858 + | /* ServerBuilderGenerator.kt:308 */
|
7429 11859 | pub(crate) sparse_number_map: ::std::option::Option<
|
7430 11860 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7431 11861 | >,
|
11862 + | /* ServerBuilderGenerator.kt:308 */
|
7432 11863 | pub(crate) sparse_boolean_map: ::std::option::Option<
|
7433 11864 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7434 11865 | >,
|
11866 + | /* ServerBuilderGenerator.kt:308 */
|
7435 11867 | pub(crate) sparse_string_map: ::std::option::Option<
|
7436 11868 | ::std::collections::HashMap<
|
7437 11869 | ::std::string::String,
|
7438 11870 | ::std::option::Option<::std::string::String>,
|
7439 11871 | >,
|
7440 11872 | >,
|
11873 + | /* ServerBuilderGenerator.kt:308 */
|
7441 11874 | pub(crate) sparse_set_map: ::std::option::Option<
|
7442 11875 | crate::constrained::MaybeConstrained<
|
7443 11876 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
7444 11877 | >,
|
7445 11878 | >,
|
11879 + | /* ServerBuilderGenerator.kt:211 */
|
7446 11880 | }
|
11881 + | /* ServerBuilderGenerator.kt:215 */
|
7447 11882 | impl Builder {
|
11883 + | /* ServerBuilderGenerator.kt:331 */
|
7448 11884 | #[allow(missing_docs)] // documentation missing in model
|
11885 + | /* ServerBuilderGenerator.kt:343 */
|
7449 11886 | pub fn sparse_struct_map(
|
7450 11887 | mut self,
|
7451 11888 | input: ::std::option::Option<
|
7452 11889 | ::std::collections::HashMap<
|
7453 11890 | ::std::string::String,
|
7454 11891 | ::std::option::Option<crate::model::GreetingStruct>,
|
7455 11892 | >,
|
7456 11893 | >,
|
7457 11894 | ) -> Self {
|
7458 - | self.sparse_struct_map = input;
|
11895 + | /* ServerBuilderGenerator.kt:344 */
|
11896 + | self.sparse_struct_map =
|
11897 + | /* ServerBuilderGenerator.kt:376 */input
|
11898 + | /* ServerBuilderGenerator.kt:344 */;
|
7459 11899 | self
|
11900 + | /* ServerBuilderGenerator.kt:343 */
|
7460 11901 | }
|
11902 + | /* ServerBuilderGenerator.kt:426 */
|
7461 11903 | #[allow(missing_docs)] // documentation missing in model
|
11904 + | /* ServerBuilderGenerator.kt:428 */
|
7462 11905 | pub(crate) fn set_sparse_struct_map(
|
7463 11906 | mut self,
|
7464 11907 | input: Option<
|
7465 11908 | impl ::std::convert::Into<
|
7466 11909 | ::std::collections::HashMap<
|
7467 11910 | ::std::string::String,
|
7468 11911 | ::std::option::Option<crate::model::GreetingStruct>,
|
7469 11912 | >,
|
7470 11913 | >,
|
7471 11914 | >,
|
7472 11915 | ) -> Self {
|
11916 + | /* ServerBuilderGenerator.kt:429 */
|
7473 11917 | self.sparse_struct_map = input.map(|v| v.into());
|
7474 11918 | self
|
11919 + | /* ServerBuilderGenerator.kt:428 */
|
7475 11920 | }
|
11921 + | /* ServerBuilderGenerator.kt:331 */
|
7476 11922 | #[allow(missing_docs)] // documentation missing in model
|
11923 + | /* ServerBuilderGenerator.kt:343 */
|
7477 11924 | pub fn sparse_number_map(
|
7478 11925 | mut self,
|
7479 11926 | input: ::std::option::Option<
|
7480 11927 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7481 11928 | >,
|
7482 11929 | ) -> Self {
|
7483 - | self.sparse_number_map = input;
|
11930 + | /* ServerBuilderGenerator.kt:344 */
|
11931 + | self.sparse_number_map =
|
11932 + | /* ServerBuilderGenerator.kt:376 */input
|
11933 + | /* ServerBuilderGenerator.kt:344 */;
|
7484 11934 | self
|
11935 + | /* ServerBuilderGenerator.kt:343 */
|
7485 11936 | }
|
11937 + | /* ServerBuilderGenerator.kt:426 */
|
7486 11938 | #[allow(missing_docs)] // documentation missing in model
|
11939 + | /* ServerBuilderGenerator.kt:428 */
|
7487 11940 | pub(crate) fn set_sparse_number_map(
|
7488 11941 | mut self,
|
7489 11942 | input: Option<
|
7490 11943 | impl ::std::convert::Into<
|
7491 11944 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<i32>>,
|
7492 11945 | >,
|
7493 11946 | >,
|
7494 11947 | ) -> Self {
|
11948 + | /* ServerBuilderGenerator.kt:429 */
|
7495 11949 | self.sparse_number_map = input.map(|v| v.into());
|
7496 11950 | self
|
11951 + | /* ServerBuilderGenerator.kt:428 */
|
7497 11952 | }
|
11953 + | /* ServerBuilderGenerator.kt:331 */
|
7498 11954 | #[allow(missing_docs)] // documentation missing in model
|
11955 + | /* ServerBuilderGenerator.kt:343 */
|
7499 11956 | pub fn sparse_boolean_map(
|
7500 11957 | mut self,
|
7501 11958 | input: ::std::option::Option<
|
7502 11959 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7503 11960 | >,
|
7504 11961 | ) -> Self {
|
7505 - | self.sparse_boolean_map = input;
|
11962 + | /* ServerBuilderGenerator.kt:344 */
|
11963 + | self.sparse_boolean_map =
|
11964 + | /* ServerBuilderGenerator.kt:376 */input
|
11965 + | /* ServerBuilderGenerator.kt:344 */;
|
7506 11966 | self
|
11967 + | /* ServerBuilderGenerator.kt:343 */
|
7507 11968 | }
|
11969 + | /* ServerBuilderGenerator.kt:426 */
|
7508 11970 | #[allow(missing_docs)] // documentation missing in model
|
11971 + | /* ServerBuilderGenerator.kt:428 */
|
7509 11972 | pub(crate) fn set_sparse_boolean_map(
|
7510 11973 | mut self,
|
7511 11974 | input: Option<
|
7512 11975 | impl ::std::convert::Into<
|
7513 11976 | ::std::collections::HashMap<::std::string::String, ::std::option::Option<bool>>,
|
7514 11977 | >,
|
7515 11978 | >,
|
7516 11979 | ) -> Self {
|
11980 + | /* ServerBuilderGenerator.kt:429 */
|
7517 11981 | self.sparse_boolean_map = input.map(|v| v.into());
|
7518 11982 | self
|
11983 + | /* ServerBuilderGenerator.kt:428 */
|
7519 11984 | }
|
11985 + | /* ServerBuilderGenerator.kt:331 */
|
7520 11986 | #[allow(missing_docs)] // documentation missing in model
|
11987 + | /* ServerBuilderGenerator.kt:343 */
|
7521 11988 | pub fn sparse_string_map(
|
7522 11989 | mut self,
|
7523 11990 | input: ::std::option::Option<
|
7524 11991 | ::std::collections::HashMap<
|
7525 11992 | ::std::string::String,
|
7526 11993 | ::std::option::Option<::std::string::String>,
|
7527 11994 | >,
|
7528 11995 | >,
|
7529 11996 | ) -> Self {
|
7530 - | self.sparse_string_map = input;
|
11997 + | /* ServerBuilderGenerator.kt:344 */
|
11998 + | self.sparse_string_map =
|
11999 + | /* ServerBuilderGenerator.kt:376 */input
|
12000 + | /* ServerBuilderGenerator.kt:344 */;
|
7531 12001 | self
|
12002 + | /* ServerBuilderGenerator.kt:343 */
|
7532 12003 | }
|
12004 + | /* ServerBuilderGenerator.kt:426 */
|
7533 12005 | #[allow(missing_docs)] // documentation missing in model
|
12006 + | /* ServerBuilderGenerator.kt:428 */
|
7534 12007 | pub(crate) fn set_sparse_string_map(
|
7535 12008 | mut self,
|
7536 12009 | input: Option<
|
7537 12010 | impl ::std::convert::Into<
|
7538 12011 | ::std::collections::HashMap<
|
7539 12012 | ::std::string::String,
|
7540 12013 | ::std::option::Option<::std::string::String>,
|
7541 12014 | >,
|
7542 12015 | >,
|
7543 12016 | >,
|
7544 12017 | ) -> Self {
|
12018 + | /* ServerBuilderGenerator.kt:429 */
|
7545 12019 | self.sparse_string_map = input.map(|v| v.into());
|
7546 12020 | self
|
12021 + | /* ServerBuilderGenerator.kt:428 */
|
7547 12022 | }
|
12023 + | /* ServerBuilderGenerator.kt:331 */
|
7548 12024 | #[allow(missing_docs)] // documentation missing in model
|
12025 + | /* ServerBuilderGenerator.kt:343 */
|
7549 12026 | pub fn sparse_set_map(
|
7550 12027 | mut self,
|
7551 12028 | input: ::std::option::Option<
|
7552 12029 | ::std::collections::HashMap<
|
7553 12030 | ::std::string::String,
|
7554 12031 | ::std::option::Option<crate::model::StringSet>,
|
7555 12032 | >,
|
7556 12033 | >,
|
7557 12034 | ) -> Self {
|
12035 + | /* ServerBuilderGenerator.kt:344 */
|
7558 12036 | self.sparse_set_map =
|
7559 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
12037 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
12038 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
12039 + | /* ServerBuilderGenerator.kt:363 */)
|
12040 + | /* ServerBuilderGenerator.kt:344 */;
|
7560 12041 | self
|
12042 + | /* ServerBuilderGenerator.kt:343 */
|
7561 12043 | }
|
12044 + | /* ServerBuilderGenerator.kt:426 */
|
7562 12045 | #[allow(missing_docs)] // documentation missing in model
|
12046 + | /* ServerBuilderGenerator.kt:428 */
|
7563 12047 | pub(crate) fn set_sparse_set_map(
|
7564 12048 | mut self,
|
7565 12049 | input: Option<
|
7566 12050 | impl ::std::convert::Into<
|
7567 12051 | crate::constrained::MaybeConstrained<
|
7568 12052 | crate::constrained::sparse_set_map_constrained::SparseSetMapConstrained,
|
7569 12053 | >,
|
7570 12054 | >,
|
7571 12055 | >,
|
7572 12056 | ) -> Self {
|
12057 + | /* ServerBuilderGenerator.kt:429 */
|
7573 12058 | self.sparse_set_map = input.map(|v| v.into());
|
7574 12059 | self
|
12060 + | /* ServerBuilderGenerator.kt:428 */
|
7575 12061 | }
|
7576 - | /// Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
7577 - | ///
|
12062 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput).
|
12063 + | /// /* ServerBuilderGenerator.kt:260 */
|
7578 12064 | /// The builder fails to construct a [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput) if a [`ConstraintViolation`] occurs.
|
7579 12065 | ///
|
12066 + | /* ServerBuilderGenerator.kt:271 */
|
7580 12067 | pub fn build(self) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
7581 12068 | self.build_enforcing_all_constraints()
|
7582 12069 | }
|
12070 + | /* ServerBuilderGenerator.kt:283 */
|
7583 12071 | fn build_enforcing_all_constraints(
|
7584 12072 | self,
|
7585 12073 | ) -> Result<crate::input::SparseJsonMapsInput, ConstraintViolation> {
|
7586 - | Ok(crate::input::SparseJsonMapsInput {
|
12074 + | /* ServerBuilderGenerator.kt:287 */
|
12075 + | Ok(
|
12076 + | /* ServerBuilderGenerator.kt:542 */
|
12077 + | crate::input::SparseJsonMapsInput {
|
12078 + | /* ServerBuilderGenerator.kt:546 */
|
7587 12079 | sparse_struct_map: self.sparse_struct_map,
|
12080 + | /* ServerBuilderGenerator.kt:546 */
|
7588 12081 | sparse_number_map: self.sparse_number_map,
|
12082 + | /* ServerBuilderGenerator.kt:546 */
|
7589 12083 | sparse_boolean_map: self.sparse_boolean_map,
|
12084 + | /* ServerBuilderGenerator.kt:546 */
|
7590 12085 | sparse_string_map: self.sparse_string_map,
|
12086 + | /* ServerBuilderGenerator.kt:546 */
|
7591 12087 | sparse_set_map: self
|
7592 12088 | .sparse_set_map
|
12089 + | /* ServerBuilderGenerator.kt:602 */
|
7593 12090 | .map(|v| match v {
|
7594 12091 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7595 12092 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7596 12093 | })
|
12094 + | /* ServerBuilderGenerator.kt:614 */
|
7597 12095 | .map(|res| {
|
7598 12096 | res.map(|v| v.into())
|
7599 12097 | .map_err(ConstraintViolation::SparseSetMap)
|
7600 12098 | })
|
7601 12099 | .transpose()?,
|
7602 - | })
|
12100 + | /* ServerBuilderGenerator.kt:542 */
|
12101 + | }, /* ServerBuilderGenerator.kt:287 */
|
12102 + | )
|
12103 + | /* ServerBuilderGenerator.kt:283 */
|
7603 12104 | }
|
12105 + | /* ServerBuilderGenerator.kt:215 */
|
7604 12106 | }
|
12107 + |
|
12108 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7605 12109 | }
|
7606 - | /// See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
12110 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonMapsInput`](crate::input::JsonMapsInput).
|
7607 12111 | pub mod json_maps_input {
|
7608 12112 |
|
12113 + | /* RustType.kt:534 */
|
7609 12114 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7610 - | /// Holds one variant for each of the ways the builder can fail.
|
12115 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12116 + | /* RustType.kt:534 */
|
7611 12117 | #[non_exhaustive]
|
12118 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7612 12119 | #[allow(clippy::enum_variant_names)]
|
7613 12120 | pub enum ConstraintViolation {
|
7614 - | /// Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
12121 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`.
|
12122 + | /* RustType.kt:534 */
|
7615 12123 | #[doc(hidden)]
|
12124 + | /* ServerBuilderConstraintViolations.kt:165 */
|
7616 12125 | DenseSetMap(crate::model::dense_set_map::ConstraintViolation),
|
12126 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7617 12127 | }
|
12128 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7618 12129 | impl ::std::fmt::Display for ConstraintViolation {
|
12130 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7619 12131 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12132 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7620 12133 | match self {
|
7621 - | ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
7622 - | }
|
12134 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::DenseSetMap(_) => write!(f, "constraint violation occurred building member `dense_set_map` when building `JsonMapsInput`"),
|
12135 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
12136 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7623 12137 | }
|
12138 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7624 12139 | }
|
12140 + | /* ServerBuilderConstraintViolations.kt:83 */
|
7625 12141 | impl ::std::error::Error for ConstraintViolation {}
|
12142 + | /* ServerBuilderConstraintViolations.kt:172 */
|
7626 12143 | impl ConstraintViolation {
|
7627 12144 | pub(crate) fn as_validation_exception_field(
|
7628 12145 | self,
|
7629 12146 | path: ::std::string::String,
|
7630 12147 | ) -> crate::model::ValidationExceptionField {
|
7631 12148 | match self {
|
7632 12149 | ConstraintViolation::DenseSetMap(inner) => {
|
7633 12150 | inner.as_validation_exception_field(path + "/denseSetMap")
|
7634 12151 | }
|
7635 12152 | }
|
7636 12153 | }
|
7637 12154 | }
|
12155 + | /* ServerBuilderGenerator.kt:234 */
|
7638 12156 | impl ::std::convert::From<ConstraintViolation>
|
7639 12157 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7640 12158 | {
|
7641 12159 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7642 12160 | let first_validation_exception_field =
|
7643 12161 | constraint_violation.as_validation_exception_field("".to_owned());
|
7644 12162 | let validation_exception = crate::error::ValidationException {
|
7645 12163 | message: format!(
|
7646 12164 | "1 validation error detected. {}",
|
7647 12165 | &first_validation_exception_field.message
|
7648 12166 | ),
|
7649 12167 | field_list: Some(vec![first_validation_exception_field]),
|
7650 12168 | };
|
7651 12169 | Self::ConstraintViolation(
|
7652 12170 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7653 12171 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7654 12172 | )
|
7655 12173 | }
|
7656 12174 | }
|
12175 + | /* ServerBuilderGenerator.kt:244 */
|
7657 12176 | impl ::std::convert::From<Builder>
|
7658 12177 | for crate::constrained::MaybeConstrained<crate::input::JsonMapsInput>
|
7659 12178 | {
|
7660 12179 | fn from(builder: Builder) -> Self {
|
7661 12180 | Self::Unconstrained(builder)
|
7662 12181 | }
|
7663 12182 | }
|
12183 + | /* ServerBuilderGenerator.kt:446 */
|
7664 12184 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonMapsInput {
|
7665 12185 | type Error = ConstraintViolation;
|
7666 12186 |
|
7667 12187 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7668 12188 | builder.build()
|
7669 12189 | }
|
7670 12190 | }
|
7671 - | /// A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
12191 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonMapsInput`](crate::input::JsonMapsInput).
|
12192 + | /* RustType.kt:534 */
|
7672 12193 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12194 + | /* ServerBuilderGenerator.kt:211 */
|
7673 12195 | pub struct Builder {
|
12196 + | /* ServerBuilderGenerator.kt:308 */
|
7674 12197 | pub(crate) dense_struct_map: ::std::option::Option<
|
7675 12198 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
7676 12199 | >,
|
12200 + | /* ServerBuilderGenerator.kt:308 */
|
7677 12201 | pub(crate) dense_number_map:
|
7678 12202 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
12203 + | /* ServerBuilderGenerator.kt:308 */
|
7679 12204 | pub(crate) dense_boolean_map:
|
7680 12205 | ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
12206 + | /* ServerBuilderGenerator.kt:308 */
|
7681 12207 | pub(crate) dense_string_map: ::std::option::Option<
|
7682 12208 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7683 12209 | >,
|
12210 + | /* ServerBuilderGenerator.kt:308 */
|
7684 12211 | pub(crate) dense_set_map: ::std::option::Option<
|
7685 12212 | crate::constrained::MaybeConstrained<
|
7686 12213 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
7687 12214 | >,
|
7688 12215 | >,
|
12216 + | /* ServerBuilderGenerator.kt:211 */
|
7689 12217 | }
|
12218 + | /* ServerBuilderGenerator.kt:215 */
|
7690 12219 | impl Builder {
|
12220 + | /* ServerBuilderGenerator.kt:331 */
|
7691 12221 | #[allow(missing_docs)] // documentation missing in model
|
12222 + | /* ServerBuilderGenerator.kt:343 */
|
7692 12223 | pub fn dense_struct_map(
|
7693 12224 | mut self,
|
7694 12225 | input: ::std::option::Option<
|
7695 12226 | ::std::collections::HashMap<::std::string::String, crate::model::GreetingStruct>,
|
7696 12227 | >,
|
7697 12228 | ) -> Self {
|
7698 - | self.dense_struct_map = input;
|
12229 + | /* ServerBuilderGenerator.kt:344 */
|
12230 + | self.dense_struct_map =
|
12231 + | /* ServerBuilderGenerator.kt:376 */input
|
12232 + | /* ServerBuilderGenerator.kt:344 */;
|
7699 12233 | self
|
12234 + | /* ServerBuilderGenerator.kt:343 */
|
7700 12235 | }
|
12236 + | /* ServerBuilderGenerator.kt:426 */
|
7701 12237 | #[allow(missing_docs)] // documentation missing in model
|
12238 + | /* ServerBuilderGenerator.kt:428 */
|
7702 12239 | pub(crate) fn set_dense_struct_map(
|
7703 12240 | mut self,
|
7704 12241 | input: Option<
|
7705 12242 | impl ::std::convert::Into<
|
7706 12243 | ::std::collections::HashMap<
|
7707 12244 | ::std::string::String,
|
7708 12245 | crate::model::GreetingStruct,
|
7709 12246 | >,
|
7710 12247 | >,
|
7711 12248 | >,
|
7712 12249 | ) -> Self {
|
12250 + | /* ServerBuilderGenerator.kt:429 */
|
7713 12251 | self.dense_struct_map = input.map(|v| v.into());
|
7714 12252 | self
|
12253 + | /* ServerBuilderGenerator.kt:428 */
|
7715 12254 | }
|
12255 + | /* ServerBuilderGenerator.kt:331 */
|
7716 12256 | #[allow(missing_docs)] // documentation missing in model
|
12257 + | /* ServerBuilderGenerator.kt:343 */
|
7717 12258 | pub fn dense_number_map(
|
7718 12259 | mut self,
|
7719 12260 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
7720 12261 | ) -> Self {
|
7721 - | self.dense_number_map = input;
|
12262 + | /* ServerBuilderGenerator.kt:344 */
|
12263 + | self.dense_number_map =
|
12264 + | /* ServerBuilderGenerator.kt:376 */input
|
12265 + | /* ServerBuilderGenerator.kt:344 */;
|
7722 12266 | self
|
12267 + | /* ServerBuilderGenerator.kt:343 */
|
7723 12268 | }
|
12269 + | /* ServerBuilderGenerator.kt:426 */
|
7724 12270 | #[allow(missing_docs)] // documentation missing in model
|
12271 + | /* ServerBuilderGenerator.kt:428 */
|
7725 12272 | pub(crate) fn set_dense_number_map(
|
7726 12273 | mut self,
|
7727 12274 | input: Option<
|
7728 12275 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
7729 12276 | >,
|
7730 12277 | ) -> Self {
|
12278 + | /* ServerBuilderGenerator.kt:429 */
|
7731 12279 | self.dense_number_map = input.map(|v| v.into());
|
7732 12280 | self
|
12281 + | /* ServerBuilderGenerator.kt:428 */
|
7733 12282 | }
|
12283 + | /* ServerBuilderGenerator.kt:331 */
|
7734 12284 | #[allow(missing_docs)] // documentation missing in model
|
12285 + | /* ServerBuilderGenerator.kt:343 */
|
7735 12286 | pub fn dense_boolean_map(
|
7736 12287 | mut self,
|
7737 12288 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
|
7738 12289 | ) -> Self {
|
7739 - | self.dense_boolean_map = input;
|
12290 + | /* ServerBuilderGenerator.kt:344 */
|
12291 + | self.dense_boolean_map =
|
12292 + | /* ServerBuilderGenerator.kt:376 */input
|
12293 + | /* ServerBuilderGenerator.kt:344 */;
|
7740 12294 | self
|
12295 + | /* ServerBuilderGenerator.kt:343 */
|
7741 12296 | }
|
12297 + | /* ServerBuilderGenerator.kt:426 */
|
7742 12298 | #[allow(missing_docs)] // documentation missing in model
|
12299 + | /* ServerBuilderGenerator.kt:428 */
|
7743 12300 | pub(crate) fn set_dense_boolean_map(
|
7744 12301 | mut self,
|
7745 12302 | input: Option<
|
7746 12303 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, bool>>,
|
7747 12304 | >,
|
7748 12305 | ) -> Self {
|
12306 + | /* ServerBuilderGenerator.kt:429 */
|
7749 12307 | self.dense_boolean_map = input.map(|v| v.into());
|
7750 12308 | self
|
12309 + | /* ServerBuilderGenerator.kt:428 */
|
7751 12310 | }
|
12311 + | /* ServerBuilderGenerator.kt:331 */
|
7752 12312 | #[allow(missing_docs)] // documentation missing in model
|
12313 + | /* ServerBuilderGenerator.kt:343 */
|
7753 12314 | pub fn dense_string_map(
|
7754 12315 | mut self,
|
7755 12316 | input: ::std::option::Option<
|
7756 12317 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7757 12318 | >,
|
7758 12319 | ) -> Self {
|
7759 - | self.dense_string_map = input;
|
12320 + | /* ServerBuilderGenerator.kt:344 */
|
12321 + | self.dense_string_map =
|
12322 + | /* ServerBuilderGenerator.kt:376 */input
|
12323 + | /* ServerBuilderGenerator.kt:344 */;
|
7760 12324 | self
|
12325 + | /* ServerBuilderGenerator.kt:343 */
|
7761 12326 | }
|
12327 + | /* ServerBuilderGenerator.kt:426 */
|
7762 12328 | #[allow(missing_docs)] // documentation missing in model
|
12329 + | /* ServerBuilderGenerator.kt:428 */
|
7763 12330 | pub(crate) fn set_dense_string_map(
|
7764 12331 | mut self,
|
7765 12332 | input: Option<
|
7766 12333 | impl ::std::convert::Into<
|
7767 12334 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
7768 12335 | >,
|
7769 12336 | >,
|
7770 12337 | ) -> Self {
|
12338 + | /* ServerBuilderGenerator.kt:429 */
|
7771 12339 | self.dense_string_map = input.map(|v| v.into());
|
7772 12340 | self
|
12341 + | /* ServerBuilderGenerator.kt:428 */
|
7773 12342 | }
|
12343 + | /* ServerBuilderGenerator.kt:331 */
|
7774 12344 | #[allow(missing_docs)] // documentation missing in model
|
12345 + | /* ServerBuilderGenerator.kt:343 */
|
7775 12346 | pub fn dense_set_map(
|
7776 12347 | mut self,
|
7777 12348 | input: ::std::option::Option<
|
7778 12349 | ::std::collections::HashMap<::std::string::String, crate::model::StringSet>,
|
7779 12350 | >,
|
7780 12351 | ) -> Self {
|
12352 + | /* ServerBuilderGenerator.kt:344 */
|
7781 12353 | self.dense_set_map =
|
7782 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
12354 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
12355 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
12356 + | /* ServerBuilderGenerator.kt:363 */)
|
12357 + | /* ServerBuilderGenerator.kt:344 */;
|
7783 12358 | self
|
12359 + | /* ServerBuilderGenerator.kt:343 */
|
7784 12360 | }
|
12361 + | /* ServerBuilderGenerator.kt:426 */
|
7785 12362 | #[allow(missing_docs)] // documentation missing in model
|
12363 + | /* ServerBuilderGenerator.kt:428 */
|
7786 12364 | pub(crate) fn set_dense_set_map(
|
7787 12365 | mut self,
|
7788 12366 | input: Option<
|
7789 12367 | impl ::std::convert::Into<
|
7790 12368 | crate::constrained::MaybeConstrained<
|
7791 12369 | crate::constrained::dense_set_map_constrained::DenseSetMapConstrained,
|
7792 12370 | >,
|
7793 12371 | >,
|
7794 12372 | >,
|
7795 12373 | ) -> Self {
|
12374 + | /* ServerBuilderGenerator.kt:429 */
|
7796 12375 | self.dense_set_map = input.map(|v| v.into());
|
7797 12376 | self
|
12377 + | /* ServerBuilderGenerator.kt:428 */
|
7798 12378 | }
|
7799 - | /// Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
7800 - | ///
|
12379 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonMapsInput`](crate::input::JsonMapsInput).
|
12380 + | /// /* ServerBuilderGenerator.kt:260 */
|
7801 12381 | /// The builder fails to construct a [`JsonMapsInput`](crate::input::JsonMapsInput) if a [`ConstraintViolation`] occurs.
|
7802 12382 | ///
|
12383 + | /* ServerBuilderGenerator.kt:271 */
|
7803 12384 | pub fn build(self) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
7804 12385 | self.build_enforcing_all_constraints()
|
7805 12386 | }
|
12387 + | /* ServerBuilderGenerator.kt:283 */
|
7806 12388 | fn build_enforcing_all_constraints(
|
7807 12389 | self,
|
7808 12390 | ) -> Result<crate::input::JsonMapsInput, ConstraintViolation> {
|
7809 - | Ok(crate::input::JsonMapsInput {
|
12391 + | /* ServerBuilderGenerator.kt:287 */
|
12392 + | Ok(
|
12393 + | /* ServerBuilderGenerator.kt:542 */
|
12394 + | crate::input::JsonMapsInput {
|
12395 + | /* ServerBuilderGenerator.kt:546 */
|
7810 12396 | dense_struct_map: self.dense_struct_map,
|
12397 + | /* ServerBuilderGenerator.kt:546 */
|
7811 12398 | dense_number_map: self.dense_number_map,
|
12399 + | /* ServerBuilderGenerator.kt:546 */
|
7812 12400 | dense_boolean_map: self.dense_boolean_map,
|
12401 + | /* ServerBuilderGenerator.kt:546 */
|
7813 12402 | dense_string_map: self.dense_string_map,
|
12403 + | /* ServerBuilderGenerator.kt:546 */
|
7814 12404 | dense_set_map: self
|
7815 12405 | .dense_set_map
|
12406 + | /* ServerBuilderGenerator.kt:602 */
|
7816 12407 | .map(|v| match v {
|
7817 12408 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7818 12409 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7819 12410 | })
|
12411 + | /* ServerBuilderGenerator.kt:614 */
|
7820 12412 | .map(|res| {
|
7821 12413 | res.map(|v| v.into())
|
7822 12414 | .map_err(ConstraintViolation::DenseSetMap)
|
7823 12415 | })
|
7824 12416 | .transpose()?,
|
7825 - | })
|
12417 + | /* ServerBuilderGenerator.kt:542 */
|
12418 + | }, /* ServerBuilderGenerator.kt:287 */
|
12419 + | )
|
12420 + | /* ServerBuilderGenerator.kt:283 */
|
7826 12421 | }
|
12422 + | /* ServerBuilderGenerator.kt:215 */
|
7827 12423 | }
|
12424 + |
|
12425 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7828 12426 | }
|
7829 - | /// See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12427 + | /// /* ServerBuilderGenerator.kt:171 */See [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
7830 12428 | pub mod sparse_json_lists_input {
|
7831 12429 |
|
12430 + | /* ServerBuilderGenerator.kt:461 */
|
7832 12431 | impl ::std::convert::From<Builder> for crate::input::SparseJsonListsInput {
|
7833 12432 | fn from(builder: Builder) -> Self {
|
7834 12433 | builder.build()
|
7835 12434 | }
|
7836 12435 | }
|
7837 - | /// A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12436 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12437 + | /* RustType.kt:534 */
|
7838 12438 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12439 + | /* ServerBuilderGenerator.kt:211 */
|
7839 12440 | pub struct Builder {
|
12441 + | /* ServerBuilderGenerator.kt:308 */
|
7840 12442 | pub(crate) sparse_string_list:
|
7841 12443 | ::std::option::Option<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
12444 + | /* ServerBuilderGenerator.kt:308 */
|
7842 12445 | pub(crate) sparse_short_list:
|
7843 12446 | ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
12447 + | /* ServerBuilderGenerator.kt:211 */
|
7844 12448 | }
|
12449 + | /* ServerBuilderGenerator.kt:215 */
|
7845 12450 | impl Builder {
|
12451 + | /* ServerBuilderGenerator.kt:331 */
|
7846 12452 | #[allow(missing_docs)] // documentation missing in model
|
12453 + | /* ServerBuilderGenerator.kt:343 */
|
7847 12454 | pub fn sparse_string_list(
|
7848 12455 | mut self,
|
7849 12456 | input: ::std::option::Option<
|
7850 12457 | ::std::vec::Vec<::std::option::Option<::std::string::String>>,
|
7851 12458 | >,
|
7852 12459 | ) -> Self {
|
7853 - | self.sparse_string_list = input;
|
12460 + | /* ServerBuilderGenerator.kt:344 */
|
12461 + | self.sparse_string_list =
|
12462 + | /* ServerBuilderGenerator.kt:376 */input
|
12463 + | /* ServerBuilderGenerator.kt:344 */;
|
7854 12464 | self
|
12465 + | /* ServerBuilderGenerator.kt:343 */
|
7855 12466 | }
|
12467 + | /* ServerBuilderGenerator.kt:426 */
|
7856 12468 | #[allow(missing_docs)] // documentation missing in model
|
12469 + | /* ServerBuilderGenerator.kt:428 */
|
7857 12470 | pub(crate) fn set_sparse_string_list(
|
7858 12471 | mut self,
|
7859 12472 | input: Option<
|
7860 12473 | impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<::std::string::String>>>,
|
7861 12474 | >,
|
7862 12475 | ) -> Self {
|
12476 + | /* ServerBuilderGenerator.kt:429 */
|
7863 12477 | self.sparse_string_list = input.map(|v| v.into());
|
7864 12478 | self
|
12479 + | /* ServerBuilderGenerator.kt:428 */
|
7865 12480 | }
|
12481 + | /* ServerBuilderGenerator.kt:331 */
|
7866 12482 | #[allow(missing_docs)] // documentation missing in model
|
12483 + | /* ServerBuilderGenerator.kt:343 */
|
7867 12484 | pub fn sparse_short_list(
|
7868 12485 | mut self,
|
7869 12486 | input: ::std::option::Option<::std::vec::Vec<::std::option::Option<i16>>>,
|
7870 12487 | ) -> Self {
|
7871 - | self.sparse_short_list = input;
|
12488 + | /* ServerBuilderGenerator.kt:344 */
|
12489 + | self.sparse_short_list =
|
12490 + | /* ServerBuilderGenerator.kt:376 */input
|
12491 + | /* ServerBuilderGenerator.kt:344 */;
|
7872 12492 | self
|
12493 + | /* ServerBuilderGenerator.kt:343 */
|
7873 12494 | }
|
12495 + | /* ServerBuilderGenerator.kt:426 */
|
7874 12496 | #[allow(missing_docs)] // documentation missing in model
|
12497 + | /* ServerBuilderGenerator.kt:428 */
|
7875 12498 | pub(crate) fn set_sparse_short_list(
|
7876 12499 | mut self,
|
7877 12500 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::option::Option<i16>>>>,
|
7878 12501 | ) -> Self {
|
12502 + | /* ServerBuilderGenerator.kt:429 */
|
7879 12503 | self.sparse_short_list = input.map(|v| v.into());
|
7880 12504 | self
|
12505 + | /* ServerBuilderGenerator.kt:428 */
|
7881 12506 | }
|
7882 - | /// Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12507 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SparseJsonListsInput`](crate::input::SparseJsonListsInput).
|
12508 + | /* ServerBuilderGenerator.kt:271 */
|
7883 12509 | pub fn build(self) -> crate::input::SparseJsonListsInput {
|
7884 12510 | self.build_enforcing_all_constraints()
|
7885 12511 | }
|
12512 + | /* ServerBuilderGenerator.kt:283 */
|
7886 12513 | fn build_enforcing_all_constraints(self) -> crate::input::SparseJsonListsInput {
|
12514 + | /* ServerBuilderGenerator.kt:542 */
|
7887 12515 | crate::input::SparseJsonListsInput {
|
12516 + | /* ServerBuilderGenerator.kt:546 */
|
7888 12517 | sparse_string_list: self.sparse_string_list,
|
12518 + | /* ServerBuilderGenerator.kt:546 */
|
7889 12519 | sparse_short_list: self.sparse_short_list,
|
12520 + | /* ServerBuilderGenerator.kt:542 */
|
7890 12521 | }
|
12522 + | /* ServerBuilderGenerator.kt:283 */
|
7891 12523 | }
|
12524 + | /* ServerBuilderGenerator.kt:215 */
|
7892 12525 | }
|
12526 + |
|
12527 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
7893 12528 | }
|
7894 - | /// See [`JsonListsInput`](crate::input::JsonListsInput).
|
12529 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonListsInput`](crate::input::JsonListsInput).
|
7895 12530 | pub mod json_lists_input {
|
7896 12531 |
|
12532 + | /* RustType.kt:534 */
|
7897 12533 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7898 - | /// Holds one variant for each of the ways the builder can fail.
|
12534 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
12535 + | /* RustType.kt:534 */
|
7899 12536 | #[non_exhaustive]
|
12537 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7900 12538 | #[allow(clippy::enum_variant_names)]
|
7901 12539 | pub enum ConstraintViolation {
|
7902 - | /// Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
12540 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `string_set` when building `JsonListsInput`.
|
12541 + | /* RustType.kt:534 */
|
7903 12542 | #[doc(hidden)]
|
12543 + | /* ServerBuilderConstraintViolations.kt:165 */
|
7904 12544 | StringSet(crate::model::string_set::ConstraintViolation),
|
7905 - | /// Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
12545 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `enum_list` when building `JsonListsInput`.
|
12546 + | /* RustType.kt:534 */
|
7906 12547 | #[doc(hidden)]
|
12548 + | /* ServerBuilderConstraintViolations.kt:165 */
|
7907 12549 | EnumList(crate::model::foo_enum_list::ConstraintViolation),
|
12550 + | /* ServerBuilderConstraintViolations.kt:75 */
|
7908 12551 | }
|
12552 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7909 12553 | impl ::std::fmt::Display for ConstraintViolation {
|
12554 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7910 12555 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
12556 + | /* ServerBuilderConstraintViolations.kt:118 */
|
7911 12557 | match self {
|
7912 - | ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
7913 - | ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
7914 - | }
|
12558 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::StringSet(_) => write!(f, "constraint violation occurred building member `string_set` when building `JsonListsInput`"),
|
12559 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::EnumList(_) => write!(f, "constraint violation occurred building member `enum_list` when building `JsonListsInput`"),
|
12560 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
12561 + | /* ServerBuilderConstraintViolations.kt:117 */
|
7915 12562 | }
|
12563 + | /* ServerBuilderConstraintViolations.kt:116 */
|
7916 12564 | }
|
12565 + | /* ServerBuilderConstraintViolations.kt:83 */
|
7917 12566 | impl ::std::error::Error for ConstraintViolation {}
|
12567 + | /* ServerBuilderConstraintViolations.kt:172 */
|
7918 12568 | impl ConstraintViolation {
|
7919 12569 | pub(crate) fn as_validation_exception_field(
|
7920 12570 | self,
|
7921 12571 | path: ::std::string::String,
|
7922 12572 | ) -> crate::model::ValidationExceptionField {
|
7923 12573 | match self {
|
7924 12574 | ConstraintViolation::StringSet(inner) => {
|
7925 12575 | inner.as_validation_exception_field(path + "/stringSet")
|
7926 12576 | }
|
7927 12577 | ConstraintViolation::EnumList(inner) => {
|
7928 12578 | inner.as_validation_exception_field(path + "/enumList")
|
7929 12579 | }
|
7930 12580 | }
|
7931 12581 | }
|
7932 12582 | }
|
12583 + | /* ServerBuilderGenerator.kt:234 */
|
7933 12584 | impl ::std::convert::From<ConstraintViolation>
|
7934 12585 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
7935 12586 | {
|
7936 12587 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
7937 12588 | let first_validation_exception_field =
|
7938 12589 | constraint_violation.as_validation_exception_field("".to_owned());
|
7939 12590 | let validation_exception = crate::error::ValidationException {
|
7940 12591 | message: format!(
|
7941 12592 | "1 validation error detected. {}",
|
7942 12593 | &first_validation_exception_field.message
|
7943 12594 | ),
|
7944 12595 | field_list: Some(vec![first_validation_exception_field]),
|
7945 12596 | };
|
7946 12597 | Self::ConstraintViolation(
|
7947 12598 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
7948 12599 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
7949 12600 | )
|
7950 12601 | }
|
7951 12602 | }
|
12603 + | /* ServerBuilderGenerator.kt:244 */
|
7952 12604 | impl ::std::convert::From<Builder>
|
7953 12605 | for crate::constrained::MaybeConstrained<crate::input::JsonListsInput>
|
7954 12606 | {
|
7955 12607 | fn from(builder: Builder) -> Self {
|
7956 12608 | Self::Unconstrained(builder)
|
7957 12609 | }
|
7958 12610 | }
|
12611 + | /* ServerBuilderGenerator.kt:446 */
|
7959 12612 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonListsInput {
|
7960 12613 | type Error = ConstraintViolation;
|
7961 12614 |
|
7962 12615 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7963 12616 | builder.build()
|
7964 12617 | }
|
7965 12618 | }
|
7966 - | /// A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
12619 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonListsInput`](crate::input::JsonListsInput).
|
12620 + | /* RustType.kt:534 */
|
7967 12621 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12622 + | /* ServerBuilderGenerator.kt:211 */
|
7968 12623 | pub struct Builder {
|
12624 + | /* ServerBuilderGenerator.kt:308 */
|
7969 12625 | pub(crate) string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12626 + | /* ServerBuilderGenerator.kt:308 */
|
7970 12627 | pub(crate) string_set:
|
7971 12628 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
12629 + | /* ServerBuilderGenerator.kt:308 */
|
7972 12630 | pub(crate) integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
12631 + | /* ServerBuilderGenerator.kt:308 */
|
7973 12632 | pub(crate) boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
12633 + | /* ServerBuilderGenerator.kt:308 */
|
7974 12634 | pub(crate) timestamp_list:
|
7975 12635 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
12636 + | /* ServerBuilderGenerator.kt:308 */
|
7976 12637 | pub(crate) enum_list: ::std::option::Option<
|
7977 12638 | crate::constrained::MaybeConstrained<
|
7978 12639 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
7979 12640 | >,
|
7980 12641 | >,
|
12642 + | /* ServerBuilderGenerator.kt:308 */
|
7981 12643 | pub(crate) int_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
12644 + | /* ServerBuilderGenerator.kt:308 */
|
7982 12645 | pub(crate) nested_string_list:
|
7983 12646 | ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
12647 + | /* ServerBuilderGenerator.kt:308 */
|
7984 12648 | pub(crate) structure_list:
|
7985 12649 | ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
12650 + | /* ServerBuilderGenerator.kt:211 */
|
7986 12651 | }
|
12652 + | /* ServerBuilderGenerator.kt:215 */
|
7987 12653 | impl Builder {
|
12654 + | /* ServerBuilderGenerator.kt:331 */
|
7988 12655 | #[allow(missing_docs)] // documentation missing in model
|
12656 + | /* ServerBuilderGenerator.kt:343 */
|
7989 12657 | pub fn string_list(
|
7990 12658 | mut self,
|
7991 12659 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
7992 12660 | ) -> Self {
|
7993 - | self.string_list = input;
|
12661 + | /* ServerBuilderGenerator.kt:344 */
|
12662 + | self.string_list =
|
12663 + | /* ServerBuilderGenerator.kt:376 */input
|
12664 + | /* ServerBuilderGenerator.kt:344 */;
|
7994 12665 | self
|
12666 + | /* ServerBuilderGenerator.kt:343 */
|
7995 12667 | }
|
12668 + | /* ServerBuilderGenerator.kt:426 */
|
7996 12669 | #[allow(missing_docs)] // documentation missing in model
|
12670 + | /* ServerBuilderGenerator.kt:428 */
|
7997 12671 | pub(crate) fn set_string_list(
|
7998 12672 | mut self,
|
7999 12673 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
8000 12674 | ) -> Self {
|
12675 + | /* ServerBuilderGenerator.kt:429 */
|
8001 12676 | self.string_list = input.map(|v| v.into());
|
8002 12677 | self
|
12678 + | /* ServerBuilderGenerator.kt:428 */
|
8003 12679 | }
|
12680 + | /* ServerBuilderGenerator.kt:331 */
|
8004 12681 | #[allow(missing_docs)] // documentation missing in model
|
12682 + | /* ServerBuilderGenerator.kt:343 */
|
8005 12683 | pub fn string_set(mut self, input: ::std::option::Option<crate::model::StringSet>) -> Self {
|
8006 - | self.string_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
12684 + | /* ServerBuilderGenerator.kt:344 */
|
12685 + | self.string_set =
|
12686 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
12687 + | /* ServerBuilderGenerator.kt:344 */;
|
8007 12688 | self
|
12689 + | /* ServerBuilderGenerator.kt:343 */
|
8008 12690 | }
|
12691 + | /* ServerBuilderGenerator.kt:426 */
|
8009 12692 | #[allow(missing_docs)] // documentation missing in model
|
12693 + | /* ServerBuilderGenerator.kt:428 */
|
8010 12694 | pub(crate) fn set_string_set(
|
8011 12695 | mut self,
|
8012 12696 | input: Option<
|
8013 12697 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
8014 12698 | >,
|
8015 12699 | ) -> Self {
|
12700 + | /* ServerBuilderGenerator.kt:429 */
|
8016 12701 | self.string_set = input.map(|v| v.into());
|
8017 12702 | self
|
12703 + | /* ServerBuilderGenerator.kt:428 */
|
8018 12704 | }
|
12705 + | /* ServerBuilderGenerator.kt:331 */
|
8019 12706 | #[allow(missing_docs)] // documentation missing in model
|
12707 + | /* ServerBuilderGenerator.kt:343 */
|
8020 12708 | pub fn integer_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
8021 - | self.integer_list = input;
|
12709 + | /* ServerBuilderGenerator.kt:344 */
|
12710 + | self.integer_list =
|
12711 + | /* ServerBuilderGenerator.kt:376 */input
|
12712 + | /* ServerBuilderGenerator.kt:344 */;
|
8022 12713 | self
|
12714 + | /* ServerBuilderGenerator.kt:343 */
|
8023 12715 | }
|
12716 + | /* ServerBuilderGenerator.kt:426 */
|
8024 12717 | #[allow(missing_docs)] // documentation missing in model
|
12718 + | /* ServerBuilderGenerator.kt:428 */
|
8025 12719 | pub(crate) fn set_integer_list(
|
8026 12720 | mut self,
|
8027 12721 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
8028 12722 | ) -> Self {
|
12723 + | /* ServerBuilderGenerator.kt:429 */
|
8029 12724 | self.integer_list = input.map(|v| v.into());
|
8030 12725 | self
|
12726 + | /* ServerBuilderGenerator.kt:428 */
|
8031 12727 | }
|
12728 + | /* ServerBuilderGenerator.kt:331 */
|
8032 12729 | #[allow(missing_docs)] // documentation missing in model
|
12730 + | /* ServerBuilderGenerator.kt:343 */
|
8033 12731 | pub fn boolean_list(mut self, input: ::std::option::Option<::std::vec::Vec<bool>>) -> Self {
|
8034 - | self.boolean_list = input;
|
12732 + | /* ServerBuilderGenerator.kt:344 */
|
12733 + | self.boolean_list =
|
12734 + | /* ServerBuilderGenerator.kt:376 */input
|
12735 + | /* ServerBuilderGenerator.kt:344 */;
|
8035 12736 | self
|
12737 + | /* ServerBuilderGenerator.kt:343 */
|
8036 12738 | }
|
12739 + | /* ServerBuilderGenerator.kt:426 */
|
8037 12740 | #[allow(missing_docs)] // documentation missing in model
|
12741 + | /* ServerBuilderGenerator.kt:428 */
|
8038 12742 | pub(crate) fn set_boolean_list(
|
8039 12743 | mut self,
|
8040 12744 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
8041 12745 | ) -> Self {
|
12746 + | /* ServerBuilderGenerator.kt:429 */
|
8042 12747 | self.boolean_list = input.map(|v| v.into());
|
8043 12748 | self
|
12749 + | /* ServerBuilderGenerator.kt:428 */
|
8044 12750 | }
|
12751 + | /* ServerBuilderGenerator.kt:331 */
|
8045 12752 | #[allow(missing_docs)] // documentation missing in model
|
12753 + | /* ServerBuilderGenerator.kt:343 */
|
8046 12754 | pub fn timestamp_list(
|
8047 12755 | mut self,
|
8048 12756 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
8049 12757 | ) -> Self {
|
8050 - | self.timestamp_list = input;
|
12758 + | /* ServerBuilderGenerator.kt:344 */
|
12759 + | self.timestamp_list =
|
12760 + | /* ServerBuilderGenerator.kt:376 */input
|
12761 + | /* ServerBuilderGenerator.kt:344 */;
|
8051 12762 | self
|
12763 + | /* ServerBuilderGenerator.kt:343 */
|
8052 12764 | }
|
12765 + | /* ServerBuilderGenerator.kt:426 */
|
8053 12766 | #[allow(missing_docs)] // documentation missing in model
|
12767 + | /* ServerBuilderGenerator.kt:428 */
|
8054 12768 | pub(crate) fn set_timestamp_list(
|
8055 12769 | mut self,
|
8056 12770 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
8057 12771 | ) -> Self {
|
12772 + | /* ServerBuilderGenerator.kt:429 */
|
8058 12773 | self.timestamp_list = input.map(|v| v.into());
|
8059 12774 | self
|
12775 + | /* ServerBuilderGenerator.kt:428 */
|
8060 12776 | }
|
12777 + | /* ServerBuilderGenerator.kt:331 */
|
8061 12778 | #[allow(missing_docs)] // documentation missing in model
|
12779 + | /* ServerBuilderGenerator.kt:343 */
|
8062 12780 | pub fn enum_list(
|
8063 12781 | mut self,
|
8064 12782 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
8065 12783 | ) -> Self {
|
12784 + | /* ServerBuilderGenerator.kt:344 */
|
8066 12785 | self.enum_list =
|
8067 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
12786 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
12787 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
12788 + | /* ServerBuilderGenerator.kt:363 */)
|
12789 + | /* ServerBuilderGenerator.kt:344 */;
|
8068 12790 | self
|
12791 + | /* ServerBuilderGenerator.kt:343 */
|
8069 12792 | }
|
12793 + | /* ServerBuilderGenerator.kt:426 */
|
8070 12794 | #[allow(missing_docs)] // documentation missing in model
|
12795 + | /* ServerBuilderGenerator.kt:428 */
|
8071 12796 | pub(crate) fn set_enum_list(
|
8072 12797 | mut self,
|
8073 12798 | input: Option<
|
8074 12799 | impl ::std::convert::Into<
|
8075 12800 | crate::constrained::MaybeConstrained<
|
8076 12801 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
8077 12802 | >,
|
8078 12803 | >,
|
8079 12804 | >,
|
8080 12805 | ) -> Self {
|
12806 + | /* ServerBuilderGenerator.kt:429 */
|
8081 12807 | self.enum_list = input.map(|v| v.into());
|
8082 12808 | self
|
12809 + | /* ServerBuilderGenerator.kt:428 */
|
8083 12810 | }
|
12811 + | /* ServerBuilderGenerator.kt:331 */
|
8084 12812 | #[allow(missing_docs)] // documentation missing in model
|
12813 + | /* ServerBuilderGenerator.kt:343 */
|
8085 12814 | pub fn int_enum_list(mut self, input: ::std::option::Option<::std::vec::Vec<i32>>) -> Self {
|
8086 - | self.int_enum_list = input;
|
12815 + | /* ServerBuilderGenerator.kt:344 */
|
12816 + | self.int_enum_list =
|
12817 + | /* ServerBuilderGenerator.kt:376 */input
|
12818 + | /* ServerBuilderGenerator.kt:344 */;
|
8087 12819 | self
|
12820 + | /* ServerBuilderGenerator.kt:343 */
|
8088 12821 | }
|
12822 + | /* ServerBuilderGenerator.kt:426 */
|
8089 12823 | #[allow(missing_docs)] // documentation missing in model
|
12824 + | /* ServerBuilderGenerator.kt:428 */
|
8090 12825 | pub(crate) fn set_int_enum_list(
|
8091 12826 | mut self,
|
8092 12827 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
8093 12828 | ) -> Self {
|
12829 + | /* ServerBuilderGenerator.kt:429 */
|
8094 12830 | self.int_enum_list = input.map(|v| v.into());
|
8095 12831 | self
|
12832 + | /* ServerBuilderGenerator.kt:428 */
|
8096 12833 | }
|
8097 - | /// A list of lists of strings.
|
12834 + | /// /* ServerBuilderGenerator.kt:331 */A list of lists of strings.
|
12835 + | /* ServerBuilderGenerator.kt:343 */
|
8098 12836 | pub fn nested_string_list(
|
8099 12837 | mut self,
|
8100 12838 | input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
8101 12839 | ) -> Self {
|
8102 - | self.nested_string_list = input;
|
12840 + | /* ServerBuilderGenerator.kt:344 */
|
12841 + | self.nested_string_list =
|
12842 + | /* ServerBuilderGenerator.kt:376 */input
|
12843 + | /* ServerBuilderGenerator.kt:344 */;
|
8103 12844 | self
|
12845 + | /* ServerBuilderGenerator.kt:343 */
|
8104 12846 | }
|
8105 - | /// A list of lists of strings.
|
12847 + | /// /* ServerBuilderGenerator.kt:426 */A list of lists of strings.
|
12848 + | /* ServerBuilderGenerator.kt:428 */
|
8106 12849 | pub(crate) fn set_nested_string_list(
|
8107 12850 | mut self,
|
8108 12851 | input: Option<
|
8109 12852 | impl ::std::convert::Into<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
|
8110 12853 | >,
|
8111 12854 | ) -> Self {
|
12855 + | /* ServerBuilderGenerator.kt:429 */
|
8112 12856 | self.nested_string_list = input.map(|v| v.into());
|
8113 12857 | self
|
12858 + | /* ServerBuilderGenerator.kt:428 */
|
8114 12859 | }
|
12860 + | /* ServerBuilderGenerator.kt:331 */
|
8115 12861 | #[allow(missing_docs)] // documentation missing in model
|
12862 + | /* ServerBuilderGenerator.kt:343 */
|
8116 12863 | pub fn structure_list(
|
8117 12864 | mut self,
|
8118 12865 | input: ::std::option::Option<::std::vec::Vec<crate::model::StructureListMember>>,
|
8119 12866 | ) -> Self {
|
8120 - | self.structure_list = input;
|
12867 + | /* ServerBuilderGenerator.kt:344 */
|
12868 + | self.structure_list =
|
12869 + | /* ServerBuilderGenerator.kt:376 */input
|
12870 + | /* ServerBuilderGenerator.kt:344 */;
|
8121 12871 | self
|
12872 + | /* ServerBuilderGenerator.kt:343 */
|
8122 12873 | }
|
12874 + | /* ServerBuilderGenerator.kt:426 */
|
8123 12875 | #[allow(missing_docs)] // documentation missing in model
|
12876 + | /* ServerBuilderGenerator.kt:428 */
|
8124 12877 | pub(crate) fn set_structure_list(
|
8125 12878 | mut self,
|
8126 12879 | input: Option<
|
8127 12880 | impl ::std::convert::Into<::std::vec::Vec<crate::model::StructureListMember>>,
|
8128 12881 | >,
|
8129 12882 | ) -> Self {
|
12883 + | /* ServerBuilderGenerator.kt:429 */
|
8130 12884 | self.structure_list = input.map(|v| v.into());
|
8131 12885 | self
|
12886 + | /* ServerBuilderGenerator.kt:428 */
|
8132 12887 | }
|
8133 - | /// Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
8134 - | ///
|
12888 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonListsInput`](crate::input::JsonListsInput).
|
12889 + | /// /* ServerBuilderGenerator.kt:260 */
|
8135 12890 | /// The builder fails to construct a [`JsonListsInput`](crate::input::JsonListsInput) if a [`ConstraintViolation`] occurs.
|
8136 12891 | ///
|
8137 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12892 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
12893 + | /* ServerBuilderGenerator.kt:271 */
|
8138 12894 | pub fn build(self) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
8139 12895 | self.build_enforcing_all_constraints()
|
8140 12896 | }
|
12897 + | /* ServerBuilderGenerator.kt:283 */
|
8141 12898 | fn build_enforcing_all_constraints(
|
8142 12899 | self,
|
8143 12900 | ) -> Result<crate::input::JsonListsInput, ConstraintViolation> {
|
8144 - | Ok(crate::input::JsonListsInput {
|
12901 + | /* ServerBuilderGenerator.kt:287 */
|
12902 + | Ok(
|
12903 + | /* ServerBuilderGenerator.kt:542 */
|
12904 + | crate::input::JsonListsInput {
|
12905 + | /* ServerBuilderGenerator.kt:546 */
|
8145 12906 | string_list: self.string_list,
|
12907 + | /* ServerBuilderGenerator.kt:546 */
|
8146 12908 | string_set: self
|
8147 12909 | .string_set
|
12910 + | /* ServerBuilderGenerator.kt:602 */
|
8148 12911 | .map(|v| match v {
|
8149 12912 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8150 12913 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8151 12914 | })
|
12915 + | /* ServerBuilderGenerator.kt:614 */
|
8152 12916 | .map(|res| res.map_err(ConstraintViolation::StringSet))
|
8153 12917 | .transpose()?,
|
12918 + | /* ServerBuilderGenerator.kt:546 */
|
8154 12919 | integer_list: self.integer_list,
|
12920 + | /* ServerBuilderGenerator.kt:546 */
|
8155 12921 | boolean_list: self.boolean_list,
|
12922 + | /* ServerBuilderGenerator.kt:546 */
|
8156 12923 | timestamp_list: self.timestamp_list,
|
12924 + | /* ServerBuilderGenerator.kt:546 */
|
8157 12925 | enum_list: self
|
8158 12926 | .enum_list
|
12927 + | /* ServerBuilderGenerator.kt:602 */
|
8159 12928 | .map(|v| match v {
|
8160 12929 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8161 12930 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8162 12931 | })
|
12932 + | /* ServerBuilderGenerator.kt:614 */
|
8163 12933 | .map(|res| res.map(|v| v.into()).map_err(ConstraintViolation::EnumList))
|
8164 12934 | .transpose()?,
|
12935 + | /* ServerBuilderGenerator.kt:546 */
|
8165 12936 | int_enum_list: self.int_enum_list,
|
12937 + | /* ServerBuilderGenerator.kt:546 */
|
8166 12938 | nested_string_list: self.nested_string_list,
|
12939 + | /* ServerBuilderGenerator.kt:546 */
|
8167 12940 | structure_list: self.structure_list,
|
8168 - | })
|
12941 + | /* ServerBuilderGenerator.kt:542 */
|
12942 + | }, /* ServerBuilderGenerator.kt:287 */
|
12943 + | )
|
12944 + | /* ServerBuilderGenerator.kt:283 */
|
8169 12945 | }
|
12946 + | /* ServerBuilderGenerator.kt:215 */
|
8170 12947 | }
|
12948 + |
|
12949 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8171 12950 | }
|
8172 - | /// See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12951 + | /// /* ServerBuilderGenerator.kt:171 */See [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
8173 12952 | pub mod recursive_shapes_input {
|
8174 12953 |
|
12954 + | /* ServerBuilderGenerator.kt:461 */
|
8175 12955 | impl ::std::convert::From<Builder> for crate::input::RecursiveShapesInput {
|
8176 12956 | fn from(builder: Builder) -> Self {
|
8177 12957 | builder.build()
|
8178 12958 | }
|
8179 12959 | }
|
8180 - | /// A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12960 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12961 + | /* RustType.kt:534 */
|
8181 12962 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12963 + | /* ServerBuilderGenerator.kt:211 */
|
8182 12964 | pub struct Builder {
|
12965 + | /* ServerBuilderGenerator.kt:308 */
|
8183 12966 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
12967 + | /* ServerBuilderGenerator.kt:211 */
|
8184 12968 | }
|
12969 + | /* ServerBuilderGenerator.kt:215 */
|
8185 12970 | impl Builder {
|
12971 + | /* ServerBuilderGenerator.kt:331 */
|
8186 12972 | #[allow(missing_docs)] // documentation missing in model
|
12973 + | /* ServerBuilderGenerator.kt:343 */
|
8187 12974 | pub fn nested(
|
8188 12975 | mut self,
|
8189 12976 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
8190 12977 | ) -> Self {
|
8191 - | self.nested = input;
|
12978 + | /* ServerBuilderGenerator.kt:344 */
|
12979 + | self.nested =
|
12980 + | /* ServerBuilderGenerator.kt:376 */input
|
12981 + | /* ServerBuilderGenerator.kt:344 */;
|
8192 12982 | self
|
12983 + | /* ServerBuilderGenerator.kt:343 */
|
8193 12984 | }
|
12985 + | /* ServerBuilderGenerator.kt:426 */
|
8194 12986 | #[allow(missing_docs)] // documentation missing in model
|
12987 + | /* ServerBuilderGenerator.kt:428 */
|
8195 12988 | pub(crate) fn set_nested(
|
8196 12989 | mut self,
|
8197 12990 | input: Option<
|
8198 12991 | impl ::std::convert::Into<crate::model::RecursiveShapesInputOutputNested1>,
|
8199 12992 | >,
|
8200 12993 | ) -> Self {
|
12994 + | /* ServerBuilderGenerator.kt:429 */
|
8201 12995 | self.nested = input.map(|v| v.into());
|
8202 12996 | self
|
12997 + | /* ServerBuilderGenerator.kt:428 */
|
8203 12998 | }
|
8204 - | /// Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
12999 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`RecursiveShapesInput`](crate::input::RecursiveShapesInput).
|
13000 + | /* ServerBuilderGenerator.kt:271 */
|
8205 13001 | pub fn build(self) -> crate::input::RecursiveShapesInput {
|
8206 13002 | self.build_enforcing_all_constraints()
|
8207 13003 | }
|
13004 + | /* ServerBuilderGenerator.kt:283 */
|
8208 13005 | fn build_enforcing_all_constraints(self) -> crate::input::RecursiveShapesInput {
|
13006 + | /* ServerBuilderGenerator.kt:542 */
|
8209 13007 | crate::input::RecursiveShapesInput {
|
13008 + | /* ServerBuilderGenerator.kt:546 */
|
8210 13009 | nested: self.nested,
|
13010 + | /* ServerBuilderGenerator.kt:542 */
|
8211 13011 | }
|
13012 + | /* ServerBuilderGenerator.kt:283 */
|
8212 13013 | }
|
13014 + | /* ServerBuilderGenerator.kt:215 */
|
8213 13015 | }
|
13016 + |
|
13017 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8214 13018 | }
|
8215 - | /// See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
13019 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
8216 13020 | pub mod json_int_enums_input {
|
8217 13021 |
|
13022 + | /* RustType.kt:534 */
|
8218 13023 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8219 - | /// Holds one variant for each of the ways the builder can fail.
|
13024 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13025 + | /* RustType.kt:534 */
|
8220 13026 | #[non_exhaustive]
|
13027 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8221 13028 | #[allow(clippy::enum_variant_names)]
|
8222 13029 | pub enum ConstraintViolation {
|
8223 - | /// Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
13030 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`.
|
13031 + | /* RustType.kt:534 */
|
8224 13032 | #[doc(hidden)]
|
13033 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8225 13034 | IntegerEnumSet(crate::model::integer_enum_set::ConstraintViolation),
|
13035 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8226 13036 | }
|
13037 + | /* ServerBuilderConstraintViolations.kt:116 */
|
8227 13038 | impl ::std::fmt::Display for ConstraintViolation {
|
13039 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8228 13040 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13041 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8229 13042 | match self {
|
8230 - | ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
8231 - | }
|
13043 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::IntegerEnumSet(_) => write!(f, "constraint violation occurred building member `integer_enum_set` when building `JsonIntEnumsInput`"),
|
13044 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
13045 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8232 13046 | }
|
13047 + | /* ServerBuilderConstraintViolations.kt:116 */
|
8233 13048 | }
|
13049 + | /* ServerBuilderConstraintViolations.kt:83 */
|
8234 13050 | impl ::std::error::Error for ConstraintViolation {}
|
13051 + | /* ServerBuilderConstraintViolations.kt:172 */
|
8235 13052 | impl ConstraintViolation {
|
8236 13053 | pub(crate) fn as_validation_exception_field(
|
8237 13054 | self,
|
8238 13055 | path: ::std::string::String,
|
8239 13056 | ) -> crate::model::ValidationExceptionField {
|
8240 13057 | match self {
|
8241 13058 | ConstraintViolation::IntegerEnumSet(inner) => {
|
8242 13059 | inner.as_validation_exception_field(path + "/integerEnumSet")
|
8243 13060 | }
|
8244 13061 | }
|
8245 13062 | }
|
8246 13063 | }
|
13064 + | /* ServerBuilderGenerator.kt:234 */
|
8247 13065 | impl ::std::convert::From<ConstraintViolation>
|
8248 13066 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
8249 13067 | {
|
8250 13068 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
8251 13069 | let first_validation_exception_field =
|
8252 13070 | constraint_violation.as_validation_exception_field("".to_owned());
|
8253 13071 | let validation_exception = crate::error::ValidationException {
|
8254 13072 | message: format!(
|
8255 13073 | "1 validation error detected. {}",
|
8256 13074 | &first_validation_exception_field.message
|
8257 13075 | ),
|
8258 13076 | field_list: Some(vec![first_validation_exception_field]),
|
8259 13077 | };
|
8260 13078 | Self::ConstraintViolation(
|
8261 13079 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
8262 13080 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
8263 13081 | )
|
8264 13082 | }
|
8265 13083 | }
|
13084 + | /* ServerBuilderGenerator.kt:244 */
|
8266 13085 | impl ::std::convert::From<Builder>
|
8267 13086 | for crate::constrained::MaybeConstrained<crate::input::JsonIntEnumsInput>
|
8268 13087 | {
|
8269 13088 | fn from(builder: Builder) -> Self {
|
8270 13089 | Self::Unconstrained(builder)
|
8271 13090 | }
|
8272 13091 | }
|
13092 + | /* ServerBuilderGenerator.kt:446 */
|
8273 13093 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonIntEnumsInput {
|
8274 13094 | type Error = ConstraintViolation;
|
8275 13095 |
|
8276 13096 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8277 13097 | builder.build()
|
8278 13098 | }
|
8279 13099 | }
|
8280 - | /// A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
13100 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
13101 + | /* RustType.kt:534 */
|
8281 13102 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13103 + | /* ServerBuilderGenerator.kt:211 */
|
8282 13104 | pub struct Builder {
|
13105 + | /* ServerBuilderGenerator.kt:308 */
|
8283 13106 | pub(crate) integer_enum1: ::std::option::Option<i32>,
|
13107 + | /* ServerBuilderGenerator.kt:308 */
|
8284 13108 | pub(crate) integer_enum2: ::std::option::Option<i32>,
|
13109 + | /* ServerBuilderGenerator.kt:308 */
|
8285 13110 | pub(crate) integer_enum3: ::std::option::Option<i32>,
|
13111 + | /* ServerBuilderGenerator.kt:308 */
|
8286 13112 | pub(crate) integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
13113 + | /* ServerBuilderGenerator.kt:308 */
|
8287 13114 | pub(crate) integer_enum_set: ::std::option::Option<
|
8288 13115 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
8289 13116 | >,
|
13117 + | /* ServerBuilderGenerator.kt:308 */
|
8290 13118 | pub(crate) integer_enum_map:
|
8291 13119 | ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
13120 + | /* ServerBuilderGenerator.kt:211 */
|
8292 13121 | }
|
13122 + | /* ServerBuilderGenerator.kt:215 */
|
8293 13123 | impl Builder {
|
13124 + | /* ServerBuilderGenerator.kt:331 */
|
8294 13125 | #[allow(missing_docs)] // documentation missing in model
|
13126 + | /* ServerBuilderGenerator.kt:343 */
|
8295 13127 | pub fn integer_enum1(mut self, input: ::std::option::Option<i32>) -> Self {
|
8296 - | self.integer_enum1 = input;
|
13128 + | /* ServerBuilderGenerator.kt:344 */
|
13129 + | self.integer_enum1 =
|
13130 + | /* ServerBuilderGenerator.kt:376 */input
|
13131 + | /* ServerBuilderGenerator.kt:344 */;
|
8297 13132 | self
|
13133 + | /* ServerBuilderGenerator.kt:343 */
|
8298 13134 | }
|
13135 + | /* ServerBuilderGenerator.kt:426 */
|
8299 13136 | #[allow(missing_docs)] // documentation missing in model
|
13137 + | /* ServerBuilderGenerator.kt:428 */
|
8300 13138 | pub(crate) fn set_integer_enum1(
|
8301 13139 | mut self,
|
8302 13140 | input: Option<impl ::std::convert::Into<i32>>,
|
8303 13141 | ) -> Self {
|
13142 + | /* ServerBuilderGenerator.kt:429 */
|
8304 13143 | self.integer_enum1 = input.map(|v| v.into());
|
8305 13144 | self
|
13145 + | /* ServerBuilderGenerator.kt:428 */
|
8306 13146 | }
|
13147 + | /* ServerBuilderGenerator.kt:331 */
|
8307 13148 | #[allow(missing_docs)] // documentation missing in model
|
13149 + | /* ServerBuilderGenerator.kt:343 */
|
8308 13150 | pub fn integer_enum2(mut self, input: ::std::option::Option<i32>) -> Self {
|
8309 - | self.integer_enum2 = input;
|
13151 + | /* ServerBuilderGenerator.kt:344 */
|
13152 + | self.integer_enum2 =
|
13153 + | /* ServerBuilderGenerator.kt:376 */input
|
13154 + | /* ServerBuilderGenerator.kt:344 */;
|
8310 13155 | self
|
13156 + | /* ServerBuilderGenerator.kt:343 */
|
8311 13157 | }
|
13158 + | /* ServerBuilderGenerator.kt:426 */
|
8312 13159 | #[allow(missing_docs)] // documentation missing in model
|
13160 + | /* ServerBuilderGenerator.kt:428 */
|
8313 13161 | pub(crate) fn set_integer_enum2(
|
8314 13162 | mut self,
|
8315 13163 | input: Option<impl ::std::convert::Into<i32>>,
|
8316 13164 | ) -> Self {
|
13165 + | /* ServerBuilderGenerator.kt:429 */
|
8317 13166 | self.integer_enum2 = input.map(|v| v.into());
|
8318 13167 | self
|
13168 + | /* ServerBuilderGenerator.kt:428 */
|
8319 13169 | }
|
13170 + | /* ServerBuilderGenerator.kt:331 */
|
8320 13171 | #[allow(missing_docs)] // documentation missing in model
|
13172 + | /* ServerBuilderGenerator.kt:343 */
|
8321 13173 | pub fn integer_enum3(mut self, input: ::std::option::Option<i32>) -> Self {
|
8322 - | self.integer_enum3 = input;
|
13174 + | /* ServerBuilderGenerator.kt:344 */
|
13175 + | self.integer_enum3 =
|
13176 + | /* ServerBuilderGenerator.kt:376 */input
|
13177 + | /* ServerBuilderGenerator.kt:344 */;
|
8323 13178 | self
|
13179 + | /* ServerBuilderGenerator.kt:343 */
|
8324 13180 | }
|
13181 + | /* ServerBuilderGenerator.kt:426 */
|
8325 13182 | #[allow(missing_docs)] // documentation missing in model
|
13183 + | /* ServerBuilderGenerator.kt:428 */
|
8326 13184 | pub(crate) fn set_integer_enum3(
|
8327 13185 | mut self,
|
8328 13186 | input: Option<impl ::std::convert::Into<i32>>,
|
8329 13187 | ) -> Self {
|
13188 + | /* ServerBuilderGenerator.kt:429 */
|
8330 13189 | self.integer_enum3 = input.map(|v| v.into());
|
8331 13190 | self
|
13191 + | /* ServerBuilderGenerator.kt:428 */
|
8332 13192 | }
|
13193 + | /* ServerBuilderGenerator.kt:331 */
|
8333 13194 | #[allow(missing_docs)] // documentation missing in model
|
13195 + | /* ServerBuilderGenerator.kt:343 */
|
8334 13196 | pub fn integer_enum_list(
|
8335 13197 | mut self,
|
8336 13198 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
8337 13199 | ) -> Self {
|
8338 - | self.integer_enum_list = input;
|
13200 + | /* ServerBuilderGenerator.kt:344 */
|
13201 + | self.integer_enum_list =
|
13202 + | /* ServerBuilderGenerator.kt:376 */input
|
13203 + | /* ServerBuilderGenerator.kt:344 */;
|
8339 13204 | self
|
13205 + | /* ServerBuilderGenerator.kt:343 */
|
8340 13206 | }
|
13207 + | /* ServerBuilderGenerator.kt:426 */
|
8341 13208 | #[allow(missing_docs)] // documentation missing in model
|
13209 + | /* ServerBuilderGenerator.kt:428 */
|
8342 13210 | pub(crate) fn set_integer_enum_list(
|
8343 13211 | mut self,
|
8344 13212 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
8345 13213 | ) -> Self {
|
13214 + | /* ServerBuilderGenerator.kt:429 */
|
8346 13215 | self.integer_enum_list = input.map(|v| v.into());
|
8347 13216 | self
|
13217 + | /* ServerBuilderGenerator.kt:428 */
|
8348 13218 | }
|
13219 + | /* ServerBuilderGenerator.kt:331 */
|
8349 13220 | #[allow(missing_docs)] // documentation missing in model
|
13221 + | /* ServerBuilderGenerator.kt:343 */
|
8350 13222 | pub fn integer_enum_set(
|
8351 13223 | mut self,
|
8352 13224 | input: ::std::option::Option<crate::model::IntegerEnumSet>,
|
8353 13225 | ) -> Self {
|
8354 - | self.integer_enum_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
13226 + | /* ServerBuilderGenerator.kt:344 */
|
13227 + | self.integer_enum_set =
|
13228 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13229 + | /* ServerBuilderGenerator.kt:344 */;
|
8355 13230 | self
|
13231 + | /* ServerBuilderGenerator.kt:343 */
|
8356 13232 | }
|
13233 + | /* ServerBuilderGenerator.kt:426 */
|
8357 13234 | #[allow(missing_docs)] // documentation missing in model
|
13235 + | /* ServerBuilderGenerator.kt:428 */
|
8358 13236 | pub(crate) fn set_integer_enum_set(
|
8359 13237 | mut self,
|
8360 13238 | input: Option<
|
8361 13239 | impl ::std::convert::Into<
|
8362 13240 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
8363 13241 | >,
|
8364 13242 | >,
|
8365 13243 | ) -> Self {
|
13244 + | /* ServerBuilderGenerator.kt:429 */
|
8366 13245 | self.integer_enum_set = input.map(|v| v.into());
|
8367 13246 | self
|
13247 + | /* ServerBuilderGenerator.kt:428 */
|
8368 13248 | }
|
13249 + | /* ServerBuilderGenerator.kt:331 */
|
8369 13250 | #[allow(missing_docs)] // documentation missing in model
|
13251 + | /* ServerBuilderGenerator.kt:343 */
|
8370 13252 | pub fn integer_enum_map(
|
8371 13253 | mut self,
|
8372 13254 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, i32>>,
|
8373 13255 | ) -> Self {
|
8374 - | self.integer_enum_map = input;
|
13256 + | /* ServerBuilderGenerator.kt:344 */
|
13257 + | self.integer_enum_map =
|
13258 + | /* ServerBuilderGenerator.kt:376 */input
|
13259 + | /* ServerBuilderGenerator.kt:344 */;
|
8375 13260 | self
|
13261 + | /* ServerBuilderGenerator.kt:343 */
|
8376 13262 | }
|
13263 + | /* ServerBuilderGenerator.kt:426 */
|
8377 13264 | #[allow(missing_docs)] // documentation missing in model
|
13265 + | /* ServerBuilderGenerator.kt:428 */
|
8378 13266 | pub(crate) fn set_integer_enum_map(
|
8379 13267 | mut self,
|
8380 13268 | input: Option<
|
8381 13269 | impl ::std::convert::Into<::std::collections::HashMap<::std::string::String, i32>>,
|
8382 13270 | >,
|
8383 13271 | ) -> Self {
|
13272 + | /* ServerBuilderGenerator.kt:429 */
|
8384 13273 | self.integer_enum_map = input.map(|v| v.into());
|
8385 13274 | self
|
13275 + | /* ServerBuilderGenerator.kt:428 */
|
8386 13276 | }
|
8387 - | /// Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
8388 - | ///
|
13277 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput).
|
13278 + | /// /* ServerBuilderGenerator.kt:260 */
|
8389 13279 | /// The builder fails to construct a [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput) if a [`ConstraintViolation`] occurs.
|
8390 13280 | ///
|
13281 + | /* ServerBuilderGenerator.kt:271 */
|
8391 13282 | pub fn build(self) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
8392 13283 | self.build_enforcing_all_constraints()
|
8393 13284 | }
|
13285 + | /* ServerBuilderGenerator.kt:283 */
|
8394 13286 | fn build_enforcing_all_constraints(
|
8395 13287 | self,
|
8396 13288 | ) -> Result<crate::input::JsonIntEnumsInput, ConstraintViolation> {
|
8397 - | Ok(crate::input::JsonIntEnumsInput {
|
13289 + | /* ServerBuilderGenerator.kt:287 */
|
13290 + | Ok(
|
13291 + | /* ServerBuilderGenerator.kt:542 */
|
13292 + | crate::input::JsonIntEnumsInput {
|
13293 + | /* ServerBuilderGenerator.kt:546 */
|
8398 13294 | integer_enum1: self.integer_enum1,
|
13295 + | /* ServerBuilderGenerator.kt:546 */
|
8399 13296 | integer_enum2: self.integer_enum2,
|
13297 + | /* ServerBuilderGenerator.kt:546 */
|
8400 13298 | integer_enum3: self.integer_enum3,
|
13299 + | /* ServerBuilderGenerator.kt:546 */
|
8401 13300 | integer_enum_list: self.integer_enum_list,
|
13301 + | /* ServerBuilderGenerator.kt:546 */
|
8402 13302 | integer_enum_set: self
|
8403 13303 | .integer_enum_set
|
13304 + | /* ServerBuilderGenerator.kt:602 */
|
8404 13305 | .map(|v| match v {
|
8405 13306 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8406 13307 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8407 13308 | })
|
13309 + | /* ServerBuilderGenerator.kt:614 */
|
8408 13310 | .map(|res| res.map_err(ConstraintViolation::IntegerEnumSet))
|
8409 13311 | .transpose()?,
|
13312 + | /* ServerBuilderGenerator.kt:546 */
|
8410 13313 | integer_enum_map: self.integer_enum_map,
|
8411 - | })
|
13314 + | /* ServerBuilderGenerator.kt:542 */
|
13315 + | }, /* ServerBuilderGenerator.kt:287 */
|
13316 + | )
|
13317 + | /* ServerBuilderGenerator.kt:283 */
|
8412 13318 | }
|
13319 + | /* ServerBuilderGenerator.kt:215 */
|
8413 13320 | }
|
13321 + |
|
13322 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8414 13323 | }
|
8415 - | /// See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13324 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
8416 13325 | pub mod json_enums_input {
|
8417 13326 |
|
13327 + | /* RustType.kt:534 */
|
8418 13328 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8419 - | /// Holds one variant for each of the ways the builder can fail.
|
13329 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
13330 + | /* RustType.kt:534 */
|
8420 13331 | #[non_exhaustive]
|
13332 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8421 13333 | #[allow(clippy::enum_variant_names)]
|
8422 13334 | pub enum ConstraintViolation {
|
8423 - | /// Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
13335 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`.
|
13336 + | /* RustType.kt:534 */
|
8424 13337 | #[doc(hidden)]
|
13338 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8425 13339 | FooEnum1(crate::model::foo_enum::ConstraintViolation),
|
8426 - | /// Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
13340 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`.
|
13341 + | /* RustType.kt:534 */
|
8427 13342 | #[doc(hidden)]
|
13343 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8428 13344 | FooEnum2(crate::model::foo_enum::ConstraintViolation),
|
8429 - | /// Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
13345 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`.
|
13346 + | /* RustType.kt:534 */
|
8430 13347 | #[doc(hidden)]
|
13348 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8431 13349 | FooEnum3(crate::model::foo_enum::ConstraintViolation),
|
8432 - | /// Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
13350 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`.
|
13351 + | /* RustType.kt:534 */
|
8433 13352 | #[doc(hidden)]
|
13353 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8434 13354 | FooEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
8435 - | /// Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
13355 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`.
|
13356 + | /* RustType.kt:534 */
|
8436 13357 | #[doc(hidden)]
|
13358 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8437 13359 | FooEnumSet(crate::model::foo_enum_set::ConstraintViolation),
|
8438 - | /// Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
13360 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`.
|
13361 + | /* RustType.kt:534 */
|
8439 13362 | #[doc(hidden)]
|
13363 + | /* ServerBuilderConstraintViolations.kt:165 */
|
8440 13364 | FooEnumMap(crate::model::foo_enum_map::ConstraintViolation),
|
13365 + | /* ServerBuilderConstraintViolations.kt:75 */
|
8441 13366 | }
|
13367 + | /* ServerBuilderConstraintViolations.kt:116 */
|
8442 13368 | impl ::std::fmt::Display for ConstraintViolation {
|
13369 + | /* ServerBuilderConstraintViolations.kt:117 */
|
8443 13370 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13371 + | /* ServerBuilderConstraintViolations.kt:118 */
|
8444 13372 | match self {
|
8445 - | ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
8446 - | ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
8447 - | ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
8448 - | ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
8449 - | ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
8450 - | ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
8451 - | }
|
8452 - | }
|
8453 - | }
|
13373 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnum1(_) => write!(f, "constraint violation occurred building member `foo_enum1` when building `JsonEnumsInput`"),
|
13374 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnum2(_) => write!(f, "constraint violation occurred building member `foo_enum2` when building `JsonEnumsInput`"),
|
13375 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnum3(_) => write!(f, "constraint violation occurred building member `foo_enum3` when building `JsonEnumsInput`"),
|
13376 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnumList(_) => write!(f, "constraint violation occurred building member `foo_enum_list` when building `JsonEnumsInput`"),
|
13377 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnumSet(_) => write!(f, "constraint violation occurred building member `foo_enum_set` when building `JsonEnumsInput`"),
|
13378 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::FooEnumMap(_) => write!(f, "constraint violation occurred building member `foo_enum_map` when building `JsonEnumsInput`"),
|
13379 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
13380 + | /* ServerBuilderConstraintViolations.kt:117 */
|
13381 + | }
|
13382 + | /* ServerBuilderConstraintViolations.kt:116 */
|
13383 + | }
|
13384 + | /* ServerBuilderConstraintViolations.kt:83 */
|
8454 13385 | impl ::std::error::Error for ConstraintViolation {}
|
13386 + | /* ServerBuilderConstraintViolations.kt:172 */
|
8455 13387 | impl ConstraintViolation {
|
8456 13388 | pub(crate) fn as_validation_exception_field(
|
8457 13389 | self,
|
8458 13390 | path: ::std::string::String,
|
8459 13391 | ) -> crate::model::ValidationExceptionField {
|
8460 13392 | match self {
|
8461 13393 | ConstraintViolation::FooEnum1(inner) => {
|
8462 13394 | inner.as_validation_exception_field(path + "/fooEnum1")
|
8463 13395 | }
|
8464 13396 | ConstraintViolation::FooEnum2(inner) => {
|
8465 13397 | inner.as_validation_exception_field(path + "/fooEnum2")
|
8466 13398 | }
|
8467 13399 | ConstraintViolation::FooEnum3(inner) => {
|
8468 13400 | inner.as_validation_exception_field(path + "/fooEnum3")
|
8469 13401 | }
|
8470 13402 | ConstraintViolation::FooEnumList(inner) => {
|
8471 13403 | inner.as_validation_exception_field(path + "/fooEnumList")
|
8472 13404 | }
|
8473 13405 | ConstraintViolation::FooEnumSet(inner) => {
|
8474 13406 | inner.as_validation_exception_field(path + "/fooEnumSet")
|
8475 13407 | }
|
8476 13408 | ConstraintViolation::FooEnumMap(inner) => {
|
8477 13409 | inner.as_validation_exception_field(path + "/fooEnumMap")
|
8478 13410 | }
|
8479 13411 | }
|
8480 13412 | }
|
8481 13413 | }
|
13414 + | /* ServerBuilderGenerator.kt:234 */
|
8482 13415 | impl ::std::convert::From<ConstraintViolation>
|
8483 13416 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
8484 13417 | {
|
8485 13418 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
8486 13419 | let first_validation_exception_field =
|
8487 13420 | constraint_violation.as_validation_exception_field("".to_owned());
|
8488 13421 | let validation_exception = crate::error::ValidationException {
|
8489 13422 | message: format!(
|
8490 13423 | "1 validation error detected. {}",
|
8491 13424 | &first_validation_exception_field.message
|
8492 13425 | ),
|
8493 13426 | field_list: Some(vec![first_validation_exception_field]),
|
8494 13427 | };
|
8495 13428 | Self::ConstraintViolation(
|
8496 13429 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
8497 13430 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
8498 13431 | )
|
8499 13432 | }
|
8500 13433 | }
|
13434 + | /* ServerBuilderGenerator.kt:244 */
|
8501 13435 | impl ::std::convert::From<Builder>
|
8502 13436 | for crate::constrained::MaybeConstrained<crate::input::JsonEnumsInput>
|
8503 13437 | {
|
8504 13438 | fn from(builder: Builder) -> Self {
|
8505 13439 | Self::Unconstrained(builder)
|
8506 13440 | }
|
8507 13441 | }
|
13442 + | /* ServerBuilderGenerator.kt:446 */
|
8508 13443 | impl ::std::convert::TryFrom<Builder> for crate::input::JsonEnumsInput {
|
8509 13444 | type Error = ConstraintViolation;
|
8510 13445 |
|
8511 13446 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8512 13447 | builder.build()
|
8513 13448 | }
|
8514 13449 | }
|
8515 - | /// A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13450 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13451 + | /* RustType.kt:534 */
|
8516 13452 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13453 + | /* ServerBuilderGenerator.kt:211 */
|
8517 13454 | pub struct Builder {
|
13455 + | /* ServerBuilderGenerator.kt:308 */
|
8518 13456 | pub(crate) foo_enum1:
|
8519 13457 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13458 + | /* ServerBuilderGenerator.kt:308 */
|
8520 13459 | pub(crate) foo_enum2:
|
8521 13460 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13461 + | /* ServerBuilderGenerator.kt:308 */
|
8522 13462 | pub(crate) foo_enum3:
|
8523 13463 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
13464 + | /* ServerBuilderGenerator.kt:308 */
|
8524 13465 | pub(crate) foo_enum_list: ::std::option::Option<
|
8525 13466 | crate::constrained::MaybeConstrained<
|
8526 13467 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
8527 13468 | >,
|
8528 13469 | >,
|
13470 + | /* ServerBuilderGenerator.kt:308 */
|
8529 13471 | pub(crate) foo_enum_set:
|
8530 13472 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnumSet>>,
|
13473 + | /* ServerBuilderGenerator.kt:308 */
|
8531 13474 | pub(crate) foo_enum_map: ::std::option::Option<
|
8532 13475 | crate::constrained::MaybeConstrained<
|
8533 13476 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
8534 13477 | >,
|
8535 13478 | >,
|
13479 + | /* ServerBuilderGenerator.kt:211 */
|
8536 13480 | }
|
13481 + | /* ServerBuilderGenerator.kt:215 */
|
8537 13482 | impl Builder {
|
13483 + | /* ServerBuilderGenerator.kt:331 */
|
8538 13484 | #[allow(missing_docs)] // documentation missing in model
|
13485 + | /* ServerBuilderGenerator.kt:343 */
|
8539 13486 | pub fn foo_enum1(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8540 - | self.foo_enum1 = input.map(crate::constrained::MaybeConstrained::Constrained);
|
13487 + | /* ServerBuilderGenerator.kt:344 */
|
13488 + | self.foo_enum1 =
|
13489 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13490 + | /* ServerBuilderGenerator.kt:344 */;
|
8541 13491 | self
|
13492 + | /* ServerBuilderGenerator.kt:343 */
|
8542 13493 | }
|
13494 + | /* ServerBuilderGenerator.kt:426 */
|
8543 13495 | #[allow(missing_docs)] // documentation missing in model
|
13496 + | /* ServerBuilderGenerator.kt:428 */
|
8544 13497 | pub(crate) fn set_foo_enum1(
|
8545 13498 | mut self,
|
8546 13499 | input: Option<
|
8547 13500 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8548 13501 | >,
|
8549 13502 | ) -> Self {
|
13503 + | /* ServerBuilderGenerator.kt:429 */
|
8550 13504 | self.foo_enum1 = input.map(|v| v.into());
|
8551 13505 | self
|
13506 + | /* ServerBuilderGenerator.kt:428 */
|
8552 13507 | }
|
13508 + | /* ServerBuilderGenerator.kt:331 */
|
8553 13509 | #[allow(missing_docs)] // documentation missing in model
|
13510 + | /* ServerBuilderGenerator.kt:343 */
|
8554 13511 | pub fn foo_enum2(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8555 - | self.foo_enum2 = input.map(crate::constrained::MaybeConstrained::Constrained);
|
13512 + | /* ServerBuilderGenerator.kt:344 */
|
13513 + | self.foo_enum2 =
|
13514 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13515 + | /* ServerBuilderGenerator.kt:344 */;
|
8556 13516 | self
|
13517 + | /* ServerBuilderGenerator.kt:343 */
|
8557 13518 | }
|
13519 + | /* ServerBuilderGenerator.kt:426 */
|
8558 13520 | #[allow(missing_docs)] // documentation missing in model
|
13521 + | /* ServerBuilderGenerator.kt:428 */
|
8559 13522 | pub(crate) fn set_foo_enum2(
|
8560 13523 | mut self,
|
8561 13524 | input: Option<
|
8562 13525 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8563 13526 | >,
|
8564 13527 | ) -> Self {
|
13528 + | /* ServerBuilderGenerator.kt:429 */
|
8565 13529 | self.foo_enum2 = input.map(|v| v.into());
|
8566 13530 | self
|
13531 + | /* ServerBuilderGenerator.kt:428 */
|
8567 13532 | }
|
13533 + | /* ServerBuilderGenerator.kt:331 */
|
8568 13534 | #[allow(missing_docs)] // documentation missing in model
|
13535 + | /* ServerBuilderGenerator.kt:343 */
|
8569 13536 | pub fn foo_enum3(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
8570 - | self.foo_enum3 = input.map(crate::constrained::MaybeConstrained::Constrained);
|
13537 + | /* ServerBuilderGenerator.kt:344 */
|
13538 + | self.foo_enum3 =
|
13539 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13540 + | /* ServerBuilderGenerator.kt:344 */;
|
8571 13541 | self
|
13542 + | /* ServerBuilderGenerator.kt:343 */
|
8572 13543 | }
|
13544 + | /* ServerBuilderGenerator.kt:426 */
|
8573 13545 | #[allow(missing_docs)] // documentation missing in model
|
13546 + | /* ServerBuilderGenerator.kt:428 */
|
8574 13547 | pub(crate) fn set_foo_enum3(
|
8575 13548 | mut self,
|
8576 13549 | input: Option<
|
8577 13550 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
8578 13551 | >,
|
8579 13552 | ) -> Self {
|
13553 + | /* ServerBuilderGenerator.kt:429 */
|
8580 13554 | self.foo_enum3 = input.map(|v| v.into());
|
8581 13555 | self
|
13556 + | /* ServerBuilderGenerator.kt:428 */
|
8582 13557 | }
|
13558 + | /* ServerBuilderGenerator.kt:331 */
|
8583 13559 | #[allow(missing_docs)] // documentation missing in model
|
13560 + | /* ServerBuilderGenerator.kt:343 */
|
8584 13561 | pub fn foo_enum_list(
|
8585 13562 | mut self,
|
8586 13563 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
8587 13564 | ) -> Self {
|
13565 + | /* ServerBuilderGenerator.kt:344 */
|
8588 13566 | self.foo_enum_list =
|
8589 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
13567 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
13568 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
13569 + | /* ServerBuilderGenerator.kt:363 */)
|
13570 + | /* ServerBuilderGenerator.kt:344 */;
|
8590 13571 | self
|
13572 + | /* ServerBuilderGenerator.kt:343 */
|
8591 13573 | }
|
13574 + | /* ServerBuilderGenerator.kt:426 */
|
8592 13575 | #[allow(missing_docs)] // documentation missing in model
|
13576 + | /* ServerBuilderGenerator.kt:428 */
|
8593 13577 | pub(crate) fn set_foo_enum_list(
|
8594 13578 | mut self,
|
8595 13579 | input: Option<
|
8596 13580 | impl ::std::convert::Into<
|
8597 13581 | crate::constrained::MaybeConstrained<
|
8598 13582 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
8599 13583 | >,
|
8600 13584 | >,
|
8601 13585 | >,
|
8602 13586 | ) -> Self {
|
13587 + | /* ServerBuilderGenerator.kt:429 */
|
8603 13588 | self.foo_enum_list = input.map(|v| v.into());
|
8604 13589 | self
|
13590 + | /* ServerBuilderGenerator.kt:428 */
|
8605 13591 | }
|
13592 + | /* ServerBuilderGenerator.kt:331 */
|
8606 13593 | #[allow(missing_docs)] // documentation missing in model
|
13594 + | /* ServerBuilderGenerator.kt:343 */
|
8607 13595 | pub fn foo_enum_set(
|
8608 13596 | mut self,
|
8609 13597 | input: ::std::option::Option<crate::model::FooEnumSet>,
|
8610 13598 | ) -> Self {
|
8611 - | self.foo_enum_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
13599 + | /* ServerBuilderGenerator.kt:344 */
|
13600 + | self.foo_enum_set =
|
13601 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
13602 + | /* ServerBuilderGenerator.kt:344 */;
|
8612 13603 | self
|
13604 + | /* ServerBuilderGenerator.kt:343 */
|
8613 13605 | }
|
13606 + | /* ServerBuilderGenerator.kt:426 */
|
8614 13607 | #[allow(missing_docs)] // documentation missing in model
|
13608 + | /* ServerBuilderGenerator.kt:428 */
|
8615 13609 | pub(crate) fn set_foo_enum_set(
|
8616 13610 | mut self,
|
8617 13611 | input: Option<
|
8618 13612 | impl ::std::convert::Into<
|
8619 13613 | crate::constrained::MaybeConstrained<crate::model::FooEnumSet>,
|
8620 13614 | >,
|
8621 13615 | >,
|
8622 13616 | ) -> Self {
|
13617 + | /* ServerBuilderGenerator.kt:429 */
|
8623 13618 | self.foo_enum_set = input.map(|v| v.into());
|
8624 13619 | self
|
13620 + | /* ServerBuilderGenerator.kt:428 */
|
8625 13621 | }
|
13622 + | /* ServerBuilderGenerator.kt:331 */
|
8626 13623 | #[allow(missing_docs)] // documentation missing in model
|
13624 + | /* ServerBuilderGenerator.kt:343 */
|
8627 13625 | pub fn foo_enum_map(
|
8628 13626 | mut self,
|
8629 13627 | input: ::std::option::Option<
|
8630 13628 | ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
|
8631 13629 | >,
|
8632 13630 | ) -> Self {
|
13631 + | /* ServerBuilderGenerator.kt:344 */
|
8633 13632 | self.foo_enum_map =
|
8634 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
13633 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
13634 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
13635 + | /* ServerBuilderGenerator.kt:363 */)
|
13636 + | /* ServerBuilderGenerator.kt:344 */;
|
8635 13637 | self
|
13638 + | /* ServerBuilderGenerator.kt:343 */
|
8636 13639 | }
|
13640 + | /* ServerBuilderGenerator.kt:426 */
|
8637 13641 | #[allow(missing_docs)] // documentation missing in model
|
13642 + | /* ServerBuilderGenerator.kt:428 */
|
8638 13643 | pub(crate) fn set_foo_enum_map(
|
8639 13644 | mut self,
|
8640 13645 | input: Option<
|
8641 13646 | impl ::std::convert::Into<
|
8642 13647 | crate::constrained::MaybeConstrained<
|
8643 13648 | crate::constrained::foo_enum_map_constrained::FooEnumMapConstrained,
|
8644 13649 | >,
|
8645 13650 | >,
|
8646 13651 | >,
|
8647 13652 | ) -> Self {
|
13653 + | /* ServerBuilderGenerator.kt:429 */
|
8648 13654 | self.foo_enum_map = input.map(|v| v.into());
|
8649 13655 | self
|
13656 + | /* ServerBuilderGenerator.kt:428 */
|
8650 13657 | }
|
8651 - | /// Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
8652 - | ///
|
13658 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonEnumsInput`](crate::input::JsonEnumsInput).
|
13659 + | /// /* ServerBuilderGenerator.kt:260 */
|
8653 13660 | /// The builder fails to construct a [`JsonEnumsInput`](crate::input::JsonEnumsInput) if a [`ConstraintViolation`] occurs.
|
8654 13661 | ///
|
8655 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
13662 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
13663 + | /* ServerBuilderGenerator.kt:271 */
|
8656 13664 | pub fn build(self) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
8657 13665 | self.build_enforcing_all_constraints()
|
8658 13666 | }
|
13667 + | /* ServerBuilderGenerator.kt:283 */
|
8659 13668 | fn build_enforcing_all_constraints(
|
8660 13669 | self,
|
8661 13670 | ) -> Result<crate::input::JsonEnumsInput, ConstraintViolation> {
|
8662 - | Ok(crate::input::JsonEnumsInput {
|
13671 + | /* ServerBuilderGenerator.kt:287 */
|
13672 + | Ok(
|
13673 + | /* ServerBuilderGenerator.kt:542 */
|
13674 + | crate::input::JsonEnumsInput {
|
13675 + | /* ServerBuilderGenerator.kt:546 */
|
8663 13676 | foo_enum1: self
|
8664 13677 | .foo_enum1
|
13678 + | /* ServerBuilderGenerator.kt:602 */
|
8665 13679 | .map(|v| match v {
|
8666 13680 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8667 13681 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8668 13682 | })
|
13683 + | /* ServerBuilderGenerator.kt:614 */
|
8669 13684 | .map(|res| res.map_err(ConstraintViolation::FooEnum1))
|
8670 13685 | .transpose()?,
|
13686 + | /* ServerBuilderGenerator.kt:546 */
|
8671 13687 | foo_enum2: self
|
8672 13688 | .foo_enum2
|
13689 + | /* ServerBuilderGenerator.kt:602 */
|
8673 13690 | .map(|v| match v {
|
8674 13691 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8675 13692 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8676 13693 | })
|
13694 + | /* ServerBuilderGenerator.kt:614 */
|
8677 13695 | .map(|res| res.map_err(ConstraintViolation::FooEnum2))
|
8678 13696 | .transpose()?,
|
13697 + | /* ServerBuilderGenerator.kt:546 */
|
8679 13698 | foo_enum3: self
|
8680 13699 | .foo_enum3
|
13700 + | /* ServerBuilderGenerator.kt:602 */
|
8681 13701 | .map(|v| match v {
|
8682 13702 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8683 13703 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8684 13704 | })
|
13705 + | /* ServerBuilderGenerator.kt:614 */
|
8685 13706 | .map(|res| res.map_err(ConstraintViolation::FooEnum3))
|
8686 13707 | .transpose()?,
|
13708 + | /* ServerBuilderGenerator.kt:546 */
|
8687 13709 | foo_enum_list: self
|
8688 13710 | .foo_enum_list
|
13711 + | /* ServerBuilderGenerator.kt:602 */
|
8689 13712 | .map(|v| match v {
|
8690 13713 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8691 13714 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8692 13715 | })
|
13716 + | /* ServerBuilderGenerator.kt:614 */
|
8693 13717 | .map(|res| {
|
8694 13718 | res.map(|v| v.into())
|
8695 13719 | .map_err(ConstraintViolation::FooEnumList)
|
8696 13720 | })
|
8697 13721 | .transpose()?,
|
13722 + | /* ServerBuilderGenerator.kt:546 */
|
8698 13723 | foo_enum_set: self
|
8699 13724 | .foo_enum_set
|
13725 + | /* ServerBuilderGenerator.kt:602 */
|
8700 13726 | .map(|v| match v {
|
8701 13727 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8702 13728 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8703 13729 | })
|
13730 + | /* ServerBuilderGenerator.kt:614 */
|
8704 13731 | .map(|res| res.map_err(ConstraintViolation::FooEnumSet))
|
8705 13732 | .transpose()?,
|
13733 + | /* ServerBuilderGenerator.kt:546 */
|
8706 13734 | foo_enum_map: self
|
8707 13735 | .foo_enum_map
|
13736 + | /* ServerBuilderGenerator.kt:602 */
|
8708 13737 | .map(|v| match v {
|
8709 13738 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8710 13739 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8711 13740 | })
|
13741 + | /* ServerBuilderGenerator.kt:614 */
|
8712 13742 | .map(|res| {
|
8713 13743 | res.map(|v| v.into())
|
8714 13744 | .map_err(ConstraintViolation::FooEnumMap)
|
8715 13745 | })
|
8716 13746 | .transpose()?,
|
8717 - | })
|
13747 + | /* ServerBuilderGenerator.kt:542 */
|
13748 + | }, /* ServerBuilderGenerator.kt:287 */
|
13749 + | )
|
13750 + | /* ServerBuilderGenerator.kt:283 */
|
8718 13751 | }
|
13752 + | /* ServerBuilderGenerator.kt:215 */
|
8719 13753 | }
|
13754 + |
|
13755 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8720 13756 | }
|
8721 - | /// See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13757 + | /// /* ServerBuilderGenerator.kt:171 */See [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
8722 13758 | pub mod json_timestamps_input {
|
8723 13759 |
|
13760 + | /* ServerBuilderGenerator.kt:461 */
|
8724 13761 | impl ::std::convert::From<Builder> for crate::input::JsonTimestampsInput {
|
8725 13762 | fn from(builder: Builder) -> Self {
|
8726 13763 | builder.build()
|
8727 13764 | }
|
8728 13765 | }
|
8729 - | /// A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13766 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13767 + | /* RustType.kt:534 */
|
8730 13768 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
13769 + | /* ServerBuilderGenerator.kt:211 */
|
8731 13770 | pub struct Builder {
|
13771 + | /* ServerBuilderGenerator.kt:308 */
|
8732 13772 | pub(crate) normal: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13773 + | /* ServerBuilderGenerator.kt:308 */
|
8733 13774 | pub(crate) date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13775 + | /* ServerBuilderGenerator.kt:308 */
|
8734 13776 | pub(crate) date_time_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13777 + | /* ServerBuilderGenerator.kt:308 */
|
8735 13778 | pub(crate) epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13779 + | /* ServerBuilderGenerator.kt:308 */
|
8736 13780 | pub(crate) epoch_seconds_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13781 + | /* ServerBuilderGenerator.kt:308 */
|
8737 13782 | pub(crate) http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13783 + | /* ServerBuilderGenerator.kt:308 */
|
8738 13784 | pub(crate) http_date_on_target: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13785 + | /* ServerBuilderGenerator.kt:211 */
|
8739 13786 | }
|
13787 + | /* ServerBuilderGenerator.kt:215 */
|
8740 13788 | impl Builder {
|
13789 + | /* ServerBuilderGenerator.kt:331 */
|
8741 13790 | #[allow(missing_docs)] // documentation missing in model
|
13791 + | /* ServerBuilderGenerator.kt:343 */
|
8742 13792 | pub fn normal(
|
8743 13793 | mut self,
|
8744 13794 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8745 13795 | ) -> Self {
|
8746 - | self.normal = input;
|
13796 + | /* ServerBuilderGenerator.kt:344 */
|
13797 + | self.normal =
|
13798 + | /* ServerBuilderGenerator.kt:376 */input
|
13799 + | /* ServerBuilderGenerator.kt:344 */;
|
8747 13800 | self
|
13801 + | /* ServerBuilderGenerator.kt:343 */
|
8748 13802 | }
|
13803 + | /* ServerBuilderGenerator.kt:426 */
|
8749 13804 | #[allow(missing_docs)] // documentation missing in model
|
13805 + | /* ServerBuilderGenerator.kt:428 */
|
8750 13806 | pub(crate) fn set_normal(
|
8751 13807 | mut self,
|
8752 13808 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8753 13809 | ) -> Self {
|
13810 + | /* ServerBuilderGenerator.kt:429 */
|
8754 13811 | self.normal = input.map(|v| v.into());
|
8755 13812 | self
|
13813 + | /* ServerBuilderGenerator.kt:428 */
|
8756 13814 | }
|
13815 + | /* ServerBuilderGenerator.kt:331 */
|
8757 13816 | #[allow(missing_docs)] // documentation missing in model
|
13817 + | /* ServerBuilderGenerator.kt:343 */
|
8758 13818 | pub fn date_time(
|
8759 13819 | mut self,
|
8760 13820 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8761 13821 | ) -> Self {
|
8762 - | self.date_time = input;
|
13822 + | /* ServerBuilderGenerator.kt:344 */
|
13823 + | self.date_time =
|
13824 + | /* ServerBuilderGenerator.kt:376 */input
|
13825 + | /* ServerBuilderGenerator.kt:344 */;
|
8763 13826 | self
|
13827 + | /* ServerBuilderGenerator.kt:343 */
|
8764 13828 | }
|
13829 + | /* ServerBuilderGenerator.kt:426 */
|
8765 13830 | #[allow(missing_docs)] // documentation missing in model
|
13831 + | /* ServerBuilderGenerator.kt:428 */
|
8766 13832 | pub(crate) fn set_date_time(
|
8767 13833 | mut self,
|
8768 13834 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8769 13835 | ) -> Self {
|
13836 + | /* ServerBuilderGenerator.kt:429 */
|
8770 13837 | self.date_time = input.map(|v| v.into());
|
8771 13838 | self
|
13839 + | /* ServerBuilderGenerator.kt:428 */
|
8772 13840 | }
|
13841 + | /* ServerBuilderGenerator.kt:331 */
|
8773 13842 | #[allow(missing_docs)] // documentation missing in model
|
13843 + | /* ServerBuilderGenerator.kt:343 */
|
8774 13844 | pub fn date_time_on_target(
|
8775 13845 | mut self,
|
8776 13846 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8777 13847 | ) -> Self {
|
8778 - | self.date_time_on_target = input;
|
13848 + | /* ServerBuilderGenerator.kt:344 */
|
13849 + | self.date_time_on_target =
|
13850 + | /* ServerBuilderGenerator.kt:376 */input
|
13851 + | /* ServerBuilderGenerator.kt:344 */;
|
8779 13852 | self
|
13853 + | /* ServerBuilderGenerator.kt:343 */
|
8780 13854 | }
|
13855 + | /* ServerBuilderGenerator.kt:426 */
|
8781 13856 | #[allow(missing_docs)] // documentation missing in model
|
13857 + | /* ServerBuilderGenerator.kt:428 */
|
8782 13858 | pub(crate) fn set_date_time_on_target(
|
8783 13859 | mut self,
|
8784 13860 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8785 13861 | ) -> Self {
|
13862 + | /* ServerBuilderGenerator.kt:429 */
|
8786 13863 | self.date_time_on_target = input.map(|v| v.into());
|
8787 13864 | self
|
13865 + | /* ServerBuilderGenerator.kt:428 */
|
8788 13866 | }
|
13867 + | /* ServerBuilderGenerator.kt:331 */
|
8789 13868 | #[allow(missing_docs)] // documentation missing in model
|
13869 + | /* ServerBuilderGenerator.kt:343 */
|
8790 13870 | pub fn epoch_seconds(
|
8791 13871 | mut self,
|
8792 13872 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8793 13873 | ) -> Self {
|
8794 - | self.epoch_seconds = input;
|
13874 + | /* ServerBuilderGenerator.kt:344 */
|
13875 + | self.epoch_seconds =
|
13876 + | /* ServerBuilderGenerator.kt:376 */input
|
13877 + | /* ServerBuilderGenerator.kt:344 */;
|
8795 13878 | self
|
13879 + | /* ServerBuilderGenerator.kt:343 */
|
8796 13880 | }
|
13881 + | /* ServerBuilderGenerator.kt:426 */
|
8797 13882 | #[allow(missing_docs)] // documentation missing in model
|
13883 + | /* ServerBuilderGenerator.kt:428 */
|
8798 13884 | pub(crate) fn set_epoch_seconds(
|
8799 13885 | mut self,
|
8800 13886 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8801 13887 | ) -> Self {
|
13888 + | /* ServerBuilderGenerator.kt:429 */
|
8802 13889 | self.epoch_seconds = input.map(|v| v.into());
|
8803 13890 | self
|
13891 + | /* ServerBuilderGenerator.kt:428 */
|
8804 13892 | }
|
13893 + | /* ServerBuilderGenerator.kt:331 */
|
8805 13894 | #[allow(missing_docs)] // documentation missing in model
|
13895 + | /* ServerBuilderGenerator.kt:343 */
|
8806 13896 | pub fn epoch_seconds_on_target(
|
8807 13897 | mut self,
|
8808 13898 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8809 13899 | ) -> Self {
|
8810 - | self.epoch_seconds_on_target = input;
|
13900 + | /* ServerBuilderGenerator.kt:344 */
|
13901 + | self.epoch_seconds_on_target =
|
13902 + | /* ServerBuilderGenerator.kt:376 */input
|
13903 + | /* ServerBuilderGenerator.kt:344 */;
|
8811 13904 | self
|
13905 + | /* ServerBuilderGenerator.kt:343 */
|
8812 13906 | }
|
13907 + | /* ServerBuilderGenerator.kt:426 */
|
8813 13908 | #[allow(missing_docs)] // documentation missing in model
|
13909 + | /* ServerBuilderGenerator.kt:428 */
|
8814 13910 | pub(crate) fn set_epoch_seconds_on_target(
|
8815 13911 | mut self,
|
8816 13912 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8817 13913 | ) -> Self {
|
13914 + | /* ServerBuilderGenerator.kt:429 */
|
8818 13915 | self.epoch_seconds_on_target = input.map(|v| v.into());
|
8819 13916 | self
|
13917 + | /* ServerBuilderGenerator.kt:428 */
|
8820 13918 | }
|
13919 + | /* ServerBuilderGenerator.kt:331 */
|
8821 13920 | #[allow(missing_docs)] // documentation missing in model
|
13921 + | /* ServerBuilderGenerator.kt:343 */
|
8822 13922 | pub fn http_date(
|
8823 13923 | mut self,
|
8824 13924 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8825 13925 | ) -> Self {
|
8826 - | self.http_date = input;
|
13926 + | /* ServerBuilderGenerator.kt:344 */
|
13927 + | self.http_date =
|
13928 + | /* ServerBuilderGenerator.kt:376 */input
|
13929 + | /* ServerBuilderGenerator.kt:344 */;
|
8827 13930 | self
|
13931 + | /* ServerBuilderGenerator.kt:343 */
|
8828 13932 | }
|
13933 + | /* ServerBuilderGenerator.kt:426 */
|
8829 13934 | #[allow(missing_docs)] // documentation missing in model
|
13935 + | /* ServerBuilderGenerator.kt:428 */
|
8830 13936 | pub(crate) fn set_http_date(
|
8831 13937 | mut self,
|
8832 13938 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8833 13939 | ) -> Self {
|
13940 + | /* ServerBuilderGenerator.kt:429 */
|
8834 13941 | self.http_date = input.map(|v| v.into());
|
8835 13942 | self
|
13943 + | /* ServerBuilderGenerator.kt:428 */
|
8836 13944 | }
|
13945 + | /* ServerBuilderGenerator.kt:331 */
|
8837 13946 | #[allow(missing_docs)] // documentation missing in model
|
13947 + | /* ServerBuilderGenerator.kt:343 */
|
8838 13948 | pub fn http_date_on_target(
|
8839 13949 | mut self,
|
8840 13950 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
8841 13951 | ) -> Self {
|
8842 - | self.http_date_on_target = input;
|
13952 + | /* ServerBuilderGenerator.kt:344 */
|
13953 + | self.http_date_on_target =
|
13954 + | /* ServerBuilderGenerator.kt:376 */input
|
13955 + | /* ServerBuilderGenerator.kt:344 */;
|
8843 13956 | self
|
13957 + | /* ServerBuilderGenerator.kt:343 */
|
8844 13958 | }
|
13959 + | /* ServerBuilderGenerator.kt:426 */
|
8845 13960 | #[allow(missing_docs)] // documentation missing in model
|
13961 + | /* ServerBuilderGenerator.kt:428 */
|
8846 13962 | pub(crate) fn set_http_date_on_target(
|
8847 13963 | mut self,
|
8848 13964 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
8849 13965 | ) -> Self {
|
13966 + | /* ServerBuilderGenerator.kt:429 */
|
8850 13967 | self.http_date_on_target = input.map(|v| v.into());
|
8851 13968 | self
|
13969 + | /* ServerBuilderGenerator.kt:428 */
|
8852 13970 | }
|
8853 - | /// Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13971 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`JsonTimestampsInput`](crate::input::JsonTimestampsInput).
|
13972 + | /* ServerBuilderGenerator.kt:271 */
|
8854 13973 | pub fn build(self) -> crate::input::JsonTimestampsInput {
|
8855 13974 | self.build_enforcing_all_constraints()
|
8856 13975 | }
|
13976 + | /* ServerBuilderGenerator.kt:283 */
|
8857 13977 | fn build_enforcing_all_constraints(self) -> crate::input::JsonTimestampsInput {
|
13978 + | /* ServerBuilderGenerator.kt:542 */
|
8858 13979 | crate::input::JsonTimestampsInput {
|
13980 + | /* ServerBuilderGenerator.kt:546 */
|
8859 13981 | normal: self.normal,
|
13982 + | /* ServerBuilderGenerator.kt:546 */
|
8860 13983 | date_time: self.date_time,
|
13984 + | /* ServerBuilderGenerator.kt:546 */
|
8861 13985 | date_time_on_target: self.date_time_on_target,
|
13986 + | /* ServerBuilderGenerator.kt:546 */
|
8862 13987 | epoch_seconds: self.epoch_seconds,
|
13988 + | /* ServerBuilderGenerator.kt:546 */
|
8863 13989 | epoch_seconds_on_target: self.epoch_seconds_on_target,
|
13990 + | /* ServerBuilderGenerator.kt:546 */
|
8864 13991 | http_date: self.http_date,
|
13992 + | /* ServerBuilderGenerator.kt:546 */
|
8865 13993 | http_date_on_target: self.http_date_on_target,
|
13994 + | /* ServerBuilderGenerator.kt:542 */
|
8866 13995 | }
|
13996 + | /* ServerBuilderGenerator.kt:283 */
|
8867 13997 | }
|
13998 + | /* ServerBuilderGenerator.kt:215 */
|
8868 13999 | }
|
14000 + |
|
14001 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
8869 14002 | }
|
8870 - | /// See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14003 + | /// /* ServerBuilderGenerator.kt:171 */See [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
8871 14004 | pub mod simple_scalar_properties_input {
|
8872 14005 |
|
14006 + | /* ServerBuilderGenerator.kt:461 */
|
8873 14007 | impl ::std::convert::From<Builder> for crate::input::SimpleScalarPropertiesInput {
|
8874 14008 | fn from(builder: Builder) -> Self {
|
8875 14009 | builder.build()
|
8876 14010 | }
|
8877 14011 | }
|
8878 - | /// A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14012 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14013 + | /* RustType.kt:534 */
|
8879 14014 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14015 + | /* ServerBuilderGenerator.kt:211 */
|
8880 14016 | pub struct Builder {
|
14017 + | /* ServerBuilderGenerator.kt:308 */
|
8881 14018 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14019 + | /* ServerBuilderGenerator.kt:308 */
|
8882 14020 | pub(crate) string_value: ::std::option::Option<::std::string::String>,
|
14021 + | /* ServerBuilderGenerator.kt:308 */
|
8883 14022 | pub(crate) true_boolean_value: ::std::option::Option<bool>,
|
14023 + | /* ServerBuilderGenerator.kt:308 */
|
8884 14024 | pub(crate) false_boolean_value: ::std::option::Option<bool>,
|
8885 - | pub(crate) byte_value: ::std::option::Option<i8>,
|
14025 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) byte_value: ::std::option::Option<i8>,
|
14026 + | /* ServerBuilderGenerator.kt:308 */
|
8886 14027 | pub(crate) short_value: ::std::option::Option<i16>,
|
14028 + | /* ServerBuilderGenerator.kt:308 */
|
8887 14029 | pub(crate) integer_value: ::std::option::Option<i32>,
|
14030 + | /* ServerBuilderGenerator.kt:308 */
|
8888 14031 | pub(crate) long_value: ::std::option::Option<i64>,
|
14032 + | /* ServerBuilderGenerator.kt:308 */
|
8889 14033 | pub(crate) float_value: ::std::option::Option<f32>,
|
14034 + | /* ServerBuilderGenerator.kt:308 */
|
8890 14035 | pub(crate) double_value: ::std::option::Option<f64>,
|
14036 + | /* ServerBuilderGenerator.kt:211 */
|
8891 14037 | }
|
14038 + | /* ServerBuilderGenerator.kt:215 */
|
8892 14039 | impl Builder {
|
14040 + | /* ServerBuilderGenerator.kt:331 */
|
8893 14041 | #[allow(missing_docs)] // documentation missing in model
|
14042 + | /* ServerBuilderGenerator.kt:343 */
|
8894 14043 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8895 - | self.foo = input;
|
14044 + | /* ServerBuilderGenerator.kt:344 */
|
14045 + | self.foo =
|
14046 + | /* ServerBuilderGenerator.kt:376 */input
|
14047 + | /* ServerBuilderGenerator.kt:344 */;
|
8896 14048 | self
|
14049 + | /* ServerBuilderGenerator.kt:343 */
|
8897 14050 | }
|
14051 + | /* ServerBuilderGenerator.kt:426 */
|
8898 14052 | #[allow(missing_docs)] // documentation missing in model
|
14053 + | /* ServerBuilderGenerator.kt:428 */
|
8899 14054 | pub(crate) fn set_foo(
|
8900 14055 | mut self,
|
8901 14056 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8902 14057 | ) -> Self {
|
14058 + | /* ServerBuilderGenerator.kt:429 */
|
8903 14059 | self.foo = input.map(|v| v.into());
|
8904 14060 | self
|
14061 + | /* ServerBuilderGenerator.kt:428 */
|
8905 14062 | }
|
14063 + | /* ServerBuilderGenerator.kt:331 */
|
8906 14064 | #[allow(missing_docs)] // documentation missing in model
|
14065 + | /* ServerBuilderGenerator.kt:343 */
|
8907 14066 | pub fn string_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
8908 - | self.string_value = input;
|
14067 + | /* ServerBuilderGenerator.kt:344 */
|
14068 + | self.string_value =
|
14069 + | /* ServerBuilderGenerator.kt:376 */input
|
14070 + | /* ServerBuilderGenerator.kt:344 */;
|
8909 14071 | self
|
14072 + | /* ServerBuilderGenerator.kt:343 */
|
8910 14073 | }
|
14074 + | /* ServerBuilderGenerator.kt:426 */
|
8911 14075 | #[allow(missing_docs)] // documentation missing in model
|
14076 + | /* ServerBuilderGenerator.kt:428 */
|
8912 14077 | pub(crate) fn set_string_value(
|
8913 14078 | mut self,
|
8914 14079 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
8915 14080 | ) -> Self {
|
14081 + | /* ServerBuilderGenerator.kt:429 */
|
8916 14082 | self.string_value = input.map(|v| v.into());
|
8917 14083 | self
|
14084 + | /* ServerBuilderGenerator.kt:428 */
|
8918 14085 | }
|
14086 + | /* ServerBuilderGenerator.kt:331 */
|
8919 14087 | #[allow(missing_docs)] // documentation missing in model
|
14088 + | /* ServerBuilderGenerator.kt:343 */
|
8920 14089 | pub fn true_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
8921 - | self.true_boolean_value = input;
|
14090 + | /* ServerBuilderGenerator.kt:344 */
|
14091 + | self.true_boolean_value =
|
14092 + | /* ServerBuilderGenerator.kt:376 */input
|
14093 + | /* ServerBuilderGenerator.kt:344 */;
|
8922 14094 | self
|
14095 + | /* ServerBuilderGenerator.kt:343 */
|
8923 14096 | }
|
14097 + | /* ServerBuilderGenerator.kt:426 */
|
8924 14098 | #[allow(missing_docs)] // documentation missing in model
|
14099 + | /* ServerBuilderGenerator.kt:428 */
|
8925 14100 | pub(crate) fn set_true_boolean_value(
|
8926 14101 | mut self,
|
8927 14102 | input: Option<impl ::std::convert::Into<bool>>,
|
8928 14103 | ) -> Self {
|
14104 + | /* ServerBuilderGenerator.kt:429 */
|
8929 14105 | self.true_boolean_value = input.map(|v| v.into());
|
8930 14106 | self
|
14107 + | /* ServerBuilderGenerator.kt:428 */
|
8931 14108 | }
|
14109 + | /* ServerBuilderGenerator.kt:331 */
|
8932 14110 | #[allow(missing_docs)] // documentation missing in model
|
14111 + | /* ServerBuilderGenerator.kt:343 */
|
8933 14112 | pub fn false_boolean_value(mut self, input: ::std::option::Option<bool>) -> Self {
|
8934 - | self.false_boolean_value = input;
|
14113 + | /* ServerBuilderGenerator.kt:344 */
|
14114 + | self.false_boolean_value =
|
14115 + | /* ServerBuilderGenerator.kt:376 */input
|
14116 + | /* ServerBuilderGenerator.kt:344 */;
|
8935 14117 | self
|
14118 + | /* ServerBuilderGenerator.kt:343 */
|
8936 14119 | }
|
14120 + | /* ServerBuilderGenerator.kt:426 */
|
8937 14121 | #[allow(missing_docs)] // documentation missing in model
|
14122 + | /* ServerBuilderGenerator.kt:428 */
|
8938 14123 | pub(crate) fn set_false_boolean_value(
|
8939 14124 | mut self,
|
8940 14125 | input: Option<impl ::std::convert::Into<bool>>,
|
8941 14126 | ) -> Self {
|
14127 + | /* ServerBuilderGenerator.kt:429 */
|
8942 14128 | self.false_boolean_value = input.map(|v| v.into());
|
8943 14129 | self
|
14130 + | /* ServerBuilderGenerator.kt:428 */
|
8944 14131 | }
|
14132 + | /* ServerBuilderGenerator.kt:331 */
|
8945 14133 | #[allow(missing_docs)] // documentation missing in model
|
14134 + | /* ServerBuilderGenerator.kt:343 */
|
8946 14135 | pub fn byte_value(mut self, input: ::std::option::Option<i8>) -> Self {
|
8947 - | self.byte_value = input;
|
14136 + | /* ServerBuilderGenerator.kt:344 */
|
14137 + | self.byte_value =
|
14138 + | /* ServerBuilderGenerator.kt:376 */input
|
14139 + | /* ServerBuilderGenerator.kt:344 */;
|
8948 14140 | self
|
14141 + | /* ServerBuilderGenerator.kt:343 */
|
8949 14142 | }
|
14143 + | /* ServerBuilderGenerator.kt:426 */
|
8950 14144 | #[allow(missing_docs)] // documentation missing in model
|
14145 + | /* ServerBuilderGenerator.kt:428 */
|
8951 14146 | pub(crate) fn set_byte_value(
|
8952 14147 | mut self,
|
8953 14148 | input: Option<impl ::std::convert::Into<i8>>,
|
8954 14149 | ) -> Self {
|
14150 + | /* ServerBuilderGenerator.kt:429 */
|
8955 14151 | self.byte_value = input.map(|v| v.into());
|
8956 14152 | self
|
14153 + | /* ServerBuilderGenerator.kt:428 */
|
8957 14154 | }
|
14155 + | /* ServerBuilderGenerator.kt:331 */
|
8958 14156 | #[allow(missing_docs)] // documentation missing in model
|
14157 + | /* ServerBuilderGenerator.kt:343 */
|
8959 14158 | pub fn short_value(mut self, input: ::std::option::Option<i16>) -> Self {
|
8960 - | self.short_value = input;
|
14159 + | /* ServerBuilderGenerator.kt:344 */
|
14160 + | self.short_value =
|
14161 + | /* ServerBuilderGenerator.kt:376 */input
|
14162 + | /* ServerBuilderGenerator.kt:344 */;
|
8961 14163 | self
|
14164 + | /* ServerBuilderGenerator.kt:343 */
|
8962 14165 | }
|
14166 + | /* ServerBuilderGenerator.kt:426 */
|
8963 14167 | #[allow(missing_docs)] // documentation missing in model
|
14168 + | /* ServerBuilderGenerator.kt:428 */
|
8964 14169 | pub(crate) fn set_short_value(
|
8965 14170 | mut self,
|
8966 14171 | input: Option<impl ::std::convert::Into<i16>>,
|
8967 14172 | ) -> Self {
|
14173 + | /* ServerBuilderGenerator.kt:429 */
|
8968 14174 | self.short_value = input.map(|v| v.into());
|
8969 14175 | self
|
14176 + | /* ServerBuilderGenerator.kt:428 */
|
8970 14177 | }
|
14178 + | /* ServerBuilderGenerator.kt:331 */
|
8971 14179 | #[allow(missing_docs)] // documentation missing in model
|
14180 + | /* ServerBuilderGenerator.kt:343 */
|
8972 14181 | pub fn integer_value(mut self, input: ::std::option::Option<i32>) -> Self {
|
8973 - | self.integer_value = input;
|
14182 + | /* ServerBuilderGenerator.kt:344 */
|
14183 + | self.integer_value =
|
14184 + | /* ServerBuilderGenerator.kt:376 */input
|
14185 + | /* ServerBuilderGenerator.kt:344 */;
|
8974 14186 | self
|
14187 + | /* ServerBuilderGenerator.kt:343 */
|
8975 14188 | }
|
14189 + | /* ServerBuilderGenerator.kt:426 */
|
8976 14190 | #[allow(missing_docs)] // documentation missing in model
|
14191 + | /* ServerBuilderGenerator.kt:428 */
|
8977 14192 | pub(crate) fn set_integer_value(
|
8978 14193 | mut self,
|
8979 14194 | input: Option<impl ::std::convert::Into<i32>>,
|
8980 14195 | ) -> Self {
|
14196 + | /* ServerBuilderGenerator.kt:429 */
|
8981 14197 | self.integer_value = input.map(|v| v.into());
|
8982 14198 | self
|
14199 + | /* ServerBuilderGenerator.kt:428 */
|
8983 14200 | }
|
14201 + | /* ServerBuilderGenerator.kt:331 */
|
8984 14202 | #[allow(missing_docs)] // documentation missing in model
|
14203 + | /* ServerBuilderGenerator.kt:343 */
|
8985 14204 | pub fn long_value(mut self, input: ::std::option::Option<i64>) -> Self {
|
8986 - | self.long_value = input;
|
14205 + | /* ServerBuilderGenerator.kt:344 */
|
14206 + | self.long_value =
|
14207 + | /* ServerBuilderGenerator.kt:376 */input
|
14208 + | /* ServerBuilderGenerator.kt:344 */;
|
8987 14209 | self
|
14210 + | /* ServerBuilderGenerator.kt:343 */
|
8988 14211 | }
|
14212 + | /* ServerBuilderGenerator.kt:426 */
|
8989 14213 | #[allow(missing_docs)] // documentation missing in model
|
14214 + | /* ServerBuilderGenerator.kt:428 */
|
8990 14215 | pub(crate) fn set_long_value(
|
8991 14216 | mut self,
|
8992 14217 | input: Option<impl ::std::convert::Into<i64>>,
|
8993 14218 | ) -> Self {
|
14219 + | /* ServerBuilderGenerator.kt:429 */
|
8994 14220 | self.long_value = input.map(|v| v.into());
|
8995 14221 | self
|
14222 + | /* ServerBuilderGenerator.kt:428 */
|
8996 14223 | }
|
14224 + | /* ServerBuilderGenerator.kt:331 */
|
8997 14225 | #[allow(missing_docs)] // documentation missing in model
|
14226 + | /* ServerBuilderGenerator.kt:343 */
|
8998 14227 | pub fn float_value(mut self, input: ::std::option::Option<f32>) -> Self {
|
8999 - | self.float_value = input;
|
14228 + | /* ServerBuilderGenerator.kt:344 */
|
14229 + | self.float_value =
|
14230 + | /* ServerBuilderGenerator.kt:376 */input
|
14231 + | /* ServerBuilderGenerator.kt:344 */;
|
9000 14232 | self
|
14233 + | /* ServerBuilderGenerator.kt:343 */
|
9001 14234 | }
|
14235 + | /* ServerBuilderGenerator.kt:426 */
|
9002 14236 | #[allow(missing_docs)] // documentation missing in model
|
14237 + | /* ServerBuilderGenerator.kt:428 */
|
9003 14238 | pub(crate) fn set_float_value(
|
9004 14239 | mut self,
|
9005 14240 | input: Option<impl ::std::convert::Into<f32>>,
|
9006 14241 | ) -> Self {
|
14242 + | /* ServerBuilderGenerator.kt:429 */
|
9007 14243 | self.float_value = input.map(|v| v.into());
|
9008 14244 | self
|
14245 + | /* ServerBuilderGenerator.kt:428 */
|
9009 14246 | }
|
14247 + | /* ServerBuilderGenerator.kt:331 */
|
9010 14248 | #[allow(missing_docs)] // documentation missing in model
|
14249 + | /* ServerBuilderGenerator.kt:343 */
|
9011 14250 | pub fn double_value(mut self, input: ::std::option::Option<f64>) -> Self {
|
9012 - | self.double_value = input;
|
14251 + | /* ServerBuilderGenerator.kt:344 */
|
14252 + | self.double_value =
|
14253 + | /* ServerBuilderGenerator.kt:376 */input
|
14254 + | /* ServerBuilderGenerator.kt:344 */;
|
9013 14255 | self
|
14256 + | /* ServerBuilderGenerator.kt:343 */
|
9014 14257 | }
|
14258 + | /* ServerBuilderGenerator.kt:426 */
|
9015 14259 | #[allow(missing_docs)] // documentation missing in model
|
14260 + | /* ServerBuilderGenerator.kt:428 */
|
9016 14261 | pub(crate) fn set_double_value(
|
9017 14262 | mut self,
|
9018 14263 | input: Option<impl ::std::convert::Into<f64>>,
|
9019 14264 | ) -> Self {
|
14265 + | /* ServerBuilderGenerator.kt:429 */
|
9020 14266 | self.double_value = input.map(|v| v.into());
|
9021 14267 | self
|
14268 + | /* ServerBuilderGenerator.kt:428 */
|
9022 14269 | }
|
9023 - | /// Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14270 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput).
|
14271 + | /* ServerBuilderGenerator.kt:271 */
|
9024 14272 | pub fn build(self) -> crate::input::SimpleScalarPropertiesInput {
|
9025 14273 | self.build_enforcing_all_constraints()
|
9026 14274 | }
|
14275 + | /* ServerBuilderGenerator.kt:283 */
|
9027 14276 | fn build_enforcing_all_constraints(self) -> crate::input::SimpleScalarPropertiesInput {
|
14277 + | /* ServerBuilderGenerator.kt:542 */
|
9028 14278 | crate::input::SimpleScalarPropertiesInput {
|
14279 + | /* ServerBuilderGenerator.kt:546 */
|
9029 14280 | foo: self.foo,
|
14281 + | /* ServerBuilderGenerator.kt:546 */
|
9030 14282 | string_value: self.string_value,
|
14283 + | /* ServerBuilderGenerator.kt:546 */
|
9031 14284 | true_boolean_value: self.true_boolean_value,
|
14285 + | /* ServerBuilderGenerator.kt:546 */
|
9032 14286 | false_boolean_value: self.false_boolean_value,
|
14287 + | /* ServerBuilderGenerator.kt:546 */
|
9033 14288 | byte_value: self.byte_value,
|
14289 + | /* ServerBuilderGenerator.kt:546 */
|
9034 14290 | short_value: self.short_value,
|
14291 + | /* ServerBuilderGenerator.kt:546 */
|
9035 14292 | integer_value: self.integer_value,
|
14293 + | /* ServerBuilderGenerator.kt:546 */
|
9036 14294 | long_value: self.long_value,
|
14295 + | /* ServerBuilderGenerator.kt:546 */
|
9037 14296 | float_value: self.float_value,
|
14297 + | /* ServerBuilderGenerator.kt:546 */
|
9038 14298 | double_value: self.double_value,
|
14299 + | /* ServerBuilderGenerator.kt:542 */
|
9039 14300 | }
|
14301 + | /* ServerBuilderGenerator.kt:283 */
|
9040 14302 | }
|
14303 + | /* ServerBuilderGenerator.kt:215 */
|
9041 14304 | }
|
14305 + |
|
14306 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9042 14307 | }
|
9043 - | /// See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14308 + | /// /* ServerBuilderGenerator.kt:171 */See [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
9044 14309 | pub mod greeting_with_errors_input {
|
9045 14310 |
|
14311 + | /* ServerBuilderGenerator.kt:461 */
|
9046 14312 | impl ::std::convert::From<Builder> for crate::input::GreetingWithErrorsInput {
|
9047 14313 | fn from(builder: Builder) -> Self {
|
9048 14314 | builder.build()
|
9049 14315 | }
|
9050 14316 | }
|
9051 - | /// A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14317 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14318 + | /* RustType.kt:534 */
|
9052 14319 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9053 - | pub struct Builder {}
|
14320 + | /* ServerBuilderGenerator.kt:211 */
|
14321 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14322 + | /* ServerBuilderGenerator.kt:215 */
|
9054 14323 | impl Builder {
|
9055 - | /// Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14324 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput).
|
14325 + | /* ServerBuilderGenerator.kt:271 */
|
9056 14326 | pub fn build(self) -> crate::input::GreetingWithErrorsInput {
|
9057 14327 | self.build_enforcing_all_constraints()
|
9058 14328 | }
|
14329 + | /* ServerBuilderGenerator.kt:283 */
|
9059 14330 | fn build_enforcing_all_constraints(self) -> crate::input::GreetingWithErrorsInput {
|
9060 - | crate::input::GreetingWithErrorsInput {}
|
14331 + | /* ServerBuilderGenerator.kt:542 */
|
14332 + | crate::input::GreetingWithErrorsInput {
|
14333 + | /* ServerBuilderGenerator.kt:542 */}
|
14334 + | /* ServerBuilderGenerator.kt:283 */
|
9061 14335 | }
|
14336 + | /* ServerBuilderGenerator.kt:215 */
|
9062 14337 | }
|
14338 + |
|
14339 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9063 14340 | }
|
9064 - | /// See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14341 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
9065 14342 | pub mod streaming_traits_with_media_type_input {
|
9066 14343 |
|
14344 + | /* ServerBuilderGenerator.kt:461 */
|
9067 14345 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsWithMediaTypeInput {
|
9068 14346 | fn from(builder: Builder) -> Self {
|
9069 14347 | builder.build()
|
9070 14348 | }
|
9071 14349 | }
|
9072 - | /// A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14350 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14351 + | /* RustType.kt:534 */
|
9073 14352 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14353 + | /* ServerBuilderGenerator.kt:211 */
|
9074 14354 | pub struct Builder {
|
14355 + | /* ServerBuilderGenerator.kt:308 */
|
9075 14356 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14357 + | /* ServerBuilderGenerator.kt:308 */
|
9076 14358 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14359 + | /* ServerBuilderGenerator.kt:211 */
|
9077 14360 | }
|
14361 + | /* ServerBuilderGenerator.kt:215 */
|
9078 14362 | impl Builder {
|
14363 + | /* ServerBuilderGenerator.kt:331 */
|
9079 14364 | #[allow(missing_docs)] // documentation missing in model
|
14365 + | /* ServerBuilderGenerator.kt:343 */
|
9080 14366 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9081 - | self.foo = input;
|
14367 + | /* ServerBuilderGenerator.kt:344 */
|
14368 + | self.foo =
|
14369 + | /* ServerBuilderGenerator.kt:376 */input
|
14370 + | /* ServerBuilderGenerator.kt:344 */;
|
9082 14371 | self
|
14372 + | /* ServerBuilderGenerator.kt:343 */
|
9083 14373 | }
|
14374 + | /* ServerBuilderGenerator.kt:426 */
|
9084 14375 | #[allow(missing_docs)] // documentation missing in model
|
14376 + | /* ServerBuilderGenerator.kt:428 */
|
9085 14377 | pub(crate) fn set_foo(
|
9086 14378 | mut self,
|
9087 14379 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9088 14380 | ) -> Self {
|
14381 + | /* ServerBuilderGenerator.kt:429 */
|
9089 14382 | self.foo = input.map(|v| v.into());
|
9090 14383 | self
|
14384 + | /* ServerBuilderGenerator.kt:428 */
|
9091 14385 | }
|
14386 + | /* ServerBuilderGenerator.kt:331 */
|
9092 14387 | #[allow(missing_docs)] // documentation missing in model
|
14388 + | /* ServerBuilderGenerator.kt:343 */
|
9093 14389 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
9094 - | self.blob = Some(input);
|
14390 + | /* ServerBuilderGenerator.kt:344 */
|
14391 + | self.blob =
|
14392 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14393 + | /* ServerBuilderGenerator.kt:376 */input
|
14394 + | /* ServerBuilderGenerator.kt:345 */)
|
14395 + | /* ServerBuilderGenerator.kt:344 */;
|
9095 14396 | self
|
14397 + | /* ServerBuilderGenerator.kt:343 */
|
9096 14398 | }
|
14399 + | /* ServerBuilderGenerator.kt:426 */
|
9097 14400 | #[allow(missing_docs)] // documentation missing in model
|
14401 + | /* ServerBuilderGenerator.kt:428 */
|
9098 14402 | pub(crate) fn set_blob(
|
9099 14403 | mut self,
|
9100 14404 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9101 14405 | ) -> Self {
|
14406 + | /* ServerBuilderGenerator.kt:429 */
|
9102 14407 | self.blob = Some(input.into());
|
9103 14408 | self
|
14409 + | /* ServerBuilderGenerator.kt:428 */
|
9104 14410 | }
|
9105 - | /// Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14411 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput).
|
14412 + | /* ServerBuilderGenerator.kt:271 */
|
9106 14413 | pub fn build(self) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
9107 14414 | self.build_enforcing_all_constraints()
|
9108 14415 | }
|
14416 + | /* ServerBuilderGenerator.kt:283 */
|
9109 14417 | fn build_enforcing_all_constraints(
|
9110 14418 | self,
|
9111 14419 | ) -> crate::input::StreamingTraitsWithMediaTypeInput {
|
14420 + | /* ServerBuilderGenerator.kt:542 */
|
9112 14421 | crate::input::StreamingTraitsWithMediaTypeInput {
|
14422 + | /* ServerBuilderGenerator.kt:546 */
|
9113 14423 | foo: self.foo,
|
9114 - | blob: self.blob.unwrap_or_default(),
|
14424 + | /* ServerBuilderGenerator.kt:546 */
|
14425 + | blob: self
|
14426 + | .blob
|
14427 + | /* ServerBuilderGeneratorCommon.kt:95 */
|
14428 + | .unwrap_or_default(),
|
14429 + | /* ServerBuilderGenerator.kt:542 */
|
9115 14430 | }
|
14431 + | /* ServerBuilderGenerator.kt:283 */
|
9116 14432 | }
|
14433 + | /* ServerBuilderGenerator.kt:215 */
|
9117 14434 | }
|
14435 + |
|
14436 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9118 14437 | }
|
9119 - | /// See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14438 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
9120 14439 | pub mod streaming_traits_require_length_input {
|
9121 14440 |
|
14441 + | /* ServerBuilderGenerator.kt:461 */
|
9122 14442 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsRequireLengthInput {
|
9123 14443 | fn from(builder: Builder) -> Self {
|
9124 14444 | builder.build()
|
9125 14445 | }
|
9126 14446 | }
|
9127 - | /// A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14447 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14448 + | /* RustType.kt:534 */
|
9128 14449 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14450 + | /* ServerBuilderGenerator.kt:211 */
|
9129 14451 | pub struct Builder {
|
14452 + | /* ServerBuilderGenerator.kt:308 */
|
9130 14453 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14454 + | /* ServerBuilderGenerator.kt:308 */
|
9131 14455 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14456 + | /* ServerBuilderGenerator.kt:211 */
|
9132 14457 | }
|
14458 + | /* ServerBuilderGenerator.kt:215 */
|
9133 14459 | impl Builder {
|
14460 + | /* ServerBuilderGenerator.kt:331 */
|
9134 14461 | #[allow(missing_docs)] // documentation missing in model
|
14462 + | /* ServerBuilderGenerator.kt:343 */
|
9135 14463 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9136 - | self.foo = input;
|
14464 + | /* ServerBuilderGenerator.kt:344 */
|
14465 + | self.foo =
|
14466 + | /* ServerBuilderGenerator.kt:376 */input
|
14467 + | /* ServerBuilderGenerator.kt:344 */;
|
9137 14468 | self
|
14469 + | /* ServerBuilderGenerator.kt:343 */
|
9138 14470 | }
|
14471 + | /* ServerBuilderGenerator.kt:426 */
|
9139 14472 | #[allow(missing_docs)] // documentation missing in model
|
14473 + | /* ServerBuilderGenerator.kt:428 */
|
9140 14474 | pub(crate) fn set_foo(
|
9141 14475 | mut self,
|
9142 14476 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9143 14477 | ) -> Self {
|
14478 + | /* ServerBuilderGenerator.kt:429 */
|
9144 14479 | self.foo = input.map(|v| v.into());
|
9145 14480 | self
|
14481 + | /* ServerBuilderGenerator.kt:428 */
|
9146 14482 | }
|
14483 + | /* ServerBuilderGenerator.kt:331 */
|
9147 14484 | #[allow(missing_docs)] // documentation missing in model
|
14485 + | /* ServerBuilderGenerator.kt:343 */
|
9148 14486 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
9149 - | self.blob = Some(input);
|
14487 + | /* ServerBuilderGenerator.kt:344 */
|
14488 + | self.blob =
|
14489 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14490 + | /* ServerBuilderGenerator.kt:376 */input
|
14491 + | /* ServerBuilderGenerator.kt:345 */)
|
14492 + | /* ServerBuilderGenerator.kt:344 */;
|
9150 14493 | self
|
14494 + | /* ServerBuilderGenerator.kt:343 */
|
9151 14495 | }
|
14496 + | /* ServerBuilderGenerator.kt:426 */
|
9152 14497 | #[allow(missing_docs)] // documentation missing in model
|
14498 + | /* ServerBuilderGenerator.kt:428 */
|
9153 14499 | pub(crate) fn set_blob(
|
9154 14500 | mut self,
|
9155 14501 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9156 14502 | ) -> Self {
|
14503 + | /* ServerBuilderGenerator.kt:429 */
|
9157 14504 | self.blob = Some(input.into());
|
9158 14505 | self
|
14506 + | /* ServerBuilderGenerator.kt:428 */
|
9159 14507 | }
|
9160 - | /// Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14508 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput).
|
14509 + | /* ServerBuilderGenerator.kt:271 */
|
9161 14510 | pub fn build(self) -> crate::input::StreamingTraitsRequireLengthInput {
|
9162 14511 | self.build_enforcing_all_constraints()
|
9163 14512 | }
|
14513 + | /* ServerBuilderGenerator.kt:283 */
|
9164 14514 | fn build_enforcing_all_constraints(
|
9165 14515 | self,
|
9166 14516 | ) -> crate::input::StreamingTraitsRequireLengthInput {
|
14517 + | /* ServerBuilderGenerator.kt:542 */
|
9167 14518 | crate::input::StreamingTraitsRequireLengthInput {
|
14519 + | /* ServerBuilderGenerator.kt:546 */
|
9168 14520 | foo: self.foo,
|
9169 - | blob: self.blob.unwrap_or_default(),
|
14521 + | /* ServerBuilderGenerator.kt:546 */
|
14522 + | blob: self
|
14523 + | .blob
|
14524 + | /* ServerBuilderGeneratorCommon.kt:95 */
|
14525 + | .unwrap_or_default(),
|
14526 + | /* ServerBuilderGenerator.kt:542 */
|
9170 14527 | }
|
14528 + | /* ServerBuilderGenerator.kt:283 */
|
9171 14529 | }
|
14530 + | /* ServerBuilderGenerator.kt:215 */
|
9172 14531 | }
|
14532 + |
|
14533 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9173 14534 | }
|
9174 - | /// See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14535 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
9175 14536 | pub mod streaming_traits_input {
|
9176 14537 |
|
14538 + | /* ServerBuilderGenerator.kt:461 */
|
9177 14539 | impl ::std::convert::From<Builder> for crate::input::StreamingTraitsInput {
|
9178 14540 | fn from(builder: Builder) -> Self {
|
9179 14541 | builder.build()
|
9180 14542 | }
|
9181 14543 | }
|
9182 - | /// A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14544 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14545 + | /* RustType.kt:534 */
|
9183 14546 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
14547 + | /* ServerBuilderGenerator.kt:211 */
|
9184 14548 | pub struct Builder {
|
14549 + | /* ServerBuilderGenerator.kt:308 */
|
9185 14550 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
14551 + | /* ServerBuilderGenerator.kt:308 */
|
9186 14552 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
14553 + | /* ServerBuilderGenerator.kt:211 */
|
9187 14554 | }
|
14555 + | /* ServerBuilderGenerator.kt:215 */
|
9188 14556 | impl Builder {
|
14557 + | /* ServerBuilderGenerator.kt:331 */
|
9189 14558 | #[allow(missing_docs)] // documentation missing in model
|
14559 + | /* ServerBuilderGenerator.kt:343 */
|
9190 14560 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9191 - | self.foo = input;
|
14561 + | /* ServerBuilderGenerator.kt:344 */
|
14562 + | self.foo =
|
14563 + | /* ServerBuilderGenerator.kt:376 */input
|
14564 + | /* ServerBuilderGenerator.kt:344 */;
|
9192 14565 | self
|
14566 + | /* ServerBuilderGenerator.kt:343 */
|
9193 14567 | }
|
14568 + | /* ServerBuilderGenerator.kt:426 */
|
9194 14569 | #[allow(missing_docs)] // documentation missing in model
|
14570 + | /* ServerBuilderGenerator.kt:428 */
|
9195 14571 | pub(crate) fn set_foo(
|
9196 14572 | mut self,
|
9197 14573 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9198 14574 | ) -> Self {
|
14575 + | /* ServerBuilderGenerator.kt:429 */
|
9199 14576 | self.foo = input.map(|v| v.into());
|
9200 14577 | self
|
14578 + | /* ServerBuilderGenerator.kt:428 */
|
9201 14579 | }
|
14580 + | /* ServerBuilderGenerator.kt:331 */
|
9202 14581 | #[allow(missing_docs)] // documentation missing in model
|
14582 + | /* ServerBuilderGenerator.kt:343 */
|
9203 14583 | pub fn blob(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
9204 - | self.blob = Some(input);
|
14584 + | /* ServerBuilderGenerator.kt:344 */
|
14585 + | self.blob =
|
14586 + | /* ServerBuilderGenerator.kt:345 */Some(
|
14587 + | /* ServerBuilderGenerator.kt:376 */input
|
14588 + | /* ServerBuilderGenerator.kt:345 */)
|
14589 + | /* ServerBuilderGenerator.kt:344 */;
|
9205 14590 | self
|
14591 + | /* ServerBuilderGenerator.kt:343 */
|
9206 14592 | }
|
14593 + | /* ServerBuilderGenerator.kt:426 */
|
9207 14594 | #[allow(missing_docs)] // documentation missing in model
|
14595 + | /* ServerBuilderGenerator.kt:428 */
|
9208 14596 | pub(crate) fn set_blob(
|
9209 14597 | mut self,
|
9210 14598 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9211 14599 | ) -> Self {
|
14600 + | /* ServerBuilderGenerator.kt:429 */
|
9212 14601 | self.blob = Some(input.into());
|
9213 14602 | self
|
14603 + | /* ServerBuilderGenerator.kt:428 */
|
9214 14604 | }
|
9215 - | /// Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14605 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingTraitsInput`](crate::input::StreamingTraitsInput).
|
14606 + | /* ServerBuilderGenerator.kt:271 */
|
9216 14607 | pub fn build(self) -> crate::input::StreamingTraitsInput {
|
9217 14608 | self.build_enforcing_all_constraints()
|
9218 14609 | }
|
14610 + | /* ServerBuilderGenerator.kt:283 */
|
9219 14611 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingTraitsInput {
|
14612 + | /* ServerBuilderGenerator.kt:542 */
|
9220 14613 | crate::input::StreamingTraitsInput {
|
14614 + | /* ServerBuilderGenerator.kt:546 */
|
9221 14615 | foo: self.foo,
|
9222 - | blob: self.blob.unwrap_or_default(),
|
14616 + | /* ServerBuilderGenerator.kt:546 */
|
14617 + | blob: self
|
14618 + | .blob
|
14619 + | /* ServerBuilderGeneratorCommon.kt:95 */
|
14620 + | .unwrap_or_default(),
|
14621 + | /* ServerBuilderGenerator.kt:542 */
|
9223 14622 | }
|
14623 + | /* ServerBuilderGenerator.kt:283 */
|
9224 14624 | }
|
14625 + | /* ServerBuilderGenerator.kt:215 */
|
9225 14626 | }
|
14627 + |
|
14628 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9226 14629 | }
|
9227 - | /// See [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
14630 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
9228 14631 | pub mod response_code_http_fallback_input {
|
9229 14632 |
|
14633 + | /* ServerBuilderGenerator.kt:461 */
|
9230 14634 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeHttpFallbackInput {
|
9231 14635 | fn from(builder: Builder) -> Self {
|
9232 14636 | builder.build()
|
9233 14637 | }
|
9234 14638 | }
|
9235 - | /// A builder for [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
14639 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
14640 + | /* RustType.kt:534 */
|
9236 14641 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9237 - | pub struct Builder {}
|
14642 + | /* ServerBuilderGenerator.kt:211 */
|
14643 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14644 + | /* ServerBuilderGenerator.kt:215 */
|
9238 14645 | impl Builder {
|
9239 - | /// Consumes the builder and constructs a [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
14646 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput).
|
14647 + | /* ServerBuilderGenerator.kt:271 */
|
9240 14648 | pub fn build(self) -> crate::input::ResponseCodeHttpFallbackInput {
|
9241 14649 | self.build_enforcing_all_constraints()
|
9242 14650 | }
|
14651 + | /* ServerBuilderGenerator.kt:283 */
|
9243 14652 | fn build_enforcing_all_constraints(self) -> crate::input::ResponseCodeHttpFallbackInput {
|
9244 - | crate::input::ResponseCodeHttpFallbackInput {}
|
14653 + | /* ServerBuilderGenerator.kt:542 */
|
14654 + | crate::input::ResponseCodeHttpFallbackInput {
|
14655 + | /* ServerBuilderGenerator.kt:542 */}
|
14656 + | /* ServerBuilderGenerator.kt:283 */
|
9245 14657 | }
|
14658 + | /* ServerBuilderGenerator.kt:215 */
|
9246 14659 | }
|
14660 + |
|
14661 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9247 14662 | }
|
9248 - | /// See [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
14663 + | /// /* ServerBuilderGenerator.kt:171 */See [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
9249 14664 | pub mod response_code_required_input {
|
9250 14665 |
|
14666 + | /* ServerBuilderGenerator.kt:461 */
|
9251 14667 | impl ::std::convert::From<Builder> for crate::input::ResponseCodeRequiredInput {
|
9252 14668 | fn from(builder: Builder) -> Self {
|
9253 14669 | builder.build()
|
9254 14670 | }
|
9255 14671 | }
|
9256 - | /// A builder for [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
14672 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
14673 + | /* RustType.kt:534 */
|
9257 14674 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9258 - | pub struct Builder {}
|
14675 + | /* ServerBuilderGenerator.kt:211 */
|
14676 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14677 + | /* ServerBuilderGenerator.kt:215 */
|
9259 14678 | impl Builder {
|
9260 - | /// Consumes the builder and constructs a [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
14679 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput).
|
14680 + | /* ServerBuilderGenerator.kt:271 */
|
9261 14681 | pub fn build(self) -> crate::input::ResponseCodeRequiredInput {
|
9262 14682 | self.build_enforcing_all_constraints()
|
9263 14683 | }
|
14684 + | /* ServerBuilderGenerator.kt:283 */
|
9264 14685 | fn build_enforcing_all_constraints(self) -> crate::input::ResponseCodeRequiredInput {
|
9265 - | crate::input::ResponseCodeRequiredInput {}
|
14686 + | /* ServerBuilderGenerator.kt:542 */
|
14687 + | crate::input::ResponseCodeRequiredInput {
|
14688 + | /* ServerBuilderGenerator.kt:542 */}
|
14689 + | /* ServerBuilderGenerator.kt:283 */
|
9266 14690 | }
|
14691 + | /* ServerBuilderGenerator.kt:215 */
|
9267 14692 | }
|
14693 + |
|
14694 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9268 14695 | }
|
9269 - | /// See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14696 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
9270 14697 | pub mod http_response_code_input {
|
9271 14698 |
|
14699 + | /* ServerBuilderGenerator.kt:461 */
|
9272 14700 | impl ::std::convert::From<Builder> for crate::input::HttpResponseCodeInput {
|
9273 14701 | fn from(builder: Builder) -> Self {
|
9274 14702 | builder.build()
|
9275 14703 | }
|
9276 14704 | }
|
9277 - | /// A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14705 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14706 + | /* RustType.kt:534 */
|
9278 14707 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9279 - | pub struct Builder {}
|
14708 + | /* ServerBuilderGenerator.kt:211 */
|
14709 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
14710 + | /* ServerBuilderGenerator.kt:215 */
|
9280 14711 | impl Builder {
|
9281 - | /// Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14712 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput).
|
14713 + | /* ServerBuilderGenerator.kt:271 */
|
9282 14714 | pub fn build(self) -> crate::input::HttpResponseCodeInput {
|
9283 14715 | self.build_enforcing_all_constraints()
|
9284 14716 | }
|
14717 + | /* ServerBuilderGenerator.kt:283 */
|
9285 14718 | fn build_enforcing_all_constraints(self) -> crate::input::HttpResponseCodeInput {
|
9286 - | crate::input::HttpResponseCodeInput {}
|
14719 + | /* ServerBuilderGenerator.kt:542 */
|
14720 + | crate::input::HttpResponseCodeInput {
|
14721 + | /* ServerBuilderGenerator.kt:542 */}
|
14722 + | /* ServerBuilderGenerator.kt:283 */
|
9287 14723 | }
|
14724 + | /* ServerBuilderGenerator.kt:215 */
|
9288 14725 | }
|
14726 + |
|
14727 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9289 14728 | }
|
9290 - | /// See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14729 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
9291 14730 | pub mod http_payload_with_union_input {
|
9292 14731 |
|
14732 + | /* ServerBuilderGenerator.kt:461 */
|
9293 14733 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithUnionInput {
|
9294 14734 | fn from(builder: Builder) -> Self {
|
9295 14735 | builder.build()
|
9296 14736 | }
|
9297 14737 | }
|
9298 - | /// A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14738 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14739 + | /* RustType.kt:534 */
|
9299 14740 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14741 + | /* ServerBuilderGenerator.kt:211 */
|
9300 14742 | pub struct Builder {
|
14743 + | /* ServerBuilderGenerator.kt:308 */
|
9301 14744 | pub(crate) nested: ::std::option::Option<crate::model::UnionPayload>,
|
14745 + | /* ServerBuilderGenerator.kt:211 */
|
9302 14746 | }
|
14747 + | /* ServerBuilderGenerator.kt:215 */
|
9303 14748 | impl Builder {
|
14749 + | /* ServerBuilderGenerator.kt:331 */
|
9304 14750 | #[allow(missing_docs)] // documentation missing in model
|
14751 + | /* ServerBuilderGenerator.kt:343 */
|
9305 14752 | pub fn nested(mut self, input: ::std::option::Option<crate::model::UnionPayload>) -> Self {
|
9306 - | self.nested = input;
|
14753 + | /* ServerBuilderGenerator.kt:344 */
|
14754 + | self.nested =
|
14755 + | /* ServerBuilderGenerator.kt:376 */input
|
14756 + | /* ServerBuilderGenerator.kt:344 */;
|
9307 14757 | self
|
14758 + | /* ServerBuilderGenerator.kt:343 */
|
9308 14759 | }
|
14760 + | /* ServerBuilderGenerator.kt:426 */
|
9309 14761 | #[allow(missing_docs)] // documentation missing in model
|
14762 + | /* ServerBuilderGenerator.kt:428 */
|
9310 14763 | pub(crate) fn set_nested(
|
9311 14764 | mut self,
|
9312 14765 | input: Option<impl ::std::convert::Into<crate::model::UnionPayload>>,
|
9313 14766 | ) -> Self {
|
14767 + | /* ServerBuilderGenerator.kt:429 */
|
9314 14768 | self.nested = input.map(|v| v.into());
|
9315 14769 | self
|
14770 + | /* ServerBuilderGenerator.kt:428 */
|
9316 14771 | }
|
9317 - | /// Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14772 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput).
|
14773 + | /* ServerBuilderGenerator.kt:271 */
|
9318 14774 | pub fn build(self) -> crate::input::HttpPayloadWithUnionInput {
|
9319 14775 | self.build_enforcing_all_constraints()
|
9320 14776 | }
|
14777 + | /* ServerBuilderGenerator.kt:283 */
|
9321 14778 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithUnionInput {
|
14779 + | /* ServerBuilderGenerator.kt:542 */
|
9322 14780 | crate::input::HttpPayloadWithUnionInput {
|
14781 + | /* ServerBuilderGenerator.kt:546 */
|
9323 14782 | nested: self.nested,
|
14783 + | /* ServerBuilderGenerator.kt:542 */
|
9324 14784 | }
|
14785 + | /* ServerBuilderGenerator.kt:283 */
|
9325 14786 | }
|
14787 + | /* ServerBuilderGenerator.kt:215 */
|
9326 14788 | }
|
14789 + |
|
14790 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9327 14791 | }
|
9328 - | /// See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14792 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
9329 14793 | pub mod http_string_payload_input {
|
9330 14794 |
|
14795 + | /* ServerBuilderGenerator.kt:461 */
|
9331 14796 | impl ::std::convert::From<Builder> for crate::input::HttpStringPayloadInput {
|
9332 14797 | fn from(builder: Builder) -> Self {
|
9333 14798 | builder.build()
|
9334 14799 | }
|
9335 14800 | }
|
9336 - | /// A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14801 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14802 + | /* RustType.kt:534 */
|
9337 14803 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14804 + | /* ServerBuilderGenerator.kt:211 */
|
9338 14805 | pub struct Builder {
|
14806 + | /* ServerBuilderGenerator.kt:308 */
|
9339 14807 | pub(crate) payload: ::std::option::Option<::std::string::String>,
|
14808 + | /* ServerBuilderGenerator.kt:211 */
|
9340 14809 | }
|
14810 + | /* ServerBuilderGenerator.kt:215 */
|
9341 14811 | impl Builder {
|
14812 + | /* ServerBuilderGenerator.kt:331 */
|
9342 14813 | #[allow(missing_docs)] // documentation missing in model
|
14814 + | /* ServerBuilderGenerator.kt:343 */
|
9343 14815 | pub fn payload(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9344 - | self.payload = input;
|
14816 + | /* ServerBuilderGenerator.kt:344 */
|
14817 + | self.payload =
|
14818 + | /* ServerBuilderGenerator.kt:376 */input
|
14819 + | /* ServerBuilderGenerator.kt:344 */;
|
9345 14820 | self
|
14821 + | /* ServerBuilderGenerator.kt:343 */
|
9346 14822 | }
|
14823 + | /* ServerBuilderGenerator.kt:426 */
|
9347 14824 | #[allow(missing_docs)] // documentation missing in model
|
14825 + | /* ServerBuilderGenerator.kt:428 */
|
9348 14826 | pub(crate) fn set_payload(
|
9349 14827 | mut self,
|
9350 14828 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9351 14829 | ) -> Self {
|
14830 + | /* ServerBuilderGenerator.kt:429 */
|
9352 14831 | self.payload = input.map(|v| v.into());
|
9353 14832 | self
|
14833 + | /* ServerBuilderGenerator.kt:428 */
|
9354 14834 | }
|
9355 - | /// Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14835 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput).
|
14836 + | /* ServerBuilderGenerator.kt:271 */
|
9356 14837 | pub fn build(self) -> crate::input::HttpStringPayloadInput {
|
9357 14838 | self.build_enforcing_all_constraints()
|
9358 14839 | }
|
14840 + | /* ServerBuilderGenerator.kt:283 */
|
9359 14841 | fn build_enforcing_all_constraints(self) -> crate::input::HttpStringPayloadInput {
|
14842 + | /* ServerBuilderGenerator.kt:542 */
|
9360 14843 | crate::input::HttpStringPayloadInput {
|
14844 + | /* ServerBuilderGenerator.kt:546 */
|
9361 14845 | payload: self.payload,
|
14846 + | /* ServerBuilderGenerator.kt:542 */
|
9362 14847 | }
|
14848 + | /* ServerBuilderGenerator.kt:283 */
|
9363 14849 | }
|
14850 + | /* ServerBuilderGenerator.kt:215 */
|
9364 14851 | }
|
14852 + |
|
14853 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9365 14854 | }
|
9366 - | /// See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14855 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
9367 14856 | pub mod http_enum_payload_input {
|
9368 14857 |
|
14858 + | /* RustType.kt:534 */
|
9369 14859 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9370 - | /// Holds one variant for each of the ways the builder can fail.
|
14860 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
14861 + | /* RustType.kt:534 */
|
9371 14862 | #[non_exhaustive]
|
14863 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9372 14864 | #[allow(clippy::enum_variant_names)]
|
9373 14865 | pub enum ConstraintViolation {
|
9374 - | /// Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
14866 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`.
|
14867 + | /* RustType.kt:534 */
|
9375 14868 | #[doc(hidden)]
|
14869 + | /* ServerBuilderConstraintViolations.kt:165 */
|
9376 14870 | Payload(crate::model::string_enum::ConstraintViolation),
|
14871 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9377 14872 | }
|
14873 + | /* ServerBuilderConstraintViolations.kt:116 */
|
9378 14874 | impl ::std::fmt::Display for ConstraintViolation {
|
14875 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9379 14876 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
14877 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9380 14878 | match self {
|
9381 - | ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
9382 - | }
|
14879 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::Payload(_) => write!(f, "constraint violation occurred building member `payload` when building `HttpEnumPayloadInput`"),
|
14880 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
14881 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9383 14882 | }
|
14883 + | /* ServerBuilderConstraintViolations.kt:116 */
|
9384 14884 | }
|
14885 + | /* ServerBuilderConstraintViolations.kt:83 */
|
9385 14886 | impl ::std::error::Error for ConstraintViolation {}
|
14887 + | /* ServerBuilderConstraintViolations.kt:172 */
|
9386 14888 | impl ConstraintViolation {
|
9387 14889 | pub(crate) fn as_validation_exception_field(
|
9388 14890 | self,
|
9389 14891 | path: ::std::string::String,
|
9390 14892 | ) -> crate::model::ValidationExceptionField {
|
9391 14893 | match self {
|
9392 14894 | ConstraintViolation::Payload(inner) => {
|
9393 14895 | inner.as_validation_exception_field(path + "/payload")
|
9394 14896 | }
|
9395 14897 | }
|
9396 14898 | }
|
9397 14899 | }
|
14900 + | /* ServerBuilderGenerator.kt:234 */
|
9398 14901 | impl ::std::convert::From<ConstraintViolation>
|
9399 14902 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9400 14903 | {
|
9401 14904 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9402 14905 | let first_validation_exception_field =
|
9403 14906 | constraint_violation.as_validation_exception_field("".to_owned());
|
9404 14907 | let validation_exception = crate::error::ValidationException {
|
9405 14908 | message: format!(
|
9406 14909 | "1 validation error detected. {}",
|
9407 14910 | &first_validation_exception_field.message
|
9408 14911 | ),
|
9409 14912 | field_list: Some(vec![first_validation_exception_field]),
|
9410 14913 | };
|
9411 14914 | Self::ConstraintViolation(
|
9412 14915 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9413 14916 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9414 14917 | )
|
9415 14918 | }
|
9416 14919 | }
|
14920 + | /* ServerBuilderGenerator.kt:244 */
|
9417 14921 | impl ::std::convert::From<Builder>
|
9418 14922 | for crate::constrained::MaybeConstrained<crate::input::HttpEnumPayloadInput>
|
9419 14923 | {
|
9420 14924 | fn from(builder: Builder) -> Self {
|
9421 14925 | Self::Unconstrained(builder)
|
9422 14926 | }
|
9423 14927 | }
|
14928 + | /* ServerBuilderGenerator.kt:446 */
|
9424 14929 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpEnumPayloadInput {
|
9425 14930 | type Error = ConstraintViolation;
|
9426 14931 |
|
9427 14932 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9428 14933 | builder.build()
|
9429 14934 | }
|
9430 14935 | }
|
9431 - | /// A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14936 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14937 + | /* RustType.kt:534 */
|
9432 14938 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
14939 + | /* ServerBuilderGenerator.kt:211 */
|
9433 14940 | pub struct Builder {
|
14941 + | /* ServerBuilderGenerator.kt:308 */
|
9434 14942 | pub(crate) payload:
|
9435 14943 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringEnum>>,
|
14944 + | /* ServerBuilderGenerator.kt:211 */
|
9436 14945 | }
|
14946 + | /* ServerBuilderGenerator.kt:215 */
|
9437 14947 | impl Builder {
|
14948 + | /* ServerBuilderGenerator.kt:331 */
|
9438 14949 | #[allow(missing_docs)] // documentation missing in model
|
14950 + | /* ServerBuilderGenerator.kt:343 */
|
9439 14951 | pub fn payload(mut self, input: ::std::option::Option<crate::model::StringEnum>) -> Self {
|
9440 - | self.payload = input.map(crate::constrained::MaybeConstrained::Constrained);
|
14952 + | /* ServerBuilderGenerator.kt:344 */
|
14953 + | self.payload =
|
14954 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
14955 + | /* ServerBuilderGenerator.kt:344 */;
|
9441 14956 | self
|
14957 + | /* ServerBuilderGenerator.kt:343 */
|
9442 14958 | }
|
14959 + | /* ServerBuilderGenerator.kt:426 */
|
9443 14960 | #[allow(missing_docs)] // documentation missing in model
|
14961 + | /* ServerBuilderGenerator.kt:428 */
|
9444 14962 | pub(crate) fn set_payload(
|
9445 14963 | mut self,
|
9446 14964 | input: Option<
|
9447 14965 | impl ::std::convert::Into<
|
9448 14966 | crate::constrained::MaybeConstrained<crate::model::StringEnum>,
|
9449 14967 | >,
|
9450 14968 | >,
|
9451 14969 | ) -> Self {
|
14970 + | /* ServerBuilderGenerator.kt:429 */
|
9452 14971 | self.payload = input.map(|v| v.into());
|
9453 14972 | self
|
14973 + | /* ServerBuilderGenerator.kt:428 */
|
9454 14974 | }
|
9455 - | /// Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
9456 - | ///
|
14975 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput).
|
14976 + | /// /* ServerBuilderGenerator.kt:260 */
|
9457 14977 | /// The builder fails to construct a [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput) if a [`ConstraintViolation`] occurs.
|
9458 14978 | ///
|
14979 + | /* ServerBuilderGenerator.kt:271 */
|
9459 14980 | pub fn build(self) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
9460 14981 | self.build_enforcing_all_constraints()
|
9461 14982 | }
|
14983 + | /* ServerBuilderGenerator.kt:283 */
|
9462 14984 | fn build_enforcing_all_constraints(
|
9463 14985 | self,
|
9464 14986 | ) -> Result<crate::input::HttpEnumPayloadInput, ConstraintViolation> {
|
9465 - | Ok(crate::input::HttpEnumPayloadInput {
|
14987 + | /* ServerBuilderGenerator.kt:287 */
|
14988 + | Ok(
|
14989 + | /* ServerBuilderGenerator.kt:542 */
|
14990 + | crate::input::HttpEnumPayloadInput {
|
14991 + | /* ServerBuilderGenerator.kt:546 */
|
9466 14992 | payload: self
|
9467 14993 | .payload
|
14994 + | /* ServerBuilderGenerator.kt:602 */
|
9468 14995 | .map(|v| match v {
|
9469 14996 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
9470 14997 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
9471 14998 | })
|
14999 + | /* ServerBuilderGenerator.kt:614 */
|
9472 15000 | .map(|res| res.map_err(ConstraintViolation::Payload))
|
9473 15001 | .transpose()?,
|
9474 - | })
|
15002 + | /* ServerBuilderGenerator.kt:542 */
|
15003 + | }, /* ServerBuilderGenerator.kt:287 */
|
15004 + | )
|
15005 + | /* ServerBuilderGenerator.kt:283 */
|
9475 15006 | }
|
15007 + | /* ServerBuilderGenerator.kt:215 */
|
9476 15008 | }
|
15009 + |
|
15010 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9477 15011 | }
|
9478 - | /// See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
15012 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
9479 15013 | pub mod http_payload_with_structure_input {
|
9480 15014 |
|
15015 + | /* ServerBuilderGenerator.kt:461 */
|
9481 15016 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadWithStructureInput {
|
9482 15017 | fn from(builder: Builder) -> Self {
|
9483 15018 | builder.build()
|
9484 15019 | }
|
9485 15020 | }
|
9486 - | /// A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
15021 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
15022 + | /* RustType.kt:534 */
|
9487 15023 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15024 + | /* ServerBuilderGenerator.kt:211 */
|
9488 15025 | pub struct Builder {
|
15026 + | /* ServerBuilderGenerator.kt:308 */
|
9489 15027 | pub(crate) nested: ::std::option::Option<crate::model::NestedPayload>,
|
15028 + | /* ServerBuilderGenerator.kt:211 */
|
9490 15029 | }
|
15030 + | /* ServerBuilderGenerator.kt:215 */
|
9491 15031 | impl Builder {
|
15032 + | /* ServerBuilderGenerator.kt:331 */
|
9492 15033 | #[allow(missing_docs)] // documentation missing in model
|
15034 + | /* ServerBuilderGenerator.kt:343 */
|
9493 15035 | pub fn nested(mut self, input: ::std::option::Option<crate::model::NestedPayload>) -> Self {
|
9494 - | self.nested = input;
|
15036 + | /* ServerBuilderGenerator.kt:344 */
|
15037 + | self.nested =
|
15038 + | /* ServerBuilderGenerator.kt:376 */input
|
15039 + | /* ServerBuilderGenerator.kt:344 */;
|
9495 15040 | self
|
15041 + | /* ServerBuilderGenerator.kt:343 */
|
9496 15042 | }
|
15043 + | /* ServerBuilderGenerator.kt:426 */
|
9497 15044 | #[allow(missing_docs)] // documentation missing in model
|
15045 + | /* ServerBuilderGenerator.kt:428 */
|
9498 15046 | pub(crate) fn set_nested(
|
9499 15047 | mut self,
|
9500 15048 | input: Option<impl ::std::convert::Into<crate::model::NestedPayload>>,
|
9501 15049 | ) -> Self {
|
15050 + | /* ServerBuilderGenerator.kt:429 */
|
9502 15051 | self.nested = input.map(|v| v.into());
|
9503 15052 | self
|
15053 + | /* ServerBuilderGenerator.kt:428 */
|
9504 15054 | }
|
9505 - | /// Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
15055 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput).
|
15056 + | /* ServerBuilderGenerator.kt:271 */
|
9506 15057 | pub fn build(self) -> crate::input::HttpPayloadWithStructureInput {
|
9507 15058 | self.build_enforcing_all_constraints()
|
9508 15059 | }
|
15060 + | /* ServerBuilderGenerator.kt:283 */
|
9509 15061 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadWithStructureInput {
|
15062 + | /* ServerBuilderGenerator.kt:542 */
|
9510 15063 | crate::input::HttpPayloadWithStructureInput {
|
15064 + | /* ServerBuilderGenerator.kt:546 */
|
9511 15065 | nested: self.nested,
|
15066 + | /* ServerBuilderGenerator.kt:542 */
|
9512 15067 | }
|
15068 + | /* ServerBuilderGenerator.kt:283 */
|
9513 15069 | }
|
15070 + | /* ServerBuilderGenerator.kt:215 */
|
9514 15071 | }
|
15072 + |
|
15073 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9515 15074 | }
|
9516 - | /// See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
15075 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
9517 15076 | pub mod http_payload_traits_with_media_type_input {
|
9518 15077 |
|
15078 + | /* ServerBuilderGenerator.kt:461 */
|
9519 15079 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
9520 15080 | fn from(builder: Builder) -> Self {
|
9521 15081 | builder.build()
|
9522 15082 | }
|
9523 15083 | }
|
9524 - | /// A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
15084 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
15085 + | /* RustType.kt:534 */
|
9525 15086 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15087 + | /* ServerBuilderGenerator.kt:211 */
|
9526 15088 | pub struct Builder {
|
15089 + | /* ServerBuilderGenerator.kt:308 */
|
9527 15090 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15091 + | /* ServerBuilderGenerator.kt:308 */
|
9528 15092 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
15093 + | /* ServerBuilderGenerator.kt:211 */
|
9529 15094 | }
|
15095 + | /* ServerBuilderGenerator.kt:215 */
|
9530 15096 | impl Builder {
|
15097 + | /* ServerBuilderGenerator.kt:331 */
|
9531 15098 | #[allow(missing_docs)] // documentation missing in model
|
15099 + | /* ServerBuilderGenerator.kt:343 */
|
9532 15100 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9533 - | self.foo = input;
|
15101 + | /* ServerBuilderGenerator.kt:344 */
|
15102 + | self.foo =
|
15103 + | /* ServerBuilderGenerator.kt:376 */input
|
15104 + | /* ServerBuilderGenerator.kt:344 */;
|
9534 15105 | self
|
15106 + | /* ServerBuilderGenerator.kt:343 */
|
9535 15107 | }
|
15108 + | /* ServerBuilderGenerator.kt:426 */
|
9536 15109 | #[allow(missing_docs)] // documentation missing in model
|
15110 + | /* ServerBuilderGenerator.kt:428 */
|
9537 15111 | pub(crate) fn set_foo(
|
9538 15112 | mut self,
|
9539 15113 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9540 15114 | ) -> Self {
|
15115 + | /* ServerBuilderGenerator.kt:429 */
|
9541 15116 | self.foo = input.map(|v| v.into());
|
9542 15117 | self
|
15118 + | /* ServerBuilderGenerator.kt:428 */
|
9543 15119 | }
|
15120 + | /* ServerBuilderGenerator.kt:331 */
|
9544 15121 | #[allow(missing_docs)] // documentation missing in model
|
15122 + | /* ServerBuilderGenerator.kt:343 */
|
9545 15123 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
9546 - | self.blob = input;
|
15124 + | /* ServerBuilderGenerator.kt:344 */
|
15125 + | self.blob =
|
15126 + | /* ServerBuilderGenerator.kt:376 */input
|
15127 + | /* ServerBuilderGenerator.kt:344 */;
|
9547 15128 | self
|
15129 + | /* ServerBuilderGenerator.kt:343 */
|
9548 15130 | }
|
15131 + | /* ServerBuilderGenerator.kt:426 */
|
9549 15132 | #[allow(missing_docs)] // documentation missing in model
|
15133 + | /* ServerBuilderGenerator.kt:428 */
|
9550 15134 | pub(crate) fn set_blob(
|
9551 15135 | mut self,
|
9552 15136 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
9553 15137 | ) -> Self {
|
15138 + | /* ServerBuilderGenerator.kt:429 */
|
9554 15139 | self.blob = input.map(|v| v.into());
|
9555 15140 | self
|
15141 + | /* ServerBuilderGenerator.kt:428 */
|
9556 15142 | }
|
9557 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
15143 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput).
|
15144 + | /* ServerBuilderGenerator.kt:271 */
|
9558 15145 | pub fn build(self) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
9559 15146 | self.build_enforcing_all_constraints()
|
9560 15147 | }
|
15148 + | /* ServerBuilderGenerator.kt:283 */
|
9561 15149 | fn build_enforcing_all_constraints(
|
9562 15150 | self,
|
9563 15151 | ) -> crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
15152 + | /* ServerBuilderGenerator.kt:542 */
|
9564 15153 | crate::input::HttpPayloadTraitsWithMediaTypeInput {
|
15154 + | /* ServerBuilderGenerator.kt:546 */
|
9565 15155 | foo: self.foo,
|
15156 + | /* ServerBuilderGenerator.kt:546 */
|
9566 15157 | blob: self.blob,
|
15158 + | /* ServerBuilderGenerator.kt:542 */
|
9567 15159 | }
|
15160 + | /* ServerBuilderGenerator.kt:283 */
|
9568 15161 | }
|
15162 + | /* ServerBuilderGenerator.kt:215 */
|
9569 15163 | }
|
15164 + |
|
15165 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9570 15166 | }
|
9571 - | /// See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
15167 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
9572 15168 | pub mod http_payload_traits_input {
|
9573 15169 |
|
15170 + | /* ServerBuilderGenerator.kt:461 */
|
9574 15171 | impl ::std::convert::From<Builder> for crate::input::HttpPayloadTraitsInput {
|
9575 15172 | fn from(builder: Builder) -> Self {
|
9576 15173 | builder.build()
|
9577 15174 | }
|
9578 15175 | }
|
9579 - | /// A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
15176 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
15177 + | /* RustType.kt:534 */
|
9580 15178 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15179 + | /* ServerBuilderGenerator.kt:211 */
|
9581 15180 | pub struct Builder {
|
15181 + | /* ServerBuilderGenerator.kt:308 */
|
9582 15182 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15183 + | /* ServerBuilderGenerator.kt:308 */
|
9583 15184 | pub(crate) blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
15185 + | /* ServerBuilderGenerator.kt:211 */
|
9584 15186 | }
|
15187 + | /* ServerBuilderGenerator.kt:215 */
|
9585 15188 | impl Builder {
|
15189 + | /* ServerBuilderGenerator.kt:331 */
|
9586 15190 | #[allow(missing_docs)] // documentation missing in model
|
15191 + | /* ServerBuilderGenerator.kt:343 */
|
9587 15192 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9588 - | self.foo = input;
|
15193 + | /* ServerBuilderGenerator.kt:344 */
|
15194 + | self.foo =
|
15195 + | /* ServerBuilderGenerator.kt:376 */input
|
15196 + | /* ServerBuilderGenerator.kt:344 */;
|
9589 15197 | self
|
15198 + | /* ServerBuilderGenerator.kt:343 */
|
9590 15199 | }
|
15200 + | /* ServerBuilderGenerator.kt:426 */
|
9591 15201 | #[allow(missing_docs)] // documentation missing in model
|
15202 + | /* ServerBuilderGenerator.kt:428 */
|
9592 15203 | pub(crate) fn set_foo(
|
9593 15204 | mut self,
|
9594 15205 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9595 15206 | ) -> Self {
|
15207 + | /* ServerBuilderGenerator.kt:429 */
|
9596 15208 | self.foo = input.map(|v| v.into());
|
9597 15209 | self
|
15210 + | /* ServerBuilderGenerator.kt:428 */
|
9598 15211 | }
|
15212 + | /* ServerBuilderGenerator.kt:331 */
|
9599 15213 | #[allow(missing_docs)] // documentation missing in model
|
15214 + | /* ServerBuilderGenerator.kt:343 */
|
9600 15215 | pub fn blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
9601 - | self.blob = input;
|
15216 + | /* ServerBuilderGenerator.kt:344 */
|
15217 + | self.blob =
|
15218 + | /* ServerBuilderGenerator.kt:376 */input
|
15219 + | /* ServerBuilderGenerator.kt:344 */;
|
9602 15220 | self
|
15221 + | /* ServerBuilderGenerator.kt:343 */
|
9603 15222 | }
|
15223 + | /* ServerBuilderGenerator.kt:426 */
|
9604 15224 | #[allow(missing_docs)] // documentation missing in model
|
15225 + | /* ServerBuilderGenerator.kt:428 */
|
9605 15226 | pub(crate) fn set_blob(
|
9606 15227 | mut self,
|
9607 15228 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
9608 15229 | ) -> Self {
|
15230 + | /* ServerBuilderGenerator.kt:429 */
|
9609 15231 | self.blob = input.map(|v| v.into());
|
9610 15232 | self
|
15233 + | /* ServerBuilderGenerator.kt:428 */
|
9611 15234 | }
|
9612 - | /// Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
15235 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput).
|
15236 + | /* ServerBuilderGenerator.kt:271 */
|
9613 15237 | pub fn build(self) -> crate::input::HttpPayloadTraitsInput {
|
9614 15238 | self.build_enforcing_all_constraints()
|
9615 15239 | }
|
15240 + | /* ServerBuilderGenerator.kt:283 */
|
9616 15241 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPayloadTraitsInput {
|
15242 + | /* ServerBuilderGenerator.kt:542 */
|
9617 15243 | crate::input::HttpPayloadTraitsInput {
|
15244 + | /* ServerBuilderGenerator.kt:546 */
|
9618 15245 | foo: self.foo,
|
15246 + | /* ServerBuilderGenerator.kt:546 */
|
9619 15247 | blob: self.blob,
|
15248 + | /* ServerBuilderGenerator.kt:542 */
|
9620 15249 | }
|
15250 + | /* ServerBuilderGenerator.kt:283 */
|
9621 15251 | }
|
15252 + | /* ServerBuilderGenerator.kt:215 */
|
9622 15253 | }
|
15254 + |
|
15255 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9623 15256 | }
|
9624 - | /// See [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
15257 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
9625 15258 | pub mod http_empty_prefix_headers_input {
|
9626 15259 |
|
15260 + | /* ServerBuilderGenerator.kt:461 */
|
9627 15261 | impl ::std::convert::From<Builder> for crate::input::HttpEmptyPrefixHeadersInput {
|
9628 15262 | fn from(builder: Builder) -> Self {
|
9629 15263 | builder.build()
|
9630 15264 | }
|
9631 15265 | }
|
9632 - | /// A builder for [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
15266 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
15267 + | /* RustType.kt:534 */
|
9633 15268 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15269 + | /* ServerBuilderGenerator.kt:211 */
|
9634 15270 | pub struct Builder {
|
15271 + | /* ServerBuilderGenerator.kt:308 */
|
9635 15272 | pub(crate) prefix_headers: ::std::option::Option<
|
9636 15273 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9637 15274 | >,
|
15275 + | /* ServerBuilderGenerator.kt:308 */
|
9638 15276 | pub(crate) specific_header: ::std::option::Option<::std::string::String>,
|
15277 + | /* ServerBuilderGenerator.kt:211 */
|
9639 15278 | }
|
15279 + | /* ServerBuilderGenerator.kt:215 */
|
9640 15280 | impl Builder {
|
15281 + | /* ServerBuilderGenerator.kt:331 */
|
9641 15282 | #[allow(missing_docs)] // documentation missing in model
|
15283 + | /* ServerBuilderGenerator.kt:343 */
|
9642 15284 | pub fn prefix_headers(
|
9643 15285 | mut self,
|
9644 15286 | input: ::std::option::Option<
|
9645 15287 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9646 15288 | >,
|
9647 15289 | ) -> Self {
|
9648 - | self.prefix_headers = input;
|
15290 + | /* ServerBuilderGenerator.kt:344 */
|
15291 + | self.prefix_headers =
|
15292 + | /* ServerBuilderGenerator.kt:376 */input
|
15293 + | /* ServerBuilderGenerator.kt:344 */;
|
9649 15294 | self
|
15295 + | /* ServerBuilderGenerator.kt:343 */
|
9650 15296 | }
|
15297 + | /* ServerBuilderGenerator.kt:426 */
|
9651 15298 | #[allow(missing_docs)] // documentation missing in model
|
15299 + | /* ServerBuilderGenerator.kt:428 */
|
9652 15300 | pub(crate) fn set_prefix_headers(
|
9653 15301 | mut self,
|
9654 15302 | input: Option<
|
9655 15303 | impl ::std::convert::Into<
|
9656 15304 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9657 15305 | >,
|
9658 15306 | >,
|
9659 15307 | ) -> Self {
|
15308 + | /* ServerBuilderGenerator.kt:429 */
|
9660 15309 | self.prefix_headers = input.map(|v| v.into());
|
9661 15310 | self
|
15311 + | /* ServerBuilderGenerator.kt:428 */
|
9662 15312 | }
|
15313 + | /* ServerBuilderGenerator.kt:331 */
|
9663 15314 | #[allow(missing_docs)] // documentation missing in model
|
15315 + | /* ServerBuilderGenerator.kt:343 */
|
9664 15316 | pub fn specific_header(
|
9665 15317 | mut self,
|
9666 15318 | input: ::std::option::Option<::std::string::String>,
|
9667 15319 | ) -> Self {
|
9668 - | self.specific_header = input;
|
15320 + | /* ServerBuilderGenerator.kt:344 */
|
15321 + | self.specific_header =
|
15322 + | /* ServerBuilderGenerator.kt:376 */input
|
15323 + | /* ServerBuilderGenerator.kt:344 */;
|
9669 15324 | self
|
15325 + | /* ServerBuilderGenerator.kt:343 */
|
9670 15326 | }
|
15327 + | /* ServerBuilderGenerator.kt:426 */
|
9671 15328 | #[allow(missing_docs)] // documentation missing in model
|
15329 + | /* ServerBuilderGenerator.kt:428 */
|
9672 15330 | pub(crate) fn set_specific_header(
|
9673 15331 | mut self,
|
9674 15332 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9675 15333 | ) -> Self {
|
15334 + | /* ServerBuilderGenerator.kt:429 */
|
9676 15335 | self.specific_header = input.map(|v| v.into());
|
9677 15336 | self
|
15337 + | /* ServerBuilderGenerator.kt:428 */
|
9678 15338 | }
|
9679 - | /// Consumes the builder and constructs a [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
15339 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput).
|
15340 + | /* ServerBuilderGenerator.kt:271 */
|
9680 15341 | pub fn build(self) -> crate::input::HttpEmptyPrefixHeadersInput {
|
9681 15342 | self.build_enforcing_all_constraints()
|
9682 15343 | }
|
15344 + | /* ServerBuilderGenerator.kt:283 */
|
9683 15345 | fn build_enforcing_all_constraints(self) -> crate::input::HttpEmptyPrefixHeadersInput {
|
15346 + | /* ServerBuilderGenerator.kt:542 */
|
9684 15347 | crate::input::HttpEmptyPrefixHeadersInput {
|
15348 + | /* ServerBuilderGenerator.kt:546 */
|
9685 15349 | prefix_headers: self.prefix_headers,
|
15350 + | /* ServerBuilderGenerator.kt:546 */
|
9686 15351 | specific_header: self.specific_header,
|
15352 + | /* ServerBuilderGenerator.kt:542 */
|
9687 15353 | }
|
15354 + | /* ServerBuilderGenerator.kt:283 */
|
9688 15355 | }
|
15356 + | /* ServerBuilderGenerator.kt:215 */
|
9689 15357 | }
|
15358 + |
|
15359 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9690 15360 | }
|
9691 - | /// See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
15361 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
9692 15362 | pub mod http_prefix_headers_in_response_input {
|
9693 15363 |
|
15364 + | /* ServerBuilderGenerator.kt:461 */
|
9694 15365 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInResponseInput {
|
9695 15366 | fn from(builder: Builder) -> Self {
|
9696 15367 | builder.build()
|
9697 15368 | }
|
9698 15369 | }
|
9699 - | /// A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
15370 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
15371 + | /* RustType.kt:534 */
|
9700 15372 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
9701 - | pub struct Builder {}
|
15373 + | /* ServerBuilderGenerator.kt:211 */
|
15374 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
15375 + | /* ServerBuilderGenerator.kt:215 */
|
9702 15376 | impl Builder {
|
9703 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
15377 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput).
|
15378 + | /* ServerBuilderGenerator.kt:271 */
|
9704 15379 | pub fn build(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
9705 15380 | self.build_enforcing_all_constraints()
|
9706 15381 | }
|
15382 + | /* ServerBuilderGenerator.kt:283 */
|
9707 15383 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInResponseInput {
|
9708 - | crate::input::HttpPrefixHeadersInResponseInput {}
|
15384 + | /* ServerBuilderGenerator.kt:542 */
|
15385 + | crate::input::HttpPrefixHeadersInResponseInput {
|
15386 + | /* ServerBuilderGenerator.kt:542 */}
|
15387 + | /* ServerBuilderGenerator.kt:283 */
|
9709 15388 | }
|
15389 + | /* ServerBuilderGenerator.kt:215 */
|
9710 15390 | }
|
15391 + |
|
15392 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9711 15393 | }
|
9712 - | /// See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15394 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
9713 15395 | pub mod http_prefix_headers_input {
|
9714 15396 |
|
15397 + | /* ServerBuilderGenerator.kt:461 */
|
9715 15398 | impl ::std::convert::From<Builder> for crate::input::HttpPrefixHeadersInput {
|
9716 15399 | fn from(builder: Builder) -> Self {
|
9717 15400 | builder.build()
|
9718 15401 | }
|
9719 15402 | }
|
9720 - | /// A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15403 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15404 + | /* RustType.kt:534 */
|
9721 15405 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15406 + | /* ServerBuilderGenerator.kt:211 */
|
9722 15407 | pub struct Builder {
|
15408 + | /* ServerBuilderGenerator.kt:308 */
|
9723 15409 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15410 + | /* ServerBuilderGenerator.kt:308 */
|
9724 15411 | pub(crate) foo_map: ::std::option::Option<
|
9725 15412 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9726 15413 | >,
|
15414 + | /* ServerBuilderGenerator.kt:211 */
|
9727 15415 | }
|
15416 + | /* ServerBuilderGenerator.kt:215 */
|
9728 15417 | impl Builder {
|
15418 + | /* ServerBuilderGenerator.kt:331 */
|
9729 15419 | #[allow(missing_docs)] // documentation missing in model
|
15420 + | /* ServerBuilderGenerator.kt:343 */
|
9730 15421 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9731 - | self.foo = input;
|
15422 + | /* ServerBuilderGenerator.kt:344 */
|
15423 + | self.foo =
|
15424 + | /* ServerBuilderGenerator.kt:376 */input
|
15425 + | /* ServerBuilderGenerator.kt:344 */;
|
9732 15426 | self
|
15427 + | /* ServerBuilderGenerator.kt:343 */
|
9733 15428 | }
|
15429 + | /* ServerBuilderGenerator.kt:426 */
|
9734 15430 | #[allow(missing_docs)] // documentation missing in model
|
15431 + | /* ServerBuilderGenerator.kt:428 */
|
9735 15432 | pub(crate) fn set_foo(
|
9736 15433 | mut self,
|
9737 15434 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9738 15435 | ) -> Self {
|
15436 + | /* ServerBuilderGenerator.kt:429 */
|
9739 15437 | self.foo = input.map(|v| v.into());
|
9740 15438 | self
|
15439 + | /* ServerBuilderGenerator.kt:428 */
|
9741 15440 | }
|
15441 + | /* ServerBuilderGenerator.kt:331 */
|
9742 15442 | #[allow(missing_docs)] // documentation missing in model
|
15443 + | /* ServerBuilderGenerator.kt:343 */
|
9743 15444 | pub fn foo_map(
|
9744 15445 | mut self,
|
9745 15446 | input: ::std::option::Option<
|
9746 15447 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9747 15448 | >,
|
9748 15449 | ) -> Self {
|
9749 - | self.foo_map = input;
|
15450 + | /* ServerBuilderGenerator.kt:344 */
|
15451 + | self.foo_map =
|
15452 + | /* ServerBuilderGenerator.kt:376 */input
|
15453 + | /* ServerBuilderGenerator.kt:344 */;
|
9750 15454 | self
|
15455 + | /* ServerBuilderGenerator.kt:343 */
|
9751 15456 | }
|
15457 + | /* ServerBuilderGenerator.kt:426 */
|
9752 15458 | #[allow(missing_docs)] // documentation missing in model
|
15459 + | /* ServerBuilderGenerator.kt:428 */
|
9753 15460 | pub(crate) fn set_foo_map(
|
9754 15461 | mut self,
|
9755 15462 | input: Option<
|
9756 15463 | impl ::std::convert::Into<
|
9757 15464 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9758 15465 | >,
|
9759 15466 | >,
|
9760 15467 | ) -> Self {
|
15468 + | /* ServerBuilderGenerator.kt:429 */
|
9761 15469 | self.foo_map = input.map(|v| v.into());
|
9762 15470 | self
|
15471 + | /* ServerBuilderGenerator.kt:428 */
|
9763 15472 | }
|
9764 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15473 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput).
|
15474 + | /* ServerBuilderGenerator.kt:271 */
|
9765 15475 | pub fn build(self) -> crate::input::HttpPrefixHeadersInput {
|
9766 15476 | self.build_enforcing_all_constraints()
|
9767 15477 | }
|
15478 + | /* ServerBuilderGenerator.kt:283 */
|
9768 15479 | fn build_enforcing_all_constraints(self) -> crate::input::HttpPrefixHeadersInput {
|
15480 + | /* ServerBuilderGenerator.kt:542 */
|
9769 15481 | crate::input::HttpPrefixHeadersInput {
|
15482 + | /* ServerBuilderGenerator.kt:546 */
|
9770 15483 | foo: self.foo,
|
15484 + | /* ServerBuilderGenerator.kt:546 */
|
9771 15485 | foo_map: self.foo_map,
|
15486 + | /* ServerBuilderGenerator.kt:542 */
|
9772 15487 | }
|
15488 + | /* ServerBuilderGenerator.kt:283 */
|
9773 15489 | }
|
15490 + | /* ServerBuilderGenerator.kt:215 */
|
9774 15491 | }
|
15492 + |
|
15493 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9775 15494 | }
|
9776 - | /// See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15495 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
9777 15496 | pub mod query_params_as_string_list_map_input {
|
9778 15497 |
|
15498 + | /* ServerBuilderGenerator.kt:461 */
|
9779 15499 | impl ::std::convert::From<Builder> for crate::input::QueryParamsAsStringListMapInput {
|
9780 15500 | fn from(builder: Builder) -> Self {
|
9781 15501 | builder.build()
|
9782 15502 | }
|
9783 15503 | }
|
9784 - | /// A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15504 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15505 + | /* RustType.kt:534 */
|
9785 15506 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15507 + | /* ServerBuilderGenerator.kt:211 */
|
9786 15508 | pub struct Builder {
|
15509 + | /* ServerBuilderGenerator.kt:308 */
|
9787 15510 | pub(crate) qux: ::std::option::Option<::std::string::String>,
|
15511 + | /* ServerBuilderGenerator.kt:308 */
|
9788 15512 | pub(crate) foo: ::std::option::Option<
|
9789 15513 | ::std::collections::HashMap<
|
9790 15514 | ::std::string::String,
|
9791 15515 | ::std::vec::Vec<::std::string::String>,
|
9792 15516 | >,
|
9793 15517 | >,
|
15518 + | /* ServerBuilderGenerator.kt:211 */
|
9794 15519 | }
|
15520 + | /* ServerBuilderGenerator.kt:215 */
|
9795 15521 | impl Builder {
|
15522 + | /* ServerBuilderGenerator.kt:331 */
|
9796 15523 | #[allow(missing_docs)] // documentation missing in model
|
15524 + | /* ServerBuilderGenerator.kt:343 */
|
9797 15525 | pub fn qux(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9798 - | self.qux = input;
|
15526 + | /* ServerBuilderGenerator.kt:344 */
|
15527 + | self.qux =
|
15528 + | /* ServerBuilderGenerator.kt:376 */input
|
15529 + | /* ServerBuilderGenerator.kt:344 */;
|
9799 15530 | self
|
15531 + | /* ServerBuilderGenerator.kt:343 */
|
9800 15532 | }
|
15533 + | /* ServerBuilderGenerator.kt:426 */
|
9801 15534 | #[allow(missing_docs)] // documentation missing in model
|
15535 + | /* ServerBuilderGenerator.kt:428 */
|
9802 15536 | pub(crate) fn set_qux(
|
9803 15537 | mut self,
|
9804 15538 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9805 15539 | ) -> Self {
|
15540 + | /* ServerBuilderGenerator.kt:429 */
|
9806 15541 | self.qux = input.map(|v| v.into());
|
9807 15542 | self
|
15543 + | /* ServerBuilderGenerator.kt:428 */
|
9808 15544 | }
|
15545 + | /* ServerBuilderGenerator.kt:331 */
|
9809 15546 | #[allow(missing_docs)] // documentation missing in model
|
15547 + | /* ServerBuilderGenerator.kt:343 */
|
9810 15548 | pub fn foo(
|
9811 15549 | mut self,
|
9812 15550 | input: ::std::option::Option<
|
9813 15551 | ::std::collections::HashMap<
|
9814 15552 | ::std::string::String,
|
9815 15553 | ::std::vec::Vec<::std::string::String>,
|
9816 15554 | >,
|
9817 15555 | >,
|
9818 15556 | ) -> Self {
|
9819 - | self.foo = input;
|
15557 + | /* ServerBuilderGenerator.kt:344 */
|
15558 + | self.foo =
|
15559 + | /* ServerBuilderGenerator.kt:376 */input
|
15560 + | /* ServerBuilderGenerator.kt:344 */;
|
9820 15561 | self
|
15562 + | /* ServerBuilderGenerator.kt:343 */
|
9821 15563 | }
|
15564 + | /* ServerBuilderGenerator.kt:426 */
|
9822 15565 | #[allow(missing_docs)] // documentation missing in model
|
15566 + | /* ServerBuilderGenerator.kt:428 */
|
9823 15567 | pub(crate) fn set_foo(
|
9824 15568 | mut self,
|
9825 15569 | input: Option<
|
9826 15570 | impl ::std::convert::Into<
|
9827 15571 | ::std::collections::HashMap<
|
9828 15572 | ::std::string::String,
|
9829 15573 | ::std::vec::Vec<::std::string::String>,
|
9830 15574 | >,
|
9831 15575 | >,
|
9832 15576 | >,
|
9833 15577 | ) -> Self {
|
15578 + | /* ServerBuilderGenerator.kt:429 */
|
9834 15579 | self.foo = input.map(|v| v.into());
|
9835 15580 | self
|
15581 + | /* ServerBuilderGenerator.kt:428 */
|
9836 15582 | }
|
9837 - | /// Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15583 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput).
|
15584 + | /* ServerBuilderGenerator.kt:271 */
|
9838 15585 | pub fn build(self) -> crate::input::QueryParamsAsStringListMapInput {
|
9839 15586 | self.build_enforcing_all_constraints()
|
9840 15587 | }
|
15588 + | /* ServerBuilderGenerator.kt:283 */
|
9841 15589 | fn build_enforcing_all_constraints(self) -> crate::input::QueryParamsAsStringListMapInput {
|
15590 + | /* ServerBuilderGenerator.kt:542 */
|
9842 15591 | crate::input::QueryParamsAsStringListMapInput {
|
15592 + | /* ServerBuilderGenerator.kt:546 */
|
9843 15593 | qux: self.qux,
|
15594 + | /* ServerBuilderGenerator.kt:546 */
|
9844 15595 | foo: self.foo,
|
15596 + | /* ServerBuilderGenerator.kt:542 */
|
9845 15597 | }
|
15598 + | /* ServerBuilderGenerator.kt:283 */
|
9846 15599 | }
|
15600 + | /* ServerBuilderGenerator.kt:215 */
|
9847 15601 | }
|
15602 + |
|
15603 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9848 15604 | }
|
9849 - | /// See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15605 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
9850 15606 | pub mod query_precedence_input {
|
9851 15607 |
|
15608 + | /* ServerBuilderGenerator.kt:461 */
|
9852 15609 | impl ::std::convert::From<Builder> for crate::input::QueryPrecedenceInput {
|
9853 15610 | fn from(builder: Builder) -> Self {
|
9854 15611 | builder.build()
|
9855 15612 | }
|
9856 15613 | }
|
9857 - | /// A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15614 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15615 + | /* RustType.kt:534 */
|
9858 15616 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15617 + | /* ServerBuilderGenerator.kt:211 */
|
9859 15618 | pub struct Builder {
|
15619 + | /* ServerBuilderGenerator.kt:308 */
|
9860 15620 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
15621 + | /* ServerBuilderGenerator.kt:308 */
|
9861 15622 | pub(crate) baz: ::std::option::Option<
|
9862 15623 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9863 15624 | >,
|
15625 + | /* ServerBuilderGenerator.kt:211 */
|
9864 15626 | }
|
15627 + | /* ServerBuilderGenerator.kt:215 */
|
9865 15628 | impl Builder {
|
15629 + | /* ServerBuilderGenerator.kt:331 */
|
9866 15630 | #[allow(missing_docs)] // documentation missing in model
|
15631 + | /* ServerBuilderGenerator.kt:343 */
|
9867 15632 | pub fn foo(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9868 - | self.foo = input;
|
15633 + | /* ServerBuilderGenerator.kt:344 */
|
15634 + | self.foo =
|
15635 + | /* ServerBuilderGenerator.kt:376 */input
|
15636 + | /* ServerBuilderGenerator.kt:344 */;
|
9869 15637 | self
|
15638 + | /* ServerBuilderGenerator.kt:343 */
|
9870 15639 | }
|
15640 + | /* ServerBuilderGenerator.kt:426 */
|
9871 15641 | #[allow(missing_docs)] // documentation missing in model
|
15642 + | /* ServerBuilderGenerator.kt:428 */
|
9872 15643 | pub(crate) fn set_foo(
|
9873 15644 | mut self,
|
9874 15645 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9875 15646 | ) -> Self {
|
15647 + | /* ServerBuilderGenerator.kt:429 */
|
9876 15648 | self.foo = input.map(|v| v.into());
|
9877 15649 | self
|
15650 + | /* ServerBuilderGenerator.kt:428 */
|
9878 15651 | }
|
15652 + | /* ServerBuilderGenerator.kt:331 */
|
9879 15653 | #[allow(missing_docs)] // documentation missing in model
|
15654 + | /* ServerBuilderGenerator.kt:343 */
|
9880 15655 | pub fn baz(
|
9881 15656 | mut self,
|
9882 15657 | input: ::std::option::Option<
|
9883 15658 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9884 15659 | >,
|
9885 15660 | ) -> Self {
|
9886 - | self.baz = input;
|
15661 + | /* ServerBuilderGenerator.kt:344 */
|
15662 + | self.baz =
|
15663 + | /* ServerBuilderGenerator.kt:376 */input
|
15664 + | /* ServerBuilderGenerator.kt:344 */;
|
9887 15665 | self
|
15666 + | /* ServerBuilderGenerator.kt:343 */
|
9888 15667 | }
|
15668 + | /* ServerBuilderGenerator.kt:426 */
|
9889 15669 | #[allow(missing_docs)] // documentation missing in model
|
15670 + | /* ServerBuilderGenerator.kt:428 */
|
9890 15671 | pub(crate) fn set_baz(
|
9891 15672 | mut self,
|
9892 15673 | input: Option<
|
9893 15674 | impl ::std::convert::Into<
|
9894 15675 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
9895 15676 | >,
|
9896 15677 | >,
|
9897 15678 | ) -> Self {
|
15679 + | /* ServerBuilderGenerator.kt:429 */
|
9898 15680 | self.baz = input.map(|v| v.into());
|
9899 15681 | self
|
15682 + | /* ServerBuilderGenerator.kt:428 */
|
9900 15683 | }
|
9901 - | /// Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15684 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput).
|
15685 + | /* ServerBuilderGenerator.kt:271 */
|
9902 15686 | pub fn build(self) -> crate::input::QueryPrecedenceInput {
|
9903 15687 | self.build_enforcing_all_constraints()
|
9904 15688 | }
|
15689 + | /* ServerBuilderGenerator.kt:283 */
|
9905 15690 | fn build_enforcing_all_constraints(self) -> crate::input::QueryPrecedenceInput {
|
15691 + | /* ServerBuilderGenerator.kt:542 */
|
9906 15692 | crate::input::QueryPrecedenceInput {
|
15693 + | /* ServerBuilderGenerator.kt:546 */
|
9907 15694 | foo: self.foo,
|
15695 + | /* ServerBuilderGenerator.kt:546 */
|
9908 15696 | baz: self.baz,
|
15697 + | /* ServerBuilderGenerator.kt:542 */
|
9909 15698 | }
|
15699 + | /* ServerBuilderGenerator.kt:283 */
|
9910 15700 | }
|
15701 + | /* ServerBuilderGenerator.kt:215 */
|
9911 15702 | }
|
15703 + |
|
15704 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9912 15705 | }
|
9913 - | /// See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15706 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
9914 15707 | pub mod query_idempotency_token_auto_fill_input {
|
9915 15708 |
|
15709 + | /* ServerBuilderGenerator.kt:461 */
|
9916 15710 | impl ::std::convert::From<Builder> for crate::input::QueryIdempotencyTokenAutoFillInput {
|
9917 15711 | fn from(builder: Builder) -> Self {
|
9918 15712 | builder.build()
|
9919 15713 | }
|
9920 15714 | }
|
9921 - | /// A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15715 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15716 + | /* RustType.kt:534 */
|
9922 15717 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15718 + | /* ServerBuilderGenerator.kt:211 */
|
9923 15719 | pub struct Builder {
|
15720 + | /* ServerBuilderGenerator.kt:308 */
|
9924 15721 | pub(crate) token: ::std::option::Option<::std::string::String>,
|
15722 + | /* ServerBuilderGenerator.kt:211 */
|
9925 15723 | }
|
15724 + | /* ServerBuilderGenerator.kt:215 */
|
9926 15725 | impl Builder {
|
15726 + | /* ServerBuilderGenerator.kt:331 */
|
9927 15727 | #[allow(missing_docs)] // documentation missing in model
|
15728 + | /* ServerBuilderGenerator.kt:343 */
|
9928 15729 | pub fn token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
9929 - | self.token = input;
|
15730 + | /* ServerBuilderGenerator.kt:344 */
|
15731 + | self.token =
|
15732 + | /* ServerBuilderGenerator.kt:376 */input
|
15733 + | /* ServerBuilderGenerator.kt:344 */;
|
9930 15734 | self
|
15735 + | /* ServerBuilderGenerator.kt:343 */
|
9931 15736 | }
|
15737 + | /* ServerBuilderGenerator.kt:426 */
|
9932 15738 | #[allow(missing_docs)] // documentation missing in model
|
15739 + | /* ServerBuilderGenerator.kt:428 */
|
9933 15740 | pub(crate) fn set_token(
|
9934 15741 | mut self,
|
9935 15742 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
9936 15743 | ) -> Self {
|
15744 + | /* ServerBuilderGenerator.kt:429 */
|
9937 15745 | self.token = input.map(|v| v.into());
|
9938 15746 | self
|
15747 + | /* ServerBuilderGenerator.kt:428 */
|
9939 15748 | }
|
9940 - | /// Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15749 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput).
|
15750 + | /* ServerBuilderGenerator.kt:271 */
|
9941 15751 | pub fn build(self) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
9942 15752 | self.build_enforcing_all_constraints()
|
9943 15753 | }
|
15754 + | /* ServerBuilderGenerator.kt:283 */
|
9944 15755 | fn build_enforcing_all_constraints(
|
9945 15756 | self,
|
9946 15757 | ) -> crate::input::QueryIdempotencyTokenAutoFillInput {
|
9947 - | crate::input::QueryIdempotencyTokenAutoFillInput { token: self.token }
|
15758 + | /* ServerBuilderGenerator.kt:542 */
|
15759 + | crate::input::QueryIdempotencyTokenAutoFillInput {
|
15760 + | /* ServerBuilderGenerator.kt:546 */
|
15761 + | token: self.token,
|
15762 + | /* ServerBuilderGenerator.kt:542 */
|
15763 + | }
|
15764 + | /* ServerBuilderGenerator.kt:283 */
|
9948 15765 | }
|
15766 + | /* ServerBuilderGenerator.kt:215 */
|
9949 15767 | }
|
15768 + |
|
15769 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
9950 15770 | }
|
9951 - | /// See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15771 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
9952 15772 | pub mod omits_serializing_empty_lists_input {
|
9953 15773 |
|
15774 + | /* RustType.kt:534 */
|
9954 15775 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9955 - | /// Holds one variant for each of the ways the builder can fail.
|
15776 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
15777 + | /* RustType.kt:534 */
|
9956 15778 | #[non_exhaustive]
|
15779 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9957 15780 | #[allow(clippy::enum_variant_names)]
|
9958 15781 | pub enum ConstraintViolation {
|
9959 - | /// Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
15782 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`.
|
15783 + | /* RustType.kt:534 */
|
9960 15784 | #[doc(hidden)]
|
15785 + | /* ServerBuilderConstraintViolations.kt:165 */
|
9961 15786 | QueryEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
15787 + | /* ServerBuilderConstraintViolations.kt:75 */
|
9962 15788 | }
|
15789 + | /* ServerBuilderConstraintViolations.kt:116 */
|
9963 15790 | impl ::std::fmt::Display for ConstraintViolation {
|
15791 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9964 15792 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15793 + | /* ServerBuilderConstraintViolations.kt:118 */
|
9965 15794 | match self {
|
9966 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
9967 - | }
|
15795 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `OmitsSerializingEmptyListsInput`"),
|
15796 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
15797 + | /* ServerBuilderConstraintViolations.kt:117 */
|
9968 15798 | }
|
15799 + | /* ServerBuilderConstraintViolations.kt:116 */
|
9969 15800 | }
|
15801 + | /* ServerBuilderConstraintViolations.kt:83 */
|
9970 15802 | impl ::std::error::Error for ConstraintViolation {}
|
15803 + | /* ServerBuilderConstraintViolations.kt:172 */
|
9971 15804 | impl ConstraintViolation {
|
9972 15805 | pub(crate) fn as_validation_exception_field(
|
9973 15806 | self,
|
9974 15807 | path: ::std::string::String,
|
9975 15808 | ) -> crate::model::ValidationExceptionField {
|
9976 15809 | match self {
|
9977 15810 | ConstraintViolation::QueryEnumList(inner) => {
|
9978 15811 | inner.as_validation_exception_field(path + "/queryEnumList")
|
9979 15812 | }
|
9980 15813 | }
|
9981 15814 | }
|
9982 15815 | }
|
15816 + | /* ServerBuilderGenerator.kt:234 */
|
9983 15817 | impl ::std::convert::From<ConstraintViolation>
|
9984 15818 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
9985 15819 | {
|
9986 15820 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
9987 15821 | let first_validation_exception_field =
|
9988 15822 | constraint_violation.as_validation_exception_field("".to_owned());
|
9989 15823 | let validation_exception = crate::error::ValidationException {
|
9990 15824 | message: format!(
|
9991 15825 | "1 validation error detected. {}",
|
9992 15826 | &first_validation_exception_field.message
|
9993 15827 | ),
|
9994 15828 | field_list: Some(vec![first_validation_exception_field]),
|
9995 15829 | };
|
9996 15830 | Self::ConstraintViolation(
|
9997 15831 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
9998 15832 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
9999 15833 | )
|
10000 15834 | }
|
10001 15835 | }
|
15836 + | /* ServerBuilderGenerator.kt:244 */
|
10002 15837 | impl ::std::convert::From<Builder>
|
10003 15838 | for crate::constrained::MaybeConstrained<crate::input::OmitsSerializingEmptyListsInput>
|
10004 15839 | {
|
10005 15840 | fn from(builder: Builder) -> Self {
|
10006 15841 | Self::Unconstrained(builder)
|
10007 15842 | }
|
10008 15843 | }
|
15844 + | /* ServerBuilderGenerator.kt:446 */
|
10009 15845 | impl ::std::convert::TryFrom<Builder> for crate::input::OmitsSerializingEmptyListsInput {
|
10010 15846 | type Error = ConstraintViolation;
|
10011 15847 |
|
10012 15848 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10013 15849 | builder.build()
|
10014 15850 | }
|
10015 15851 | }
|
10016 - | /// A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15852 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
15853 + | /* RustType.kt:534 */
|
10017 15854 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
15855 + | /* ServerBuilderGenerator.kt:211 */
|
10018 15856 | pub struct Builder {
|
15857 + | /* ServerBuilderGenerator.kt:308 */
|
10019 15858 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
15859 + | /* ServerBuilderGenerator.kt:308 */
|
10020 15860 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
15861 + | /* ServerBuilderGenerator.kt:308 */
|
10021 15862 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
15863 + | /* ServerBuilderGenerator.kt:308 */
|
10022 15864 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
15865 + | /* ServerBuilderGenerator.kt:308 */
|
10023 15866 | pub(crate) query_timestamp_list:
|
10024 15867 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
15868 + | /* ServerBuilderGenerator.kt:308 */
|
10025 15869 | pub(crate) query_enum_list: ::std::option::Option<
|
10026 15870 | crate::constrained::MaybeConstrained<
|
10027 15871 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10028 15872 | >,
|
10029 15873 | >,
|
15874 + | /* ServerBuilderGenerator.kt:308 */
|
10030 15875 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
15876 + | /* ServerBuilderGenerator.kt:211 */
|
10031 15877 | }
|
15878 + | /* ServerBuilderGenerator.kt:215 */
|
10032 15879 | impl Builder {
|
15880 + | /* ServerBuilderGenerator.kt:331 */
|
10033 15881 | #[allow(missing_docs)] // documentation missing in model
|
15882 + | /* ServerBuilderGenerator.kt:343 */
|
10034 15883 | pub fn query_string_list(
|
10035 15884 | mut self,
|
10036 15885 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10037 15886 | ) -> Self {
|
10038 - | self.query_string_list = input;
|
15887 + | /* ServerBuilderGenerator.kt:344 */
|
15888 + | self.query_string_list =
|
15889 + | /* ServerBuilderGenerator.kt:376 */input
|
15890 + | /* ServerBuilderGenerator.kt:344 */;
|
10039 15891 | self
|
15892 + | /* ServerBuilderGenerator.kt:343 */
|
10040 15893 | }
|
15894 + | /* ServerBuilderGenerator.kt:426 */
|
10041 15895 | #[allow(missing_docs)] // documentation missing in model
|
15896 + | /* ServerBuilderGenerator.kt:428 */
|
10042 15897 | pub(crate) fn set_query_string_list(
|
10043 15898 | mut self,
|
10044 15899 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
10045 15900 | ) -> Self {
|
15901 + | /* ServerBuilderGenerator.kt:429 */
|
10046 15902 | self.query_string_list = input.map(|v| v.into());
|
10047 15903 | self
|
15904 + | /* ServerBuilderGenerator.kt:428 */
|
10048 15905 | }
|
15906 + | /* ServerBuilderGenerator.kt:331 */
|
10049 15907 | #[allow(missing_docs)] // documentation missing in model
|
15908 + | /* ServerBuilderGenerator.kt:343 */
|
10050 15909 | pub fn query_integer_list(
|
10051 15910 | mut self,
|
10052 15911 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10053 15912 | ) -> Self {
|
10054 - | self.query_integer_list = input;
|
15913 + | /* ServerBuilderGenerator.kt:344 */
|
15914 + | self.query_integer_list =
|
15915 + | /* ServerBuilderGenerator.kt:376 */input
|
15916 + | /* ServerBuilderGenerator.kt:344 */;
|
10055 15917 | self
|
15918 + | /* ServerBuilderGenerator.kt:343 */
|
10056 15919 | }
|
15920 + | /* ServerBuilderGenerator.kt:426 */
|
10057 15921 | #[allow(missing_docs)] // documentation missing in model
|
15922 + | /* ServerBuilderGenerator.kt:428 */
|
10058 15923 | pub(crate) fn set_query_integer_list(
|
10059 15924 | mut self,
|
10060 15925 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10061 15926 | ) -> Self {
|
15927 + | /* ServerBuilderGenerator.kt:429 */
|
10062 15928 | self.query_integer_list = input.map(|v| v.into());
|
10063 15929 | self
|
15930 + | /* ServerBuilderGenerator.kt:428 */
|
10064 15931 | }
|
15932 + | /* ServerBuilderGenerator.kt:331 */
|
10065 15933 | #[allow(missing_docs)] // documentation missing in model
|
15934 + | /* ServerBuilderGenerator.kt:343 */
|
10066 15935 | pub fn query_double_list(
|
10067 15936 | mut self,
|
10068 15937 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
10069 15938 | ) -> Self {
|
10070 - | self.query_double_list = input;
|
15939 + | /* ServerBuilderGenerator.kt:344 */
|
15940 + | self.query_double_list =
|
15941 + | /* ServerBuilderGenerator.kt:376 */input
|
15942 + | /* ServerBuilderGenerator.kt:344 */;
|
10071 15943 | self
|
15944 + | /* ServerBuilderGenerator.kt:343 */
|
10072 15945 | }
|
15946 + | /* ServerBuilderGenerator.kt:426 */
|
10073 15947 | #[allow(missing_docs)] // documentation missing in model
|
15948 + | /* ServerBuilderGenerator.kt:428 */
|
10074 15949 | pub(crate) fn set_query_double_list(
|
10075 15950 | mut self,
|
10076 15951 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
10077 15952 | ) -> Self {
|
15953 + | /* ServerBuilderGenerator.kt:429 */
|
10078 15954 | self.query_double_list = input.map(|v| v.into());
|
10079 15955 | self
|
15956 + | /* ServerBuilderGenerator.kt:428 */
|
10080 15957 | }
|
15958 + | /* ServerBuilderGenerator.kt:331 */
|
10081 15959 | #[allow(missing_docs)] // documentation missing in model
|
15960 + | /* ServerBuilderGenerator.kt:343 */
|
10082 15961 | pub fn query_boolean_list(
|
10083 15962 | mut self,
|
10084 15963 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
10085 15964 | ) -> Self {
|
10086 - | self.query_boolean_list = input;
|
15965 + | /* ServerBuilderGenerator.kt:344 */
|
15966 + | self.query_boolean_list =
|
15967 + | /* ServerBuilderGenerator.kt:376 */input
|
15968 + | /* ServerBuilderGenerator.kt:344 */;
|
10087 15969 | self
|
15970 + | /* ServerBuilderGenerator.kt:343 */
|
10088 15971 | }
|
15972 + | /* ServerBuilderGenerator.kt:426 */
|
10089 15973 | #[allow(missing_docs)] // documentation missing in model
|
15974 + | /* ServerBuilderGenerator.kt:428 */
|
10090 15975 | pub(crate) fn set_query_boolean_list(
|
10091 15976 | mut self,
|
10092 15977 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
10093 15978 | ) -> Self {
|
15979 + | /* ServerBuilderGenerator.kt:429 */
|
10094 15980 | self.query_boolean_list = input.map(|v| v.into());
|
10095 15981 | self
|
15982 + | /* ServerBuilderGenerator.kt:428 */
|
10096 15983 | }
|
15984 + | /* ServerBuilderGenerator.kt:331 */
|
10097 15985 | #[allow(missing_docs)] // documentation missing in model
|
15986 + | /* ServerBuilderGenerator.kt:343 */
|
10098 15987 | pub fn query_timestamp_list(
|
10099 15988 | mut self,
|
10100 15989 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
10101 15990 | ) -> Self {
|
10102 - | self.query_timestamp_list = input;
|
15991 + | /* ServerBuilderGenerator.kt:344 */
|
15992 + | self.query_timestamp_list =
|
15993 + | /* ServerBuilderGenerator.kt:376 */input
|
15994 + | /* ServerBuilderGenerator.kt:344 */;
|
10103 15995 | self
|
15996 + | /* ServerBuilderGenerator.kt:343 */
|
10104 15997 | }
|
15998 + | /* ServerBuilderGenerator.kt:426 */
|
10105 15999 | #[allow(missing_docs)] // documentation missing in model
|
16000 + | /* ServerBuilderGenerator.kt:428 */
|
10106 16001 | pub(crate) fn set_query_timestamp_list(
|
10107 16002 | mut self,
|
10108 16003 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
10109 16004 | ) -> Self {
|
16005 + | /* ServerBuilderGenerator.kt:429 */
|
10110 16006 | self.query_timestamp_list = input.map(|v| v.into());
|
10111 16007 | self
|
16008 + | /* ServerBuilderGenerator.kt:428 */
|
10112 16009 | }
|
16010 + | /* ServerBuilderGenerator.kt:331 */
|
10113 16011 | #[allow(missing_docs)] // documentation missing in model
|
16012 + | /* ServerBuilderGenerator.kt:343 */
|
10114 16013 | pub fn query_enum_list(
|
10115 16014 | mut self,
|
10116 16015 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
10117 16016 | ) -> Self {
|
16017 + | /* ServerBuilderGenerator.kt:344 */
|
10118 16018 | self.query_enum_list =
|
10119 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
16019 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
16020 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
16021 + | /* ServerBuilderGenerator.kt:363 */)
|
16022 + | /* ServerBuilderGenerator.kt:344 */;
|
10120 16023 | self
|
16024 + | /* ServerBuilderGenerator.kt:343 */
|
10121 16025 | }
|
16026 + | /* ServerBuilderGenerator.kt:426 */
|
10122 16027 | #[allow(missing_docs)] // documentation missing in model
|
16028 + | /* ServerBuilderGenerator.kt:428 */
|
10123 16029 | pub(crate) fn set_query_enum_list(
|
10124 16030 | mut self,
|
10125 16031 | input: Option<
|
10126 16032 | impl ::std::convert::Into<
|
10127 16033 | crate::constrained::MaybeConstrained<
|
10128 16034 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10129 16035 | >,
|
10130 16036 | >,
|
10131 16037 | >,
|
10132 16038 | ) -> Self {
|
16039 + | /* ServerBuilderGenerator.kt:429 */
|
10133 16040 | self.query_enum_list = input.map(|v| v.into());
|
10134 16041 | self
|
16042 + | /* ServerBuilderGenerator.kt:428 */
|
10135 16043 | }
|
16044 + | /* ServerBuilderGenerator.kt:331 */
|
10136 16045 | #[allow(missing_docs)] // documentation missing in model
|
16046 + | /* ServerBuilderGenerator.kt:343 */
|
10137 16047 | pub fn query_integer_enum_list(
|
10138 16048 | mut self,
|
10139 16049 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10140 16050 | ) -> Self {
|
10141 - | self.query_integer_enum_list = input;
|
16051 + | /* ServerBuilderGenerator.kt:344 */
|
16052 + | self.query_integer_enum_list =
|
16053 + | /* ServerBuilderGenerator.kt:376 */input
|
16054 + | /* ServerBuilderGenerator.kt:344 */;
|
10142 16055 | self
|
16056 + | /* ServerBuilderGenerator.kt:343 */
|
10143 16057 | }
|
16058 + | /* ServerBuilderGenerator.kt:426 */
|
10144 16059 | #[allow(missing_docs)] // documentation missing in model
|
16060 + | /* ServerBuilderGenerator.kt:428 */
|
10145 16061 | pub(crate) fn set_query_integer_enum_list(
|
10146 16062 | mut self,
|
10147 16063 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10148 16064 | ) -> Self {
|
16065 + | /* ServerBuilderGenerator.kt:429 */
|
10149 16066 | self.query_integer_enum_list = input.map(|v| v.into());
|
10150 16067 | self
|
16068 + | /* ServerBuilderGenerator.kt:428 */
|
10151 16069 | }
|
10152 - | /// Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
10153 - | ///
|
16070 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput).
|
16071 + | /// /* ServerBuilderGenerator.kt:260 */
|
10154 16072 | /// The builder fails to construct a [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput) if a [`ConstraintViolation`] occurs.
|
10155 16073 | ///
|
16074 + | /* ServerBuilderGenerator.kt:271 */
|
10156 16075 | pub fn build(
|
10157 16076 | self,
|
10158 16077 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
10159 16078 | self.build_enforcing_all_constraints()
|
10160 16079 | }
|
16080 + | /* ServerBuilderGenerator.kt:283 */
|
10161 16081 | fn build_enforcing_all_constraints(
|
10162 16082 | self,
|
10163 16083 | ) -> Result<crate::input::OmitsSerializingEmptyListsInput, ConstraintViolation> {
|
10164 - | Ok(crate::input::OmitsSerializingEmptyListsInput {
|
16084 + | /* ServerBuilderGenerator.kt:287 */
|
16085 + | Ok(
|
16086 + | /* ServerBuilderGenerator.kt:542 */
|
16087 + | crate::input::OmitsSerializingEmptyListsInput {
|
16088 + | /* ServerBuilderGenerator.kt:546 */
|
10165 16089 | query_string_list: self.query_string_list,
|
16090 + | /* ServerBuilderGenerator.kt:546 */
|
10166 16091 | query_integer_list: self.query_integer_list,
|
16092 + | /* ServerBuilderGenerator.kt:546 */
|
10167 16093 | query_double_list: self.query_double_list,
|
16094 + | /* ServerBuilderGenerator.kt:546 */
|
10168 16095 | query_boolean_list: self.query_boolean_list,
|
16096 + | /* ServerBuilderGenerator.kt:546 */
|
10169 16097 | query_timestamp_list: self.query_timestamp_list,
|
16098 + | /* ServerBuilderGenerator.kt:546 */
|
10170 16099 | query_enum_list: self
|
10171 16100 | .query_enum_list
|
16101 + | /* ServerBuilderGenerator.kt:602 */
|
10172 16102 | .map(|v| match v {
|
10173 16103 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10174 16104 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10175 16105 | })
|
16106 + | /* ServerBuilderGenerator.kt:614 */
|
10176 16107 | .map(|res| {
|
10177 16108 | res.map(|v| v.into())
|
10178 16109 | .map_err(ConstraintViolation::QueryEnumList)
|
10179 16110 | })
|
10180 16111 | .transpose()?,
|
16112 + | /* ServerBuilderGenerator.kt:546 */
|
10181 16113 | query_integer_enum_list: self.query_integer_enum_list,
|
10182 - | })
|
16114 + | /* ServerBuilderGenerator.kt:542 */
|
16115 + | }, /* ServerBuilderGenerator.kt:287 */
|
16116 + | )
|
16117 + | /* ServerBuilderGenerator.kt:283 */
|
10183 16118 | }
|
16119 + | /* ServerBuilderGenerator.kt:215 */
|
10184 16120 | }
|
16121 + |
|
16122 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10185 16123 | }
|
10186 - | /// See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
16124 + | /// /* ServerBuilderGenerator.kt:171 */See [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
10187 16125 | pub mod omits_null_serializes_empty_string_input {
|
10188 16126 |
|
16127 + | /* ServerBuilderGenerator.kt:461 */
|
10189 16128 | impl ::std::convert::From<Builder> for crate::input::OmitsNullSerializesEmptyStringInput {
|
10190 16129 | fn from(builder: Builder) -> Self {
|
10191 16130 | builder.build()
|
10192 16131 | }
|
10193 16132 | }
|
10194 - | /// A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
16133 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
16134 + | /* RustType.kt:534 */
|
10195 16135 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16136 + | /* ServerBuilderGenerator.kt:211 */
|
10196 16137 | pub struct Builder {
|
16138 + | /* ServerBuilderGenerator.kt:308 */
|
10197 16139 | pub(crate) null_value: ::std::option::Option<::std::string::String>,
|
16140 + | /* ServerBuilderGenerator.kt:308 */
|
10198 16141 | pub(crate) empty_string: ::std::option::Option<::std::string::String>,
|
16142 + | /* ServerBuilderGenerator.kt:211 */
|
10199 16143 | }
|
16144 + | /* ServerBuilderGenerator.kt:215 */
|
10200 16145 | impl Builder {
|
16146 + | /* ServerBuilderGenerator.kt:331 */
|
10201 16147 | #[allow(missing_docs)] // documentation missing in model
|
16148 + | /* ServerBuilderGenerator.kt:343 */
|
10202 16149 | pub fn null_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10203 - | self.null_value = input;
|
16150 + | /* ServerBuilderGenerator.kt:344 */
|
16151 + | self.null_value =
|
16152 + | /* ServerBuilderGenerator.kt:376 */input
|
16153 + | /* ServerBuilderGenerator.kt:344 */;
|
10204 16154 | self
|
16155 + | /* ServerBuilderGenerator.kt:343 */
|
10205 16156 | }
|
16157 + | /* ServerBuilderGenerator.kt:426 */
|
10206 16158 | #[allow(missing_docs)] // documentation missing in model
|
16159 + | /* ServerBuilderGenerator.kt:428 */
|
10207 16160 | pub(crate) fn set_null_value(
|
10208 16161 | mut self,
|
10209 16162 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10210 16163 | ) -> Self {
|
16164 + | /* ServerBuilderGenerator.kt:429 */
|
10211 16165 | self.null_value = input.map(|v| v.into());
|
10212 16166 | self
|
16167 + | /* ServerBuilderGenerator.kt:428 */
|
10213 16168 | }
|
16169 + | /* ServerBuilderGenerator.kt:331 */
|
10214 16170 | #[allow(missing_docs)] // documentation missing in model
|
16171 + | /* ServerBuilderGenerator.kt:343 */
|
10215 16172 | pub fn empty_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10216 - | self.empty_string = input;
|
16173 + | /* ServerBuilderGenerator.kt:344 */
|
16174 + | self.empty_string =
|
16175 + | /* ServerBuilderGenerator.kt:376 */input
|
16176 + | /* ServerBuilderGenerator.kt:344 */;
|
10217 16177 | self
|
16178 + | /* ServerBuilderGenerator.kt:343 */
|
10218 16179 | }
|
16180 + | /* ServerBuilderGenerator.kt:426 */
|
10219 16181 | #[allow(missing_docs)] // documentation missing in model
|
16182 + | /* ServerBuilderGenerator.kt:428 */
|
10220 16183 | pub(crate) fn set_empty_string(
|
10221 16184 | mut self,
|
10222 16185 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10223 16186 | ) -> Self {
|
16187 + | /* ServerBuilderGenerator.kt:429 */
|
10224 16188 | self.empty_string = input.map(|v| v.into());
|
10225 16189 | self
|
16190 + | /* ServerBuilderGenerator.kt:428 */
|
10226 16191 | }
|
10227 - | /// Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
16192 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput).
|
16193 + | /* ServerBuilderGenerator.kt:271 */
|
10228 16194 | pub fn build(self) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
10229 16195 | self.build_enforcing_all_constraints()
|
10230 16196 | }
|
16197 + | /* ServerBuilderGenerator.kt:283 */
|
10231 16198 | fn build_enforcing_all_constraints(
|
10232 16199 | self,
|
10233 16200 | ) -> crate::input::OmitsNullSerializesEmptyStringInput {
|
16201 + | /* ServerBuilderGenerator.kt:542 */
|
10234 16202 | crate::input::OmitsNullSerializesEmptyStringInput {
|
16203 + | /* ServerBuilderGenerator.kt:546 */
|
10235 16204 | null_value: self.null_value,
|
16205 + | /* ServerBuilderGenerator.kt:546 */
|
10236 16206 | empty_string: self.empty_string,
|
16207 + | /* ServerBuilderGenerator.kt:542 */
|
10237 16208 | }
|
16209 + | /* ServerBuilderGenerator.kt:283 */
|
10238 16210 | }
|
16211 + | /* ServerBuilderGenerator.kt:215 */
|
10239 16212 | }
|
16213 + |
|
16214 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10240 16215 | }
|
10241 - | /// See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
16216 + | /// /* ServerBuilderGenerator.kt:171 */See [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
10242 16217 | pub mod ignore_query_params_in_response_input {
|
10243 16218 |
|
16219 + | /* ServerBuilderGenerator.kt:461 */
|
10244 16220 | impl ::std::convert::From<Builder> for crate::input::IgnoreQueryParamsInResponseInput {
|
10245 16221 | fn from(builder: Builder) -> Self {
|
10246 16222 | builder.build()
|
10247 16223 | }
|
10248 16224 | }
|
10249 - | /// A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
16225 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
16226 + | /* RustType.kt:534 */
|
10250 16227 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
10251 - | pub struct Builder {}
|
16228 + | /* ServerBuilderGenerator.kt:211 */
|
16229 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
16230 + | /* ServerBuilderGenerator.kt:215 */
|
10252 16231 | impl Builder {
|
10253 - | /// Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
16232 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput).
|
16233 + | /* ServerBuilderGenerator.kt:271 */
|
10254 16234 | pub fn build(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
10255 16235 | self.build_enforcing_all_constraints()
|
10256 16236 | }
|
16237 + | /* ServerBuilderGenerator.kt:283 */
|
10257 16238 | fn build_enforcing_all_constraints(self) -> crate::input::IgnoreQueryParamsInResponseInput {
|
10258 - | crate::input::IgnoreQueryParamsInResponseInput {}
|
16239 + | /* ServerBuilderGenerator.kt:542 */
|
16240 + | crate::input::IgnoreQueryParamsInResponseInput {
|
16241 + | /* ServerBuilderGenerator.kt:542 */}
|
16242 + | /* ServerBuilderGenerator.kt:283 */
|
10259 16243 | }
|
16244 + | /* ServerBuilderGenerator.kt:215 */
|
10260 16245 | }
|
16246 + |
|
16247 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10261 16248 | }
|
10262 - | /// See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
16249 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
10263 16250 | pub mod constant_and_variable_query_string_input {
|
10264 16251 |
|
16252 + | /* ServerBuilderGenerator.kt:461 */
|
10265 16253 | impl ::std::convert::From<Builder> for crate::input::ConstantAndVariableQueryStringInput {
|
10266 16254 | fn from(builder: Builder) -> Self {
|
10267 16255 | builder.build()
|
10268 16256 | }
|
10269 16257 | }
|
10270 - | /// A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
16258 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
16259 + | /* RustType.kt:534 */
|
10271 16260 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16261 + | /* ServerBuilderGenerator.kt:211 */
|
10272 16262 | pub struct Builder {
|
16263 + | /* ServerBuilderGenerator.kt:308 */
|
10273 16264 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
16265 + | /* ServerBuilderGenerator.kt:308 */
|
10274 16266 | pub(crate) maybe_set: ::std::option::Option<::std::string::String>,
|
16267 + | /* ServerBuilderGenerator.kt:211 */
|
10275 16268 | }
|
16269 + | /* ServerBuilderGenerator.kt:215 */
|
10276 16270 | impl Builder {
|
16271 + | /* ServerBuilderGenerator.kt:331 */
|
10277 16272 | #[allow(missing_docs)] // documentation missing in model
|
16273 + | /* ServerBuilderGenerator.kt:343 */
|
10278 16274 | pub fn baz(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10279 - | self.baz = input;
|
16275 + | /* ServerBuilderGenerator.kt:344 */
|
16276 + | self.baz =
|
16277 + | /* ServerBuilderGenerator.kt:376 */input
|
16278 + | /* ServerBuilderGenerator.kt:344 */;
|
10280 16279 | self
|
16280 + | /* ServerBuilderGenerator.kt:343 */
|
10281 16281 | }
|
16282 + | /* ServerBuilderGenerator.kt:426 */
|
10282 16283 | #[allow(missing_docs)] // documentation missing in model
|
16284 + | /* ServerBuilderGenerator.kt:428 */
|
10283 16285 | pub(crate) fn set_baz(
|
10284 16286 | mut self,
|
10285 16287 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10286 16288 | ) -> Self {
|
16289 + | /* ServerBuilderGenerator.kt:429 */
|
10287 16290 | self.baz = input.map(|v| v.into());
|
10288 16291 | self
|
16292 + | /* ServerBuilderGenerator.kt:428 */
|
10289 16293 | }
|
16294 + | /* ServerBuilderGenerator.kt:331 */
|
10290 16295 | #[allow(missing_docs)] // documentation missing in model
|
16296 + | /* ServerBuilderGenerator.kt:343 */
|
10291 16297 | pub fn maybe_set(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10292 - | self.maybe_set = input;
|
16298 + | /* ServerBuilderGenerator.kt:344 */
|
16299 + | self.maybe_set =
|
16300 + | /* ServerBuilderGenerator.kt:376 */input
|
16301 + | /* ServerBuilderGenerator.kt:344 */;
|
10293 16302 | self
|
16303 + | /* ServerBuilderGenerator.kt:343 */
|
10294 16304 | }
|
16305 + | /* ServerBuilderGenerator.kt:426 */
|
10295 16306 | #[allow(missing_docs)] // documentation missing in model
|
16307 + | /* ServerBuilderGenerator.kt:428 */
|
10296 16308 | pub(crate) fn set_maybe_set(
|
10297 16309 | mut self,
|
10298 16310 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10299 16311 | ) -> Self {
|
16312 + | /* ServerBuilderGenerator.kt:429 */
|
10300 16313 | self.maybe_set = input.map(|v| v.into());
|
10301 16314 | self
|
16315 + | /* ServerBuilderGenerator.kt:428 */
|
10302 16316 | }
|
10303 - | /// Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
16317 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput).
|
16318 + | /* ServerBuilderGenerator.kt:271 */
|
10304 16319 | pub fn build(self) -> crate::input::ConstantAndVariableQueryStringInput {
|
10305 16320 | self.build_enforcing_all_constraints()
|
10306 16321 | }
|
16322 + | /* ServerBuilderGenerator.kt:283 */
|
10307 16323 | fn build_enforcing_all_constraints(
|
10308 16324 | self,
|
10309 16325 | ) -> crate::input::ConstantAndVariableQueryStringInput {
|
16326 + | /* ServerBuilderGenerator.kt:542 */
|
10310 16327 | crate::input::ConstantAndVariableQueryStringInput {
|
16328 + | /* ServerBuilderGenerator.kt:546 */
|
10311 16329 | baz: self.baz,
|
16330 + | /* ServerBuilderGenerator.kt:546 */
|
10312 16331 | maybe_set: self.maybe_set,
|
16332 + | /* ServerBuilderGenerator.kt:542 */
|
10313 16333 | }
|
16334 + | /* ServerBuilderGenerator.kt:283 */
|
10314 16335 | }
|
16336 + | /* ServerBuilderGenerator.kt:215 */
|
10315 16337 | }
|
16338 + |
|
16339 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10316 16340 | }
|
10317 - | /// See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16341 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
10318 16342 | pub mod constant_query_string_input {
|
10319 16343 |
|
16344 + | /* RustType.kt:534 */
|
10320 16345 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10321 - | /// Holds one variant for each of the ways the builder can fail.
|
16346 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16347 + | /* RustType.kt:534 */
|
10322 16348 | #[non_exhaustive]
|
16349 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10323 16350 | #[allow(clippy::enum_variant_names)]
|
10324 16351 | pub enum ConstraintViolation {
|
10325 - | /// `hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
16352 + | /// /* ServerBuilderConstraintViolations.kt:137 */`hello` was not provided but it is required when building `ConstantQueryStringInput`.
|
16353 + | /* ServerBuilderConstraintViolations.kt:144 */
|
10326 16354 | MissingHello,
|
16355 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10327 16356 | }
|
16357 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10328 16358 | impl ::std::fmt::Display for ConstraintViolation {
|
16359 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10329 16360 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16361 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10330 16362 | match self {
|
10331 - | ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
10332 - | }
|
16363 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingHello => write!(f, "`hello` was not provided but it is required when building `ConstantQueryStringInput`"),
|
16364 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
16365 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10333 16366 | }
|
16367 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10334 16368 | }
|
16369 + | /* ServerBuilderConstraintViolations.kt:83 */
|
10335 16370 | impl ::std::error::Error for ConstraintViolation {}
|
16371 + | /* ServerBuilderConstraintViolations.kt:172 */
|
10336 16372 | impl ConstraintViolation {
|
10337 16373 | pub(crate) fn as_validation_exception_field(
|
10338 16374 | self,
|
10339 16375 | path: ::std::string::String,
|
10340 16376 | ) -> crate::model::ValidationExceptionField {
|
10341 16377 | match self {
|
10342 16378 | ConstraintViolation::MissingHello => crate::model::ValidationExceptionField {
|
10343 16379 | message: format!(
|
10344 16380 | "Value at '{}/hello' failed to satisfy constraint: Member must not be null",
|
10345 16381 | path
|
10346 16382 | ),
|
10347 16383 | path: path + "/hello",
|
10348 16384 | },
|
10349 16385 | }
|
10350 16386 | }
|
10351 16387 | }
|
16388 + | /* ServerBuilderGenerator.kt:234 */
|
10352 16389 | impl ::std::convert::From<ConstraintViolation>
|
10353 16390 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10354 16391 | {
|
10355 16392 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10356 16393 | let first_validation_exception_field =
|
10357 16394 | constraint_violation.as_validation_exception_field("".to_owned());
|
10358 16395 | let validation_exception = crate::error::ValidationException {
|
10359 16396 | message: format!(
|
10360 16397 | "1 validation error detected. {}",
|
10361 16398 | &first_validation_exception_field.message
|
10362 16399 | ),
|
10363 16400 | field_list: Some(vec![first_validation_exception_field]),
|
10364 16401 | };
|
10365 16402 | Self::ConstraintViolation(
|
10366 16403 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10367 16404 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10368 16405 | )
|
10369 16406 | }
|
10370 16407 | }
|
16408 + | /* ServerBuilderGenerator.kt:244 */
|
10371 16409 | impl ::std::convert::From<Builder>
|
10372 16410 | for crate::constrained::MaybeConstrained<crate::input::ConstantQueryStringInput>
|
10373 16411 | {
|
10374 16412 | fn from(builder: Builder) -> Self {
|
10375 16413 | Self::Unconstrained(builder)
|
10376 16414 | }
|
10377 16415 | }
|
16416 + | /* ServerBuilderGenerator.kt:446 */
|
10378 16417 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstantQueryStringInput {
|
10379 16418 | type Error = ConstraintViolation;
|
10380 16419 |
|
10381 16420 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10382 16421 | builder.build()
|
10383 16422 | }
|
10384 16423 | }
|
10385 - | /// A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16424 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16425 + | /* RustType.kt:534 */
|
10386 16426 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16427 + | /* ServerBuilderGenerator.kt:211 */
|
10387 16428 | pub struct Builder {
|
16429 + | /* ServerBuilderGenerator.kt:308 */
|
10388 16430 | pub(crate) hello: ::std::option::Option<::std::string::String>,
|
16431 + | /* ServerBuilderGenerator.kt:211 */
|
10389 16432 | }
|
16433 + | /* ServerBuilderGenerator.kt:215 */
|
10390 16434 | impl Builder {
|
16435 + | /* ServerBuilderGenerator.kt:331 */
|
10391 16436 | #[allow(missing_docs)] // documentation missing in model
|
16437 + | /* ServerBuilderGenerator.kt:343 */
|
10392 16438 | pub fn hello(mut self, input: ::std::string::String) -> Self {
|
10393 - | self.hello = Some(input);
|
16439 + | /* ServerBuilderGenerator.kt:344 */
|
16440 + | self.hello =
|
16441 + | /* ServerBuilderGenerator.kt:345 */Some(
|
16442 + | /* ServerBuilderGenerator.kt:376 */input
|
16443 + | /* ServerBuilderGenerator.kt:345 */)
|
16444 + | /* ServerBuilderGenerator.kt:344 */;
|
10394 16445 | self
|
16446 + | /* ServerBuilderGenerator.kt:343 */
|
10395 16447 | }
|
16448 + | /* ServerBuilderGenerator.kt:426 */
|
10396 16449 | #[allow(missing_docs)] // documentation missing in model
|
16450 + | /* ServerBuilderGenerator.kt:428 */
|
10397 16451 | pub(crate) fn set_hello(
|
10398 16452 | mut self,
|
10399 16453 | input: impl ::std::convert::Into<::std::string::String>,
|
10400 16454 | ) -> Self {
|
16455 + | /* ServerBuilderGenerator.kt:429 */
|
10401 16456 | self.hello = Some(input.into());
|
10402 16457 | self
|
16458 + | /* ServerBuilderGenerator.kt:428 */
|
10403 16459 | }
|
10404 - | /// Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
10405 - | ///
|
16460 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput).
|
16461 + | /// /* ServerBuilderGenerator.kt:260 */
|
10406 16462 | /// The builder fails to construct a [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) if a [`ConstraintViolation`] occurs.
|
10407 16463 | ///
|
16464 + | /* ServerBuilderGenerator.kt:271 */
|
10408 16465 | pub fn build(self) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
10409 16466 | self.build_enforcing_all_constraints()
|
10410 16467 | }
|
16468 + | /* ServerBuilderGenerator.kt:283 */
|
10411 16469 | fn build_enforcing_all_constraints(
|
10412 16470 | self,
|
10413 16471 | ) -> Result<crate::input::ConstantQueryStringInput, ConstraintViolation> {
|
10414 - | Ok(crate::input::ConstantQueryStringInput {
|
10415 - | hello: self.hello.ok_or(ConstraintViolation::MissingHello)?,
|
10416 - | })
|
16472 + | /* ServerBuilderGenerator.kt:287 */
|
16473 + | Ok(
|
16474 + | /* ServerBuilderGenerator.kt:542 */
|
16475 + | crate::input::ConstantQueryStringInput {
|
16476 + | /* ServerBuilderGenerator.kt:546 */
|
16477 + | hello: self
|
16478 + | .hello
|
16479 + | /* ServerBuilderGenerator.kt:569 */
|
16480 + | .ok_or(ConstraintViolation::MissingHello)?,
|
16481 + | /* ServerBuilderGenerator.kt:542 */
|
16482 + | }, /* ServerBuilderGenerator.kt:287 */
|
16483 + | )
|
16484 + | /* ServerBuilderGenerator.kt:283 */
|
10417 16485 | }
|
16486 + | /* ServerBuilderGenerator.kt:215 */
|
10418 16487 | }
|
16488 + |
|
16489 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10419 16490 | }
|
10420 - | /// See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16491 + | /// /* ServerBuilderGenerator.kt:171 */See [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
10421 16492 | pub mod all_query_string_types_input {
|
10422 16493 |
|
16494 + | /* RustType.kt:534 */
|
10423 16495 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10424 - | /// Holds one variant for each of the ways the builder can fail.
|
16496 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
16497 + | /* RustType.kt:534 */
|
10425 16498 | #[non_exhaustive]
|
16499 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10426 16500 | #[allow(clippy::enum_variant_names)]
|
10427 16501 | pub enum ConstraintViolation {
|
10428 - | /// Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
16502 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`.
|
16503 + | /* RustType.kt:534 */
|
10429 16504 | #[doc(hidden)]
|
16505 + | /* ServerBuilderConstraintViolations.kt:165 */
|
10430 16506 | QueryStringSet(crate::model::string_set::ConstraintViolation),
|
10431 - | /// Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
16507 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`.
|
16508 + | /* RustType.kt:534 */
|
10432 16509 | #[doc(hidden)]
|
16510 + | /* ServerBuilderConstraintViolations.kt:165 */
|
10433 16511 | QueryIntegerSet(crate::model::integer_set::ConstraintViolation),
|
10434 - | /// Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
16512 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`.
|
16513 + | /* RustType.kt:534 */
|
10435 16514 | #[doc(hidden)]
|
16515 + | /* ServerBuilderConstraintViolations.kt:165 */
|
10436 16516 | QueryEnum(crate::model::foo_enum::ConstraintViolation),
|
10437 - | /// Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
16517 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`.
|
16518 + | /* RustType.kt:534 */
|
10438 16519 | #[doc(hidden)]
|
16520 + | /* ServerBuilderConstraintViolations.kt:165 */
|
10439 16521 | QueryEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
16522 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10440 16523 | }
|
16524 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10441 16525 | impl ::std::fmt::Display for ConstraintViolation {
|
16526 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10442 16527 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16528 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10443 16529 | match self {
|
10444 - | ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
10445 - | ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
10446 - | ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
10447 - | ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
10448 - | }
|
16530 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::QueryStringSet(_) => write!(f, "constraint violation occurred building member `query_string_set` when building `AllQueryStringTypesInput`"),
|
16531 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::QueryIntegerSet(_) => write!(f, "constraint violation occurred building member `query_integer_set` when building `AllQueryStringTypesInput`"),
|
16532 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::QueryEnum(_) => write!(f, "constraint violation occurred building member `query_enum` when building `AllQueryStringTypesInput`"),
|
16533 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::QueryEnumList(_) => write!(f, "constraint violation occurred building member `query_enum_list` when building `AllQueryStringTypesInput`"),
|
16534 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
16535 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10449 16536 | }
|
16537 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10450 16538 | }
|
16539 + | /* ServerBuilderConstraintViolations.kt:83 */
|
10451 16540 | impl ::std::error::Error for ConstraintViolation {}
|
16541 + | /* ServerBuilderConstraintViolations.kt:172 */
|
10452 16542 | impl ConstraintViolation {
|
10453 16543 | pub(crate) fn as_validation_exception_field(
|
10454 16544 | self,
|
10455 16545 | path: ::std::string::String,
|
10456 16546 | ) -> crate::model::ValidationExceptionField {
|
10457 16547 | match self {
|
10458 16548 | ConstraintViolation::QueryStringSet(inner) => {
|
10459 16549 | inner.as_validation_exception_field(path + "/queryStringSet")
|
10460 16550 | }
|
10461 16551 | ConstraintViolation::QueryIntegerSet(inner) => {
|
10462 16552 | inner.as_validation_exception_field(path + "/queryIntegerSet")
|
10463 16553 | }
|
10464 16554 | ConstraintViolation::QueryEnum(inner) => {
|
10465 16555 | inner.as_validation_exception_field(path + "/queryEnum")
|
10466 16556 | }
|
10467 16557 | ConstraintViolation::QueryEnumList(inner) => {
|
10468 16558 | inner.as_validation_exception_field(path + "/queryEnumList")
|
10469 16559 | }
|
10470 16560 | }
|
10471 16561 | }
|
10472 16562 | }
|
16563 + | /* ServerBuilderGenerator.kt:234 */
|
10473 16564 | impl ::std::convert::From<ConstraintViolation>
|
10474 16565 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10475 16566 | {
|
10476 16567 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10477 16568 | let first_validation_exception_field =
|
10478 16569 | constraint_violation.as_validation_exception_field("".to_owned());
|
10479 16570 | let validation_exception = crate::error::ValidationException {
|
10480 16571 | message: format!(
|
10481 16572 | "1 validation error detected. {}",
|
10482 16573 | &first_validation_exception_field.message
|
10483 16574 | ),
|
10484 16575 | field_list: Some(vec![first_validation_exception_field]),
|
10485 16576 | };
|
10486 16577 | Self::ConstraintViolation(
|
10487 16578 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10488 16579 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10489 16580 | )
|
10490 16581 | }
|
10491 16582 | }
|
16583 + | /* ServerBuilderGenerator.kt:244 */
|
10492 16584 | impl ::std::convert::From<Builder>
|
10493 16585 | for crate::constrained::MaybeConstrained<crate::input::AllQueryStringTypesInput>
|
10494 16586 | {
|
10495 16587 | fn from(builder: Builder) -> Self {
|
10496 16588 | Self::Unconstrained(builder)
|
10497 16589 | }
|
10498 16590 | }
|
16591 + | /* ServerBuilderGenerator.kt:446 */
|
10499 16592 | impl ::std::convert::TryFrom<Builder> for crate::input::AllQueryStringTypesInput {
|
10500 16593 | type Error = ConstraintViolation;
|
10501 16594 |
|
10502 16595 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10503 16596 | builder.build()
|
10504 16597 | }
|
10505 16598 | }
|
10506 - | /// A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16599 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
16600 + | /* RustType.kt:534 */
|
10507 16601 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
16602 + | /* ServerBuilderGenerator.kt:211 */
|
10508 16603 | pub struct Builder {
|
16604 + | /* ServerBuilderGenerator.kt:308 */
|
10509 16605 | pub(crate) query_string: ::std::option::Option<::std::string::String>,
|
16606 + | /* ServerBuilderGenerator.kt:308 */
|
10510 16607 | pub(crate) query_string_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
16608 + | /* ServerBuilderGenerator.kt:308 */
|
10511 16609 | pub(crate) query_string_set:
|
10512 16610 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
10513 - | pub(crate) query_byte: ::std::option::Option<i8>,
|
16611 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) query_byte: ::std::option::Option<i8>,
|
16612 + | /* ServerBuilderGenerator.kt:308 */
|
10514 16613 | pub(crate) query_short: ::std::option::Option<i16>,
|
16614 + | /* ServerBuilderGenerator.kt:308 */
|
10515 16615 | pub(crate) query_integer: ::std::option::Option<i32>,
|
16616 + | /* ServerBuilderGenerator.kt:308 */
|
10516 16617 | pub(crate) query_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
16618 + | /* ServerBuilderGenerator.kt:308 */
|
10517 16619 | pub(crate) query_integer_set:
|
10518 16620 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::IntegerSet>>,
|
16621 + | /* ServerBuilderGenerator.kt:308 */
|
10519 16622 | pub(crate) query_long: ::std::option::Option<i64>,
|
16623 + | /* ServerBuilderGenerator.kt:308 */
|
10520 16624 | pub(crate) query_float: ::std::option::Option<f32>,
|
16625 + | /* ServerBuilderGenerator.kt:308 */
|
10521 16626 | pub(crate) query_double: ::std::option::Option<f64>,
|
16627 + | /* ServerBuilderGenerator.kt:308 */
|
10522 16628 | pub(crate) query_double_list: ::std::option::Option<::std::vec::Vec<f64>>,
|
16629 + | /* ServerBuilderGenerator.kt:308 */
|
10523 16630 | pub(crate) query_boolean: ::std::option::Option<bool>,
|
16631 + | /* ServerBuilderGenerator.kt:308 */
|
10524 16632 | pub(crate) query_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
16633 + | /* ServerBuilderGenerator.kt:308 */
|
10525 16634 | pub(crate) query_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
16635 + | /* ServerBuilderGenerator.kt:308 */
|
10526 16636 | pub(crate) query_timestamp_list:
|
10527 16637 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
16638 + | /* ServerBuilderGenerator.kt:308 */
|
10528 16639 | pub(crate) query_enum:
|
10529 16640 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
16641 + | /* ServerBuilderGenerator.kt:308 */
|
10530 16642 | pub(crate) query_enum_list: ::std::option::Option<
|
10531 16643 | crate::constrained::MaybeConstrained<
|
10532 16644 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10533 16645 | >,
|
10534 16646 | >,
|
16647 + | /* ServerBuilderGenerator.kt:308 */
|
10535 16648 | pub(crate) query_integer_enum: ::std::option::Option<i32>,
|
16649 + | /* ServerBuilderGenerator.kt:308 */
|
10536 16650 | pub(crate) query_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
16651 + | /* ServerBuilderGenerator.kt:308 */
|
10537 16652 | pub(crate) query_params_map_of_string_list: ::std::option::Option<
|
10538 16653 | ::std::collections::HashMap<
|
10539 16654 | ::std::string::String,
|
10540 16655 | ::std::vec::Vec<::std::string::String>,
|
10541 16656 | >,
|
10542 16657 | >,
|
16658 + | /* ServerBuilderGenerator.kt:211 */
|
10543 16659 | }
|
16660 + | /* ServerBuilderGenerator.kt:215 */
|
10544 16661 | impl Builder {
|
16662 + | /* ServerBuilderGenerator.kt:331 */
|
10545 16663 | #[allow(missing_docs)] // documentation missing in model
|
16664 + | /* ServerBuilderGenerator.kt:343 */
|
10546 16665 | pub fn query_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
10547 - | self.query_string = input;
|
16666 + | /* ServerBuilderGenerator.kt:344 */
|
16667 + | self.query_string =
|
16668 + | /* ServerBuilderGenerator.kt:376 */input
|
16669 + | /* ServerBuilderGenerator.kt:344 */;
|
10548 16670 | self
|
16671 + | /* ServerBuilderGenerator.kt:343 */
|
10549 16672 | }
|
16673 + | /* ServerBuilderGenerator.kt:426 */
|
10550 16674 | #[allow(missing_docs)] // documentation missing in model
|
16675 + | /* ServerBuilderGenerator.kt:428 */
|
10551 16676 | pub(crate) fn set_query_string(
|
10552 16677 | mut self,
|
10553 16678 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
10554 16679 | ) -> Self {
|
16680 + | /* ServerBuilderGenerator.kt:429 */
|
10555 16681 | self.query_string = input.map(|v| v.into());
|
10556 16682 | self
|
16683 + | /* ServerBuilderGenerator.kt:428 */
|
10557 16684 | }
|
16685 + | /* ServerBuilderGenerator.kt:331 */
|
10558 16686 | #[allow(missing_docs)] // documentation missing in model
|
16687 + | /* ServerBuilderGenerator.kt:343 */
|
10559 16688 | pub fn query_string_list(
|
10560 16689 | mut self,
|
10561 16690 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
10562 16691 | ) -> Self {
|
10563 - | self.query_string_list = input;
|
16692 + | /* ServerBuilderGenerator.kt:344 */
|
16693 + | self.query_string_list =
|
16694 + | /* ServerBuilderGenerator.kt:376 */input
|
16695 + | /* ServerBuilderGenerator.kt:344 */;
|
10564 16696 | self
|
16697 + | /* ServerBuilderGenerator.kt:343 */
|
10565 16698 | }
|
16699 + | /* ServerBuilderGenerator.kt:426 */
|
10566 16700 | #[allow(missing_docs)] // documentation missing in model
|
16701 + | /* ServerBuilderGenerator.kt:428 */
|
10567 16702 | pub(crate) fn set_query_string_list(
|
10568 16703 | mut self,
|
10569 16704 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
10570 16705 | ) -> Self {
|
16706 + | /* ServerBuilderGenerator.kt:429 */
|
10571 16707 | self.query_string_list = input.map(|v| v.into());
|
10572 16708 | self
|
16709 + | /* ServerBuilderGenerator.kt:428 */
|
10573 16710 | }
|
16711 + | /* ServerBuilderGenerator.kt:331 */
|
10574 16712 | #[allow(missing_docs)] // documentation missing in model
|
16713 + | /* ServerBuilderGenerator.kt:343 */
|
10575 16714 | pub fn query_string_set(
|
10576 16715 | mut self,
|
10577 16716 | input: ::std::option::Option<crate::model::StringSet>,
|
10578 16717 | ) -> Self {
|
10579 - | self.query_string_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
16718 + | /* ServerBuilderGenerator.kt:344 */
|
16719 + | self.query_string_set =
|
16720 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
16721 + | /* ServerBuilderGenerator.kt:344 */;
|
10580 16722 | self
|
16723 + | /* ServerBuilderGenerator.kt:343 */
|
10581 16724 | }
|
16725 + | /* ServerBuilderGenerator.kt:426 */
|
10582 16726 | #[allow(missing_docs)] // documentation missing in model
|
16727 + | /* ServerBuilderGenerator.kt:428 */
|
10583 16728 | pub(crate) fn set_query_string_set(
|
10584 16729 | mut self,
|
10585 16730 | input: Option<
|
10586 16731 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
10587 16732 | >,
|
10588 16733 | ) -> Self {
|
16734 + | /* ServerBuilderGenerator.kt:429 */
|
10589 16735 | self.query_string_set = input.map(|v| v.into());
|
10590 16736 | self
|
16737 + | /* ServerBuilderGenerator.kt:428 */
|
10591 16738 | }
|
16739 + | /* ServerBuilderGenerator.kt:331 */
|
10592 16740 | #[allow(missing_docs)] // documentation missing in model
|
16741 + | /* ServerBuilderGenerator.kt:343 */
|
10593 16742 | pub fn query_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
10594 - | self.query_byte = input;
|
16743 + | /* ServerBuilderGenerator.kt:344 */
|
16744 + | self.query_byte =
|
16745 + | /* ServerBuilderGenerator.kt:376 */input
|
16746 + | /* ServerBuilderGenerator.kt:344 */;
|
10595 16747 | self
|
16748 + | /* ServerBuilderGenerator.kt:343 */
|
10596 16749 | }
|
16750 + | /* ServerBuilderGenerator.kt:426 */
|
10597 16751 | #[allow(missing_docs)] // documentation missing in model
|
16752 + | /* ServerBuilderGenerator.kt:428 */
|
10598 16753 | pub(crate) fn set_query_byte(
|
10599 16754 | mut self,
|
10600 16755 | input: Option<impl ::std::convert::Into<i8>>,
|
10601 16756 | ) -> Self {
|
16757 + | /* ServerBuilderGenerator.kt:429 */
|
10602 16758 | self.query_byte = input.map(|v| v.into());
|
10603 16759 | self
|
16760 + | /* ServerBuilderGenerator.kt:428 */
|
10604 16761 | }
|
16762 + | /* ServerBuilderGenerator.kt:331 */
|
10605 16763 | #[allow(missing_docs)] // documentation missing in model
|
16764 + | /* ServerBuilderGenerator.kt:343 */
|
10606 16765 | pub fn query_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
10607 - | self.query_short = input;
|
16766 + | /* ServerBuilderGenerator.kt:344 */
|
16767 + | self.query_short =
|
16768 + | /* ServerBuilderGenerator.kt:376 */input
|
16769 + | /* ServerBuilderGenerator.kt:344 */;
|
10608 16770 | self
|
16771 + | /* ServerBuilderGenerator.kt:343 */
|
10609 16772 | }
|
16773 + | /* ServerBuilderGenerator.kt:426 */
|
10610 16774 | #[allow(missing_docs)] // documentation missing in model
|
16775 + | /* ServerBuilderGenerator.kt:428 */
|
10611 16776 | pub(crate) fn set_query_short(
|
10612 16777 | mut self,
|
10613 16778 | input: Option<impl ::std::convert::Into<i16>>,
|
10614 16779 | ) -> Self {
|
16780 + | /* ServerBuilderGenerator.kt:429 */
|
10615 16781 | self.query_short = input.map(|v| v.into());
|
10616 16782 | self
|
16783 + | /* ServerBuilderGenerator.kt:428 */
|
10617 16784 | }
|
16785 + | /* ServerBuilderGenerator.kt:331 */
|
10618 16786 | #[allow(missing_docs)] // documentation missing in model
|
16787 + | /* ServerBuilderGenerator.kt:343 */
|
10619 16788 | pub fn query_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
10620 - | self.query_integer = input;
|
16789 + | /* ServerBuilderGenerator.kt:344 */
|
16790 + | self.query_integer =
|
16791 + | /* ServerBuilderGenerator.kt:376 */input
|
16792 + | /* ServerBuilderGenerator.kt:344 */;
|
10621 16793 | self
|
16794 + | /* ServerBuilderGenerator.kt:343 */
|
10622 16795 | }
|
16796 + | /* ServerBuilderGenerator.kt:426 */
|
10623 16797 | #[allow(missing_docs)] // documentation missing in model
|
16798 + | /* ServerBuilderGenerator.kt:428 */
|
10624 16799 | pub(crate) fn set_query_integer(
|
10625 16800 | mut self,
|
10626 16801 | input: Option<impl ::std::convert::Into<i32>>,
|
10627 16802 | ) -> Self {
|
16803 + | /* ServerBuilderGenerator.kt:429 */
|
10628 16804 | self.query_integer = input.map(|v| v.into());
|
10629 16805 | self
|
16806 + | /* ServerBuilderGenerator.kt:428 */
|
10630 16807 | }
|
16808 + | /* ServerBuilderGenerator.kt:331 */
|
10631 16809 | #[allow(missing_docs)] // documentation missing in model
|
16810 + | /* ServerBuilderGenerator.kt:343 */
|
10632 16811 | pub fn query_integer_list(
|
10633 16812 | mut self,
|
10634 16813 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10635 16814 | ) -> Self {
|
10636 - | self.query_integer_list = input;
|
16815 + | /* ServerBuilderGenerator.kt:344 */
|
16816 + | self.query_integer_list =
|
16817 + | /* ServerBuilderGenerator.kt:376 */input
|
16818 + | /* ServerBuilderGenerator.kt:344 */;
|
10637 16819 | self
|
16820 + | /* ServerBuilderGenerator.kt:343 */
|
10638 16821 | }
|
16822 + | /* ServerBuilderGenerator.kt:426 */
|
10639 16823 | #[allow(missing_docs)] // documentation missing in model
|
16824 + | /* ServerBuilderGenerator.kt:428 */
|
10640 16825 | pub(crate) fn set_query_integer_list(
|
10641 16826 | mut self,
|
10642 16827 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10643 16828 | ) -> Self {
|
16829 + | /* ServerBuilderGenerator.kt:429 */
|
10644 16830 | self.query_integer_list = input.map(|v| v.into());
|
10645 16831 | self
|
16832 + | /* ServerBuilderGenerator.kt:428 */
|
10646 16833 | }
|
16834 + | /* ServerBuilderGenerator.kt:331 */
|
10647 16835 | #[allow(missing_docs)] // documentation missing in model
|
16836 + | /* ServerBuilderGenerator.kt:343 */
|
10648 16837 | pub fn query_integer_set(
|
10649 16838 | mut self,
|
10650 16839 | input: ::std::option::Option<crate::model::IntegerSet>,
|
10651 16840 | ) -> Self {
|
10652 - | self.query_integer_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
16841 + | /* ServerBuilderGenerator.kt:344 */
|
16842 + | self.query_integer_set =
|
16843 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
16844 + | /* ServerBuilderGenerator.kt:344 */;
|
10653 16845 | self
|
16846 + | /* ServerBuilderGenerator.kt:343 */
|
10654 16847 | }
|
16848 + | /* ServerBuilderGenerator.kt:426 */
|
10655 16849 | #[allow(missing_docs)] // documentation missing in model
|
16850 + | /* ServerBuilderGenerator.kt:428 */
|
10656 16851 | pub(crate) fn set_query_integer_set(
|
10657 16852 | mut self,
|
10658 16853 | input: Option<
|
10659 16854 | impl ::std::convert::Into<
|
10660 16855 | crate::constrained::MaybeConstrained<crate::model::IntegerSet>,
|
10661 16856 | >,
|
10662 16857 | >,
|
10663 16858 | ) -> Self {
|
16859 + | /* ServerBuilderGenerator.kt:429 */
|
10664 16860 | self.query_integer_set = input.map(|v| v.into());
|
10665 16861 | self
|
16862 + | /* ServerBuilderGenerator.kt:428 */
|
10666 16863 | }
|
16864 + | /* ServerBuilderGenerator.kt:331 */
|
10667 16865 | #[allow(missing_docs)] // documentation missing in model
|
16866 + | /* ServerBuilderGenerator.kt:343 */
|
10668 16867 | pub fn query_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
10669 - | self.query_long = input;
|
16868 + | /* ServerBuilderGenerator.kt:344 */
|
16869 + | self.query_long =
|
16870 + | /* ServerBuilderGenerator.kt:376 */input
|
16871 + | /* ServerBuilderGenerator.kt:344 */;
|
10670 16872 | self
|
16873 + | /* ServerBuilderGenerator.kt:343 */
|
10671 16874 | }
|
16875 + | /* ServerBuilderGenerator.kt:426 */
|
10672 16876 | #[allow(missing_docs)] // documentation missing in model
|
16877 + | /* ServerBuilderGenerator.kt:428 */
|
10673 16878 | pub(crate) fn set_query_long(
|
10674 16879 | mut self,
|
10675 16880 | input: Option<impl ::std::convert::Into<i64>>,
|
10676 16881 | ) -> Self {
|
16882 + | /* ServerBuilderGenerator.kt:429 */
|
10677 16883 | self.query_long = input.map(|v| v.into());
|
10678 16884 | self
|
16885 + | /* ServerBuilderGenerator.kt:428 */
|
10679 16886 | }
|
16887 + | /* ServerBuilderGenerator.kt:331 */
|
10680 16888 | #[allow(missing_docs)] // documentation missing in model
|
16889 + | /* ServerBuilderGenerator.kt:343 */
|
10681 16890 | pub fn query_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
10682 - | self.query_float = input;
|
16891 + | /* ServerBuilderGenerator.kt:344 */
|
16892 + | self.query_float =
|
16893 + | /* ServerBuilderGenerator.kt:376 */input
|
16894 + | /* ServerBuilderGenerator.kt:344 */;
|
10683 16895 | self
|
16896 + | /* ServerBuilderGenerator.kt:343 */
|
10684 16897 | }
|
16898 + | /* ServerBuilderGenerator.kt:426 */
|
10685 16899 | #[allow(missing_docs)] // documentation missing in model
|
16900 + | /* ServerBuilderGenerator.kt:428 */
|
10686 16901 | pub(crate) fn set_query_float(
|
10687 16902 | mut self,
|
10688 16903 | input: Option<impl ::std::convert::Into<f32>>,
|
10689 16904 | ) -> Self {
|
16905 + | /* ServerBuilderGenerator.kt:429 */
|
10690 16906 | self.query_float = input.map(|v| v.into());
|
10691 16907 | self
|
16908 + | /* ServerBuilderGenerator.kt:428 */
|
10692 16909 | }
|
16910 + | /* ServerBuilderGenerator.kt:331 */
|
10693 16911 | #[allow(missing_docs)] // documentation missing in model
|
16912 + | /* ServerBuilderGenerator.kt:343 */
|
10694 16913 | pub fn query_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
10695 - | self.query_double = input;
|
16914 + | /* ServerBuilderGenerator.kt:344 */
|
16915 + | self.query_double =
|
16916 + | /* ServerBuilderGenerator.kt:376 */input
|
16917 + | /* ServerBuilderGenerator.kt:344 */;
|
10696 16918 | self
|
16919 + | /* ServerBuilderGenerator.kt:343 */
|
10697 16920 | }
|
16921 + | /* ServerBuilderGenerator.kt:426 */
|
10698 16922 | #[allow(missing_docs)] // documentation missing in model
|
16923 + | /* ServerBuilderGenerator.kt:428 */
|
10699 16924 | pub(crate) fn set_query_double(
|
10700 16925 | mut self,
|
10701 16926 | input: Option<impl ::std::convert::Into<f64>>,
|
10702 16927 | ) -> Self {
|
16928 + | /* ServerBuilderGenerator.kt:429 */
|
10703 16929 | self.query_double = input.map(|v| v.into());
|
10704 16930 | self
|
16931 + | /* ServerBuilderGenerator.kt:428 */
|
10705 16932 | }
|
16933 + | /* ServerBuilderGenerator.kt:331 */
|
10706 16934 | #[allow(missing_docs)] // documentation missing in model
|
16935 + | /* ServerBuilderGenerator.kt:343 */
|
10707 16936 | pub fn query_double_list(
|
10708 16937 | mut self,
|
10709 16938 | input: ::std::option::Option<::std::vec::Vec<f64>>,
|
10710 16939 | ) -> Self {
|
10711 - | self.query_double_list = input;
|
16940 + | /* ServerBuilderGenerator.kt:344 */
|
16941 + | self.query_double_list =
|
16942 + | /* ServerBuilderGenerator.kt:376 */input
|
16943 + | /* ServerBuilderGenerator.kt:344 */;
|
10712 16944 | self
|
16945 + | /* ServerBuilderGenerator.kt:343 */
|
10713 16946 | }
|
16947 + | /* ServerBuilderGenerator.kt:426 */
|
10714 16948 | #[allow(missing_docs)] // documentation missing in model
|
16949 + | /* ServerBuilderGenerator.kt:428 */
|
10715 16950 | pub(crate) fn set_query_double_list(
|
10716 16951 | mut self,
|
10717 16952 | input: Option<impl ::std::convert::Into<::std::vec::Vec<f64>>>,
|
10718 16953 | ) -> Self {
|
16954 + | /* ServerBuilderGenerator.kt:429 */
|
10719 16955 | self.query_double_list = input.map(|v| v.into());
|
10720 16956 | self
|
16957 + | /* ServerBuilderGenerator.kt:428 */
|
10721 16958 | }
|
16959 + | /* ServerBuilderGenerator.kt:331 */
|
10722 16960 | #[allow(missing_docs)] // documentation missing in model
|
16961 + | /* ServerBuilderGenerator.kt:343 */
|
10723 16962 | pub fn query_boolean(mut self, input: ::std::option::Option<bool>) -> Self {
|
10724 - | self.query_boolean = input;
|
16963 + | /* ServerBuilderGenerator.kt:344 */
|
16964 + | self.query_boolean =
|
16965 + | /* ServerBuilderGenerator.kt:376 */input
|
16966 + | /* ServerBuilderGenerator.kt:344 */;
|
10725 16967 | self
|
16968 + | /* ServerBuilderGenerator.kt:343 */
|
10726 16969 | }
|
16970 + | /* ServerBuilderGenerator.kt:426 */
|
10727 16971 | #[allow(missing_docs)] // documentation missing in model
|
16972 + | /* ServerBuilderGenerator.kt:428 */
|
10728 16973 | pub(crate) fn set_query_boolean(
|
10729 16974 | mut self,
|
10730 16975 | input: Option<impl ::std::convert::Into<bool>>,
|
10731 16976 | ) -> Self {
|
16977 + | /* ServerBuilderGenerator.kt:429 */
|
10732 16978 | self.query_boolean = input.map(|v| v.into());
|
10733 16979 | self
|
16980 + | /* ServerBuilderGenerator.kt:428 */
|
10734 16981 | }
|
16982 + | /* ServerBuilderGenerator.kt:331 */
|
10735 16983 | #[allow(missing_docs)] // documentation missing in model
|
16984 + | /* ServerBuilderGenerator.kt:343 */
|
10736 16985 | pub fn query_boolean_list(
|
10737 16986 | mut self,
|
10738 16987 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
10739 16988 | ) -> Self {
|
10740 - | self.query_boolean_list = input;
|
16989 + | /* ServerBuilderGenerator.kt:344 */
|
16990 + | self.query_boolean_list =
|
16991 + | /* ServerBuilderGenerator.kt:376 */input
|
16992 + | /* ServerBuilderGenerator.kt:344 */;
|
10741 16993 | self
|
16994 + | /* ServerBuilderGenerator.kt:343 */
|
10742 16995 | }
|
16996 + | /* ServerBuilderGenerator.kt:426 */
|
10743 16997 | #[allow(missing_docs)] // documentation missing in model
|
16998 + | /* ServerBuilderGenerator.kt:428 */
|
10744 16999 | pub(crate) fn set_query_boolean_list(
|
10745 17000 | mut self,
|
10746 17001 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
10747 17002 | ) -> Self {
|
17003 + | /* ServerBuilderGenerator.kt:429 */
|
10748 17004 | self.query_boolean_list = input.map(|v| v.into());
|
10749 17005 | self
|
17006 + | /* ServerBuilderGenerator.kt:428 */
|
10750 17007 | }
|
17008 + | /* ServerBuilderGenerator.kt:331 */
|
10751 17009 | #[allow(missing_docs)] // documentation missing in model
|
17010 + | /* ServerBuilderGenerator.kt:343 */
|
10752 17011 | pub fn query_timestamp(
|
10753 17012 | mut self,
|
10754 17013 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
10755 17014 | ) -> Self {
|
10756 - | self.query_timestamp = input;
|
17015 + | /* ServerBuilderGenerator.kt:344 */
|
17016 + | self.query_timestamp =
|
17017 + | /* ServerBuilderGenerator.kt:376 */input
|
17018 + | /* ServerBuilderGenerator.kt:344 */;
|
10757 17019 | self
|
17020 + | /* ServerBuilderGenerator.kt:343 */
|
10758 17021 | }
|
17022 + | /* ServerBuilderGenerator.kt:426 */
|
10759 17023 | #[allow(missing_docs)] // documentation missing in model
|
17024 + | /* ServerBuilderGenerator.kt:428 */
|
10760 17025 | pub(crate) fn set_query_timestamp(
|
10761 17026 | mut self,
|
10762 17027 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
10763 17028 | ) -> Self {
|
17029 + | /* ServerBuilderGenerator.kt:429 */
|
10764 17030 | self.query_timestamp = input.map(|v| v.into());
|
10765 17031 | self
|
17032 + | /* ServerBuilderGenerator.kt:428 */
|
10766 17033 | }
|
17034 + | /* ServerBuilderGenerator.kt:331 */
|
10767 17035 | #[allow(missing_docs)] // documentation missing in model
|
17036 + | /* ServerBuilderGenerator.kt:343 */
|
10768 17037 | pub fn query_timestamp_list(
|
10769 17038 | mut self,
|
10770 17039 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
10771 17040 | ) -> Self {
|
10772 - | self.query_timestamp_list = input;
|
17041 + | /* ServerBuilderGenerator.kt:344 */
|
17042 + | self.query_timestamp_list =
|
17043 + | /* ServerBuilderGenerator.kt:376 */input
|
17044 + | /* ServerBuilderGenerator.kt:344 */;
|
10773 17045 | self
|
17046 + | /* ServerBuilderGenerator.kt:343 */
|
10774 17047 | }
|
17048 + | /* ServerBuilderGenerator.kt:426 */
|
10775 17049 | #[allow(missing_docs)] // documentation missing in model
|
17050 + | /* ServerBuilderGenerator.kt:428 */
|
10776 17051 | pub(crate) fn set_query_timestamp_list(
|
10777 17052 | mut self,
|
10778 17053 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
10779 17054 | ) -> Self {
|
17055 + | /* ServerBuilderGenerator.kt:429 */
|
10780 17056 | self.query_timestamp_list = input.map(|v| v.into());
|
10781 17057 | self
|
17058 + | /* ServerBuilderGenerator.kt:428 */
|
10782 17059 | }
|
17060 + | /* ServerBuilderGenerator.kt:331 */
|
10783 17061 | #[allow(missing_docs)] // documentation missing in model
|
17062 + | /* ServerBuilderGenerator.kt:343 */
|
10784 17063 | pub fn query_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
10785 - | self.query_enum = input.map(crate::constrained::MaybeConstrained::Constrained);
|
17064 + | /* ServerBuilderGenerator.kt:344 */
|
17065 + | self.query_enum =
|
17066 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
17067 + | /* ServerBuilderGenerator.kt:344 */;
|
10786 17068 | self
|
17069 + | /* ServerBuilderGenerator.kt:343 */
|
10787 17070 | }
|
17071 + | /* ServerBuilderGenerator.kt:426 */
|
10788 17072 | #[allow(missing_docs)] // documentation missing in model
|
17073 + | /* ServerBuilderGenerator.kt:428 */
|
10789 17074 | pub(crate) fn set_query_enum(
|
10790 17075 | mut self,
|
10791 17076 | input: Option<
|
10792 17077 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
10793 17078 | >,
|
10794 17079 | ) -> Self {
|
17080 + | /* ServerBuilderGenerator.kt:429 */
|
10795 17081 | self.query_enum = input.map(|v| v.into());
|
10796 17082 | self
|
17083 + | /* ServerBuilderGenerator.kt:428 */
|
10797 17084 | }
|
17085 + | /* ServerBuilderGenerator.kt:331 */
|
10798 17086 | #[allow(missing_docs)] // documentation missing in model
|
17087 + | /* ServerBuilderGenerator.kt:343 */
|
10799 17088 | pub fn query_enum_list(
|
10800 17089 | mut self,
|
10801 17090 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
10802 17091 | ) -> Self {
|
17092 + | /* ServerBuilderGenerator.kt:344 */
|
10803 17093 | self.query_enum_list =
|
10804 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
17094 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
17095 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
17096 + | /* ServerBuilderGenerator.kt:363 */)
|
17097 + | /* ServerBuilderGenerator.kt:344 */;
|
10805 17098 | self
|
17099 + | /* ServerBuilderGenerator.kt:343 */
|
10806 17100 | }
|
17101 + | /* ServerBuilderGenerator.kt:426 */
|
10807 17102 | #[allow(missing_docs)] // documentation missing in model
|
17103 + | /* ServerBuilderGenerator.kt:428 */
|
10808 17104 | pub(crate) fn set_query_enum_list(
|
10809 17105 | mut self,
|
10810 17106 | input: Option<
|
10811 17107 | impl ::std::convert::Into<
|
10812 17108 | crate::constrained::MaybeConstrained<
|
10813 17109 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
10814 17110 | >,
|
10815 17111 | >,
|
10816 17112 | >,
|
10817 17113 | ) -> Self {
|
17114 + | /* ServerBuilderGenerator.kt:429 */
|
10818 17115 | self.query_enum_list = input.map(|v| v.into());
|
10819 17116 | self
|
17117 + | /* ServerBuilderGenerator.kt:428 */
|
10820 17118 | }
|
17119 + | /* ServerBuilderGenerator.kt:331 */
|
10821 17120 | #[allow(missing_docs)] // documentation missing in model
|
17121 + | /* ServerBuilderGenerator.kt:343 */
|
10822 17122 | pub fn query_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
10823 - | self.query_integer_enum = input;
|
17123 + | /* ServerBuilderGenerator.kt:344 */
|
17124 + | self.query_integer_enum =
|
17125 + | /* ServerBuilderGenerator.kt:376 */input
|
17126 + | /* ServerBuilderGenerator.kt:344 */;
|
10824 17127 | self
|
17128 + | /* ServerBuilderGenerator.kt:343 */
|
10825 17129 | }
|
17130 + | /* ServerBuilderGenerator.kt:426 */
|
10826 17131 | #[allow(missing_docs)] // documentation missing in model
|
17132 + | /* ServerBuilderGenerator.kt:428 */
|
10827 17133 | pub(crate) fn set_query_integer_enum(
|
10828 17134 | mut self,
|
10829 17135 | input: Option<impl ::std::convert::Into<i32>>,
|
10830 17136 | ) -> Self {
|
17137 + | /* ServerBuilderGenerator.kt:429 */
|
10831 17138 | self.query_integer_enum = input.map(|v| v.into());
|
10832 17139 | self
|
17140 + | /* ServerBuilderGenerator.kt:428 */
|
10833 17141 | }
|
17142 + | /* ServerBuilderGenerator.kt:331 */
|
10834 17143 | #[allow(missing_docs)] // documentation missing in model
|
17144 + | /* ServerBuilderGenerator.kt:343 */
|
10835 17145 | pub fn query_integer_enum_list(
|
10836 17146 | mut self,
|
10837 17147 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
10838 17148 | ) -> Self {
|
10839 - | self.query_integer_enum_list = input;
|
17149 + | /* ServerBuilderGenerator.kt:344 */
|
17150 + | self.query_integer_enum_list =
|
17151 + | /* ServerBuilderGenerator.kt:376 */input
|
17152 + | /* ServerBuilderGenerator.kt:344 */;
|
10840 17153 | self
|
17154 + | /* ServerBuilderGenerator.kt:343 */
|
10841 17155 | }
|
17156 + | /* ServerBuilderGenerator.kt:426 */
|
10842 17157 | #[allow(missing_docs)] // documentation missing in model
|
17158 + | /* ServerBuilderGenerator.kt:428 */
|
10843 17159 | pub(crate) fn set_query_integer_enum_list(
|
10844 17160 | mut self,
|
10845 17161 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
10846 17162 | ) -> Self {
|
17163 + | /* ServerBuilderGenerator.kt:429 */
|
10847 17164 | self.query_integer_enum_list = input.map(|v| v.into());
|
10848 17165 | self
|
17166 + | /* ServerBuilderGenerator.kt:428 */
|
10849 17167 | }
|
17168 + | /* ServerBuilderGenerator.kt:331 */
|
10850 17169 | #[allow(missing_docs)] // documentation missing in model
|
17170 + | /* ServerBuilderGenerator.kt:343 */
|
10851 17171 | pub fn query_params_map_of_string_list(
|
10852 17172 | mut self,
|
10853 17173 | input: ::std::option::Option<
|
10854 17174 | ::std::collections::HashMap<
|
10855 17175 | ::std::string::String,
|
10856 17176 | ::std::vec::Vec<::std::string::String>,
|
10857 17177 | >,
|
10858 17178 | >,
|
10859 17179 | ) -> Self {
|
10860 - | self.query_params_map_of_string_list = input;
|
17180 + | /* ServerBuilderGenerator.kt:344 */
|
17181 + | self.query_params_map_of_string_list =
|
17182 + | /* ServerBuilderGenerator.kt:376 */input
|
17183 + | /* ServerBuilderGenerator.kt:344 */;
|
10861 17184 | self
|
17185 + | /* ServerBuilderGenerator.kt:343 */
|
10862 17186 | }
|
17187 + | /* ServerBuilderGenerator.kt:426 */
|
10863 17188 | #[allow(missing_docs)] // documentation missing in model
|
17189 + | /* ServerBuilderGenerator.kt:428 */
|
10864 17190 | pub(crate) fn set_query_params_map_of_string_list(
|
10865 17191 | mut self,
|
10866 17192 | input: Option<
|
10867 17193 | impl ::std::convert::Into<
|
10868 17194 | ::std::collections::HashMap<
|
10869 17195 | ::std::string::String,
|
10870 17196 | ::std::vec::Vec<::std::string::String>,
|
10871 17197 | >,
|
10872 17198 | >,
|
10873 17199 | >,
|
10874 17200 | ) -> Self {
|
17201 + | /* ServerBuilderGenerator.kt:429 */
|
10875 17202 | self.query_params_map_of_string_list = input.map(|v| v.into());
|
10876 17203 | self
|
17204 + | /* ServerBuilderGenerator.kt:428 */
|
10877 17205 | }
|
10878 - | /// Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
10879 - | ///
|
17206 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput).
|
17207 + | /// /* ServerBuilderGenerator.kt:260 */
|
10880 17208 | /// The builder fails to construct a [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput) if a [`ConstraintViolation`] occurs.
|
10881 17209 | ///
|
10882 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17210 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17211 + | /* ServerBuilderGenerator.kt:271 */
|
10883 17212 | pub fn build(self) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
10884 17213 | self.build_enforcing_all_constraints()
|
10885 17214 | }
|
17215 + | /* ServerBuilderGenerator.kt:283 */
|
10886 17216 | fn build_enforcing_all_constraints(
|
10887 17217 | self,
|
10888 17218 | ) -> Result<crate::input::AllQueryStringTypesInput, ConstraintViolation> {
|
10889 - | Ok(crate::input::AllQueryStringTypesInput {
|
17219 + | /* ServerBuilderGenerator.kt:287 */
|
17220 + | Ok(
|
17221 + | /* ServerBuilderGenerator.kt:542 */
|
17222 + | crate::input::AllQueryStringTypesInput {
|
17223 + | /* ServerBuilderGenerator.kt:546 */
|
10890 17224 | query_string: self.query_string,
|
17225 + | /* ServerBuilderGenerator.kt:546 */
|
10891 17226 | query_string_list: self.query_string_list,
|
17227 + | /* ServerBuilderGenerator.kt:546 */
|
10892 17228 | query_string_set: self
|
10893 17229 | .query_string_set
|
17230 + | /* ServerBuilderGenerator.kt:602 */
|
10894 17231 | .map(|v| match v {
|
10895 17232 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10896 17233 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10897 17234 | })
|
17235 + | /* ServerBuilderGenerator.kt:614 */
|
10898 17236 | .map(|res| res.map_err(ConstraintViolation::QueryStringSet))
|
10899 17237 | .transpose()?,
|
17238 + | /* ServerBuilderGenerator.kt:546 */
|
10900 17239 | query_byte: self.query_byte,
|
17240 + | /* ServerBuilderGenerator.kt:546 */
|
10901 17241 | query_short: self.query_short,
|
17242 + | /* ServerBuilderGenerator.kt:546 */
|
10902 17243 | query_integer: self.query_integer,
|
17244 + | /* ServerBuilderGenerator.kt:546 */
|
10903 17245 | query_integer_list: self.query_integer_list,
|
17246 + | /* ServerBuilderGenerator.kt:546 */
|
10904 17247 | query_integer_set: self
|
10905 17248 | .query_integer_set
|
17249 + | /* ServerBuilderGenerator.kt:602 */
|
10906 17250 | .map(|v| match v {
|
10907 17251 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10908 17252 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10909 17253 | })
|
17254 + | /* ServerBuilderGenerator.kt:614 */
|
10910 17255 | .map(|res| res.map_err(ConstraintViolation::QueryIntegerSet))
|
10911 17256 | .transpose()?,
|
17257 + | /* ServerBuilderGenerator.kt:546 */
|
10912 17258 | query_long: self.query_long,
|
17259 + | /* ServerBuilderGenerator.kt:546 */
|
10913 17260 | query_float: self.query_float,
|
17261 + | /* ServerBuilderGenerator.kt:546 */
|
10914 17262 | query_double: self.query_double,
|
17263 + | /* ServerBuilderGenerator.kt:546 */
|
10915 17264 | query_double_list: self.query_double_list,
|
17265 + | /* ServerBuilderGenerator.kt:546 */
|
10916 17266 | query_boolean: self.query_boolean,
|
17267 + | /* ServerBuilderGenerator.kt:546 */
|
10917 17268 | query_boolean_list: self.query_boolean_list,
|
17269 + | /* ServerBuilderGenerator.kt:546 */
|
10918 17270 | query_timestamp: self.query_timestamp,
|
17271 + | /* ServerBuilderGenerator.kt:546 */
|
10919 17272 | query_timestamp_list: self.query_timestamp_list,
|
17273 + | /* ServerBuilderGenerator.kt:546 */
|
10920 17274 | query_enum: self
|
10921 17275 | .query_enum
|
17276 + | /* ServerBuilderGenerator.kt:602 */
|
10922 17277 | .map(|v| match v {
|
10923 17278 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10924 17279 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10925 17280 | })
|
17281 + | /* ServerBuilderGenerator.kt:614 */
|
10926 17282 | .map(|res| res.map_err(ConstraintViolation::QueryEnum))
|
10927 17283 | .transpose()?,
|
17284 + | /* ServerBuilderGenerator.kt:546 */
|
10928 17285 | query_enum_list: self
|
10929 17286 | .query_enum_list
|
17287 + | /* ServerBuilderGenerator.kt:602 */
|
10930 17288 | .map(|v| match v {
|
10931 17289 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
10932 17290 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
10933 17291 | })
|
17292 + | /* ServerBuilderGenerator.kt:614 */
|
10934 17293 | .map(|res| {
|
10935 17294 | res.map(|v| v.into())
|
10936 17295 | .map_err(ConstraintViolation::QueryEnumList)
|
10937 17296 | })
|
10938 17297 | .transpose()?,
|
17298 + | /* ServerBuilderGenerator.kt:546 */
|
10939 17299 | query_integer_enum: self.query_integer_enum,
|
17300 + | /* ServerBuilderGenerator.kt:546 */
|
10940 17301 | query_integer_enum_list: self.query_integer_enum_list,
|
17302 + | /* ServerBuilderGenerator.kt:546 */
|
10941 17303 | query_params_map_of_string_list: self.query_params_map_of_string_list,
|
10942 - | })
|
17304 + | /* ServerBuilderGenerator.kt:542 */
|
17305 + | }, /* ServerBuilderGenerator.kt:287 */
|
17306 + | )
|
17307 + | /* ServerBuilderGenerator.kt:283 */
|
10943 17308 | }
|
17309 + | /* ServerBuilderGenerator.kt:215 */
|
10944 17310 | }
|
17311 + |
|
17312 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
10945 17313 | }
|
10946 - | /// See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17314 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
10947 17315 | pub mod http_request_with_regex_literal_input {
|
10948 17316 |
|
17317 + | /* RustType.kt:534 */
|
10949 17318 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10950 - | /// Holds one variant for each of the ways the builder can fail.
|
17319 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17320 + | /* RustType.kt:534 */
|
10951 17321 | #[non_exhaustive]
|
17322 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10952 17323 | #[allow(clippy::enum_variant_names)]
|
10953 17324 | pub enum ConstraintViolation {
|
10954 - | /// `str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
17325 + | /// /* ServerBuilderConstraintViolations.kt:137 */`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`.
|
17326 + | /* ServerBuilderConstraintViolations.kt:144 */
|
10955 17327 | MissingStr,
|
17328 + | /* ServerBuilderConstraintViolations.kt:75 */
|
10956 17329 | }
|
17330 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10957 17331 | impl ::std::fmt::Display for ConstraintViolation {
|
17332 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10958 17333 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17334 + | /* ServerBuilderConstraintViolations.kt:118 */
|
10959 17335 | match self {
|
10960 - | ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
10961 - | }
|
17336 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingStr => write!(f, "`str` was not provided but it is required when building `HttpRequestWithRegexLiteralInput`"),
|
17337 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
17338 + | /* ServerBuilderConstraintViolations.kt:117 */
|
10962 17339 | }
|
17340 + | /* ServerBuilderConstraintViolations.kt:116 */
|
10963 17341 | }
|
17342 + | /* ServerBuilderConstraintViolations.kt:83 */
|
10964 17343 | impl ::std::error::Error for ConstraintViolation {}
|
17344 + | /* ServerBuilderConstraintViolations.kt:172 */
|
10965 17345 | impl ConstraintViolation {
|
10966 17346 | pub(crate) fn as_validation_exception_field(
|
10967 17347 | self,
|
10968 17348 | path: ::std::string::String,
|
10969 17349 | ) -> crate::model::ValidationExceptionField {
|
10970 17350 | match self {
|
10971 17351 | ConstraintViolation::MissingStr => crate::model::ValidationExceptionField {
|
10972 17352 | message: format!(
|
10973 17353 | "Value at '{}/str' failed to satisfy constraint: Member must not be null",
|
10974 17354 | path
|
10975 17355 | ),
|
10976 17356 | path: path + "/str",
|
10977 17357 | },
|
10978 17358 | }
|
10979 17359 | }
|
10980 17360 | }
|
17361 + | /* ServerBuilderGenerator.kt:234 */
|
10981 17362 | impl ::std::convert::From<ConstraintViolation>
|
10982 17363 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
10983 17364 | {
|
10984 17365 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
10985 17366 | let first_validation_exception_field =
|
10986 17367 | constraint_violation.as_validation_exception_field("".to_owned());
|
10987 17368 | let validation_exception = crate::error::ValidationException {
|
10988 17369 | message: format!(
|
10989 17370 | "1 validation error detected. {}",
|
10990 17371 | &first_validation_exception_field.message
|
10991 17372 | ),
|
10992 17373 | field_list: Some(vec![first_validation_exception_field]),
|
10993 17374 | };
|
10994 17375 | Self::ConstraintViolation(
|
10995 17376 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
10996 17377 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
10997 17378 | )
|
10998 17379 | }
|
10999 17380 | }
|
17381 + | /* ServerBuilderGenerator.kt:244 */
|
11000 17382 | impl ::std::convert::From<Builder>
|
11001 17383 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithRegexLiteralInput>
|
11002 17384 | {
|
11003 17385 | fn from(builder: Builder) -> Self {
|
11004 17386 | Self::Unconstrained(builder)
|
11005 17387 | }
|
11006 17388 | }
|
17389 + | /* ServerBuilderGenerator.kt:446 */
|
11007 17390 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithRegexLiteralInput {
|
11008 17391 | type Error = ConstraintViolation;
|
11009 17392 |
|
11010 17393 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11011 17394 | builder.build()
|
11012 17395 | }
|
11013 17396 | }
|
11014 - | /// A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17397 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17398 + | /* RustType.kt:534 */
|
11015 17399 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17400 + | /* ServerBuilderGenerator.kt:211 */
|
11016 17401 | pub struct Builder {
|
17402 + | /* ServerBuilderGenerator.kt:308 */
|
11017 17403 | pub(crate) str: ::std::option::Option<::std::string::String>,
|
17404 + | /* ServerBuilderGenerator.kt:211 */
|
11018 17405 | }
|
17406 + | /* ServerBuilderGenerator.kt:215 */
|
11019 17407 | impl Builder {
|
17408 + | /* ServerBuilderGenerator.kt:331 */
|
11020 17409 | #[allow(missing_docs)] // documentation missing in model
|
17410 + | /* ServerBuilderGenerator.kt:343 */
|
11021 17411 | pub fn str(mut self, input: ::std::string::String) -> Self {
|
11022 - | self.str = Some(input);
|
17412 + | /* ServerBuilderGenerator.kt:344 */
|
17413 + | self.str =
|
17414 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17415 + | /* ServerBuilderGenerator.kt:376 */input
|
17416 + | /* ServerBuilderGenerator.kt:345 */)
|
17417 + | /* ServerBuilderGenerator.kt:344 */;
|
11023 17418 | self
|
17419 + | /* ServerBuilderGenerator.kt:343 */
|
11024 17420 | }
|
17421 + | /* ServerBuilderGenerator.kt:426 */
|
11025 17422 | #[allow(missing_docs)] // documentation missing in model
|
17423 + | /* ServerBuilderGenerator.kt:428 */
|
11026 17424 | pub(crate) fn set_str(
|
11027 17425 | mut self,
|
11028 17426 | input: impl ::std::convert::Into<::std::string::String>,
|
11029 17427 | ) -> Self {
|
17428 + | /* ServerBuilderGenerator.kt:429 */
|
11030 17429 | self.str = Some(input.into());
|
11031 17430 | self
|
17431 + | /* ServerBuilderGenerator.kt:428 */
|
11032 17432 | }
|
11033 - | /// Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
11034 - | ///
|
17433 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput).
|
17434 + | /// /* ServerBuilderGenerator.kt:260 */
|
11035 17435 | /// The builder fails to construct a [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) if a [`ConstraintViolation`] occurs.
|
11036 17436 | ///
|
17437 + | /* ServerBuilderGenerator.kt:271 */
|
11037 17438 | pub fn build(
|
11038 17439 | self,
|
11039 17440 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
11040 17441 | self.build_enforcing_all_constraints()
|
11041 17442 | }
|
17443 + | /* ServerBuilderGenerator.kt:283 */
|
11042 17444 | fn build_enforcing_all_constraints(
|
11043 17445 | self,
|
11044 17446 | ) -> Result<crate::input::HttpRequestWithRegexLiteralInput, ConstraintViolation> {
|
11045 - | Ok(crate::input::HttpRequestWithRegexLiteralInput {
|
11046 - | str: self.str.ok_or(ConstraintViolation::MissingStr)?,
|
11047 - | })
|
17447 + | /* ServerBuilderGenerator.kt:287 */
|
17448 + | Ok(
|
17449 + | /* ServerBuilderGenerator.kt:542 */
|
17450 + | crate::input::HttpRequestWithRegexLiteralInput {
|
17451 + | /* ServerBuilderGenerator.kt:546 */
|
17452 + | str: self
|
17453 + | .str
|
17454 + | /* ServerBuilderGenerator.kt:569 */
|
17455 + | .ok_or(ConstraintViolation::MissingStr)?,
|
17456 + | /* ServerBuilderGenerator.kt:542 */
|
17457 + | }, /* ServerBuilderGenerator.kt:287 */
|
17458 + | )
|
17459 + | /* ServerBuilderGenerator.kt:283 */
|
11048 17460 | }
|
17461 + | /* ServerBuilderGenerator.kt:215 */
|
11049 17462 | }
|
17463 + |
|
17464 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11050 17465 | }
|
11051 - | /// See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17466 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
11052 17467 | pub mod http_request_with_float_labels_input {
|
11053 17468 |
|
17469 + | /* RustType.kt:534 */
|
11054 17470 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11055 - | /// Holds one variant for each of the ways the builder can fail.
|
17471 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17472 + | /* RustType.kt:534 */
|
11056 17473 | #[non_exhaustive]
|
17474 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11057 17475 | #[allow(clippy::enum_variant_names)]
|
11058 17476 | pub enum ConstraintViolation {
|
11059 - | /// `float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17477 + | /// /* ServerBuilderConstraintViolations.kt:137 */`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17478 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11060 17479 | MissingFloat,
|
11061 - | /// `double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17480 + | /// /* ServerBuilderConstraintViolations.kt:137 */`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`.
|
17481 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11062 17482 | MissingDouble,
|
17483 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11063 17484 | }
|
17485 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11064 17486 | impl ::std::fmt::Display for ConstraintViolation {
|
17487 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11065 17488 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17489 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11066 17490 | match self {
|
11067 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
11068 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
11069 - | }
|
17491 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
17492 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithFloatLabelsInput`"),
|
17493 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
17494 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11070 17495 | }
|
17496 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11071 17497 | }
|
17498 + | /* ServerBuilderConstraintViolations.kt:83 */
|
11072 17499 | impl ::std::error::Error for ConstraintViolation {}
|
17500 + | /* ServerBuilderConstraintViolations.kt:172 */
|
11073 17501 | impl ConstraintViolation {
|
11074 17502 | pub(crate) fn as_validation_exception_field(
|
11075 17503 | self,
|
11076 17504 | path: ::std::string::String,
|
11077 17505 | ) -> crate::model::ValidationExceptionField {
|
11078 17506 | match self {
|
11079 17507 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
11080 17508 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
11081 17509 | path: path + "/float",
|
11082 17510 | },
|
11083 17511 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
11084 17512 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
11085 17513 | path: path + "/double",
|
11086 17514 | },
|
11087 17515 | }
|
11088 17516 | }
|
11089 17517 | }
|
17518 + | /* ServerBuilderGenerator.kt:234 */
|
11090 17519 | impl ::std::convert::From<ConstraintViolation>
|
11091 17520 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11092 17521 | {
|
11093 17522 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11094 17523 | let first_validation_exception_field =
|
11095 17524 | constraint_violation.as_validation_exception_field("".to_owned());
|
11096 17525 | let validation_exception = crate::error::ValidationException {
|
11097 17526 | message: format!(
|
11098 17527 | "1 validation error detected. {}",
|
11099 17528 | &first_validation_exception_field.message
|
11100 17529 | ),
|
11101 17530 | field_list: Some(vec![first_validation_exception_field]),
|
11102 17531 | };
|
11103 17532 | Self::ConstraintViolation(
|
11104 17533 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11105 17534 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11106 17535 | )
|
11107 17536 | }
|
11108 17537 | }
|
17538 + | /* ServerBuilderGenerator.kt:244 */
|
11109 17539 | impl ::std::convert::From<Builder>
|
11110 17540 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithFloatLabelsInput>
|
11111 17541 | {
|
11112 17542 | fn from(builder: Builder) -> Self {
|
11113 17543 | Self::Unconstrained(builder)
|
11114 17544 | }
|
11115 17545 | }
|
17546 + | /* ServerBuilderGenerator.kt:446 */
|
11116 17547 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithFloatLabelsInput {
|
11117 17548 | type Error = ConstraintViolation;
|
11118 17549 |
|
11119 17550 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11120 17551 | builder.build()
|
11121 17552 | }
|
11122 17553 | }
|
11123 - | /// A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17554 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17555 + | /* RustType.kt:534 */
|
11124 17556 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17557 + | /* ServerBuilderGenerator.kt:211 */
|
11125 17558 | pub struct Builder {
|
11126 - | pub(crate) float: ::std::option::Option<f32>,
|
17559 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
17560 + | /* ServerBuilderGenerator.kt:308 */
|
11127 17561 | pub(crate) double: ::std::option::Option<f64>,
|
17562 + | /* ServerBuilderGenerator.kt:211 */
|
11128 17563 | }
|
17564 + | /* ServerBuilderGenerator.kt:215 */
|
11129 17565 | impl Builder {
|
17566 + | /* ServerBuilderGenerator.kt:331 */
|
11130 17567 | #[allow(missing_docs)] // documentation missing in model
|
17568 + | /* ServerBuilderGenerator.kt:343 */
|
11131 17569 | pub fn float(mut self, input: f32) -> Self {
|
11132 - | self.float = Some(input);
|
17570 + | /* ServerBuilderGenerator.kt:344 */
|
17571 + | self.float =
|
17572 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17573 + | /* ServerBuilderGenerator.kt:376 */input
|
17574 + | /* ServerBuilderGenerator.kt:345 */)
|
17575 + | /* ServerBuilderGenerator.kt:344 */;
|
11133 17576 | self
|
17577 + | /* ServerBuilderGenerator.kt:343 */
|
11134 17578 | }
|
17579 + | /* ServerBuilderGenerator.kt:426 */
|
11135 17580 | #[allow(missing_docs)] // documentation missing in model
|
17581 + | /* ServerBuilderGenerator.kt:428 */
|
11136 17582 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
17583 + | /* ServerBuilderGenerator.kt:429 */
|
11137 17584 | self.float = Some(input.into());
|
11138 17585 | self
|
17586 + | /* ServerBuilderGenerator.kt:428 */
|
11139 17587 | }
|
17588 + | /* ServerBuilderGenerator.kt:331 */
|
11140 17589 | #[allow(missing_docs)] // documentation missing in model
|
17590 + | /* ServerBuilderGenerator.kt:343 */
|
11141 17591 | pub fn double(mut self, input: f64) -> Self {
|
11142 - | self.double = Some(input);
|
17592 + | /* ServerBuilderGenerator.kt:344 */
|
17593 + | self.double =
|
17594 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17595 + | /* ServerBuilderGenerator.kt:376 */input
|
17596 + | /* ServerBuilderGenerator.kt:345 */)
|
17597 + | /* ServerBuilderGenerator.kt:344 */;
|
11143 17598 | self
|
17599 + | /* ServerBuilderGenerator.kt:343 */
|
11144 17600 | }
|
17601 + | /* ServerBuilderGenerator.kt:426 */
|
11145 17602 | #[allow(missing_docs)] // documentation missing in model
|
17603 + | /* ServerBuilderGenerator.kt:428 */
|
11146 17604 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
17605 + | /* ServerBuilderGenerator.kt:429 */
|
11147 17606 | self.double = Some(input.into());
|
11148 17607 | self
|
17608 + | /* ServerBuilderGenerator.kt:428 */
|
11149 17609 | }
|
11150 - | /// Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
11151 - | ///
|
17610 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput).
|
17611 + | /// /* ServerBuilderGenerator.kt:260 */
|
11152 17612 | /// The builder fails to construct a [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) if a [`ConstraintViolation`] occurs.
|
11153 17613 | ///
|
11154 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17614 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17615 + | /* ServerBuilderGenerator.kt:271 */
|
11155 17616 | pub fn build(
|
11156 17617 | self,
|
11157 17618 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
11158 17619 | self.build_enforcing_all_constraints()
|
11159 17620 | }
|
17621 + | /* ServerBuilderGenerator.kt:283 */
|
11160 17622 | fn build_enforcing_all_constraints(
|
11161 17623 | self,
|
11162 17624 | ) -> Result<crate::input::HttpRequestWithFloatLabelsInput, ConstraintViolation> {
|
11163 - | Ok(crate::input::HttpRequestWithFloatLabelsInput {
|
11164 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
11165 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
11166 - | })
|
17625 + | /* ServerBuilderGenerator.kt:287 */
|
17626 + | Ok(
|
17627 + | /* ServerBuilderGenerator.kt:542 */
|
17628 + | crate::input::HttpRequestWithFloatLabelsInput {
|
17629 + | /* ServerBuilderGenerator.kt:546 */
|
17630 + | float: self
|
17631 + | .float
|
17632 + | /* ServerBuilderGenerator.kt:569 */
|
17633 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
17634 + | /* ServerBuilderGenerator.kt:546 */
|
17635 + | double: self
|
17636 + | .double
|
17637 + | /* ServerBuilderGenerator.kt:569 */
|
17638 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
17639 + | /* ServerBuilderGenerator.kt:542 */
|
17640 + | }, /* ServerBuilderGenerator.kt:287 */
|
17641 + | )
|
17642 + | /* ServerBuilderGenerator.kt:283 */
|
11167 17643 | }
|
17644 + | /* ServerBuilderGenerator.kt:215 */
|
11168 17645 | }
|
17646 + |
|
17647 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11169 17648 | }
|
11170 - | /// See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17649 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
11171 17650 | pub mod http_request_with_greedy_label_in_path_input {
|
11172 17651 |
|
17652 + | /* RustType.kt:534 */
|
11173 17653 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11174 - | /// Holds one variant for each of the ways the builder can fail.
|
17654 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17655 + | /* RustType.kt:534 */
|
11175 17656 | #[non_exhaustive]
|
17657 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11176 17658 | #[allow(clippy::enum_variant_names)]
|
11177 17659 | pub enum ConstraintViolation {
|
11178 - | /// `foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17660 + | /// /* ServerBuilderConstraintViolations.kt:137 */`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17661 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11179 17662 | MissingFoo,
|
11180 - | /// `baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17663 + | /// /* ServerBuilderConstraintViolations.kt:137 */`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`.
|
17664 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11181 17665 | MissingBaz,
|
17666 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11182 17667 | }
|
17668 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11183 17669 | impl ::std::fmt::Display for ConstraintViolation {
|
17670 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11184 17671 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17672 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11185 17673 | match self {
|
11186 - | ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
11187 - | ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
11188 - | }
|
17674 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingFoo => write!(f, "`foo` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
17675 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingBaz => write!(f, "`baz` was not provided but it is required when building `HttpRequestWithGreedyLabelInPathInput`"),
|
17676 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
17677 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11189 17678 | }
|
17679 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11190 17680 | }
|
17681 + | /* ServerBuilderConstraintViolations.kt:83 */
|
11191 17682 | impl ::std::error::Error for ConstraintViolation {}
|
17683 + | /* ServerBuilderConstraintViolations.kt:172 */
|
11192 17684 | impl ConstraintViolation {
|
11193 17685 | pub(crate) fn as_validation_exception_field(
|
11194 17686 | self,
|
11195 17687 | path: ::std::string::String,
|
11196 17688 | ) -> crate::model::ValidationExceptionField {
|
11197 17689 | match self {
|
11198 17690 | ConstraintViolation::MissingFoo => crate::model::ValidationExceptionField {
|
11199 17691 | message: format!(
|
11200 17692 | "Value at '{}/foo' failed to satisfy constraint: Member must not be null",
|
11201 17693 | path
|
11202 17694 | ),
|
11203 17695 | path: path + "/foo",
|
11204 17696 | },
|
11205 17697 | ConstraintViolation::MissingBaz => crate::model::ValidationExceptionField {
|
11206 17698 | message: format!(
|
11207 17699 | "Value at '{}/baz' failed to satisfy constraint: Member must not be null",
|
11208 17700 | path
|
11209 17701 | ),
|
11210 17702 | path: path + "/baz",
|
11211 17703 | },
|
11212 17704 | }
|
11213 17705 | }
|
11214 17706 | }
|
17707 + | /* ServerBuilderGenerator.kt:234 */
|
11215 17708 | impl ::std::convert::From<ConstraintViolation>
|
11216 17709 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11217 17710 | {
|
11218 17711 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11219 17712 | let first_validation_exception_field =
|
11220 17713 | constraint_violation.as_validation_exception_field("".to_owned());
|
11221 17714 | let validation_exception = crate::error::ValidationException {
|
11222 17715 | message: format!(
|
11223 17716 | "1 validation error detected. {}",
|
11224 17717 | &first_validation_exception_field.message
|
11225 17718 | ),
|
11226 17719 | field_list: Some(vec![first_validation_exception_field]),
|
11227 17720 | };
|
11228 17721 | Self::ConstraintViolation(
|
11229 17722 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11230 17723 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11231 17724 | )
|
11232 17725 | }
|
11233 17726 | }
|
17727 + | /* ServerBuilderGenerator.kt:244 */
|
11234 17728 | impl ::std::convert::From<Builder>
|
11235 17729 | for crate::constrained::MaybeConstrained<
|
11236 17730 | crate::input::HttpRequestWithGreedyLabelInPathInput,
|
11237 17731 | >
|
11238 17732 | {
|
11239 17733 | fn from(builder: Builder) -> Self {
|
11240 17734 | Self::Unconstrained(builder)
|
11241 17735 | }
|
11242 17736 | }
|
17737 + | /* ServerBuilderGenerator.kt:446 */
|
11243 17738 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithGreedyLabelInPathInput {
|
11244 17739 | type Error = ConstraintViolation;
|
11245 17740 |
|
11246 17741 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11247 17742 | builder.build()
|
11248 17743 | }
|
11249 17744 | }
|
11250 - | /// A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17745 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17746 + | /* RustType.kt:534 */
|
11251 17747 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17748 + | /* ServerBuilderGenerator.kt:211 */
|
11252 17749 | pub struct Builder {
|
17750 + | /* ServerBuilderGenerator.kt:308 */
|
11253 17751 | pub(crate) foo: ::std::option::Option<::std::string::String>,
|
17752 + | /* ServerBuilderGenerator.kt:308 */
|
11254 17753 | pub(crate) baz: ::std::option::Option<::std::string::String>,
|
17754 + | /* ServerBuilderGenerator.kt:211 */
|
11255 17755 | }
|
17756 + | /* ServerBuilderGenerator.kt:215 */
|
11256 17757 | impl Builder {
|
17758 + | /* ServerBuilderGenerator.kt:331 */
|
11257 17759 | #[allow(missing_docs)] // documentation missing in model
|
17760 + | /* ServerBuilderGenerator.kt:343 */
|
11258 17761 | pub fn foo(mut self, input: ::std::string::String) -> Self {
|
11259 - | self.foo = Some(input);
|
17762 + | /* ServerBuilderGenerator.kt:344 */
|
17763 + | self.foo =
|
17764 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17765 + | /* ServerBuilderGenerator.kt:376 */input
|
17766 + | /* ServerBuilderGenerator.kt:345 */)
|
17767 + | /* ServerBuilderGenerator.kt:344 */;
|
11260 17768 | self
|
17769 + | /* ServerBuilderGenerator.kt:343 */
|
11261 17770 | }
|
17771 + | /* ServerBuilderGenerator.kt:426 */
|
11262 17772 | #[allow(missing_docs)] // documentation missing in model
|
17773 + | /* ServerBuilderGenerator.kt:428 */
|
11263 17774 | pub(crate) fn set_foo(
|
11264 17775 | mut self,
|
11265 17776 | input: impl ::std::convert::Into<::std::string::String>,
|
11266 17777 | ) -> Self {
|
17778 + | /* ServerBuilderGenerator.kt:429 */
|
11267 17779 | self.foo = Some(input.into());
|
11268 17780 | self
|
17781 + | /* ServerBuilderGenerator.kt:428 */
|
11269 17782 | }
|
17783 + | /* ServerBuilderGenerator.kt:331 */
|
11270 17784 | #[allow(missing_docs)] // documentation missing in model
|
17785 + | /* ServerBuilderGenerator.kt:343 */
|
11271 17786 | pub fn baz(mut self, input: ::std::string::String) -> Self {
|
11272 - | self.baz = Some(input);
|
17787 + | /* ServerBuilderGenerator.kt:344 */
|
17788 + | self.baz =
|
17789 + | /* ServerBuilderGenerator.kt:345 */Some(
|
17790 + | /* ServerBuilderGenerator.kt:376 */input
|
17791 + | /* ServerBuilderGenerator.kt:345 */)
|
17792 + | /* ServerBuilderGenerator.kt:344 */;
|
11273 17793 | self
|
17794 + | /* ServerBuilderGenerator.kt:343 */
|
11274 17795 | }
|
17796 + | /* ServerBuilderGenerator.kt:426 */
|
11275 17797 | #[allow(missing_docs)] // documentation missing in model
|
17798 + | /* ServerBuilderGenerator.kt:428 */
|
11276 17799 | pub(crate) fn set_baz(
|
11277 17800 | mut self,
|
11278 17801 | input: impl ::std::convert::Into<::std::string::String>,
|
11279 17802 | ) -> Self {
|
17803 + | /* ServerBuilderGenerator.kt:429 */
|
11280 17804 | self.baz = Some(input.into());
|
11281 17805 | self
|
17806 + | /* ServerBuilderGenerator.kt:428 */
|
11282 17807 | }
|
11283 - | /// Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
11284 - | ///
|
17808 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput).
|
17809 + | /// /* ServerBuilderGenerator.kt:260 */
|
11285 17810 | /// The builder fails to construct a [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) if a [`ConstraintViolation`] occurs.
|
11286 17811 | ///
|
11287 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17812 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
17813 + | /* ServerBuilderGenerator.kt:271 */
|
11288 17814 | pub fn build(
|
11289 17815 | self,
|
11290 17816 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
11291 17817 | {
|
11292 17818 | self.build_enforcing_all_constraints()
|
11293 17819 | }
|
17820 + | /* ServerBuilderGenerator.kt:283 */
|
11294 17821 | fn build_enforcing_all_constraints(
|
11295 17822 | self,
|
11296 17823 | ) -> Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ConstraintViolation>
|
11297 17824 | {
|
11298 - | Ok(crate::input::HttpRequestWithGreedyLabelInPathInput {
|
11299 - | foo: self.foo.ok_or(ConstraintViolation::MissingFoo)?,
|
11300 - | baz: self.baz.ok_or(ConstraintViolation::MissingBaz)?,
|
11301 - | })
|
17825 + | /* ServerBuilderGenerator.kt:287 */
|
17826 + | Ok(
|
17827 + | /* ServerBuilderGenerator.kt:542 */
|
17828 + | crate::input::HttpRequestWithGreedyLabelInPathInput {
|
17829 + | /* ServerBuilderGenerator.kt:546 */
|
17830 + | foo: self
|
17831 + | .foo
|
17832 + | /* ServerBuilderGenerator.kt:569 */
|
17833 + | .ok_or(ConstraintViolation::MissingFoo)?,
|
17834 + | /* ServerBuilderGenerator.kt:546 */
|
17835 + | baz: self
|
17836 + | .baz
|
17837 + | /* ServerBuilderGenerator.kt:569 */
|
17838 + | .ok_or(ConstraintViolation::MissingBaz)?,
|
17839 + | /* ServerBuilderGenerator.kt:542 */
|
17840 + | }, /* ServerBuilderGenerator.kt:287 */
|
17841 + | )
|
17842 + | /* ServerBuilderGenerator.kt:283 */
|
11302 17843 | }
|
17844 + | /* ServerBuilderGenerator.kt:215 */
|
11303 17845 | }
|
17846 + |
|
17847 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11304 17848 | }
|
11305 - | /// See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17849 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
11306 17850 | pub mod http_request_with_labels_and_timestamp_format_input {
|
11307 17851 |
|
17852 + | /* RustType.kt:534 */
|
11308 17853 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11309 - | /// Holds one variant for each of the ways the builder can fail.
|
17854 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
17855 + | /* RustType.kt:534 */
|
11310 17856 | #[non_exhaustive]
|
17857 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11311 17858 | #[allow(clippy::enum_variant_names)]
|
11312 17859 | pub enum ConstraintViolation {
|
11313 - | /// `member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17860 + | /// /* ServerBuilderConstraintViolations.kt:137 */`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17861 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11314 17862 | MissingMemberEpochSeconds,
|
11315 - | /// `member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17863 + | /// /* ServerBuilderConstraintViolations.kt:137 */`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17864 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11316 17865 | MissingMemberHttpDate,
|
11317 - | /// `member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17866 + | /// /* ServerBuilderConstraintViolations.kt:137 */`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17867 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11318 17868 | MissingMemberDateTime,
|
11319 - | /// `default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17869 + | /// /* ServerBuilderConstraintViolations.kt:137 */`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17870 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11320 17871 | MissingDefaultFormat,
|
11321 - | /// `target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17872 + | /// /* ServerBuilderConstraintViolations.kt:137 */`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17873 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11322 17874 | MissingTargetEpochSeconds,
|
11323 - | /// `target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17875 + | /// /* ServerBuilderConstraintViolations.kt:137 */`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17876 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11324 17877 | MissingTargetHttpDate,
|
11325 - | /// `target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17878 + | /// /* ServerBuilderConstraintViolations.kt:137 */`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`.
|
17879 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11326 17880 | MissingTargetDateTime,
|
17881 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11327 17882 | }
|
17883 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11328 17884 | impl ::std::fmt::Display for ConstraintViolation {
|
17885 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11329 17886 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
17887 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11330 17888 | match self {
|
11331 - | ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11332 - | ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11333 - | ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11334 - | ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11335 - | ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11336 - | ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11337 - | ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
11338 - | }
|
11339 - | }
|
11340 - | }
|
17889 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMemberEpochSeconds => write!(f, "`member_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17890 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMemberHttpDate => write!(f, "`member_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17891 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingMemberDateTime => write!(f, "`member_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17892 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingDefaultFormat => write!(f, "`default_format` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17893 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTargetEpochSeconds => write!(f, "`target_epoch_seconds` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17894 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTargetHttpDate => write!(f, "`target_http_date` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17895 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTargetDateTime => write!(f, "`target_date_time` was not provided but it is required when building `HttpRequestWithLabelsAndTimestampFormatInput`"),
|
17896 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
17897 + | /* ServerBuilderConstraintViolations.kt:117 */
|
17898 + | }
|
17899 + | /* ServerBuilderConstraintViolations.kt:116 */
|
17900 + | }
|
17901 + | /* ServerBuilderConstraintViolations.kt:83 */
|
11341 17902 | impl ::std::error::Error for ConstraintViolation {}
|
17903 + | /* ServerBuilderConstraintViolations.kt:172 */
|
11342 17904 | impl ConstraintViolation {
|
11343 17905 | pub(crate) fn as_validation_exception_field(
|
11344 17906 | self,
|
11345 17907 | path: ::std::string::String,
|
11346 17908 | ) -> crate::model::ValidationExceptionField {
|
11347 17909 | match self {
|
11348 17910 | ConstraintViolation::MissingMemberEpochSeconds => crate::model::ValidationExceptionField {
|
11349 17911 | message: format!("Value at '{}/memberEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
11350 17912 | path: path + "/memberEpochSeconds",
|
11351 17913 | },
|
11352 17914 | ConstraintViolation::MissingMemberHttpDate => crate::model::ValidationExceptionField {
|
11353 17915 | message: format!("Value at '{}/memberHttpDate' failed to satisfy constraint: Member must not be null", path),
|
11354 17916 | path: path + "/memberHttpDate",
|
11355 17917 | },
|
11356 17918 | ConstraintViolation::MissingMemberDateTime => crate::model::ValidationExceptionField {
|
11357 17919 | message: format!("Value at '{}/memberDateTime' failed to satisfy constraint: Member must not be null", path),
|
11358 17920 | path: path + "/memberDateTime",
|
11359 17921 | },
|
11360 17922 | ConstraintViolation::MissingDefaultFormat => crate::model::ValidationExceptionField {
|
11361 17923 | message: format!("Value at '{}/defaultFormat' failed to satisfy constraint: Member must not be null", path),
|
11362 17924 | path: path + "/defaultFormat",
|
11363 17925 | },
|
11364 17926 | ConstraintViolation::MissingTargetEpochSeconds => crate::model::ValidationExceptionField {
|
11365 17927 | message: format!("Value at '{}/targetEpochSeconds' failed to satisfy constraint: Member must not be null", path),
|
11366 17928 | path: path + "/targetEpochSeconds",
|
11367 17929 | },
|
11368 17930 | ConstraintViolation::MissingTargetHttpDate => crate::model::ValidationExceptionField {
|
11369 17931 | message: format!("Value at '{}/targetHttpDate' failed to satisfy constraint: Member must not be null", path),
|
11370 17932 | path: path + "/targetHttpDate",
|
11371 17933 | },
|
11372 17934 | ConstraintViolation::MissingTargetDateTime => crate::model::ValidationExceptionField {
|
11373 17935 | message: format!("Value at '{}/targetDateTime' failed to satisfy constraint: Member must not be null", path),
|
11374 17936 | path: path + "/targetDateTime",
|
11375 17937 | },
|
11376 17938 | }
|
11377 17939 | }
|
11378 17940 | }
|
17941 + | /* ServerBuilderGenerator.kt:234 */
|
11379 17942 | impl ::std::convert::From<ConstraintViolation>
|
11380 17943 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11381 17944 | {
|
11382 17945 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11383 17946 | let first_validation_exception_field =
|
11384 17947 | constraint_violation.as_validation_exception_field("".to_owned());
|
11385 17948 | let validation_exception = crate::error::ValidationException {
|
11386 17949 | message: format!(
|
11387 17950 | "1 validation error detected. {}",
|
11388 17951 | &first_validation_exception_field.message
|
11389 17952 | ),
|
11390 17953 | field_list: Some(vec![first_validation_exception_field]),
|
11391 17954 | };
|
11392 17955 | Self::ConstraintViolation(
|
11393 17956 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11394 17957 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11395 17958 | )
|
11396 17959 | }
|
11397 17960 | }
|
17961 + | /* ServerBuilderGenerator.kt:244 */
|
11398 17962 | impl ::std::convert::From<Builder>
|
11399 17963 | for crate::constrained::MaybeConstrained<
|
11400 17964 | crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
|
11401 17965 | >
|
11402 17966 | {
|
11403 17967 | fn from(builder: Builder) -> Self {
|
11404 17968 | Self::Unconstrained(builder)
|
11405 17969 | }
|
11406 17970 | }
|
17971 + | /* ServerBuilderGenerator.kt:446 */
|
11407 17972 | impl ::std::convert::TryFrom<Builder>
|
11408 17973 | for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
11409 17974 | {
|
11410 17975 | type Error = ConstraintViolation;
|
11411 17976 |
|
11412 17977 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11413 17978 | builder.build()
|
11414 17979 | }
|
11415 17980 | }
|
11416 - | /// A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17981 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
17982 + | /* RustType.kt:534 */
|
11417 17983 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
17984 + | /* ServerBuilderGenerator.kt:211 */
|
11418 17985 | pub struct Builder {
|
17986 + | /* ServerBuilderGenerator.kt:308 */
|
11419 17987 | pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17988 + | /* ServerBuilderGenerator.kt:308 */
|
11420 17989 | pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17990 + | /* ServerBuilderGenerator.kt:308 */
|
11421 17991 | pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17992 + | /* ServerBuilderGenerator.kt:308 */
|
11422 17993 | pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17994 + | /* ServerBuilderGenerator.kt:308 */
|
11423 17995 | pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17996 + | /* ServerBuilderGenerator.kt:308 */
|
11424 17997 | pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
17998 + | /* ServerBuilderGenerator.kt:308 */
|
11425 17999 | pub(crate) target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18000 + | /* ServerBuilderGenerator.kt:211 */
|
11426 18001 | }
|
18002 + | /* ServerBuilderGenerator.kt:215 */
|
11427 18003 | impl Builder {
|
18004 + | /* ServerBuilderGenerator.kt:331 */
|
11428 18005 | #[allow(missing_docs)] // documentation missing in model
|
18006 + | /* ServerBuilderGenerator.kt:343 */
|
11429 18007 | pub fn member_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11430 - | self.member_epoch_seconds = Some(input);
|
18008 + | /* ServerBuilderGenerator.kt:344 */
|
18009 + | self.member_epoch_seconds =
|
18010 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18011 + | /* ServerBuilderGenerator.kt:376 */input
|
18012 + | /* ServerBuilderGenerator.kt:345 */)
|
18013 + | /* ServerBuilderGenerator.kt:344 */;
|
11431 18014 | self
|
18015 + | /* ServerBuilderGenerator.kt:343 */
|
11432 18016 | }
|
18017 + | /* ServerBuilderGenerator.kt:426 */
|
11433 18018 | #[allow(missing_docs)] // documentation missing in model
|
18019 + | /* ServerBuilderGenerator.kt:428 */
|
11434 18020 | pub(crate) fn set_member_epoch_seconds(
|
11435 18021 | mut self,
|
11436 18022 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11437 18023 | ) -> Self {
|
18024 + | /* ServerBuilderGenerator.kt:429 */
|
11438 18025 | self.member_epoch_seconds = Some(input.into());
|
11439 18026 | self
|
18027 + | /* ServerBuilderGenerator.kt:428 */
|
11440 18028 | }
|
18029 + | /* ServerBuilderGenerator.kt:331 */
|
11441 18030 | #[allow(missing_docs)] // documentation missing in model
|
18031 + | /* ServerBuilderGenerator.kt:343 */
|
11442 18032 | pub fn member_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11443 - | self.member_http_date = Some(input);
|
18033 + | /* ServerBuilderGenerator.kt:344 */
|
18034 + | self.member_http_date =
|
18035 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18036 + | /* ServerBuilderGenerator.kt:376 */input
|
18037 + | /* ServerBuilderGenerator.kt:345 */)
|
18038 + | /* ServerBuilderGenerator.kt:344 */;
|
11444 18039 | self
|
18040 + | /* ServerBuilderGenerator.kt:343 */
|
11445 18041 | }
|
18042 + | /* ServerBuilderGenerator.kt:426 */
|
11446 18043 | #[allow(missing_docs)] // documentation missing in model
|
18044 + | /* ServerBuilderGenerator.kt:428 */
|
11447 18045 | pub(crate) fn set_member_http_date(
|
11448 18046 | mut self,
|
11449 18047 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11450 18048 | ) -> Self {
|
18049 + | /* ServerBuilderGenerator.kt:429 */
|
11451 18050 | self.member_http_date = Some(input.into());
|
11452 18051 | self
|
18052 + | /* ServerBuilderGenerator.kt:428 */
|
11453 18053 | }
|
18054 + | /* ServerBuilderGenerator.kt:331 */
|
11454 18055 | #[allow(missing_docs)] // documentation missing in model
|
18056 + | /* ServerBuilderGenerator.kt:343 */
|
11455 18057 | pub fn member_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11456 - | self.member_date_time = Some(input);
|
18058 + | /* ServerBuilderGenerator.kt:344 */
|
18059 + | self.member_date_time =
|
18060 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18061 + | /* ServerBuilderGenerator.kt:376 */input
|
18062 + | /* ServerBuilderGenerator.kt:345 */)
|
18063 + | /* ServerBuilderGenerator.kt:344 */;
|
11457 18064 | self
|
18065 + | /* ServerBuilderGenerator.kt:343 */
|
11458 18066 | }
|
18067 + | /* ServerBuilderGenerator.kt:426 */
|
11459 18068 | #[allow(missing_docs)] // documentation missing in model
|
18069 + | /* ServerBuilderGenerator.kt:428 */
|
11460 18070 | pub(crate) fn set_member_date_time(
|
11461 18071 | mut self,
|
11462 18072 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11463 18073 | ) -> Self {
|
18074 + | /* ServerBuilderGenerator.kt:429 */
|
11464 18075 | self.member_date_time = Some(input.into());
|
11465 18076 | self
|
18077 + | /* ServerBuilderGenerator.kt:428 */
|
11466 18078 | }
|
18079 + | /* ServerBuilderGenerator.kt:331 */
|
11467 18080 | #[allow(missing_docs)] // documentation missing in model
|
18081 + | /* ServerBuilderGenerator.kt:343 */
|
11468 18082 | pub fn default_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11469 - | self.default_format = Some(input);
|
18083 + | /* ServerBuilderGenerator.kt:344 */
|
18084 + | self.default_format =
|
18085 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18086 + | /* ServerBuilderGenerator.kt:376 */input
|
18087 + | /* ServerBuilderGenerator.kt:345 */)
|
18088 + | /* ServerBuilderGenerator.kt:344 */;
|
11470 18089 | self
|
18090 + | /* ServerBuilderGenerator.kt:343 */
|
11471 18091 | }
|
18092 + | /* ServerBuilderGenerator.kt:426 */
|
11472 18093 | #[allow(missing_docs)] // documentation missing in model
|
18094 + | /* ServerBuilderGenerator.kt:428 */
|
11473 18095 | pub(crate) fn set_default_format(
|
11474 18096 | mut self,
|
11475 18097 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11476 18098 | ) -> Self {
|
18099 + | /* ServerBuilderGenerator.kt:429 */
|
11477 18100 | self.default_format = Some(input.into());
|
11478 18101 | self
|
18102 + | /* ServerBuilderGenerator.kt:428 */
|
11479 18103 | }
|
18104 + | /* ServerBuilderGenerator.kt:331 */
|
11480 18105 | #[allow(missing_docs)] // documentation missing in model
|
18106 + | /* ServerBuilderGenerator.kt:343 */
|
11481 18107 | pub fn target_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11482 - | self.target_epoch_seconds = Some(input);
|
18108 + | /* ServerBuilderGenerator.kt:344 */
|
18109 + | self.target_epoch_seconds =
|
18110 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18111 + | /* ServerBuilderGenerator.kt:376 */input
|
18112 + | /* ServerBuilderGenerator.kt:345 */)
|
18113 + | /* ServerBuilderGenerator.kt:344 */;
|
11483 18114 | self
|
18115 + | /* ServerBuilderGenerator.kt:343 */
|
11484 18116 | }
|
18117 + | /* ServerBuilderGenerator.kt:426 */
|
11485 18118 | #[allow(missing_docs)] // documentation missing in model
|
18119 + | /* ServerBuilderGenerator.kt:428 */
|
11486 18120 | pub(crate) fn set_target_epoch_seconds(
|
11487 18121 | mut self,
|
11488 18122 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11489 18123 | ) -> Self {
|
18124 + | /* ServerBuilderGenerator.kt:429 */
|
11490 18125 | self.target_epoch_seconds = Some(input.into());
|
11491 18126 | self
|
18127 + | /* ServerBuilderGenerator.kt:428 */
|
11492 18128 | }
|
18129 + | /* ServerBuilderGenerator.kt:331 */
|
11493 18130 | #[allow(missing_docs)] // documentation missing in model
|
18131 + | /* ServerBuilderGenerator.kt:343 */
|
11494 18132 | pub fn target_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11495 - | self.target_http_date = Some(input);
|
18133 + | /* ServerBuilderGenerator.kt:344 */
|
18134 + | self.target_http_date =
|
18135 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18136 + | /* ServerBuilderGenerator.kt:376 */input
|
18137 + | /* ServerBuilderGenerator.kt:345 */)
|
18138 + | /* ServerBuilderGenerator.kt:344 */;
|
11496 18139 | self
|
18140 + | /* ServerBuilderGenerator.kt:343 */
|
11497 18141 | }
|
18142 + | /* ServerBuilderGenerator.kt:426 */
|
11498 18143 | #[allow(missing_docs)] // documentation missing in model
|
18144 + | /* ServerBuilderGenerator.kt:428 */
|
11499 18145 | pub(crate) fn set_target_http_date(
|
11500 18146 | mut self,
|
11501 18147 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11502 18148 | ) -> Self {
|
18149 + | /* ServerBuilderGenerator.kt:429 */
|
11503 18150 | self.target_http_date = Some(input.into());
|
11504 18151 | self
|
18152 + | /* ServerBuilderGenerator.kt:428 */
|
11505 18153 | }
|
18154 + | /* ServerBuilderGenerator.kt:331 */
|
11506 18155 | #[allow(missing_docs)] // documentation missing in model
|
18156 + | /* ServerBuilderGenerator.kt:343 */
|
11507 18157 | pub fn target_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11508 - | self.target_date_time = Some(input);
|
18158 + | /* ServerBuilderGenerator.kt:344 */
|
18159 + | self.target_date_time =
|
18160 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18161 + | /* ServerBuilderGenerator.kt:376 */input
|
18162 + | /* ServerBuilderGenerator.kt:345 */)
|
18163 + | /* ServerBuilderGenerator.kt:344 */;
|
11509 18164 | self
|
18165 + | /* ServerBuilderGenerator.kt:343 */
|
11510 18166 | }
|
18167 + | /* ServerBuilderGenerator.kt:426 */
|
11511 18168 | #[allow(missing_docs)] // documentation missing in model
|
18169 + | /* ServerBuilderGenerator.kt:428 */
|
11512 18170 | pub(crate) fn set_target_date_time(
|
11513 18171 | mut self,
|
11514 18172 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11515 18173 | ) -> Self {
|
18174 + | /* ServerBuilderGenerator.kt:429 */
|
11516 18175 | self.target_date_time = Some(input.into());
|
11517 18176 | self
|
18177 + | /* ServerBuilderGenerator.kt:428 */
|
11518 18178 | }
|
11519 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
11520 - | ///
|
18179 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput).
|
18180 + | /// /* ServerBuilderGenerator.kt:260 */
|
11521 18181 | /// The builder fails to construct a [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) if a [`ConstraintViolation`] occurs.
|
11522 18182 | ///
|
11523 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18183 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18184 + | /* ServerBuilderGenerator.kt:271 */
|
11524 18185 | pub fn build(
|
11525 18186 | self,
|
11526 18187 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
11527 18188 | {
|
11528 18189 | self.build_enforcing_all_constraints()
|
11529 18190 | }
|
18191 + | /* ServerBuilderGenerator.kt:283 */
|
11530 18192 | fn build_enforcing_all_constraints(
|
11531 18193 | self,
|
11532 18194 | ) -> Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ConstraintViolation>
|
11533 18195 | {
|
11534 - | Ok(crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
18196 + | /* ServerBuilderGenerator.kt:287 */
|
18197 + | Ok(
|
18198 + | /* ServerBuilderGenerator.kt:542 */
|
18199 + | crate::input::HttpRequestWithLabelsAndTimestampFormatInput {
|
18200 + | /* ServerBuilderGenerator.kt:546 */
|
11535 18201 | member_epoch_seconds: self
|
11536 18202 | .member_epoch_seconds
|
18203 + | /* ServerBuilderGenerator.kt:569 */
|
11537 18204 | .ok_or(ConstraintViolation::MissingMemberEpochSeconds)?,
|
18205 + | /* ServerBuilderGenerator.kt:546 */
|
11538 18206 | member_http_date: self
|
11539 18207 | .member_http_date
|
18208 + | /* ServerBuilderGenerator.kt:569 */
|
11540 18209 | .ok_or(ConstraintViolation::MissingMemberHttpDate)?,
|
18210 + | /* ServerBuilderGenerator.kt:546 */
|
11541 18211 | member_date_time: self
|
11542 18212 | .member_date_time
|
18213 + | /* ServerBuilderGenerator.kt:569 */
|
11543 18214 | .ok_or(ConstraintViolation::MissingMemberDateTime)?,
|
18215 + | /* ServerBuilderGenerator.kt:546 */
|
11544 18216 | default_format: self
|
11545 18217 | .default_format
|
18218 + | /* ServerBuilderGenerator.kt:569 */
|
11546 18219 | .ok_or(ConstraintViolation::MissingDefaultFormat)?,
|
18220 + | /* ServerBuilderGenerator.kt:546 */
|
11547 18221 | target_epoch_seconds: self
|
11548 18222 | .target_epoch_seconds
|
18223 + | /* ServerBuilderGenerator.kt:569 */
|
11549 18224 | .ok_or(ConstraintViolation::MissingTargetEpochSeconds)?,
|
18225 + | /* ServerBuilderGenerator.kt:546 */
|
11550 18226 | target_http_date: self
|
11551 18227 | .target_http_date
|
18228 + | /* ServerBuilderGenerator.kt:569 */
|
11552 18229 | .ok_or(ConstraintViolation::MissingTargetHttpDate)?,
|
18230 + | /* ServerBuilderGenerator.kt:546 */
|
11553 18231 | target_date_time: self
|
11554 18232 | .target_date_time
|
18233 + | /* ServerBuilderGenerator.kt:569 */
|
11555 18234 | .ok_or(ConstraintViolation::MissingTargetDateTime)?,
|
11556 - | })
|
18235 + | /* ServerBuilderGenerator.kt:542 */
|
18236 + | }, /* ServerBuilderGenerator.kt:287 */
|
18237 + | )
|
18238 + | /* ServerBuilderGenerator.kt:283 */
|
11557 18239 | }
|
18240 + | /* ServerBuilderGenerator.kt:215 */
|
11558 18241 | }
|
18242 + |
|
18243 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11559 18244 | }
|
11560 - | /// See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18245 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
11561 18246 | pub mod http_request_with_labels_input {
|
11562 18247 |
|
18248 + | /* RustType.kt:534 */
|
11563 18249 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
11564 - | /// Holds one variant for each of the ways the builder can fail.
|
18250 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
18251 + | /* RustType.kt:534 */
|
11565 18252 | #[non_exhaustive]
|
18253 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11566 18254 | #[allow(clippy::enum_variant_names)]
|
11567 18255 | pub enum ConstraintViolation {
|
11568 - | /// `string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18256 + | /// /* ServerBuilderConstraintViolations.kt:137 */`string` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18257 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11569 18258 | MissingString,
|
11570 - | /// `short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18259 + | /// /* ServerBuilderConstraintViolations.kt:137 */`short` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18260 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11571 18261 | MissingShort,
|
11572 - | /// `integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18262 + | /// /* ServerBuilderConstraintViolations.kt:137 */`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18263 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11573 18264 | MissingInteger,
|
11574 - | /// `long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18265 + | /// /* ServerBuilderConstraintViolations.kt:137 */`long` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18266 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11575 18267 | MissingLong,
|
11576 - | /// `float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18268 + | /// /* ServerBuilderConstraintViolations.kt:137 */`float` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18269 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11577 18270 | MissingFloat,
|
11578 - | /// `double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18271 + | /// /* ServerBuilderConstraintViolations.kt:137 */`double` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18272 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11579 18273 | MissingDouble,
|
11580 - | /// `boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18274 + | /// /* ServerBuilderConstraintViolations.kt:137 */`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18275 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11581 18276 | MissingBoolean,
|
11582 - | /// `timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18277 + | /// /* ServerBuilderConstraintViolations.kt:137 */`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`.
|
18278 + | /* ServerBuilderConstraintViolations.kt:144 */
|
11583 18279 | MissingTimestamp,
|
18280 + | /* ServerBuilderConstraintViolations.kt:75 */
|
11584 18281 | }
|
18282 + | /* ServerBuilderConstraintViolations.kt:116 */
|
11585 18283 | impl ::std::fmt::Display for ConstraintViolation {
|
18284 + | /* ServerBuilderConstraintViolations.kt:117 */
|
11586 18285 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
18286 + | /* ServerBuilderConstraintViolations.kt:118 */
|
11587 18287 | match self {
|
11588 - | ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11589 - | ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11590 - | ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11591 - | ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11592 - | ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11593 - | ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11594 - | ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11595 - | ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
11596 - | }
|
11597 - | }
|
11598 - | }
|
18288 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingString => write!(f, "`string` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18289 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingShort => write!(f, "`short` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18290 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingInteger => write!(f, "`integer` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18291 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingLong => write!(f, "`long` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18292 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingFloat => write!(f, "`float` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18293 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingDouble => write!(f, "`double` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18294 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingBoolean => write!(f, "`boolean` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18295 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::MissingTimestamp => write!(f, "`timestamp` was not provided but it is required when building `HttpRequestWithLabelsInput`"),
|
18296 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
18297 + | /* ServerBuilderConstraintViolations.kt:117 */
|
18298 + | }
|
18299 + | /* ServerBuilderConstraintViolations.kt:116 */
|
18300 + | }
|
18301 + | /* ServerBuilderConstraintViolations.kt:83 */
|
11599 18302 | impl ::std::error::Error for ConstraintViolation {}
|
18303 + | /* ServerBuilderConstraintViolations.kt:172 */
|
11600 18304 | impl ConstraintViolation {
|
11601 18305 | pub(crate) fn as_validation_exception_field(
|
11602 18306 | self,
|
11603 18307 | path: ::std::string::String,
|
11604 18308 | ) -> crate::model::ValidationExceptionField {
|
11605 18309 | match self {
|
11606 18310 | ConstraintViolation::MissingString => crate::model::ValidationExceptionField {
|
11607 18311 | message: format!("Value at '{}/string' failed to satisfy constraint: Member must not be null", path),
|
11608 18312 | path: path + "/string",
|
11609 18313 | },
|
11610 18314 | ConstraintViolation::MissingShort => crate::model::ValidationExceptionField {
|
11611 18315 | message: format!("Value at '{}/short' failed to satisfy constraint: Member must not be null", path),
|
11612 18316 | path: path + "/short",
|
11613 18317 | },
|
11614 18318 | ConstraintViolation::MissingInteger => crate::model::ValidationExceptionField {
|
11615 18319 | message: format!("Value at '{}/integer' failed to satisfy constraint: Member must not be null", path),
|
11616 18320 | path: path + "/integer",
|
11617 18321 | },
|
11618 18322 | ConstraintViolation::MissingLong => crate::model::ValidationExceptionField {
|
11619 18323 | message: format!("Value at '{}/long' failed to satisfy constraint: Member must not be null", path),
|
11620 18324 | path: path + "/long",
|
11621 18325 | },
|
11622 18326 | ConstraintViolation::MissingFloat => crate::model::ValidationExceptionField {
|
11623 18327 | message: format!("Value at '{}/float' failed to satisfy constraint: Member must not be null", path),
|
11624 18328 | path: path + "/float",
|
11625 18329 | },
|
11626 18330 | ConstraintViolation::MissingDouble => crate::model::ValidationExceptionField {
|
11627 18331 | message: format!("Value at '{}/double' failed to satisfy constraint: Member must not be null", path),
|
11628 18332 | path: path + "/double",
|
11629 18333 | },
|
11630 18334 | ConstraintViolation::MissingBoolean => crate::model::ValidationExceptionField {
|
11631 18335 | message: format!("Value at '{}/boolean' failed to satisfy constraint: Member must not be null", path),
|
11632 18336 | path: path + "/boolean",
|
11633 18337 | },
|
11634 18338 | ConstraintViolation::MissingTimestamp => crate::model::ValidationExceptionField {
|
11635 18339 | message: format!("Value at '{}/timestamp' failed to satisfy constraint: Member must not be null", path),
|
11636 18340 | path: path + "/timestamp",
|
11637 18341 | },
|
11638 18342 | }
|
11639 18343 | }
|
11640 18344 | }
|
18345 + | /* ServerBuilderGenerator.kt:234 */
|
11641 18346 | impl ::std::convert::From<ConstraintViolation>
|
11642 18347 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
11643 18348 | {
|
11644 18349 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
11645 18350 | let first_validation_exception_field =
|
11646 18351 | constraint_violation.as_validation_exception_field("".to_owned());
|
11647 18352 | let validation_exception = crate::error::ValidationException {
|
11648 18353 | message: format!(
|
11649 18354 | "1 validation error detected. {}",
|
11650 18355 | &first_validation_exception_field.message
|
11651 18356 | ),
|
11652 18357 | field_list: Some(vec![first_validation_exception_field]),
|
11653 18358 | };
|
11654 18359 | Self::ConstraintViolation(
|
11655 18360 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
11656 18361 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
11657 18362 | )
|
11658 18363 | }
|
11659 18364 | }
|
18365 + | /* ServerBuilderGenerator.kt:244 */
|
11660 18366 | impl ::std::convert::From<Builder>
|
11661 18367 | for crate::constrained::MaybeConstrained<crate::input::HttpRequestWithLabelsInput>
|
11662 18368 | {
|
11663 18369 | fn from(builder: Builder) -> Self {
|
11664 18370 | Self::Unconstrained(builder)
|
11665 18371 | }
|
11666 18372 | }
|
18373 + | /* ServerBuilderGenerator.kt:446 */
|
11667 18374 | impl ::std::convert::TryFrom<Builder> for crate::input::HttpRequestWithLabelsInput {
|
11668 18375 | type Error = ConstraintViolation;
|
11669 18376 |
|
11670 18377 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
11671 18378 | builder.build()
|
11672 18379 | }
|
11673 18380 | }
|
11674 - | /// A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18381 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18382 + | /* RustType.kt:534 */
|
11675 18383 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18384 + | /* ServerBuilderGenerator.kt:211 */
|
11676 18385 | pub struct Builder {
|
18386 + | /* ServerBuilderGenerator.kt:308 */
|
11677 18387 | pub(crate) string: ::std::option::Option<::std::string::String>,
|
11678 - | pub(crate) short: ::std::option::Option<i16>,
|
11679 - | pub(crate) integer: ::std::option::Option<i32>,
|
11680 - | pub(crate) long: ::std::option::Option<i64>,
|
11681 - | pub(crate) float: ::std::option::Option<f32>,
|
11682 - | pub(crate) double: ::std::option::Option<f64>,
|
11683 - | pub(crate) boolean: ::std::option::Option<bool>,
|
18388 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) short: ::std::option::Option<i16>,
|
18389 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) integer: ::std::option::Option<i32>,
|
18390 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) long: ::std::option::Option<i64>,
|
18391 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) float: ::std::option::Option<f32>,
|
18392 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) double: ::std::option::Option<f64>,
|
18393 + | /* ServerBuilderGenerator.kt:308 */ pub(crate) boolean: ::std::option::Option<bool>,
|
18394 + | /* ServerBuilderGenerator.kt:308 */
|
11684 18395 | pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18396 + | /* ServerBuilderGenerator.kt:211 */
|
11685 18397 | }
|
18398 + | /* ServerBuilderGenerator.kt:215 */
|
11686 18399 | impl Builder {
|
18400 + | /* ServerBuilderGenerator.kt:331 */
|
11687 18401 | #[allow(missing_docs)] // documentation missing in model
|
18402 + | /* ServerBuilderGenerator.kt:343 */
|
11688 18403 | pub fn string(mut self, input: ::std::string::String) -> Self {
|
11689 - | self.string = Some(input);
|
18404 + | /* ServerBuilderGenerator.kt:344 */
|
18405 + | self.string =
|
18406 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18407 + | /* ServerBuilderGenerator.kt:376 */input
|
18408 + | /* ServerBuilderGenerator.kt:345 */)
|
18409 + | /* ServerBuilderGenerator.kt:344 */;
|
11690 18410 | self
|
18411 + | /* ServerBuilderGenerator.kt:343 */
|
11691 18412 | }
|
18413 + | /* ServerBuilderGenerator.kt:426 */
|
11692 18414 | #[allow(missing_docs)] // documentation missing in model
|
18415 + | /* ServerBuilderGenerator.kt:428 */
|
11693 18416 | pub(crate) fn set_string(
|
11694 18417 | mut self,
|
11695 18418 | input: impl ::std::convert::Into<::std::string::String>,
|
11696 18419 | ) -> Self {
|
18420 + | /* ServerBuilderGenerator.kt:429 */
|
11697 18421 | self.string = Some(input.into());
|
11698 18422 | self
|
18423 + | /* ServerBuilderGenerator.kt:428 */
|
11699 18424 | }
|
18425 + | /* ServerBuilderGenerator.kt:331 */
|
11700 18426 | #[allow(missing_docs)] // documentation missing in model
|
18427 + | /* ServerBuilderGenerator.kt:343 */
|
11701 18428 | pub fn short(mut self, input: i16) -> Self {
|
11702 - | self.short = Some(input);
|
18429 + | /* ServerBuilderGenerator.kt:344 */
|
18430 + | self.short =
|
18431 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18432 + | /* ServerBuilderGenerator.kt:376 */input
|
18433 + | /* ServerBuilderGenerator.kt:345 */)
|
18434 + | /* ServerBuilderGenerator.kt:344 */;
|
11703 18435 | self
|
18436 + | /* ServerBuilderGenerator.kt:343 */
|
11704 18437 | }
|
18438 + | /* ServerBuilderGenerator.kt:426 */
|
11705 18439 | #[allow(missing_docs)] // documentation missing in model
|
18440 + | /* ServerBuilderGenerator.kt:428 */
|
11706 18441 | pub(crate) fn set_short(mut self, input: impl ::std::convert::Into<i16>) -> Self {
|
18442 + | /* ServerBuilderGenerator.kt:429 */
|
11707 18443 | self.short = Some(input.into());
|
11708 18444 | self
|
18445 + | /* ServerBuilderGenerator.kt:428 */
|
11709 18446 | }
|
18447 + | /* ServerBuilderGenerator.kt:331 */
|
11710 18448 | #[allow(missing_docs)] // documentation missing in model
|
18449 + | /* ServerBuilderGenerator.kt:343 */
|
11711 18450 | pub fn integer(mut self, input: i32) -> Self {
|
11712 - | self.integer = Some(input);
|
18451 + | /* ServerBuilderGenerator.kt:344 */
|
18452 + | self.integer =
|
18453 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18454 + | /* ServerBuilderGenerator.kt:376 */input
|
18455 + | /* ServerBuilderGenerator.kt:345 */)
|
18456 + | /* ServerBuilderGenerator.kt:344 */;
|
11713 18457 | self
|
18458 + | /* ServerBuilderGenerator.kt:343 */
|
11714 18459 | }
|
18460 + | /* ServerBuilderGenerator.kt:426 */
|
11715 18461 | #[allow(missing_docs)] // documentation missing in model
|
18462 + | /* ServerBuilderGenerator.kt:428 */
|
11716 18463 | pub(crate) fn set_integer(mut self, input: impl ::std::convert::Into<i32>) -> Self {
|
18464 + | /* ServerBuilderGenerator.kt:429 */
|
11717 18465 | self.integer = Some(input.into());
|
11718 18466 | self
|
18467 + | /* ServerBuilderGenerator.kt:428 */
|
11719 18468 | }
|
18469 + | /* ServerBuilderGenerator.kt:331 */
|
11720 18470 | #[allow(missing_docs)] // documentation missing in model
|
18471 + | /* ServerBuilderGenerator.kt:343 */
|
11721 18472 | pub fn long(mut self, input: i64) -> Self {
|
11722 - | self.long = Some(input);
|
18473 + | /* ServerBuilderGenerator.kt:344 */
|
18474 + | self.long =
|
18475 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18476 + | /* ServerBuilderGenerator.kt:376 */input
|
18477 + | /* ServerBuilderGenerator.kt:345 */)
|
18478 + | /* ServerBuilderGenerator.kt:344 */;
|
11723 18479 | self
|
18480 + | /* ServerBuilderGenerator.kt:343 */
|
11724 18481 | }
|
18482 + | /* ServerBuilderGenerator.kt:426 */
|
11725 18483 | #[allow(missing_docs)] // documentation missing in model
|
18484 + | /* ServerBuilderGenerator.kt:428 */
|
11726 18485 | pub(crate) fn set_long(mut self, input: impl ::std::convert::Into<i64>) -> Self {
|
18486 + | /* ServerBuilderGenerator.kt:429 */
|
11727 18487 | self.long = Some(input.into());
|
11728 18488 | self
|
18489 + | /* ServerBuilderGenerator.kt:428 */
|
11729 18490 | }
|
18491 + | /* ServerBuilderGenerator.kt:331 */
|
11730 18492 | #[allow(missing_docs)] // documentation missing in model
|
18493 + | /* ServerBuilderGenerator.kt:343 */
|
11731 18494 | pub fn float(mut self, input: f32) -> Self {
|
11732 - | self.float = Some(input);
|
18495 + | /* ServerBuilderGenerator.kt:344 */
|
18496 + | self.float =
|
18497 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18498 + | /* ServerBuilderGenerator.kt:376 */input
|
18499 + | /* ServerBuilderGenerator.kt:345 */)
|
18500 + | /* ServerBuilderGenerator.kt:344 */;
|
11733 18501 | self
|
18502 + | /* ServerBuilderGenerator.kt:343 */
|
11734 18503 | }
|
18504 + | /* ServerBuilderGenerator.kt:426 */
|
11735 18505 | #[allow(missing_docs)] // documentation missing in model
|
18506 + | /* ServerBuilderGenerator.kt:428 */
|
11736 18507 | pub(crate) fn set_float(mut self, input: impl ::std::convert::Into<f32>) -> Self {
|
18508 + | /* ServerBuilderGenerator.kt:429 */
|
11737 18509 | self.float = Some(input.into());
|
11738 18510 | self
|
18511 + | /* ServerBuilderGenerator.kt:428 */
|
11739 18512 | }
|
18513 + | /* ServerBuilderGenerator.kt:331 */
|
11740 18514 | #[allow(missing_docs)] // documentation missing in model
|
18515 + | /* ServerBuilderGenerator.kt:343 */
|
11741 18516 | pub fn double(mut self, input: f64) -> Self {
|
11742 - | self.double = Some(input);
|
18517 + | /* ServerBuilderGenerator.kt:344 */
|
18518 + | self.double =
|
18519 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18520 + | /* ServerBuilderGenerator.kt:376 */input
|
18521 + | /* ServerBuilderGenerator.kt:345 */)
|
18522 + | /* ServerBuilderGenerator.kt:344 */;
|
11743 18523 | self
|
18524 + | /* ServerBuilderGenerator.kt:343 */
|
11744 18525 | }
|
18526 + | /* ServerBuilderGenerator.kt:426 */
|
11745 18527 | #[allow(missing_docs)] // documentation missing in model
|
18528 + | /* ServerBuilderGenerator.kt:428 */
|
11746 18529 | pub(crate) fn set_double(mut self, input: impl ::std::convert::Into<f64>) -> Self {
|
18530 + | /* ServerBuilderGenerator.kt:429 */
|
11747 18531 | self.double = Some(input.into());
|
11748 18532 | self
|
18533 + | /* ServerBuilderGenerator.kt:428 */
|
11749 18534 | }
|
11750 - | /// Serialized in the path as true or false.
|
18535 + | /// /* ServerBuilderGenerator.kt:331 */Serialized in the path as true or false.
|
18536 + | /* ServerBuilderGenerator.kt:343 */
|
11751 18537 | pub fn boolean(mut self, input: bool) -> Self {
|
11752 - | self.boolean = Some(input);
|
18538 + | /* ServerBuilderGenerator.kt:344 */
|
18539 + | self.boolean =
|
18540 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18541 + | /* ServerBuilderGenerator.kt:376 */input
|
18542 + | /* ServerBuilderGenerator.kt:345 */)
|
18543 + | /* ServerBuilderGenerator.kt:344 */;
|
11753 18544 | self
|
18545 + | /* ServerBuilderGenerator.kt:343 */
|
11754 18546 | }
|
11755 - | /// Serialized in the path as true or false.
|
18547 + | /// /* ServerBuilderGenerator.kt:426 */Serialized in the path as true or false.
|
18548 + | /* ServerBuilderGenerator.kt:428 */
|
11756 18549 | pub(crate) fn set_boolean(mut self, input: impl ::std::convert::Into<bool>) -> Self {
|
18550 + | /* ServerBuilderGenerator.kt:429 */
|
11757 18551 | self.boolean = Some(input.into());
|
11758 18552 | self
|
18553 + | /* ServerBuilderGenerator.kt:428 */
|
11759 18554 | }
|
11760 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18555 + | /// /* ServerBuilderGenerator.kt:331 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18556 + | /* ServerBuilderGenerator.kt:343 */
|
11761 18557 | pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
11762 - | self.timestamp = Some(input);
|
18558 + | /* ServerBuilderGenerator.kt:344 */
|
18559 + | self.timestamp =
|
18560 + | /* ServerBuilderGenerator.kt:345 */Some(
|
18561 + | /* ServerBuilderGenerator.kt:376 */input
|
18562 + | /* ServerBuilderGenerator.kt:345 */)
|
18563 + | /* ServerBuilderGenerator.kt:344 */;
|
11763 18564 | self
|
18565 + | /* ServerBuilderGenerator.kt:343 */
|
11764 18566 | }
|
11765 - | /// Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18567 + | /// /* ServerBuilderGenerator.kt:426 */Note that this member has no format, so it's serialized as an RFC 3399 date-time.
|
18568 + | /* ServerBuilderGenerator.kt:428 */
|
11766 18569 | pub(crate) fn set_timestamp(
|
11767 18570 | mut self,
|
11768 18571 | input: impl ::std::convert::Into<::aws_smithy_types::DateTime>,
|
11769 18572 | ) -> Self {
|
18573 + | /* ServerBuilderGenerator.kt:429 */
|
11770 18574 | self.timestamp = Some(input.into());
|
11771 18575 | self
|
18576 + | /* ServerBuilderGenerator.kt:428 */
|
11772 18577 | }
|
11773 - | /// Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
11774 - | ///
|
18578 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput).
|
18579 + | /// /* ServerBuilderGenerator.kt:260 */
|
11775 18580 | /// The builder fails to construct a [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) if a [`ConstraintViolation`] occurs.
|
11776 18581 | ///
|
11777 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18582 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
18583 + | /* ServerBuilderGenerator.kt:271 */
|
11778 18584 | pub fn build(
|
11779 18585 | self,
|
11780 18586 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
11781 18587 | self.build_enforcing_all_constraints()
|
11782 18588 | }
|
18589 + | /* ServerBuilderGenerator.kt:283 */
|
11783 18590 | fn build_enforcing_all_constraints(
|
11784 18591 | self,
|
11785 18592 | ) -> Result<crate::input::HttpRequestWithLabelsInput, ConstraintViolation> {
|
11786 - | Ok(crate::input::HttpRequestWithLabelsInput {
|
11787 - | string: self.string.ok_or(ConstraintViolation::MissingString)?,
|
11788 - | short: self.short.ok_or(ConstraintViolation::MissingShort)?,
|
11789 - | integer: self.integer.ok_or(ConstraintViolation::MissingInteger)?,
|
11790 - | long: self.long.ok_or(ConstraintViolation::MissingLong)?,
|
11791 - | float: self.float.ok_or(ConstraintViolation::MissingFloat)?,
|
11792 - | double: self.double.ok_or(ConstraintViolation::MissingDouble)?,
|
11793 - | boolean: self.boolean.ok_or(ConstraintViolation::MissingBoolean)?,
|
18593 + | /* ServerBuilderGenerator.kt:287 */
|
18594 + | Ok(
|
18595 + | /* ServerBuilderGenerator.kt:542 */
|
18596 + | crate::input::HttpRequestWithLabelsInput {
|
18597 + | /* ServerBuilderGenerator.kt:546 */
|
18598 + | string: self
|
18599 + | .string
|
18600 + | /* ServerBuilderGenerator.kt:569 */
|
18601 + | .ok_or(ConstraintViolation::MissingString)?,
|
18602 + | /* ServerBuilderGenerator.kt:546 */
|
18603 + | short: self
|
18604 + | .short
|
18605 + | /* ServerBuilderGenerator.kt:569 */
|
18606 + | .ok_or(ConstraintViolation::MissingShort)?,
|
18607 + | /* ServerBuilderGenerator.kt:546 */
|
18608 + | integer: self
|
18609 + | .integer
|
18610 + | /* ServerBuilderGenerator.kt:569 */
|
18611 + | .ok_or(ConstraintViolation::MissingInteger)?,
|
18612 + | /* ServerBuilderGenerator.kt:546 */
|
18613 + | long: self
|
18614 + | .long
|
18615 + | /* ServerBuilderGenerator.kt:569 */
|
18616 + | .ok_or(ConstraintViolation::MissingLong)?,
|
18617 + | /* ServerBuilderGenerator.kt:546 */
|
18618 + | float: self
|
18619 + | .float
|
18620 + | /* ServerBuilderGenerator.kt:569 */
|
18621 + | .ok_or(ConstraintViolation::MissingFloat)?,
|
18622 + | /* ServerBuilderGenerator.kt:546 */
|
18623 + | double: self
|
18624 + | .double
|
18625 + | /* ServerBuilderGenerator.kt:569 */
|
18626 + | .ok_or(ConstraintViolation::MissingDouble)?,
|
18627 + | /* ServerBuilderGenerator.kt:546 */
|
18628 + | boolean: self
|
18629 + | .boolean
|
18630 + | /* ServerBuilderGenerator.kt:569 */
|
18631 + | .ok_or(ConstraintViolation::MissingBoolean)?,
|
18632 + | /* ServerBuilderGenerator.kt:546 */
|
11794 18633 | timestamp: self
|
11795 18634 | .timestamp
|
18635 + | /* ServerBuilderGenerator.kt:569 */
|
11796 18636 | .ok_or(ConstraintViolation::MissingTimestamp)?,
|
11797 - | })
|
18637 + | /* ServerBuilderGenerator.kt:542 */
|
18638 + | }, /* ServerBuilderGenerator.kt:287 */
|
18639 + | )
|
18640 + | /* ServerBuilderGenerator.kt:283 */
|
11798 18641 | }
|
18642 + | /* ServerBuilderGenerator.kt:215 */
|
11799 18643 | }
|
18644 + |
|
18645 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11800 18646 | }
|
11801 - | /// See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18647 + | /// /* ServerBuilderGenerator.kt:171 */See [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
11802 18648 | pub mod media_type_header_input {
|
11803 18649 |
|
18650 + | /* ServerBuilderGenerator.kt:461 */
|
11804 18651 | impl ::std::convert::From<Builder> for crate::input::MediaTypeHeaderInput {
|
11805 18652 | fn from(builder: Builder) -> Self {
|
11806 18653 | builder.build()
|
11807 18654 | }
|
11808 18655 | }
|
11809 - | /// A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18656 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18657 + | /* RustType.kt:534 */
|
11810 18658 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18659 + | /* ServerBuilderGenerator.kt:211 */
|
11811 18660 | pub struct Builder {
|
18661 + | /* ServerBuilderGenerator.kt:308 */
|
11812 18662 | pub(crate) json: ::std::option::Option<::std::string::String>,
|
18663 + | /* ServerBuilderGenerator.kt:211 */
|
11813 18664 | }
|
18665 + | /* ServerBuilderGenerator.kt:215 */
|
11814 18666 | impl Builder {
|
18667 + | /* ServerBuilderGenerator.kt:331 */
|
11815 18668 | #[allow(missing_docs)] // documentation missing in model
|
18669 + | /* ServerBuilderGenerator.kt:343 */
|
11816 18670 | pub fn json(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
11817 - | self.json = input;
|
18671 + | /* ServerBuilderGenerator.kt:344 */
|
18672 + | self.json =
|
18673 + | /* ServerBuilderGenerator.kt:376 */input
|
18674 + | /* ServerBuilderGenerator.kt:344 */;
|
11818 18675 | self
|
18676 + | /* ServerBuilderGenerator.kt:343 */
|
11819 18677 | }
|
18678 + | /* ServerBuilderGenerator.kt:426 */
|
11820 18679 | #[allow(missing_docs)] // documentation missing in model
|
18680 + | /* ServerBuilderGenerator.kt:428 */
|
11821 18681 | pub(crate) fn set_json(
|
11822 18682 | mut self,
|
11823 18683 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
11824 18684 | ) -> Self {
|
18685 + | /* ServerBuilderGenerator.kt:429 */
|
11825 18686 | self.json = input.map(|v| v.into());
|
11826 18687 | self
|
18688 + | /* ServerBuilderGenerator.kt:428 */
|
11827 18689 | }
|
11828 - | /// Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18690 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput).
|
18691 + | /* ServerBuilderGenerator.kt:271 */
|
11829 18692 | pub fn build(self) -> crate::input::MediaTypeHeaderInput {
|
11830 18693 | self.build_enforcing_all_constraints()
|
11831 18694 | }
|
18695 + | /* ServerBuilderGenerator.kt:283 */
|
11832 18696 | fn build_enforcing_all_constraints(self) -> crate::input::MediaTypeHeaderInput {
|
11833 - | crate::input::MediaTypeHeaderInput { json: self.json }
|
18697 + | /* ServerBuilderGenerator.kt:542 */
|
18698 + | crate::input::MediaTypeHeaderInput {
|
18699 + | /* ServerBuilderGenerator.kt:546 */
|
18700 + | json: self.json,
|
18701 + | /* ServerBuilderGenerator.kt:542 */
|
11834 18702 | }
|
18703 + | /* ServerBuilderGenerator.kt:283 */
|
11835 18704 | }
|
18705 + | /* ServerBuilderGenerator.kt:215 */
|
18706 + | }
|
18707 + |
|
18708 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11836 18709 | }
|
11837 - | /// See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18710 + | /// /* ServerBuilderGenerator.kt:171 */See [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
11838 18711 | pub mod timestamp_format_headers_input {
|
11839 18712 |
|
18713 + | /* ServerBuilderGenerator.kt:461 */
|
11840 18714 | impl ::std::convert::From<Builder> for crate::input::TimestampFormatHeadersInput {
|
11841 18715 | fn from(builder: Builder) -> Self {
|
11842 18716 | builder.build()
|
11843 18717 | }
|
11844 18718 | }
|
11845 - | /// A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18719 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18720 + | /* RustType.kt:534 */
|
11846 18721 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18722 + | /* ServerBuilderGenerator.kt:211 */
|
11847 18723 | pub struct Builder {
|
18724 + | /* ServerBuilderGenerator.kt:308 */
|
11848 18725 | pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18726 + | /* ServerBuilderGenerator.kt:308 */
|
11849 18727 | pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18728 + | /* ServerBuilderGenerator.kt:308 */
|
11850 18729 | pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18730 + | /* ServerBuilderGenerator.kt:308 */
|
11851 18731 | pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18732 + | /* ServerBuilderGenerator.kt:308 */
|
11852 18733 | pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18734 + | /* ServerBuilderGenerator.kt:308 */
|
11853 18735 | pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18736 + | /* ServerBuilderGenerator.kt:308 */
|
11854 18737 | pub(crate) target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18738 + | /* ServerBuilderGenerator.kt:211 */
|
11855 18739 | }
|
18740 + | /* ServerBuilderGenerator.kt:215 */
|
11856 18741 | impl Builder {
|
18742 + | /* ServerBuilderGenerator.kt:331 */
|
11857 18743 | #[allow(missing_docs)] // documentation missing in model
|
18744 + | /* ServerBuilderGenerator.kt:343 */
|
11858 18745 | pub fn member_epoch_seconds(
|
11859 18746 | mut self,
|
11860 18747 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11861 18748 | ) -> Self {
|
11862 - | self.member_epoch_seconds = input;
|
18749 + | /* ServerBuilderGenerator.kt:344 */
|
18750 + | self.member_epoch_seconds =
|
18751 + | /* ServerBuilderGenerator.kt:376 */input
|
18752 + | /* ServerBuilderGenerator.kt:344 */;
|
11863 18753 | self
|
18754 + | /* ServerBuilderGenerator.kt:343 */
|
11864 18755 | }
|
18756 + | /* ServerBuilderGenerator.kt:426 */
|
11865 18757 | #[allow(missing_docs)] // documentation missing in model
|
18758 + | /* ServerBuilderGenerator.kt:428 */
|
11866 18759 | pub(crate) fn set_member_epoch_seconds(
|
11867 18760 | mut self,
|
11868 18761 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11869 18762 | ) -> Self {
|
18763 + | /* ServerBuilderGenerator.kt:429 */
|
11870 18764 | self.member_epoch_seconds = input.map(|v| v.into());
|
11871 18765 | self
|
18766 + | /* ServerBuilderGenerator.kt:428 */
|
11872 18767 | }
|
18768 + | /* ServerBuilderGenerator.kt:331 */
|
11873 18769 | #[allow(missing_docs)] // documentation missing in model
|
18770 + | /* ServerBuilderGenerator.kt:343 */
|
11874 18771 | pub fn member_http_date(
|
11875 18772 | mut self,
|
11876 18773 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11877 18774 | ) -> Self {
|
11878 - | self.member_http_date = input;
|
18775 + | /* ServerBuilderGenerator.kt:344 */
|
18776 + | self.member_http_date =
|
18777 + | /* ServerBuilderGenerator.kt:376 */input
|
18778 + | /* ServerBuilderGenerator.kt:344 */;
|
11879 18779 | self
|
18780 + | /* ServerBuilderGenerator.kt:343 */
|
11880 18781 | }
|
18782 + | /* ServerBuilderGenerator.kt:426 */
|
11881 18783 | #[allow(missing_docs)] // documentation missing in model
|
18784 + | /* ServerBuilderGenerator.kt:428 */
|
11882 18785 | pub(crate) fn set_member_http_date(
|
11883 18786 | mut self,
|
11884 18787 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11885 18788 | ) -> Self {
|
18789 + | /* ServerBuilderGenerator.kt:429 */
|
11886 18790 | self.member_http_date = input.map(|v| v.into());
|
11887 18791 | self
|
18792 + | /* ServerBuilderGenerator.kt:428 */
|
11888 18793 | }
|
18794 + | /* ServerBuilderGenerator.kt:331 */
|
11889 18795 | #[allow(missing_docs)] // documentation missing in model
|
18796 + | /* ServerBuilderGenerator.kt:343 */
|
11890 18797 | pub fn member_date_time(
|
11891 18798 | mut self,
|
11892 18799 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11893 18800 | ) -> Self {
|
11894 - | self.member_date_time = input;
|
18801 + | /* ServerBuilderGenerator.kt:344 */
|
18802 + | self.member_date_time =
|
18803 + | /* ServerBuilderGenerator.kt:376 */input
|
18804 + | /* ServerBuilderGenerator.kt:344 */;
|
11895 18805 | self
|
18806 + | /* ServerBuilderGenerator.kt:343 */
|
11896 18807 | }
|
18808 + | /* ServerBuilderGenerator.kt:426 */
|
11897 18809 | #[allow(missing_docs)] // documentation missing in model
|
18810 + | /* ServerBuilderGenerator.kt:428 */
|
11898 18811 | pub(crate) fn set_member_date_time(
|
11899 18812 | mut self,
|
11900 18813 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11901 18814 | ) -> Self {
|
18815 + | /* ServerBuilderGenerator.kt:429 */
|
11902 18816 | self.member_date_time = input.map(|v| v.into());
|
11903 18817 | self
|
18818 + | /* ServerBuilderGenerator.kt:428 */
|
11904 18819 | }
|
18820 + | /* ServerBuilderGenerator.kt:331 */
|
11905 18821 | #[allow(missing_docs)] // documentation missing in model
|
18822 + | /* ServerBuilderGenerator.kt:343 */
|
11906 18823 | pub fn default_format(
|
11907 18824 | mut self,
|
11908 18825 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11909 18826 | ) -> Self {
|
11910 - | self.default_format = input;
|
18827 + | /* ServerBuilderGenerator.kt:344 */
|
18828 + | self.default_format =
|
18829 + | /* ServerBuilderGenerator.kt:376 */input
|
18830 + | /* ServerBuilderGenerator.kt:344 */;
|
11911 18831 | self
|
18832 + | /* ServerBuilderGenerator.kt:343 */
|
11912 18833 | }
|
18834 + | /* ServerBuilderGenerator.kt:426 */
|
11913 18835 | #[allow(missing_docs)] // documentation missing in model
|
18836 + | /* ServerBuilderGenerator.kt:428 */
|
11914 18837 | pub(crate) fn set_default_format(
|
11915 18838 | mut self,
|
11916 18839 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11917 18840 | ) -> Self {
|
18841 + | /* ServerBuilderGenerator.kt:429 */
|
11918 18842 | self.default_format = input.map(|v| v.into());
|
11919 18843 | self
|
18844 + | /* ServerBuilderGenerator.kt:428 */
|
11920 18845 | }
|
18846 + | /* ServerBuilderGenerator.kt:331 */
|
11921 18847 | #[allow(missing_docs)] // documentation missing in model
|
18848 + | /* ServerBuilderGenerator.kt:343 */
|
11922 18849 | pub fn target_epoch_seconds(
|
11923 18850 | mut self,
|
11924 18851 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11925 18852 | ) -> Self {
|
11926 - | self.target_epoch_seconds = input;
|
18853 + | /* ServerBuilderGenerator.kt:344 */
|
18854 + | self.target_epoch_seconds =
|
18855 + | /* ServerBuilderGenerator.kt:376 */input
|
18856 + | /* ServerBuilderGenerator.kt:344 */;
|
11927 18857 | self
|
18858 + | /* ServerBuilderGenerator.kt:343 */
|
11928 18859 | }
|
18860 + | /* ServerBuilderGenerator.kt:426 */
|
11929 18861 | #[allow(missing_docs)] // documentation missing in model
|
18862 + | /* ServerBuilderGenerator.kt:428 */
|
11930 18863 | pub(crate) fn set_target_epoch_seconds(
|
11931 18864 | mut self,
|
11932 18865 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11933 18866 | ) -> Self {
|
18867 + | /* ServerBuilderGenerator.kt:429 */
|
11934 18868 | self.target_epoch_seconds = input.map(|v| v.into());
|
11935 18869 | self
|
18870 + | /* ServerBuilderGenerator.kt:428 */
|
11936 18871 | }
|
18872 + | /* ServerBuilderGenerator.kt:331 */
|
11937 18873 | #[allow(missing_docs)] // documentation missing in model
|
18874 + | /* ServerBuilderGenerator.kt:343 */
|
11938 18875 | pub fn target_http_date(
|
11939 18876 | mut self,
|
11940 18877 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11941 18878 | ) -> Self {
|
11942 - | self.target_http_date = input;
|
18879 + | /* ServerBuilderGenerator.kt:344 */
|
18880 + | self.target_http_date =
|
18881 + | /* ServerBuilderGenerator.kt:376 */input
|
18882 + | /* ServerBuilderGenerator.kt:344 */;
|
11943 18883 | self
|
18884 + | /* ServerBuilderGenerator.kt:343 */
|
11944 18885 | }
|
18886 + | /* ServerBuilderGenerator.kt:426 */
|
11945 18887 | #[allow(missing_docs)] // documentation missing in model
|
18888 + | /* ServerBuilderGenerator.kt:428 */
|
11946 18889 | pub(crate) fn set_target_http_date(
|
11947 18890 | mut self,
|
11948 18891 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11949 18892 | ) -> Self {
|
18893 + | /* ServerBuilderGenerator.kt:429 */
|
11950 18894 | self.target_http_date = input.map(|v| v.into());
|
11951 18895 | self
|
18896 + | /* ServerBuilderGenerator.kt:428 */
|
11952 18897 | }
|
18898 + | /* ServerBuilderGenerator.kt:331 */
|
11953 18899 | #[allow(missing_docs)] // documentation missing in model
|
18900 + | /* ServerBuilderGenerator.kt:343 */
|
11954 18901 | pub fn target_date_time(
|
11955 18902 | mut self,
|
11956 18903 | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
11957 18904 | ) -> Self {
|
11958 - | self.target_date_time = input;
|
18905 + | /* ServerBuilderGenerator.kt:344 */
|
18906 + | self.target_date_time =
|
18907 + | /* ServerBuilderGenerator.kt:376 */input
|
18908 + | /* ServerBuilderGenerator.kt:344 */;
|
11959 18909 | self
|
18910 + | /* ServerBuilderGenerator.kt:343 */
|
11960 18911 | }
|
18912 + | /* ServerBuilderGenerator.kt:426 */
|
11961 18913 | #[allow(missing_docs)] // documentation missing in model
|
18914 + | /* ServerBuilderGenerator.kt:428 */
|
11962 18915 | pub(crate) fn set_target_date_time(
|
11963 18916 | mut self,
|
11964 18917 | input: Option<impl ::std::convert::Into<::aws_smithy_types::DateTime>>,
|
11965 18918 | ) -> Self {
|
18919 + | /* ServerBuilderGenerator.kt:429 */
|
11966 18920 | self.target_date_time = input.map(|v| v.into());
|
11967 18921 | self
|
18922 + | /* ServerBuilderGenerator.kt:428 */
|
11968 18923 | }
|
11969 - | /// Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18924 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput).
|
18925 + | /* ServerBuilderGenerator.kt:271 */
|
11970 18926 | pub fn build(self) -> crate::input::TimestampFormatHeadersInput {
|
11971 18927 | self.build_enforcing_all_constraints()
|
11972 18928 | }
|
18929 + | /* ServerBuilderGenerator.kt:283 */
|
11973 18930 | fn build_enforcing_all_constraints(self) -> crate::input::TimestampFormatHeadersInput {
|
18931 + | /* ServerBuilderGenerator.kt:542 */
|
11974 18932 | crate::input::TimestampFormatHeadersInput {
|
18933 + | /* ServerBuilderGenerator.kt:546 */
|
11975 18934 | member_epoch_seconds: self.member_epoch_seconds,
|
18935 + | /* ServerBuilderGenerator.kt:546 */
|
11976 18936 | member_http_date: self.member_http_date,
|
18937 + | /* ServerBuilderGenerator.kt:546 */
|
11977 18938 | member_date_time: self.member_date_time,
|
18939 + | /* ServerBuilderGenerator.kt:546 */
|
11978 18940 | default_format: self.default_format,
|
18941 + | /* ServerBuilderGenerator.kt:546 */
|
11979 18942 | target_epoch_seconds: self.target_epoch_seconds,
|
18943 + | /* ServerBuilderGenerator.kt:546 */
|
11980 18944 | target_http_date: self.target_http_date,
|
18945 + | /* ServerBuilderGenerator.kt:546 */
|
11981 18946 | target_date_time: self.target_date_time,
|
18947 + | /* ServerBuilderGenerator.kt:542 */
|
11982 18948 | }
|
18949 + | /* ServerBuilderGenerator.kt:283 */
|
11983 18950 | }
|
18951 + | /* ServerBuilderGenerator.kt:215 */
|
11984 18952 | }
|
18953 + |
|
18954 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
11985 18955 | }
|
11986 - | /// See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18956 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
11987 18957 | pub mod null_and_empty_headers_server_input {
|
11988 18958 |
|
18959 + | /* ServerBuilderGenerator.kt:461 */
|
11989 18960 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersServerInput {
|
11990 18961 | fn from(builder: Builder) -> Self {
|
11991 18962 | builder.build()
|
11992 18963 | }
|
11993 18964 | }
|
11994 - | /// A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18965 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
18966 + | /* RustType.kt:534 */
|
11995 18967 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
18968 + | /* ServerBuilderGenerator.kt:211 */
|
11996 18969 | pub struct Builder {
|
18970 + | /* ServerBuilderGenerator.kt:308 */
|
11997 18971 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
18972 + | /* ServerBuilderGenerator.kt:308 */
|
11998 18973 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
18974 + | /* ServerBuilderGenerator.kt:308 */
|
11999 18975 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
18976 + | /* ServerBuilderGenerator.kt:211 */
|
12000 18977 | }
|
18978 + | /* ServerBuilderGenerator.kt:215 */
|
12001 18979 | impl Builder {
|
18980 + | /* ServerBuilderGenerator.kt:331 */
|
12002 18981 | #[allow(missing_docs)] // documentation missing in model
|
18982 + | /* ServerBuilderGenerator.kt:343 */
|
12003 18983 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
12004 - | self.a = input;
|
18984 + | /* ServerBuilderGenerator.kt:344 */
|
18985 + | self.a =
|
18986 + | /* ServerBuilderGenerator.kt:376 */input
|
18987 + | /* ServerBuilderGenerator.kt:344 */;
|
12005 18988 | self
|
18989 + | /* ServerBuilderGenerator.kt:343 */
|
12006 18990 | }
|
18991 + | /* ServerBuilderGenerator.kt:426 */
|
12007 18992 | #[allow(missing_docs)] // documentation missing in model
|
18993 + | /* ServerBuilderGenerator.kt:428 */
|
12008 18994 | pub(crate) fn set_a(
|
12009 18995 | mut self,
|
12010 18996 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12011 18997 | ) -> Self {
|
18998 + | /* ServerBuilderGenerator.kt:429 */
|
12012 18999 | self.a = input.map(|v| v.into());
|
12013 19000 | self
|
19001 + | /* ServerBuilderGenerator.kt:428 */
|
12014 19002 | }
|
19003 + | /* ServerBuilderGenerator.kt:331 */
|
12015 19004 | #[allow(missing_docs)] // documentation missing in model
|
19005 + | /* ServerBuilderGenerator.kt:343 */
|
12016 19006 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
12017 - | self.b = input;
|
19007 + | /* ServerBuilderGenerator.kt:344 */
|
19008 + | self.b =
|
19009 + | /* ServerBuilderGenerator.kt:376 */input
|
19010 + | /* ServerBuilderGenerator.kt:344 */;
|
12018 19011 | self
|
19012 + | /* ServerBuilderGenerator.kt:343 */
|
12019 19013 | }
|
19014 + | /* ServerBuilderGenerator.kt:426 */
|
12020 19015 | #[allow(missing_docs)] // documentation missing in model
|
19016 + | /* ServerBuilderGenerator.kt:428 */
|
12021 19017 | pub(crate) fn set_b(
|
12022 19018 | mut self,
|
12023 19019 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12024 19020 | ) -> Self {
|
19021 + | /* ServerBuilderGenerator.kt:429 */
|
12025 19022 | self.b = input.map(|v| v.into());
|
12026 19023 | self
|
19024 + | /* ServerBuilderGenerator.kt:428 */
|
12027 19025 | }
|
19026 + | /* ServerBuilderGenerator.kt:331 */
|
12028 19027 | #[allow(missing_docs)] // documentation missing in model
|
19028 + | /* ServerBuilderGenerator.kt:343 */
|
12029 19029 | pub fn c(
|
12030 19030 | mut self,
|
12031 19031 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12032 19032 | ) -> Self {
|
12033 - | self.c = input;
|
19033 + | /* ServerBuilderGenerator.kt:344 */
|
19034 + | self.c =
|
19035 + | /* ServerBuilderGenerator.kt:376 */input
|
19036 + | /* ServerBuilderGenerator.kt:344 */;
|
12034 19037 | self
|
19038 + | /* ServerBuilderGenerator.kt:343 */
|
12035 19039 | }
|
19040 + | /* ServerBuilderGenerator.kt:426 */
|
12036 19041 | #[allow(missing_docs)] // documentation missing in model
|
19042 + | /* ServerBuilderGenerator.kt:428 */
|
12037 19043 | pub(crate) fn set_c(
|
12038 19044 | mut self,
|
12039 19045 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
12040 19046 | ) -> Self {
|
19047 + | /* ServerBuilderGenerator.kt:429 */
|
12041 19048 | self.c = input.map(|v| v.into());
|
12042 19049 | self
|
19050 + | /* ServerBuilderGenerator.kt:428 */
|
12043 19051 | }
|
12044 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
19052 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput).
|
19053 + | /* ServerBuilderGenerator.kt:271 */
|
12045 19054 | pub fn build(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
12046 19055 | self.build_enforcing_all_constraints()
|
12047 19056 | }
|
19057 + | /* ServerBuilderGenerator.kt:283 */
|
12048 19058 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersServerInput {
|
19059 + | /* ServerBuilderGenerator.kt:542 */
|
12049 19060 | crate::input::NullAndEmptyHeadersServerInput {
|
19061 + | /* ServerBuilderGenerator.kt:546 */
|
12050 19062 | a: self.a,
|
19063 + | /* ServerBuilderGenerator.kt:546 */
|
12051 19064 | b: self.b,
|
19065 + | /* ServerBuilderGenerator.kt:546 */
|
12052 19066 | c: self.c,
|
19067 + | /* ServerBuilderGenerator.kt:542 */
|
12053 19068 | }
|
19069 + | /* ServerBuilderGenerator.kt:283 */
|
12054 19070 | }
|
19071 + | /* ServerBuilderGenerator.kt:215 */
|
12055 19072 | }
|
19073 + |
|
19074 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12056 19075 | }
|
12057 - | /// See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19076 + | /// /* ServerBuilderGenerator.kt:171 */See [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
12058 19077 | pub mod null_and_empty_headers_client_input {
|
12059 19078 |
|
19079 + | /* ServerBuilderGenerator.kt:461 */
|
12060 19080 | impl ::std::convert::From<Builder> for crate::input::NullAndEmptyHeadersClientInput {
|
12061 19081 | fn from(builder: Builder) -> Self {
|
12062 19082 | builder.build()
|
12063 19083 | }
|
12064 19084 | }
|
12065 - | /// A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19085 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19086 + | /* RustType.kt:534 */
|
12066 19087 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19088 + | /* ServerBuilderGenerator.kt:211 */
|
12067 19089 | pub struct Builder {
|
19090 + | /* ServerBuilderGenerator.kt:308 */
|
12068 19091 | pub(crate) a: ::std::option::Option<::std::string::String>,
|
19092 + | /* ServerBuilderGenerator.kt:308 */
|
12069 19093 | pub(crate) b: ::std::option::Option<::std::string::String>,
|
19094 + | /* ServerBuilderGenerator.kt:308 */
|
12070 19095 | pub(crate) c: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19096 + | /* ServerBuilderGenerator.kt:211 */
|
12071 19097 | }
|
19098 + | /* ServerBuilderGenerator.kt:215 */
|
12072 19099 | impl Builder {
|
19100 + | /* ServerBuilderGenerator.kt:331 */
|
12073 19101 | #[allow(missing_docs)] // documentation missing in model
|
19102 + | /* ServerBuilderGenerator.kt:343 */
|
12074 19103 | pub fn a(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
12075 - | self.a = input;
|
19104 + | /* ServerBuilderGenerator.kt:344 */
|
19105 + | self.a =
|
19106 + | /* ServerBuilderGenerator.kt:376 */input
|
19107 + | /* ServerBuilderGenerator.kt:344 */;
|
12076 19108 | self
|
19109 + | /* ServerBuilderGenerator.kt:343 */
|
12077 19110 | }
|
19111 + | /* ServerBuilderGenerator.kt:426 */
|
12078 19112 | #[allow(missing_docs)] // documentation missing in model
|
19113 + | /* ServerBuilderGenerator.kt:428 */
|
12079 19114 | pub(crate) fn set_a(
|
12080 19115 | mut self,
|
12081 19116 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12082 19117 | ) -> Self {
|
19118 + | /* ServerBuilderGenerator.kt:429 */
|
12083 19119 | self.a = input.map(|v| v.into());
|
12084 19120 | self
|
19121 + | /* ServerBuilderGenerator.kt:428 */
|
12085 19122 | }
|
19123 + | /* ServerBuilderGenerator.kt:331 */
|
12086 19124 | #[allow(missing_docs)] // documentation missing in model
|
19125 + | /* ServerBuilderGenerator.kt:343 */
|
12087 19126 | pub fn b(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
12088 - | self.b = input;
|
19127 + | /* ServerBuilderGenerator.kt:344 */
|
19128 + | self.b =
|
19129 + | /* ServerBuilderGenerator.kt:376 */input
|
19130 + | /* ServerBuilderGenerator.kt:344 */;
|
12089 19131 | self
|
19132 + | /* ServerBuilderGenerator.kt:343 */
|
12090 19133 | }
|
19134 + | /* ServerBuilderGenerator.kt:426 */
|
12091 19135 | #[allow(missing_docs)] // documentation missing in model
|
19136 + | /* ServerBuilderGenerator.kt:428 */
|
12092 19137 | pub(crate) fn set_b(
|
12093 19138 | mut self,
|
12094 19139 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12095 19140 | ) -> Self {
|
19141 + | /* ServerBuilderGenerator.kt:429 */
|
12096 19142 | self.b = input.map(|v| v.into());
|
12097 19143 | self
|
19144 + | /* ServerBuilderGenerator.kt:428 */
|
12098 19145 | }
|
19146 + | /* ServerBuilderGenerator.kt:331 */
|
12099 19147 | #[allow(missing_docs)] // documentation missing in model
|
19148 + | /* ServerBuilderGenerator.kt:343 */
|
12100 19149 | pub fn c(
|
12101 19150 | mut self,
|
12102 19151 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12103 19152 | ) -> Self {
|
12104 - | self.c = input;
|
19153 + | /* ServerBuilderGenerator.kt:344 */
|
19154 + | self.c =
|
19155 + | /* ServerBuilderGenerator.kt:376 */input
|
19156 + | /* ServerBuilderGenerator.kt:344 */;
|
12105 19157 | self
|
19158 + | /* ServerBuilderGenerator.kt:343 */
|
12106 19159 | }
|
19160 + | /* ServerBuilderGenerator.kt:426 */
|
12107 19161 | #[allow(missing_docs)] // documentation missing in model
|
19162 + | /* ServerBuilderGenerator.kt:428 */
|
12108 19163 | pub(crate) fn set_c(
|
12109 19164 | mut self,
|
12110 19165 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
12111 19166 | ) -> Self {
|
19167 + | /* ServerBuilderGenerator.kt:429 */
|
12112 19168 | self.c = input.map(|v| v.into());
|
12113 19169 | self
|
19170 + | /* ServerBuilderGenerator.kt:428 */
|
12114 19171 | }
|
12115 - | /// Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19172 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput).
|
19173 + | /* ServerBuilderGenerator.kt:271 */
|
12116 19174 | pub fn build(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
12117 19175 | self.build_enforcing_all_constraints()
|
12118 19176 | }
|
19177 + | /* ServerBuilderGenerator.kt:283 */
|
12119 19178 | fn build_enforcing_all_constraints(self) -> crate::input::NullAndEmptyHeadersClientInput {
|
19179 + | /* ServerBuilderGenerator.kt:542 */
|
12120 19180 | crate::input::NullAndEmptyHeadersClientInput {
|
19181 + | /* ServerBuilderGenerator.kt:546 */
|
12121 19182 | a: self.a,
|
19183 + | /* ServerBuilderGenerator.kt:546 */
|
12122 19184 | b: self.b,
|
19185 + | /* ServerBuilderGenerator.kt:546 */
|
12123 19186 | c: self.c,
|
19187 + | /* ServerBuilderGenerator.kt:542 */
|
12124 19188 | }
|
19189 + | /* ServerBuilderGenerator.kt:283 */
|
12125 19190 | }
|
19191 + | /* ServerBuilderGenerator.kt:215 */
|
12126 19192 | }
|
19193 + |
|
19194 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12127 19195 | }
|
12128 - | /// See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19196 + | /// /* ServerBuilderGenerator.kt:171 */See [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
12129 19197 | pub mod input_and_output_with_headers_input {
|
12130 19198 |
|
19199 + | /* RustType.kt:534 */
|
12131 19200 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
12132 - | /// Holds one variant for each of the ways the builder can fail.
|
19201 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
19202 + | /* RustType.kt:534 */
|
12133 19203 | #[non_exhaustive]
|
19204 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12134 19205 | #[allow(clippy::enum_variant_names)]
|
12135 19206 | pub enum ConstraintViolation {
|
12136 - | /// Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
19207 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`.
|
19208 + | /* RustType.kt:534 */
|
12137 19209 | #[doc(hidden)]
|
19210 + | /* ServerBuilderConstraintViolations.kt:165 */
|
12138 19211 | HeaderStringSet(crate::model::string_set::ConstraintViolation),
|
12139 - | /// Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
19212 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`.
|
19213 + | /* RustType.kt:534 */
|
12140 19214 | #[doc(hidden)]
|
19215 + | /* ServerBuilderConstraintViolations.kt:165 */
|
12141 19216 | HeaderEnum(crate::model::foo_enum::ConstraintViolation),
|
12142 - | /// Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
19217 + | /// /* ServerBuilderConstraintViolations.kt:159 */Constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`.
|
19218 + | /* RustType.kt:534 */
|
12143 19219 | #[doc(hidden)]
|
19220 + | /* ServerBuilderConstraintViolations.kt:165 */
|
12144 19221 | HeaderEnumList(crate::model::foo_enum_list::ConstraintViolation),
|
19222 + | /* ServerBuilderConstraintViolations.kt:75 */
|
12145 19223 | }
|
19224 + | /* ServerBuilderConstraintViolations.kt:116 */
|
12146 19225 | impl ::std::fmt::Display for ConstraintViolation {
|
19226 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12147 19227 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
19228 + | /* ServerBuilderConstraintViolations.kt:118 */
|
12148 19229 | match self {
|
12149 - | ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
12150 - | ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
12151 - | ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
12152 - | }
|
19230 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::HeaderStringSet(_) => write!(f, "constraint violation occurred building member `header_string_set` when building `InputAndOutputWithHeadersInput`"),
|
19231 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::HeaderEnum(_) => write!(f, "constraint violation occurred building member `header_enum` when building `InputAndOutputWithHeadersInput`"),
|
19232 + | /* ServerBuilderConstraintViolations.kt:126 */ConstraintViolation::HeaderEnumList(_) => write!(f, "constraint violation occurred building member `header_enum_list` when building `InputAndOutputWithHeadersInput`"),
|
19233 + | /* ServerBuilderConstraintViolations.kt:118 */}
|
19234 + | /* ServerBuilderConstraintViolations.kt:117 */
|
12153 19235 | }
|
19236 + | /* ServerBuilderConstraintViolations.kt:116 */
|
12154 19237 | }
|
19238 + | /* ServerBuilderConstraintViolations.kt:83 */
|
12155 19239 | impl ::std::error::Error for ConstraintViolation {}
|
19240 + | /* ServerBuilderConstraintViolations.kt:172 */
|
12156 19241 | impl ConstraintViolation {
|
12157 19242 | pub(crate) fn as_validation_exception_field(
|
12158 19243 | self,
|
12159 19244 | path: ::std::string::String,
|
12160 19245 | ) -> crate::model::ValidationExceptionField {
|
12161 19246 | match self {
|
12162 19247 | ConstraintViolation::HeaderStringSet(inner) => {
|
12163 19248 | inner.as_validation_exception_field(path + "/headerStringSet")
|
12164 19249 | }
|
12165 19250 | ConstraintViolation::HeaderEnum(inner) => {
|
12166 19251 | inner.as_validation_exception_field(path + "/headerEnum")
|
12167 19252 | }
|
12168 19253 | ConstraintViolation::HeaderEnumList(inner) => {
|
12169 19254 | inner.as_validation_exception_field(path + "/headerEnumList")
|
12170 19255 | }
|
12171 19256 | }
|
12172 19257 | }
|
12173 19258 | }
|
19259 + | /* ServerBuilderGenerator.kt:234 */
|
12174 19260 | impl ::std::convert::From<ConstraintViolation>
|
12175 19261 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
12176 19262 | {
|
12177 19263 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
12178 19264 | let first_validation_exception_field =
|
12179 19265 | constraint_violation.as_validation_exception_field("".to_owned());
|
12180 19266 | let validation_exception = crate::error::ValidationException {
|
12181 19267 | message: format!(
|
12182 19268 | "1 validation error detected. {}",
|
12183 19269 | &first_validation_exception_field.message
|
12184 19270 | ),
|
12185 19271 | field_list: Some(vec![first_validation_exception_field]),
|
12186 19272 | };
|
12187 19273 | Self::ConstraintViolation(
|
12188 19274 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
12189 19275 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
12190 19276 | )
|
12191 19277 | }
|
12192 19278 | }
|
19279 + | /* ServerBuilderGenerator.kt:244 */
|
12193 19280 | impl ::std::convert::From<Builder>
|
12194 19281 | for crate::constrained::MaybeConstrained<crate::input::InputAndOutputWithHeadersInput>
|
12195 19282 | {
|
12196 19283 | fn from(builder: Builder) -> Self {
|
12197 19284 | Self::Unconstrained(builder)
|
12198 19285 | }
|
12199 19286 | }
|
19287 + | /* ServerBuilderGenerator.kt:446 */
|
12200 19288 | impl ::std::convert::TryFrom<Builder> for crate::input::InputAndOutputWithHeadersInput {
|
12201 19289 | type Error = ConstraintViolation;
|
12202 19290 |
|
12203 19291 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
12204 19292 | builder.build()
|
12205 19293 | }
|
12206 19294 | }
|
12207 - | /// A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19295 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19296 + | /* RustType.kt:534 */
|
12208 19297 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
19298 + | /* ServerBuilderGenerator.kt:211 */
|
12209 19299 | pub struct Builder {
|
19300 + | /* ServerBuilderGenerator.kt:308 */
|
12210 19301 | pub(crate) header_string: ::std::option::Option<::std::string::String>,
|
19302 + | /* ServerBuilderGenerator.kt:308 */
|
12211 19303 | pub(crate) header_byte: ::std::option::Option<i8>,
|
19304 + | /* ServerBuilderGenerator.kt:308 */
|
12212 19305 | pub(crate) header_short: ::std::option::Option<i16>,
|
19306 + | /* ServerBuilderGenerator.kt:308 */
|
12213 19307 | pub(crate) header_integer: ::std::option::Option<i32>,
|
19308 + | /* ServerBuilderGenerator.kt:308 */
|
12214 19309 | pub(crate) header_long: ::std::option::Option<i64>,
|
19310 + | /* ServerBuilderGenerator.kt:308 */
|
12215 19311 | pub(crate) header_float: ::std::option::Option<f32>,
|
19312 + | /* ServerBuilderGenerator.kt:308 */
|
12216 19313 | pub(crate) header_double: ::std::option::Option<f64>,
|
19314 + | /* ServerBuilderGenerator.kt:308 */
|
12217 19315 | pub(crate) header_true_bool: ::std::option::Option<bool>,
|
19316 + | /* ServerBuilderGenerator.kt:308 */
|
12218 19317 | pub(crate) header_false_bool: ::std::option::Option<bool>,
|
19318 + | /* ServerBuilderGenerator.kt:308 */
|
12219 19319 | pub(crate) header_string_list:
|
12220 19320 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19321 + | /* ServerBuilderGenerator.kt:308 */
|
12221 19322 | pub(crate) header_string_set:
|
12222 19323 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
19324 + | /* ServerBuilderGenerator.kt:308 */
|
12223 19325 | pub(crate) header_integer_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
19326 + | /* ServerBuilderGenerator.kt:308 */
|
12224 19327 | pub(crate) header_boolean_list: ::std::option::Option<::std::vec::Vec<bool>>,
|
19328 + | /* ServerBuilderGenerator.kt:308 */
|
12225 19329 | pub(crate) header_timestamp_list:
|
12226 19330 | ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
19331 + | /* ServerBuilderGenerator.kt:308 */
|
12227 19332 | pub(crate) header_enum:
|
12228 19333 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
19334 + | /* ServerBuilderGenerator.kt:308 */
|
12229 19335 | pub(crate) header_enum_list: ::std::option::Option<
|
12230 19336 | crate::constrained::MaybeConstrained<
|
12231 19337 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
12232 19338 | >,
|
12233 19339 | >,
|
19340 + | /* ServerBuilderGenerator.kt:308 */
|
12234 19341 | pub(crate) header_integer_enum: ::std::option::Option<i32>,
|
19342 + | /* ServerBuilderGenerator.kt:308 */
|
12235 19343 | pub(crate) header_integer_enum_list: ::std::option::Option<::std::vec::Vec<i32>>,
|
19344 + | /* ServerBuilderGenerator.kt:211 */
|
12236 19345 | }
|
19346 + | /* ServerBuilderGenerator.kt:215 */
|
12237 19347 | impl Builder {
|
19348 + | /* ServerBuilderGenerator.kt:331 */
|
12238 19349 | #[allow(missing_docs)] // documentation missing in model
|
19350 + | /* ServerBuilderGenerator.kt:343 */
|
12239 19351 | pub fn header_string(
|
12240 19352 | mut self,
|
12241 19353 | input: ::std::option::Option<::std::string::String>,
|
12242 19354 | ) -> Self {
|
12243 - | self.header_string = input;
|
19355 + | /* ServerBuilderGenerator.kt:344 */
|
19356 + | self.header_string =
|
19357 + | /* ServerBuilderGenerator.kt:376 */input
|
19358 + | /* ServerBuilderGenerator.kt:344 */;
|
12244 19359 | self
|
19360 + | /* ServerBuilderGenerator.kt:343 */
|
12245 19361 | }
|
19362 + | /* ServerBuilderGenerator.kt:426 */
|
12246 19363 | #[allow(missing_docs)] // documentation missing in model
|
19364 + | /* ServerBuilderGenerator.kt:428 */
|
12247 19365 | pub(crate) fn set_header_string(
|
12248 19366 | mut self,
|
12249 19367 | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
12250 19368 | ) -> Self {
|
19369 + | /* ServerBuilderGenerator.kt:429 */
|
12251 19370 | self.header_string = input.map(|v| v.into());
|
12252 19371 | self
|
19372 + | /* ServerBuilderGenerator.kt:428 */
|
12253 19373 | }
|
19374 + | /* ServerBuilderGenerator.kt:331 */
|
12254 19375 | #[allow(missing_docs)] // documentation missing in model
|
19376 + | /* ServerBuilderGenerator.kt:343 */
|
12255 19377 | pub fn header_byte(mut self, input: ::std::option::Option<i8>) -> Self {
|
12256 - | self.header_byte = input;
|
19378 + | /* ServerBuilderGenerator.kt:344 */
|
19379 + | self.header_byte =
|
19380 + | /* ServerBuilderGenerator.kt:376 */input
|
19381 + | /* ServerBuilderGenerator.kt:344 */;
|
12257 19382 | self
|
19383 + | /* ServerBuilderGenerator.kt:343 */
|
12258 19384 | }
|
19385 + | /* ServerBuilderGenerator.kt:426 */
|
12259 19386 | #[allow(missing_docs)] // documentation missing in model
|
19387 + | /* ServerBuilderGenerator.kt:428 */
|
12260 19388 | pub(crate) fn set_header_byte(
|
12261 19389 | mut self,
|
12262 19390 | input: Option<impl ::std::convert::Into<i8>>,
|
12263 19391 | ) -> Self {
|
19392 + | /* ServerBuilderGenerator.kt:429 */
|
12264 19393 | self.header_byte = input.map(|v| v.into());
|
12265 19394 | self
|
19395 + | /* ServerBuilderGenerator.kt:428 */
|
12266 19396 | }
|
19397 + | /* ServerBuilderGenerator.kt:331 */
|
12267 19398 | #[allow(missing_docs)] // documentation missing in model
|
19399 + | /* ServerBuilderGenerator.kt:343 */
|
12268 19400 | pub fn header_short(mut self, input: ::std::option::Option<i16>) -> Self {
|
12269 - | self.header_short = input;
|
19401 + | /* ServerBuilderGenerator.kt:344 */
|
19402 + | self.header_short =
|
19403 + | /* ServerBuilderGenerator.kt:376 */input
|
19404 + | /* ServerBuilderGenerator.kt:344 */;
|
12270 19405 | self
|
19406 + | /* ServerBuilderGenerator.kt:343 */
|
12271 19407 | }
|
19408 + | /* ServerBuilderGenerator.kt:426 */
|
12272 19409 | #[allow(missing_docs)] // documentation missing in model
|
19410 + | /* ServerBuilderGenerator.kt:428 */
|
12273 19411 | pub(crate) fn set_header_short(
|
12274 19412 | mut self,
|
12275 19413 | input: Option<impl ::std::convert::Into<i16>>,
|
12276 19414 | ) -> Self {
|
19415 + | /* ServerBuilderGenerator.kt:429 */
|
12277 19416 | self.header_short = input.map(|v| v.into());
|
12278 19417 | self
|
19418 + | /* ServerBuilderGenerator.kt:428 */
|
12279 19419 | }
|
19420 + | /* ServerBuilderGenerator.kt:331 */
|
12280 19421 | #[allow(missing_docs)] // documentation missing in model
|
19422 + | /* ServerBuilderGenerator.kt:343 */
|
12281 19423 | pub fn header_integer(mut self, input: ::std::option::Option<i32>) -> Self {
|
12282 - | self.header_integer = input;
|
19424 + | /* ServerBuilderGenerator.kt:344 */
|
19425 + | self.header_integer =
|
19426 + | /* ServerBuilderGenerator.kt:376 */input
|
19427 + | /* ServerBuilderGenerator.kt:344 */;
|
12283 19428 | self
|
19429 + | /* ServerBuilderGenerator.kt:343 */
|
12284 19430 | }
|
19431 + | /* ServerBuilderGenerator.kt:426 */
|
12285 19432 | #[allow(missing_docs)] // documentation missing in model
|
19433 + | /* ServerBuilderGenerator.kt:428 */
|
12286 19434 | pub(crate) fn set_header_integer(
|
12287 19435 | mut self,
|
12288 19436 | input: Option<impl ::std::convert::Into<i32>>,
|
12289 19437 | ) -> Self {
|
19438 + | /* ServerBuilderGenerator.kt:429 */
|
12290 19439 | self.header_integer = input.map(|v| v.into());
|
12291 19440 | self
|
19441 + | /* ServerBuilderGenerator.kt:428 */
|
12292 19442 | }
|
19443 + | /* ServerBuilderGenerator.kt:331 */
|
12293 19444 | #[allow(missing_docs)] // documentation missing in model
|
19445 + | /* ServerBuilderGenerator.kt:343 */
|
12294 19446 | pub fn header_long(mut self, input: ::std::option::Option<i64>) -> Self {
|
12295 - | self.header_long = input;
|
19447 + | /* ServerBuilderGenerator.kt:344 */
|
19448 + | self.header_long =
|
19449 + | /* ServerBuilderGenerator.kt:376 */input
|
19450 + | /* ServerBuilderGenerator.kt:344 */;
|
12296 19451 | self
|
19452 + | /* ServerBuilderGenerator.kt:343 */
|
12297 19453 | }
|
19454 + | /* ServerBuilderGenerator.kt:426 */
|
12298 19455 | #[allow(missing_docs)] // documentation missing in model
|
19456 + | /* ServerBuilderGenerator.kt:428 */
|
12299 19457 | pub(crate) fn set_header_long(
|
12300 19458 | mut self,
|
12301 19459 | input: Option<impl ::std::convert::Into<i64>>,
|
12302 19460 | ) -> Self {
|
19461 + | /* ServerBuilderGenerator.kt:429 */
|
12303 19462 | self.header_long = input.map(|v| v.into());
|
12304 19463 | self
|
19464 + | /* ServerBuilderGenerator.kt:428 */
|
12305 19465 | }
|
19466 + | /* ServerBuilderGenerator.kt:331 */
|
12306 19467 | #[allow(missing_docs)] // documentation missing in model
|
19468 + | /* ServerBuilderGenerator.kt:343 */
|
12307 19469 | pub fn header_float(mut self, input: ::std::option::Option<f32>) -> Self {
|
12308 - | self.header_float = input;
|
19470 + | /* ServerBuilderGenerator.kt:344 */
|
19471 + | self.header_float =
|
19472 + | /* ServerBuilderGenerator.kt:376 */input
|
19473 + | /* ServerBuilderGenerator.kt:344 */;
|
12309 19474 | self
|
19475 + | /* ServerBuilderGenerator.kt:343 */
|
12310 19476 | }
|
19477 + | /* ServerBuilderGenerator.kt:426 */
|
12311 19478 | #[allow(missing_docs)] // documentation missing in model
|
19479 + | /* ServerBuilderGenerator.kt:428 */
|
12312 19480 | pub(crate) fn set_header_float(
|
12313 19481 | mut self,
|
12314 19482 | input: Option<impl ::std::convert::Into<f32>>,
|
12315 19483 | ) -> Self {
|
19484 + | /* ServerBuilderGenerator.kt:429 */
|
12316 19485 | self.header_float = input.map(|v| v.into());
|
12317 19486 | self
|
19487 + | /* ServerBuilderGenerator.kt:428 */
|
12318 19488 | }
|
19489 + | /* ServerBuilderGenerator.kt:331 */
|
12319 19490 | #[allow(missing_docs)] // documentation missing in model
|
19491 + | /* ServerBuilderGenerator.kt:343 */
|
12320 19492 | pub fn header_double(mut self, input: ::std::option::Option<f64>) -> Self {
|
12321 - | self.header_double = input;
|
19493 + | /* ServerBuilderGenerator.kt:344 */
|
19494 + | self.header_double =
|
19495 + | /* ServerBuilderGenerator.kt:376 */input
|
19496 + | /* ServerBuilderGenerator.kt:344 */;
|
12322 19497 | self
|
19498 + | /* ServerBuilderGenerator.kt:343 */
|
12323 19499 | }
|
19500 + | /* ServerBuilderGenerator.kt:426 */
|
12324 19501 | #[allow(missing_docs)] // documentation missing in model
|
19502 + | /* ServerBuilderGenerator.kt:428 */
|
12325 19503 | pub(crate) fn set_header_double(
|
12326 19504 | mut self,
|
12327 19505 | input: Option<impl ::std::convert::Into<f64>>,
|
12328 19506 | ) -> Self {
|
19507 + | /* ServerBuilderGenerator.kt:429 */
|
12329 19508 | self.header_double = input.map(|v| v.into());
|
12330 19509 | self
|
19510 + | /* ServerBuilderGenerator.kt:428 */
|
12331 19511 | }
|
19512 + | /* ServerBuilderGenerator.kt:331 */
|
12332 19513 | #[allow(missing_docs)] // documentation missing in model
|
19514 + | /* ServerBuilderGenerator.kt:343 */
|
12333 19515 | pub fn header_true_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
12334 - | self.header_true_bool = input;
|
19516 + | /* ServerBuilderGenerator.kt:344 */
|
19517 + | self.header_true_bool =
|
19518 + | /* ServerBuilderGenerator.kt:376 */input
|
19519 + | /* ServerBuilderGenerator.kt:344 */;
|
12335 19520 | self
|
19521 + | /* ServerBuilderGenerator.kt:343 */
|
12336 19522 | }
|
19523 + | /* ServerBuilderGenerator.kt:426 */
|
12337 19524 | #[allow(missing_docs)] // documentation missing in model
|
19525 + | /* ServerBuilderGenerator.kt:428 */
|
12338 19526 | pub(crate) fn set_header_true_bool(
|
12339 19527 | mut self,
|
12340 19528 | input: Option<impl ::std::convert::Into<bool>>,
|
12341 19529 | ) -> Self {
|
19530 + | /* ServerBuilderGenerator.kt:429 */
|
12342 19531 | self.header_true_bool = input.map(|v| v.into());
|
12343 19532 | self
|
19533 + | /* ServerBuilderGenerator.kt:428 */
|
12344 19534 | }
|
19535 + | /* ServerBuilderGenerator.kt:331 */
|
12345 19536 | #[allow(missing_docs)] // documentation missing in model
|
19537 + | /* ServerBuilderGenerator.kt:343 */
|
12346 19538 | pub fn header_false_bool(mut self, input: ::std::option::Option<bool>) -> Self {
|
12347 - | self.header_false_bool = input;
|
19539 + | /* ServerBuilderGenerator.kt:344 */
|
19540 + | self.header_false_bool =
|
19541 + | /* ServerBuilderGenerator.kt:376 */input
|
19542 + | /* ServerBuilderGenerator.kt:344 */;
|
12348 19543 | self
|
19544 + | /* ServerBuilderGenerator.kt:343 */
|
12349 19545 | }
|
19546 + | /* ServerBuilderGenerator.kt:426 */
|
12350 19547 | #[allow(missing_docs)] // documentation missing in model
|
19548 + | /* ServerBuilderGenerator.kt:428 */
|
12351 19549 | pub(crate) fn set_header_false_bool(
|
12352 19550 | mut self,
|
12353 19551 | input: Option<impl ::std::convert::Into<bool>>,
|
12354 19552 | ) -> Self {
|
19553 + | /* ServerBuilderGenerator.kt:429 */
|
12355 19554 | self.header_false_bool = input.map(|v| v.into());
|
12356 19555 | self
|
19556 + | /* ServerBuilderGenerator.kt:428 */
|
12357 19557 | }
|
19558 + | /* ServerBuilderGenerator.kt:331 */
|
12358 19559 | #[allow(missing_docs)] // documentation missing in model
|
19560 + | /* ServerBuilderGenerator.kt:343 */
|
12359 19561 | pub fn header_string_list(
|
12360 19562 | mut self,
|
12361 19563 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
12362 19564 | ) -> Self {
|
12363 - | self.header_string_list = input;
|
19565 + | /* ServerBuilderGenerator.kt:344 */
|
19566 + | self.header_string_list =
|
19567 + | /* ServerBuilderGenerator.kt:376 */input
|
19568 + | /* ServerBuilderGenerator.kt:344 */;
|
12364 19569 | self
|
19570 + | /* ServerBuilderGenerator.kt:343 */
|
12365 19571 | }
|
19572 + | /* ServerBuilderGenerator.kt:426 */
|
12366 19573 | #[allow(missing_docs)] // documentation missing in model
|
19574 + | /* ServerBuilderGenerator.kt:428 */
|
12367 19575 | pub(crate) fn set_header_string_list(
|
12368 19576 | mut self,
|
12369 19577 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::std::string::String>>>,
|
12370 19578 | ) -> Self {
|
19579 + | /* ServerBuilderGenerator.kt:429 */
|
12371 19580 | self.header_string_list = input.map(|v| v.into());
|
12372 19581 | self
|
19582 + | /* ServerBuilderGenerator.kt:428 */
|
12373 19583 | }
|
19584 + | /* ServerBuilderGenerator.kt:331 */
|
12374 19585 | #[allow(missing_docs)] // documentation missing in model
|
19586 + | /* ServerBuilderGenerator.kt:343 */
|
12375 19587 | pub fn header_string_set(
|
12376 19588 | mut self,
|
12377 19589 | input: ::std::option::Option<crate::model::StringSet>,
|
12378 19590 | ) -> Self {
|
12379 - | self.header_string_set = input.map(crate::constrained::MaybeConstrained::Constrained);
|
19591 + | /* ServerBuilderGenerator.kt:344 */
|
19592 + | self.header_string_set =
|
19593 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
19594 + | /* ServerBuilderGenerator.kt:344 */;
|
12380 19595 | self
|
19596 + | /* ServerBuilderGenerator.kt:343 */
|
12381 19597 | }
|
19598 + | /* ServerBuilderGenerator.kt:426 */
|
12382 19599 | #[allow(missing_docs)] // documentation missing in model
|
19600 + | /* ServerBuilderGenerator.kt:428 */
|
12383 19601 | pub(crate) fn set_header_string_set(
|
12384 19602 | mut self,
|
12385 19603 | input: Option<
|
12386 19604 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
12387 19605 | >,
|
12388 19606 | ) -> Self {
|
19607 + | /* ServerBuilderGenerator.kt:429 */
|
12389 19608 | self.header_string_set = input.map(|v| v.into());
|
12390 19609 | self
|
19610 + | /* ServerBuilderGenerator.kt:428 */
|
12391 19611 | }
|
19612 + | /* ServerBuilderGenerator.kt:331 */
|
12392 19613 | #[allow(missing_docs)] // documentation missing in model
|
19614 + | /* ServerBuilderGenerator.kt:343 */
|
12393 19615 | pub fn header_integer_list(
|
12394 19616 | mut self,
|
12395 19617 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
12396 19618 | ) -> Self {
|
12397 - | self.header_integer_list = input;
|
19619 + | /* ServerBuilderGenerator.kt:344 */
|
19620 + | self.header_integer_list =
|
19621 + | /* ServerBuilderGenerator.kt:376 */input
|
19622 + | /* ServerBuilderGenerator.kt:344 */;
|
12398 19623 | self
|
19624 + | /* ServerBuilderGenerator.kt:343 */
|
12399 19625 | }
|
19626 + | /* ServerBuilderGenerator.kt:426 */
|
12400 19627 | #[allow(missing_docs)] // documentation missing in model
|
19628 + | /* ServerBuilderGenerator.kt:428 */
|
12401 19629 | pub(crate) fn set_header_integer_list(
|
12402 19630 | mut self,
|
12403 19631 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
12404 19632 | ) -> Self {
|
19633 + | /* ServerBuilderGenerator.kt:429 */
|
12405 19634 | self.header_integer_list = input.map(|v| v.into());
|
12406 19635 | self
|
19636 + | /* ServerBuilderGenerator.kt:428 */
|
12407 19637 | }
|
19638 + | /* ServerBuilderGenerator.kt:331 */
|
12408 19639 | #[allow(missing_docs)] // documentation missing in model
|
19640 + | /* ServerBuilderGenerator.kt:343 */
|
12409 19641 | pub fn header_boolean_list(
|
12410 19642 | mut self,
|
12411 19643 | input: ::std::option::Option<::std::vec::Vec<bool>>,
|
12412 19644 | ) -> Self {
|
12413 - | self.header_boolean_list = input;
|
19645 + | /* ServerBuilderGenerator.kt:344 */
|
19646 + | self.header_boolean_list =
|
19647 + | /* ServerBuilderGenerator.kt:376 */input
|
19648 + | /* ServerBuilderGenerator.kt:344 */;
|
12414 19649 | self
|
19650 + | /* ServerBuilderGenerator.kt:343 */
|
12415 19651 | }
|
19652 + | /* ServerBuilderGenerator.kt:426 */
|
12416 19653 | #[allow(missing_docs)] // documentation missing in model
|
19654 + | /* ServerBuilderGenerator.kt:428 */
|
12417 19655 | pub(crate) fn set_header_boolean_list(
|
12418 19656 | mut self,
|
12419 19657 | input: Option<impl ::std::convert::Into<::std::vec::Vec<bool>>>,
|
12420 19658 | ) -> Self {
|
19659 + | /* ServerBuilderGenerator.kt:429 */
|
12421 19660 | self.header_boolean_list = input.map(|v| v.into());
|
12422 19661 | self
|
19662 + | /* ServerBuilderGenerator.kt:428 */
|
12423 19663 | }
|
19664 + | /* ServerBuilderGenerator.kt:331 */
|
12424 19665 | #[allow(missing_docs)] // documentation missing in model
|
19666 + | /* ServerBuilderGenerator.kt:343 */
|
12425 19667 | pub fn header_timestamp_list(
|
12426 19668 | mut self,
|
12427 19669 | input: ::std::option::Option<::std::vec::Vec<::aws_smithy_types::DateTime>>,
|
12428 19670 | ) -> Self {
|
12429 - | self.header_timestamp_list = input;
|
19671 + | /* ServerBuilderGenerator.kt:344 */
|
19672 + | self.header_timestamp_list =
|
19673 + | /* ServerBuilderGenerator.kt:376 */input
|
19674 + | /* ServerBuilderGenerator.kt:344 */;
|
12430 19675 | self
|
19676 + | /* ServerBuilderGenerator.kt:343 */
|
12431 19677 | }
|
19678 + | /* ServerBuilderGenerator.kt:426 */
|
12432 19679 | #[allow(missing_docs)] // documentation missing in model
|
19680 + | /* ServerBuilderGenerator.kt:428 */
|
12433 19681 | pub(crate) fn set_header_timestamp_list(
|
12434 19682 | mut self,
|
12435 19683 | input: Option<impl ::std::convert::Into<::std::vec::Vec<::aws_smithy_types::DateTime>>>,
|
12436 19684 | ) -> Self {
|
19685 + | /* ServerBuilderGenerator.kt:429 */
|
12437 19686 | self.header_timestamp_list = input.map(|v| v.into());
|
12438 19687 | self
|
19688 + | /* ServerBuilderGenerator.kt:428 */
|
12439 19689 | }
|
19690 + | /* ServerBuilderGenerator.kt:331 */
|
12440 19691 | #[allow(missing_docs)] // documentation missing in model
|
19692 + | /* ServerBuilderGenerator.kt:343 */
|
12441 19693 | pub fn header_enum(mut self, input: ::std::option::Option<crate::model::FooEnum>) -> Self {
|
12442 - | self.header_enum = input.map(crate::constrained::MaybeConstrained::Constrained);
|
19694 + | /* ServerBuilderGenerator.kt:344 */
|
19695 + | self.header_enum =
|
19696 + | /* ServerBuilderGenerator.kt:370 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
19697 + | /* ServerBuilderGenerator.kt:344 */;
|
12443 19698 | self
|
19699 + | /* ServerBuilderGenerator.kt:343 */
|
12444 19700 | }
|
19701 + | /* ServerBuilderGenerator.kt:426 */
|
12445 19702 | #[allow(missing_docs)] // documentation missing in model
|
19703 + | /* ServerBuilderGenerator.kt:428 */
|
12446 19704 | pub(crate) fn set_header_enum(
|
12447 19705 | mut self,
|
12448 19706 | input: Option<
|
12449 19707 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::FooEnum>>,
|
12450 19708 | >,
|
12451 19709 | ) -> Self {
|
19710 + | /* ServerBuilderGenerator.kt:429 */
|
12452 19711 | self.header_enum = input.map(|v| v.into());
|
12453 19712 | self
|
19713 + | /* ServerBuilderGenerator.kt:428 */
|
12454 19714 | }
|
19715 + | /* ServerBuilderGenerator.kt:331 */
|
12455 19716 | #[allow(missing_docs)] // documentation missing in model
|
19717 + | /* ServerBuilderGenerator.kt:343 */
|
12456 19718 | pub fn header_enum_list(
|
12457 19719 | mut self,
|
12458 19720 | input: ::std::option::Option<::std::vec::Vec<crate::model::FooEnum>>,
|
12459 19721 | ) -> Self {
|
19722 + | /* ServerBuilderGenerator.kt:344 */
|
12460 19723 | self.header_enum_list =
|
12461 - | input.map(|v| crate::constrained::MaybeConstrained::Constrained((v).into()));
|
19724 + | /* ServerBuilderGenerator.kt:363 */input.map(|v|
|
19725 + | /* ServerBuilderGenerator.kt:365 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
19726 + | /* ServerBuilderGenerator.kt:363 */)
|
19727 + | /* ServerBuilderGenerator.kt:344 */;
|
12462 19728 | self
|
19729 + | /* ServerBuilderGenerator.kt:343 */
|
12463 19730 | }
|
19731 + | /* ServerBuilderGenerator.kt:426 */
|
12464 19732 | #[allow(missing_docs)] // documentation missing in model
|
19733 + | /* ServerBuilderGenerator.kt:428 */
|
12465 19734 | pub(crate) fn set_header_enum_list(
|
12466 19735 | mut self,
|
12467 19736 | input: Option<
|
12468 19737 | impl ::std::convert::Into<
|
12469 19738 | crate::constrained::MaybeConstrained<
|
12470 19739 | crate::constrained::foo_enum_list_constrained::FooEnumListConstrained,
|
12471 19740 | >,
|
12472 19741 | >,
|
12473 19742 | >,
|
12474 19743 | ) -> Self {
|
19744 + | /* ServerBuilderGenerator.kt:429 */
|
12475 19745 | self.header_enum_list = input.map(|v| v.into());
|
12476 19746 | self
|
19747 + | /* ServerBuilderGenerator.kt:428 */
|
12477 19748 | }
|
19749 + | /* ServerBuilderGenerator.kt:331 */
|
12478 19750 | #[allow(missing_docs)] // documentation missing in model
|
19751 + | /* ServerBuilderGenerator.kt:343 */
|
12479 19752 | pub fn header_integer_enum(mut self, input: ::std::option::Option<i32>) -> Self {
|
12480 - | self.header_integer_enum = input;
|
19753 + | /* ServerBuilderGenerator.kt:344 */
|
19754 + | self.header_integer_enum =
|
19755 + | /* ServerBuilderGenerator.kt:376 */input
|
19756 + | /* ServerBuilderGenerator.kt:344 */;
|
12481 19757 | self
|
19758 + | /* ServerBuilderGenerator.kt:343 */
|
12482 19759 | }
|
19760 + | /* ServerBuilderGenerator.kt:426 */
|
12483 19761 | #[allow(missing_docs)] // documentation missing in model
|
19762 + | /* ServerBuilderGenerator.kt:428 */
|
12484 19763 | pub(crate) fn set_header_integer_enum(
|
12485 19764 | mut self,
|
12486 19765 | input: Option<impl ::std::convert::Into<i32>>,
|
12487 19766 | ) -> Self {
|
19767 + | /* ServerBuilderGenerator.kt:429 */
|
12488 19768 | self.header_integer_enum = input.map(|v| v.into());
|
12489 19769 | self
|
19770 + | /* ServerBuilderGenerator.kt:428 */
|
12490 19771 | }
|
19772 + | /* ServerBuilderGenerator.kt:331 */
|
12491 19773 | #[allow(missing_docs)] // documentation missing in model
|
19774 + | /* ServerBuilderGenerator.kt:343 */
|
12492 19775 | pub fn header_integer_enum_list(
|
12493 19776 | mut self,
|
12494 19777 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
12495 19778 | ) -> Self {
|
12496 - | self.header_integer_enum_list = input;
|
19779 + | /* ServerBuilderGenerator.kt:344 */
|
19780 + | self.header_integer_enum_list =
|
19781 + | /* ServerBuilderGenerator.kt:376 */input
|
19782 + | /* ServerBuilderGenerator.kt:344 */;
|
12497 19783 | self
|
19784 + | /* ServerBuilderGenerator.kt:343 */
|
12498 19785 | }
|
19786 + | /* ServerBuilderGenerator.kt:426 */
|
12499 19787 | #[allow(missing_docs)] // documentation missing in model
|
19788 + | /* ServerBuilderGenerator.kt:428 */
|
12500 19789 | pub(crate) fn set_header_integer_enum_list(
|
12501 19790 | mut self,
|
12502 19791 | input: Option<impl ::std::convert::Into<::std::vec::Vec<i32>>>,
|
12503 19792 | ) -> Self {
|
19793 + | /* ServerBuilderGenerator.kt:429 */
|
12504 19794 | self.header_integer_enum_list = input.map(|v| v.into());
|
12505 19795 | self
|
19796 + | /* ServerBuilderGenerator.kt:428 */
|
12506 19797 | }
|
12507 - | /// Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
12508 - | ///
|
19798 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput).
|
19799 + | /// /* ServerBuilderGenerator.kt:260 */
|
12509 19800 | /// The builder fails to construct a [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput) if a [`ConstraintViolation`] occurs.
|
12510 19801 | ///
|
12511 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
19802 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
19803 + | /* ServerBuilderGenerator.kt:271 */
|
12512 19804 | pub fn build(
|
12513 19805 | self,
|
12514 19806 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
12515 19807 | self.build_enforcing_all_constraints()
|
12516 19808 | }
|
19809 + | /* ServerBuilderGenerator.kt:283 */
|
12517 19810 | fn build_enforcing_all_constraints(
|
12518 19811 | self,
|
12519 19812 | ) -> Result<crate::input::InputAndOutputWithHeadersInput, ConstraintViolation> {
|
12520 - | Ok(crate::input::InputAndOutputWithHeadersInput {
|
19813 + | /* ServerBuilderGenerator.kt:287 */
|
19814 + | Ok(
|
19815 + | /* ServerBuilderGenerator.kt:542 */
|
19816 + | crate::input::InputAndOutputWithHeadersInput {
|
19817 + | /* ServerBuilderGenerator.kt:546 */
|
12521 19818 | header_string: self.header_string,
|
19819 + | /* ServerBuilderGenerator.kt:546 */
|
12522 19820 | header_byte: self.header_byte,
|
19821 + | /* ServerBuilderGenerator.kt:546 */
|
12523 19822 | header_short: self.header_short,
|
19823 + | /* ServerBuilderGenerator.kt:546 */
|
12524 19824 | header_integer: self.header_integer,
|
19825 + | /* ServerBuilderGenerator.kt:546 */
|
12525 19826 | header_long: self.header_long,
|
19827 + | /* ServerBuilderGenerator.kt:546 */
|
12526 19828 | header_float: self.header_float,
|
19829 + | /* ServerBuilderGenerator.kt:546 */
|
12527 19830 | header_double: self.header_double,
|
19831 + | /* ServerBuilderGenerator.kt:546 */
|
12528 19832 | header_true_bool: self.header_true_bool,
|
19833 + | /* ServerBuilderGenerator.kt:546 */
|
12529 19834 | header_false_bool: self.header_false_bool,
|
19835 + | /* ServerBuilderGenerator.kt:546 */
|
12530 19836 | header_string_list: self.header_string_list,
|
19837 + | /* ServerBuilderGenerator.kt:546 */
|
12531 19838 | header_string_set: self
|
12532 19839 | .header_string_set
|
19840 + | /* ServerBuilderGenerator.kt:602 */
|
12533 19841 | .map(|v| match v {
|
12534 19842 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12535 19843 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12536 19844 | })
|
19845 + | /* ServerBuilderGenerator.kt:614 */
|
12537 19846 | .map(|res| res.map_err(ConstraintViolation::HeaderStringSet))
|
12538 19847 | .transpose()?,
|
19848 + | /* ServerBuilderGenerator.kt:546 */
|
12539 19849 | header_integer_list: self.header_integer_list,
|
19850 + | /* ServerBuilderGenerator.kt:546 */
|
12540 19851 | header_boolean_list: self.header_boolean_list,
|
19852 + | /* ServerBuilderGenerator.kt:546 */
|
12541 19853 | header_timestamp_list: self.header_timestamp_list,
|
19854 + | /* ServerBuilderGenerator.kt:546 */
|
12542 19855 | header_enum: self
|
12543 19856 | .header_enum
|
19857 + | /* ServerBuilderGenerator.kt:602 */
|
12544 19858 | .map(|v| match v {
|
12545 19859 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12546 19860 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12547 19861 | })
|
19862 + | /* ServerBuilderGenerator.kt:614 */
|
12548 19863 | .map(|res| res.map_err(ConstraintViolation::HeaderEnum))
|
12549 19864 | .transpose()?,
|
19865 + | /* ServerBuilderGenerator.kt:546 */
|
12550 19866 | header_enum_list: self
|
12551 19867 | .header_enum_list
|
19868 + | /* ServerBuilderGenerator.kt:602 */
|
12552 19869 | .map(|v| match v {
|
12553 19870 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
12554 19871 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
12555 19872 | })
|
19873 + | /* ServerBuilderGenerator.kt:614 */
|
12556 19874 | .map(|res| {
|
12557 19875 | res.map(|v| v.into())
|
12558 19876 | .map_err(ConstraintViolation::HeaderEnumList)
|
12559 19877 | })
|
12560 19878 | .transpose()?,
|
19879 + | /* ServerBuilderGenerator.kt:546 */
|
12561 19880 | header_integer_enum: self.header_integer_enum,
|
19881 + | /* ServerBuilderGenerator.kt:546 */
|
12562 19882 | header_integer_enum_list: self.header_integer_enum_list,
|
12563 - | })
|
19883 + | /* ServerBuilderGenerator.kt:542 */
|
19884 + | }, /* ServerBuilderGenerator.kt:287 */
|
19885 + | )
|
19886 + | /* ServerBuilderGenerator.kt:283 */
|
12564 19887 | }
|
19888 + | /* ServerBuilderGenerator.kt:215 */
|
12565 19889 | }
|
19890 + |
|
19891 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12566 19892 | }
|
12567 - | /// See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19893 + | /// /* ServerBuilderGenerator.kt:171 */See [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
12568 19894 | pub mod unit_input_and_output_input {
|
12569 19895 |
|
19896 + | /* ServerBuilderGenerator.kt:461 */
|
12570 19897 | impl ::std::convert::From<Builder> for crate::input::UnitInputAndOutputInput {
|
12571 19898 | fn from(builder: Builder) -> Self {
|
12572 19899 | builder.build()
|
12573 19900 | }
|
12574 19901 | }
|
12575 - | /// A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19902 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19903 + | /* RustType.kt:534 */
|
12576 19904 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12577 - | pub struct Builder {}
|
19905 + | /* ServerBuilderGenerator.kt:211 */
|
19906 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19907 + | /* ServerBuilderGenerator.kt:215 */
|
12578 19908 | impl Builder {
|
12579 - | /// Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19909 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput).
|
19910 + | /* ServerBuilderGenerator.kt:271 */
|
12580 19911 | pub fn build(self) -> crate::input::UnitInputAndOutputInput {
|
12581 19912 | self.build_enforcing_all_constraints()
|
12582 19913 | }
|
19914 + | /* ServerBuilderGenerator.kt:283 */
|
12583 19915 | fn build_enforcing_all_constraints(self) -> crate::input::UnitInputAndOutputInput {
|
12584 - | crate::input::UnitInputAndOutputInput {}
|
19916 + | /* ServerBuilderGenerator.kt:542 */
|
19917 + | crate::input::UnitInputAndOutputInput {
|
19918 + | /* ServerBuilderGenerator.kt:542 */}
|
19919 + | /* ServerBuilderGenerator.kt:283 */
|
12585 19920 | }
|
19921 + | /* ServerBuilderGenerator.kt:215 */
|
12586 19922 | }
|
19923 + |
|
19924 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12587 19925 | }
|
12588 - | /// See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19926 + | /// /* ServerBuilderGenerator.kt:171 */See [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
12589 19927 | pub mod empty_input_and_empty_output_input {
|
12590 19928 |
|
19929 + | /* ServerBuilderGenerator.kt:461 */
|
12591 19930 | impl ::std::convert::From<Builder> for crate::input::EmptyInputAndEmptyOutputInput {
|
12592 19931 | fn from(builder: Builder) -> Self {
|
12593 19932 | builder.build()
|
12594 19933 | }
|
12595 19934 | }
|
12596 - | /// A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19935 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19936 + | /* RustType.kt:534 */
|
12597 19937 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12598 - | pub struct Builder {}
|
19938 + | /* ServerBuilderGenerator.kt:211 */
|
19939 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19940 + | /* ServerBuilderGenerator.kt:215 */
|
12599 19941 | impl Builder {
|
12600 - | /// Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19942 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput).
|
19943 + | /* ServerBuilderGenerator.kt:271 */
|
12601 19944 | pub fn build(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
12602 19945 | self.build_enforcing_all_constraints()
|
12603 19946 | }
|
19947 + | /* ServerBuilderGenerator.kt:283 */
|
12604 19948 | fn build_enforcing_all_constraints(self) -> crate::input::EmptyInputAndEmptyOutputInput {
|
12605 - | crate::input::EmptyInputAndEmptyOutputInput {}
|
19949 + | /* ServerBuilderGenerator.kt:542 */
|
19950 + | crate::input::EmptyInputAndEmptyOutputInput {
|
19951 + | /* ServerBuilderGenerator.kt:542 */}
|
19952 + | /* ServerBuilderGenerator.kt:283 */
|
12606 19953 | }
|
19954 + | /* ServerBuilderGenerator.kt:215 */
|
12607 19955 | }
|
19956 + |
|
19957 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12608 19958 | }
|
12609 - | /// See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19959 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
12610 19960 | pub mod no_input_and_output_input {
|
12611 19961 |
|
19962 + | /* ServerBuilderGenerator.kt:461 */
|
12612 19963 | impl ::std::convert::From<Builder> for crate::input::NoInputAndOutputInput {
|
12613 19964 | fn from(builder: Builder) -> Self {
|
12614 19965 | builder.build()
|
12615 19966 | }
|
12616 19967 | }
|
12617 - | /// A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19968 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19969 + | /* RustType.kt:534 */
|
12618 19970 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12619 - | pub struct Builder {}
|
19971 + | /* ServerBuilderGenerator.kt:211 */
|
19972 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
19973 + | /* ServerBuilderGenerator.kt:215 */
|
12620 19974 | impl Builder {
|
12621 - | /// Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19975 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput).
|
19976 + | /* ServerBuilderGenerator.kt:271 */
|
12622 19977 | pub fn build(self) -> crate::input::NoInputAndOutputInput {
|
12623 19978 | self.build_enforcing_all_constraints()
|
12624 19979 | }
|
19980 + | /* ServerBuilderGenerator.kt:283 */
|
12625 19981 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndOutputInput {
|
12626 - | crate::input::NoInputAndOutputInput {}
|
19982 + | /* ServerBuilderGenerator.kt:542 */
|
19983 + | crate::input::NoInputAndOutputInput {
|
19984 + | /* ServerBuilderGenerator.kt:542 */}
|
19985 + | /* ServerBuilderGenerator.kt:283 */
|
12627 19986 | }
|
19987 + | /* ServerBuilderGenerator.kt:215 */
|
12628 19988 | }
|
19989 + |
|
19990 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12629 19991 | }
|
12630 - | /// See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
19992 + | /// /* ServerBuilderGenerator.kt:171 */See [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
12631 19993 | pub mod no_input_and_no_output_input {
|
12632 19994 |
|
19995 + | /* ServerBuilderGenerator.kt:461 */
|
12633 19996 | impl ::std::convert::From<Builder> for crate::input::NoInputAndNoOutputInput {
|
12634 19997 | fn from(builder: Builder) -> Self {
|
12635 19998 | builder.build()
|
12636 19999 | }
|
12637 20000 | }
|
12638 - | /// A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20001 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20002 + | /* RustType.kt:534 */
|
12639 20003 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
12640 - | pub struct Builder {}
|
20004 + | /* ServerBuilderGenerator.kt:211 */
|
20005 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
20006 + | /* ServerBuilderGenerator.kt:215 */
|
12641 20007 | impl Builder {
|
12642 - | /// Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20008 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput).
|
20009 + | /* ServerBuilderGenerator.kt:271 */
|
12643 20010 | pub fn build(self) -> crate::input::NoInputAndNoOutputInput {
|
12644 20011 | self.build_enforcing_all_constraints()
|
12645 20012 | }
|
20013 + | /* ServerBuilderGenerator.kt:283 */
|
12646 20014 | fn build_enforcing_all_constraints(self) -> crate::input::NoInputAndNoOutputInput {
|
12647 - | crate::input::NoInputAndNoOutputInput {}
|
20015 + | /* ServerBuilderGenerator.kt:542 */
|
20016 + | crate::input::NoInputAndNoOutputInput {
|
20017 + | /* ServerBuilderGenerator.kt:542 */}
|
20018 + | /* ServerBuilderGenerator.kt:283 */
|
12648 20019 | }
|
20020 + | /* ServerBuilderGenerator.kt:215 */
|
12649 20021 | }
|
20022 + |
|
20023 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
12650 20024 | }
|