1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[derive(::std::fmt::Debug)]
|
4 - | pub struct EventStreamsOperationInput {
|
6 + | pub /* StructureGenerator.kt:201 */ struct EventStreamsOperationInput {
|
7 + | /* StructureGenerator.kt:231 */
|
5 8 | #[allow(missing_docs)] // documentation missing in model
|
6 9 | pub events:
|
7 10 | ::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>,
|
11 + | /* StructureGenerator.kt:201 */
|
8 12 | }
|
13 + | /* StructureGenerator.kt:135 */
|
9 14 | impl EventStreamsOperationInput {
|
15 + | /* StructureGenerator.kt:231 */
|
10 16 | #[allow(missing_docs)] // documentation missing in model
|
17 + | /* StructureGenerator.kt:166 */
|
11 18 | pub fn events(
|
12 19 | &self,
|
13 20 | ) -> &::aws_smithy_http::event_stream::Receiver<crate::model::Event, crate::error::EventError>
|
14 21 | {
|
22 + | /* StructureGenerator.kt:172 */
|
15 23 | &self.events
|
24 + | /* StructureGenerator.kt:166 */
|
16 25 | }
|
26 + | /* StructureGenerator.kt:135 */
|
17 27 | }
|
28 + | /* ServerCodegenVisitor.kt:345 */
|
18 29 | impl EventStreamsOperationInput {
|
19 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
30 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
31 + | /* ServerBuilderGenerator.kt:295 */
|
20 32 | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
33 + | /* ServerBuilderGenerator.kt:296 */
|
21 34 | crate::input::event_streams_operation_input::Builder::default()
|
35 + | /* ServerBuilderGenerator.kt:295 */
|
22 36 | }
|
37 + | /* ServerCodegenVisitor.kt:345 */
|
23 38 | }
|
39 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
24 40 | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
25 41 | type Unconstrained = crate::input::event_streams_operation_input::Builder;
|
26 42 | }
|
27 43 |
|
44 + | /* StructureGenerator.kt:197 */
|
28 45 | #[allow(missing_docs)] // documentation missing in model
|
46 + | /* RustType.kt:516 */
|
29 47 | #[derive(::std::fmt::Debug)]
|
30 - | pub struct StreamingBlobOperationInput {
|
48 + | pub /* StructureGenerator.kt:201 */ struct StreamingBlobOperationInput {
|
49 + | /* StructureGenerator.kt:231 */
|
31 50 | #[allow(missing_docs)] // documentation missing in model
|
32 51 | pub streaming_blob: ::aws_smithy_types::byte_stream::ByteStream,
|
52 + | /* StructureGenerator.kt:201 */
|
33 53 | }
|
54 + | /* StructureGenerator.kt:135 */
|
34 55 | impl StreamingBlobOperationInput {
|
56 + | /* StructureGenerator.kt:231 */
|
35 57 | #[allow(missing_docs)] // documentation missing in model
|
58 + | /* StructureGenerator.kt:166 */
|
36 59 | pub fn streaming_blob(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
60 + | /* StructureGenerator.kt:172 */
|
37 61 | &self.streaming_blob
|
62 + | /* StructureGenerator.kt:166 */
|
38 63 | }
|
64 + | /* StructureGenerator.kt:135 */
|
39 65 | }
|
66 + | /* ServerCodegenVisitor.kt:345 */
|
40 67 | impl StreamingBlobOperationInput {
|
41 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
68 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
69 + | /* ServerBuilderGenerator.kt:295 */
|
42 70 | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
71 + | /* ServerBuilderGenerator.kt:296 */
|
43 72 | crate::input::streaming_blob_operation_input::Builder::default()
|
73 + | /* ServerBuilderGenerator.kt:295 */
|
44 74 | }
|
75 + | /* ServerCodegenVisitor.kt:345 */
|
45 76 | }
|
77 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
46 78 | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
47 79 | type Unconstrained = crate::input::streaming_blob_operation_input::Builder;
|
48 80 | }
|
49 81 |
|
82 + | /* StructureGenerator.kt:197 */
|
50 83 | #[allow(missing_docs)] // documentation missing in model
|
84 + | /* RustType.kt:516 */
|
51 85 | #[derive(
|
52 86 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
53 87 | )]
|
54 - | pub struct NonStreamingBlobOperationInput {
|
88 + | pub /* StructureGenerator.kt:201 */ struct NonStreamingBlobOperationInput {
|
89 + | /* StructureGenerator.kt:231 */
|
55 90 | #[allow(missing_docs)] // documentation missing in model
|
56 91 | pub non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
92 + | /* StructureGenerator.kt:201 */
|
57 93 | }
|
94 + | /* StructureGenerator.kt:135 */
|
58 95 | impl NonStreamingBlobOperationInput {
|
96 + | /* StructureGenerator.kt:231 */
|
59 97 | #[allow(missing_docs)] // documentation missing in model
|
98 + | /* StructureGenerator.kt:166 */
|
60 99 | pub fn non_streaming_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
100 + | /* StructureGenerator.kt:170 */
|
61 101 | self.non_streaming_blob.as_ref()
|
102 + | /* StructureGenerator.kt:166 */
|
62 103 | }
|
104 + | /* StructureGenerator.kt:135 */
|
63 105 | }
|
106 + | /* ServerCodegenVisitor.kt:345 */
|
64 107 | impl NonStreamingBlobOperationInput {
|
65 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
108 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
109 + | /* ServerBuilderGenerator.kt:295 */
|
66 110 | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
111 + | /* ServerBuilderGenerator.kt:296 */
|
67 112 | crate::input::non_streaming_blob_operation_input::Builder::default()
|
113 + | /* ServerBuilderGenerator.kt:295 */
|
68 114 | }
|
115 + | /* ServerCodegenVisitor.kt:345 */
|
69 116 | }
|
117 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
70 118 | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
71 119 | type Unconstrained = crate::input::non_streaming_blob_operation_input::Builder;
|
72 120 | }
|
73 121 |
|
122 + | /* StructureGenerator.kt:197 */
|
74 123 | #[allow(missing_docs)] // documentation missing in model
|
124 + | /* RustType.kt:516 */
|
75 125 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
76 - | pub struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
126 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfEnumStringOperationInput {
|
127 + | /* StructureGenerator.kt:231 */
|
77 128 | #[allow(missing_docs)] // documentation missing in model
|
78 129 | pub map_of_enum_string: ::std::option::Option<
|
79 130 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
80 131 | >,
|
132 + | /* StructureGenerator.kt:201 */
|
81 133 | }
|
134 + | /* StructureGenerator.kt:135 */
|
82 135 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
136 + | /* StructureGenerator.kt:231 */
|
83 137 | #[allow(missing_docs)] // documentation missing in model
|
138 + | /* StructureGenerator.kt:166 */
|
84 139 | pub fn map_of_enum_string(
|
85 140 | &self,
|
86 141 | ) -> ::std::option::Option<
|
87 142 | &::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
88 143 | > {
|
144 + | /* StructureGenerator.kt:170 */
|
89 145 | self.map_of_enum_string.as_ref()
|
146 + | /* StructureGenerator.kt:166 */
|
90 147 | }
|
148 + | /* StructureGenerator.kt:135 */
|
91 149 | }
|
150 + | /* ServerCodegenVisitor.kt:345 */
|
92 151 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
93 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
152 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
153 + | /* ServerBuilderGenerator.kt:295 */
|
94 154 | pub fn builder(
|
95 155 | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
156 + | /* ServerBuilderGenerator.kt:296 */
|
96 157 | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
158 + | /* ServerBuilderGenerator.kt:295 */
|
97 159 | }
|
160 + | /* ServerCodegenVisitor.kt:345 */
|
98 161 | }
|
162 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
99 163 | impl crate::constrained::Constrained
|
100 164 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
101 165 | {
|
102 166 | type Unconstrained =
|
103 167 | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder;
|
104 168 | }
|
105 169 |
|
170 + | /* StructureGenerator.kt:197 */
|
106 171 | #[allow(missing_docs)] // documentation missing in model
|
172 + | /* RustType.kt:516 */
|
107 173 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
108 - | pub struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
174 + | pub /* StructureGenerator.kt:201 */ struct HttpPrefixHeadersTargetingLengthMapOperationInput {
|
175 + | /* StructureGenerator.kt:231 */
|
109 176 | #[allow(missing_docs)] // documentation missing in model
|
110 177 | pub length_map: ::std::option::Option<crate::model::ConBMap>,
|
178 + | /* StructureGenerator.kt:201 */
|
111 179 | }
|
180 + | /* StructureGenerator.kt:135 */
|
112 181 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
182 + | /* StructureGenerator.kt:231 */
|
113 183 | #[allow(missing_docs)] // documentation missing in model
|
184 + | /* StructureGenerator.kt:166 */
|
114 185 | pub fn length_map(&self) -> ::std::option::Option<&crate::model::ConBMap> {
|
186 + | /* StructureGenerator.kt:170 */
|
115 187 | self.length_map.as_ref()
|
188 + | /* StructureGenerator.kt:166 */
|
116 189 | }
|
190 + | /* StructureGenerator.kt:135 */
|
117 191 | }
|
192 + | /* ServerCodegenVisitor.kt:345 */
|
118 193 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
119 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
194 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
195 + | /* ServerBuilderGenerator.kt:295 */
|
120 196 | pub fn builder(
|
121 197 | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
198 + | /* ServerBuilderGenerator.kt:296 */
|
122 199 | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
200 + | /* ServerBuilderGenerator.kt:295 */
|
123 201 | }
|
202 + | /* ServerCodegenVisitor.kt:345 */
|
124 203 | }
|
204 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
125 205 | impl crate::constrained::Constrained
|
126 206 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
127 207 | {
|
128 208 | type Unconstrained =
|
129 209 | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder;
|
130 210 | }
|
131 211 |
|
212 + | /* StructureGenerator.kt:197 */
|
132 213 | #[allow(missing_docs)] // documentation missing in model
|
214 + | /* RustType.kt:516 */
|
133 215 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
134 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
216 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
217 + | {
|
218 + | /* StructureGenerator.kt:231 */
|
135 219 | #[allow(missing_docs)] // documentation missing in model
|
136 220 | pub map_of_length_pattern_string: ::std::option::Option<
|
137 221 | ::std::collections::HashMap<
|
138 222 | crate::model::LengthPatternString,
|
139 223 | ::std::vec::Vec<crate::model::LengthPatternString>,
|
140 224 | >,
|
141 225 | >,
|
226 + | /* StructureGenerator.kt:201 */
|
142 227 | }
|
228 + | /* StructureGenerator.kt:135 */
|
143 229 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
230 + | /* StructureGenerator.kt:231 */
|
144 231 | #[allow(missing_docs)] // documentation missing in model
|
232 + | /* StructureGenerator.kt:166 */
|
145 233 | pub fn map_of_length_pattern_string(
|
146 234 | &self,
|
147 235 | ) -> ::std::option::Option<
|
148 236 | &::std::collections::HashMap<
|
149 237 | crate::model::LengthPatternString,
|
150 238 | ::std::vec::Vec<crate::model::LengthPatternString>,
|
151 239 | >,
|
152 240 | > {
|
241 + | /* StructureGenerator.kt:170 */
|
153 242 | self.map_of_length_pattern_string.as_ref()
|
243 + | /* StructureGenerator.kt:166 */
|
154 244 | }
|
245 + | /* StructureGenerator.kt:135 */
|
155 246 | }
|
247 + | /* ServerCodegenVisitor.kt:345 */
|
156 248 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
157 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
249 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
250 + | /* ServerBuilderGenerator.kt:295 */
|
158 251 | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
252 + | /* ServerBuilderGenerator.kt:296 */
|
159 253 | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
254 + | /* ServerBuilderGenerator.kt:295 */
|
160 255 | }
|
256 + | /* ServerCodegenVisitor.kt:345 */
|
161 257 | }
|
258 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
162 259 | impl crate::constrained::Constrained
|
163 260 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
164 261 | {
|
165 262 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder;
|
166 263 | }
|
167 264 |
|
265 + | /* StructureGenerator.kt:197 */
|
168 266 | #[allow(missing_docs)] // documentation missing in model
|
267 + | /* RustType.kt:516 */
|
169 268 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
170 - | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
269 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
270 + | {
|
271 + | /* StructureGenerator.kt:231 */
|
171 272 | #[allow(missing_docs)] // documentation missing in model
|
172 273 | pub map_of_length_pattern_string: ::std::option::Option<
|
173 274 | ::std::collections::HashMap<
|
174 275 | crate::model::LengthPatternString,
|
175 276 | crate::model::LengthPatternString,
|
176 277 | >,
|
177 278 | >,
|
279 + | /* StructureGenerator.kt:201 */
|
178 280 | }
|
281 + | /* StructureGenerator.kt:135 */
|
179 282 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
283 + | /* StructureGenerator.kt:231 */
|
180 284 | #[allow(missing_docs)] // documentation missing in model
|
285 + | /* StructureGenerator.kt:166 */
|
181 286 | pub fn map_of_length_pattern_string(
|
182 287 | &self,
|
183 288 | ) -> ::std::option::Option<
|
184 289 | &::std::collections::HashMap<
|
185 290 | crate::model::LengthPatternString,
|
186 291 | crate::model::LengthPatternString,
|
187 292 | >,
|
188 293 | > {
|
294 + | /* StructureGenerator.kt:170 */
|
189 295 | self.map_of_length_pattern_string.as_ref()
|
296 + | /* StructureGenerator.kt:166 */
|
190 297 | }
|
298 + | /* StructureGenerator.kt:135 */
|
191 299 | }
|
300 + | /* ServerCodegenVisitor.kt:345 */
|
192 301 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
193 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
302 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
303 + | /* ServerBuilderGenerator.kt:295 */
|
194 304 | pub fn builder(
|
195 305 | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
196 306 | {
|
307 + | /* ServerBuilderGenerator.kt:296 */
|
197 308 | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
309 + | /* ServerBuilderGenerator.kt:295 */
|
198 310 | }
|
311 + | /* ServerCodegenVisitor.kt:345 */
|
199 312 | }
|
313 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
200 314 | impl crate::constrained::Constrained
|
201 315 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
202 316 | {
|
203 317 | type Unconstrained =
|
204 318 | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder;
|
205 319 | }
|
206 320 |
|
321 + | /* StructureGenerator.kt:197 */
|
207 322 | #[allow(missing_docs)] // documentation missing in model
|
323 + | /* RustType.kt:516 */
|
208 324 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
209 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
325 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
326 + | {
|
327 + | /* StructureGenerator.kt:231 */
|
210 328 | #[allow(missing_docs)] // documentation missing in model
|
211 329 | pub map_of_list_of_pattern_string: ::std::option::Option<
|
212 330 | ::std::collections::HashMap<
|
213 331 | crate::model::PatternString,
|
214 332 | ::std::vec::Vec<crate::model::PatternString>,
|
215 333 | >,
|
216 334 | >,
|
335 + | /* StructureGenerator.kt:201 */
|
217 336 | }
|
337 + | /* StructureGenerator.kt:135 */
|
218 338 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
339 + | /* StructureGenerator.kt:231 */
|
219 340 | #[allow(missing_docs)] // documentation missing in model
|
341 + | /* StructureGenerator.kt:166 */
|
220 342 | pub fn map_of_list_of_pattern_string(
|
221 343 | &self,
|
222 344 | ) -> ::std::option::Option<
|
223 345 | &::std::collections::HashMap<
|
224 346 | crate::model::PatternString,
|
225 347 | ::std::vec::Vec<crate::model::PatternString>,
|
226 348 | >,
|
227 349 | > {
|
350 + | /* StructureGenerator.kt:170 */
|
228 351 | self.map_of_list_of_pattern_string.as_ref()
|
352 + | /* StructureGenerator.kt:166 */
|
229 353 | }
|
354 + | /* StructureGenerator.kt:135 */
|
230 355 | }
|
356 + | /* ServerCodegenVisitor.kt:345 */
|
231 357 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
232 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
358 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
359 + | /* ServerBuilderGenerator.kt:295 */
|
233 360 | pub fn builder(
|
234 361 | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
235 362 | {
|
363 + | /* ServerBuilderGenerator.kt:296 */
|
236 364 | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
365 + | /* ServerBuilderGenerator.kt:295 */
|
237 366 | }
|
367 + | /* ServerCodegenVisitor.kt:345 */
|
238 368 | }
|
369 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
239 370 | impl crate::constrained::Constrained
|
240 371 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
241 372 | {
|
242 373 | type Unconstrained =
|
243 374 | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder;
|
244 375 | }
|
245 376 |
|
377 + | /* StructureGenerator.kt:197 */
|
246 378 | #[allow(missing_docs)] // documentation missing in model
|
379 + | /* RustType.kt:516 */
|
247 380 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
248 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
381 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
382 + | /* StructureGenerator.kt:231 */
|
249 383 | #[allow(missing_docs)] // documentation missing in model
|
250 384 | pub map_of_pattern_string: ::std::option::Option<
|
251 385 | ::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
|
252 386 | >,
|
387 + | /* StructureGenerator.kt:201 */
|
253 388 | }
|
389 + | /* StructureGenerator.kt:135 */
|
254 390 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
391 + | /* StructureGenerator.kt:231 */
|
255 392 | #[allow(missing_docs)] // documentation missing in model
|
393 + | /* StructureGenerator.kt:166 */
|
256 394 | pub fn map_of_pattern_string(
|
257 395 | &self,
|
258 396 | ) -> ::std::option::Option<
|
259 397 | &::std::collections::HashMap<crate::model::PatternString, crate::model::PatternString>,
|
260 398 | > {
|
399 + | /* StructureGenerator.kt:170 */
|
261 400 | self.map_of_pattern_string.as_ref()
|
401 + | /* StructureGenerator.kt:166 */
|
262 402 | }
|
403 + | /* StructureGenerator.kt:135 */
|
263 404 | }
|
405 + | /* ServerCodegenVisitor.kt:345 */
|
264 406 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
265 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
407 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
408 + | /* ServerBuilderGenerator.kt:295 */
|
266 409 | pub fn builder(
|
267 410 | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
411 + | /* ServerBuilderGenerator.kt:296 */
|
268 412 | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
269 413 | )
|
414 + | /* ServerBuilderGenerator.kt:295 */
|
270 415 | }
|
416 + | /* ServerCodegenVisitor.kt:345 */
|
271 417 | }
|
418 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
272 419 | impl crate::constrained::Constrained
|
273 420 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
274 421 | {
|
275 422 | type Unconstrained =
|
276 423 | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder;
|
277 424 | }
|
278 425 |
|
426 + | /* StructureGenerator.kt:197 */
|
279 427 | #[allow(missing_docs)] // documentation missing in model
|
428 + | /* RustType.kt:516 */
|
280 429 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
281 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
430 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
431 + | /* StructureGenerator.kt:231 */
|
282 432 | #[allow(missing_docs)] // documentation missing in model
|
283 433 | pub map_of_list_of_enum_string: ::std::option::Option<
|
284 434 | ::std::collections::HashMap<
|
285 435 | crate::model::EnumString,
|
286 436 | ::std::vec::Vec<crate::model::EnumString>,
|
287 437 | >,
|
288 438 | >,
|
439 + | /* StructureGenerator.kt:201 */
|
289 440 | }
|
441 + | /* StructureGenerator.kt:135 */
|
290 442 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
443 + | /* StructureGenerator.kt:231 */
|
291 444 | #[allow(missing_docs)] // documentation missing in model
|
445 + | /* StructureGenerator.kt:166 */
|
292 446 | pub fn map_of_list_of_enum_string(
|
293 447 | &self,
|
294 448 | ) -> ::std::option::Option<
|
295 449 | &::std::collections::HashMap<
|
296 450 | crate::model::EnumString,
|
297 451 | ::std::vec::Vec<crate::model::EnumString>,
|
298 452 | >,
|
299 453 | > {
|
454 + | /* StructureGenerator.kt:170 */
|
300 455 | self.map_of_list_of_enum_string.as_ref()
|
456 + | /* StructureGenerator.kt:166 */
|
301 457 | }
|
458 + | /* StructureGenerator.kt:135 */
|
302 459 | }
|
460 + | /* ServerCodegenVisitor.kt:345 */
|
303 461 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
304 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
462 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
463 + | /* ServerBuilderGenerator.kt:295 */
|
305 464 | pub fn builder(
|
306 465 | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
307 466 | {
|
467 + | /* ServerBuilderGenerator.kt:296 */
|
308 468 | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
469 + | /* ServerBuilderGenerator.kt:295 */
|
309 470 | }
|
471 + | /* ServerCodegenVisitor.kt:345 */
|
310 472 | }
|
473 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
311 474 | impl crate::constrained::Constrained
|
312 475 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
313 476 | {
|
314 477 | type Unconstrained =
|
315 478 | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder;
|
316 479 | }
|
317 480 |
|
481 + | /* StructureGenerator.kt:197 */
|
318 482 | #[allow(missing_docs)] // documentation missing in model
|
483 + | /* RustType.kt:516 */
|
319 484 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
320 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
485 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
486 + | {
|
487 + | /* StructureGenerator.kt:231 */
|
321 488 | #[allow(missing_docs)] // documentation missing in model
|
322 489 | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
323 490 | ::std::collections::HashMap<
|
324 491 | crate::model::PatternString,
|
325 492 | crate::model::LengthListOfPatternString,
|
326 493 | >,
|
327 494 | >,
|
495 + | /* StructureGenerator.kt:201 */
|
328 496 | }
|
497 + | /* StructureGenerator.kt:135 */
|
329 498 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
499 + | /* StructureGenerator.kt:231 */
|
330 500 | #[allow(missing_docs)] // documentation missing in model
|
501 + | /* StructureGenerator.kt:166 */
|
331 502 | pub fn map_of_length_list_of_pattern_string(
|
332 503 | &self,
|
333 504 | ) -> ::std::option::Option<
|
334 505 | &::std::collections::HashMap<
|
335 506 | crate::model::PatternString,
|
336 507 | crate::model::LengthListOfPatternString,
|
337 508 | >,
|
338 509 | > {
|
510 + | /* StructureGenerator.kt:170 */
|
339 511 | self.map_of_length_list_of_pattern_string.as_ref()
|
512 + | /* StructureGenerator.kt:166 */
|
340 513 | }
|
514 + | /* StructureGenerator.kt:135 */
|
341 515 | }
|
516 + | /* ServerCodegenVisitor.kt:345 */
|
342 517 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
343 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
518 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
519 + | /* ServerBuilderGenerator.kt:295 */
|
344 520 | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
521 + | /* ServerBuilderGenerator.kt:296 */
|
345 522 | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
523 + | /* ServerBuilderGenerator.kt:295 */
|
346 524 | }
|
525 + | /* ServerCodegenVisitor.kt:345 */
|
347 526 | }
|
527 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
348 528 | impl crate::constrained::Constrained
|
349 529 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
350 530 | {
|
351 531 | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder;
|
352 532 | }
|
353 533 |
|
534 + | /* StructureGenerator.kt:197 */
|
354 535 | #[allow(missing_docs)] // documentation missing in model
|
536 + | /* RustType.kt:516 */
|
355 537 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
356 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
538 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
539 + | {
|
540 + | /* StructureGenerator.kt:231 */
|
357 541 | #[allow(missing_docs)] // documentation missing in model
|
358 542 | pub map_of_set_of_length_string: ::std::option::Option<
|
359 543 | ::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>,
|
360 544 | >,
|
545 + | /* StructureGenerator.kt:201 */
|
361 546 | }
|
547 + | /* StructureGenerator.kt:135 */
|
362 548 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
549 + | /* StructureGenerator.kt:231 */
|
363 550 | #[allow(missing_docs)] // documentation missing in model
|
551 + | /* StructureGenerator.kt:166 */
|
364 552 | pub fn map_of_set_of_length_string(
|
365 553 | &self,
|
366 554 | ) -> ::std::option::Option<
|
367 555 | &::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>,
|
368 556 | > {
|
557 + | /* StructureGenerator.kt:170 */
|
369 558 | self.map_of_set_of_length_string.as_ref()
|
559 + | /* StructureGenerator.kt:166 */
|
370 560 | }
|
561 + | /* StructureGenerator.kt:135 */
|
371 562 | }
|
563 + | /* ServerCodegenVisitor.kt:345 */
|
372 564 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
373 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
565 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
566 + | /* ServerBuilderGenerator.kt:295 */
|
374 567 | pub fn builder(
|
375 568 | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
376 569 | {
|
570 + | /* ServerBuilderGenerator.kt:296 */
|
377 571 | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
572 + | /* ServerBuilderGenerator.kt:295 */
|
378 573 | }
|
574 + | /* ServerCodegenVisitor.kt:345 */
|
379 575 | }
|
576 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
380 577 | impl crate::constrained::Constrained
|
381 578 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
382 579 | {
|
383 580 | type Unconstrained =
|
384 581 | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder;
|
385 582 | }
|
386 583 |
|
584 + | /* StructureGenerator.kt:197 */
|
387 585 | #[allow(missing_docs)] // documentation missing in model
|
586 + | /* RustType.kt:516 */
|
388 587 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
389 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
588 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
589 + | {
|
590 + | /* StructureGenerator.kt:231 */
|
390 591 | #[allow(missing_docs)] // documentation missing in model
|
391 592 | pub map_of_list_of_length_string: ::std::option::Option<
|
392 593 | ::std::collections::HashMap<
|
393 594 | crate::model::LengthString,
|
394 595 | ::std::vec::Vec<crate::model::LengthString>,
|
395 596 | >,
|
396 597 | >,
|
598 + | /* StructureGenerator.kt:201 */
|
397 599 | }
|
600 + | /* StructureGenerator.kt:135 */
|
398 601 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
602 + | /* StructureGenerator.kt:231 */
|
399 603 | #[allow(missing_docs)] // documentation missing in model
|
604 + | /* StructureGenerator.kt:166 */
|
400 605 | pub fn map_of_list_of_length_string(
|
401 606 | &self,
|
402 607 | ) -> ::std::option::Option<
|
403 608 | &::std::collections::HashMap<
|
404 609 | crate::model::LengthString,
|
405 610 | ::std::vec::Vec<crate::model::LengthString>,
|
406 611 | >,
|
407 612 | > {
|
613 + | /* StructureGenerator.kt:170 */
|
408 614 | self.map_of_list_of_length_string.as_ref()
|
615 + | /* StructureGenerator.kt:166 */
|
409 616 | }
|
617 + | /* StructureGenerator.kt:135 */
|
410 618 | }
|
619 + | /* ServerCodegenVisitor.kt:345 */
|
411 620 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
412 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
621 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
622 + | /* ServerBuilderGenerator.kt:295 */
|
413 623 | pub fn builder(
|
414 624 | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
415 625 | {
|
626 + | /* ServerBuilderGenerator.kt:296 */
|
416 627 | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
628 + | /* ServerBuilderGenerator.kt:295 */
|
417 629 | }
|
630 + | /* ServerCodegenVisitor.kt:345 */
|
418 631 | }
|
632 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
419 633 | impl crate::constrained::Constrained
|
420 634 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
421 635 | {
|
422 636 | type Unconstrained =
|
423 637 | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder;
|
424 638 | }
|
425 639 |
|
640 + | /* StructureGenerator.kt:197 */
|
426 641 | #[allow(missing_docs)] // documentation missing in model
|
642 + | /* RustType.kt:516 */
|
427 643 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
428 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
644 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
645 + | /* StructureGenerator.kt:231 */
|
429 646 | #[allow(missing_docs)] // documentation missing in model
|
430 647 | pub map_of_length_string: ::std::option::Option<
|
431 648 | ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
432 649 | >,
|
650 + | /* StructureGenerator.kt:201 */
|
433 651 | }
|
652 + | /* StructureGenerator.kt:135 */
|
434 653 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
654 + | /* StructureGenerator.kt:231 */
|
435 655 | #[allow(missing_docs)] // documentation missing in model
|
656 + | /* StructureGenerator.kt:166 */
|
436 657 | pub fn map_of_length_string(
|
437 658 | &self,
|
438 659 | ) -> ::std::option::Option<
|
439 660 | &::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
440 661 | > {
|
662 + | /* StructureGenerator.kt:170 */
|
441 663 | self.map_of_length_string.as_ref()
|
664 + | /* StructureGenerator.kt:166 */
|
442 665 | }
|
666 + | /* StructureGenerator.kt:135 */
|
443 667 | }
|
668 + | /* ServerCodegenVisitor.kt:345 */
|
444 669 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
445 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
670 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
671 + | /* ServerBuilderGenerator.kt:295 */
|
446 672 | pub fn builder(
|
447 673 | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
674 + | /* ServerBuilderGenerator.kt:296 */
|
448 675 | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
449 676 | )
|
677 + | /* ServerBuilderGenerator.kt:295 */
|
450 678 | }
|
679 + | /* ServerCodegenVisitor.kt:345 */
|
451 680 | }
|
681 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
452 682 | impl crate::constrained::Constrained
|
453 683 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
454 684 | {
|
455 685 | type Unconstrained =
|
456 686 | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder;
|
457 687 | }
|
458 688 |
|
689 + | /* StructureGenerator.kt:197 */
|
459 690 | #[allow(missing_docs)] // documentation missing in model
|
691 + | /* RustType.kt:516 */
|
460 692 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
461 - | pub struct QueryParamsTargetingLengthMapOperationInput {
|
693 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingLengthMapOperationInput {
|
694 + | /* StructureGenerator.kt:231 */
|
462 695 | #[allow(missing_docs)] // documentation missing in model
|
463 696 | pub length_map: ::std::option::Option<crate::model::ConBMap>,
|
697 + | /* StructureGenerator.kt:201 */
|
464 698 | }
|
699 + | /* StructureGenerator.kt:135 */
|
465 700 | impl QueryParamsTargetingLengthMapOperationInput {
|
701 + | /* StructureGenerator.kt:231 */
|
466 702 | #[allow(missing_docs)] // documentation missing in model
|
703 + | /* StructureGenerator.kt:166 */
|
467 704 | pub fn length_map(&self) -> ::std::option::Option<&crate::model::ConBMap> {
|
705 + | /* StructureGenerator.kt:170 */
|
468 706 | self.length_map.as_ref()
|
707 + | /* StructureGenerator.kt:166 */
|
469 708 | }
|
709 + | /* StructureGenerator.kt:135 */
|
470 710 | }
|
711 + | /* ServerCodegenVisitor.kt:345 */
|
471 712 | impl QueryParamsTargetingLengthMapOperationInput {
|
472 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
713 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
714 + | /* ServerBuilderGenerator.kt:295 */
|
473 715 | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
716 + | /* ServerBuilderGenerator.kt:296 */
|
474 717 | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
718 + | /* ServerBuilderGenerator.kt:295 */
|
475 719 | }
|
720 + | /* ServerCodegenVisitor.kt:345 */
|
476 721 | }
|
722 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
477 723 | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
478 724 | type Unconstrained = crate::input::query_params_targeting_length_map_operation_input::Builder;
|
479 725 | }
|
480 726 |
|
727 + | /* StructureGenerator.kt:197 */
|
481 728 | #[allow(missing_docs)] // documentation missing in model
|
729 + | /* RustType.kt:516 */
|
482 730 | #[derive(
|
483 731 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
484 732 | )]
|
485 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
733 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedRecursiveShapesOperationInput {
|
734 + | /* StructureGenerator.kt:231 */
|
486 735 | #[allow(missing_docs)] // documentation missing in model
|
487 736 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
737 + | /* StructureGenerator.kt:231 */
|
488 738 | #[allow(missing_docs)] // documentation missing in model
|
489 739 | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
740 + | /* StructureGenerator.kt:201 */
|
490 741 | }
|
742 + | /* StructureGenerator.kt:135 */
|
491 743 | impl ConstrainedRecursiveShapesOperationInput {
|
744 + | /* StructureGenerator.kt:231 */
|
492 745 | #[allow(missing_docs)] // documentation missing in model
|
746 + | /* StructureGenerator.kt:166 */
|
493 747 | pub fn nested(
|
494 748 | &self,
|
495 749 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
750 + | /* StructureGenerator.kt:170 */
|
496 751 | self.nested.as_ref()
|
752 + | /* StructureGenerator.kt:166 */
|
497 753 | }
|
754 + | /* StructureGenerator.kt:231 */
|
498 755 | #[allow(missing_docs)] // documentation missing in model
|
756 + | /* StructureGenerator.kt:166 */
|
499 757 | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
758 + | /* StructureGenerator.kt:171 */
|
500 759 | use std::ops::Deref;
|
501 760 | self.recursive_list.deref()
|
761 + | /* StructureGenerator.kt:166 */
|
502 762 | }
|
763 + | /* StructureGenerator.kt:135 */
|
503 764 | }
|
765 + | /* ServerCodegenVisitor.kt:345 */
|
504 766 | impl ConstrainedRecursiveShapesOperationInput {
|
505 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
767 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
768 + | /* ServerBuilderGenerator.kt:295 */
|
506 769 | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
770 + | /* ServerBuilderGenerator.kt:296 */
|
507 771 | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
772 + | /* ServerBuilderGenerator.kt:295 */
|
508 773 | }
|
774 + | /* ServerCodegenVisitor.kt:345 */
|
509 775 | }
|
776 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
510 777 | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
511 778 | type Unconstrained = crate::input::constrained_recursive_shapes_operation_input::Builder;
|
512 779 | }
|
513 780 |
|
781 + | /* StructureGenerator.kt:197 */
|
514 782 | #[allow(missing_docs)] // documentation missing in model
|
783 + | /* RustType.kt:516 */
|
515 784 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
516 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
785 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
786 + | /* StructureGenerator.kt:231 */
|
517 787 | #[allow(missing_docs)] // documentation missing in model
|
518 788 | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
789 + | /* StructureGenerator.kt:201 */
|
519 790 | }
|
791 + | /* StructureGenerator.kt:135 */
|
520 792 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
793 + | /* StructureGenerator.kt:231 */
|
521 794 | #[allow(missing_docs)] // documentation missing in model
|
795 + | /* StructureGenerator.kt:166 */
|
522 796 | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
797 + | /* StructureGenerator.kt:172 */
|
523 798 | &self.http_payload_bound_constrained_shape
|
799 + | /* StructureGenerator.kt:166 */
|
524 800 | }
|
801 + | /* StructureGenerator.kt:135 */
|
525 802 | }
|
803 + | /* ServerCodegenVisitor.kt:345 */
|
526 804 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
527 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
805 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
806 + | /* ServerBuilderGenerator.kt:295 */
|
528 807 | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
529 808 | {
|
809 + | /* ServerBuilderGenerator.kt:296 */
|
530 810 | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
811 + | /* ServerBuilderGenerator.kt:295 */
|
531 812 | }
|
813 + | /* ServerCodegenVisitor.kt:345 */
|
532 814 | }
|
815 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
533 816 | impl crate::constrained::Constrained
|
534 817 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
535 818 | {
|
536 819 | type Unconstrained =
|
537 820 | crate::input::constrained_http_payload_bound_shape_operation_input::Builder;
|
538 821 | }
|
539 822 |
|
823 + | /* StructureGenerator.kt:197 */
|
540 824 | #[allow(missing_docs)] // documentation missing in model
|
825 + | /* RustType.kt:516 */
|
541 826 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
542 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
827 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpBoundShapesOperationInput {
|
828 + | /* StructureGenerator.kt:231 */
|
543 829 | #[allow(missing_docs)] // documentation missing in model
|
544 830 | pub length_string_label: crate::model::LengthString,
|
831 + | /* StructureGenerator.kt:231 */
|
545 832 | #[allow(missing_docs)] // documentation missing in model
|
546 833 | pub range_integer_label: crate::model::RangeInteger,
|
834 + | /* StructureGenerator.kt:231 */
|
547 835 | #[allow(missing_docs)] // documentation missing in model
|
548 836 | pub range_short_label: crate::model::RangeShort,
|
837 + | /* StructureGenerator.kt:231 */
|
549 838 | #[allow(missing_docs)] // documentation missing in model
|
550 839 | pub range_long_label: crate::model::RangeLong,
|
840 + | /* StructureGenerator.kt:231 */
|
551 841 | #[allow(missing_docs)] // documentation missing in model
|
552 842 | pub range_byte_label: crate::model::RangeByte,
|
843 + | /* StructureGenerator.kt:231 */
|
553 844 | #[allow(missing_docs)] // documentation missing in model
|
554 845 | pub enum_string_label: crate::model::EnumString,
|
846 + | /* StructureGenerator.kt:231 */
|
555 847 | #[allow(missing_docs)] // documentation missing in model
|
556 848 | pub length_string_header_map:
|
557 849 | ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
850 + | /* StructureGenerator.kt:231 */
|
558 851 | #[allow(missing_docs)] // documentation missing in model
|
559 852 | pub length_string_header: ::std::option::Option<crate::model::LengthString>,
|
853 + | /* StructureGenerator.kt:231 */
|
560 854 | #[allow(missing_docs)] // documentation missing in model
|
561 855 | pub range_integer_header: crate::model::RangeInteger,
|
856 + | /* StructureGenerator.kt:231 */
|
562 857 | #[allow(missing_docs)] // documentation missing in model
|
563 858 | pub range_short_header: crate::model::RangeShort,
|
859 + | /* StructureGenerator.kt:231 */
|
564 860 | #[allow(missing_docs)] // documentation missing in model
|
565 861 | pub range_long_header: crate::model::RangeLong,
|
862 + | /* StructureGenerator.kt:231 */
|
566 863 | #[allow(missing_docs)] // documentation missing in model
|
567 864 | pub range_byte_header: crate::model::RangeByte,
|
865 + | /* StructureGenerator.kt:231 */
|
568 866 | #[allow(missing_docs)] // documentation missing in model
|
569 867 | pub length_string_set_header: ::std::option::Option<crate::model::SetOfLengthString>,
|
868 + | /* StructureGenerator.kt:231 */
|
570 869 | #[allow(missing_docs)] // documentation missing in model
|
571 870 | pub list_length_string_header:
|
572 871 | ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
|
872 + | /* StructureGenerator.kt:231 */
|
573 873 | #[allow(missing_docs)] // documentation missing in model
|
574 874 | pub length_list_pattern_string_header:
|
575 875 | ::std::option::Option<crate::model::LengthListOfPatternString>,
|
876 + | /* StructureGenerator.kt:231 */
|
576 877 | #[allow(missing_docs)] // documentation missing in model
|
577 878 | pub length_set_pattern_string_header:
|
578 879 | ::std::option::Option<crate::model::LengthSetOfPatternString>,
|
880 + | /* StructureGenerator.kt:231 */
|
579 881 | #[allow(missing_docs)] // documentation missing in model
|
580 882 | pub range_byte_set_header: ::std::option::Option<crate::model::SetOfRangeByte>,
|
883 + | /* StructureGenerator.kt:231 */
|
581 884 | #[allow(missing_docs)] // documentation missing in model
|
582 885 | pub range_short_set_header: ::std::option::Option<crate::model::SetOfRangeShort>,
|
886 + | /* StructureGenerator.kt:231 */
|
583 887 | #[allow(missing_docs)] // documentation missing in model
|
584 888 | pub range_integer_set_header: ::std::option::Option<crate::model::SetOfRangeInteger>,
|
889 + | /* StructureGenerator.kt:231 */
|
585 890 | #[allow(missing_docs)] // documentation missing in model
|
586 891 | pub range_long_set_header: ::std::option::Option<crate::model::SetOfRangeLong>,
|
892 + | /* StructureGenerator.kt:231 */
|
587 893 | #[allow(missing_docs)] // documentation missing in model
|
588 894 | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
|
895 + | /* StructureGenerator.kt:231 */
|
589 896 | #[allow(missing_docs)] // documentation missing in model
|
590 897 | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
|
898 + | /* StructureGenerator.kt:231 */
|
591 899 | #[allow(missing_docs)] // documentation missing in model
|
592 900 | pub range_integer_list_header:
|
593 901 | ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
|
902 + | /* StructureGenerator.kt:231 */
|
594 903 | #[allow(missing_docs)] // documentation missing in model
|
595 904 | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
|
905 + | /* StructureGenerator.kt:231 */
|
596 906 | #[allow(missing_docs)] // documentation missing in model
|
597 907 | pub length_string_query: ::std::option::Option<crate::model::LengthString>,
|
908 + | /* StructureGenerator.kt:231 */
|
598 909 | #[allow(missing_docs)] // documentation missing in model
|
599 910 | pub range_byte_query: crate::model::RangeByte,
|
911 + | /* StructureGenerator.kt:231 */
|
600 912 | #[allow(missing_docs)] // documentation missing in model
|
601 913 | pub range_short_query: crate::model::RangeShort,
|
914 + | /* StructureGenerator.kt:231 */
|
602 915 | #[allow(missing_docs)] // documentation missing in model
|
603 916 | pub range_integer_query: crate::model::RangeInteger,
|
917 + | /* StructureGenerator.kt:231 */
|
604 918 | #[allow(missing_docs)] // documentation missing in model
|
605 919 | pub range_long_query: crate::model::RangeLong,
|
920 + | /* StructureGenerator.kt:231 */
|
606 921 | #[allow(missing_docs)] // documentation missing in model
|
607 922 | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
923 + | /* StructureGenerator.kt:231 */
|
608 924 | #[allow(missing_docs)] // documentation missing in model
|
609 925 | pub length_string_list_query:
|
610 926 | ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
|
927 + | /* StructureGenerator.kt:231 */
|
611 928 | #[allow(missing_docs)] // documentation missing in model
|
612 929 | pub length_list_pattern_string_query:
|
613 930 | ::std::option::Option<crate::model::LengthListOfPatternString>,
|
931 + | /* StructureGenerator.kt:231 */
|
614 932 | #[allow(missing_docs)] // documentation missing in model
|
615 933 | pub length_string_set_query: ::std::option::Option<crate::model::SetOfLengthString>,
|
934 + | /* StructureGenerator.kt:231 */
|
616 935 | #[allow(missing_docs)] // documentation missing in model
|
617 936 | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
|
937 + | /* StructureGenerator.kt:231 */
|
618 938 | #[allow(missing_docs)] // documentation missing in model
|
619 939 | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
|
940 + | /* StructureGenerator.kt:231 */
|
620 941 | #[allow(missing_docs)] // documentation missing in model
|
621 942 | pub range_integer_list_query:
|
622 943 | ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
|
944 + | /* StructureGenerator.kt:231 */
|
623 945 | #[allow(missing_docs)] // documentation missing in model
|
624 946 | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
|
947 + | /* StructureGenerator.kt:231 */
|
625 948 | #[allow(missing_docs)] // documentation missing in model
|
626 949 | pub range_byte_set_query: ::std::option::Option<crate::model::SetOfRangeByte>,
|
950 + | /* StructureGenerator.kt:231 */
|
627 951 | #[allow(missing_docs)] // documentation missing in model
|
628 952 | pub range_short_set_query: ::std::option::Option<crate::model::SetOfRangeShort>,
|
953 + | /* StructureGenerator.kt:231 */
|
629 954 | #[allow(missing_docs)] // documentation missing in model
|
630 955 | pub range_integer_set_query: ::std::option::Option<crate::model::SetOfRangeInteger>,
|
956 + | /* StructureGenerator.kt:231 */
|
631 957 | #[allow(missing_docs)] // documentation missing in model
|
632 958 | pub range_long_set_query: ::std::option::Option<crate::model::SetOfRangeLong>,
|
959 + | /* StructureGenerator.kt:231 */
|
633 960 | #[allow(missing_docs)] // documentation missing in model
|
634 961 | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
962 + | /* StructureGenerator.kt:201 */
|
635 963 | }
|
964 + | /* StructureGenerator.kt:135 */
|
636 965 | impl ConstrainedHttpBoundShapesOperationInput {
|
966 + | /* StructureGenerator.kt:231 */
|
637 967 | #[allow(missing_docs)] // documentation missing in model
|
968 + | /* StructureGenerator.kt:166 */
|
638 969 | pub fn length_string_label(&self) -> &crate::model::LengthString {
|
970 + | /* StructureGenerator.kt:172 */
|
639 971 | &self.length_string_label
|
972 + | /* StructureGenerator.kt:166 */
|
640 973 | }
|
974 + | /* StructureGenerator.kt:231 */
|
641 975 | #[allow(missing_docs)] // documentation missing in model
|
976 + | /* StructureGenerator.kt:166 */
|
642 977 | pub fn range_integer_label(&self) -> &crate::model::RangeInteger {
|
978 + | /* StructureGenerator.kt:172 */
|
643 979 | &self.range_integer_label
|
980 + | /* StructureGenerator.kt:166 */
|
644 981 | }
|
982 + | /* StructureGenerator.kt:231 */
|
645 983 | #[allow(missing_docs)] // documentation missing in model
|
984 + | /* StructureGenerator.kt:166 */
|
646 985 | pub fn range_short_label(&self) -> &crate::model::RangeShort {
|
986 + | /* StructureGenerator.kt:172 */
|
647 987 | &self.range_short_label
|
988 + | /* StructureGenerator.kt:166 */
|
648 989 | }
|
990 + | /* StructureGenerator.kt:231 */
|
649 991 | #[allow(missing_docs)] // documentation missing in model
|
992 + | /* StructureGenerator.kt:166 */
|
650 993 | pub fn range_long_label(&self) -> &crate::model::RangeLong {
|
994 + | /* StructureGenerator.kt:172 */
|
651 995 | &self.range_long_label
|
996 + | /* StructureGenerator.kt:166 */
|
652 997 | }
|
998 + | /* StructureGenerator.kt:231 */
|
653 999 | #[allow(missing_docs)] // documentation missing in model
|
1000 + | /* StructureGenerator.kt:166 */
|
654 1001 | pub fn range_byte_label(&self) -> &crate::model::RangeByte {
|
1002 + | /* StructureGenerator.kt:172 */
|
655 1003 | &self.range_byte_label
|
1004 + | /* StructureGenerator.kt:166 */
|
656 1005 | }
|
1006 + | /* StructureGenerator.kt:231 */
|
657 1007 | #[allow(missing_docs)] // documentation missing in model
|
1008 + | /* StructureGenerator.kt:166 */
|
658 1009 | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
1010 + | /* StructureGenerator.kt:172 */
|
659 1011 | &self.enum_string_label
|
1012 + | /* StructureGenerator.kt:166 */
|
660 1013 | }
|
1014 + | /* StructureGenerator.kt:231 */
|
661 1015 | #[allow(missing_docs)] // documentation missing in model
|
1016 + | /* StructureGenerator.kt:166 */
|
662 1017 | pub fn length_string_header_map(
|
663 1018 | &self,
|
664 1019 | ) -> &::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString> {
|
1020 + | /* StructureGenerator.kt:172 */
|
665 1021 | &self.length_string_header_map
|
1022 + | /* StructureGenerator.kt:166 */
|
666 1023 | }
|
1024 + | /* StructureGenerator.kt:231 */
|
667 1025 | #[allow(missing_docs)] // documentation missing in model
|
1026 + | /* StructureGenerator.kt:166 */
|
668 1027 | pub fn length_string_header(&self) -> ::std::option::Option<&crate::model::LengthString> {
|
1028 + | /* StructureGenerator.kt:170 */
|
669 1029 | self.length_string_header.as_ref()
|
1030 + | /* StructureGenerator.kt:166 */
|
670 1031 | }
|
1032 + | /* StructureGenerator.kt:231 */
|
671 1033 | #[allow(missing_docs)] // documentation missing in model
|
1034 + | /* StructureGenerator.kt:166 */
|
672 1035 | pub fn range_integer_header(&self) -> &crate::model::RangeInteger {
|
1036 + | /* StructureGenerator.kt:172 */
|
673 1037 | &self.range_integer_header
|
1038 + | /* StructureGenerator.kt:166 */
|
674 1039 | }
|
1040 + | /* StructureGenerator.kt:231 */
|
675 1041 | #[allow(missing_docs)] // documentation missing in model
|
1042 + | /* StructureGenerator.kt:166 */
|
676 1043 | pub fn range_short_header(&self) -> &crate::model::RangeShort {
|
1044 + | /* StructureGenerator.kt:172 */
|
677 1045 | &self.range_short_header
|
1046 + | /* StructureGenerator.kt:166 */
|
678 1047 | }
|
1048 + | /* StructureGenerator.kt:231 */
|
679 1049 | #[allow(missing_docs)] // documentation missing in model
|
1050 + | /* StructureGenerator.kt:166 */
|
680 1051 | pub fn range_long_header(&self) -> &crate::model::RangeLong {
|
1052 + | /* StructureGenerator.kt:172 */
|
681 1053 | &self.range_long_header
|
1054 + | /* StructureGenerator.kt:166 */
|
682 1055 | }
|
1056 + | /* StructureGenerator.kt:231 */
|
683 1057 | #[allow(missing_docs)] // documentation missing in model
|
1058 + | /* StructureGenerator.kt:166 */
|
684 1059 | pub fn range_byte_header(&self) -> &crate::model::RangeByte {
|
1060 + | /* StructureGenerator.kt:172 */
|
685 1061 | &self.range_byte_header
|
1062 + | /* StructureGenerator.kt:166 */
|
686 1063 | }
|
1064 + | /* StructureGenerator.kt:231 */
|
687 1065 | #[allow(missing_docs)] // documentation missing in model
|
1066 + | /* StructureGenerator.kt:166 */
|
688 1067 | pub fn length_string_set_header(
|
689 1068 | &self,
|
690 1069 | ) -> ::std::option::Option<&crate::model::SetOfLengthString> {
|
1070 + | /* StructureGenerator.kt:170 */
|
691 1071 | self.length_string_set_header.as_ref()
|
1072 + | /* StructureGenerator.kt:166 */
|
692 1073 | }
|
1074 + | /* StructureGenerator.kt:231 */
|
693 1075 | #[allow(missing_docs)] // documentation missing in model
|
1076 + | /* StructureGenerator.kt:166 */
|
694 1077 | pub fn list_length_string_header(
|
695 1078 | &self,
|
696 1079 | ) -> ::std::option::Option<&[crate::model::LengthString]> {
|
1080 + | /* StructureGenerator.kt:169 */
|
697 1081 | self.list_length_string_header.as_deref()
|
1082 + | /* StructureGenerator.kt:166 */
|
698 1083 | }
|
1084 + | /* StructureGenerator.kt:231 */
|
699 1085 | #[allow(missing_docs)] // documentation missing in model
|
1086 + | /* StructureGenerator.kt:166 */
|
700 1087 | pub fn length_list_pattern_string_header(
|
701 1088 | &self,
|
702 1089 | ) -> ::std::option::Option<&crate::model::LengthListOfPatternString> {
|
1090 + | /* StructureGenerator.kt:170 */
|
703 1091 | self.length_list_pattern_string_header.as_ref()
|
1092 + | /* StructureGenerator.kt:166 */
|
704 1093 | }
|
1094 + | /* StructureGenerator.kt:231 */
|
705 1095 | #[allow(missing_docs)] // documentation missing in model
|
1096 + | /* StructureGenerator.kt:166 */
|
706 1097 | pub fn length_set_pattern_string_header(
|
707 1098 | &self,
|
708 1099 | ) -> ::std::option::Option<&crate::model::LengthSetOfPatternString> {
|
1100 + | /* StructureGenerator.kt:170 */
|
709 1101 | self.length_set_pattern_string_header.as_ref()
|
1102 + | /* StructureGenerator.kt:166 */
|
710 1103 | }
|
1104 + | /* StructureGenerator.kt:231 */
|
711 1105 | #[allow(missing_docs)] // documentation missing in model
|
1106 + | /* StructureGenerator.kt:166 */
|
712 1107 | pub fn range_byte_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeByte> {
|
1108 + | /* StructureGenerator.kt:170 */
|
713 1109 | self.range_byte_set_header.as_ref()
|
1110 + | /* StructureGenerator.kt:166 */
|
714 1111 | }
|
1112 + | /* StructureGenerator.kt:231 */
|
715 1113 | #[allow(missing_docs)] // documentation missing in model
|
1114 + | /* StructureGenerator.kt:166 */
|
716 1115 | pub fn range_short_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeShort> {
|
1116 + | /* StructureGenerator.kt:170 */
|
717 1117 | self.range_short_set_header.as_ref()
|
1118 + | /* StructureGenerator.kt:166 */
|
718 1119 | }
|
1120 + | /* StructureGenerator.kt:231 */
|
719 1121 | #[allow(missing_docs)] // documentation missing in model
|
1122 + | /* StructureGenerator.kt:166 */
|
720 1123 | pub fn range_integer_set_header(
|
721 1124 | &self,
|
722 1125 | ) -> ::std::option::Option<&crate::model::SetOfRangeInteger> {
|
1126 + | /* StructureGenerator.kt:170 */
|
723 1127 | self.range_integer_set_header.as_ref()
|
1128 + | /* StructureGenerator.kt:166 */
|
724 1129 | }
|
1130 + | /* StructureGenerator.kt:231 */
|
725 1131 | #[allow(missing_docs)] // documentation missing in model
|
1132 + | /* StructureGenerator.kt:166 */
|
726 1133 | pub fn range_long_set_header(&self) -> ::std::option::Option<&crate::model::SetOfRangeLong> {
|
1134 + | /* StructureGenerator.kt:170 */
|
727 1135 | self.range_long_set_header.as_ref()
|
1136 + | /* StructureGenerator.kt:166 */
|
728 1137 | }
|
1138 + | /* StructureGenerator.kt:231 */
|
729 1139 | #[allow(missing_docs)] // documentation missing in model
|
1140 + | /* StructureGenerator.kt:166 */
|
730 1141 | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[crate::model::RangeByte]> {
|
1142 + | /* StructureGenerator.kt:169 */
|
731 1143 | self.range_byte_list_header.as_deref()
|
1144 + | /* StructureGenerator.kt:166 */
|
732 1145 | }
|
1146 + | /* StructureGenerator.kt:231 */
|
733 1147 | #[allow(missing_docs)] // documentation missing in model
|
1148 + | /* StructureGenerator.kt:166 */
|
734 1149 | pub fn range_short_list_header(&self) -> ::std::option::Option<&[crate::model::RangeShort]> {
|
1150 + | /* StructureGenerator.kt:169 */
|
735 1151 | self.range_short_list_header.as_deref()
|
1152 + | /* StructureGenerator.kt:166 */
|
736 1153 | }
|
1154 + | /* StructureGenerator.kt:231 */
|
737 1155 | #[allow(missing_docs)] // documentation missing in model
|
1156 + | /* StructureGenerator.kt:166 */
|
738 1157 | pub fn range_integer_list_header(
|
739 1158 | &self,
|
740 1159 | ) -> ::std::option::Option<&[crate::model::RangeInteger]> {
|
1160 + | /* StructureGenerator.kt:169 */
|
741 1161 | self.range_integer_list_header.as_deref()
|
1162 + | /* StructureGenerator.kt:166 */
|
742 1163 | }
|
1164 + | /* StructureGenerator.kt:231 */
|
743 1165 | #[allow(missing_docs)] // documentation missing in model
|
1166 + | /* StructureGenerator.kt:166 */
|
744 1167 | pub fn range_long_list_header(&self) -> ::std::option::Option<&[crate::model::RangeLong]> {
|
1168 + | /* StructureGenerator.kt:169 */
|
745 1169 | self.range_long_list_header.as_deref()
|
1170 + | /* StructureGenerator.kt:166 */
|
746 1171 | }
|
1172 + | /* StructureGenerator.kt:231 */
|
747 1173 | #[allow(missing_docs)] // documentation missing in model
|
1174 + | /* StructureGenerator.kt:166 */
|
748 1175 | pub fn length_string_query(&self) -> ::std::option::Option<&crate::model::LengthString> {
|
1176 + | /* StructureGenerator.kt:170 */
|
749 1177 | self.length_string_query.as_ref()
|
1178 + | /* StructureGenerator.kt:166 */
|
750 1179 | }
|
1180 + | /* StructureGenerator.kt:231 */
|
751 1181 | #[allow(missing_docs)] // documentation missing in model
|
1182 + | /* StructureGenerator.kt:166 */
|
752 1183 | pub fn range_byte_query(&self) -> &crate::model::RangeByte {
|
1184 + | /* StructureGenerator.kt:172 */
|
753 1185 | &self.range_byte_query
|
1186 + | /* StructureGenerator.kt:166 */
|
754 1187 | }
|
1188 + | /* StructureGenerator.kt:231 */
|
755 1189 | #[allow(missing_docs)] // documentation missing in model
|
1190 + | /* StructureGenerator.kt:166 */
|
756 1191 | pub fn range_short_query(&self) -> &crate::model::RangeShort {
|
1192 + | /* StructureGenerator.kt:172 */
|
757 1193 | &self.range_short_query
|
1194 + | /* StructureGenerator.kt:166 */
|
758 1195 | }
|
1196 + | /* StructureGenerator.kt:231 */
|
759 1197 | #[allow(missing_docs)] // documentation missing in model
|
1198 + | /* StructureGenerator.kt:166 */
|
760 1199 | pub fn range_integer_query(&self) -> &crate::model::RangeInteger {
|
1200 + | /* StructureGenerator.kt:172 */
|
761 1201 | &self.range_integer_query
|
1202 + | /* StructureGenerator.kt:166 */
|
762 1203 | }
|
1204 + | /* StructureGenerator.kt:231 */
|
763 1205 | #[allow(missing_docs)] // documentation missing in model
|
1206 + | /* StructureGenerator.kt:166 */
|
764 1207 | pub fn range_long_query(&self) -> &crate::model::RangeLong {
|
1208 + | /* StructureGenerator.kt:172 */
|
765 1209 | &self.range_long_query
|
1210 + | /* StructureGenerator.kt:166 */
|
766 1211 | }
|
1212 + | /* StructureGenerator.kt:231 */
|
767 1213 | #[allow(missing_docs)] // documentation missing in model
|
1214 + | /* StructureGenerator.kt:166 */
|
768 1215 | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
1216 + | /* StructureGenerator.kt:170 */
|
769 1217 | self.enum_string_query.as_ref()
|
1218 + | /* StructureGenerator.kt:166 */
|
770 1219 | }
|
1220 + | /* StructureGenerator.kt:231 */
|
771 1221 | #[allow(missing_docs)] // documentation missing in model
|
1222 + | /* StructureGenerator.kt:166 */
|
772 1223 | pub fn length_string_list_query(&self) -> ::std::option::Option<&[crate::model::LengthString]> {
|
1224 + | /* StructureGenerator.kt:169 */
|
773 1225 | self.length_string_list_query.as_deref()
|
1226 + | /* StructureGenerator.kt:166 */
|
774 1227 | }
|
1228 + | /* StructureGenerator.kt:231 */
|
775 1229 | #[allow(missing_docs)] // documentation missing in model
|
1230 + | /* StructureGenerator.kt:166 */
|
776 1231 | pub fn length_list_pattern_string_query(
|
777 1232 | &self,
|
778 1233 | ) -> ::std::option::Option<&crate::model::LengthListOfPatternString> {
|
1234 + | /* StructureGenerator.kt:170 */
|
779 1235 | self.length_list_pattern_string_query.as_ref()
|
1236 + | /* StructureGenerator.kt:166 */
|
780 1237 | }
|
1238 + | /* StructureGenerator.kt:231 */
|
781 1239 | #[allow(missing_docs)] // documentation missing in model
|
1240 + | /* StructureGenerator.kt:166 */
|
782 1241 | pub fn length_string_set_query(
|
783 1242 | &self,
|
784 1243 | ) -> ::std::option::Option<&crate::model::SetOfLengthString> {
|
1244 + | /* StructureGenerator.kt:170 */
|
785 1245 | self.length_string_set_query.as_ref()
|
1246 + | /* StructureGenerator.kt:166 */
|
786 1247 | }
|
1248 + | /* StructureGenerator.kt:231 */
|
787 1249 | #[allow(missing_docs)] // documentation missing in model
|
1250 + | /* StructureGenerator.kt:166 */
|
788 1251 | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[crate::model::RangeByte]> {
|
1252 + | /* StructureGenerator.kt:169 */
|
789 1253 | self.range_byte_list_query.as_deref()
|
1254 + | /* StructureGenerator.kt:166 */
|
790 1255 | }
|
1256 + | /* StructureGenerator.kt:231 */
|
791 1257 | #[allow(missing_docs)] // documentation missing in model
|
1258 + | /* StructureGenerator.kt:166 */
|
792 1259 | pub fn range_short_list_query(&self) -> ::std::option::Option<&[crate::model::RangeShort]> {
|
1260 + | /* StructureGenerator.kt:169 */
|
793 1261 | self.range_short_list_query.as_deref()
|
1262 + | /* StructureGenerator.kt:166 */
|
794 1263 | }
|
1264 + | /* StructureGenerator.kt:231 */
|
795 1265 | #[allow(missing_docs)] // documentation missing in model
|
1266 + | /* StructureGenerator.kt:166 */
|
796 1267 | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[crate::model::RangeInteger]> {
|
1268 + | /* StructureGenerator.kt:169 */
|
797 1269 | self.range_integer_list_query.as_deref()
|
1270 + | /* StructureGenerator.kt:166 */
|
798 1271 | }
|
1272 + | /* StructureGenerator.kt:231 */
|
799 1273 | #[allow(missing_docs)] // documentation missing in model
|
1274 + | /* StructureGenerator.kt:166 */
|
800 1275 | pub fn range_long_list_query(&self) -> ::std::option::Option<&[crate::model::RangeLong]> {
|
1276 + | /* StructureGenerator.kt:169 */
|
801 1277 | self.range_long_list_query.as_deref()
|
1278 + | /* StructureGenerator.kt:166 */
|
802 1279 | }
|
1280 + | /* StructureGenerator.kt:231 */
|
803 1281 | #[allow(missing_docs)] // documentation missing in model
|
1282 + | /* StructureGenerator.kt:166 */
|
804 1283 | pub fn range_byte_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeByte> {
|
1284 + | /* StructureGenerator.kt:170 */
|
805 1285 | self.range_byte_set_query.as_ref()
|
1286 + | /* StructureGenerator.kt:166 */
|
806 1287 | }
|
1288 + | /* StructureGenerator.kt:231 */
|
807 1289 | #[allow(missing_docs)] // documentation missing in model
|
1290 + | /* StructureGenerator.kt:166 */
|
808 1291 | pub fn range_short_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeShort> {
|
1292 + | /* StructureGenerator.kt:170 */
|
809 1293 | self.range_short_set_query.as_ref()
|
1294 + | /* StructureGenerator.kt:166 */
|
810 1295 | }
|
1296 + | /* StructureGenerator.kt:231 */
|
811 1297 | #[allow(missing_docs)] // documentation missing in model
|
1298 + | /* StructureGenerator.kt:166 */
|
812 1299 | pub fn range_integer_set_query(
|
813 1300 | &self,
|
814 1301 | ) -> ::std::option::Option<&crate::model::SetOfRangeInteger> {
|
1302 + | /* StructureGenerator.kt:170 */
|
815 1303 | self.range_integer_set_query.as_ref()
|
1304 + | /* StructureGenerator.kt:166 */
|
816 1305 | }
|
1306 + | /* StructureGenerator.kt:231 */
|
817 1307 | #[allow(missing_docs)] // documentation missing in model
|
1308 + | /* StructureGenerator.kt:166 */
|
818 1309 | pub fn range_long_set_query(&self) -> ::std::option::Option<&crate::model::SetOfRangeLong> {
|
1310 + | /* StructureGenerator.kt:170 */
|
819 1311 | self.range_long_set_query.as_ref()
|
1312 + | /* StructureGenerator.kt:166 */
|
820 1313 | }
|
1314 + | /* StructureGenerator.kt:231 */
|
821 1315 | #[allow(missing_docs)] // documentation missing in model
|
1316 + | /* StructureGenerator.kt:166 */
|
822 1317 | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
1318 + | /* StructureGenerator.kt:169 */
|
823 1319 | self.enum_string_list_query.as_deref()
|
1320 + | /* StructureGenerator.kt:166 */
|
824 1321 | }
|
1322 + | /* StructureGenerator.kt:135 */
|
825 1323 | }
|
1324 + | /* ServerCodegenVisitor.kt:345 */
|
826 1325 | impl ConstrainedHttpBoundShapesOperationInput {
|
827 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1326 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1327 + | /* ServerBuilderGenerator.kt:295 */
|
828 1328 | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
1329 + | /* ServerBuilderGenerator.kt:296 */
|
829 1330 | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
1331 + | /* ServerBuilderGenerator.kt:295 */
|
830 1332 | }
|
1333 + | /* ServerCodegenVisitor.kt:345 */
|
831 1334 | }
|
1335 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
832 1336 | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
833 1337 | type Unconstrained = crate::input::constrained_http_bound_shapes_operation_input::Builder;
|
834 1338 | }
|
835 1339 |
|
1340 + | /* StructureGenerator.kt:197 */
|
836 1341 | #[allow(missing_docs)] // documentation missing in model
|
1342 + | /* RustType.kt:516 */
|
837 1343 | #[derive(
|
838 1344 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
839 1345 | )]
|
840 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
1346 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOnlyInOutputOperationInput {/* StructureGenerator.kt:201 */}
|
1347 + | /* ServerCodegenVisitor.kt:345 */
|
841 1348 | impl ConstrainedShapesOnlyInOutputOperationInput {
|
842 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1349 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1350 + | /* ServerBuilderGenerator.kt:295 */
|
843 1351 | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
1352 + | /* ServerBuilderGenerator.kt:296 */
|
844 1353 | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
1354 + | /* ServerBuilderGenerator.kt:295 */
|
845 1355 | }
|
1356 + | /* ServerCodegenVisitor.kt:345 */
|
846 1357 | }
|
1358 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
847 1359 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
848 1360 | type Unconstrained = crate::input::constrained_shapes_only_in_output_operation_input::Builder;
|
849 1361 | }
|
850 1362 |
|
1363 + | /* StructureGenerator.kt:197 */
|
851 1364 | #[allow(missing_docs)] // documentation missing in model
|
1365 + | /* RustType.kt:516 */
|
852 1366 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
853 - | pub struct ConstrainedShapesOperationInput {
|
1367 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOperationInput {
|
1368 + | /* StructureGenerator.kt:231 */
|
854 1369 | #[allow(missing_docs)] // documentation missing in model
|
855 1370 | pub con_a: crate::model::ConA,
|
1371 + | /* StructureGenerator.kt:201 */
|
856 1372 | }
|
1373 + | /* StructureGenerator.kt:135 */
|
857 1374 | impl ConstrainedShapesOperationInput {
|
1375 + | /* StructureGenerator.kt:231 */
|
858 1376 | #[allow(missing_docs)] // documentation missing in model
|
1377 + | /* StructureGenerator.kt:166 */
|
859 1378 | pub fn con_a(&self) -> &crate::model::ConA {
|
1379 + | /* StructureGenerator.kt:172 */
|
860 1380 | &self.con_a
|
1381 + | /* StructureGenerator.kt:166 */
|
861 1382 | }
|
1383 + | /* StructureGenerator.kt:135 */
|
862 1384 | }
|
1385 + | /* ServerCodegenVisitor.kt:345 */
|
863 1386 | impl ConstrainedShapesOperationInput {
|
864 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1387 + | /// /* ServerBuilderGenerator.kt:294 */Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1388 + | /* ServerBuilderGenerator.kt:295 */
|
865 1389 | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
1390 + | /* ServerBuilderGenerator.kt:296 */
|
866 1391 | crate::input::constrained_shapes_operation_input::Builder::default()
|
1392 + | /* ServerBuilderGenerator.kt:295 */
|
867 1393 | }
|
1394 + | /* ServerCodegenVisitor.kt:345 */
|
868 1395 | }
|
1396 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
869 1397 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
870 1398 | type Unconstrained = crate::input::constrained_shapes_operation_input::Builder;
|
871 1399 | }
|
872 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1400 + | /// /* ServerBuilderGenerator.kt:171 */See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
873 1401 | pub mod event_streams_operation_input {
|
874 1402 |
|
1403 + | /* RustType.kt:516 */
|
875 1404 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
876 - | /// Holds one variant for each of the ways the builder can fail.
|
1405 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1406 + | /* RustType.kt:516 */
|
877 1407 | #[non_exhaustive]
|
1408 + | /* ServerBuilderConstraintViolations.kt:75 */
|
878 1409 | #[allow(clippy::enum_variant_names)]
|
879 1410 | pub enum ConstraintViolation {
|
880 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1411 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1412 + | /* ServerBuilderConstraintViolations.kt:143 */
|
881 1413 | MissingEvents,
|
1414 + | /* ServerBuilderConstraintViolations.kt:75 */
|
882 1415 | }
|
1416 + | /* ServerBuilderConstraintViolations.kt:117 */
|
883 1417 | impl ::std::fmt::Display for ConstraintViolation {
|
1418 + | /* ServerBuilderConstraintViolations.kt:118 */
|
884 1419 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1420 + | /* ServerBuilderConstraintViolations.kt:119 */
|
885 1421 | match self {
|
886 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
887 - | }
|
1422 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1423 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1424 + | /* ServerBuilderConstraintViolations.kt:118 */
|
888 1425 | }
|
1426 + | /* ServerBuilderConstraintViolations.kt:117 */
|
889 1427 | }
|
1428 + | /* ServerBuilderConstraintViolations.kt:84 */
|
890 1429 | impl ::std::error::Error for ConstraintViolation {}
|
1430 + | /* ServerBuilderConstraintViolations.kt:171 */
|
891 1431 | impl ConstraintViolation {
|
892 1432 | pub(crate) fn as_validation_exception_field(
|
893 1433 | self,
|
894 1434 | path: ::std::string::String,
|
895 1435 | ) -> crate::model::ValidationExceptionField {
|
896 1436 | match self {
|
897 1437 | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
898 1438 | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
899 1439 | path: path + "/events",
|
900 1440 | },
|
901 1441 | }
|
902 1442 | }
|
903 1443 | }
|
1444 + | /* ServerBuilderGenerator.kt:234 */
|
904 1445 | impl ::std::convert::From<ConstraintViolation>
|
905 1446 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
906 1447 | {
|
907 1448 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
908 1449 | let first_validation_exception_field =
|
909 1450 | constraint_violation.as_validation_exception_field("".to_owned());
|
910 1451 | let validation_exception = crate::error::ValidationException {
|
911 1452 | message: format!(
|
912 1453 | "1 validation error detected. {}",
|
913 1454 | &first_validation_exception_field.message
|
914 1455 | ),
|
915 1456 | field_list: Some(vec![first_validation_exception_field]),
|
916 1457 | };
|
917 1458 | Self::ConstraintViolation(
|
918 1459 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
919 1460 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
920 1461 | )
|
921 1462 | }
|
922 1463 | }
|
1464 + | /* ServerBuilderGenerator.kt:244 */
|
923 1465 | impl ::std::convert::From<Builder>
|
924 1466 | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
925 1467 | {
|
926 1468 | fn from(builder: Builder) -> Self {
|
927 1469 | Self::Unconstrained(builder)
|
928 1470 | }
|
929 1471 | }
|
1472 + | /* ServerBuilderGenerator.kt:446 */
|
930 1473 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
931 1474 | type Error = ConstraintViolation;
|
932 1475 |
|
933 1476 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
934 1477 | builder.build()
|
935 1478 | }
|
936 1479 | }
|
937 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1480 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1481 + | /* RustType.kt:516 */
|
938 1482 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1483 + | /* ServerBuilderGenerator.kt:211 */
|
939 1484 | pub struct Builder {
|
1485 + | /* ServerBuilderGenerator.kt:308 */
|
940 1486 | pub(crate) events: ::std::option::Option<
|
941 1487 | ::aws_smithy_http::event_stream::Receiver<
|
942 1488 | crate::model::Event,
|
943 1489 | crate::error::EventError,
|
944 1490 | >,
|
945 1491 | >,
|
1492 + | /* ServerBuilderGenerator.kt:211 */
|
946 1493 | }
|
1494 + | /* ServerBuilderGenerator.kt:215 */
|
947 1495 | impl Builder {
|
1496 + | /* ServerBuilderGenerator.kt:331 */
|
948 1497 | #[allow(missing_docs)] // documentation missing in model
|
1498 + | /* ServerBuilderGenerator.kt:343 */
|
949 1499 | pub fn events(
|
950 1500 | mut self,
|
951 1501 | input: ::aws_smithy_http::event_stream::Receiver<
|
952 1502 | crate::model::Event,
|
953 1503 | crate::error::EventError,
|
954 1504 | >,
|
955 1505 | ) -> Self {
|
956 - | self.events = Some(input);
|
1506 + | /* ServerBuilderGenerator.kt:344 */
|
1507 + | self.events =
|
1508 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1509 + | /* ServerBuilderGenerator.kt:376 */input
|
1510 + | /* ServerBuilderGenerator.kt:345 */)
|
1511 + | /* ServerBuilderGenerator.kt:344 */;
|
957 1512 | self
|
1513 + | /* ServerBuilderGenerator.kt:343 */
|
958 1514 | }
|
1515 + | /* ServerBuilderGenerator.kt:426 */
|
959 1516 | #[allow(missing_docs)] // documentation missing in model
|
1517 + | /* ServerBuilderGenerator.kt:428 */
|
960 1518 | pub(crate) fn set_events(
|
961 1519 | mut self,
|
962 1520 | input: impl ::std::convert::Into<
|
963 1521 | ::aws_smithy_http::event_stream::Receiver<
|
964 1522 | crate::model::Event,
|
965 1523 | crate::error::EventError,
|
966 1524 | >,
|
967 1525 | >,
|
968 1526 | ) -> Self {
|
1527 + | /* ServerBuilderGenerator.kt:429 */
|
969 1528 | self.events = Some(input.into());
|
970 1529 | self
|
1530 + | /* ServerBuilderGenerator.kt:428 */
|
971 1531 | }
|
972 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
973 - | ///
|
1532 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1533 + | /// /* ServerBuilderGenerator.kt:260 */
|
974 1534 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
975 1535 | ///
|
1536 + | /* ServerBuilderGenerator.kt:271 */
|
976 1537 | pub fn build(
|
977 1538 | self,
|
978 1539 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
979 1540 | self.build_enforcing_all_constraints()
|
980 1541 | }
|
1542 + | /* ServerBuilderGenerator.kt:283 */
|
981 1543 | fn build_enforcing_all_constraints(
|
982 1544 | self,
|
983 1545 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
984 - | Ok(crate::input::EventStreamsOperationInput {
|
985 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
986 - | })
|
1546 + | /* ServerBuilderGenerator.kt:287 */
|
1547 + | Ok(
|
1548 + | /* ServerBuilderGenerator.kt:542 */
|
1549 + | crate::input::EventStreamsOperationInput {
|
1550 + | /* ServerBuilderGenerator.kt:546 */
|
1551 + | events: self
|
1552 + | .events
|
1553 + | /* ServerBuilderGenerator.kt:569 */
|
1554 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
1555 + | /* ServerBuilderGenerator.kt:542 */
|
1556 + | }, /* ServerBuilderGenerator.kt:287 */
|
1557 + | )
|
1558 + | /* ServerBuilderGenerator.kt:283 */
|
987 1559 | }
|
1560 + | /* ServerBuilderGenerator.kt:215 */
|
988 1561 | }
|
1562 + |
|
1563 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
989 1564 | }
|
990 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1565 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
991 1566 | pub mod streaming_blob_operation_input {
|
992 1567 |
|
1568 + | /* ServerBuilderGenerator.kt:461 */
|
993 1569 | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
994 1570 | fn from(builder: Builder) -> Self {
|
995 1571 | builder.build()
|
996 1572 | }
|
997 1573 | }
|
998 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1574 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1575 + | /* RustType.kt:516 */
|
999 1576 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1577 + | /* ServerBuilderGenerator.kt:211 */
|
1000 1578 | pub struct Builder {
|
1579 + | /* ServerBuilderGenerator.kt:308 */
|
1001 1580 | pub(crate) streaming_blob:
|
1002 1581 | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
1582 + | /* ServerBuilderGenerator.kt:211 */
|
1003 1583 | }
|
1584 + | /* ServerBuilderGenerator.kt:215 */
|
1004 1585 | impl Builder {
|
1586 + | /* ServerBuilderGenerator.kt:331 */
|
1005 1587 | #[allow(missing_docs)] // documentation missing in model
|
1588 + | /* ServerBuilderGenerator.kt:343 */
|
1006 1589 | pub fn streaming_blob(
|
1007 1590 | mut self,
|
1008 1591 | input: ::aws_smithy_types::byte_stream::ByteStream,
|
1009 1592 | ) -> Self {
|
1010 - | self.streaming_blob = Some(input);
|
1593 + | /* ServerBuilderGenerator.kt:344 */
|
1594 + | self.streaming_blob =
|
1595 + | /* ServerBuilderGenerator.kt:345 */Some(
|
1596 + | /* ServerBuilderGenerator.kt:376 */input
|
1597 + | /* ServerBuilderGenerator.kt:345 */)
|
1598 + | /* ServerBuilderGenerator.kt:344 */;
|
1011 1599 | self
|
1600 + | /* ServerBuilderGenerator.kt:343 */
|
1012 1601 | }
|
1602 + | /* ServerBuilderGenerator.kt:426 */
|
1013 1603 | #[allow(missing_docs)] // documentation missing in model
|
1604 + | /* ServerBuilderGenerator.kt:428 */
|
1014 1605 | pub(crate) fn set_streaming_blob(
|
1015 1606 | mut self,
|
1016 1607 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
1017 1608 | ) -> Self {
|
1609 + | /* ServerBuilderGenerator.kt:429 */
|
1018 1610 | self.streaming_blob = Some(input.into());
|
1019 1611 | self
|
1612 + | /* ServerBuilderGenerator.kt:428 */
|
1020 1613 | }
|
1021 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1614 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1615 + | /* ServerBuilderGenerator.kt:271 */
|
1022 1616 | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
1023 1617 | self.build_enforcing_all_constraints()
|
1024 1618 | }
|
1619 + | /* ServerBuilderGenerator.kt:283 */
|
1025 1620 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
1621 + | /* ServerBuilderGenerator.kt:542 */
|
1026 1622 | crate::input::StreamingBlobOperationInput {
|
1027 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1623 + | /* ServerBuilderGenerator.kt:546 */
|
1624 + | streaming_blob: self
|
1625 + | .streaming_blob
|
1626 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
1627 + | .unwrap_or_default(),
|
1628 + | /* ServerBuilderGenerator.kt:542 */
|
1028 1629 | }
|
1630 + | /* ServerBuilderGenerator.kt:283 */
|
1029 1631 | }
|
1632 + | /* ServerBuilderGenerator.kt:215 */
|
1030 1633 | }
|
1634 + |
|
1635 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1031 1636 | }
|
1032 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1637 + | /// /* ServerBuilderGenerator.kt:171 */See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1033 1638 | pub mod non_streaming_blob_operation_input {
|
1034 1639 |
|
1640 + | /* ServerBuilderGenerator.kt:461 */
|
1035 1641 | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
1036 1642 | fn from(builder: Builder) -> Self {
|
1037 1643 | builder.build()
|
1038 1644 | }
|
1039 1645 | }
|
1040 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1646 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1647 + | /* RustType.kt:516 */
|
1041 1648 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1649 + | /* ServerBuilderGenerator.kt:211 */
|
1042 1650 | pub struct Builder {
|
1651 + | /* ServerBuilderGenerator.kt:308 */
|
1043 1652 | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1653 + | /* ServerBuilderGenerator.kt:211 */
|
1044 1654 | }
|
1655 + | /* ServerBuilderGenerator.kt:215 */
|
1045 1656 | impl Builder {
|
1657 + | /* ServerBuilderGenerator.kt:331 */
|
1046 1658 | #[allow(missing_docs)] // documentation missing in model
|
1659 + | /* ServerBuilderGenerator.kt:343 */
|
1047 1660 | pub fn non_streaming_blob(
|
1048 1661 | mut self,
|
1049 1662 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
1050 1663 | ) -> Self {
|
1051 - | self.non_streaming_blob = input;
|
1664 + | /* ServerBuilderGenerator.kt:344 */
|
1665 + | self.non_streaming_blob =
|
1666 + | /* ServerBuilderGenerator.kt:376 */input
|
1667 + | /* ServerBuilderGenerator.kt:344 */;
|
1052 1668 | self
|
1669 + | /* ServerBuilderGenerator.kt:343 */
|
1053 1670 | }
|
1671 + | /* ServerBuilderGenerator.kt:426 */
|
1054 1672 | #[allow(missing_docs)] // documentation missing in model
|
1673 + | /* ServerBuilderGenerator.kt:428 */
|
1055 1674 | pub(crate) fn set_non_streaming_blob(
|
1056 1675 | mut self,
|
1057 1676 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
1058 1677 | ) -> Self {
|
1678 + | /* ServerBuilderGenerator.kt:429 */
|
1059 1679 | self.non_streaming_blob = input.map(|v| v.into());
|
1060 1680 | self
|
1681 + | /* ServerBuilderGenerator.kt:428 */
|
1061 1682 | }
|
1062 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1683 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1684 + | /* ServerBuilderGenerator.kt:271 */
|
1063 1685 | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
1064 1686 | self.build_enforcing_all_constraints()
|
1065 1687 | }
|
1688 + | /* ServerBuilderGenerator.kt:283 */
|
1066 1689 | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
1690 + | /* ServerBuilderGenerator.kt:542 */
|
1067 1691 | crate::input::NonStreamingBlobOperationInput {
|
1692 + | /* ServerBuilderGenerator.kt:546 */
|
1068 1693 | non_streaming_blob: self.non_streaming_blob,
|
1694 + | /* ServerBuilderGenerator.kt:542 */
|
1069 1695 | }
|
1696 + | /* ServerBuilderGenerator.kt:283 */
|
1070 1697 | }
|
1698 + | /* ServerBuilderGenerator.kt:215 */
|
1071 1699 | }
|
1700 + |
|
1701 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1072 1702 | }
|
1073 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1703 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1074 1704 | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
1075 1705 |
|
1706 + | /* RustType.kt:516 */
|
1076 1707 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1077 - | /// Holds one variant for each of the ways the builder can fail.
|
1708 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1709 + | /* RustType.kt:516 */
|
1078 1710 | #[non_exhaustive]
|
1711 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1079 1712 | #[allow(clippy::enum_variant_names)]
|
1080 1713 | pub enum ConstraintViolation {
|
1081 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1714 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1715 + | /* RustType.kt:516 */
|
1082 1716 | #[doc(hidden)]
|
1717 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1083 1718 | MapOfEnumString(crate::model::map_of_enum_string::ConstraintViolation),
|
1719 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1084 1720 | }
|
1721 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1085 1722 | impl ::std::fmt::Display for ConstraintViolation {
|
1723 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1086 1724 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1725 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1087 1726 | match self {
|
1088 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1089 - | }
|
1727 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1728 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1729 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1090 1730 | }
|
1731 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1091 1732 | }
|
1733 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1092 1734 | impl ::std::error::Error for ConstraintViolation {}
|
1735 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1093 1736 | impl ConstraintViolation {
|
1094 1737 | pub(crate) fn as_validation_exception_field(
|
1095 1738 | self,
|
1096 1739 | path: ::std::string::String,
|
1097 1740 | ) -> crate::model::ValidationExceptionField {
|
1098 1741 | match self {
|
1099 1742 | ConstraintViolation::MapOfEnumString(inner) => {
|
1100 1743 | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
1101 1744 | }
|
1102 1745 | }
|
1103 1746 | }
|
1104 1747 | }
|
1748 + | /* ServerBuilderGenerator.kt:234 */
|
1105 1749 | impl ::std::convert::From<ConstraintViolation>
|
1106 1750 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1107 1751 | {
|
1108 1752 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1109 1753 | let first_validation_exception_field =
|
1110 1754 | constraint_violation.as_validation_exception_field("".to_owned());
|
1111 1755 | let validation_exception = crate::error::ValidationException {
|
1112 1756 | message: format!(
|
1113 1757 | "1 validation error detected. {}",
|
1114 1758 | &first_validation_exception_field.message
|
1115 1759 | ),
|
1116 1760 | field_list: Some(vec![first_validation_exception_field]),
|
1117 1761 | };
|
1118 1762 | Self::ConstraintViolation(
|
1119 1763 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1120 1764 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1121 1765 | )
|
1122 1766 | }
|
1123 1767 | }
|
1768 + | /* ServerBuilderGenerator.kt:244 */
|
1124 1769 | impl ::std::convert::From<Builder>
|
1125 1770 | for crate::constrained::MaybeConstrained<
|
1126 1771 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1127 1772 | >
|
1128 1773 | {
|
1129 1774 | fn from(builder: Builder) -> Self {
|
1130 1775 | Self::Unconstrained(builder)
|
1131 1776 | }
|
1132 1777 | }
|
1778 + | /* ServerBuilderGenerator.kt:446 */
|
1133 1779 | impl ::std::convert::TryFrom<Builder>
|
1134 1780 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1135 1781 | {
|
1136 1782 | type Error = ConstraintViolation;
|
1137 1783 |
|
1138 1784 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1139 1785 | builder.build()
|
1140 1786 | }
|
1141 1787 | }
|
1142 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1788 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1789 + | /* RustType.kt:516 */
|
1143 1790 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1791 + | /* ServerBuilderGenerator.kt:211 */
|
1144 1792 | pub struct Builder {
|
1793 + | /* ServerBuilderGenerator.kt:308 */
|
1145 1794 | pub(crate) map_of_enum_string: ::std::option::Option<
|
1146 1795 | crate::constrained::MaybeConstrained<
|
1147 1796 | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
1148 1797 | >,
|
1149 1798 | >,
|
1799 + | /* ServerBuilderGenerator.kt:211 */
|
1150 1800 | }
|
1801 + | /* ServerBuilderGenerator.kt:215 */
|
1151 1802 | impl Builder {
|
1803 + | /* ServerBuilderGenerator.kt:331 */
|
1152 1804 | #[allow(missing_docs)] // documentation missing in model
|
1805 + | /* ServerBuilderGenerator.kt:343 */
|
1153 1806 | pub fn map_of_enum_string(
|
1154 1807 | mut self,
|
1155 1808 | input: ::std::option::Option<
|
1156 1809 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1157 1810 | >,
|
1158 1811 | ) -> Self {
|
1159 - | self.map_of_enum_string = input.map(
|
1160 - | #[allow(clippy::redundant_closure)]
|
1161 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1162 - | );
|
1812 + | /* ServerBuilderGenerator.kt:344 */
|
1813 + | self.map_of_enum_string =
|
1814 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
1815 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
1816 + | /* ServerBuilderGenerator.kt:369 */)
|
1817 + | /* ServerBuilderGenerator.kt:344 */;
|
1163 1818 | self
|
1819 + | /* ServerBuilderGenerator.kt:343 */
|
1164 1820 | }
|
1821 + | /* ServerBuilderGenerator.kt:426 */
|
1165 1822 | #[allow(missing_docs)] // documentation missing in model
|
1823 + | /* ServerBuilderGenerator.kt:428 */
|
1166 1824 | pub(crate) fn set_map_of_enum_string(
|
1167 1825 | mut self,
|
1168 1826 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
1169 1827 | ) -> Self {
|
1828 + | /* ServerBuilderGenerator.kt:429 */
|
1170 1829 | self.map_of_enum_string = input.map(|v| v.into());
|
1171 1830 | self
|
1831 + | /* ServerBuilderGenerator.kt:428 */
|
1172 1832 | }
|
1173 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1174 - | ///
|
1833 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1834 + | /// /* ServerBuilderGenerator.kt:260 */
|
1175 1835 | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1176 1836 | ///
|
1837 + | /* ServerBuilderGenerator.kt:271 */
|
1177 1838 | pub fn build(
|
1178 1839 | self,
|
1179 1840 | ) -> Result<
|
1180 1841 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1181 1842 | ConstraintViolation,
|
1182 1843 | > {
|
1183 1844 | self.build_enforcing_all_constraints()
|
1184 1845 | }
|
1846 + | /* ServerBuilderGenerator.kt:283 */
|
1185 1847 | fn build_enforcing_all_constraints(
|
1186 1848 | self,
|
1187 1849 | ) -> Result<
|
1188 1850 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1189 1851 | ConstraintViolation,
|
1190 1852 | > {
|
1853 + | /* ServerBuilderGenerator.kt:287 */
|
1191 1854 | Ok(
|
1855 + | /* ServerBuilderGenerator.kt:542 */
|
1192 1856 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1857 + | /* ServerBuilderGenerator.kt:546 */
|
1193 1858 | map_of_enum_string: self
|
1194 1859 | .map_of_enum_string
|
1860 + | /* ServerBuilderGenerator.kt:602 */
|
1195 1861 | .map(|v| match v {
|
1196 1862 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1197 1863 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1198 1864 | })
|
1865 + | /* ServerBuilderGenerator.kt:614 */
|
1199 1866 | .map(|res| {
|
1200 1867 | res.map(|v| v.into())
|
1201 1868 | .map_err(ConstraintViolation::MapOfEnumString)
|
1202 1869 | })
|
1203 1870 | .transpose()?,
|
1204 - | },
|
1871 + | /* ServerBuilderGenerator.kt:542 */
|
1872 + | }, /* ServerBuilderGenerator.kt:287 */
|
1205 1873 | )
|
1874 + | /* ServerBuilderGenerator.kt:283 */
|
1206 1875 | }
|
1876 + | /* ServerBuilderGenerator.kt:215 */
|
1207 1877 | }
|
1878 + |
|
1879 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1208 1880 | }
|
1209 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1881 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1210 1882 | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
1211 1883 |
|
1884 + | /* RustType.kt:516 */
|
1212 1885 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1213 - | /// Holds one variant for each of the ways the builder can fail.
|
1886 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1887 + | /* RustType.kt:516 */
|
1214 1888 | #[non_exhaustive]
|
1889 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1215 1890 | #[allow(clippy::enum_variant_names)]
|
1216 1891 | pub enum ConstraintViolation {
|
1217 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
1892 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
1893 + | /* RustType.kt:516 */
|
1218 1894 | #[doc(hidden)]
|
1895 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1219 1896 | LengthMap(crate::model::con_b_map::ConstraintViolation),
|
1897 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1220 1898 | }
|
1899 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1221 1900 | impl ::std::fmt::Display for ConstraintViolation {
|
1901 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1222 1902 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1903 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1223 1904 | match self {
|
1224 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
1225 - | }
|
1905 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
1906 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1907 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1226 1908 | }
|
1909 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1227 1910 | }
|
1911 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1228 1912 | impl ::std::error::Error for ConstraintViolation {}
|
1913 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1229 1914 | impl ConstraintViolation {
|
1230 1915 | pub(crate) fn as_validation_exception_field(
|
1231 1916 | self,
|
1232 1917 | path: ::std::string::String,
|
1233 1918 | ) -> crate::model::ValidationExceptionField {
|
1234 1919 | match self {
|
1235 1920 | ConstraintViolation::LengthMap(inner) => {
|
1236 1921 | inner.as_validation_exception_field(path + "/lengthMap")
|
1237 1922 | }
|
1238 1923 | }
|
1239 1924 | }
|
1240 1925 | }
|
1926 + | /* ServerBuilderGenerator.kt:234 */
|
1241 1927 | impl ::std::convert::From<ConstraintViolation>
|
1242 1928 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1243 1929 | {
|
1244 1930 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1245 1931 | let first_validation_exception_field =
|
1246 1932 | constraint_violation.as_validation_exception_field("".to_owned());
|
1247 1933 | let validation_exception = crate::error::ValidationException {
|
1248 1934 | message: format!(
|
1249 1935 | "1 validation error detected. {}",
|
1250 1936 | &first_validation_exception_field.message
|
1251 1937 | ),
|
1252 1938 | field_list: Some(vec![first_validation_exception_field]),
|
1253 1939 | };
|
1254 1940 | Self::ConstraintViolation(
|
1255 1941 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1256 1942 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1257 1943 | )
|
1258 1944 | }
|
1259 1945 | }
|
1946 + | /* ServerBuilderGenerator.kt:244 */
|
1260 1947 | impl ::std::convert::From<Builder>
|
1261 1948 | for crate::constrained::MaybeConstrained<
|
1262 1949 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1263 1950 | >
|
1264 1951 | {
|
1265 1952 | fn from(builder: Builder) -> Self {
|
1266 1953 | Self::Unconstrained(builder)
|
1267 1954 | }
|
1268 1955 | }
|
1956 + | /* ServerBuilderGenerator.kt:446 */
|
1269 1957 | impl ::std::convert::TryFrom<Builder>
|
1270 1958 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1271 1959 | {
|
1272 1960 | type Error = ConstraintViolation;
|
1273 1961 |
|
1274 1962 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1275 1963 | builder.build()
|
1276 1964 | }
|
1277 1965 | }
|
1278 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1966 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1967 + | /* RustType.kt:516 */
|
1279 1968 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1969 + | /* ServerBuilderGenerator.kt:211 */
|
1280 1970 | pub struct Builder {
|
1971 + | /* ServerBuilderGenerator.kt:308 */
|
1281 1972 | pub(crate) length_map:
|
1282 1973 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
1974 + | /* ServerBuilderGenerator.kt:211 */
|
1283 1975 | }
|
1976 + | /* ServerBuilderGenerator.kt:215 */
|
1284 1977 | impl Builder {
|
1978 + | /* ServerBuilderGenerator.kt:331 */
|
1285 1979 | #[allow(missing_docs)] // documentation missing in model
|
1980 + | /* ServerBuilderGenerator.kt:343 */
|
1286 1981 | pub fn length_map(mut self, input: ::std::option::Option<crate::model::ConBMap>) -> Self {
|
1287 - | self.length_map = input.map(
|
1288 - | #[allow(clippy::redundant_closure)]
|
1289 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1290 - | );
|
1982 + | /* ServerBuilderGenerator.kt:344 */
|
1983 + | self.length_map =
|
1984 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
1985 + | /* ServerBuilderGenerator.kt:344 */;
|
1291 1986 | self
|
1987 + | /* ServerBuilderGenerator.kt:343 */
|
1292 1988 | }
|
1989 + | /* ServerBuilderGenerator.kt:426 */
|
1293 1990 | #[allow(missing_docs)] // documentation missing in model
|
1991 + | /* ServerBuilderGenerator.kt:428 */
|
1294 1992 | pub(crate) fn set_length_map(
|
1295 1993 | mut self,
|
1296 1994 | input: Option<
|
1297 1995 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
1298 1996 | >,
|
1299 1997 | ) -> Self {
|
1998 + | /* ServerBuilderGenerator.kt:429 */
|
1300 1999 | self.length_map = input.map(|v| v.into());
|
1301 2000 | self
|
2001 + | /* ServerBuilderGenerator.kt:428 */
|
1302 2002 | }
|
1303 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1304 - | ///
|
2003 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2004 + | /// /* ServerBuilderGenerator.kt:260 */
|
1305 2005 | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
1306 2006 | ///
|
2007 + | /* ServerBuilderGenerator.kt:271 */
|
1307 2008 | pub fn build(
|
1308 2009 | self,
|
1309 2010 | ) -> Result<
|
1310 2011 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1311 2012 | ConstraintViolation,
|
1312 2013 | > {
|
1313 2014 | self.build_enforcing_all_constraints()
|
1314 2015 | }
|
2016 + | /* ServerBuilderGenerator.kt:283 */
|
1315 2017 | fn build_enforcing_all_constraints(
|
1316 2018 | self,
|
1317 2019 | ) -> Result<
|
1318 2020 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1319 2021 | ConstraintViolation,
|
1320 2022 | > {
|
2023 + | /* ServerBuilderGenerator.kt:287 */
|
1321 2024 | Ok(
|
2025 + | /* ServerBuilderGenerator.kt:542 */
|
1322 2026 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2027 + | /* ServerBuilderGenerator.kt:546 */
|
1323 2028 | length_map: self
|
1324 2029 | .length_map
|
2030 + | /* ServerBuilderGenerator.kt:602 */
|
1325 2031 | .map(|v| match v {
|
1326 2032 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1327 2033 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1328 2034 | })
|
2035 + | /* ServerBuilderGenerator.kt:614 */
|
1329 2036 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
1330 2037 | .transpose()?,
|
1331 - | },
|
2038 + | /* ServerBuilderGenerator.kt:542 */
|
2039 + | }, /* ServerBuilderGenerator.kt:287 */
|
1332 2040 | )
|
2041 + | /* ServerBuilderGenerator.kt:283 */
|
1333 2042 | }
|
2043 + | /* ServerBuilderGenerator.kt:215 */
|
1334 2044 | }
|
2045 + |
|
2046 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1335 2047 | }
|
1336 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2048 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1337 2049 | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
1338 2050 |
|
2051 + | /* RustType.kt:516 */
|
1339 2052 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1340 - | /// Holds one variant for each of the ways the builder can fail.
|
2053 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2054 + | /* RustType.kt:516 */
|
1341 2055 | #[non_exhaustive]
|
2056 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1342 2057 | #[allow(clippy::enum_variant_names)]
|
1343 2058 | pub enum ConstraintViolation {
|
1344 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2059 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2060 + | /* RustType.kt:516 */
|
1345 2061 | #[doc(hidden)]
|
2062 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1346 2063 | MapOfLengthPatternString(
|
1347 2064 | crate::model::map_of_list_of_length_pattern_string::ConstraintViolation,
|
1348 2065 | ),
|
2066 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1349 2067 | }
|
2068 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1350 2069 | impl ::std::fmt::Display for ConstraintViolation {
|
2070 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1351 2071 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2072 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1352 2073 | match self {
|
1353 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
1354 - | }
|
2074 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
2075 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2076 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1355 2077 | }
|
2078 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1356 2079 | }
|
2080 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1357 2081 | impl ::std::error::Error for ConstraintViolation {}
|
2082 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1358 2083 | impl ConstraintViolation {
|
1359 2084 | pub(crate) fn as_validation_exception_field(
|
1360 2085 | self,
|
1361 2086 | path: ::std::string::String,
|
1362 2087 | ) -> crate::model::ValidationExceptionField {
|
1363 2088 | match self {
|
1364 2089 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1365 2090 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1366 2091 | }
|
1367 2092 | }
|
1368 2093 | }
|
1369 2094 | }
|
2095 + | /* ServerBuilderGenerator.kt:234 */
|
1370 2096 | impl ::std::convert::From<ConstraintViolation>
|
1371 2097 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1372 2098 | {
|
1373 2099 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1374 2100 | let first_validation_exception_field =
|
1375 2101 | constraint_violation.as_validation_exception_field("".to_owned());
|
1376 2102 | let validation_exception = crate::error::ValidationException {
|
1377 2103 | message: format!(
|
1378 2104 | "1 validation error detected. {}",
|
1379 2105 | &first_validation_exception_field.message
|
1380 2106 | ),
|
1381 2107 | field_list: Some(vec![first_validation_exception_field]),
|
1382 2108 | };
|
1383 2109 | Self::ConstraintViolation(
|
1384 2110 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1385 2111 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1386 2112 | )
|
1387 2113 | }
|
1388 2114 | }
|
2115 + | /* ServerBuilderGenerator.kt:244 */
|
1389 2116 | impl ::std::convert::From<Builder>
|
1390 2117 | for crate::constrained::MaybeConstrained<
|
1391 2118 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1392 2119 | >
|
1393 2120 | {
|
1394 2121 | fn from(builder: Builder) -> Self {
|
1395 2122 | Self::Unconstrained(builder)
|
1396 2123 | }
|
1397 2124 | }
|
2125 + | /* ServerBuilderGenerator.kt:446 */
|
1398 2126 | impl ::std::convert::TryFrom<Builder>
|
1399 2127 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1400 2128 | {
|
1401 2129 | type Error = ConstraintViolation;
|
1402 2130 |
|
1403 2131 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1404 2132 | builder.build()
|
1405 2133 | }
|
1406 2134 | }
|
1407 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2135 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2136 + | /* RustType.kt:516 */
|
1408 2137 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2138 + | /* ServerBuilderGenerator.kt:211 */
|
1409 2139 | pub struct Builder {
|
1410 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
1411 - | }
|
2140 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
2141 + | /* ServerBuilderGenerator.kt:211 */}
|
2142 + | /* ServerBuilderGenerator.kt:215 */
|
1412 2143 | impl Builder {
|
2144 + | /* ServerBuilderGenerator.kt:331 */
|
1413 2145 | #[allow(missing_docs)] // documentation missing in model
|
2146 + | /* ServerBuilderGenerator.kt:343 */
|
1414 2147 | pub fn map_of_length_pattern_string(
|
1415 2148 | mut self,
|
1416 2149 | input: ::std::option::Option<
|
1417 2150 | ::std::collections::HashMap<
|
1418 2151 | crate::model::LengthPatternString,
|
1419 2152 | ::std::vec::Vec<crate::model::LengthPatternString>,
|
1420 2153 | >,
|
1421 2154 | >,
|
1422 2155 | ) -> Self {
|
1423 - | self.map_of_length_pattern_string = input.map(
|
1424 - | #[allow(clippy::redundant_closure)]
|
1425 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1426 - | );
|
2156 + | /* ServerBuilderGenerator.kt:344 */
|
2157 + | self.map_of_length_pattern_string =
|
2158 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
2159 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
2160 + | /* ServerBuilderGenerator.kt:369 */)
|
2161 + | /* ServerBuilderGenerator.kt:344 */;
|
1427 2162 | self
|
2163 + | /* ServerBuilderGenerator.kt:343 */
|
1428 2164 | }
|
2165 + | /* ServerBuilderGenerator.kt:426 */
|
1429 2166 | #[allow(missing_docs)] // documentation missing in model
|
2167 + | /* ServerBuilderGenerator.kt:428 */
|
1430 2168 | pub(crate) fn set_map_of_length_pattern_string(
|
1431 2169 | mut self,
|
1432 2170 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
1433 2171 | ) -> Self {
|
2172 + | /* ServerBuilderGenerator.kt:429 */
|
1434 2173 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1435 2174 | self
|
2175 + | /* ServerBuilderGenerator.kt:428 */
|
1436 2176 | }
|
1437 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1438 - | ///
|
2177 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2178 + | /// /* ServerBuilderGenerator.kt:260 */
|
1439 2179 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1440 2180 | ///
|
2181 + | /* ServerBuilderGenerator.kt:271 */
|
1441 2182 | pub fn build(
|
1442 2183 | self,
|
1443 2184 | ) -> Result<
|
1444 2185 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1445 2186 | ConstraintViolation,
|
1446 2187 | > {
|
1447 2188 | self.build_enforcing_all_constraints()
|
1448 2189 | }
|
2190 + | /* ServerBuilderGenerator.kt:283 */
|
1449 2191 | fn build_enforcing_all_constraints(
|
1450 2192 | self,
|
1451 2193 | ) -> Result<
|
1452 2194 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1453 2195 | ConstraintViolation,
|
1454 2196 | > {
|
2197 + | /* ServerBuilderGenerator.kt:287 */
|
1455 2198 | Ok(
|
2199 + | /* ServerBuilderGenerator.kt:542 */
|
1456 2200 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2201 + | /* ServerBuilderGenerator.kt:546 */
|
1457 2202 | map_of_length_pattern_string: self
|
1458 2203 | .map_of_length_pattern_string
|
2204 + | /* ServerBuilderGenerator.kt:602 */
|
1459 2205 | .map(|v| match v {
|
1460 2206 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1461 2207 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1462 2208 | })
|
2209 + | /* ServerBuilderGenerator.kt:614 */
|
1463 2210 | .map(|res| {
|
1464 2211 | res.map(|v| v.into())
|
1465 2212 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1466 2213 | })
|
1467 2214 | .transpose()?,
|
1468 - | },
|
2215 + | /* ServerBuilderGenerator.kt:542 */
|
2216 + | }, /* ServerBuilderGenerator.kt:287 */
|
1469 2217 | )
|
2218 + | /* ServerBuilderGenerator.kt:283 */
|
1470 2219 | }
|
2220 + | /* ServerBuilderGenerator.kt:215 */
|
1471 2221 | }
|
2222 + |
|
2223 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1472 2224 | }
|
1473 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2225 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1474 2226 | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
1475 2227 |
|
2228 + | /* RustType.kt:516 */
|
1476 2229 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1477 - | /// Holds one variant for each of the ways the builder can fail.
|
2230 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2231 + | /* RustType.kt:516 */
|
1478 2232 | #[non_exhaustive]
|
2233 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1479 2234 | #[allow(clippy::enum_variant_names)]
|
1480 2235 | pub enum ConstraintViolation {
|
1481 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2236 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2237 + | /* RustType.kt:516 */
|
1482 2238 | #[doc(hidden)]
|
2239 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1483 2240 | MapOfLengthPatternString(crate::model::map_of_length_pattern_string::ConstraintViolation),
|
2241 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1484 2242 | }
|
2243 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1485 2244 | impl ::std::fmt::Display for ConstraintViolation {
|
2245 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1486 2246 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2247 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1487 2248 | match self {
|
1488 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
1489 - | }
|
2249 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
2250 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2251 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1490 2252 | }
|
2253 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1491 2254 | }
|
2255 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1492 2256 | impl ::std::error::Error for ConstraintViolation {}
|
2257 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1493 2258 | impl ConstraintViolation {
|
1494 2259 | pub(crate) fn as_validation_exception_field(
|
1495 2260 | self,
|
1496 2261 | path: ::std::string::String,
|
1497 2262 | ) -> crate::model::ValidationExceptionField {
|
1498 2263 | match self {
|
1499 2264 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1500 2265 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1501 2266 | }
|
1502 2267 | }
|
1503 2268 | }
|
1504 2269 | }
|
2270 + | /* ServerBuilderGenerator.kt:234 */
|
1505 2271 | impl ::std::convert::From<ConstraintViolation>
|
1506 2272 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1507 2273 | {
|
1508 2274 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1509 2275 | let first_validation_exception_field =
|
1510 2276 | constraint_violation.as_validation_exception_field("".to_owned());
|
1511 2277 | let validation_exception = crate::error::ValidationException {
|
1512 2278 | message: format!(
|
1513 2279 | "1 validation error detected. {}",
|
1514 2280 | &first_validation_exception_field.message
|
1515 2281 | ),
|
1516 2282 | field_list: Some(vec![first_validation_exception_field]),
|
1517 2283 | };
|
1518 2284 | Self::ConstraintViolation(
|
1519 2285 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1520 2286 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1521 2287 | )
|
1522 2288 | }
|
1523 2289 | }
|
2290 + | /* ServerBuilderGenerator.kt:244 */
|
1524 2291 | impl ::std::convert::From<Builder>
|
1525 2292 | for crate::constrained::MaybeConstrained<
|
1526 2293 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1527 2294 | >
|
1528 2295 | {
|
1529 2296 | fn from(builder: Builder) -> Self {
|
1530 2297 | Self::Unconstrained(builder)
|
1531 2298 | }
|
1532 2299 | }
|
2300 + | /* ServerBuilderGenerator.kt:446 */
|
1533 2301 | impl ::std::convert::TryFrom<Builder>
|
1534 2302 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1535 2303 | {
|
1536 2304 | type Error = ConstraintViolation;
|
1537 2305 |
|
1538 2306 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1539 2307 | builder.build()
|
1540 2308 | }
|
1541 2309 | }
|
1542 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2310 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2311 + | /* RustType.kt:516 */
|
1543 2312 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2313 + | /* ServerBuilderGenerator.kt:211 */
|
1544 2314 | pub struct Builder {
|
1545 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
1546 - | }
|
2315 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
2316 + | /* ServerBuilderGenerator.kt:211 */}
|
2317 + | /* ServerBuilderGenerator.kt:215 */
|
1547 2318 | impl Builder {
|
2319 + | /* ServerBuilderGenerator.kt:331 */
|
1548 2320 | #[allow(missing_docs)] // documentation missing in model
|
2321 + | /* ServerBuilderGenerator.kt:343 */
|
1549 2322 | pub fn map_of_length_pattern_string(
|
1550 2323 | mut self,
|
1551 2324 | input: ::std::option::Option<
|
1552 2325 | ::std::collections::HashMap<
|
1553 2326 | crate::model::LengthPatternString,
|
1554 2327 | crate::model::LengthPatternString,
|
1555 2328 | >,
|
1556 2329 | >,
|
1557 2330 | ) -> Self {
|
1558 - | self.map_of_length_pattern_string = input.map(
|
1559 - | #[allow(clippy::redundant_closure)]
|
1560 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1561 - | );
|
2331 + | /* ServerBuilderGenerator.kt:344 */
|
2332 + | self.map_of_length_pattern_string =
|
2333 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
2334 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
2335 + | /* ServerBuilderGenerator.kt:369 */)
|
2336 + | /* ServerBuilderGenerator.kt:344 */;
|
1562 2337 | self
|
2338 + | /* ServerBuilderGenerator.kt:343 */
|
1563 2339 | }
|
2340 + | /* ServerBuilderGenerator.kt:426 */
|
1564 2341 | #[allow(missing_docs)] // documentation missing in model
|
2342 + | /* ServerBuilderGenerator.kt:428 */
|
1565 2343 | pub(crate) fn set_map_of_length_pattern_string(
|
1566 2344 | mut self,
|
1567 2345 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
1568 2346 | ) -> Self {
|
2347 + | /* ServerBuilderGenerator.kt:429 */
|
1569 2348 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1570 2349 | self
|
2350 + | /* ServerBuilderGenerator.kt:428 */
|
1571 2351 | }
|
1572 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1573 - | ///
|
2352 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2353 + | /// /* ServerBuilderGenerator.kt:260 */
|
1574 2354 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1575 2355 | ///
|
2356 + | /* ServerBuilderGenerator.kt:271 */
|
1576 2357 | pub fn build(
|
1577 2358 | self,
|
1578 2359 | ) -> Result<
|
1579 2360 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1580 2361 | ConstraintViolation,
|
1581 2362 | > {
|
1582 2363 | self.build_enforcing_all_constraints()
|
1583 2364 | }
|
2365 + | /* ServerBuilderGenerator.kt:283 */
|
1584 2366 | fn build_enforcing_all_constraints(
|
1585 2367 | self,
|
1586 2368 | ) -> Result<
|
1587 2369 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1588 2370 | ConstraintViolation,
|
1589 2371 | > {
|
2372 + | /* ServerBuilderGenerator.kt:287 */
|
1590 2373 | Ok(
|
2374 + | /* ServerBuilderGenerator.kt:542 */
|
1591 2375 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2376 + | /* ServerBuilderGenerator.kt:546 */
|
1592 2377 | map_of_length_pattern_string: self
|
1593 2378 | .map_of_length_pattern_string
|
2379 + | /* ServerBuilderGenerator.kt:602 */
|
1594 2380 | .map(|v| match v {
|
1595 2381 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1596 2382 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1597 2383 | })
|
2384 + | /* ServerBuilderGenerator.kt:614 */
|
1598 2385 | .map(|res| {
|
1599 2386 | res.map(|v| v.into())
|
1600 2387 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1601 2388 | })
|
1602 2389 | .transpose()?,
|
1603 - | },
|
2390 + | /* ServerBuilderGenerator.kt:542 */
|
2391 + | }, /* ServerBuilderGenerator.kt:287 */
|
1604 2392 | )
|
2393 + | /* ServerBuilderGenerator.kt:283 */
|
1605 2394 | }
|
2395 + | /* ServerBuilderGenerator.kt:215 */
|
1606 2396 | }
|
2397 + |
|
2398 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1607 2399 | }
|
1608 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2400 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1609 2401 | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
1610 2402 |
|
2403 + | /* RustType.kt:516 */
|
1611 2404 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1612 - | /// Holds one variant for each of the ways the builder can fail.
|
2405 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2406 + | /* RustType.kt:516 */
|
1613 2407 | #[non_exhaustive]
|
2408 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1614 2409 | #[allow(clippy::enum_variant_names)]
|
1615 2410 | pub enum ConstraintViolation {
|
1616 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2411 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2412 + | /* RustType.kt:516 */
|
1617 2413 | #[doc(hidden)]
|
2414 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1618 2415 | MapOfListOfPatternString(crate::model::map_of_list_of_pattern_string::ConstraintViolation),
|
2416 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1619 2417 | }
|
2418 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1620 2419 | impl ::std::fmt::Display for ConstraintViolation {
|
2420 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1621 2421 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2422 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1622 2423 | match self {
|
1623 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
1624 - | }
|
2424 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
2425 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2426 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1625 2427 | }
|
2428 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1626 2429 | }
|
2430 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1627 2431 | impl ::std::error::Error for ConstraintViolation {}
|
2432 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1628 2433 | impl ConstraintViolation {
|
1629 2434 | pub(crate) fn as_validation_exception_field(
|
1630 2435 | self,
|
1631 2436 | path: ::std::string::String,
|
1632 2437 | ) -> crate::model::ValidationExceptionField {
|
1633 2438 | match self {
|
1634 2439 | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
1635 2440 | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
1636 2441 | }
|
1637 2442 | }
|
1638 2443 | }
|
1639 2444 | }
|
2445 + | /* ServerBuilderGenerator.kt:234 */
|
1640 2446 | impl ::std::convert::From<ConstraintViolation>
|
1641 2447 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1642 2448 | {
|
1643 2449 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1644 2450 | let first_validation_exception_field =
|
1645 2451 | constraint_violation.as_validation_exception_field("".to_owned());
|
1646 2452 | let validation_exception = crate::error::ValidationException {
|
1647 2453 | message: format!(
|
1648 2454 | "1 validation error detected. {}",
|
1649 2455 | &first_validation_exception_field.message
|
1650 2456 | ),
|
1651 2457 | field_list: Some(vec![first_validation_exception_field]),
|
1652 2458 | };
|
1653 2459 | Self::ConstraintViolation(
|
1654 2460 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1655 2461 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1656 2462 | )
|
1657 2463 | }
|
1658 2464 | }
|
2465 + | /* ServerBuilderGenerator.kt:244 */
|
1659 2466 | impl ::std::convert::From<Builder>
|
1660 2467 | for crate::constrained::MaybeConstrained<
|
1661 2468 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1662 2469 | >
|
1663 2470 | {
|
1664 2471 | fn from(builder: Builder) -> Self {
|
1665 2472 | Self::Unconstrained(builder)
|
1666 2473 | }
|
1667 2474 | }
|
2475 + | /* ServerBuilderGenerator.kt:446 */
|
1668 2476 | impl ::std::convert::TryFrom<Builder>
|
1669 2477 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1670 2478 | {
|
1671 2479 | type Error = ConstraintViolation;
|
1672 2480 |
|
1673 2481 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1674 2482 | builder.build()
|
1675 2483 | }
|
1676 2484 | }
|
1677 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2485 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2486 + | /* RustType.kt:516 */
|
1678 2487 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2488 + | /* ServerBuilderGenerator.kt:211 */
|
1679 2489 | pub struct Builder {
|
1680 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
1681 - | }
|
2490 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
2491 + | /* ServerBuilderGenerator.kt:211 */}
|
2492 + | /* ServerBuilderGenerator.kt:215 */
|
1682 2493 | impl Builder {
|
2494 + | /* ServerBuilderGenerator.kt:331 */
|
1683 2495 | #[allow(missing_docs)] // documentation missing in model
|
2496 + | /* ServerBuilderGenerator.kt:343 */
|
1684 2497 | pub fn map_of_list_of_pattern_string(
|
1685 2498 | mut self,
|
1686 2499 | input: ::std::option::Option<
|
1687 2500 | ::std::collections::HashMap<
|
1688 2501 | crate::model::PatternString,
|
1689 2502 | ::std::vec::Vec<crate::model::PatternString>,
|
1690 2503 | >,
|
1691 2504 | >,
|
1692 2505 | ) -> Self {
|
1693 - | self.map_of_list_of_pattern_string = input.map(
|
1694 - | #[allow(clippy::redundant_closure)]
|
1695 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1696 - | );
|
2506 + | /* ServerBuilderGenerator.kt:344 */
|
2507 + | self.map_of_list_of_pattern_string =
|
2508 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
2509 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
2510 + | /* ServerBuilderGenerator.kt:369 */)
|
2511 + | /* ServerBuilderGenerator.kt:344 */;
|
1697 2512 | self
|
2513 + | /* ServerBuilderGenerator.kt:343 */
|
1698 2514 | }
|
2515 + | /* ServerBuilderGenerator.kt:426 */
|
1699 2516 | #[allow(missing_docs)] // documentation missing in model
|
2517 + | /* ServerBuilderGenerator.kt:428 */
|
1700 2518 | pub(crate) fn set_map_of_list_of_pattern_string(
|
1701 2519 | mut self,
|
1702 2520 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
1703 2521 | ) -> Self {
|
2522 + | /* ServerBuilderGenerator.kt:429 */
|
1704 2523 | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
1705 2524 | self
|
2525 + | /* ServerBuilderGenerator.kt:428 */
|
1706 2526 | }
|
1707 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1708 - | ///
|
2527 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2528 + | /// /* ServerBuilderGenerator.kt:260 */
|
1709 2529 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1710 2530 | ///
|
2531 + | /* ServerBuilderGenerator.kt:271 */
|
1711 2532 | pub fn build(
|
1712 2533 | self,
|
1713 2534 | ) -> Result<
|
1714 2535 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1715 2536 | ConstraintViolation,
|
1716 2537 | > {
|
1717 2538 | self.build_enforcing_all_constraints()
|
1718 2539 | }
|
2540 + | /* ServerBuilderGenerator.kt:283 */
|
1719 2541 | fn build_enforcing_all_constraints(
|
1720 2542 | self,
|
1721 2543 | ) -> Result<
|
1722 2544 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1723 2545 | ConstraintViolation,
|
1724 2546 | > {
|
2547 + | /* ServerBuilderGenerator.kt:287 */
|
1725 2548 | Ok(
|
2549 + | /* ServerBuilderGenerator.kt:542 */
|
1726 2550 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2551 + | /* ServerBuilderGenerator.kt:546 */
|
1727 2552 | map_of_list_of_pattern_string: self
|
1728 2553 | .map_of_list_of_pattern_string
|
2554 + | /* ServerBuilderGenerator.kt:602 */
|
1729 2555 | .map(|v| match v {
|
1730 2556 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1731 2557 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1732 2558 | })
|
2559 + | /* ServerBuilderGenerator.kt:614 */
|
1733 2560 | .map(|res| {
|
1734 2561 | res.map(|v| v.into())
|
1735 2562 | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
1736 2563 | })
|
1737 2564 | .transpose()?,
|
1738 - | },
|
2565 + | /* ServerBuilderGenerator.kt:542 */
|
2566 + | }, /* ServerBuilderGenerator.kt:287 */
|
1739 2567 | )
|
2568 + | /* ServerBuilderGenerator.kt:283 */
|
1740 2569 | }
|
2570 + | /* ServerBuilderGenerator.kt:215 */
|
1741 2571 | }
|
2572 + |
|
2573 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1742 2574 | }
|
1743 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2575 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1744 2576 | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
1745 2577 |
|
2578 + | /* RustType.kt:516 */
|
1746 2579 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1747 - | /// Holds one variant for each of the ways the builder can fail.
|
2580 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2581 + | /* RustType.kt:516 */
|
1748 2582 | #[non_exhaustive]
|
2583 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1749 2584 | #[allow(clippy::enum_variant_names)]
|
1750 2585 | pub enum ConstraintViolation {
|
1751 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2586 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2587 + | /* RustType.kt:516 */
|
1752 2588 | #[doc(hidden)]
|
2589 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1753 2590 | MapOfPatternString(crate::model::map_of_pattern_string::ConstraintViolation),
|
2591 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1754 2592 | }
|
2593 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1755 2594 | impl ::std::fmt::Display for ConstraintViolation {
|
2595 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1756 2596 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2597 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1757 2598 | match self {
|
1758 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
1759 - | }
|
2599 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
2600 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2601 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1760 2602 | }
|
2603 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1761 2604 | }
|
2605 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1762 2606 | impl ::std::error::Error for ConstraintViolation {}
|
2607 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1763 2608 | impl ConstraintViolation {
|
1764 2609 | pub(crate) fn as_validation_exception_field(
|
1765 2610 | self,
|
1766 2611 | path: ::std::string::String,
|
1767 2612 | ) -> crate::model::ValidationExceptionField {
|
1768 2613 | match self {
|
1769 2614 | ConstraintViolation::MapOfPatternString(inner) => {
|
1770 2615 | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
1771 2616 | }
|
1772 2617 | }
|
1773 2618 | }
|
1774 2619 | }
|
2620 + | /* ServerBuilderGenerator.kt:234 */
|
1775 2621 | impl ::std::convert::From<ConstraintViolation>
|
1776 2622 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1777 2623 | {
|
1778 2624 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1779 2625 | let first_validation_exception_field =
|
1780 2626 | constraint_violation.as_validation_exception_field("".to_owned());
|
1781 2627 | let validation_exception = crate::error::ValidationException {
|
1782 2628 | message: format!(
|
1783 2629 | "1 validation error detected. {}",
|
1784 2630 | &first_validation_exception_field.message
|
1785 2631 | ),
|
1786 2632 | field_list: Some(vec![first_validation_exception_field]),
|
1787 2633 | };
|
1788 2634 | Self::ConstraintViolation(
|
1789 2635 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1790 2636 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1791 2637 | )
|
1792 2638 | }
|
1793 2639 | }
|
2640 + | /* ServerBuilderGenerator.kt:244 */
|
1794 2641 | impl ::std::convert::From<Builder>
|
1795 2642 | for crate::constrained::MaybeConstrained<
|
1796 2643 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
1797 2644 | >
|
1798 2645 | {
|
1799 2646 | fn from(builder: Builder) -> Self {
|
1800 2647 | Self::Unconstrained(builder)
|
1801 2648 | }
|
1802 2649 | }
|
2650 + | /* ServerBuilderGenerator.kt:446 */
|
1803 2651 | impl ::std::convert::TryFrom<Builder>
|
1804 2652 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
1805 2653 | {
|
1806 2654 | type Error = ConstraintViolation;
|
1807 2655 |
|
1808 2656 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1809 2657 | builder.build()
|
1810 2658 | }
|
1811 2659 | }
|
1812 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2660 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2661 + | /* RustType.kt:516 */
|
1813 2662 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2663 + | /* ServerBuilderGenerator.kt:211 */
|
1814 2664 | pub struct Builder {
|
1815 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
1816 - | }
|
2665 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
2666 + | /* ServerBuilderGenerator.kt:211 */}
|
2667 + | /* ServerBuilderGenerator.kt:215 */
|
1817 2668 | impl Builder {
|
2669 + | /* ServerBuilderGenerator.kt:331 */
|
1818 2670 | #[allow(missing_docs)] // documentation missing in model
|
2671 + | /* ServerBuilderGenerator.kt:343 */
|
1819 2672 | pub fn map_of_pattern_string(
|
1820 2673 | mut self,
|
1821 2674 | input: ::std::option::Option<
|
1822 2675 | ::std::collections::HashMap<
|
1823 2676 | crate::model::PatternString,
|
1824 2677 | crate::model::PatternString,
|
1825 2678 | >,
|
1826 2679 | >,
|
1827 2680 | ) -> Self {
|
1828 - | self.map_of_pattern_string = input.map(
|
1829 - | #[allow(clippy::redundant_closure)]
|
1830 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1831 - | );
|
2681 + | /* ServerBuilderGenerator.kt:344 */
|
2682 + | self.map_of_pattern_string =
|
2683 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
2684 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
2685 + | /* ServerBuilderGenerator.kt:369 */)
|
2686 + | /* ServerBuilderGenerator.kt:344 */;
|
1832 2687 | self
|
2688 + | /* ServerBuilderGenerator.kt:343 */
|
1833 2689 | }
|
2690 + | /* ServerBuilderGenerator.kt:426 */
|
1834 2691 | #[allow(missing_docs)] // documentation missing in model
|
2692 + | /* ServerBuilderGenerator.kt:428 */
|
1835 2693 | pub(crate) fn set_map_of_pattern_string(
|
1836 2694 | mut self,
|
1837 2695 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
1838 2696 | ) -> Self {
|
2697 + | /* ServerBuilderGenerator.kt:429 */
|
1839 2698 | self.map_of_pattern_string = input.map(|v| v.into());
|
1840 2699 | self
|
2700 + | /* ServerBuilderGenerator.kt:428 */
|
1841 2701 | }
|
1842 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1843 - | ///
|
2702 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2703 + | /// /* ServerBuilderGenerator.kt:260 */
|
1844 2704 | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1845 2705 | ///
|
2706 + | /* ServerBuilderGenerator.kt:271 */
|
1846 2707 | pub fn build(
|
1847 2708 | self,
|
1848 2709 | ) -> Result<
|
1849 2710 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
1850 2711 | ConstraintViolation,
|
1851 2712 | > {
|
1852 2713 | self.build_enforcing_all_constraints()
|
1853 2714 | }
|
2715 + | /* ServerBuilderGenerator.kt:283 */
|
1854 2716 | fn build_enforcing_all_constraints(
|
1855 2717 | self,
|
1856 2718 | ) -> Result<
|
1857 2719 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
1858 2720 | ConstraintViolation,
|
1859 2721 | > {
|
2722 + | /* ServerBuilderGenerator.kt:287 */
|
1860 2723 | Ok(
|
2724 + | /* ServerBuilderGenerator.kt:542 */
|
1861 2725 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2726 + | /* ServerBuilderGenerator.kt:546 */
|
1862 2727 | map_of_pattern_string: self
|
1863 2728 | .map_of_pattern_string
|
2729 + | /* ServerBuilderGenerator.kt:602 */
|
1864 2730 | .map(|v| match v {
|
1865 2731 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1866 2732 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1867 2733 | })
|
2734 + | /* ServerBuilderGenerator.kt:614 */
|
1868 2735 | .map(|res| {
|
1869 2736 | res.map(|v| v.into())
|
1870 2737 | .map_err(ConstraintViolation::MapOfPatternString)
|
1871 2738 | })
|
1872 2739 | .transpose()?,
|
1873 - | },
|
2740 + | /* ServerBuilderGenerator.kt:542 */
|
2741 + | }, /* ServerBuilderGenerator.kt:287 */
|
1874 2742 | )
|
2743 + | /* ServerBuilderGenerator.kt:283 */
|
1875 2744 | }
|
2745 + | /* ServerBuilderGenerator.kt:215 */
|
1876 2746 | }
|
2747 + |
|
2748 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1877 2749 | }
|
1878 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2750 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
1879 2751 | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
1880 2752 |
|
2753 + | /* RustType.kt:516 */
|
1881 2754 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1882 - | /// Holds one variant for each of the ways the builder can fail.
|
2755 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2756 + | /* RustType.kt:516 */
|
1883 2757 | #[non_exhaustive]
|
2758 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1884 2759 | #[allow(clippy::enum_variant_names)]
|
1885 2760 | pub enum ConstraintViolation {
|
1886 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
2761 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
2762 + | /* RustType.kt:516 */
|
1887 2763 | #[doc(hidden)]
|
2764 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1888 2765 | MapOfListOfEnumString(crate::model::map_of_list_of_enum_string::ConstraintViolation),
|
2766 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1889 2767 | }
|
2768 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1890 2769 | impl ::std::fmt::Display for ConstraintViolation {
|
2770 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1891 2771 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2772 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1892 2773 | match self {
|
1893 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
1894 - | }
|
2774 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
2775 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2776 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1895 2777 | }
|
2778 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1896 2779 | }
|
2780 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1897 2781 | impl ::std::error::Error for ConstraintViolation {}
|
2782 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1898 2783 | impl ConstraintViolation {
|
1899 2784 | pub(crate) fn as_validation_exception_field(
|
1900 2785 | self,
|
1901 2786 | path: ::std::string::String,
|
1902 2787 | ) -> crate::model::ValidationExceptionField {
|
1903 2788 | match self {
|
1904 2789 | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
1905 2790 | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
1906 2791 | }
|
1907 2792 | }
|
1908 2793 | }
|
1909 2794 | }
|
2795 + | /* ServerBuilderGenerator.kt:234 */
|
1910 2796 | impl ::std::convert::From<ConstraintViolation>
|
1911 2797 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1912 2798 | {
|
1913 2799 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1914 2800 | let first_validation_exception_field =
|
1915 2801 | constraint_violation.as_validation_exception_field("".to_owned());
|
1916 2802 | let validation_exception = crate::error::ValidationException {
|
1917 2803 | message: format!(
|
1918 2804 | "1 validation error detected. {}",
|
1919 2805 | &first_validation_exception_field.message
|
1920 2806 | ),
|
1921 2807 | field_list: Some(vec![first_validation_exception_field]),
|
1922 2808 | };
|
1923 2809 | Self::ConstraintViolation(
|
1924 2810 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1925 2811 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1926 2812 | )
|
1927 2813 | }
|
1928 2814 | }
|
2815 + | /* ServerBuilderGenerator.kt:244 */
|
1929 2816 | impl ::std::convert::From<Builder>
|
1930 2817 | for crate::constrained::MaybeConstrained<
|
1931 2818 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
1932 2819 | >
|
1933 2820 | {
|
1934 2821 | fn from(builder: Builder) -> Self {
|
1935 2822 | Self::Unconstrained(builder)
|
1936 2823 | }
|
1937 2824 | }
|
2825 + | /* ServerBuilderGenerator.kt:446 */
|
1938 2826 | impl ::std::convert::TryFrom<Builder>
|
1939 2827 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
1940 2828 | {
|
1941 2829 | type Error = ConstraintViolation;
|
1942 2830 |
|
1943 2831 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1944 2832 | builder.build()
|
1945 2833 | }
|
1946 2834 | }
|
1947 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2835 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2836 + | /* RustType.kt:516 */
|
1948 2837 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2838 + | /* ServerBuilderGenerator.kt:211 */
|
1949 2839 | pub struct Builder {
|
1950 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
1951 - | }
|
2840 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
2841 + | /* ServerBuilderGenerator.kt:211 */}
|
2842 + | /* ServerBuilderGenerator.kt:215 */
|
1952 2843 | impl Builder {
|
2844 + | /* ServerBuilderGenerator.kt:331 */
|
1953 2845 | #[allow(missing_docs)] // documentation missing in model
|
2846 + | /* ServerBuilderGenerator.kt:343 */
|
1954 2847 | pub fn map_of_list_of_enum_string(
|
1955 2848 | mut self,
|
1956 2849 | input: ::std::option::Option<
|
1957 2850 | ::std::collections::HashMap<
|
1958 2851 | crate::model::EnumString,
|
1959 2852 | ::std::vec::Vec<crate::model::EnumString>,
|
1960 2853 | >,
|
1961 2854 | >,
|
1962 2855 | ) -> Self {
|
1963 - | self.map_of_list_of_enum_string = input.map(
|
1964 - | #[allow(clippy::redundant_closure)]
|
1965 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
1966 - | );
|
2856 + | /* ServerBuilderGenerator.kt:344 */
|
2857 + | self.map_of_list_of_enum_string =
|
2858 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
2859 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
2860 + | /* ServerBuilderGenerator.kt:369 */)
|
2861 + | /* ServerBuilderGenerator.kt:344 */;
|
1967 2862 | self
|
2863 + | /* ServerBuilderGenerator.kt:343 */
|
1968 2864 | }
|
2865 + | /* ServerBuilderGenerator.kt:426 */
|
1969 2866 | #[allow(missing_docs)] // documentation missing in model
|
2867 + | /* ServerBuilderGenerator.kt:428 */
|
1970 2868 | pub(crate) fn set_map_of_list_of_enum_string(
|
1971 2869 | mut self,
|
1972 2870 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
1973 2871 | ) -> Self {
|
2872 + | /* ServerBuilderGenerator.kt:429 */
|
1974 2873 | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
1975 2874 | self
|
2875 + | /* ServerBuilderGenerator.kt:428 */
|
1976 2876 | }
|
1977 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
1978 - | ///
|
2877 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2878 + | /// /* ServerBuilderGenerator.kt:260 */
|
1979 2879 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1980 2880 | ///
|
2881 + | /* ServerBuilderGenerator.kt:271 */
|
1981 2882 | pub fn build(
|
1982 2883 | self,
|
1983 2884 | ) -> Result<
|
1984 2885 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
1985 2886 | ConstraintViolation,
|
1986 2887 | > {
|
1987 2888 | self.build_enforcing_all_constraints()
|
1988 2889 | }
|
2890 + | /* ServerBuilderGenerator.kt:283 */
|
1989 2891 | fn build_enforcing_all_constraints(
|
1990 2892 | self,
|
1991 2893 | ) -> Result<
|
1992 2894 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
1993 2895 | ConstraintViolation,
|
1994 2896 | > {
|
2897 + | /* ServerBuilderGenerator.kt:287 */
|
1995 2898 | Ok(
|
2899 + | /* ServerBuilderGenerator.kt:542 */
|
1996 2900 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2901 + | /* ServerBuilderGenerator.kt:546 */
|
1997 2902 | map_of_list_of_enum_string: self
|
1998 2903 | .map_of_list_of_enum_string
|
2904 + | /* ServerBuilderGenerator.kt:602 */
|
1999 2905 | .map(|v| match v {
|
2000 2906 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2001 2907 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2002 2908 | })
|
2909 + | /* ServerBuilderGenerator.kt:614 */
|
2003 2910 | .map(|res| {
|
2004 2911 | res.map(|v| v.into())
|
2005 2912 | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
2006 2913 | })
|
2007 2914 | .transpose()?,
|
2008 - | },
|
2915 + | /* ServerBuilderGenerator.kt:542 */
|
2916 + | }, /* ServerBuilderGenerator.kt:287 */
|
2009 2917 | )
|
2918 + | /* ServerBuilderGenerator.kt:283 */
|
2010 2919 | }
|
2920 + | /* ServerBuilderGenerator.kt:215 */
|
2011 2921 | }
|
2922 + |
|
2923 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2012 2924 | }
|
2013 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2925 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2014 2926 | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
2015 2927 |
|
2928 + | /* RustType.kt:516 */
|
2016 2929 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2017 - | /// Holds one variant for each of the ways the builder can fail.
|
2930 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2931 + | /* RustType.kt:516 */
|
2018 2932 | #[non_exhaustive]
|
2933 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2019 2934 | #[allow(clippy::enum_variant_names)]
|
2020 2935 | pub enum ConstraintViolation {
|
2021 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
2936 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
2937 + | /* RustType.kt:516 */
|
2022 2938 | #[doc(hidden)]
|
2939 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2023 2940 | MapOfLengthListOfPatternString(
|
2024 2941 | crate::model::map_of_length_list_of_pattern_string::ConstraintViolation,
|
2025 2942 | ),
|
2943 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2026 2944 | }
|
2945 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2027 2946 | impl ::std::fmt::Display for ConstraintViolation {
|
2947 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2028 2948 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2949 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2029 2950 | match self {
|
2030 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
2031 - | }
|
2951 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
2952 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2953 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2032 2954 | }
|
2955 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2033 2956 | }
|
2957 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2034 2958 | impl ::std::error::Error for ConstraintViolation {}
|
2959 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2035 2960 | impl ConstraintViolation {
|
2036 2961 | pub(crate) fn as_validation_exception_field(
|
2037 2962 | self,
|
2038 2963 | path: ::std::string::String,
|
2039 2964 | ) -> crate::model::ValidationExceptionField {
|
2040 2965 | match self {
|
2041 2966 | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
2042 2967 | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
2043 2968 | }
|
2044 2969 | }
|
2045 2970 | }
|
2046 2971 | }
|
2972 + | /* ServerBuilderGenerator.kt:234 */
|
2047 2973 | impl ::std::convert::From<ConstraintViolation>
|
2048 2974 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2049 2975 | {
|
2050 2976 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2051 2977 | let first_validation_exception_field =
|
2052 2978 | constraint_violation.as_validation_exception_field("".to_owned());
|
2053 2979 | let validation_exception = crate::error::ValidationException {
|
2054 2980 | message: format!(
|
2055 2981 | "1 validation error detected. {}",
|
2056 2982 | &first_validation_exception_field.message
|
2057 2983 | ),
|
2058 2984 | field_list: Some(vec![first_validation_exception_field]),
|
2059 2985 | };
|
2060 2986 | Self::ConstraintViolation(
|
2061 2987 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2062 2988 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2063 2989 | )
|
2064 2990 | }
|
2065 2991 | }
|
2992 + | /* ServerBuilderGenerator.kt:244 */
|
2066 2993 | impl ::std::convert::From<Builder>
|
2067 2994 | for crate::constrained::MaybeConstrained<
|
2068 2995 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2069 2996 | >
|
2070 2997 | {
|
2071 2998 | fn from(builder: Builder) -> Self {
|
2072 2999 | Self::Unconstrained(builder)
|
2073 3000 | }
|
2074 3001 | }
|
3002 + | /* ServerBuilderGenerator.kt:446 */
|
2075 3003 | impl ::std::convert::TryFrom<Builder>
|
2076 3004 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2077 3005 | {
|
2078 3006 | type Error = ConstraintViolation;
|
2079 3007 |
|
2080 3008 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2081 3009 | builder.build()
|
2082 3010 | }
|
2083 3011 | }
|
2084 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3012 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3013 + | /* RustType.kt:516 */
|
2085 3014 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3015 + | /* ServerBuilderGenerator.kt:211 */
|
2086 3016 | pub struct Builder {
|
2087 - | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>,
|
2088 - | }
|
3017 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>,
|
3018 + | /* ServerBuilderGenerator.kt:211 */}
|
3019 + | /* ServerBuilderGenerator.kt:215 */
|
2089 3020 | impl Builder {
|
3021 + | /* ServerBuilderGenerator.kt:331 */
|
2090 3022 | #[allow(missing_docs)] // documentation missing in model
|
3023 + | /* ServerBuilderGenerator.kt:343 */
|
2091 3024 | pub fn map_of_length_list_of_pattern_string(
|
2092 3025 | mut self,
|
2093 3026 | input: ::std::option::Option<
|
2094 3027 | ::std::collections::HashMap<
|
2095 3028 | crate::model::PatternString,
|
2096 3029 | crate::model::LengthListOfPatternString,
|
2097 3030 | >,
|
2098 3031 | >,
|
2099 3032 | ) -> Self {
|
2100 - | self.map_of_length_list_of_pattern_string = input.map(
|
2101 - | #[allow(clippy::redundant_closure)]
|
2102 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
2103 - | );
|
3033 + | /* ServerBuilderGenerator.kt:344 */
|
3034 + | self.map_of_length_list_of_pattern_string =
|
3035 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
3036 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
3037 + | /* ServerBuilderGenerator.kt:369 */)
|
3038 + | /* ServerBuilderGenerator.kt:344 */;
|
2104 3039 | self
|
3040 + | /* ServerBuilderGenerator.kt:343 */
|
2105 3041 | }
|
3042 + | /* ServerBuilderGenerator.kt:426 */
|
2106 3043 | #[allow(missing_docs)] // documentation missing in model
|
3044 + | /* ServerBuilderGenerator.kt:428 */
|
2107 3045 | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
2108 3046 | mut self,
|
2109 3047 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
2110 3048 | ) -> Self {
|
3049 + | /* ServerBuilderGenerator.kt:429 */
|
2111 3050 | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
2112 3051 | self
|
3052 + | /* ServerBuilderGenerator.kt:428 */
|
2113 3053 | }
|
2114 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2115 - | ///
|
3054 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3055 + | /// /* ServerBuilderGenerator.kt:260 */
|
2116 3056 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2117 3057 | ///
|
3058 + | /* ServerBuilderGenerator.kt:271 */
|
2118 3059 | pub fn build(
|
2119 3060 | self,
|
2120 3061 | ) -> Result<
|
2121 3062 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2122 3063 | ConstraintViolation,
|
2123 3064 | > {
|
2124 3065 | self.build_enforcing_all_constraints()
|
2125 3066 | }
|
3067 + | /* ServerBuilderGenerator.kt:283 */
|
2126 3068 | fn build_enforcing_all_constraints(
|
2127 3069 | self,
|
2128 3070 | ) -> Result<
|
2129 3071 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2130 3072 | ConstraintViolation,
|
2131 3073 | > {
|
3074 + | /* ServerBuilderGenerator.kt:287 */
|
2132 3075 | Ok(
|
3076 + | /* ServerBuilderGenerator.kt:542 */
|
2133 3077 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3078 + | /* ServerBuilderGenerator.kt:546 */
|
2134 3079 | map_of_length_list_of_pattern_string: self
|
2135 3080 | .map_of_length_list_of_pattern_string
|
3081 + | /* ServerBuilderGenerator.kt:602 */
|
2136 3082 | .map(|v| match v {
|
2137 3083 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2138 3084 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2139 3085 | })
|
3086 + | /* ServerBuilderGenerator.kt:614 */
|
2140 3087 | .map(|res| {
|
2141 3088 | res.map(|v| v.into())
|
2142 3089 | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
2143 3090 | })
|
2144 3091 | .transpose()?,
|
2145 - | },
|
3092 + | /* ServerBuilderGenerator.kt:542 */
|
3093 + | }, /* ServerBuilderGenerator.kt:287 */
|
2146 3094 | )
|
3095 + | /* ServerBuilderGenerator.kt:283 */
|
2147 3096 | }
|
3097 + | /* ServerBuilderGenerator.kt:215 */
|
2148 3098 | }
|
3099 + |
|
3100 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2149 3101 | }
|
2150 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3102 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2151 3103 | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
2152 3104 |
|
3105 + | /* RustType.kt:516 */
|
2153 3106 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2154 - | /// Holds one variant for each of the ways the builder can fail.
|
3107 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3108 + | /* RustType.kt:516 */
|
2155 3109 | #[non_exhaustive]
|
3110 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2156 3111 | #[allow(clippy::enum_variant_names)]
|
2157 3112 | pub enum ConstraintViolation {
|
2158 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3113 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3114 + | /* RustType.kt:516 */
|
2159 3115 | #[doc(hidden)]
|
3116 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2160 3117 | MapOfSetOfLengthString(crate::model::map_of_set_of_length_string::ConstraintViolation),
|
3118 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2161 3119 | }
|
3120 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2162 3121 | impl ::std::fmt::Display for ConstraintViolation {
|
3122 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2163 3123 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3124 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2164 3125 | match self {
|
2165 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
2166 - | }
|
3126 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3127 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3128 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2167 3129 | }
|
3130 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2168 3131 | }
|
3132 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2169 3133 | impl ::std::error::Error for ConstraintViolation {}
|
3134 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2170 3135 | impl ConstraintViolation {
|
2171 3136 | pub(crate) fn as_validation_exception_field(
|
2172 3137 | self,
|
2173 3138 | path: ::std::string::String,
|
2174 3139 | ) -> crate::model::ValidationExceptionField {
|
2175 3140 | match self {
|
2176 3141 | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
2177 3142 | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
2178 3143 | }
|
2179 3144 | }
|
2180 3145 | }
|
2181 3146 | }
|
3147 + | /* ServerBuilderGenerator.kt:234 */
|
2182 3148 | impl ::std::convert::From<ConstraintViolation>
|
2183 3149 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2184 3150 | {
|
2185 3151 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2186 3152 | let first_validation_exception_field =
|
2187 3153 | constraint_violation.as_validation_exception_field("".to_owned());
|
2188 3154 | let validation_exception = crate::error::ValidationException {
|
2189 3155 | message: format!(
|
2190 3156 | "1 validation error detected. {}",
|
2191 3157 | &first_validation_exception_field.message
|
2192 3158 | ),
|
2193 3159 | field_list: Some(vec![first_validation_exception_field]),
|
2194 3160 | };
|
2195 3161 | Self::ConstraintViolation(
|
2196 3162 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2197 3163 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2198 3164 | )
|
2199 3165 | }
|
2200 3166 | }
|
3167 + | /* ServerBuilderGenerator.kt:244 */
|
2201 3168 | impl ::std::convert::From<Builder>
|
2202 3169 | for crate::constrained::MaybeConstrained<
|
2203 3170 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2204 3171 | >
|
2205 3172 | {
|
2206 3173 | fn from(builder: Builder) -> Self {
|
2207 3174 | Self::Unconstrained(builder)
|
2208 3175 | }
|
2209 3176 | }
|
3177 + | /* ServerBuilderGenerator.kt:446 */
|
2210 3178 | impl ::std::convert::TryFrom<Builder>
|
2211 3179 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
2212 3180 | {
|
2213 3181 | type Error = ConstraintViolation;
|
2214 3182 |
|
2215 3183 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2216 3184 | builder.build()
|
2217 3185 | }
|
2218 3186 | }
|
2219 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3187 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3188 + | /* RustType.kt:516 */
|
2220 3189 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3190 + | /* ServerBuilderGenerator.kt:211 */
|
2221 3191 | pub struct Builder {
|
2222 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
2223 - | }
|
3192 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
3193 + | /* ServerBuilderGenerator.kt:211 */}
|
3194 + | /* ServerBuilderGenerator.kt:215 */
|
2224 3195 | impl Builder {
|
3196 + | /* ServerBuilderGenerator.kt:331 */
|
2225 3197 | #[allow(missing_docs)] // documentation missing in model
|
3198 + | /* ServerBuilderGenerator.kt:343 */
|
2226 3199 | pub fn map_of_set_of_length_string(
|
2227 3200 | mut self,
|
2228 3201 | input: ::std::option::Option<
|
2229 3202 | ::std::collections::HashMap<
|
2230 3203 | crate::model::LengthString,
|
2231 3204 | crate::model::SetOfLengthString,
|
2232 3205 | >,
|
2233 3206 | >,
|
2234 3207 | ) -> Self {
|
2235 - | self.map_of_set_of_length_string = input.map(
|
2236 - | #[allow(clippy::redundant_closure)]
|
2237 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
2238 - | );
|
3208 + | /* ServerBuilderGenerator.kt:344 */
|
3209 + | self.map_of_set_of_length_string =
|
3210 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
3211 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
3212 + | /* ServerBuilderGenerator.kt:369 */)
|
3213 + | /* ServerBuilderGenerator.kt:344 */;
|
2239 3214 | self
|
3215 + | /* ServerBuilderGenerator.kt:343 */
|
2240 3216 | }
|
3217 + | /* ServerBuilderGenerator.kt:426 */
|
2241 3218 | #[allow(missing_docs)] // documentation missing in model
|
3219 + | /* ServerBuilderGenerator.kt:428 */
|
2242 3220 | pub(crate) fn set_map_of_set_of_length_string(
|
2243 3221 | mut self,
|
2244 3222 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
2245 3223 | ) -> Self {
|
3224 + | /* ServerBuilderGenerator.kt:429 */
|
2246 3225 | self.map_of_set_of_length_string = input.map(|v| v.into());
|
2247 3226 | self
|
3227 + | /* ServerBuilderGenerator.kt:428 */
|
2248 3228 | }
|
2249 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2250 - | ///
|
3229 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3230 + | /// /* ServerBuilderGenerator.kt:260 */
|
2251 3231 | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2252 3232 | ///
|
3233 + | /* ServerBuilderGenerator.kt:271 */
|
2253 3234 | pub fn build(
|
2254 3235 | self,
|
2255 3236 | ) -> Result<
|
2256 3237 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2257 3238 | ConstraintViolation,
|
2258 3239 | > {
|
2259 3240 | self.build_enforcing_all_constraints()
|
2260 3241 | }
|
3242 + | /* ServerBuilderGenerator.kt:283 */
|
2261 3243 | fn build_enforcing_all_constraints(
|
2262 3244 | self,
|
2263 3245 | ) -> Result<
|
2264 3246 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2265 3247 | ConstraintViolation,
|
2266 3248 | > {
|
3249 + | /* ServerBuilderGenerator.kt:287 */
|
2267 3250 | Ok(
|
3251 + | /* ServerBuilderGenerator.kt:542 */
|
2268 3252 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3253 + | /* ServerBuilderGenerator.kt:546 */
|
2269 3254 | map_of_set_of_length_string: self
|
2270 3255 | .map_of_set_of_length_string
|
3256 + | /* ServerBuilderGenerator.kt:602 */
|
2271 3257 | .map(|v| match v {
|
2272 3258 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2273 3259 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2274 3260 | })
|
3261 + | /* ServerBuilderGenerator.kt:614 */
|
2275 3262 | .map(|res| {
|
2276 3263 | res.map(|v| v.into())
|
2277 3264 | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
2278 3265 | })
|
2279 3266 | .transpose()?,
|
2280 - | },
|
3267 + | /* ServerBuilderGenerator.kt:542 */
|
3268 + | }, /* ServerBuilderGenerator.kt:287 */
|
2281 3269 | )
|
3270 + | /* ServerBuilderGenerator.kt:283 */
|
2282 3271 | }
|
3272 + | /* ServerBuilderGenerator.kt:215 */
|
2283 3273 | }
|
3274 + |
|
3275 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2284 3276 | }
|
2285 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3277 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2286 3278 | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
2287 3279 |
|
3280 + | /* RustType.kt:516 */
|
2288 3281 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2289 - | /// Holds one variant for each of the ways the builder can fail.
|
3282 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3283 + | /* RustType.kt:516 */
|
2290 3284 | #[non_exhaustive]
|
3285 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2291 3286 | #[allow(clippy::enum_variant_names)]
|
2292 3287 | pub enum ConstraintViolation {
|
2293 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3288 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3289 + | /* RustType.kt:516 */
|
2294 3290 | #[doc(hidden)]
|
3291 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2295 3292 | MapOfListOfLengthString(crate::model::map_of_list_of_length_string::ConstraintViolation),
|
3293 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2296 3294 | }
|
3295 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2297 3296 | impl ::std::fmt::Display for ConstraintViolation {
|
3297 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2298 3298 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3299 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2299 3300 | match self {
|
2300 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
2301 - | }
|
3301 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3302 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3303 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2302 3304 | }
|
3305 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2303 3306 | }
|
3307 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2304 3308 | impl ::std::error::Error for ConstraintViolation {}
|
3309 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2305 3310 | impl ConstraintViolation {
|
2306 3311 | pub(crate) fn as_validation_exception_field(
|
2307 3312 | self,
|
2308 3313 | path: ::std::string::String,
|
2309 3314 | ) -> crate::model::ValidationExceptionField {
|
2310 3315 | match self {
|
2311 3316 | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
2312 3317 | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
2313 3318 | }
|
2314 3319 | }
|
2315 3320 | }
|
2316 3321 | }
|
3322 + | /* ServerBuilderGenerator.kt:234 */
|
2317 3323 | impl ::std::convert::From<ConstraintViolation>
|
2318 3324 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2319 3325 | {
|
2320 3326 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2321 3327 | let first_validation_exception_field =
|
2322 3328 | constraint_violation.as_validation_exception_field("".to_owned());
|
2323 3329 | let validation_exception = crate::error::ValidationException {
|
2324 3330 | message: format!(
|
2325 3331 | "1 validation error detected. {}",
|
2326 3332 | &first_validation_exception_field.message
|
2327 3333 | ),
|
2328 3334 | field_list: Some(vec![first_validation_exception_field]),
|
2329 3335 | };
|
2330 3336 | Self::ConstraintViolation(
|
2331 3337 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2332 3338 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2333 3339 | )
|
2334 3340 | }
|
2335 3341 | }
|
3342 + | /* ServerBuilderGenerator.kt:244 */
|
2336 3343 | impl ::std::convert::From<Builder>
|
2337 3344 | for crate::constrained::MaybeConstrained<
|
2338 3345 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2339 3346 | >
|
2340 3347 | {
|
2341 3348 | fn from(builder: Builder) -> Self {
|
2342 3349 | Self::Unconstrained(builder)
|
2343 3350 | }
|
2344 3351 | }
|
3352 + | /* ServerBuilderGenerator.kt:446 */
|
2345 3353 | impl ::std::convert::TryFrom<Builder>
|
2346 3354 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
2347 3355 | {
|
2348 3356 | type Error = ConstraintViolation;
|
2349 3357 |
|
2350 3358 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2351 3359 | builder.build()
|
2352 3360 | }
|
2353 3361 | }
|
2354 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3362 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3363 + | /* RustType.kt:516 */
|
2355 3364 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3365 + | /* ServerBuilderGenerator.kt:211 */
|
2356 3366 | pub struct Builder {
|
2357 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
2358 - | }
|
3367 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
3368 + | /* ServerBuilderGenerator.kt:211 */}
|
3369 + | /* ServerBuilderGenerator.kt:215 */
|
2359 3370 | impl Builder {
|
3371 + | /* ServerBuilderGenerator.kt:331 */
|
2360 3372 | #[allow(missing_docs)] // documentation missing in model
|
3373 + | /* ServerBuilderGenerator.kt:343 */
|
2361 3374 | pub fn map_of_list_of_length_string(
|
2362 3375 | mut self,
|
2363 3376 | input: ::std::option::Option<
|
2364 3377 | ::std::collections::HashMap<
|
2365 3378 | crate::model::LengthString,
|
2366 3379 | ::std::vec::Vec<crate::model::LengthString>,
|
2367 3380 | >,
|
2368 3381 | >,
|
2369 3382 | ) -> Self {
|
2370 - | self.map_of_list_of_length_string = input.map(
|
2371 - | #[allow(clippy::redundant_closure)]
|
2372 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
2373 - | );
|
3383 + | /* ServerBuilderGenerator.kt:344 */
|
3384 + | self.map_of_list_of_length_string =
|
3385 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
3386 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
3387 + | /* ServerBuilderGenerator.kt:369 */)
|
3388 + | /* ServerBuilderGenerator.kt:344 */;
|
2374 3389 | self
|
3390 + | /* ServerBuilderGenerator.kt:343 */
|
2375 3391 | }
|
3392 + | /* ServerBuilderGenerator.kt:426 */
|
2376 3393 | #[allow(missing_docs)] // documentation missing in model
|
3394 + | /* ServerBuilderGenerator.kt:428 */
|
2377 3395 | pub(crate) fn set_map_of_list_of_length_string(
|
2378 3396 | mut self,
|
2379 3397 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
2380 3398 | ) -> Self {
|
3399 + | /* ServerBuilderGenerator.kt:429 */
|
2381 3400 | self.map_of_list_of_length_string = input.map(|v| v.into());
|
2382 3401 | self
|
3402 + | /* ServerBuilderGenerator.kt:428 */
|
2383 3403 | }
|
2384 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2385 - | ///
|
3404 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3405 + | /// /* ServerBuilderGenerator.kt:260 */
|
2386 3406 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2387 3407 | ///
|
3408 + | /* ServerBuilderGenerator.kt:271 */
|
2388 3409 | pub fn build(
|
2389 3410 | self,
|
2390 3411 | ) -> Result<
|
2391 3412 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2392 3413 | ConstraintViolation,
|
2393 3414 | > {
|
2394 3415 | self.build_enforcing_all_constraints()
|
2395 3416 | }
|
3417 + | /* ServerBuilderGenerator.kt:283 */
|
2396 3418 | fn build_enforcing_all_constraints(
|
2397 3419 | self,
|
2398 3420 | ) -> Result<
|
2399 3421 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2400 3422 | ConstraintViolation,
|
2401 3423 | > {
|
3424 + | /* ServerBuilderGenerator.kt:287 */
|
2402 3425 | Ok(
|
3426 + | /* ServerBuilderGenerator.kt:542 */
|
2403 3427 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3428 + | /* ServerBuilderGenerator.kt:546 */
|
2404 3429 | map_of_list_of_length_string: self
|
2405 3430 | .map_of_list_of_length_string
|
3431 + | /* ServerBuilderGenerator.kt:602 */
|
2406 3432 | .map(|v| match v {
|
2407 3433 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2408 3434 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2409 3435 | })
|
3436 + | /* ServerBuilderGenerator.kt:614 */
|
2410 3437 | .map(|res| {
|
2411 3438 | res.map(|v| v.into())
|
2412 3439 | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
2413 3440 | })
|
2414 3441 | .transpose()?,
|
2415 - | },
|
3442 + | /* ServerBuilderGenerator.kt:542 */
|
3443 + | }, /* ServerBuilderGenerator.kt:287 */
|
2416 3444 | )
|
3445 + | /* ServerBuilderGenerator.kt:283 */
|
2417 3446 | }
|
3447 + | /* ServerBuilderGenerator.kt:215 */
|
2418 3448 | }
|
3449 + |
|
3450 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2419 3451 | }
|
2420 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3452 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2421 3453 | pub mod query_params_targeting_map_of_length_string_operation_input {
|
2422 3454 |
|
3455 + | /* RustType.kt:516 */
|
2423 3456 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2424 - | /// Holds one variant for each of the ways the builder can fail.
|
3457 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3458 + | /* RustType.kt:516 */
|
2425 3459 | #[non_exhaustive]
|
3460 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2426 3461 | #[allow(clippy::enum_variant_names)]
|
2427 3462 | pub enum ConstraintViolation {
|
2428 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
3463 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
3464 + | /* RustType.kt:516 */
|
2429 3465 | #[doc(hidden)]
|
3466 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2430 3467 | MapOfLengthString(crate::model::map_of_length_string::ConstraintViolation),
|
3468 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2431 3469 | }
|
3470 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2432 3471 | impl ::std::fmt::Display for ConstraintViolation {
|
3472 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2433 3473 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3474 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2434 3475 | match self {
|
2435 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
2436 - | }
|
3476 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
3477 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3478 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2437 3479 | }
|
3480 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2438 3481 | }
|
3482 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2439 3483 | impl ::std::error::Error for ConstraintViolation {}
|
3484 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2440 3485 | impl ConstraintViolation {
|
2441 3486 | pub(crate) fn as_validation_exception_field(
|
2442 3487 | self,
|
2443 3488 | path: ::std::string::String,
|
2444 3489 | ) -> crate::model::ValidationExceptionField {
|
2445 3490 | match self {
|
2446 3491 | ConstraintViolation::MapOfLengthString(inner) => {
|
2447 3492 | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
2448 3493 | }
|
2449 3494 | }
|
2450 3495 | }
|
2451 3496 | }
|
3497 + | /* ServerBuilderGenerator.kt:234 */
|
2452 3498 | impl ::std::convert::From<ConstraintViolation>
|
2453 3499 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2454 3500 | {
|
2455 3501 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2456 3502 | let first_validation_exception_field =
|
2457 3503 | constraint_violation.as_validation_exception_field("".to_owned());
|
2458 3504 | let validation_exception = crate::error::ValidationException {
|
2459 3505 | message: format!(
|
2460 3506 | "1 validation error detected. {}",
|
2461 3507 | &first_validation_exception_field.message
|
2462 3508 | ),
|
2463 3509 | field_list: Some(vec![first_validation_exception_field]),
|
2464 3510 | };
|
2465 3511 | Self::ConstraintViolation(
|
2466 3512 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2467 3513 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2468 3514 | )
|
2469 3515 | }
|
2470 3516 | }
|
3517 + | /* ServerBuilderGenerator.kt:244 */
|
2471 3518 | impl ::std::convert::From<Builder>
|
2472 3519 | for crate::constrained::MaybeConstrained<
|
2473 3520 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2474 3521 | >
|
2475 3522 | {
|
2476 3523 | fn from(builder: Builder) -> Self {
|
2477 3524 | Self::Unconstrained(builder)
|
2478 3525 | }
|
2479 3526 | }
|
3527 + | /* ServerBuilderGenerator.kt:446 */
|
2480 3528 | impl ::std::convert::TryFrom<Builder>
|
2481 3529 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
2482 3530 | {
|
2483 3531 | type Error = ConstraintViolation;
|
2484 3532 |
|
2485 3533 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2486 3534 | builder.build()
|
2487 3535 | }
|
2488 3536 | }
|
2489 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3537 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3538 + | /* RustType.kt:516 */
|
2490 3539 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3540 + | /* ServerBuilderGenerator.kt:211 */
|
2491 3541 | pub struct Builder {
|
3542 + | /* ServerBuilderGenerator.kt:308 */
|
2492 3543 | pub(crate) map_of_length_string: ::std::option::Option<
|
2493 3544 | crate::constrained::MaybeConstrained<
|
2494 3545 | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
2495 3546 | >,
|
2496 3547 | >,
|
3548 + | /* ServerBuilderGenerator.kt:211 */
|
2497 3549 | }
|
3550 + | /* ServerBuilderGenerator.kt:215 */
|
2498 3551 | impl Builder {
|
3552 + | /* ServerBuilderGenerator.kt:331 */
|
2499 3553 | #[allow(missing_docs)] // documentation missing in model
|
3554 + | /* ServerBuilderGenerator.kt:343 */
|
2500 3555 | pub fn map_of_length_string(
|
2501 3556 | mut self,
|
2502 3557 | input: ::std::option::Option<
|
2503 3558 | ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
2504 3559 | >,
|
2505 3560 | ) -> Self {
|
2506 - | self.map_of_length_string = input.map(
|
2507 - | #[allow(clippy::redundant_closure)]
|
2508 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
2509 - | );
|
3561 + | /* ServerBuilderGenerator.kt:344 */
|
3562 + | self.map_of_length_string =
|
3563 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
3564 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
3565 + | /* ServerBuilderGenerator.kt:369 */)
|
3566 + | /* ServerBuilderGenerator.kt:344 */;
|
2510 3567 | self
|
3568 + | /* ServerBuilderGenerator.kt:343 */
|
2511 3569 | }
|
3570 + | /* ServerBuilderGenerator.kt:426 */
|
2512 3571 | #[allow(missing_docs)] // documentation missing in model
|
3572 + | /* ServerBuilderGenerator.kt:428 */
|
2513 3573 | pub(crate) fn set_map_of_length_string(
|
2514 3574 | mut self,
|
2515 3575 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
2516 3576 | ) -> Self {
|
3577 + | /* ServerBuilderGenerator.kt:429 */
|
2517 3578 | self.map_of_length_string = input.map(|v| v.into());
|
2518 3579 | self
|
3580 + | /* ServerBuilderGenerator.kt:428 */
|
2519 3581 | }
|
2520 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2521 - | ///
|
3582 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
3583 + | /// /* ServerBuilderGenerator.kt:260 */
|
2522 3584 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2523 3585 | ///
|
3586 + | /* ServerBuilderGenerator.kt:271 */
|
2524 3587 | pub fn build(
|
2525 3588 | self,
|
2526 3589 | ) -> Result<
|
2527 3590 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2528 3591 | ConstraintViolation,
|
2529 3592 | > {
|
2530 3593 | self.build_enforcing_all_constraints()
|
2531 3594 | }
|
3595 + | /* ServerBuilderGenerator.kt:283 */
|
2532 3596 | fn build_enforcing_all_constraints(
|
2533 3597 | self,
|
2534 3598 | ) -> Result<
|
2535 3599 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2536 3600 | ConstraintViolation,
|
2537 3601 | > {
|
3602 + | /* ServerBuilderGenerator.kt:287 */
|
2538 3603 | Ok(
|
3604 + | /* ServerBuilderGenerator.kt:542 */
|
2539 3605 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
3606 + | /* ServerBuilderGenerator.kt:546 */
|
2540 3607 | map_of_length_string: self
|
2541 3608 | .map_of_length_string
|
3609 + | /* ServerBuilderGenerator.kt:602 */
|
2542 3610 | .map(|v| match v {
|
2543 3611 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2544 3612 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2545 3613 | })
|
3614 + | /* ServerBuilderGenerator.kt:614 */
|
2546 3615 | .map(|res| {
|
2547 3616 | res.map(|v| v.into())
|
2548 3617 | .map_err(ConstraintViolation::MapOfLengthString)
|
2549 3618 | })
|
2550 3619 | .transpose()?,
|
2551 - | },
|
3620 + | /* ServerBuilderGenerator.kt:542 */
|
3621 + | }, /* ServerBuilderGenerator.kt:287 */
|
2552 3622 | )
|
3623 + | /* ServerBuilderGenerator.kt:283 */
|
2553 3624 | }
|
3625 + | /* ServerBuilderGenerator.kt:215 */
|
2554 3626 | }
|
3627 + |
|
3628 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2555 3629 | }
|
2556 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3630 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
2557 3631 | pub mod query_params_targeting_length_map_operation_input {
|
2558 3632 |
|
3633 + | /* RustType.kt:516 */
|
2559 3634 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2560 - | /// Holds one variant for each of the ways the builder can fail.
|
3635 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3636 + | /* RustType.kt:516 */
|
2561 3637 | #[non_exhaustive]
|
3638 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2562 3639 | #[allow(clippy::enum_variant_names)]
|
2563 3640 | pub enum ConstraintViolation {
|
2564 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
3641 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
3642 + | /* RustType.kt:516 */
|
2565 3643 | #[doc(hidden)]
|
3644 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2566 3645 | LengthMap(crate::model::con_b_map::ConstraintViolation),
|
3646 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2567 3647 | }
|
3648 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2568 3649 | impl ::std::fmt::Display for ConstraintViolation {
|
3650 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2569 3651 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3652 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2570 3653 | match self {
|
2571 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
2572 - | }
|
3654 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
3655 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3656 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2573 3657 | }
|
3658 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2574 3659 | }
|
3660 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2575 3661 | impl ::std::error::Error for ConstraintViolation {}
|
3662 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2576 3663 | impl ConstraintViolation {
|
2577 3664 | pub(crate) fn as_validation_exception_field(
|
2578 3665 | self,
|
2579 3666 | path: ::std::string::String,
|
2580 3667 | ) -> crate::model::ValidationExceptionField {
|
2581 3668 | match self {
|
2582 3669 | ConstraintViolation::LengthMap(inner) => {
|
2583 3670 | inner.as_validation_exception_field(path + "/lengthMap")
|
2584 3671 | }
|
2585 3672 | }
|
2586 3673 | }
|
2587 3674 | }
|
3675 + | /* ServerBuilderGenerator.kt:234 */
|
2588 3676 | impl ::std::convert::From<ConstraintViolation>
|
2589 3677 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2590 3678 | {
|
2591 3679 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2592 3680 | let first_validation_exception_field =
|
2593 3681 | constraint_violation.as_validation_exception_field("".to_owned());
|
2594 3682 | let validation_exception = crate::error::ValidationException {
|
2595 3683 | message: format!(
|
2596 3684 | "1 validation error detected. {}",
|
2597 3685 | &first_validation_exception_field.message
|
2598 3686 | ),
|
2599 3687 | field_list: Some(vec![first_validation_exception_field]),
|
2600 3688 | };
|
2601 3689 | Self::ConstraintViolation(
|
2602 3690 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2603 3691 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2604 3692 | )
|
2605 3693 | }
|
2606 3694 | }
|
3695 + | /* ServerBuilderGenerator.kt:244 */
|
2607 3696 | impl ::std::convert::From<Builder>
|
2608 3697 | for crate::constrained::MaybeConstrained<
|
2609 3698 | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
2610 3699 | >
|
2611 3700 | {
|
2612 3701 | fn from(builder: Builder) -> Self {
|
2613 3702 | Self::Unconstrained(builder)
|
2614 3703 | }
|
2615 3704 | }
|
3705 + | /* ServerBuilderGenerator.kt:446 */
|
2616 3706 | impl ::std::convert::TryFrom<Builder>
|
2617 3707 | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
2618 3708 | {
|
2619 3709 | type Error = ConstraintViolation;
|
2620 3710 |
|
2621 3711 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2622 3712 | builder.build()
|
2623 3713 | }
|
2624 3714 | }
|
2625 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3715 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3716 + | /* RustType.kt:516 */
|
2626 3717 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3718 + | /* ServerBuilderGenerator.kt:211 */
|
2627 3719 | pub struct Builder {
|
3720 + | /* ServerBuilderGenerator.kt:308 */
|
2628 3721 | pub(crate) length_map:
|
2629 3722 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
3723 + | /* ServerBuilderGenerator.kt:211 */
|
2630 3724 | }
|
3725 + | /* ServerBuilderGenerator.kt:215 */
|
2631 3726 | impl Builder {
|
3727 + | /* ServerBuilderGenerator.kt:331 */
|
2632 3728 | #[allow(missing_docs)] // documentation missing in model
|
3729 + | /* ServerBuilderGenerator.kt:343 */
|
2633 3730 | pub fn length_map(mut self, input: ::std::option::Option<crate::model::ConBMap>) -> Self {
|
2634 - | self.length_map = input.map(
|
2635 - | #[allow(clippy::redundant_closure)]
|
2636 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2637 - | );
|
3731 + | /* ServerBuilderGenerator.kt:344 */
|
3732 + | self.length_map =
|
3733 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
3734 + | /* ServerBuilderGenerator.kt:344 */;
|
2638 3735 | self
|
3736 + | /* ServerBuilderGenerator.kt:343 */
|
2639 3737 | }
|
3738 + | /* ServerBuilderGenerator.kt:426 */
|
2640 3739 | #[allow(missing_docs)] // documentation missing in model
|
3740 + | /* ServerBuilderGenerator.kt:428 */
|
2641 3741 | pub(crate) fn set_length_map(
|
2642 3742 | mut self,
|
2643 3743 | input: Option<
|
2644 3744 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2645 3745 | >,
|
2646 3746 | ) -> Self {
|
3747 + | /* ServerBuilderGenerator.kt:429 */
|
2647 3748 | self.length_map = input.map(|v| v.into());
|
2648 3749 | self
|
3750 + | /* ServerBuilderGenerator.kt:428 */
|
2649 3751 | }
|
2650 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
2651 - | ///
|
3752 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3753 + | /// /* ServerBuilderGenerator.kt:260 */
|
2652 3754 | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
2653 3755 | ///
|
3756 + | /* ServerBuilderGenerator.kt:271 */
|
2654 3757 | pub fn build(
|
2655 3758 | self,
|
2656 3759 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
2657 3760 | {
|
2658 3761 | self.build_enforcing_all_constraints()
|
2659 3762 | }
|
3763 + | /* ServerBuilderGenerator.kt:283 */
|
2660 3764 | fn build_enforcing_all_constraints(
|
2661 3765 | self,
|
2662 3766 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
2663 3767 | {
|
2664 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3768 + | /* ServerBuilderGenerator.kt:287 */
|
3769 + | Ok(
|
3770 + | /* ServerBuilderGenerator.kt:542 */
|
3771 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3772 + | /* ServerBuilderGenerator.kt:546 */
|
2665 3773 | length_map: self
|
2666 3774 | .length_map
|
3775 + | /* ServerBuilderGenerator.kt:602 */
|
2667 3776 | .map(|v| match v {
|
2668 3777 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2669 3778 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2670 3779 | })
|
3780 + | /* ServerBuilderGenerator.kt:614 */
|
2671 3781 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
2672 3782 | .transpose()?,
|
2673 - | })
|
3783 + | /* ServerBuilderGenerator.kt:542 */
|
3784 + | }, /* ServerBuilderGenerator.kt:287 */
|
3785 + | )
|
3786 + | /* ServerBuilderGenerator.kt:283 */
|
2674 3787 | }
|
3788 + | /* ServerBuilderGenerator.kt:215 */
|
2675 3789 | }
|
3790 + |
|
3791 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2676 3792 | }
|
2677 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3793 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
2678 3794 | pub mod constrained_recursive_shapes_operation_input {
|
2679 3795 |
|
3796 + | /* RustType.kt:516 */
|
2680 3797 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2681 - | /// Holds one variant for each of the ways the builder can fail.
|
3798 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3799 + | /* RustType.kt:516 */
|
2682 3800 | #[non_exhaustive]
|
3801 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2683 3802 | #[allow(clippy::enum_variant_names)]
|
2684 3803 | pub enum ConstraintViolation {
|
2685 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
3804 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
3805 + | /* RustType.kt:516 */
|
2686 3806 | #[doc(hidden)]
|
3807 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2687 3808 | Nested(crate::model::recursive_shapes_input_output_nested1::ConstraintViolation),
|
2688 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3809 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3810 + | /* ServerBuilderConstraintViolations.kt:143 */
|
2689 3811 | MissingRecursiveList,
|
2690 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
3812 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
3813 + | /* RustType.kt:516 */
|
2691 3814 | #[doc(hidden)]
|
3815 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2692 3816 | RecursiveList(crate::model::recursive_list::ConstraintViolation),
|
3817 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2693 3818 | }
|
3819 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2694 3820 | impl ::std::fmt::Display for ConstraintViolation {
|
3821 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2695 3822 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3823 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2696 3824 | match self {
|
2697 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
2698 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
2699 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
2700 - | }
|
3825 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3826 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3827 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3828 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3829 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2701 3830 | }
|
3831 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2702 3832 | }
|
3833 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2703 3834 | impl ::std::error::Error for ConstraintViolation {}
|
3835 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2704 3836 | impl ConstraintViolation {
|
2705 3837 | pub(crate) fn as_validation_exception_field(
|
2706 3838 | self,
|
2707 3839 | path: ::std::string::String,
|
2708 3840 | ) -> crate::model::ValidationExceptionField {
|
2709 3841 | match self {
|
2710 3842 | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
2711 3843 | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
2712 3844 | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
2713 3845 | path: path + "/recursiveList",
|
2714 3846 | },
|
2715 3847 | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
2716 3848 | }
|
2717 3849 | }
|
2718 3850 | }
|
3851 + | /* ServerBuilderGenerator.kt:234 */
|
2719 3852 | impl ::std::convert::From<ConstraintViolation>
|
2720 3853 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2721 3854 | {
|
2722 3855 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2723 3856 | let first_validation_exception_field =
|
2724 3857 | constraint_violation.as_validation_exception_field("".to_owned());
|
2725 3858 | let validation_exception = crate::error::ValidationException {
|
2726 3859 | message: format!(
|
2727 3860 | "1 validation error detected. {}",
|
2728 3861 | &first_validation_exception_field.message
|
2729 3862 | ),
|
2730 3863 | field_list: Some(vec![first_validation_exception_field]),
|
2731 3864 | };
|
2732 3865 | Self::ConstraintViolation(
|
2733 3866 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2734 3867 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2735 3868 | )
|
2736 3869 | }
|
2737 3870 | }
|
3871 + | /* ServerBuilderGenerator.kt:244 */
|
2738 3872 | impl ::std::convert::From<Builder>
|
2739 3873 | for crate::constrained::MaybeConstrained<
|
2740 3874 | crate::input::ConstrainedRecursiveShapesOperationInput,
|
2741 3875 | >
|
2742 3876 | {
|
2743 3877 | fn from(builder: Builder) -> Self {
|
2744 3878 | Self::Unconstrained(builder)
|
2745 3879 | }
|
2746 3880 | }
|
3881 + | /* ServerBuilderGenerator.kt:446 */
|
2747 3882 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
2748 3883 | type Error = ConstraintViolation;
|
2749 3884 |
|
2750 3885 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2751 3886 | builder.build()
|
2752 3887 | }
|
2753 3888 | }
|
2754 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3889 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3890 + | /* RustType.kt:516 */
|
2755 3891 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3892 + | /* ServerBuilderGenerator.kt:211 */
|
2756 3893 | pub struct Builder {
|
3894 + | /* ServerBuilderGenerator.kt:308 */
|
2757 3895 | pub(crate) nested: ::std::option::Option<
|
2758 3896 | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
2759 3897 | >,
|
3898 + | /* ServerBuilderGenerator.kt:308 */
|
2760 3899 | pub(crate) recursive_list: ::std::option::Option<
|
2761 3900 | crate::constrained::MaybeConstrained<
|
2762 3901 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
2763 3902 | >,
|
2764 3903 | >,
|
3904 + | /* ServerBuilderGenerator.kt:211 */
|
2765 3905 | }
|
3906 + | /* ServerBuilderGenerator.kt:215 */
|
2766 3907 | impl Builder {
|
3908 + | /* ServerBuilderGenerator.kt:331 */
|
2767 3909 | #[allow(missing_docs)] // documentation missing in model
|
3910 + | /* ServerBuilderGenerator.kt:343 */
|
2768 3911 | pub fn nested(
|
2769 3912 | mut self,
|
2770 3913 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2771 3914 | ) -> Self {
|
2772 - | self.nested = input.map(
|
2773 - | #[allow(clippy::redundant_closure)]
|
2774 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2775 - | );
|
3915 + | /* ServerBuilderGenerator.kt:344 */
|
3916 + | self.nested =
|
3917 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
3918 + | /* ServerBuilderGenerator.kt:344 */;
|
2776 3919 | self
|
3920 + | /* ServerBuilderGenerator.kt:343 */
|
2777 3921 | }
|
3922 + | /* ServerBuilderGenerator.kt:426 */
|
2778 3923 | #[allow(missing_docs)] // documentation missing in model
|
3924 + | /* ServerBuilderGenerator.kt:428 */
|
2779 3925 | pub(crate) fn set_nested(
|
2780 3926 | mut self,
|
2781 3927 | input: Option<
|
2782 3928 | impl ::std::convert::Into<
|
2783 3929 | crate::constrained::MaybeConstrained<
|
2784 3930 | crate::model::RecursiveShapesInputOutputNested1,
|
2785 3931 | >,
|
2786 3932 | >,
|
2787 3933 | >,
|
2788 3934 | ) -> Self {
|
3935 + | /* ServerBuilderGenerator.kt:429 */
|
2789 3936 | self.nested = input.map(|v| v.into());
|
2790 3937 | self
|
3938 + | /* ServerBuilderGenerator.kt:428 */
|
2791 3939 | }
|
3940 + | /* ServerBuilderGenerator.kt:331 */
|
2792 3941 | #[allow(missing_docs)] // documentation missing in model
|
3942 + | /* ServerBuilderGenerator.kt:343 */
|
2793 3943 | pub fn recursive_list(
|
2794 3944 | mut self,
|
2795 3945 | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
2796 3946 | ) -> Self {
|
2797 - | self.recursive_list = Some(crate::constrained::MaybeConstrained::Constrained(
|
2798 - | (input).into(),
|
2799 - | ));
|
3947 + | /* ServerBuilderGenerator.kt:344 */
|
3948 + | self.recursive_list =
|
3949 + | /* ServerBuilderGenerator.kt:345 */Some(
|
3950 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((input).into())
|
3951 + | /* ServerBuilderGenerator.kt:345 */)
|
3952 + | /* ServerBuilderGenerator.kt:344 */;
|
2800 3953 | self
|
3954 + | /* ServerBuilderGenerator.kt:343 */
|
2801 3955 | }
|
3956 + | /* ServerBuilderGenerator.kt:426 */
|
2802 3957 | #[allow(missing_docs)] // documentation missing in model
|
3958 + | /* ServerBuilderGenerator.kt:428 */
|
2803 3959 | pub(crate) fn set_recursive_list(
|
2804 3960 | mut self,
|
2805 3961 | input: impl ::std::convert::Into<
|
2806 3962 | crate::constrained::MaybeConstrained<
|
2807 3963 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
2808 3964 | >,
|
2809 3965 | >,
|
2810 3966 | ) -> Self {
|
3967 + | /* ServerBuilderGenerator.kt:429 */
|
2811 3968 | self.recursive_list = Some(input.into());
|
2812 3969 | self
|
3970 + | /* ServerBuilderGenerator.kt:428 */
|
2813 3971 | }
|
2814 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
2815 - | ///
|
3972 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3973 + | /// /* ServerBuilderGenerator.kt:260 */
|
2816 3974 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
2817 3975 | ///
|
2818 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
3976 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
3977 + | /* ServerBuilderGenerator.kt:271 */
|
2819 3978 | pub fn build(
|
2820 3979 | self,
|
2821 3980 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
2822 3981 | {
|
2823 3982 | self.build_enforcing_all_constraints()
|
2824 3983 | }
|
3984 + | /* ServerBuilderGenerator.kt:283 */
|
2825 3985 | fn build_enforcing_all_constraints(
|
2826 3986 | self,
|
2827 3987 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
2828 3988 | {
|
2829 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3989 + | /* ServerBuilderGenerator.kt:287 */
|
3990 + | Ok(
|
3991 + | /* ServerBuilderGenerator.kt:542 */
|
3992 + | crate::input::ConstrainedRecursiveShapesOperationInput {
|
3993 + | /* ServerBuilderGenerator.kt:546 */
|
2830 3994 | nested: self
|
2831 3995 | .nested
|
3996 + | /* ServerBuilderGenerator.kt:602 */
|
2832 3997 | .map(|v| match v {
|
2833 3998 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2834 3999 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2835 4000 | })
|
4001 + | /* ServerBuilderGenerator.kt:614 */
|
2836 4002 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
2837 4003 | .transpose()?,
|
4004 + | /* ServerBuilderGenerator.kt:546 */
|
2838 4005 | recursive_list: self
|
2839 4006 | .recursive_list
|
4007 + | /* ServerBuilderGenerator.kt:602 */
|
2840 4008 | .map(|v| match v {
|
2841 4009 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2842 4010 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2843 4011 | })
|
4012 + | /* ServerBuilderGenerator.kt:614 */
|
2844 4013 | .map(|res| {
|
2845 4014 | res.map(|v| v.into())
|
2846 4015 | .map_err(ConstraintViolation::RecursiveList)
|
2847 4016 | })
|
2848 4017 | .transpose()?
|
4018 + | /* ServerBuilderGenerator.kt:569 */
|
2849 4019 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
2850 - | })
|
4020 + | /* ServerBuilderGenerator.kt:542 */
|
4021 + | }, /* ServerBuilderGenerator.kt:287 */
|
4022 + | )
|
4023 + | /* ServerBuilderGenerator.kt:283 */
|
2851 4024 | }
|
4025 + | /* ServerBuilderGenerator.kt:215 */
|
2852 4026 | }
|
4027 + |
|
4028 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2853 4029 | }
|
2854 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4030 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
2855 4031 | pub mod constrained_http_payload_bound_shape_operation_input {
|
2856 4032 |
|
4033 + | /* RustType.kt:516 */
|
2857 4034 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2858 - | /// Holds one variant for each of the ways the builder can fail.
|
4035 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4036 + | /* RustType.kt:516 */
|
2859 4037 | #[non_exhaustive]
|
4038 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2860 4039 | #[allow(clippy::enum_variant_names)]
|
2861 4040 | pub enum ConstraintViolation {
|
2862 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4041 + | /// /* ServerBuilderConstraintViolations.kt:138 */`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4042 + | /* ServerBuilderConstraintViolations.kt:143 */
|
2863 4043 | MissingHttpPayloadBoundConstrainedShape,
|
2864 - | /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4044 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4045 + | /* RustType.kt:516 */
|
2865 4046 | #[doc(hidden)]
|
4047 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2866 4048 | HttpPayloadBoundConstrainedShape(crate::model::con_a::ConstraintViolation),
|
4049 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2867 4050 | }
|
4051 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2868 4052 | impl ::std::fmt::Display for ConstraintViolation {
|
4053 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2869 4054 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4055 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2870 4056 | match self {
|
2871 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
2872 - | ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
2873 - | }
|
4057 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4058 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4059 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4060 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2874 4061 | }
|
4062 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2875 4063 | }
|
4064 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2876 4065 | impl ::std::error::Error for ConstraintViolation {}
|
4066 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2877 4067 | impl ConstraintViolation {
|
2878 4068 | pub(crate) fn as_validation_exception_field(
|
2879 4069 | self,
|
2880 4070 | path: ::std::string::String,
|
2881 4071 | ) -> crate::model::ValidationExceptionField {
|
2882 4072 | match self {
|
2883 4073 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
|
2884 4074 | message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
|
2885 4075 | path: path + "/httpPayloadBoundConstrainedShape",
|
2886 4076 | },
|
2887 4077 | ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
|
2888 4078 | }
|
2889 4079 | }
|
2890 4080 | }
|
4081 + | /* ServerBuilderGenerator.kt:234 */
|
2891 4082 | impl ::std::convert::From<ConstraintViolation>
|
2892 4083 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2893 4084 | {
|
2894 4085 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2895 4086 | let first_validation_exception_field =
|
2896 4087 | constraint_violation.as_validation_exception_field("".to_owned());
|
2897 4088 | let validation_exception = crate::error::ValidationException {
|
2898 4089 | message: format!(
|
2899 4090 | "1 validation error detected. {}",
|
2900 4091 | &first_validation_exception_field.message
|
2901 4092 | ),
|
2902 4093 | field_list: Some(vec![first_validation_exception_field]),
|
2903 4094 | };
|
2904 4095 | Self::ConstraintViolation(
|
2905 4096 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2906 4097 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2907 4098 | )
|
2908 4099 | }
|
2909 4100 | }
|
4101 + | /* ServerBuilderGenerator.kt:244 */
|
2910 4102 | impl ::std::convert::From<Builder>
|
2911 4103 | for crate::constrained::MaybeConstrained<
|
2912 4104 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
2913 4105 | >
|
2914 4106 | {
|
2915 4107 | fn from(builder: Builder) -> Self {
|
2916 4108 | Self::Unconstrained(builder)
|
2917 4109 | }
|
2918 4110 | }
|
4111 + | /* ServerBuilderGenerator.kt:446 */
|
2919 4112 | impl ::std::convert::TryFrom<Builder>
|
2920 4113 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
2921 4114 | {
|
2922 4115 | type Error = ConstraintViolation;
|
2923 4116 |
|
2924 4117 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2925 4118 | builder.build()
|
2926 4119 | }
|
2927 4120 | }
|
2928 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4121 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4122 + | /* RustType.kt:516 */
|
2929 4123 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4124 + | /* ServerBuilderGenerator.kt:211 */
|
2930 4125 | pub struct Builder {
|
4126 + | /* ServerBuilderGenerator.kt:308 */
|
2931 4127 | pub(crate) http_payload_bound_constrained_shape:
|
2932 4128 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4129 + | /* ServerBuilderGenerator.kt:211 */
|
2933 4130 | }
|
4131 + | /* ServerBuilderGenerator.kt:215 */
|
2934 4132 | impl Builder {
|
4133 + | /* ServerBuilderGenerator.kt:331 */
|
2935 4134 | #[allow(missing_docs)] // documentation missing in model
|
4135 + | /* ServerBuilderGenerator.kt:343 */
|
2936 4136 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
4137 + | /* ServerBuilderGenerator.kt:344 */
|
2937 4138 | self.http_payload_bound_constrained_shape =
|
2938 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4139 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4140 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4141 + | /* ServerBuilderGenerator.kt:345 */)
|
4142 + | /* ServerBuilderGenerator.kt:344 */;
|
2939 4143 | self
|
4144 + | /* ServerBuilderGenerator.kt:343 */
|
2940 4145 | }
|
4146 + | /* ServerBuilderGenerator.kt:426 */
|
2941 4147 | #[allow(missing_docs)] // documentation missing in model
|
4148 + | /* ServerBuilderGenerator.kt:428 */
|
2942 4149 | pub(crate) fn set_http_payload_bound_constrained_shape(
|
2943 4150 | mut self,
|
2944 4151 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
2945 4152 | ) -> Self {
|
4153 + | /* ServerBuilderGenerator.kt:429 */
|
2946 4154 | self.http_payload_bound_constrained_shape = Some(input.into());
|
2947 4155 | self
|
4156 + | /* ServerBuilderGenerator.kt:428 */
|
2948 4157 | }
|
2949 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
2950 - | ///
|
4158 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4159 + | /// /* ServerBuilderGenerator.kt:260 */
|
2951 4160 | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
2952 4161 | ///
|
2953 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4162 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4163 + | /* ServerBuilderGenerator.kt:271 */
|
2954 4164 | pub fn build(
|
2955 4165 | self,
|
2956 4166 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
2957 4167 | {
|
2958 4168 | self.build_enforcing_all_constraints()
|
2959 4169 | }
|
4170 + | /* ServerBuilderGenerator.kt:283 */
|
2960 4171 | fn build_enforcing_all_constraints(
|
2961 4172 | self,
|
2962 4173 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
2963 4174 | {
|
4175 + | /* ServerBuilderGenerator.kt:287 */
|
2964 4176 | Ok(
|
4177 + | /* ServerBuilderGenerator.kt:542 */
|
2965 4178 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4179 + | /* ServerBuilderGenerator.kt:546 */
|
2966 4180 | http_payload_bound_constrained_shape: self
|
2967 4181 | .http_payload_bound_constrained_shape
|
4182 + | /* ServerBuilderGenerator.kt:602 */
|
2968 4183 | .map(|v| match v {
|
2969 4184 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2970 4185 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2971 4186 | })
|
4187 + | /* ServerBuilderGenerator.kt:614 */
|
2972 4188 | .map(|res| {
|
2973 4189 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
2974 4190 | })
|
2975 4191 | .transpose()?
|
4192 + | /* ServerBuilderGenerator.kt:569 */
|
2976 4193 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
2977 - | },
|
4194 + | /* ServerBuilderGenerator.kt:542 */
|
4195 + | }, /* ServerBuilderGenerator.kt:287 */
|
2978 4196 | )
|
4197 + | /* ServerBuilderGenerator.kt:283 */
|
2979 4198 | }
|
4199 + | /* ServerBuilderGenerator.kt:215 */
|
2980 4200 | }
|
4201 + |
|
4202 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2981 4203 | }
|
2982 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4204 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
2983 4205 | pub mod constrained_http_bound_shapes_operation_input {
|
2984 4206 |
|
4207 + | /* RustType.kt:516 */
|
2985 4208 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2986 - | /// Holds one variant for each of the ways the builder can fail.
|
4209 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4210 + | /* RustType.kt:516 */
|
2987 4211 | #[non_exhaustive]
|
4212 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2988 4213 | #[allow(clippy::enum_variant_names)]
|
2989 4214 | pub enum ConstraintViolation {
|
2990 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4215 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4216 + | /* ServerBuilderConstraintViolations.kt:143 */
|
2991 4217 | MissingLengthStringLabel,
|
2992 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4218 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4219 + | /* RustType.kt:516 */
|
2993 4220 | #[doc(hidden)]
|
4221 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2994 4222 | LengthStringLabel(crate::model::length_string::ConstraintViolation),
|
2995 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4223 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4224 + | /* RustType.kt:516 */
|
2996 4225 | #[doc(hidden)]
|
4226 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2997 4227 | RangeIntegerLabel(crate::model::range_integer::ConstraintViolation),
|
2998 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4228 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4229 + | /* RustType.kt:516 */
|
2999 4230 | #[doc(hidden)]
|
4231 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3000 4232 | RangeShortLabel(crate::model::range_short::ConstraintViolation),
|
3001 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4233 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4234 + | /* RustType.kt:516 */
|
3002 4235 | #[doc(hidden)]
|
4236 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3003 4237 | RangeLongLabel(crate::model::range_long::ConstraintViolation),
|
3004 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4238 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4239 + | /* RustType.kt:516 */
|
3005 4240 | #[doc(hidden)]
|
4241 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3006 4242 | RangeByteLabel(crate::model::range_byte::ConstraintViolation),
|
3007 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4243 + | /// /* ServerBuilderConstraintViolations.kt:138 */`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4244 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3008 4245 | MissingEnumStringLabel,
|
3009 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4246 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4247 + | /* RustType.kt:516 */
|
3010 4248 | #[doc(hidden)]
|
4249 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3011 4250 | EnumStringLabel(crate::model::enum_string::ConstraintViolation),
|
3012 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4251 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4252 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3013 4253 | MissingLengthStringHeaderMap,
|
3014 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4254 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4255 + | /* RustType.kt:516 */
|
3015 4256 | #[doc(hidden)]
|
4257 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3016 4258 | LengthStringHeaderMap(crate::model::map_of_length_string::ConstraintViolation),
|
3017 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4259 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4260 + | /* RustType.kt:516 */
|
3018 4261 | #[doc(hidden)]
|
4262 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3019 4263 | LengthStringHeader(crate::model::length_string::ConstraintViolation),
|
3020 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4264 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4265 + | /* RustType.kt:516 */
|
3021 4266 | #[doc(hidden)]
|
4267 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3022 4268 | RangeIntegerHeader(crate::model::range_integer::ConstraintViolation),
|
3023 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4269 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4270 + | /* RustType.kt:516 */
|
3024 4271 | #[doc(hidden)]
|
4272 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3025 4273 | RangeShortHeader(crate::model::range_short::ConstraintViolation),
|
3026 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4274 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4275 + | /* RustType.kt:516 */
|
3027 4276 | #[doc(hidden)]
|
4277 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3028 4278 | RangeLongHeader(crate::model::range_long::ConstraintViolation),
|
3029 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4279 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4280 + | /* RustType.kt:516 */
|
3030 4281 | #[doc(hidden)]
|
4282 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3031 4283 | RangeByteHeader(crate::model::range_byte::ConstraintViolation),
|
3032 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4284 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4285 + | /* RustType.kt:516 */
|
3033 4286 | #[doc(hidden)]
|
4287 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3034 4288 | LengthStringSetHeader(crate::model::set_of_length_string::ConstraintViolation),
|
3035 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4289 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4290 + | /* RustType.kt:516 */
|
3036 4291 | #[doc(hidden)]
|
4292 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3037 4293 | ListLengthStringHeader(crate::model::list_of_length_string::ConstraintViolation),
|
3038 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4294 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4295 + | /* RustType.kt:516 */
|
3039 4296 | #[doc(hidden)]
|
4297 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3040 4298 | LengthListPatternStringHeader(
|
3041 4299 | crate::model::length_list_of_pattern_string::ConstraintViolation,
|
3042 4300 | ),
|
3043 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4301 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4302 + | /* RustType.kt:516 */
|
3044 4303 | #[doc(hidden)]
|
4304 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3045 4305 | LengthSetPatternStringHeader(
|
3046 4306 | crate::model::length_set_of_pattern_string::ConstraintViolation,
|
3047 4307 | ),
|
3048 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4308 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4309 + | /* RustType.kt:516 */
|
3049 4310 | #[doc(hidden)]
|
4311 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3050 4312 | RangeByteSetHeader(crate::model::set_of_range_byte::ConstraintViolation),
|
3051 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4313 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4314 + | /* RustType.kt:516 */
|
3052 4315 | #[doc(hidden)]
|
4316 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3053 4317 | RangeShortSetHeader(crate::model::set_of_range_short::ConstraintViolation),
|
3054 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4318 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4319 + | /* RustType.kt:516 */
|
3055 4320 | #[doc(hidden)]
|
4321 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3056 4322 | RangeIntegerSetHeader(crate::model::set_of_range_integer::ConstraintViolation),
|
3057 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4323 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4324 + | /* RustType.kt:516 */
|
3058 4325 | #[doc(hidden)]
|
4326 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3059 4327 | RangeLongSetHeader(crate::model::set_of_range_long::ConstraintViolation),
|
3060 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4328 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4329 + | /* RustType.kt:516 */
|
3061 4330 | #[doc(hidden)]
|
4331 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3062 4332 | RangeByteListHeader(crate::model::list_of_range_byte::ConstraintViolation),
|
3063 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4333 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4334 + | /* RustType.kt:516 */
|
3064 4335 | #[doc(hidden)]
|
4336 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3065 4337 | RangeShortListHeader(crate::model::list_of_range_short::ConstraintViolation),
|
3066 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4338 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4339 + | /* RustType.kt:516 */
|
3067 4340 | #[doc(hidden)]
|
4341 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3068 4342 | RangeIntegerListHeader(crate::model::list_of_range_integer::ConstraintViolation),
|
3069 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4343 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4344 + | /* RustType.kt:516 */
|
3070 4345 | #[doc(hidden)]
|
4346 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3071 4347 | RangeLongListHeader(crate::model::list_of_range_long::ConstraintViolation),
|
3072 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4348 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4349 + | /* RustType.kt:516 */
|
3073 4350 | #[doc(hidden)]
|
4351 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3074 4352 | LengthStringQuery(crate::model::length_string::ConstraintViolation),
|
3075 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4353 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4354 + | /* RustType.kt:516 */
|
3076 4355 | #[doc(hidden)]
|
4356 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3077 4357 | RangeByteQuery(crate::model::range_byte::ConstraintViolation),
|
3078 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4358 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4359 + | /* RustType.kt:516 */
|
3079 4360 | #[doc(hidden)]
|
4361 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3080 4362 | RangeShortQuery(crate::model::range_short::ConstraintViolation),
|
3081 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4363 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4364 + | /* RustType.kt:516 */
|
3082 4365 | #[doc(hidden)]
|
4366 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3083 4367 | RangeIntegerQuery(crate::model::range_integer::ConstraintViolation),
|
3084 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4368 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4369 + | /* RustType.kt:516 */
|
3085 4370 | #[doc(hidden)]
|
4371 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3086 4372 | RangeLongQuery(crate::model::range_long::ConstraintViolation),
|
3087 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4373 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4374 + | /* RustType.kt:516 */
|
3088 4375 | #[doc(hidden)]
|
4376 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3089 4377 | EnumStringQuery(crate::model::enum_string::ConstraintViolation),
|
3090 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4378 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4379 + | /* RustType.kt:516 */
|
3091 4380 | #[doc(hidden)]
|
4381 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3092 4382 | LengthStringListQuery(crate::model::list_of_length_string::ConstraintViolation),
|
3093 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4383 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4384 + | /* RustType.kt:516 */
|
3094 4385 | #[doc(hidden)]
|
4386 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3095 4387 | LengthListPatternStringQuery(
|
3096 4388 | crate::model::length_list_of_pattern_string::ConstraintViolation,
|
3097 4389 | ),
|
3098 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4390 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4391 + | /* RustType.kt:516 */
|
3099 4392 | #[doc(hidden)]
|
4393 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3100 4394 | LengthStringSetQuery(crate::model::set_of_length_string::ConstraintViolation),
|
3101 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4395 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4396 + | /* RustType.kt:516 */
|
3102 4397 | #[doc(hidden)]
|
4398 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3103 4399 | RangeByteListQuery(crate::model::list_of_range_byte::ConstraintViolation),
|
3104 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4400 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4401 + | /* RustType.kt:516 */
|
3105 4402 | #[doc(hidden)]
|
4403 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3106 4404 | RangeShortListQuery(crate::model::list_of_range_short::ConstraintViolation),
|
3107 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4405 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4406 + | /* RustType.kt:516 */
|
3108 4407 | #[doc(hidden)]
|
4408 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3109 4409 | RangeIntegerListQuery(crate::model::list_of_range_integer::ConstraintViolation),
|
3110 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4410 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4411 + | /* RustType.kt:516 */
|
3111 4412 | #[doc(hidden)]
|
4413 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3112 4414 | RangeLongListQuery(crate::model::list_of_range_long::ConstraintViolation),
|
3113 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4415 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4416 + | /* RustType.kt:516 */
|
3114 4417 | #[doc(hidden)]
|
4418 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3115 4419 | RangeByteSetQuery(crate::model::set_of_range_byte::ConstraintViolation),
|
3116 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4420 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4421 + | /* RustType.kt:516 */
|
3117 4422 | #[doc(hidden)]
|
4423 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3118 4424 | RangeShortSetQuery(crate::model::set_of_range_short::ConstraintViolation),
|
3119 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4425 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4426 + | /* RustType.kt:516 */
|
3120 4427 | #[doc(hidden)]
|
4428 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3121 4429 | RangeIntegerSetQuery(crate::model::set_of_range_integer::ConstraintViolation),
|
3122 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4430 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4431 + | /* RustType.kt:516 */
|
3123 4432 | #[doc(hidden)]
|
4433 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3124 4434 | RangeLongSetQuery(crate::model::set_of_range_long::ConstraintViolation),
|
3125 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4435 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
4436 + | /* RustType.kt:516 */
|
3126 4437 | #[doc(hidden)]
|
4438 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3127 4439 | EnumStringListQuery(crate::model::list_of_enum_string::ConstraintViolation),
|
4440 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3128 4441 | }
|
4442 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3129 4443 | impl ::std::fmt::Display for ConstraintViolation {
|
4444 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3130 4445 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4446 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3131 4447 | match self {
|
3132 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3133 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3134 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3135 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3136 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3137 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3138 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3139 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3140 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3141 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3142 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3143 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3144 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3145 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3146 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3147 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3148 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3149 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3150 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3151 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3152 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3153 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3154 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3155 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3156 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3157 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3158 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3159 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3160 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3161 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3162 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3163 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3164 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3165 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3166 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3167 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3168 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3169 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3170 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3171 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3172 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3173 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3174 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3175 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3176 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3177 - | }
|
3178 - | }
|
3179 - | }
|
4448 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4449 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4450 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4451 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4452 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4453 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4454 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4455 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4456 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4457 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4458 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4459 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4460 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4461 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4462 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4463 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4464 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4465 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4466 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4467 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4468 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4469 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4470 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4471 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4472 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4473 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4474 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4475 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4476 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4477 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4478 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4479 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4480 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4481 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4482 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4483 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4484 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4485 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4486 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4487 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4488 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4489 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4490 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4491 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4492 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4493 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4494 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4495 + | }
|
4496 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4497 + | }
|
4498 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3180 4499 | impl ::std::error::Error for ConstraintViolation {}
|
4500 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3181 4501 | impl ConstraintViolation {
|
3182 4502 | pub(crate) fn as_validation_exception_field(
|
3183 4503 | self,
|
3184 4504 | path: ::std::string::String,
|
3185 4505 | ) -> crate::model::ValidationExceptionField {
|
3186 4506 | match self {
|
3187 4507 | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
3188 4508 | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
3189 4509 | path: path + "/lengthStringLabel",
|
3190 4510 | },
|
3234 4554 | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
3235 4555 | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
3236 4556 | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
3237 4557 | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
3238 4558 | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
3239 4559 | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
3240 4560 | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
3241 4561 | }
|
3242 4562 | }
|
3243 4563 | }
|
4564 + | /* ServerBuilderGenerator.kt:234 */
|
3244 4565 | impl ::std::convert::From<ConstraintViolation>
|
3245 4566 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3246 4567 | {
|
3247 4568 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3248 4569 | let first_validation_exception_field =
|
3249 4570 | constraint_violation.as_validation_exception_field("".to_owned());
|
3250 4571 | let validation_exception = crate::error::ValidationException {
|
3251 4572 | message: format!(
|
3252 4573 | "1 validation error detected. {}",
|
3253 4574 | &first_validation_exception_field.message
|
3254 4575 | ),
|
3255 4576 | field_list: Some(vec![first_validation_exception_field]),
|
3256 4577 | };
|
3257 4578 | Self::ConstraintViolation(
|
3258 4579 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3259 4580 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3260 4581 | )
|
3261 4582 | }
|
3262 4583 | }
|
4584 + | /* ServerBuilderGenerator.kt:244 */
|
3263 4585 | impl ::std::convert::From<Builder>
|
3264 4586 | for crate::constrained::MaybeConstrained<
|
3265 4587 | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
3266 4588 | >
|
3267 4589 | {
|
3268 4590 | fn from(builder: Builder) -> Self {
|
3269 4591 | Self::Unconstrained(builder)
|
3270 4592 | }
|
3271 4593 | }
|
4594 + | /* ServerBuilderGenerator.kt:446 */
|
3272 4595 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3273 4596 | type Error = ConstraintViolation;
|
3274 4597 |
|
3275 4598 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3276 4599 | builder.build()
|
3277 4600 | }
|
3278 4601 | }
|
3279 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4602 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4603 + | /* RustType.kt:516 */
|
3280 4604 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4605 + | /* ServerBuilderGenerator.kt:211 */
|
3281 4606 | pub struct Builder {
|
3282 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3283 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3284 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3285 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3286 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3287 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3288 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3289 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3290 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3291 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3292 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3293 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3294 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3295 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3296 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3297 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
3298 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3299 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3300 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3301 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3302 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3303 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3304 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3305 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3306 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3307 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3308 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3309 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3310 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3311 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3312 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3313 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3314 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3315 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3316 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3317 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3318 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3319 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3320 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3321 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3322 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3323 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
3324 - | }
|
4607 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4608 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4609 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4610 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4611 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4612 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4613 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
4614 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4615 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4616 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4617 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4618 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4619 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4620 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4621 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4622 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
4623 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4624 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4625 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4626 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4627 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4628 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4629 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4630 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4631 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
4632 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
4633 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
4634 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
4635 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4636 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
4637 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
4638 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
4639 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
4640 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
4641 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
4642 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
4643 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
4644 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
4645 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
4646 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
4647 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
4648 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
4649 + | /* ServerBuilderGenerator.kt:211 */}
|
4650 + | /* ServerBuilderGenerator.kt:215 */
|
3325 4651 | impl Builder {
|
4652 + | /* ServerBuilderGenerator.kt:331 */
|
3326 4653 | #[allow(missing_docs)] // documentation missing in model
|
4654 + | /* ServerBuilderGenerator.kt:343 */
|
3327 4655 | pub fn length_string_label(mut self, input: crate::model::LengthString) -> Self {
|
4656 + | /* ServerBuilderGenerator.kt:344 */
|
3328 4657 | self.length_string_label =
|
3329 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4658 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4659 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4660 + | /* ServerBuilderGenerator.kt:345 */)
|
4661 + | /* ServerBuilderGenerator.kt:344 */;
|
3330 4662 | self
|
4663 + | /* ServerBuilderGenerator.kt:343 */
|
3331 4664 | }
|
4665 + | /* ServerBuilderGenerator.kt:426 */
|
3332 4666 | #[allow(missing_docs)] // documentation missing in model
|
4667 + | /* ServerBuilderGenerator.kt:428 */
|
3333 4668 | pub(crate) fn set_length_string_label(
|
3334 4669 | mut self,
|
3335 4670 | input: impl ::std::convert::Into<
|
3336 4671 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3337 4672 | >,
|
3338 4673 | ) -> Self {
|
4674 + | /* ServerBuilderGenerator.kt:429 */
|
3339 4675 | self.length_string_label = Some(input.into());
|
3340 4676 | self
|
4677 + | /* ServerBuilderGenerator.kt:428 */
|
3341 4678 | }
|
4679 + | /* ServerBuilderGenerator.kt:331 */
|
3342 4680 | #[allow(missing_docs)] // documentation missing in model
|
4681 + | /* ServerBuilderGenerator.kt:343 */
|
3343 4682 | pub fn range_integer_label(mut self, input: crate::model::RangeInteger) -> Self {
|
4683 + | /* ServerBuilderGenerator.kt:344 */
|
3344 4684 | self.range_integer_label =
|
3345 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4685 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4686 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4687 + | /* ServerBuilderGenerator.kt:345 */)
|
4688 + | /* ServerBuilderGenerator.kt:344 */;
|
3346 4689 | self
|
4690 + | /* ServerBuilderGenerator.kt:343 */
|
3347 4691 | }
|
4692 + | /* ServerBuilderGenerator.kt:426 */
|
3348 4693 | #[allow(missing_docs)] // documentation missing in model
|
4694 + | /* ServerBuilderGenerator.kt:428 */
|
3349 4695 | pub(crate) fn set_range_integer_label(
|
3350 4696 | mut self,
|
3351 4697 | input: impl ::std::convert::Into<
|
3352 4698 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3353 4699 | >,
|
3354 4700 | ) -> Self {
|
4701 + | /* ServerBuilderGenerator.kt:429 */
|
3355 4702 | self.range_integer_label = Some(input.into());
|
3356 4703 | self
|
4704 + | /* ServerBuilderGenerator.kt:428 */
|
3357 4705 | }
|
4706 + | /* ServerBuilderGenerator.kt:331 */
|
3358 4707 | #[allow(missing_docs)] // documentation missing in model
|
4708 + | /* ServerBuilderGenerator.kt:343 */
|
3359 4709 | pub fn range_short_label(mut self, input: crate::model::RangeShort) -> Self {
|
3360 - | self.range_short_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4710 + | /* ServerBuilderGenerator.kt:344 */
|
4711 + | self.range_short_label =
|
4712 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4713 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4714 + | /* ServerBuilderGenerator.kt:345 */)
|
4715 + | /* ServerBuilderGenerator.kt:344 */;
|
3361 4716 | self
|
4717 + | /* ServerBuilderGenerator.kt:343 */
|
3362 4718 | }
|
4719 + | /* ServerBuilderGenerator.kt:426 */
|
3363 4720 | #[allow(missing_docs)] // documentation missing in model
|
4721 + | /* ServerBuilderGenerator.kt:428 */
|
3364 4722 | pub(crate) fn set_range_short_label(
|
3365 4723 | mut self,
|
3366 4724 | input: impl ::std::convert::Into<
|
3367 4725 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3368 4726 | >,
|
3369 4727 | ) -> Self {
|
4728 + | /* ServerBuilderGenerator.kt:429 */
|
3370 4729 | self.range_short_label = Some(input.into());
|
3371 4730 | self
|
4731 + | /* ServerBuilderGenerator.kt:428 */
|
3372 4732 | }
|
4733 + | /* ServerBuilderGenerator.kt:331 */
|
3373 4734 | #[allow(missing_docs)] // documentation missing in model
|
4735 + | /* ServerBuilderGenerator.kt:343 */
|
3374 4736 | pub fn range_long_label(mut self, input: crate::model::RangeLong) -> Self {
|
3375 - | self.range_long_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4737 + | /* ServerBuilderGenerator.kt:344 */
|
4738 + | self.range_long_label =
|
4739 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4740 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4741 + | /* ServerBuilderGenerator.kt:345 */)
|
4742 + | /* ServerBuilderGenerator.kt:344 */;
|
3376 4743 | self
|
4744 + | /* ServerBuilderGenerator.kt:343 */
|
3377 4745 | }
|
4746 + | /* ServerBuilderGenerator.kt:426 */
|
3378 4747 | #[allow(missing_docs)] // documentation missing in model
|
4748 + | /* ServerBuilderGenerator.kt:428 */
|
3379 4749 | pub(crate) fn set_range_long_label(
|
3380 4750 | mut self,
|
3381 4751 | input: impl ::std::convert::Into<
|
3382 4752 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
3383 4753 | >,
|
3384 4754 | ) -> Self {
|
4755 + | /* ServerBuilderGenerator.kt:429 */
|
3385 4756 | self.range_long_label = Some(input.into());
|
3386 4757 | self
|
4758 + | /* ServerBuilderGenerator.kt:428 */
|
3387 4759 | }
|
4760 + | /* ServerBuilderGenerator.kt:331 */
|
3388 4761 | #[allow(missing_docs)] // documentation missing in model
|
4762 + | /* ServerBuilderGenerator.kt:343 */
|
3389 4763 | pub fn range_byte_label(mut self, input: crate::model::RangeByte) -> Self {
|
3390 - | self.range_byte_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4764 + | /* ServerBuilderGenerator.kt:344 */
|
4765 + | self.range_byte_label =
|
4766 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4767 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4768 + | /* ServerBuilderGenerator.kt:345 */)
|
4769 + | /* ServerBuilderGenerator.kt:344 */;
|
3391 4770 | self
|
4771 + | /* ServerBuilderGenerator.kt:343 */
|
3392 4772 | }
|
4773 + | /* ServerBuilderGenerator.kt:426 */
|
3393 4774 | #[allow(missing_docs)] // documentation missing in model
|
4775 + | /* ServerBuilderGenerator.kt:428 */
|
3394 4776 | pub(crate) fn set_range_byte_label(
|
3395 4777 | mut self,
|
3396 4778 | input: impl ::std::convert::Into<
|
3397 4779 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
3398 4780 | >,
|
3399 4781 | ) -> Self {
|
4782 + | /* ServerBuilderGenerator.kt:429 */
|
3400 4783 | self.range_byte_label = Some(input.into());
|
3401 4784 | self
|
4785 + | /* ServerBuilderGenerator.kt:428 */
|
3402 4786 | }
|
4787 + | /* ServerBuilderGenerator.kt:331 */
|
3403 4788 | #[allow(missing_docs)] // documentation missing in model
|
4789 + | /* ServerBuilderGenerator.kt:343 */
|
3404 4790 | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
3405 - | self.enum_string_label = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4791 + | /* ServerBuilderGenerator.kt:344 */
|
4792 + | self.enum_string_label =
|
4793 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4794 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4795 + | /* ServerBuilderGenerator.kt:345 */)
|
4796 + | /* ServerBuilderGenerator.kt:344 */;
|
3406 4797 | self
|
4798 + | /* ServerBuilderGenerator.kt:343 */
|
3407 4799 | }
|
4800 + | /* ServerBuilderGenerator.kt:426 */
|
3408 4801 | #[allow(missing_docs)] // documentation missing in model
|
4802 + | /* ServerBuilderGenerator.kt:428 */
|
3409 4803 | pub(crate) fn set_enum_string_label(
|
3410 4804 | mut self,
|
3411 4805 | input: impl ::std::convert::Into<
|
3412 4806 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
3413 4807 | >,
|
3414 4808 | ) -> Self {
|
4809 + | /* ServerBuilderGenerator.kt:429 */
|
3415 4810 | self.enum_string_label = Some(input.into());
|
3416 4811 | self
|
4812 + | /* ServerBuilderGenerator.kt:428 */
|
3417 4813 | }
|
4814 + | /* ServerBuilderGenerator.kt:331 */
|
3418 4815 | #[allow(missing_docs)] // documentation missing in model
|
4816 + | /* ServerBuilderGenerator.kt:343 */
|
3419 4817 | pub fn length_string_header_map(
|
3420 4818 | mut self,
|
3421 4819 | input: ::std::collections::HashMap<
|
3422 4820 | crate::model::LengthString,
|
3423 4821 | crate::model::LengthString,
|
3424 4822 | >,
|
3425 4823 | ) -> Self {
|
3426 - | self.length_string_header_map = Some(
|
3427 - | crate::constrained::MaybeConstrained::Constrained((input).into()),
|
3428 - | );
|
4824 + | /* ServerBuilderGenerator.kt:344 */
|
4825 + | self.length_string_header_map =
|
4826 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4827 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((input).into())
|
4828 + | /* ServerBuilderGenerator.kt:345 */)
|
4829 + | /* ServerBuilderGenerator.kt:344 */;
|
3429 4830 | self
|
4831 + | /* ServerBuilderGenerator.kt:343 */
|
3430 4832 | }
|
4833 + | /* ServerBuilderGenerator.kt:426 */
|
3431 4834 | #[allow(missing_docs)] // documentation missing in model
|
4835 + | /* ServerBuilderGenerator.kt:428 */
|
3432 4836 | pub(crate) fn set_length_string_header_map(
|
3433 4837 | mut self,
|
3434 4838 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3435 4839 | ) -> Self {
|
4840 + | /* ServerBuilderGenerator.kt:429 */
|
3436 4841 | self.length_string_header_map = Some(input.into());
|
3437 4842 | self
|
4843 + | /* ServerBuilderGenerator.kt:428 */
|
3438 4844 | }
|
4845 + | /* ServerBuilderGenerator.kt:331 */
|
3439 4846 | #[allow(missing_docs)] // documentation missing in model
|
4847 + | /* ServerBuilderGenerator.kt:343 */
|
3440 4848 | pub fn length_string_header(
|
3441 4849 | mut self,
|
3442 4850 | input: ::std::option::Option<crate::model::LengthString>,
|
3443 4851 | ) -> Self {
|
3444 - | self.length_string_header = input.map(
|
3445 - | #[allow(clippy::redundant_closure)]
|
3446 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3447 - | );
|
4852 + | /* ServerBuilderGenerator.kt:344 */
|
4853 + | self.length_string_header =
|
4854 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
4855 + | /* ServerBuilderGenerator.kt:344 */;
|
3448 4856 | self
|
4857 + | /* ServerBuilderGenerator.kt:343 */
|
3449 4858 | }
|
4859 + | /* ServerBuilderGenerator.kt:426 */
|
3450 4860 | #[allow(missing_docs)] // documentation missing in model
|
4861 + | /* ServerBuilderGenerator.kt:428 */
|
3451 4862 | pub(crate) fn set_length_string_header(
|
3452 4863 | mut self,
|
3453 4864 | input: Option<
|
3454 4865 | impl ::std::convert::Into<
|
3455 4866 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3456 4867 | >,
|
3457 4868 | >,
|
3458 4869 | ) -> Self {
|
4870 + | /* ServerBuilderGenerator.kt:429 */
|
3459 4871 | self.length_string_header = input.map(|v| v.into());
|
3460 4872 | self
|
4873 + | /* ServerBuilderGenerator.kt:428 */
|
3461 4874 | }
|
4875 + | /* ServerBuilderGenerator.kt:331 */
|
3462 4876 | #[allow(missing_docs)] // documentation missing in model
|
4877 + | /* ServerBuilderGenerator.kt:343 */
|
3463 4878 | pub fn range_integer_header(mut self, input: crate::model::RangeInteger) -> Self {
|
4879 + | /* ServerBuilderGenerator.kt:344 */
|
3464 4880 | self.range_integer_header =
|
3465 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4881 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4882 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4883 + | /* ServerBuilderGenerator.kt:345 */)
|
4884 + | /* ServerBuilderGenerator.kt:344 */;
|
3466 4885 | self
|
4886 + | /* ServerBuilderGenerator.kt:343 */
|
3467 4887 | }
|
4888 + | /* ServerBuilderGenerator.kt:426 */
|
3468 4889 | #[allow(missing_docs)] // documentation missing in model
|
4890 + | /* ServerBuilderGenerator.kt:428 */
|
3469 4891 | pub(crate) fn set_range_integer_header(
|
3470 4892 | mut self,
|
3471 4893 | input: impl ::std::convert::Into<
|
3472 4894 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3473 4895 | >,
|
3474 4896 | ) -> Self {
|
4897 + | /* ServerBuilderGenerator.kt:429 */
|
3475 4898 | self.range_integer_header = Some(input.into());
|
3476 4899 | self
|
4900 + | /* ServerBuilderGenerator.kt:428 */
|
3477 4901 | }
|
4902 + | /* ServerBuilderGenerator.kt:331 */
|
3478 4903 | #[allow(missing_docs)] // documentation missing in model
|
4904 + | /* ServerBuilderGenerator.kt:343 */
|
3479 4905 | pub fn range_short_header(mut self, input: crate::model::RangeShort) -> Self {
|
4906 + | /* ServerBuilderGenerator.kt:344 */
|
3480 4907 | self.range_short_header =
|
3481 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4908 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4909 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4910 + | /* ServerBuilderGenerator.kt:345 */)
|
4911 + | /* ServerBuilderGenerator.kt:344 */;
|
3482 4912 | self
|
4913 + | /* ServerBuilderGenerator.kt:343 */
|
3483 4914 | }
|
4915 + | /* ServerBuilderGenerator.kt:426 */
|
3484 4916 | #[allow(missing_docs)] // documentation missing in model
|
4917 + | /* ServerBuilderGenerator.kt:428 */
|
3485 4918 | pub(crate) fn set_range_short_header(
|
3486 4919 | mut self,
|
3487 4920 | input: impl ::std::convert::Into<
|
3488 4921 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3489 4922 | >,
|
3490 4923 | ) -> Self {
|
4924 + | /* ServerBuilderGenerator.kt:429 */
|
3491 4925 | self.range_short_header = Some(input.into());
|
3492 4926 | self
|
4927 + | /* ServerBuilderGenerator.kt:428 */
|
3493 4928 | }
|
4929 + | /* ServerBuilderGenerator.kt:331 */
|
3494 4930 | #[allow(missing_docs)] // documentation missing in model
|
4931 + | /* ServerBuilderGenerator.kt:343 */
|
3495 4932 | pub fn range_long_header(mut self, input: crate::model::RangeLong) -> Self {
|
3496 - | self.range_long_header = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4933 + | /* ServerBuilderGenerator.kt:344 */
|
4934 + | self.range_long_header =
|
4935 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4936 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4937 + | /* ServerBuilderGenerator.kt:345 */)
|
4938 + | /* ServerBuilderGenerator.kt:344 */;
|
3497 4939 | self
|
4940 + | /* ServerBuilderGenerator.kt:343 */
|
3498 4941 | }
|
4942 + | /* ServerBuilderGenerator.kt:426 */
|
3499 4943 | #[allow(missing_docs)] // documentation missing in model
|
4944 + | /* ServerBuilderGenerator.kt:428 */
|
3500 4945 | pub(crate) fn set_range_long_header(
|
3501 4946 | mut self,
|
3502 4947 | input: impl ::std::convert::Into<
|
3503 4948 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
3504 4949 | >,
|
3505 4950 | ) -> Self {
|
4951 + | /* ServerBuilderGenerator.kt:429 */
|
3506 4952 | self.range_long_header = Some(input.into());
|
3507 4953 | self
|
4954 + | /* ServerBuilderGenerator.kt:428 */
|
3508 4955 | }
|
4956 + | /* ServerBuilderGenerator.kt:331 */
|
3509 4957 | #[allow(missing_docs)] // documentation missing in model
|
4958 + | /* ServerBuilderGenerator.kt:343 */
|
3510 4959 | pub fn range_byte_header(mut self, input: crate::model::RangeByte) -> Self {
|
3511 - | self.range_byte_header = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
4960 + | /* ServerBuilderGenerator.kt:344 */
|
4961 + | self.range_byte_header =
|
4962 + | /* ServerBuilderGenerator.kt:345 */Some(
|
4963 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
4964 + | /* ServerBuilderGenerator.kt:345 */)
|
4965 + | /* ServerBuilderGenerator.kt:344 */;
|
3512 4966 | self
|
4967 + | /* ServerBuilderGenerator.kt:343 */
|
3513 4968 | }
|
4969 + | /* ServerBuilderGenerator.kt:426 */
|
3514 4970 | #[allow(missing_docs)] // documentation missing in model
|
4971 + | /* ServerBuilderGenerator.kt:428 */
|
3515 4972 | pub(crate) fn set_range_byte_header(
|
3516 4973 | mut self,
|
3517 4974 | input: impl ::std::convert::Into<
|
3518 4975 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
3519 4976 | >,
|
3520 4977 | ) -> Self {
|
4978 + | /* ServerBuilderGenerator.kt:429 */
|
3521 4979 | self.range_byte_header = Some(input.into());
|
3522 4980 | self
|
4981 + | /* ServerBuilderGenerator.kt:428 */
|
3523 4982 | }
|
4983 + | /* ServerBuilderGenerator.kt:331 */
|
3524 4984 | #[allow(missing_docs)] // documentation missing in model
|
4985 + | /* ServerBuilderGenerator.kt:343 */
|
3525 4986 | pub fn length_string_set_header(
|
3526 4987 | mut self,
|
3527 4988 | input: ::std::option::Option<crate::model::SetOfLengthString>,
|
3528 4989 | ) -> Self {
|
3529 - | self.length_string_set_header = input.map(
|
3530 - | #[allow(clippy::redundant_closure)]
|
3531 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3532 - | );
|
4990 + | /* ServerBuilderGenerator.kt:344 */
|
4991 + | self.length_string_set_header =
|
4992 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
4993 + | /* ServerBuilderGenerator.kt:344 */;
|
3533 4994 | self
|
4995 + | /* ServerBuilderGenerator.kt:343 */
|
3534 4996 | }
|
4997 + | /* ServerBuilderGenerator.kt:426 */
|
3535 4998 | #[allow(missing_docs)] // documentation missing in model
|
4999 + | /* ServerBuilderGenerator.kt:428 */
|
3536 5000 | pub(crate) fn set_length_string_set_header(
|
3537 5001 | mut self,
|
3538 5002 | input: Option<
|
3539 5003 | impl ::std::convert::Into<
|
3540 5004 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
3541 5005 | >,
|
3542 5006 | >,
|
3543 5007 | ) -> Self {
|
5008 + | /* ServerBuilderGenerator.kt:429 */
|
3544 5009 | self.length_string_set_header = input.map(|v| v.into());
|
3545 5010 | self
|
5011 + | /* ServerBuilderGenerator.kt:428 */
|
3546 5012 | }
|
5013 + | /* ServerBuilderGenerator.kt:331 */
|
3547 5014 | #[allow(missing_docs)] // documentation missing in model
|
5015 + | /* ServerBuilderGenerator.kt:343 */
|
3548 5016 | pub fn list_length_string_header(
|
3549 5017 | mut self,
|
3550 5018 | input: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
|
3551 5019 | ) -> Self {
|
3552 - | self.list_length_string_header = input.map(
|
3553 - | #[allow(clippy::redundant_closure)]
|
3554 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3555 - | );
|
5020 + | /* ServerBuilderGenerator.kt:344 */
|
5021 + | self.list_length_string_header =
|
5022 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5023 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5024 + | /* ServerBuilderGenerator.kt:369 */)
|
5025 + | /* ServerBuilderGenerator.kt:344 */;
|
3556 5026 | self
|
5027 + | /* ServerBuilderGenerator.kt:343 */
|
3557 5028 | }
|
5029 + | /* ServerBuilderGenerator.kt:426 */
|
3558 5030 | #[allow(missing_docs)] // documentation missing in model
|
5031 + | /* ServerBuilderGenerator.kt:428 */
|
3559 5032 | pub(crate) fn set_list_length_string_header(
|
3560 5033 | mut self,
|
3561 5034 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
3562 5035 | ) -> Self {
|
5036 + | /* ServerBuilderGenerator.kt:429 */
|
3563 5037 | self.list_length_string_header = input.map(|v| v.into());
|
3564 5038 | self
|
5039 + | /* ServerBuilderGenerator.kt:428 */
|
3565 5040 | }
|
5041 + | /* ServerBuilderGenerator.kt:331 */
|
3566 5042 | #[allow(missing_docs)] // documentation missing in model
|
5043 + | /* ServerBuilderGenerator.kt:343 */
|
3567 5044 | pub fn length_list_pattern_string_header(
|
3568 5045 | mut self,
|
3569 5046 | input: ::std::option::Option<crate::model::LengthListOfPatternString>,
|
3570 5047 | ) -> Self {
|
3571 - | self.length_list_pattern_string_header = input.map(
|
3572 - | #[allow(clippy::redundant_closure)]
|
3573 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3574 - | );
|
5048 + | /* ServerBuilderGenerator.kt:344 */
|
5049 + | self.length_list_pattern_string_header =
|
5050 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5051 + | /* ServerBuilderGenerator.kt:344 */;
|
3575 5052 | self
|
5053 + | /* ServerBuilderGenerator.kt:343 */
|
3576 5054 | }
|
5055 + | /* ServerBuilderGenerator.kt:426 */
|
3577 5056 | #[allow(missing_docs)] // documentation missing in model
|
5057 + | /* ServerBuilderGenerator.kt:428 */
|
3578 5058 | pub(crate) fn set_length_list_pattern_string_header(
|
3579 5059 | mut self,
|
3580 5060 | input: Option<
|
3581 5061 | impl ::std::convert::Into<
|
3582 5062 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
3583 5063 | >,
|
3584 5064 | >,
|
3585 5065 | ) -> Self {
|
5066 + | /* ServerBuilderGenerator.kt:429 */
|
3586 5067 | self.length_list_pattern_string_header = input.map(|v| v.into());
|
3587 5068 | self
|
5069 + | /* ServerBuilderGenerator.kt:428 */
|
3588 5070 | }
|
5071 + | /* ServerBuilderGenerator.kt:331 */
|
3589 5072 | #[allow(missing_docs)] // documentation missing in model
|
5073 + | /* ServerBuilderGenerator.kt:343 */
|
3590 5074 | pub fn length_set_pattern_string_header(
|
3591 5075 | mut self,
|
3592 5076 | input: ::std::option::Option<crate::model::LengthSetOfPatternString>,
|
3593 5077 | ) -> Self {
|
3594 - | self.length_set_pattern_string_header = input.map(
|
3595 - | #[allow(clippy::redundant_closure)]
|
3596 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3597 - | );
|
5078 + | /* ServerBuilderGenerator.kt:344 */
|
5079 + | self.length_set_pattern_string_header =
|
5080 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5081 + | /* ServerBuilderGenerator.kt:344 */;
|
3598 5082 | self
|
5083 + | /* ServerBuilderGenerator.kt:343 */
|
3599 5084 | }
|
5085 + | /* ServerBuilderGenerator.kt:426 */
|
3600 5086 | #[allow(missing_docs)] // documentation missing in model
|
5087 + | /* ServerBuilderGenerator.kt:428 */
|
3601 5088 | pub(crate) fn set_length_set_pattern_string_header(
|
3602 5089 | mut self,
|
3603 5090 | input: Option<
|
3604 5091 | impl ::std::convert::Into<
|
3605 5092 | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
3606 5093 | >,
|
3607 5094 | >,
|
3608 5095 | ) -> Self {
|
5096 + | /* ServerBuilderGenerator.kt:429 */
|
3609 5097 | self.length_set_pattern_string_header = input.map(|v| v.into());
|
3610 5098 | self
|
5099 + | /* ServerBuilderGenerator.kt:428 */
|
3611 5100 | }
|
5101 + | /* ServerBuilderGenerator.kt:331 */
|
3612 5102 | #[allow(missing_docs)] // documentation missing in model
|
5103 + | /* ServerBuilderGenerator.kt:343 */
|
3613 5104 | pub fn range_byte_set_header(
|
3614 5105 | mut self,
|
3615 5106 | input: ::std::option::Option<crate::model::SetOfRangeByte>,
|
3616 5107 | ) -> Self {
|
3617 - | self.range_byte_set_header = input.map(
|
3618 - | #[allow(clippy::redundant_closure)]
|
3619 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3620 - | );
|
5108 + | /* ServerBuilderGenerator.kt:344 */
|
5109 + | self.range_byte_set_header =
|
5110 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5111 + | /* ServerBuilderGenerator.kt:344 */;
|
3621 5112 | self
|
5113 + | /* ServerBuilderGenerator.kt:343 */
|
3622 5114 | }
|
5115 + | /* ServerBuilderGenerator.kt:426 */
|
3623 5116 | #[allow(missing_docs)] // documentation missing in model
|
5117 + | /* ServerBuilderGenerator.kt:428 */
|
3624 5118 | pub(crate) fn set_range_byte_set_header(
|
3625 5119 | mut self,
|
3626 5120 | input: Option<
|
3627 5121 | impl ::std::convert::Into<
|
3628 5122 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
3629 5123 | >,
|
3630 5124 | >,
|
3631 5125 | ) -> Self {
|
5126 + | /* ServerBuilderGenerator.kt:429 */
|
3632 5127 | self.range_byte_set_header = input.map(|v| v.into());
|
3633 5128 | self
|
5129 + | /* ServerBuilderGenerator.kt:428 */
|
3634 5130 | }
|
5131 + | /* ServerBuilderGenerator.kt:331 */
|
3635 5132 | #[allow(missing_docs)] // documentation missing in model
|
5133 + | /* ServerBuilderGenerator.kt:343 */
|
3636 5134 | pub fn range_short_set_header(
|
3637 5135 | mut self,
|
3638 5136 | input: ::std::option::Option<crate::model::SetOfRangeShort>,
|
3639 5137 | ) -> Self {
|
3640 - | self.range_short_set_header = input.map(
|
3641 - | #[allow(clippy::redundant_closure)]
|
3642 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3643 - | );
|
5138 + | /* ServerBuilderGenerator.kt:344 */
|
5139 + | self.range_short_set_header =
|
5140 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5141 + | /* ServerBuilderGenerator.kt:344 */;
|
3644 5142 | self
|
5143 + | /* ServerBuilderGenerator.kt:343 */
|
3645 5144 | }
|
5145 + | /* ServerBuilderGenerator.kt:426 */
|
3646 5146 | #[allow(missing_docs)] // documentation missing in model
|
5147 + | /* ServerBuilderGenerator.kt:428 */
|
3647 5148 | pub(crate) fn set_range_short_set_header(
|
3648 5149 | mut self,
|
3649 5150 | input: Option<
|
3650 5151 | impl ::std::convert::Into<
|
3651 5152 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
3652 5153 | >,
|
3653 5154 | >,
|
3654 5155 | ) -> Self {
|
5156 + | /* ServerBuilderGenerator.kt:429 */
|
3655 5157 | self.range_short_set_header = input.map(|v| v.into());
|
3656 5158 | self
|
5159 + | /* ServerBuilderGenerator.kt:428 */
|
3657 5160 | }
|
5161 + | /* ServerBuilderGenerator.kt:331 */
|
3658 5162 | #[allow(missing_docs)] // documentation missing in model
|
5163 + | /* ServerBuilderGenerator.kt:343 */
|
3659 5164 | pub fn range_integer_set_header(
|
3660 5165 | mut self,
|
3661 5166 | input: ::std::option::Option<crate::model::SetOfRangeInteger>,
|
3662 5167 | ) -> Self {
|
3663 - | self.range_integer_set_header = input.map(
|
3664 - | #[allow(clippy::redundant_closure)]
|
3665 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3666 - | );
|
5168 + | /* ServerBuilderGenerator.kt:344 */
|
5169 + | self.range_integer_set_header =
|
5170 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5171 + | /* ServerBuilderGenerator.kt:344 */;
|
3667 5172 | self
|
5173 + | /* ServerBuilderGenerator.kt:343 */
|
3668 5174 | }
|
5175 + | /* ServerBuilderGenerator.kt:426 */
|
3669 5176 | #[allow(missing_docs)] // documentation missing in model
|
5177 + | /* ServerBuilderGenerator.kt:428 */
|
3670 5178 | pub(crate) fn set_range_integer_set_header(
|
3671 5179 | mut self,
|
3672 5180 | input: Option<
|
3673 5181 | impl ::std::convert::Into<
|
3674 5182 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
3675 5183 | >,
|
3676 5184 | >,
|
3677 5185 | ) -> Self {
|
5186 + | /* ServerBuilderGenerator.kt:429 */
|
3678 5187 | self.range_integer_set_header = input.map(|v| v.into());
|
3679 5188 | self
|
5189 + | /* ServerBuilderGenerator.kt:428 */
|
3680 5190 | }
|
5191 + | /* ServerBuilderGenerator.kt:331 */
|
3681 5192 | #[allow(missing_docs)] // documentation missing in model
|
5193 + | /* ServerBuilderGenerator.kt:343 */
|
3682 5194 | pub fn range_long_set_header(
|
3683 5195 | mut self,
|
3684 5196 | input: ::std::option::Option<crate::model::SetOfRangeLong>,
|
3685 5197 | ) -> Self {
|
3686 - | self.range_long_set_header = input.map(
|
3687 - | #[allow(clippy::redundant_closure)]
|
3688 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3689 - | );
|
5198 + | /* ServerBuilderGenerator.kt:344 */
|
5199 + | self.range_long_set_header =
|
5200 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5201 + | /* ServerBuilderGenerator.kt:344 */;
|
3690 5202 | self
|
5203 + | /* ServerBuilderGenerator.kt:343 */
|
3691 5204 | }
|
5205 + | /* ServerBuilderGenerator.kt:426 */
|
3692 5206 | #[allow(missing_docs)] // documentation missing in model
|
5207 + | /* ServerBuilderGenerator.kt:428 */
|
3693 5208 | pub(crate) fn set_range_long_set_header(
|
3694 5209 | mut self,
|
3695 5210 | input: Option<
|
3696 5211 | impl ::std::convert::Into<
|
3697 5212 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
3698 5213 | >,
|
3699 5214 | >,
|
3700 5215 | ) -> Self {
|
5216 + | /* ServerBuilderGenerator.kt:429 */
|
3701 5217 | self.range_long_set_header = input.map(|v| v.into());
|
3702 5218 | self
|
5219 + | /* ServerBuilderGenerator.kt:428 */
|
3703 5220 | }
|
5221 + | /* ServerBuilderGenerator.kt:331 */
|
3704 5222 | #[allow(missing_docs)] // documentation missing in model
|
5223 + | /* ServerBuilderGenerator.kt:343 */
|
3705 5224 | pub fn range_byte_list_header(
|
3706 5225 | mut self,
|
3707 5226 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
|
3708 5227 | ) -> Self {
|
3709 - | self.range_byte_list_header = input.map(
|
3710 - | #[allow(clippy::redundant_closure)]
|
3711 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3712 - | );
|
5228 + | /* ServerBuilderGenerator.kt:344 */
|
5229 + | self.range_byte_list_header =
|
5230 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5231 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5232 + | /* ServerBuilderGenerator.kt:369 */)
|
5233 + | /* ServerBuilderGenerator.kt:344 */;
|
3713 5234 | self
|
5235 + | /* ServerBuilderGenerator.kt:343 */
|
3714 5236 | }
|
5237 + | /* ServerBuilderGenerator.kt:426 */
|
3715 5238 | #[allow(missing_docs)] // documentation missing in model
|
5239 + | /* ServerBuilderGenerator.kt:428 */
|
3716 5240 | pub(crate) fn set_range_byte_list_header(
|
3717 5241 | mut self,
|
3718 5242 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
3719 5243 | ) -> Self {
|
5244 + | /* ServerBuilderGenerator.kt:429 */
|
3720 5245 | self.range_byte_list_header = input.map(|v| v.into());
|
3721 5246 | self
|
5247 + | /* ServerBuilderGenerator.kt:428 */
|
3722 5248 | }
|
5249 + | /* ServerBuilderGenerator.kt:331 */
|
3723 5250 | #[allow(missing_docs)] // documentation missing in model
|
5251 + | /* ServerBuilderGenerator.kt:343 */
|
3724 5252 | pub fn range_short_list_header(
|
3725 5253 | mut self,
|
3726 5254 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
|
3727 5255 | ) -> Self {
|
3728 - | self.range_short_list_header = input.map(
|
3729 - | #[allow(clippy::redundant_closure)]
|
3730 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3731 - | );
|
5256 + | /* ServerBuilderGenerator.kt:344 */
|
5257 + | self.range_short_list_header =
|
5258 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5259 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5260 + | /* ServerBuilderGenerator.kt:369 */)
|
5261 + | /* ServerBuilderGenerator.kt:344 */;
|
3732 5262 | self
|
5263 + | /* ServerBuilderGenerator.kt:343 */
|
3733 5264 | }
|
5265 + | /* ServerBuilderGenerator.kt:426 */
|
3734 5266 | #[allow(missing_docs)] // documentation missing in model
|
5267 + | /* ServerBuilderGenerator.kt:428 */
|
3735 5268 | pub(crate) fn set_range_short_list_header(
|
3736 5269 | mut self,
|
3737 5270 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
3738 5271 | ) -> Self {
|
5272 + | /* ServerBuilderGenerator.kt:429 */
|
3739 5273 | self.range_short_list_header = input.map(|v| v.into());
|
3740 5274 | self
|
5275 + | /* ServerBuilderGenerator.kt:428 */
|
3741 5276 | }
|
5277 + | /* ServerBuilderGenerator.kt:331 */
|
3742 5278 | #[allow(missing_docs)] // documentation missing in model
|
5279 + | /* ServerBuilderGenerator.kt:343 */
|
3743 5280 | pub fn range_integer_list_header(
|
3744 5281 | mut self,
|
3745 5282 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
|
3746 5283 | ) -> Self {
|
3747 - | self.range_integer_list_header = input.map(
|
3748 - | #[allow(clippy::redundant_closure)]
|
3749 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3750 - | );
|
5284 + | /* ServerBuilderGenerator.kt:344 */
|
5285 + | self.range_integer_list_header =
|
5286 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5287 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5288 + | /* ServerBuilderGenerator.kt:369 */)
|
5289 + | /* ServerBuilderGenerator.kt:344 */;
|
3751 5290 | self
|
5291 + | /* ServerBuilderGenerator.kt:343 */
|
3752 5292 | }
|
5293 + | /* ServerBuilderGenerator.kt:426 */
|
3753 5294 | #[allow(missing_docs)] // documentation missing in model
|
5295 + | /* ServerBuilderGenerator.kt:428 */
|
3754 5296 | pub(crate) fn set_range_integer_list_header(
|
3755 5297 | mut self,
|
3756 5298 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
3757 5299 | ) -> Self {
|
5300 + | /* ServerBuilderGenerator.kt:429 */
|
3758 5301 | self.range_integer_list_header = input.map(|v| v.into());
|
3759 5302 | self
|
5303 + | /* ServerBuilderGenerator.kt:428 */
|
3760 5304 | }
|
5305 + | /* ServerBuilderGenerator.kt:331 */
|
3761 5306 | #[allow(missing_docs)] // documentation missing in model
|
5307 + | /* ServerBuilderGenerator.kt:343 */
|
3762 5308 | pub fn range_long_list_header(
|
3763 5309 | mut self,
|
3764 5310 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
|
3765 5311 | ) -> Self {
|
3766 - | self.range_long_list_header = input.map(
|
3767 - | #[allow(clippy::redundant_closure)]
|
3768 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3769 - | );
|
5312 + | /* ServerBuilderGenerator.kt:344 */
|
5313 + | self.range_long_list_header =
|
5314 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5315 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5316 + | /* ServerBuilderGenerator.kt:369 */)
|
5317 + | /* ServerBuilderGenerator.kt:344 */;
|
3770 5318 | self
|
5319 + | /* ServerBuilderGenerator.kt:343 */
|
3771 5320 | }
|
5321 + | /* ServerBuilderGenerator.kt:426 */
|
3772 5322 | #[allow(missing_docs)] // documentation missing in model
|
5323 + | /* ServerBuilderGenerator.kt:428 */
|
3773 5324 | pub(crate) fn set_range_long_list_header(
|
3774 5325 | mut self,
|
3775 5326 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
3776 5327 | ) -> Self {
|
5328 + | /* ServerBuilderGenerator.kt:429 */
|
3777 5329 | self.range_long_list_header = input.map(|v| v.into());
|
3778 5330 | self
|
5331 + | /* ServerBuilderGenerator.kt:428 */
|
3779 5332 | }
|
5333 + | /* ServerBuilderGenerator.kt:331 */
|
3780 5334 | #[allow(missing_docs)] // documentation missing in model
|
5335 + | /* ServerBuilderGenerator.kt:343 */
|
3781 5336 | pub fn length_string_query(
|
3782 5337 | mut self,
|
3783 5338 | input: ::std::option::Option<crate::model::LengthString>,
|
3784 5339 | ) -> Self {
|
3785 - | self.length_string_query = input.map(
|
3786 - | #[allow(clippy::redundant_closure)]
|
3787 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3788 - | );
|
5340 + | /* ServerBuilderGenerator.kt:344 */
|
5341 + | self.length_string_query =
|
5342 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5343 + | /* ServerBuilderGenerator.kt:344 */;
|
3789 5344 | self
|
5345 + | /* ServerBuilderGenerator.kt:343 */
|
3790 5346 | }
|
5347 + | /* ServerBuilderGenerator.kt:426 */
|
3791 5348 | #[allow(missing_docs)] // documentation missing in model
|
5349 + | /* ServerBuilderGenerator.kt:428 */
|
3792 5350 | pub(crate) fn set_length_string_query(
|
3793 5351 | mut self,
|
3794 5352 | input: Option<
|
3795 5353 | impl ::std::convert::Into<
|
3796 5354 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3797 5355 | >,
|
3798 5356 | >,
|
3799 5357 | ) -> Self {
|
5358 + | /* ServerBuilderGenerator.kt:429 */
|
3800 5359 | self.length_string_query = input.map(|v| v.into());
|
3801 5360 | self
|
5361 + | /* ServerBuilderGenerator.kt:428 */
|
3802 5362 | }
|
5363 + | /* ServerBuilderGenerator.kt:331 */
|
3803 5364 | #[allow(missing_docs)] // documentation missing in model
|
5365 + | /* ServerBuilderGenerator.kt:343 */
|
3804 5366 | pub fn range_byte_query(mut self, input: crate::model::RangeByte) -> Self {
|
3805 - | self.range_byte_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5367 + | /* ServerBuilderGenerator.kt:344 */
|
5368 + | self.range_byte_query =
|
5369 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5370 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
5371 + | /* ServerBuilderGenerator.kt:345 */)
|
5372 + | /* ServerBuilderGenerator.kt:344 */;
|
3806 5373 | self
|
5374 + | /* ServerBuilderGenerator.kt:343 */
|
3807 5375 | }
|
5376 + | /* ServerBuilderGenerator.kt:426 */
|
3808 5377 | #[allow(missing_docs)] // documentation missing in model
|
5378 + | /* ServerBuilderGenerator.kt:428 */
|
3809 5379 | pub(crate) fn set_range_byte_query(
|
3810 5380 | mut self,
|
3811 5381 | input: impl ::std::convert::Into<
|
3812 5382 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
3813 5383 | >,
|
3814 5384 | ) -> Self {
|
5385 + | /* ServerBuilderGenerator.kt:429 */
|
3815 5386 | self.range_byte_query = Some(input.into());
|
3816 5387 | self
|
5388 + | /* ServerBuilderGenerator.kt:428 */
|
3817 5389 | }
|
5390 + | /* ServerBuilderGenerator.kt:331 */
|
3818 5391 | #[allow(missing_docs)] // documentation missing in model
|
5392 + | /* ServerBuilderGenerator.kt:343 */
|
3819 5393 | pub fn range_short_query(mut self, input: crate::model::RangeShort) -> Self {
|
3820 - | self.range_short_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5394 + | /* ServerBuilderGenerator.kt:344 */
|
5395 + | self.range_short_query =
|
5396 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5397 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
5398 + | /* ServerBuilderGenerator.kt:345 */)
|
5399 + | /* ServerBuilderGenerator.kt:344 */;
|
3821 5400 | self
|
5401 + | /* ServerBuilderGenerator.kt:343 */
|
3822 5402 | }
|
5403 + | /* ServerBuilderGenerator.kt:426 */
|
3823 5404 | #[allow(missing_docs)] // documentation missing in model
|
5405 + | /* ServerBuilderGenerator.kt:428 */
|
3824 5406 | pub(crate) fn set_range_short_query(
|
3825 5407 | mut self,
|
3826 5408 | input: impl ::std::convert::Into<
|
3827 5409 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3828 5410 | >,
|
3829 5411 | ) -> Self {
|
5412 + | /* ServerBuilderGenerator.kt:429 */
|
3830 5413 | self.range_short_query = Some(input.into());
|
3831 5414 | self
|
5415 + | /* ServerBuilderGenerator.kt:428 */
|
3832 5416 | }
|
5417 + | /* ServerBuilderGenerator.kt:331 */
|
3833 5418 | #[allow(missing_docs)] // documentation missing in model
|
5419 + | /* ServerBuilderGenerator.kt:343 */
|
3834 5420 | pub fn range_integer_query(mut self, input: crate::model::RangeInteger) -> Self {
|
5421 + | /* ServerBuilderGenerator.kt:344 */
|
3835 5422 | self.range_integer_query =
|
3836 - | Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5423 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5424 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
5425 + | /* ServerBuilderGenerator.kt:345 */)
|
5426 + | /* ServerBuilderGenerator.kt:344 */;
|
3837 5427 | self
|
5428 + | /* ServerBuilderGenerator.kt:343 */
|
3838 5429 | }
|
5430 + | /* ServerBuilderGenerator.kt:426 */
|
3839 5431 | #[allow(missing_docs)] // documentation missing in model
|
5432 + | /* ServerBuilderGenerator.kt:428 */
|
3840 5433 | pub(crate) fn set_range_integer_query(
|
3841 5434 | mut self,
|
3842 5435 | input: impl ::std::convert::Into<
|
3843 5436 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3844 5437 | >,
|
3845 5438 | ) -> Self {
|
5439 + | /* ServerBuilderGenerator.kt:429 */
|
3846 5440 | self.range_integer_query = Some(input.into());
|
3847 5441 | self
|
5442 + | /* ServerBuilderGenerator.kt:428 */
|
3848 5443 | }
|
5444 + | /* ServerBuilderGenerator.kt:331 */
|
3849 5445 | #[allow(missing_docs)] // documentation missing in model
|
5446 + | /* ServerBuilderGenerator.kt:343 */
|
3850 5447 | pub fn range_long_query(mut self, input: crate::model::RangeLong) -> Self {
|
3851 - | self.range_long_query = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
5448 + | /* ServerBuilderGenerator.kt:344 */
|
5449 + | self.range_long_query =
|
5450 + | /* ServerBuilderGenerator.kt:345 */Some(
|
5451 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
5452 + | /* ServerBuilderGenerator.kt:345 */)
|
5453 + | /* ServerBuilderGenerator.kt:344 */;
|
3852 5454 | self
|
5455 + | /* ServerBuilderGenerator.kt:343 */
|
3853 5456 | }
|
5457 + | /* ServerBuilderGenerator.kt:426 */
|
3854 5458 | #[allow(missing_docs)] // documentation missing in model
|
5459 + | /* ServerBuilderGenerator.kt:428 */
|
3855 5460 | pub(crate) fn set_range_long_query(
|
3856 5461 | mut self,
|
3857 5462 | input: impl ::std::convert::Into<
|
3858 5463 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
3859 5464 | >,
|
3860 5465 | ) -> Self {
|
5466 + | /* ServerBuilderGenerator.kt:429 */
|
3861 5467 | self.range_long_query = Some(input.into());
|
3862 5468 | self
|
5469 + | /* ServerBuilderGenerator.kt:428 */
|
3863 5470 | }
|
5471 + | /* ServerBuilderGenerator.kt:331 */
|
3864 5472 | #[allow(missing_docs)] // documentation missing in model
|
5473 + | /* ServerBuilderGenerator.kt:343 */
|
3865 5474 | pub fn enum_string_query(
|
3866 5475 | mut self,
|
3867 5476 | input: ::std::option::Option<crate::model::EnumString>,
|
3868 5477 | ) -> Self {
|
3869 - | self.enum_string_query = input.map(
|
3870 - | #[allow(clippy::redundant_closure)]
|
3871 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3872 - | );
|
5478 + | /* ServerBuilderGenerator.kt:344 */
|
5479 + | self.enum_string_query =
|
5480 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5481 + | /* ServerBuilderGenerator.kt:344 */;
|
3873 5482 | self
|
5483 + | /* ServerBuilderGenerator.kt:343 */
|
3874 5484 | }
|
5485 + | /* ServerBuilderGenerator.kt:426 */
|
3875 5486 | #[allow(missing_docs)] // documentation missing in model
|
5487 + | /* ServerBuilderGenerator.kt:428 */
|
3876 5488 | pub(crate) fn set_enum_string_query(
|
3877 5489 | mut self,
|
3878 5490 | input: Option<
|
3879 5491 | impl ::std::convert::Into<
|
3880 5492 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
3881 5493 | >,
|
3882 5494 | >,
|
3883 5495 | ) -> Self {
|
5496 + | /* ServerBuilderGenerator.kt:429 */
|
3884 5497 | self.enum_string_query = input.map(|v| v.into());
|
3885 5498 | self
|
5499 + | /* ServerBuilderGenerator.kt:428 */
|
3886 5500 | }
|
5501 + | /* ServerBuilderGenerator.kt:331 */
|
3887 5502 | #[allow(missing_docs)] // documentation missing in model
|
5503 + | /* ServerBuilderGenerator.kt:343 */
|
3888 5504 | pub fn length_string_list_query(
|
3889 5505 | mut self,
|
3890 5506 | input: ::std::option::Option<::std::vec::Vec<crate::model::LengthString>>,
|
3891 5507 | ) -> Self {
|
3892 - | self.length_string_list_query = input.map(
|
3893 - | #[allow(clippy::redundant_closure)]
|
3894 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3895 - | );
|
5508 + | /* ServerBuilderGenerator.kt:344 */
|
5509 + | self.length_string_list_query =
|
5510 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5511 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5512 + | /* ServerBuilderGenerator.kt:369 */)
|
5513 + | /* ServerBuilderGenerator.kt:344 */;
|
3896 5514 | self
|
5515 + | /* ServerBuilderGenerator.kt:343 */
|
3897 5516 | }
|
5517 + | /* ServerBuilderGenerator.kt:426 */
|
3898 5518 | #[allow(missing_docs)] // documentation missing in model
|
5519 + | /* ServerBuilderGenerator.kt:428 */
|
3899 5520 | pub(crate) fn set_length_string_list_query(
|
3900 5521 | mut self,
|
3901 5522 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
3902 5523 | ) -> Self {
|
5524 + | /* ServerBuilderGenerator.kt:429 */
|
3903 5525 | self.length_string_list_query = input.map(|v| v.into());
|
3904 5526 | self
|
5527 + | /* ServerBuilderGenerator.kt:428 */
|
3905 5528 | }
|
5529 + | /* ServerBuilderGenerator.kt:331 */
|
3906 5530 | #[allow(missing_docs)] // documentation missing in model
|
5531 + | /* ServerBuilderGenerator.kt:343 */
|
3907 5532 | pub fn length_list_pattern_string_query(
|
3908 5533 | mut self,
|
3909 5534 | input: ::std::option::Option<crate::model::LengthListOfPatternString>,
|
3910 5535 | ) -> Self {
|
3911 - | self.length_list_pattern_string_query = input.map(
|
3912 - | #[allow(clippy::redundant_closure)]
|
3913 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3914 - | );
|
5536 + | /* ServerBuilderGenerator.kt:344 */
|
5537 + | self.length_list_pattern_string_query =
|
5538 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5539 + | /* ServerBuilderGenerator.kt:344 */;
|
3915 5540 | self
|
5541 + | /* ServerBuilderGenerator.kt:343 */
|
3916 5542 | }
|
5543 + | /* ServerBuilderGenerator.kt:426 */
|
3917 5544 | #[allow(missing_docs)] // documentation missing in model
|
5545 + | /* ServerBuilderGenerator.kt:428 */
|
3918 5546 | pub(crate) fn set_length_list_pattern_string_query(
|
3919 5547 | mut self,
|
3920 5548 | input: Option<
|
3921 5549 | impl ::std::convert::Into<
|
3922 5550 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
3923 5551 | >,
|
3924 5552 | >,
|
3925 5553 | ) -> Self {
|
5554 + | /* ServerBuilderGenerator.kt:429 */
|
3926 5555 | self.length_list_pattern_string_query = input.map(|v| v.into());
|
3927 5556 | self
|
5557 + | /* ServerBuilderGenerator.kt:428 */
|
3928 5558 | }
|
5559 + | /* ServerBuilderGenerator.kt:331 */
|
3929 5560 | #[allow(missing_docs)] // documentation missing in model
|
5561 + | /* ServerBuilderGenerator.kt:343 */
|
3930 5562 | pub fn length_string_set_query(
|
3931 5563 | mut self,
|
3932 5564 | input: ::std::option::Option<crate::model::SetOfLengthString>,
|
3933 5565 | ) -> Self {
|
3934 - | self.length_string_set_query = input.map(
|
3935 - | #[allow(clippy::redundant_closure)]
|
3936 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3937 - | );
|
5566 + | /* ServerBuilderGenerator.kt:344 */
|
5567 + | self.length_string_set_query =
|
5568 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5569 + | /* ServerBuilderGenerator.kt:344 */;
|
3938 5570 | self
|
5571 + | /* ServerBuilderGenerator.kt:343 */
|
3939 5572 | }
|
5573 + | /* ServerBuilderGenerator.kt:426 */
|
3940 5574 | #[allow(missing_docs)] // documentation missing in model
|
5575 + | /* ServerBuilderGenerator.kt:428 */
|
3941 5576 | pub(crate) fn set_length_string_set_query(
|
3942 5577 | mut self,
|
3943 5578 | input: Option<
|
3944 5579 | impl ::std::convert::Into<
|
3945 5580 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
3946 5581 | >,
|
3947 5582 | >,
|
3948 5583 | ) -> Self {
|
5584 + | /* ServerBuilderGenerator.kt:429 */
|
3949 5585 | self.length_string_set_query = input.map(|v| v.into());
|
3950 5586 | self
|
5587 + | /* ServerBuilderGenerator.kt:428 */
|
3951 5588 | }
|
5589 + | /* ServerBuilderGenerator.kt:331 */
|
3952 5590 | #[allow(missing_docs)] // documentation missing in model
|
5591 + | /* ServerBuilderGenerator.kt:343 */
|
3953 5592 | pub fn range_byte_list_query(
|
3954 5593 | mut self,
|
3955 5594 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeByte>>,
|
3956 5595 | ) -> Self {
|
3957 - | self.range_byte_list_query = input.map(
|
3958 - | #[allow(clippy::redundant_closure)]
|
3959 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3960 - | );
|
5596 + | /* ServerBuilderGenerator.kt:344 */
|
5597 + | self.range_byte_list_query =
|
5598 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5599 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5600 + | /* ServerBuilderGenerator.kt:369 */)
|
5601 + | /* ServerBuilderGenerator.kt:344 */;
|
3961 5602 | self
|
5603 + | /* ServerBuilderGenerator.kt:343 */
|
3962 5604 | }
|
5605 + | /* ServerBuilderGenerator.kt:426 */
|
3963 5606 | #[allow(missing_docs)] // documentation missing in model
|
5607 + | /* ServerBuilderGenerator.kt:428 */
|
3964 5608 | pub(crate) fn set_range_byte_list_query(
|
3965 5609 | mut self,
|
3966 5610 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
3967 5611 | ) -> Self {
|
5612 + | /* ServerBuilderGenerator.kt:429 */
|
3968 5613 | self.range_byte_list_query = input.map(|v| v.into());
|
3969 5614 | self
|
5615 + | /* ServerBuilderGenerator.kt:428 */
|
3970 5616 | }
|
5617 + | /* ServerBuilderGenerator.kt:331 */
|
3971 5618 | #[allow(missing_docs)] // documentation missing in model
|
5619 + | /* ServerBuilderGenerator.kt:343 */
|
3972 5620 | pub fn range_short_list_query(
|
3973 5621 | mut self,
|
3974 5622 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeShort>>,
|
3975 5623 | ) -> Self {
|
3976 - | self.range_short_list_query = input.map(
|
3977 - | #[allow(clippy::redundant_closure)]
|
3978 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3979 - | );
|
5624 + | /* ServerBuilderGenerator.kt:344 */
|
5625 + | self.range_short_list_query =
|
5626 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5627 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5628 + | /* ServerBuilderGenerator.kt:369 */)
|
5629 + | /* ServerBuilderGenerator.kt:344 */;
|
3980 5630 | self
|
5631 + | /* ServerBuilderGenerator.kt:343 */
|
3981 5632 | }
|
5633 + | /* ServerBuilderGenerator.kt:426 */
|
3982 5634 | #[allow(missing_docs)] // documentation missing in model
|
5635 + | /* ServerBuilderGenerator.kt:428 */
|
3983 5636 | pub(crate) fn set_range_short_list_query(
|
3984 5637 | mut self,
|
3985 5638 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
3986 5639 | ) -> Self {
|
5640 + | /* ServerBuilderGenerator.kt:429 */
|
3987 5641 | self.range_short_list_query = input.map(|v| v.into());
|
3988 5642 | self
|
5643 + | /* ServerBuilderGenerator.kt:428 */
|
3989 5644 | }
|
5645 + | /* ServerBuilderGenerator.kt:331 */
|
3990 5646 | #[allow(missing_docs)] // documentation missing in model
|
5647 + | /* ServerBuilderGenerator.kt:343 */
|
3991 5648 | pub fn range_integer_list_query(
|
3992 5649 | mut self,
|
3993 5650 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeInteger>>,
|
3994 5651 | ) -> Self {
|
3995 - | self.range_integer_list_query = input.map(
|
3996 - | #[allow(clippy::redundant_closure)]
|
3997 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
3998 - | );
|
5652 + | /* ServerBuilderGenerator.kt:344 */
|
5653 + | self.range_integer_list_query =
|
5654 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5655 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5656 + | /* ServerBuilderGenerator.kt:369 */)
|
5657 + | /* ServerBuilderGenerator.kt:344 */;
|
3999 5658 | self
|
5659 + | /* ServerBuilderGenerator.kt:343 */
|
4000 5660 | }
|
5661 + | /* ServerBuilderGenerator.kt:426 */
|
4001 5662 | #[allow(missing_docs)] // documentation missing in model
|
5663 + | /* ServerBuilderGenerator.kt:428 */
|
4002 5664 | pub(crate) fn set_range_integer_list_query(
|
4003 5665 | mut self,
|
4004 5666 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4005 5667 | ) -> Self {
|
5668 + | /* ServerBuilderGenerator.kt:429 */
|
4006 5669 | self.range_integer_list_query = input.map(|v| v.into());
|
4007 5670 | self
|
5671 + | /* ServerBuilderGenerator.kt:428 */
|
4008 5672 | }
|
5673 + | /* ServerBuilderGenerator.kt:331 */
|
4009 5674 | #[allow(missing_docs)] // documentation missing in model
|
5675 + | /* ServerBuilderGenerator.kt:343 */
|
4010 5676 | pub fn range_long_list_query(
|
4011 5677 | mut self,
|
4012 5678 | input: ::std::option::Option<::std::vec::Vec<crate::model::RangeLong>>,
|
4013 5679 | ) -> Self {
|
4014 - | self.range_long_list_query = input.map(
|
4015 - | #[allow(clippy::redundant_closure)]
|
4016 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
4017 - | );
|
5680 + | /* ServerBuilderGenerator.kt:344 */
|
5681 + | self.range_long_list_query =
|
5682 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5683 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5684 + | /* ServerBuilderGenerator.kt:369 */)
|
5685 + | /* ServerBuilderGenerator.kt:344 */;
|
4018 5686 | self
|
5687 + | /* ServerBuilderGenerator.kt:343 */
|
4019 5688 | }
|
5689 + | /* ServerBuilderGenerator.kt:426 */
|
4020 5690 | #[allow(missing_docs)] // documentation missing in model
|
5691 + | /* ServerBuilderGenerator.kt:428 */
|
4021 5692 | pub(crate) fn set_range_long_list_query(
|
4022 5693 | mut self,
|
4023 5694 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
4024 5695 | ) -> Self {
|
5696 + | /* ServerBuilderGenerator.kt:429 */
|
4025 5697 | self.range_long_list_query = input.map(|v| v.into());
|
4026 5698 | self
|
5699 + | /* ServerBuilderGenerator.kt:428 */
|
4027 5700 | }
|
5701 + | /* ServerBuilderGenerator.kt:331 */
|
4028 5702 | #[allow(missing_docs)] // documentation missing in model
|
5703 + | /* ServerBuilderGenerator.kt:343 */
|
4029 5704 | pub fn range_byte_set_query(
|
4030 5705 | mut self,
|
4031 5706 | input: ::std::option::Option<crate::model::SetOfRangeByte>,
|
4032 5707 | ) -> Self {
|
4033 - | self.range_byte_set_query = input.map(
|
4034 - | #[allow(clippy::redundant_closure)]
|
4035 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4036 - | );
|
5708 + | /* ServerBuilderGenerator.kt:344 */
|
5709 + | self.range_byte_set_query =
|
5710 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5711 + | /* ServerBuilderGenerator.kt:344 */;
|
4037 5712 | self
|
5713 + | /* ServerBuilderGenerator.kt:343 */
|
4038 5714 | }
|
5715 + | /* ServerBuilderGenerator.kt:426 */
|
4039 5716 | #[allow(missing_docs)] // documentation missing in model
|
5717 + | /* ServerBuilderGenerator.kt:428 */
|
4040 5718 | pub(crate) fn set_range_byte_set_query(
|
4041 5719 | mut self,
|
4042 5720 | input: Option<
|
4043 5721 | impl ::std::convert::Into<
|
4044 5722 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
4045 5723 | >,
|
4046 5724 | >,
|
4047 5725 | ) -> Self {
|
5726 + | /* ServerBuilderGenerator.kt:429 */
|
4048 5727 | self.range_byte_set_query = input.map(|v| v.into());
|
4049 5728 | self
|
5729 + | /* ServerBuilderGenerator.kt:428 */
|
4050 5730 | }
|
5731 + | /* ServerBuilderGenerator.kt:331 */
|
4051 5732 | #[allow(missing_docs)] // documentation missing in model
|
5733 + | /* ServerBuilderGenerator.kt:343 */
|
4052 5734 | pub fn range_short_set_query(
|
4053 5735 | mut self,
|
4054 5736 | input: ::std::option::Option<crate::model::SetOfRangeShort>,
|
4055 5737 | ) -> Self {
|
4056 - | self.range_short_set_query = input.map(
|
4057 - | #[allow(clippy::redundant_closure)]
|
4058 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4059 - | );
|
5738 + | /* ServerBuilderGenerator.kt:344 */
|
5739 + | self.range_short_set_query =
|
5740 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5741 + | /* ServerBuilderGenerator.kt:344 */;
|
4060 5742 | self
|
5743 + | /* ServerBuilderGenerator.kt:343 */
|
4061 5744 | }
|
5745 + | /* ServerBuilderGenerator.kt:426 */
|
4062 5746 | #[allow(missing_docs)] // documentation missing in model
|
5747 + | /* ServerBuilderGenerator.kt:428 */
|
4063 5748 | pub(crate) fn set_range_short_set_query(
|
4064 5749 | mut self,
|
4065 5750 | input: Option<
|
4066 5751 | impl ::std::convert::Into<
|
4067 5752 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
4068 5753 | >,
|
4069 5754 | >,
|
4070 5755 | ) -> Self {
|
5756 + | /* ServerBuilderGenerator.kt:429 */
|
4071 5757 | self.range_short_set_query = input.map(|v| v.into());
|
4072 5758 | self
|
5759 + | /* ServerBuilderGenerator.kt:428 */
|
4073 5760 | }
|
5761 + | /* ServerBuilderGenerator.kt:331 */
|
4074 5762 | #[allow(missing_docs)] // documentation missing in model
|
5763 + | /* ServerBuilderGenerator.kt:343 */
|
4075 5764 | pub fn range_integer_set_query(
|
4076 5765 | mut self,
|
4077 5766 | input: ::std::option::Option<crate::model::SetOfRangeInteger>,
|
4078 5767 | ) -> Self {
|
4079 - | self.range_integer_set_query = input.map(
|
4080 - | #[allow(clippy::redundant_closure)]
|
4081 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4082 - | );
|
5768 + | /* ServerBuilderGenerator.kt:344 */
|
5769 + | self.range_integer_set_query =
|
5770 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5771 + | /* ServerBuilderGenerator.kt:344 */;
|
4083 5772 | self
|
5773 + | /* ServerBuilderGenerator.kt:343 */
|
4084 5774 | }
|
5775 + | /* ServerBuilderGenerator.kt:426 */
|
4085 5776 | #[allow(missing_docs)] // documentation missing in model
|
5777 + | /* ServerBuilderGenerator.kt:428 */
|
4086 5778 | pub(crate) fn set_range_integer_set_query(
|
4087 5779 | mut self,
|
4088 5780 | input: Option<
|
4089 5781 | impl ::std::convert::Into<
|
4090 5782 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
4091 5783 | >,
|
4092 5784 | >,
|
4093 5785 | ) -> Self {
|
5786 + | /* ServerBuilderGenerator.kt:429 */
|
4094 5787 | self.range_integer_set_query = input.map(|v| v.into());
|
4095 5788 | self
|
5789 + | /* ServerBuilderGenerator.kt:428 */
|
4096 5790 | }
|
5791 + | /* ServerBuilderGenerator.kt:331 */
|
4097 5792 | #[allow(missing_docs)] // documentation missing in model
|
5793 + | /* ServerBuilderGenerator.kt:343 */
|
4098 5794 | pub fn range_long_set_query(
|
4099 5795 | mut self,
|
4100 5796 | input: ::std::option::Option<crate::model::SetOfRangeLong>,
|
4101 5797 | ) -> Self {
|
4102 - | self.range_long_set_query = input.map(
|
4103 - | #[allow(clippy::redundant_closure)]
|
4104 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4105 - | );
|
5798 + | /* ServerBuilderGenerator.kt:344 */
|
5799 + | self.range_long_set_query =
|
5800 + | /* ServerBuilderGenerator.kt:367 */input.map(crate::constrained::MaybeConstrained::Constrained)
|
5801 + | /* ServerBuilderGenerator.kt:344 */;
|
4106 5802 | self
|
5803 + | /* ServerBuilderGenerator.kt:343 */
|
4107 5804 | }
|
5805 + | /* ServerBuilderGenerator.kt:426 */
|
4108 5806 | #[allow(missing_docs)] // documentation missing in model
|
5807 + | /* ServerBuilderGenerator.kt:428 */
|
4109 5808 | pub(crate) fn set_range_long_set_query(
|
4110 5809 | mut self,
|
4111 5810 | input: Option<
|
4112 5811 | impl ::std::convert::Into<
|
4113 5812 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
4114 5813 | >,
|
4115 5814 | >,
|
4116 5815 | ) -> Self {
|
5816 + | /* ServerBuilderGenerator.kt:429 */
|
4117 5817 | self.range_long_set_query = input.map(|v| v.into());
|
4118 5818 | self
|
5819 + | /* ServerBuilderGenerator.kt:428 */
|
4119 5820 | }
|
5821 + | /* ServerBuilderGenerator.kt:331 */
|
4120 5822 | #[allow(missing_docs)] // documentation missing in model
|
5823 + | /* ServerBuilderGenerator.kt:343 */
|
4121 5824 | pub fn enum_string_list_query(
|
4122 5825 | mut self,
|
4123 5826 | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
4124 5827 | ) -> Self {
|
4125 - | self.enum_string_list_query = input.map(
|
4126 - | #[allow(clippy::redundant_closure)]
|
4127 - | |v| crate::constrained::MaybeConstrained::Constrained((v).into()),
|
4128 - | );
|
5828 + | /* ServerBuilderGenerator.kt:344 */
|
5829 + | self.enum_string_list_query =
|
5830 + | /* ServerBuilderGenerator.kt:369 */input.map(#[allow(clippy::redundant_closure)] |v|
|
5831 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained((v).into())
|
5832 + | /* ServerBuilderGenerator.kt:369 */)
|
5833 + | /* ServerBuilderGenerator.kt:344 */;
|
4129 5834 | self
|
5835 + | /* ServerBuilderGenerator.kt:343 */
|
4130 5836 | }
|
5837 + | /* ServerBuilderGenerator.kt:426 */
|
4131 5838 | #[allow(missing_docs)] // documentation missing in model
|
5839 + | /* ServerBuilderGenerator.kt:428 */
|
4132 5840 | pub(crate) fn set_enum_string_list_query(
|
4133 5841 | mut self,
|
4134 5842 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
4135 5843 | ) -> Self {
|
5844 + | /* ServerBuilderGenerator.kt:429 */
|
4136 5845 | self.enum_string_list_query = input.map(|v| v.into());
|
4137 5846 | self
|
5847 + | /* ServerBuilderGenerator.kt:428 */
|
4138 5848 | }
|
4139 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4140 - | ///
|
5849 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5850 + | /// /* ServerBuilderGenerator.kt:260 */
|
4141 5851 | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4142 5852 | ///
|
4143 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5853 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5854 + | /* ServerBuilderGenerator.kt:271 */
|
4144 5855 | pub fn build(
|
4145 5856 | self,
|
4146 5857 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4147 5858 | {
|
4148 5859 | self.build_enforcing_all_constraints()
|
4149 5860 | }
|
5861 + | /* ServerBuilderGenerator.kt:283 */
|
4150 5862 | fn build_enforcing_all_constraints(
|
4151 5863 | self,
|
4152 5864 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4153 5865 | {
|
5866 + | /* ServerBuilderGenerator.kt:287 */
|
4154 5867 | Ok(
|
4155 - | crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4156 - | length_string_label: self.length_string_label
|
4157 - | .map(|v| match v {
|
5868 + | /* ServerBuilderGenerator.kt:542 */crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5869 + | /* ServerBuilderGenerator.kt:546 */length_string_label: self.length_string_label
|
5870 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4158 5871 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4159 5872 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4160 5873 | })
|
4161 - | .map(|res|
|
5874 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4162 5875 | res.map_err(ConstraintViolation::LengthStringLabel)
|
4163 5876 | )
|
4164 5877 | .transpose()?
|
4165 - | .ok_or(ConstraintViolation::MissingLengthStringLabel)?
|
5878 + | /* ServerBuilderGenerator.kt:569 */.ok_or(ConstraintViolation::MissingLengthStringLabel)?
|
4166 5879 | ,
|
4167 - | range_integer_label: self.range_integer_label
|
4168 - | .map(|v| match v {
|
5880 + | /* ServerBuilderGenerator.kt:546 */range_integer_label: self.range_integer_label
|
5881 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4169 5882 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4170 5883 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4171 5884 | })
|
4172 - | .map(|res|
|
5885 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4173 5886 | res.map_err(ConstraintViolation::RangeIntegerLabel)
|
4174 5887 | )
|
4175 5888 | .transpose()?
|
4176 - | .unwrap_or_else(||
|
5889 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4177 5890 | 0i32
|
4178 5891 | .try_into()
|
4179 5892 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4180 5893 | )
|
4181 5894 | ,
|
4182 - | range_short_label: self.range_short_label
|
4183 - | .map(|v| match v {
|
5895 + | /* ServerBuilderGenerator.kt:546 */range_short_label: self.range_short_label
|
5896 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4184 5897 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4185 5898 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4186 5899 | })
|
4187 - | .map(|res|
|
5900 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4188 5901 | res.map_err(ConstraintViolation::RangeShortLabel)
|
4189 5902 | )
|
4190 5903 | .transpose()?
|
4191 - | .unwrap_or_else(||
|
5904 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4192 5905 | 0i16
|
4193 5906 | .try_into()
|
4194 5907 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4195 5908 | )
|
4196 5909 | ,
|
4197 - | range_long_label: self.range_long_label
|
4198 - | .map(|v| match v {
|
5910 + | /* ServerBuilderGenerator.kt:546 */range_long_label: self.range_long_label
|
5911 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4199 5912 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4200 5913 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4201 5914 | })
|
4202 - | .map(|res|
|
5915 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4203 5916 | res.map_err(ConstraintViolation::RangeLongLabel)
|
4204 5917 | )
|
4205 5918 | .transpose()?
|
4206 - | .unwrap_or_else(||
|
5919 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4207 5920 | 0i64
|
4208 5921 | .try_into()
|
4209 5922 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4210 5923 | )
|
4211 5924 | ,
|
4212 - | range_byte_label: self.range_byte_label
|
4213 - | .map(|v| match v {
|
5925 + | /* ServerBuilderGenerator.kt:546 */range_byte_label: self.range_byte_label
|
5926 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4214 5927 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4215 5928 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4216 5929 | })
|
4217 - | .map(|res|
|
5930 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4218 5931 | res.map_err(ConstraintViolation::RangeByteLabel)
|
4219 5932 | )
|
4220 5933 | .transpose()?
|
4221 - | .unwrap_or_else(||
|
5934 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4222 5935 | 0i8
|
4223 5936 | .try_into()
|
4224 5937 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4225 5938 | )
|
4226 5939 | ,
|
4227 - | enum_string_label: self.enum_string_label
|
4228 - | .map(|v| match v {
|
5940 + | /* ServerBuilderGenerator.kt:546 */enum_string_label: self.enum_string_label
|
5941 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4229 5942 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4230 5943 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4231 5944 | })
|
4232 - | .map(|res|
|
5945 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4233 5946 | res.map_err(ConstraintViolation::EnumStringLabel)
|
4234 5947 | )
|
4235 5948 | .transpose()?
|
4236 - | .ok_or(ConstraintViolation::MissingEnumStringLabel)?
|
5949 + | /* ServerBuilderGenerator.kt:569 */.ok_or(ConstraintViolation::MissingEnumStringLabel)?
|
4237 5950 | ,
|
4238 - | length_string_header_map: self.length_string_header_map
|
4239 - | .map(|v| match v {
|
5951 + | /* ServerBuilderGenerator.kt:546 */length_string_header_map: self.length_string_header_map
|
5952 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4240 5953 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4241 5954 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4242 5955 | })
|
4243 - | .map(|res|
|
5956 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4244 5957 | res.map(|v| v.into()).map_err(ConstraintViolation::LengthStringHeaderMap)
|
4245 5958 | )
|
4246 5959 | .transpose()?
|
4247 - | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?
|
5960 + | /* ServerBuilderGenerator.kt:569 */.ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?
|
4248 5961 | ,
|
4249 - | length_string_header: self.length_string_header
|
4250 - | .map(|v| match v {
|
5962 + | /* ServerBuilderGenerator.kt:546 */length_string_header: self.length_string_header
|
5963 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4251 5964 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4252 5965 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4253 5966 | })
|
4254 - | .map(|res|
|
5967 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4255 5968 | res.map_err(ConstraintViolation::LengthStringHeader)
|
4256 5969 | )
|
4257 5970 | .transpose()?
|
4258 5971 | ,
|
4259 - | range_integer_header: self.range_integer_header
|
4260 - | .map(|v| match v {
|
5972 + | /* ServerBuilderGenerator.kt:546 */range_integer_header: self.range_integer_header
|
5973 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4261 5974 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4262 5975 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4263 5976 | })
|
4264 - | .map(|res|
|
5977 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4265 5978 | res.map_err(ConstraintViolation::RangeIntegerHeader)
|
4266 5979 | )
|
4267 5980 | .transpose()?
|
4268 - | .unwrap_or_else(||
|
5981 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4269 5982 | 0i32
|
4270 5983 | .try_into()
|
4271 5984 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4272 5985 | )
|
4273 5986 | ,
|
4274 - | range_short_header: self.range_short_header
|
4275 - | .map(|v| match v {
|
5987 + | /* ServerBuilderGenerator.kt:546 */range_short_header: self.range_short_header
|
5988 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4276 5989 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4277 5990 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4278 5991 | })
|
4279 - | .map(|res|
|
5992 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4280 5993 | res.map_err(ConstraintViolation::RangeShortHeader)
|
4281 5994 | )
|
4282 5995 | .transpose()?
|
4283 - | .unwrap_or_else(||
|
5996 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4284 5997 | 0i16
|
4285 5998 | .try_into()
|
4286 5999 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4287 6000 | )
|
4288 6001 | ,
|
4289 - | range_long_header: self.range_long_header
|
4290 - | .map(|v| match v {
|
6002 + | /* ServerBuilderGenerator.kt:546 */range_long_header: self.range_long_header
|
6003 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4291 6004 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4292 6005 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4293 6006 | })
|
4294 - | .map(|res|
|
6007 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4295 6008 | res.map_err(ConstraintViolation::RangeLongHeader)
|
4296 6009 | )
|
4297 6010 | .transpose()?
|
4298 - | .unwrap_or_else(||
|
6011 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4299 6012 | 0i64
|
4300 6013 | .try_into()
|
4301 6014 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4302 6015 | )
|
4303 6016 | ,
|
4304 - | range_byte_header: self.range_byte_header
|
4305 - | .map(|v| match v {
|
6017 + | /* ServerBuilderGenerator.kt:546 */range_byte_header: self.range_byte_header
|
6018 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4306 6019 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4307 6020 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4308 6021 | })
|
4309 - | .map(|res|
|
6022 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4310 6023 | res.map_err(ConstraintViolation::RangeByteHeader)
|
4311 6024 | )
|
4312 6025 | .transpose()?
|
4313 - | .unwrap_or_else(||
|
6026 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4314 6027 | 0i8
|
4315 6028 | .try_into()
|
4316 6029 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4317 6030 | )
|
4318 6031 | ,
|
4319 - | length_string_set_header: self.length_string_set_header
|
4320 - | .map(|v| match v {
|
6032 + | /* ServerBuilderGenerator.kt:546 */length_string_set_header: self.length_string_set_header
|
6033 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4321 6034 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4322 6035 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4323 6036 | })
|
4324 - | .map(|res|
|
6037 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4325 6038 | res.map_err(ConstraintViolation::LengthStringSetHeader)
|
4326 6039 | )
|
4327 6040 | .transpose()?
|
4328 6041 | ,
|
4329 - | list_length_string_header: self.list_length_string_header
|
4330 - | .map(|v| match v {
|
6042 + | /* ServerBuilderGenerator.kt:546 */list_length_string_header: self.list_length_string_header
|
6043 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4331 6044 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4332 6045 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4333 6046 | })
|
4334 - | .map(|res|
|
6047 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4335 6048 | res.map(|v| v.into()).map_err(ConstraintViolation::ListLengthStringHeader)
|
4336 6049 | )
|
4337 6050 | .transpose()?
|
4338 6051 | ,
|
4339 - | length_list_pattern_string_header: self.length_list_pattern_string_header
|
4340 - | .map(|v| match v {
|
6052 + | /* ServerBuilderGenerator.kt:546 */length_list_pattern_string_header: self.length_list_pattern_string_header
|
6053 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4341 6054 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4342 6055 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4343 6056 | })
|
4344 - | .map(|res|
|
6057 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4345 6058 | res.map_err(ConstraintViolation::LengthListPatternStringHeader)
|
4346 6059 | )
|
4347 6060 | .transpose()?
|
4348 6061 | ,
|
4349 - | length_set_pattern_string_header: self.length_set_pattern_string_header
|
4350 - | .map(|v| match v {
|
6062 + | /* ServerBuilderGenerator.kt:546 */length_set_pattern_string_header: self.length_set_pattern_string_header
|
6063 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4351 6064 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4352 6065 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4353 6066 | })
|
4354 - | .map(|res|
|
6067 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4355 6068 | res.map_err(ConstraintViolation::LengthSetPatternStringHeader)
|
4356 6069 | )
|
4357 6070 | .transpose()?
|
4358 6071 | ,
|
4359 - | range_byte_set_header: self.range_byte_set_header
|
4360 - | .map(|v| match v {
|
6072 + | /* ServerBuilderGenerator.kt:546 */range_byte_set_header: self.range_byte_set_header
|
6073 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4361 6074 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4362 6075 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4363 6076 | })
|
4364 - | .map(|res|
|
6077 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4365 6078 | res.map_err(ConstraintViolation::RangeByteSetHeader)
|
4366 6079 | )
|
4367 6080 | .transpose()?
|
4368 6081 | ,
|
4369 - | range_short_set_header: self.range_short_set_header
|
4370 - | .map(|v| match v {
|
6082 + | /* ServerBuilderGenerator.kt:546 */range_short_set_header: self.range_short_set_header
|
6083 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4371 6084 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4372 6085 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4373 6086 | })
|
4374 - | .map(|res|
|
6087 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4375 6088 | res.map_err(ConstraintViolation::RangeShortSetHeader)
|
4376 6089 | )
|
4377 6090 | .transpose()?
|
4378 6091 | ,
|
4379 - | range_integer_set_header: self.range_integer_set_header
|
4380 - | .map(|v| match v {
|
6092 + | /* ServerBuilderGenerator.kt:546 */range_integer_set_header: self.range_integer_set_header
|
6093 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4381 6094 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4382 6095 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4383 6096 | })
|
4384 - | .map(|res|
|
6097 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4385 6098 | res.map_err(ConstraintViolation::RangeIntegerSetHeader)
|
4386 6099 | )
|
4387 6100 | .transpose()?
|
4388 6101 | ,
|
4389 - | range_long_set_header: self.range_long_set_header
|
4390 - | .map(|v| match v {
|
6102 + | /* ServerBuilderGenerator.kt:546 */range_long_set_header: self.range_long_set_header
|
6103 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4391 6104 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4392 6105 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4393 6106 | })
|
4394 - | .map(|res|
|
6107 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4395 6108 | res.map_err(ConstraintViolation::RangeLongSetHeader)
|
4396 6109 | )
|
4397 6110 | .transpose()?
|
4398 6111 | ,
|
4399 - | range_byte_list_header: self.range_byte_list_header
|
4400 - | .map(|v| match v {
|
6112 + | /* ServerBuilderGenerator.kt:546 */range_byte_list_header: self.range_byte_list_header
|
6113 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4401 6114 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4402 6115 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4403 6116 | })
|
4404 - | .map(|res|
|
6117 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4405 6118 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeByteListHeader)
|
4406 6119 | )
|
4407 6120 | .transpose()?
|
4408 6121 | ,
|
4409 - | range_short_list_header: self.range_short_list_header
|
4410 - | .map(|v| match v {
|
6122 + | /* ServerBuilderGenerator.kt:546 */range_short_list_header: self.range_short_list_header
|
6123 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4411 6124 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4412 6125 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4413 6126 | })
|
4414 - | .map(|res|
|
6127 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4415 6128 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeShortListHeader)
|
4416 6129 | )
|
4417 6130 | .transpose()?
|
4418 6131 | ,
|
4419 - | range_integer_list_header: self.range_integer_list_header
|
4420 - | .map(|v| match v {
|
6132 + | /* ServerBuilderGenerator.kt:546 */range_integer_list_header: self.range_integer_list_header
|
6133 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4421 6134 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4422 6135 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4423 6136 | })
|
4424 - | .map(|res|
|
6137 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4425 6138 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeIntegerListHeader)
|
4426 6139 | )
|
4427 6140 | .transpose()?
|
4428 6141 | ,
|
4429 - | range_long_list_header: self.range_long_list_header
|
4430 - | .map(|v| match v {
|
6142 + | /* ServerBuilderGenerator.kt:546 */range_long_list_header: self.range_long_list_header
|
6143 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4431 6144 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4432 6145 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4433 6146 | })
|
4434 - | .map(|res|
|
6147 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4435 6148 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeLongListHeader)
|
4436 6149 | )
|
4437 6150 | .transpose()?
|
4438 6151 | ,
|
4439 - | length_string_query: self.length_string_query
|
4440 - | .map(|v| match v {
|
6152 + | /* ServerBuilderGenerator.kt:546 */length_string_query: self.length_string_query
|
6153 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4441 6154 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4442 6155 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4443 6156 | })
|
4444 - | .map(|res|
|
6157 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4445 6158 | res.map_err(ConstraintViolation::LengthStringQuery)
|
4446 6159 | )
|
4447 6160 | .transpose()?
|
4448 6161 | ,
|
4449 - | range_byte_query: self.range_byte_query
|
4450 - | .map(|v| match v {
|
6162 + | /* ServerBuilderGenerator.kt:546 */range_byte_query: self.range_byte_query
|
6163 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4451 6164 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4452 6165 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4453 6166 | })
|
4454 - | .map(|res|
|
6167 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4455 6168 | res.map_err(ConstraintViolation::RangeByteQuery)
|
4456 6169 | )
|
4457 6170 | .transpose()?
|
4458 - | .unwrap_or_else(||
|
6171 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4459 6172 | 0i8
|
4460 6173 | .try_into()
|
4461 6174 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4462 6175 | )
|
4463 6176 | ,
|
4464 - | range_short_query: self.range_short_query
|
4465 - | .map(|v| match v {
|
6177 + | /* ServerBuilderGenerator.kt:546 */range_short_query: self.range_short_query
|
6178 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4466 6179 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4467 6180 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4468 6181 | })
|
4469 - | .map(|res|
|
6182 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4470 6183 | res.map_err(ConstraintViolation::RangeShortQuery)
|
4471 6184 | )
|
4472 6185 | .transpose()?
|
4473 - | .unwrap_or_else(||
|
6186 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4474 6187 | 0i16
|
4475 6188 | .try_into()
|
4476 6189 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4477 6190 | )
|
4478 6191 | ,
|
4479 - | range_integer_query: self.range_integer_query
|
4480 - | .map(|v| match v {
|
6192 + | /* ServerBuilderGenerator.kt:546 */range_integer_query: self.range_integer_query
|
6193 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4481 6194 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4482 6195 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4483 6196 | })
|
4484 - | .map(|res|
|
6197 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4485 6198 | res.map_err(ConstraintViolation::RangeIntegerQuery)
|
4486 6199 | )
|
4487 6200 | .transpose()?
|
4488 - | .unwrap_or_else(||
|
6201 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4489 6202 | 0i32
|
4490 6203 | .try_into()
|
4491 6204 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4492 6205 | )
|
4493 6206 | ,
|
4494 - | range_long_query: self.range_long_query
|
4495 - | .map(|v| match v {
|
6207 + | /* ServerBuilderGenerator.kt:546 */range_long_query: self.range_long_query
|
6208 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4496 6209 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4497 6210 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4498 6211 | })
|
4499 - | .map(|res|
|
6212 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4500 6213 | res.map_err(ConstraintViolation::RangeLongQuery)
|
4501 6214 | )
|
4502 6215 | .transpose()?
|
4503 - | .unwrap_or_else(||
|
6216 + | /* ServerBuilderGeneratorCommon.kt:118 */.unwrap_or_else(||
|
4504 6217 | 0i64
|
4505 6218 | .try_into()
|
4506 6219 | .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4507 6220 | )
|
4508 6221 | ,
|
4509 - | enum_string_query: self.enum_string_query
|
4510 - | .map(|v| match v {
|
6222 + | /* ServerBuilderGenerator.kt:546 */enum_string_query: self.enum_string_query
|
6223 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4511 6224 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4512 6225 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4513 6226 | })
|
4514 - | .map(|res|
|
6227 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4515 6228 | res.map_err(ConstraintViolation::EnumStringQuery)
|
4516 6229 | )
|
4517 6230 | .transpose()?
|
4518 6231 | ,
|
4519 - | length_string_list_query: self.length_string_list_query
|
4520 - | .map(|v| match v {
|
6232 + | /* ServerBuilderGenerator.kt:546 */length_string_list_query: self.length_string_list_query
|
6233 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4521 6234 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4522 6235 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4523 6236 | })
|
4524 - | .map(|res|
|
6237 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4525 6238 | res.map(|v| v.into()).map_err(ConstraintViolation::LengthStringListQuery)
|
4526 6239 | )
|
4527 6240 | .transpose()?
|
4528 6241 | ,
|
4529 - | length_list_pattern_string_query: self.length_list_pattern_string_query
|
4530 - | .map(|v| match v {
|
6242 + | /* ServerBuilderGenerator.kt:546 */length_list_pattern_string_query: self.length_list_pattern_string_query
|
6243 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4531 6244 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4532 6245 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4533 6246 | })
|
4534 - | .map(|res|
|
6247 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4535 6248 | res.map_err(ConstraintViolation::LengthListPatternStringQuery)
|
4536 6249 | )
|
4537 6250 | .transpose()?
|
4538 6251 | ,
|
4539 - | length_string_set_query: self.length_string_set_query
|
4540 - | .map(|v| match v {
|
6252 + | /* ServerBuilderGenerator.kt:546 */length_string_set_query: self.length_string_set_query
|
6253 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4541 6254 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4542 6255 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4543 6256 | })
|
4544 - | .map(|res|
|
6257 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4545 6258 | res.map_err(ConstraintViolation::LengthStringSetQuery)
|
4546 6259 | )
|
4547 6260 | .transpose()?
|
4548 6261 | ,
|
4549 - | range_byte_list_query: self.range_byte_list_query
|
4550 - | .map(|v| match v {
|
6262 + | /* ServerBuilderGenerator.kt:546 */range_byte_list_query: self.range_byte_list_query
|
6263 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4551 6264 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4552 6265 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4553 6266 | })
|
4554 - | .map(|res|
|
6267 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4555 6268 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeByteListQuery)
|
4556 6269 | )
|
4557 6270 | .transpose()?
|
4558 6271 | ,
|
4559 - | range_short_list_query: self.range_short_list_query
|
4560 - | .map(|v| match v {
|
6272 + | /* ServerBuilderGenerator.kt:546 */range_short_list_query: self.range_short_list_query
|
6273 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4561 6274 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4562 6275 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4563 6276 | })
|
4564 - | .map(|res|
|
6277 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4565 6278 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeShortListQuery)
|
4566 6279 | )
|
4567 6280 | .transpose()?
|
4568 6281 | ,
|
4569 - | range_integer_list_query: self.range_integer_list_query
|
4570 - | .map(|v| match v {
|
6282 + | /* ServerBuilderGenerator.kt:546 */range_integer_list_query: self.range_integer_list_query
|
6283 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4571 6284 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4572 6285 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4573 6286 | })
|
4574 - | .map(|res|
|
6287 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4575 6288 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeIntegerListQuery)
|
4576 6289 | )
|
4577 6290 | .transpose()?
|
4578 6291 | ,
|
4579 - | range_long_list_query: self.range_long_list_query
|
4580 - | .map(|v| match v {
|
6292 + | /* ServerBuilderGenerator.kt:546 */range_long_list_query: self.range_long_list_query
|
6293 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4581 6294 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4582 6295 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4583 6296 | })
|
4584 - | .map(|res|
|
6297 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4585 6298 | res.map(|v| v.into()).map_err(ConstraintViolation::RangeLongListQuery)
|
4586 6299 | )
|
4587 6300 | .transpose()?
|
4588 6301 | ,
|
4589 - | range_byte_set_query: self.range_byte_set_query
|
4590 - | .map(|v| match v {
|
6302 + | /* ServerBuilderGenerator.kt:546 */range_byte_set_query: self.range_byte_set_query
|
6303 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4591 6304 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4592 6305 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4593 6306 | })
|
4594 - | .map(|res|
|
6307 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4595 6308 | res.map_err(ConstraintViolation::RangeByteSetQuery)
|
4596 6309 | )
|
4597 6310 | .transpose()?
|
4598 6311 | ,
|
4599 - | range_short_set_query: self.range_short_set_query
|
4600 - | .map(|v| match v {
|
6312 + | /* ServerBuilderGenerator.kt:546 */range_short_set_query: self.range_short_set_query
|
6313 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4601 6314 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4602 6315 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4603 6316 | })
|
4604 - | .map(|res|
|
6317 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4605 6318 | res.map_err(ConstraintViolation::RangeShortSetQuery)
|
4606 6319 | )
|
4607 6320 | .transpose()?
|
4608 6321 | ,
|
4609 - | range_integer_set_query: self.range_integer_set_query
|
4610 - | .map(|v| match v {
|
6322 + | /* ServerBuilderGenerator.kt:546 */range_integer_set_query: self.range_integer_set_query
|
6323 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4611 6324 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4612 6325 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4613 6326 | })
|
4614 - | .map(|res|
|
6327 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4615 6328 | res.map_err(ConstraintViolation::RangeIntegerSetQuery)
|
4616 6329 | )
|
4617 6330 | .transpose()?
|
4618 6331 | ,
|
4619 - | range_long_set_query: self.range_long_set_query
|
4620 - | .map(|v| match v {
|
6332 + | /* ServerBuilderGenerator.kt:546 */range_long_set_query: self.range_long_set_query
|
6333 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4621 6334 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4622 6335 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4623 6336 | })
|
4624 - | .map(|res|
|
6337 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4625 6338 | res.map_err(ConstraintViolation::RangeLongSetQuery)
|
4626 6339 | )
|
4627 6340 | .transpose()?
|
4628 6341 | ,
|
4629 - | enum_string_list_query: self.enum_string_list_query
|
4630 - | .map(|v| match v {
|
6342 + | /* ServerBuilderGenerator.kt:546 */enum_string_list_query: self.enum_string_list_query
|
6343 + | /* ServerBuilderGenerator.kt:602 */.map(|v| match v {
|
4631 6344 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4632 6345 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4633 6346 | })
|
4634 - | .map(|res|
|
6347 + | /* ServerBuilderGenerator.kt:614 */.map(|res|
|
4635 6348 | res.map(|v| v.into()).map_err(ConstraintViolation::EnumStringListQuery)
|
4636 6349 | )
|
4637 6350 | .transpose()?
|
4638 6351 | ,
|
6352 + | /* ServerBuilderGenerator.kt:542 */}
|
6353 + | /* ServerBuilderGenerator.kt:287 */)
|
6354 + | /* ServerBuilderGenerator.kt:283 */
|
4639 6355 | }
|
4640 - | )
|
4641 - | }
|
6356 + | /* ServerBuilderGenerator.kt:215 */
|
4642 6357 | }
|
6358 + |
|
6359 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4643 6360 | }
|
4644 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6361 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
4645 6362 | pub mod constrained_shapes_only_in_output_operation_input {
|
4646 6363 |
|
6364 + | /* ServerBuilderGenerator.kt:461 */
|
4647 6365 | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
4648 6366 | fn from(builder: Builder) -> Self {
|
4649 6367 | builder.build()
|
4650 6368 | }
|
4651 6369 | }
|
4652 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6370 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6371 + | /* RustType.kt:516 */
|
4653 6372 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4654 - | pub struct Builder {}
|
6373 + | /* ServerBuilderGenerator.kt:211 */
|
6374 + | pub struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
6375 + | /* ServerBuilderGenerator.kt:215 */
|
4655 6376 | impl Builder {
|
4656 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6377 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
6378 + | /* ServerBuilderGenerator.kt:271 */
|
4657 6379 | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
4658 6380 | self.build_enforcing_all_constraints()
|
4659 6381 | }
|
6382 + | /* ServerBuilderGenerator.kt:283 */
|
4660 6383 | fn build_enforcing_all_constraints(
|
4661 6384 | self,
|
4662 6385 | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
4663 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
6386 + | /* ServerBuilderGenerator.kt:542 */
|
6387 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
6388 + | /* ServerBuilderGenerator.kt:542 */}
|
6389 + | /* ServerBuilderGenerator.kt:283 */
|
4664 6390 | }
|
6391 + | /* ServerBuilderGenerator.kt:215 */
|
4665 6392 | }
|
6393 + |
|
6394 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4666 6395 | }
|
4667 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6396 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
4668 6397 | pub mod constrained_shapes_operation_input {
|
4669 6398 |
|
6399 + | /* RustType.kt:516 */
|
4670 6400 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4671 - | /// Holds one variant for each of the ways the builder can fail.
|
6401 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6402 + | /* RustType.kt:516 */
|
4672 6403 | #[non_exhaustive]
|
6404 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4673 6405 | #[allow(clippy::enum_variant_names)]
|
4674 6406 | pub enum ConstraintViolation {
|
4675 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6407 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6408 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4676 6409 | MissingConA,
|
4677 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
6410 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
6411 + | /* RustType.kt:516 */
|
4678 6412 | #[doc(hidden)]
|
6413 + | /* ServerBuilderConstraintViolations.kt:164 */
|
4679 6414 | ConA(crate::model::con_a::ConstraintViolation),
|
6415 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4680 6416 | }
|
6417 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4681 6418 | impl ::std::fmt::Display for ConstraintViolation {
|
6419 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4682 6420 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6421 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4683 6422 | match self {
|
4684 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
4685 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
4686 - | }
|
6423 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6424 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
6425 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6426 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4687 6427 | }
|
6428 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4688 6429 | }
|
6430 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4689 6431 | impl ::std::error::Error for ConstraintViolation {}
|
6432 + | /* ServerBuilderConstraintViolations.kt:171 */
|
4690 6433 | impl ConstraintViolation {
|
4691 6434 | pub(crate) fn as_validation_exception_field(
|
4692 6435 | self,
|
4693 6436 | path: ::std::string::String,
|
4694 6437 | ) -> crate::model::ValidationExceptionField {
|
4695 6438 | match self {
|
4696 6439 | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
4697 6440 | message: format!(
|
4698 6441 | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
4699 6442 | path
|
4700 6443 | ),
|
4701 6444 | path: path + "/conA",
|
4702 6445 | },
|
4703 6446 | ConstraintViolation::ConA(inner) => {
|
4704 6447 | inner.as_validation_exception_field(path + "/conA")
|
4705 6448 | }
|
4706 6449 | }
|
4707 6450 | }
|
4708 6451 | }
|
6452 + | /* ServerBuilderGenerator.kt:234 */
|
4709 6453 | impl ::std::convert::From<ConstraintViolation>
|
4710 6454 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
4711 6455 | {
|
4712 6456 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
4713 6457 | let first_validation_exception_field =
|
4714 6458 | constraint_violation.as_validation_exception_field("".to_owned());
|
4715 6459 | let validation_exception = crate::error::ValidationException {
|
4716 6460 | message: format!(
|
4717 6461 | "1 validation error detected. {}",
|
4718 6462 | &first_validation_exception_field.message
|
4719 6463 | ),
|
4720 6464 | field_list: Some(vec![first_validation_exception_field]),
|
4721 6465 | };
|
4722 6466 | Self::ConstraintViolation(
|
4723 6467 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
4724 6468 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
4725 6469 | )
|
4726 6470 | }
|
4727 6471 | }
|
6472 + | /* ServerBuilderGenerator.kt:244 */
|
4728 6473 | impl ::std::convert::From<Builder>
|
4729 6474 | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
4730 6475 | {
|
4731 6476 | fn from(builder: Builder) -> Self {
|
4732 6477 | Self::Unconstrained(builder)
|
4733 6478 | }
|
4734 6479 | }
|
6480 + | /* ServerBuilderGenerator.kt:446 */
|
4735 6481 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
4736 6482 | type Error = ConstraintViolation;
|
4737 6483 |
|
4738 6484 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4739 6485 | builder.build()
|
4740 6486 | }
|
4741 6487 | }
|
4742 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6488 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6489 + | /* RustType.kt:516 */
|
4743 6490 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6491 + | /* ServerBuilderGenerator.kt:211 */
|
4744 6492 | pub struct Builder {
|
6493 + | /* ServerBuilderGenerator.kt:308 */
|
4745 6494 | pub(crate) con_a:
|
4746 6495 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
6496 + | /* ServerBuilderGenerator.kt:211 */
|
4747 6497 | }
|
6498 + | /* ServerBuilderGenerator.kt:215 */
|
4748 6499 | impl Builder {
|
6500 + | /* ServerBuilderGenerator.kt:331 */
|
4749 6501 | #[allow(missing_docs)] // documentation missing in model
|
6502 + | /* ServerBuilderGenerator.kt:343 */
|
4750 6503 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
4751 - | self.con_a = Some(crate::constrained::MaybeConstrained::Constrained(input));
|
6504 + | /* ServerBuilderGenerator.kt:344 */
|
6505 + | self.con_a =
|
6506 + | /* ServerBuilderGenerator.kt:345 */Some(
|
6507 + | /* ServerBuilderGenerator.kt:371 */crate::constrained::MaybeConstrained::Constrained(input)
|
6508 + | /* ServerBuilderGenerator.kt:345 */)
|
6509 + | /* ServerBuilderGenerator.kt:344 */;
|
4752 6510 | self
|
6511 + | /* ServerBuilderGenerator.kt:343 */
|
4753 6512 | }
|
6513 + | /* ServerBuilderGenerator.kt:426 */
|
4754 6514 | #[allow(missing_docs)] // documentation missing in model
|
6515 + | /* ServerBuilderGenerator.kt:428 */
|
4755 6516 | pub(crate) fn set_con_a(
|
4756 6517 | mut self,
|
4757 6518 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4758 6519 | ) -> Self {
|
6520 + | /* ServerBuilderGenerator.kt:429 */
|
4759 6521 | self.con_a = Some(input.into());
|
4760 6522 | self
|
6523 + | /* ServerBuilderGenerator.kt:428 */
|
4761 6524 | }
|
4762 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
4763 - | ///
|
6525 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6526 + | /// /* ServerBuilderGenerator.kt:260 */
|
4764 6527 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4765 6528 | ///
|
4766 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6529 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6530 + | /* ServerBuilderGenerator.kt:271 */
|
4767 6531 | pub fn build(
|
4768 6532 | self,
|
4769 6533 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
4770 6534 | self.build_enforcing_all_constraints()
|
4771 6535 | }
|
6536 + | /* ServerBuilderGenerator.kt:283 */
|
4772 6537 | fn build_enforcing_all_constraints(
|
4773 6538 | self,
|
4774 6539 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
4775 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
6540 + | /* ServerBuilderGenerator.kt:287 */
|
6541 + | Ok(
|
6542 + | /* ServerBuilderGenerator.kt:542 */
|
6543 + | crate::input::ConstrainedShapesOperationInput {
|
6544 + | /* ServerBuilderGenerator.kt:546 */
|
4776 6545 | con_a: self
|
4777 6546 | .con_a
|
6547 + | /* ServerBuilderGenerator.kt:602 */
|
4778 6548 | .map(|v| match v {
|
4779 6549 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4780 6550 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4781 6551 | })
|
6552 + | /* ServerBuilderGenerator.kt:614 */
|
4782 6553 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
4783 6554 | .transpose()?
|
6555 + | /* ServerBuilderGenerator.kt:569 */
|
4784 6556 | .ok_or(ConstraintViolation::MissingConA)?,
|
4785 - | })
|
6557 + | /* ServerBuilderGenerator.kt:542 */
|
6558 + | }, /* ServerBuilderGenerator.kt:287 */
|
6559 + | )
|
6560 + | /* ServerBuilderGenerator.kt:283 */
|
4786 6561 | }
|
6562 + | /* ServerBuilderGenerator.kt:215 */
|
4787 6563 | }
|
6564 + |
|
6565 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4788 6566 | }
|