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 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
18 29 | impl crate::constrained::Constrained for crate::input::EventStreamsOperationInput {
|
19 30 | type Unconstrained = crate::input::event_streams_operation_input_internal::Builder;
|
20 31 | }
|
32 + | /* ServerCodegenVisitor.kt:370 */
|
21 33 | impl EventStreamsOperationInput {
|
22 - | /// Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
34 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
35 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
23 36 | pub fn builder() -> crate::input::event_streams_operation_input::Builder {
|
37 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
24 38 | crate::input::event_streams_operation_input::Builder::default()
|
39 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
25 40 | }
|
41 + | /* ServerCodegenVisitor.kt:370 */
|
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 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
40 67 | impl crate::constrained::Constrained for crate::input::StreamingBlobOperationInput {
|
41 68 | type Unconstrained = crate::input::streaming_blob_operation_input_internal::Builder;
|
42 69 | }
|
70 + | /* ServerCodegenVisitor.kt:370 */
|
43 71 | impl StreamingBlobOperationInput {
|
44 - | /// Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
72 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
73 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
45 74 | pub fn builder() -> crate::input::streaming_blob_operation_input::Builder {
|
75 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
46 76 | crate::input::streaming_blob_operation_input::Builder::default()
|
77 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
47 78 | }
|
79 + | /* ServerCodegenVisitor.kt:370 */
|
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 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
64 107 | impl crate::constrained::Constrained for crate::input::NonStreamingBlobOperationInput {
|
65 108 | type Unconstrained = crate::input::non_streaming_blob_operation_input_internal::Builder;
|
66 109 | }
|
110 + | /* ServerCodegenVisitor.kt:370 */
|
67 111 | impl NonStreamingBlobOperationInput {
|
68 - | /// Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
112 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
113 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
69 114 | pub fn builder() -> crate::input::non_streaming_blob_operation_input::Builder {
|
115 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
70 116 | crate::input::non_streaming_blob_operation_input::Builder::default()
|
117 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
71 118 | }
|
119 + | /* ServerCodegenVisitor.kt:370 */
|
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 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
92 151 | impl crate::constrained::Constrained
|
93 152 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
94 153 | {
|
95 154 | type Unconstrained =
|
96 155 | crate::input::query_params_targeting_map_of_enum_string_operation_input_internal::Builder;
|
97 156 | }
|
157 + | /* ServerCodegenVisitor.kt:370 */
|
98 158 | impl QueryParamsTargetingMapOfEnumStringOperationInput {
|
99 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
159 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
100 161 | pub fn builder(
|
101 162 | ) -> crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder {
|
163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
102 164 | crate::input::query_params_targeting_map_of_enum_string_operation_input::Builder::default()
|
165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
103 166 | }
|
167 + | /* ServerCodegenVisitor.kt:370 */
|
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<
|
111 178 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
112 179 | >,
|
180 + | /* StructureGenerator.kt:201 */
|
113 181 | }
|
182 + | /* StructureGenerator.kt:135 */
|
114 183 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
184 + | /* StructureGenerator.kt:231 */
|
115 185 | #[allow(missing_docs)] // documentation missing in model
|
186 + | /* StructureGenerator.kt:166 */
|
116 187 | pub fn length_map(
|
117 188 | &self,
|
118 189 | ) -> ::std::option::Option<
|
119 190 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
120 191 | > {
|
192 + | /* StructureGenerator.kt:170 */
|
121 193 | self.length_map.as_ref()
|
194 + | /* StructureGenerator.kt:166 */
|
122 195 | }
|
196 + | /* StructureGenerator.kt:135 */
|
123 197 | }
|
198 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
124 199 | impl crate::constrained::Constrained
|
125 200 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
126 201 | {
|
127 202 | type Unconstrained =
|
128 203 | crate::input::http_prefix_headers_targeting_length_map_operation_input_internal::Builder;
|
129 204 | }
|
205 + | /* ServerCodegenVisitor.kt:370 */
|
130 206 | impl HttpPrefixHeadersTargetingLengthMapOperationInput {
|
131 - | /// Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
207 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
208 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
132 209 | pub fn builder(
|
133 210 | ) -> crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder {
|
211 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
134 212 | crate::input::http_prefix_headers_targeting_length_map_operation_input::Builder::default()
|
213 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
135 214 | }
|
215 + | /* ServerCodegenVisitor.kt:370 */
|
136 216 | }
|
137 217 |
|
218 + | /* StructureGenerator.kt:197 */
|
138 219 | #[allow(missing_docs)] // documentation missing in model
|
220 + | /* RustType.kt:516 */
|
139 221 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
140 - | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
222 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
223 + | {
|
224 + | /* StructureGenerator.kt:231 */
|
141 225 | #[allow(missing_docs)] // documentation missing in model
|
142 226 | pub map_of_length_pattern_string: ::std::option::Option<
|
143 227 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
144 228 | >,
|
229 + | /* StructureGenerator.kt:201 */
|
145 230 | }
|
231 + | /* StructureGenerator.kt:135 */
|
146 232 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
233 + | /* StructureGenerator.kt:231 */
|
147 234 | #[allow(missing_docs)] // documentation missing in model
|
235 + | /* StructureGenerator.kt:166 */
|
148 236 | pub fn map_of_length_pattern_string(
|
149 237 | &self,
|
150 238 | ) -> ::std::option::Option<
|
151 239 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
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 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
156 248 | impl crate::constrained::Constrained
|
157 249 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
158 250 | {
|
159 251 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal::Builder;
|
160 252 | }
|
253 + | /* ServerCodegenVisitor.kt:370 */
|
161 254 | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
162 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
255 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
163 257 | pub fn builder() -> crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder{
|
258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
164 259 | crate::input::query_params_targeting_map_of_list_of_length_pattern_string_operation_input::Builder::default()
|
260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
165 261 | }
|
262 + | /* ServerCodegenVisitor.kt:370 */
|
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<::std::string::String, ::std::string::String>,
|
174 275 | >,
|
276 + | /* StructureGenerator.kt:201 */
|
175 277 | }
|
278 + | /* StructureGenerator.kt:135 */
|
176 279 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
280 + | /* StructureGenerator.kt:231 */
|
177 281 | #[allow(missing_docs)] // documentation missing in model
|
282 + | /* StructureGenerator.kt:166 */
|
178 283 | pub fn map_of_length_pattern_string(
|
179 284 | &self,
|
180 285 | ) -> ::std::option::Option<
|
181 286 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
182 287 | > {
|
288 + | /* StructureGenerator.kt:170 */
|
183 289 | self.map_of_length_pattern_string.as_ref()
|
290 + | /* StructureGenerator.kt:166 */
|
184 291 | }
|
292 + | /* StructureGenerator.kt:135 */
|
185 293 | }
|
294 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
186 295 | impl crate::constrained::Constrained
|
187 296 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
188 297 | {
|
189 298 | type Unconstrained = crate::input::query_params_targeting_map_of_length_pattern_string_operation_input_internal::Builder;
|
190 299 | }
|
300 + | /* ServerCodegenVisitor.kt:370 */
|
191 301 | impl QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
192 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
302 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
193 304 | pub fn builder(
|
194 305 | ) -> crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder
|
195 306 | {
|
307 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
196 308 | crate::input::query_params_targeting_map_of_length_pattern_string_operation_input::Builder::default()
|
309 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
197 310 | }
|
311 + | /* ServerCodegenVisitor.kt:370 */
|
198 312 | }
|
199 313 |
|
314 + | /* StructureGenerator.kt:197 */
|
200 315 | #[allow(missing_docs)] // documentation missing in model
|
316 + | /* RustType.kt:516 */
|
201 317 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
202 - | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
318 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
319 + | {
|
320 + | /* StructureGenerator.kt:231 */
|
203 321 | #[allow(missing_docs)] // documentation missing in model
|
204 322 | pub map_of_list_of_pattern_string: ::std::option::Option<
|
205 323 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
206 324 | >,
|
325 + | /* StructureGenerator.kt:201 */
|
207 326 | }
|
327 + | /* StructureGenerator.kt:135 */
|
208 328 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
329 + | /* StructureGenerator.kt:231 */
|
209 330 | #[allow(missing_docs)] // documentation missing in model
|
331 + | /* StructureGenerator.kt:166 */
|
210 332 | pub fn map_of_list_of_pattern_string(
|
211 333 | &self,
|
212 334 | ) -> ::std::option::Option<
|
213 335 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
214 336 | > {
|
337 + | /* StructureGenerator.kt:170 */
|
215 338 | self.map_of_list_of_pattern_string.as_ref()
|
339 + | /* StructureGenerator.kt:166 */
|
216 340 | }
|
341 + | /* StructureGenerator.kt:135 */
|
217 342 | }
|
343 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
218 344 | impl crate::constrained::Constrained
|
219 345 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
220 346 | {
|
221 347 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input_internal::Builder;
|
222 348 | }
|
349 + | /* ServerCodegenVisitor.kt:370 */
|
223 350 | impl QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
224 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
351 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
352 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
225 353 | pub fn builder(
|
226 354 | ) -> crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder
|
227 355 | {
|
356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
228 357 | crate::input::query_params_targeting_map_of_list_of_pattern_string_operation_input::Builder::default()
|
358 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
229 359 | }
|
360 + | /* ServerCodegenVisitor.kt:370 */
|
230 361 | }
|
231 362 |
|
363 + | /* StructureGenerator.kt:197 */
|
232 364 | #[allow(missing_docs)] // documentation missing in model
|
365 + | /* RustType.kt:516 */
|
233 366 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
234 - | pub struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
367 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfPatternStringOperationInput {
|
368 + | /* StructureGenerator.kt:231 */
|
235 369 | #[allow(missing_docs)] // documentation missing in model
|
236 370 | pub map_of_pattern_string: ::std::option::Option<
|
237 371 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
238 372 | >,
|
373 + | /* StructureGenerator.kt:201 */
|
239 374 | }
|
375 + | /* StructureGenerator.kt:135 */
|
240 376 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
377 + | /* StructureGenerator.kt:231 */
|
241 378 | #[allow(missing_docs)] // documentation missing in model
|
379 + | /* StructureGenerator.kt:166 */
|
242 380 | pub fn map_of_pattern_string(
|
243 381 | &self,
|
244 382 | ) -> ::std::option::Option<
|
245 383 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
246 384 | > {
|
385 + | /* StructureGenerator.kt:170 */
|
247 386 | self.map_of_pattern_string.as_ref()
|
387 + | /* StructureGenerator.kt:166 */
|
248 388 | }
|
389 + | /* StructureGenerator.kt:135 */
|
249 390 | }
|
391 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
250 392 | impl crate::constrained::Constrained
|
251 393 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
252 394 | {
|
253 395 | type Unconstrained = crate::input::query_params_targeting_map_of_pattern_string_operation_input_internal::Builder;
|
254 396 | }
|
397 + | /* ServerCodegenVisitor.kt:370 */
|
255 398 | impl QueryParamsTargetingMapOfPatternStringOperationInput {
|
256 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
399 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
400 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
257 401 | pub fn builder(
|
258 402 | ) -> crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder {
|
403 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
259 404 | crate::input::query_params_targeting_map_of_pattern_string_operation_input::Builder::default(
|
260 405 | )
|
406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
261 407 | }
|
408 + | /* ServerCodegenVisitor.kt:370 */
|
262 409 | }
|
263 410 |
|
411 + | /* StructureGenerator.kt:197 */
|
264 412 | #[allow(missing_docs)] // documentation missing in model
|
413 + | /* RustType.kt:516 */
|
265 414 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
266 - | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
415 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
416 + | /* StructureGenerator.kt:231 */
|
267 417 | #[allow(missing_docs)] // documentation missing in model
|
268 418 | pub map_of_list_of_enum_string: ::std::option::Option<
|
269 419 | ::std::collections::HashMap<
|
270 420 | crate::model::EnumString,
|
271 421 | ::std::vec::Vec<crate::model::EnumString>,
|
272 422 | >,
|
273 423 | >,
|
424 + | /* StructureGenerator.kt:201 */
|
274 425 | }
|
426 + | /* StructureGenerator.kt:135 */
|
275 427 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
428 + | /* StructureGenerator.kt:231 */
|
276 429 | #[allow(missing_docs)] // documentation missing in model
|
430 + | /* StructureGenerator.kt:166 */
|
277 431 | pub fn map_of_list_of_enum_string(
|
278 432 | &self,
|
279 433 | ) -> ::std::option::Option<
|
280 434 | &::std::collections::HashMap<
|
281 435 | crate::model::EnumString,
|
282 436 | ::std::vec::Vec<crate::model::EnumString>,
|
283 437 | >,
|
284 438 | > {
|
439 + | /* StructureGenerator.kt:170 */
|
285 440 | self.map_of_list_of_enum_string.as_ref()
|
441 + | /* StructureGenerator.kt:166 */
|
286 442 | }
|
443 + | /* StructureGenerator.kt:135 */
|
287 444 | }
|
445 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
288 446 | impl crate::constrained::Constrained
|
289 447 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
290 448 | {
|
291 449 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input_internal::Builder;
|
292 450 | }
|
451 + | /* ServerCodegenVisitor.kt:370 */
|
293 452 | impl QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
294 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
453 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
454 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
295 455 | pub fn builder(
|
296 456 | ) -> crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder
|
297 457 | {
|
458 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
298 459 | crate::input::query_params_targeting_map_of_list_of_enum_string_operation_input::Builder::default()
|
460 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
299 461 | }
|
462 + | /* ServerCodegenVisitor.kt:370 */
|
300 463 | }
|
301 464 |
|
465 + | /* StructureGenerator.kt:197 */
|
302 466 | #[allow(missing_docs)] // documentation missing in model
|
467 + | /* RustType.kt:516 */
|
303 468 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
304 - | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
469 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
470 + | {
|
471 + | /* StructureGenerator.kt:231 */
|
305 472 | #[allow(missing_docs)] // documentation missing in model
|
306 473 | pub map_of_length_list_of_pattern_string: ::std::option::Option<
|
307 474 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
308 475 | >,
|
476 + | /* StructureGenerator.kt:201 */
|
309 477 | }
|
478 + | /* StructureGenerator.kt:135 */
|
310 479 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
480 + | /* StructureGenerator.kt:231 */
|
311 481 | #[allow(missing_docs)] // documentation missing in model
|
482 + | /* StructureGenerator.kt:166 */
|
312 483 | pub fn map_of_length_list_of_pattern_string(
|
313 484 | &self,
|
314 485 | ) -> ::std::option::Option<
|
315 486 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
316 487 | > {
|
488 + | /* StructureGenerator.kt:170 */
|
317 489 | self.map_of_length_list_of_pattern_string.as_ref()
|
490 + | /* StructureGenerator.kt:166 */
|
318 491 | }
|
492 + | /* StructureGenerator.kt:135 */
|
319 493 | }
|
494 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
320 495 | impl crate::constrained::Constrained
|
321 496 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
322 497 | {
|
323 498 | type Unconstrained = crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal::Builder;
|
324 499 | }
|
500 + | /* ServerCodegenVisitor.kt:370 */
|
325 501 | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
326 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
502 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
327 504 | pub fn builder() -> crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder{
|
505 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
328 506 | crate::input::query_params_targeting_map_of_length_list_of_pattern_string_operation_input::Builder::default()
|
507 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
329 508 | }
|
509 + | /* ServerCodegenVisitor.kt:370 */
|
330 510 | }
|
331 511 |
|
512 + | /* StructureGenerator.kt:197 */
|
332 513 | #[allow(missing_docs)] // documentation missing in model
|
514 + | /* RustType.kt:516 */
|
333 515 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
334 - | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
516 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
517 + | {
|
518 + | /* StructureGenerator.kt:231 */
|
335 519 | #[allow(missing_docs)] // documentation missing in model
|
336 520 | pub map_of_set_of_length_string: ::std::option::Option<
|
337 521 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
338 522 | >,
|
523 + | /* StructureGenerator.kt:201 */
|
339 524 | }
|
525 + | /* StructureGenerator.kt:135 */
|
340 526 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
527 + | /* StructureGenerator.kt:231 */
|
341 528 | #[allow(missing_docs)] // documentation missing in model
|
529 + | /* StructureGenerator.kt:166 */
|
342 530 | pub fn map_of_set_of_length_string(
|
343 531 | &self,
|
344 532 | ) -> ::std::option::Option<
|
345 533 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
346 534 | > {
|
535 + | /* StructureGenerator.kt:170 */
|
347 536 | self.map_of_set_of_length_string.as_ref()
|
537 + | /* StructureGenerator.kt:166 */
|
348 538 | }
|
539 + | /* StructureGenerator.kt:135 */
|
349 540 | }
|
541 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
350 542 | impl crate::constrained::Constrained
|
351 543 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
352 544 | {
|
353 545 | type Unconstrained = crate::input::query_params_targeting_map_of_set_of_length_string_operation_input_internal::Builder;
|
354 546 | }
|
547 + | /* ServerCodegenVisitor.kt:370 */
|
355 548 | impl QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
356 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
549 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
357 551 | pub fn builder(
|
358 552 | ) -> crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder
|
359 553 | {
|
554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
360 555 | crate::input::query_params_targeting_map_of_set_of_length_string_operation_input::Builder::default()
|
556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
361 557 | }
|
558 + | /* ServerCodegenVisitor.kt:370 */
|
362 559 | }
|
363 560 |
|
561 + | /* StructureGenerator.kt:197 */
|
364 562 | #[allow(missing_docs)] // documentation missing in model
|
563 + | /* RustType.kt:516 */
|
365 564 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
366 - | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
565 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
566 + | {
|
567 + | /* StructureGenerator.kt:231 */
|
367 568 | #[allow(missing_docs)] // documentation missing in model
|
368 569 | pub map_of_list_of_length_string: ::std::option::Option<
|
369 570 | ::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
370 571 | >,
|
572 + | /* StructureGenerator.kt:201 */
|
371 573 | }
|
574 + | /* StructureGenerator.kt:135 */
|
372 575 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
576 + | /* StructureGenerator.kt:231 */
|
373 577 | #[allow(missing_docs)] // documentation missing in model
|
578 + | /* StructureGenerator.kt:166 */
|
374 579 | pub fn map_of_list_of_length_string(
|
375 580 | &self,
|
376 581 | ) -> ::std::option::Option<
|
377 582 | &::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>,
|
378 583 | > {
|
584 + | /* StructureGenerator.kt:170 */
|
379 585 | self.map_of_list_of_length_string.as_ref()
|
586 + | /* StructureGenerator.kt:166 */
|
380 587 | }
|
588 + | /* StructureGenerator.kt:135 */
|
381 589 | }
|
590 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
382 591 | impl crate::constrained::Constrained
|
383 592 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
384 593 | {
|
385 594 | type Unconstrained = crate::input::query_params_targeting_map_of_list_of_length_string_operation_input_internal::Builder;
|
386 595 | }
|
596 + | /* ServerCodegenVisitor.kt:370 */
|
387 597 | impl QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
388 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
598 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
599 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
389 600 | pub fn builder(
|
390 601 | ) -> crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder
|
391 602 | {
|
603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
392 604 | crate::input::query_params_targeting_map_of_list_of_length_string_operation_input::Builder::default()
|
605 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
393 606 | }
|
607 + | /* ServerCodegenVisitor.kt:370 */
|
394 608 | }
|
395 609 |
|
610 + | /* StructureGenerator.kt:197 */
|
396 611 | #[allow(missing_docs)] // documentation missing in model
|
612 + | /* RustType.kt:516 */
|
397 613 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
398 - | pub struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
614 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingMapOfLengthStringOperationInput {
|
615 + | /* StructureGenerator.kt:231 */
|
399 616 | #[allow(missing_docs)] // documentation missing in model
|
400 617 | pub map_of_length_string: ::std::option::Option<
|
401 618 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
402 619 | >,
|
620 + | /* StructureGenerator.kt:201 */
|
403 621 | }
|
622 + | /* StructureGenerator.kt:135 */
|
404 623 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
624 + | /* StructureGenerator.kt:231 */
|
405 625 | #[allow(missing_docs)] // documentation missing in model
|
626 + | /* StructureGenerator.kt:166 */
|
406 627 | pub fn map_of_length_string(
|
407 628 | &self,
|
408 629 | ) -> ::std::option::Option<
|
409 630 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
410 631 | > {
|
632 + | /* StructureGenerator.kt:170 */
|
411 633 | self.map_of_length_string.as_ref()
|
634 + | /* StructureGenerator.kt:166 */
|
412 635 | }
|
636 + | /* StructureGenerator.kt:135 */
|
413 637 | }
|
638 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
414 639 | impl crate::constrained::Constrained
|
415 640 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
416 641 | {
|
417 642 | type Unconstrained =
|
418 643 | crate::input::query_params_targeting_map_of_length_string_operation_input_internal::Builder;
|
419 644 | }
|
645 + | /* ServerCodegenVisitor.kt:370 */
|
420 646 | impl QueryParamsTargetingMapOfLengthStringOperationInput {
|
421 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
647 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
648 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
422 649 | pub fn builder(
|
423 650 | ) -> crate::input::query_params_targeting_map_of_length_string_operation_input::Builder {
|
651 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
424 652 | crate::input::query_params_targeting_map_of_length_string_operation_input::Builder::default(
|
425 653 | )
|
654 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
426 655 | }
|
656 + | /* ServerCodegenVisitor.kt:370 */
|
427 657 | }
|
428 658 |
|
659 + | /* StructureGenerator.kt:197 */
|
429 660 | #[allow(missing_docs)] // documentation missing in model
|
661 + | /* RustType.kt:516 */
|
430 662 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
431 - | pub struct QueryParamsTargetingLengthMapOperationInput {
|
663 + | pub /* StructureGenerator.kt:201 */ struct QueryParamsTargetingLengthMapOperationInput {
|
664 + | /* StructureGenerator.kt:231 */
|
432 665 | #[allow(missing_docs)] // documentation missing in model
|
433 666 | pub length_map: ::std::option::Option<
|
434 667 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
435 668 | >,
|
669 + | /* StructureGenerator.kt:201 */
|
436 670 | }
|
671 + | /* StructureGenerator.kt:135 */
|
437 672 | impl QueryParamsTargetingLengthMapOperationInput {
|
673 + | /* StructureGenerator.kt:231 */
|
438 674 | #[allow(missing_docs)] // documentation missing in model
|
675 + | /* StructureGenerator.kt:166 */
|
439 676 | pub fn length_map(
|
440 677 | &self,
|
441 678 | ) -> ::std::option::Option<
|
442 679 | &::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
443 680 | > {
|
681 + | /* StructureGenerator.kt:170 */
|
444 682 | self.length_map.as_ref()
|
683 + | /* StructureGenerator.kt:166 */
|
445 684 | }
|
685 + | /* StructureGenerator.kt:135 */
|
446 686 | }
|
687 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
447 688 | impl crate::constrained::Constrained for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
448 689 | type Unconstrained =
|
449 690 | crate::input::query_params_targeting_length_map_operation_input_internal::Builder;
|
450 691 | }
|
692 + | /* ServerCodegenVisitor.kt:370 */
|
451 693 | impl QueryParamsTargetingLengthMapOperationInput {
|
452 - | /// Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
694 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
453 696 | pub fn builder() -> crate::input::query_params_targeting_length_map_operation_input::Builder {
|
697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
454 698 | crate::input::query_params_targeting_length_map_operation_input::Builder::default()
|
699 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
455 700 | }
|
701 + | /* ServerCodegenVisitor.kt:370 */
|
456 702 | }
|
457 703 |
|
704 + | /* StructureGenerator.kt:197 */
|
458 705 | #[allow(missing_docs)] // documentation missing in model
|
706 + | /* RustType.kt:516 */
|
459 707 | #[derive(
|
460 708 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
461 709 | )]
|
462 - | pub struct ConstrainedRecursiveShapesOperationInput {
|
710 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedRecursiveShapesOperationInput {
|
711 + | /* StructureGenerator.kt:231 */
|
463 712 | #[allow(missing_docs)] // documentation missing in model
|
464 713 | pub nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
714 + | /* StructureGenerator.kt:231 */
|
465 715 | #[allow(missing_docs)] // documentation missing in model
|
466 716 | pub recursive_list: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
717 + | /* StructureGenerator.kt:201 */
|
467 718 | }
|
719 + | /* StructureGenerator.kt:135 */
|
468 720 | impl ConstrainedRecursiveShapesOperationInput {
|
721 + | /* StructureGenerator.kt:231 */
|
469 722 | #[allow(missing_docs)] // documentation missing in model
|
723 + | /* StructureGenerator.kt:166 */
|
470 724 | pub fn nested(
|
471 725 | &self,
|
472 726 | ) -> ::std::option::Option<&crate::model::RecursiveShapesInputOutputNested1> {
|
727 + | /* StructureGenerator.kt:170 */
|
473 728 | self.nested.as_ref()
|
729 + | /* StructureGenerator.kt:166 */
|
474 730 | }
|
731 + | /* StructureGenerator.kt:231 */
|
475 732 | #[allow(missing_docs)] // documentation missing in model
|
733 + | /* StructureGenerator.kt:166 */
|
476 734 | pub fn recursive_list(&self) -> &[crate::model::RecursiveShapesInputOutputNested1] {
|
735 + | /* StructureGenerator.kt:171 */
|
477 736 | use std::ops::Deref;
|
478 737 | self.recursive_list.deref()
|
738 + | /* StructureGenerator.kt:166 */
|
479 739 | }
|
740 + | /* StructureGenerator.kt:135 */
|
480 741 | }
|
742 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
481 743 | impl crate::constrained::Constrained for crate::input::ConstrainedRecursiveShapesOperationInput {
|
482 744 | type Unconstrained =
|
483 745 | crate::input::constrained_recursive_shapes_operation_input_internal::Builder;
|
484 746 | }
|
747 + | /* ServerCodegenVisitor.kt:370 */
|
485 748 | impl ConstrainedRecursiveShapesOperationInput {
|
486 - | /// Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
749 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
750 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
487 751 | pub fn builder() -> crate::input::constrained_recursive_shapes_operation_input::Builder {
|
752 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
488 753 | crate::input::constrained_recursive_shapes_operation_input::Builder::default()
|
754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
489 755 | }
|
756 + | /* ServerCodegenVisitor.kt:370 */
|
490 757 | }
|
491 758 |
|
759 + | /* StructureGenerator.kt:197 */
|
492 760 | #[allow(missing_docs)] // documentation missing in model
|
761 + | /* RustType.kt:516 */
|
493 762 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
494 - | pub struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
763 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpPayloadBoundShapeOperationInput {
|
764 + | /* StructureGenerator.kt:231 */
|
495 765 | #[allow(missing_docs)] // documentation missing in model
|
496 766 | pub http_payload_bound_constrained_shape: crate::model::ConA,
|
767 + | /* StructureGenerator.kt:201 */
|
497 768 | }
|
769 + | /* StructureGenerator.kt:135 */
|
498 770 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
771 + | /* StructureGenerator.kt:231 */
|
499 772 | #[allow(missing_docs)] // documentation missing in model
|
773 + | /* StructureGenerator.kt:166 */
|
500 774 | pub fn http_payload_bound_constrained_shape(&self) -> &crate::model::ConA {
|
775 + | /* StructureGenerator.kt:172 */
|
501 776 | &self.http_payload_bound_constrained_shape
|
777 + | /* StructureGenerator.kt:166 */
|
502 778 | }
|
779 + | /* StructureGenerator.kt:135 */
|
503 780 | }
|
781 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
504 782 | impl crate::constrained::Constrained
|
505 783 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
506 784 | {
|
507 785 | type Unconstrained =
|
508 786 | crate::input::constrained_http_payload_bound_shape_operation_input_internal::Builder;
|
509 787 | }
|
788 + | /* ServerCodegenVisitor.kt:370 */
|
510 789 | impl ConstrainedHttpPayloadBoundShapeOperationInput {
|
511 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
790 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
791 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
512 792 | pub fn builder() -> crate::input::constrained_http_payload_bound_shape_operation_input::Builder
|
513 793 | {
|
794 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
514 795 | crate::input::constrained_http_payload_bound_shape_operation_input::Builder::default()
|
796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
515 797 | }
|
798 + | /* ServerCodegenVisitor.kt:370 */
|
516 799 | }
|
517 800 |
|
801 + | /* StructureGenerator.kt:197 */
|
518 802 | #[allow(missing_docs)] // documentation missing in model
|
803 + | /* RustType.kt:516 */
|
519 804 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
520 - | pub struct ConstrainedHttpBoundShapesOperationInput {
|
805 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedHttpBoundShapesOperationInput {
|
806 + | /* StructureGenerator.kt:231 */
|
521 807 | #[allow(missing_docs)] // documentation missing in model
|
522 808 | pub length_string_label: ::std::string::String,
|
809 + | /* StructureGenerator.kt:231 */
|
523 810 | #[allow(missing_docs)] // documentation missing in model
|
524 811 | pub range_integer_label: i32,
|
812 + | /* StructureGenerator.kt:231 */
|
525 813 | #[allow(missing_docs)] // documentation missing in model
|
526 814 | pub range_short_label: i16,
|
815 + | /* StructureGenerator.kt:231 */
|
527 816 | #[allow(missing_docs)] // documentation missing in model
|
528 817 | pub range_long_label: i64,
|
818 + | /* StructureGenerator.kt:231 */
|
529 819 | #[allow(missing_docs)] // documentation missing in model
|
530 820 | pub range_byte_label: i8,
|
821 + | /* StructureGenerator.kt:231 */
|
531 822 | #[allow(missing_docs)] // documentation missing in model
|
532 823 | pub enum_string_label: crate::model::EnumString,
|
824 + | /* StructureGenerator.kt:231 */
|
533 825 | #[allow(missing_docs)] // documentation missing in model
|
534 826 | pub length_string_header_map:
|
535 827 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
828 + | /* StructureGenerator.kt:231 */
|
536 829 | #[allow(missing_docs)] // documentation missing in model
|
537 830 | pub length_string_header: ::std::option::Option<::std::string::String>,
|
831 + | /* StructureGenerator.kt:231 */
|
538 832 | #[allow(missing_docs)] // documentation missing in model
|
539 833 | pub range_integer_header: i32,
|
834 + | /* StructureGenerator.kt:231 */
|
540 835 | #[allow(missing_docs)] // documentation missing in model
|
541 836 | pub range_short_header: i16,
|
837 + | /* StructureGenerator.kt:231 */
|
542 838 | #[allow(missing_docs)] // documentation missing in model
|
543 839 | pub range_long_header: i64,
|
840 + | /* StructureGenerator.kt:231 */
|
544 841 | #[allow(missing_docs)] // documentation missing in model
|
545 842 | pub range_byte_header: i8,
|
843 + | /* StructureGenerator.kt:231 */
|
546 844 | #[allow(missing_docs)] // documentation missing in model
|
547 845 | pub length_string_set_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
846 + | /* StructureGenerator.kt:231 */
|
548 847 | #[allow(missing_docs)] // documentation missing in model
|
549 848 | pub list_length_string_header: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
849 + | /* StructureGenerator.kt:231 */
|
550 850 | #[allow(missing_docs)] // documentation missing in model
|
551 851 | pub length_list_pattern_string_header:
|
552 852 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
853 + | /* StructureGenerator.kt:231 */
|
553 854 | #[allow(missing_docs)] // documentation missing in model
|
554 855 | pub length_set_pattern_string_header:
|
555 856 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
857 + | /* StructureGenerator.kt:231 */
|
556 858 | #[allow(missing_docs)] // documentation missing in model
|
557 859 | pub range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
860 + | /* StructureGenerator.kt:231 */
|
558 861 | #[allow(missing_docs)] // documentation missing in model
|
559 862 | pub range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
863 + | /* StructureGenerator.kt:231 */
|
560 864 | #[allow(missing_docs)] // documentation missing in model
|
561 865 | pub range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
866 + | /* StructureGenerator.kt:231 */
|
562 867 | #[allow(missing_docs)] // documentation missing in model
|
563 868 | pub range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
869 + | /* StructureGenerator.kt:231 */
|
564 870 | #[allow(missing_docs)] // documentation missing in model
|
565 871 | pub range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
872 + | /* StructureGenerator.kt:231 */
|
566 873 | #[allow(missing_docs)] // documentation missing in model
|
567 874 | pub range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
875 + | /* StructureGenerator.kt:231 */
|
568 876 | #[allow(missing_docs)] // documentation missing in model
|
569 877 | pub range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
878 + | /* StructureGenerator.kt:231 */
|
570 879 | #[allow(missing_docs)] // documentation missing in model
|
571 880 | pub range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
881 + | /* StructureGenerator.kt:231 */
|
572 882 | #[allow(missing_docs)] // documentation missing in model
|
573 883 | pub length_string_query: ::std::option::Option<::std::string::String>,
|
884 + | /* StructureGenerator.kt:231 */
|
574 885 | #[allow(missing_docs)] // documentation missing in model
|
575 886 | pub range_byte_query: i8,
|
887 + | /* StructureGenerator.kt:231 */
|
576 888 | #[allow(missing_docs)] // documentation missing in model
|
577 889 | pub range_short_query: i16,
|
890 + | /* StructureGenerator.kt:231 */
|
578 891 | #[allow(missing_docs)] // documentation missing in model
|
579 892 | pub range_integer_query: i32,
|
893 + | /* StructureGenerator.kt:231 */
|
580 894 | #[allow(missing_docs)] // documentation missing in model
|
581 895 | pub range_long_query: i64,
|
896 + | /* StructureGenerator.kt:231 */
|
582 897 | #[allow(missing_docs)] // documentation missing in model
|
583 898 | pub enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
899 + | /* StructureGenerator.kt:231 */
|
584 900 | #[allow(missing_docs)] // documentation missing in model
|
585 901 | pub length_string_list_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
902 + | /* StructureGenerator.kt:231 */
|
586 903 | #[allow(missing_docs)] // documentation missing in model
|
587 904 | pub length_list_pattern_string_query:
|
588 905 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
906 + | /* StructureGenerator.kt:231 */
|
589 907 | #[allow(missing_docs)] // documentation missing in model
|
590 908 | pub length_string_set_query: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
909 + | /* StructureGenerator.kt:231 */
|
591 910 | #[allow(missing_docs)] // documentation missing in model
|
592 911 | pub range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
912 + | /* StructureGenerator.kt:231 */
|
593 913 | #[allow(missing_docs)] // documentation missing in model
|
594 914 | pub range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
915 + | /* StructureGenerator.kt:231 */
|
595 916 | #[allow(missing_docs)] // documentation missing in model
|
596 917 | pub range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
918 + | /* StructureGenerator.kt:231 */
|
597 919 | #[allow(missing_docs)] // documentation missing in model
|
598 920 | pub range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
921 + | /* StructureGenerator.kt:231 */
|
599 922 | #[allow(missing_docs)] // documentation missing in model
|
600 923 | pub range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
924 + | /* StructureGenerator.kt:231 */
|
601 925 | #[allow(missing_docs)] // documentation missing in model
|
602 926 | pub range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
927 + | /* StructureGenerator.kt:231 */
|
603 928 | #[allow(missing_docs)] // documentation missing in model
|
604 929 | pub range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
930 + | /* StructureGenerator.kt:231 */
|
605 931 | #[allow(missing_docs)] // documentation missing in model
|
606 932 | pub range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
933 + | /* StructureGenerator.kt:231 */
|
607 934 | #[allow(missing_docs)] // documentation missing in model
|
608 935 | pub enum_string_list_query: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
936 + | /* StructureGenerator.kt:201 */
|
609 937 | }
|
938 + | /* StructureGenerator.kt:135 */
|
610 939 | impl ConstrainedHttpBoundShapesOperationInput {
|
940 + | /* StructureGenerator.kt:231 */
|
611 941 | #[allow(missing_docs)] // documentation missing in model
|
942 + | /* StructureGenerator.kt:166 */
|
612 943 | pub fn length_string_label(&self) -> &str {
|
944 + | /* StructureGenerator.kt:171 */
|
613 945 | use std::ops::Deref;
|
614 946 | self.length_string_label.deref()
|
947 + | /* StructureGenerator.kt:166 */
|
615 948 | }
|
949 + | /* StructureGenerator.kt:231 */
|
616 950 | #[allow(missing_docs)] // documentation missing in model
|
951 + | /* StructureGenerator.kt:166 */
|
617 952 | pub fn range_integer_label(&self) -> i32 {
|
953 + | /* StructureGenerator.kt:168 */
|
618 954 | self.range_integer_label
|
955 + | /* StructureGenerator.kt:166 */
|
619 956 | }
|
957 + | /* StructureGenerator.kt:231 */
|
620 958 | #[allow(missing_docs)] // documentation missing in model
|
959 + | /* StructureGenerator.kt:166 */
|
621 960 | pub fn range_short_label(&self) -> i16 {
|
961 + | /* StructureGenerator.kt:168 */
|
622 962 | self.range_short_label
|
963 + | /* StructureGenerator.kt:166 */
|
623 964 | }
|
965 + | /* StructureGenerator.kt:231 */
|
624 966 | #[allow(missing_docs)] // documentation missing in model
|
967 + | /* StructureGenerator.kt:166 */
|
625 968 | pub fn range_long_label(&self) -> i64 {
|
969 + | /* StructureGenerator.kt:168 */
|
626 970 | self.range_long_label
|
971 + | /* StructureGenerator.kt:166 */
|
627 972 | }
|
973 + | /* StructureGenerator.kt:231 */
|
628 974 | #[allow(missing_docs)] // documentation missing in model
|
975 + | /* StructureGenerator.kt:166 */
|
629 976 | pub fn range_byte_label(&self) -> i8 {
|
977 + | /* StructureGenerator.kt:168 */
|
630 978 | self.range_byte_label
|
979 + | /* StructureGenerator.kt:166 */
|
631 980 | }
|
981 + | /* StructureGenerator.kt:231 */
|
632 982 | #[allow(missing_docs)] // documentation missing in model
|
983 + | /* StructureGenerator.kt:166 */
|
633 984 | pub fn enum_string_label(&self) -> &crate::model::EnumString {
|
985 + | /* StructureGenerator.kt:172 */
|
634 986 | &self.enum_string_label
|
987 + | /* StructureGenerator.kt:166 */
|
635 988 | }
|
989 + | /* StructureGenerator.kt:231 */
|
636 990 | #[allow(missing_docs)] // documentation missing in model
|
991 + | /* StructureGenerator.kt:166 */
|
637 992 | pub fn length_string_header_map(
|
638 993 | &self,
|
639 994 | ) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
995 + | /* StructureGenerator.kt:172 */
|
640 996 | &self.length_string_header_map
|
997 + | /* StructureGenerator.kt:166 */
|
641 998 | }
|
999 + | /* StructureGenerator.kt:231 */
|
642 1000 | #[allow(missing_docs)] // documentation missing in model
|
1001 + | /* StructureGenerator.kt:166 */
|
643 1002 | pub fn length_string_header(&self) -> ::std::option::Option<&str> {
|
1003 + | /* StructureGenerator.kt:169 */
|
644 1004 | self.length_string_header.as_deref()
|
1005 + | /* StructureGenerator.kt:166 */
|
645 1006 | }
|
1007 + | /* StructureGenerator.kt:231 */
|
646 1008 | #[allow(missing_docs)] // documentation missing in model
|
1009 + | /* StructureGenerator.kt:166 */
|
647 1010 | pub fn range_integer_header(&self) -> i32 {
|
1011 + | /* StructureGenerator.kt:168 */
|
648 1012 | self.range_integer_header
|
1013 + | /* StructureGenerator.kt:166 */
|
649 1014 | }
|
1015 + | /* StructureGenerator.kt:231 */
|
650 1016 | #[allow(missing_docs)] // documentation missing in model
|
1017 + | /* StructureGenerator.kt:166 */
|
651 1018 | pub fn range_short_header(&self) -> i16 {
|
1019 + | /* StructureGenerator.kt:168 */
|
652 1020 | self.range_short_header
|
1021 + | /* StructureGenerator.kt:166 */
|
653 1022 | }
|
1023 + | /* StructureGenerator.kt:231 */
|
654 1024 | #[allow(missing_docs)] // documentation missing in model
|
1025 + | /* StructureGenerator.kt:166 */
|
655 1026 | pub fn range_long_header(&self) -> i64 {
|
1027 + | /* StructureGenerator.kt:168 */
|
656 1028 | self.range_long_header
|
1029 + | /* StructureGenerator.kt:166 */
|
657 1030 | }
|
1031 + | /* StructureGenerator.kt:231 */
|
658 1032 | #[allow(missing_docs)] // documentation missing in model
|
1033 + | /* StructureGenerator.kt:166 */
|
659 1034 | pub fn range_byte_header(&self) -> i8 {
|
1035 + | /* StructureGenerator.kt:168 */
|
660 1036 | self.range_byte_header
|
1037 + | /* StructureGenerator.kt:166 */
|
661 1038 | }
|
1039 + | /* StructureGenerator.kt:231 */
|
662 1040 | #[allow(missing_docs)] // documentation missing in model
|
1041 + | /* StructureGenerator.kt:166 */
|
663 1042 | pub fn length_string_set_header(
|
664 1043 | &self,
|
665 1044 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1045 + | /* StructureGenerator.kt:170 */
|
666 1046 | self.length_string_set_header.as_ref()
|
1047 + | /* StructureGenerator.kt:166 */
|
667 1048 | }
|
1049 + | /* StructureGenerator.kt:231 */
|
668 1050 | #[allow(missing_docs)] // documentation missing in model
|
1051 + | /* StructureGenerator.kt:166 */
|
669 1052 | pub fn list_length_string_header(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1053 + | /* StructureGenerator.kt:169 */
|
670 1054 | self.list_length_string_header.as_deref()
|
1055 + | /* StructureGenerator.kt:166 */
|
671 1056 | }
|
1057 + | /* StructureGenerator.kt:231 */
|
672 1058 | #[allow(missing_docs)] // documentation missing in model
|
1059 + | /* StructureGenerator.kt:166 */
|
673 1060 | pub fn length_list_pattern_string_header(
|
674 1061 | &self,
|
675 1062 | ) -> ::std::option::Option<&[::std::string::String]> {
|
1063 + | /* StructureGenerator.kt:169 */
|
676 1064 | self.length_list_pattern_string_header.as_deref()
|
1065 + | /* StructureGenerator.kt:166 */
|
677 1066 | }
|
1067 + | /* StructureGenerator.kt:231 */
|
678 1068 | #[allow(missing_docs)] // documentation missing in model
|
1069 + | /* StructureGenerator.kt:166 */
|
679 1070 | pub fn length_set_pattern_string_header(
|
680 1071 | &self,
|
681 1072 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1073 + | /* StructureGenerator.kt:170 */
|
682 1074 | self.length_set_pattern_string_header.as_ref()
|
1075 + | /* StructureGenerator.kt:166 */
|
683 1076 | }
|
1077 + | /* StructureGenerator.kt:231 */
|
684 1078 | #[allow(missing_docs)] // documentation missing in model
|
1079 + | /* StructureGenerator.kt:166 */
|
685 1080 | pub fn range_byte_set_header(&self) -> ::std::option::Option<&[i8]> {
|
1081 + | /* StructureGenerator.kt:169 */
|
686 1082 | self.range_byte_set_header.as_deref()
|
1083 + | /* StructureGenerator.kt:166 */
|
687 1084 | }
|
1085 + | /* StructureGenerator.kt:231 */
|
688 1086 | #[allow(missing_docs)] // documentation missing in model
|
1087 + | /* StructureGenerator.kt:166 */
|
689 1088 | pub fn range_short_set_header(&self) -> ::std::option::Option<&[i16]> {
|
1089 + | /* StructureGenerator.kt:169 */
|
690 1090 | self.range_short_set_header.as_deref()
|
1091 + | /* StructureGenerator.kt:166 */
|
691 1092 | }
|
1093 + | /* StructureGenerator.kt:231 */
|
692 1094 | #[allow(missing_docs)] // documentation missing in model
|
1095 + | /* StructureGenerator.kt:166 */
|
693 1096 | pub fn range_integer_set_header(&self) -> ::std::option::Option<&[i32]> {
|
1097 + | /* StructureGenerator.kt:169 */
|
694 1098 | self.range_integer_set_header.as_deref()
|
1099 + | /* StructureGenerator.kt:166 */
|
695 1100 | }
|
1101 + | /* StructureGenerator.kt:231 */
|
696 1102 | #[allow(missing_docs)] // documentation missing in model
|
1103 + | /* StructureGenerator.kt:166 */
|
697 1104 | pub fn range_long_set_header(&self) -> ::std::option::Option<&[i64]> {
|
1105 + | /* StructureGenerator.kt:169 */
|
698 1106 | self.range_long_set_header.as_deref()
|
1107 + | /* StructureGenerator.kt:166 */
|
699 1108 | }
|
1109 + | /* StructureGenerator.kt:231 */
|
700 1110 | #[allow(missing_docs)] // documentation missing in model
|
1111 + | /* StructureGenerator.kt:166 */
|
701 1112 | pub fn range_byte_list_header(&self) -> ::std::option::Option<&[i8]> {
|
1113 + | /* StructureGenerator.kt:169 */
|
702 1114 | self.range_byte_list_header.as_deref()
|
1115 + | /* StructureGenerator.kt:166 */
|
703 1116 | }
|
1117 + | /* StructureGenerator.kt:231 */
|
704 1118 | #[allow(missing_docs)] // documentation missing in model
|
1119 + | /* StructureGenerator.kt:166 */
|
705 1120 | pub fn range_short_list_header(&self) -> ::std::option::Option<&[i16]> {
|
1121 + | /* StructureGenerator.kt:169 */
|
706 1122 | self.range_short_list_header.as_deref()
|
1123 + | /* StructureGenerator.kt:166 */
|
707 1124 | }
|
1125 + | /* StructureGenerator.kt:231 */
|
708 1126 | #[allow(missing_docs)] // documentation missing in model
|
1127 + | /* StructureGenerator.kt:166 */
|
709 1128 | pub fn range_integer_list_header(&self) -> ::std::option::Option<&[i32]> {
|
1129 + | /* StructureGenerator.kt:169 */
|
710 1130 | self.range_integer_list_header.as_deref()
|
1131 + | /* StructureGenerator.kt:166 */
|
711 1132 | }
|
1133 + | /* StructureGenerator.kt:231 */
|
712 1134 | #[allow(missing_docs)] // documentation missing in model
|
1135 + | /* StructureGenerator.kt:166 */
|
713 1136 | pub fn range_long_list_header(&self) -> ::std::option::Option<&[i64]> {
|
1137 + | /* StructureGenerator.kt:169 */
|
714 1138 | self.range_long_list_header.as_deref()
|
1139 + | /* StructureGenerator.kt:166 */
|
715 1140 | }
|
1141 + | /* StructureGenerator.kt:231 */
|
716 1142 | #[allow(missing_docs)] // documentation missing in model
|
1143 + | /* StructureGenerator.kt:166 */
|
717 1144 | pub fn length_string_query(&self) -> ::std::option::Option<&str> {
|
1145 + | /* StructureGenerator.kt:169 */
|
718 1146 | self.length_string_query.as_deref()
|
1147 + | /* StructureGenerator.kt:166 */
|
719 1148 | }
|
1149 + | /* StructureGenerator.kt:231 */
|
720 1150 | #[allow(missing_docs)] // documentation missing in model
|
1151 + | /* StructureGenerator.kt:166 */
|
721 1152 | pub fn range_byte_query(&self) -> i8 {
|
1153 + | /* StructureGenerator.kt:168 */
|
722 1154 | self.range_byte_query
|
1155 + | /* StructureGenerator.kt:166 */
|
723 1156 | }
|
1157 + | /* StructureGenerator.kt:231 */
|
724 1158 | #[allow(missing_docs)] // documentation missing in model
|
1159 + | /* StructureGenerator.kt:166 */
|
725 1160 | pub fn range_short_query(&self) -> i16 {
|
1161 + | /* StructureGenerator.kt:168 */
|
726 1162 | self.range_short_query
|
1163 + | /* StructureGenerator.kt:166 */
|
727 1164 | }
|
1165 + | /* StructureGenerator.kt:231 */
|
728 1166 | #[allow(missing_docs)] // documentation missing in model
|
1167 + | /* StructureGenerator.kt:166 */
|
729 1168 | pub fn range_integer_query(&self) -> i32 {
|
1169 + | /* StructureGenerator.kt:168 */
|
730 1170 | self.range_integer_query
|
1171 + | /* StructureGenerator.kt:166 */
|
731 1172 | }
|
1173 + | /* StructureGenerator.kt:231 */
|
732 1174 | #[allow(missing_docs)] // documentation missing in model
|
1175 + | /* StructureGenerator.kt:166 */
|
733 1176 | pub fn range_long_query(&self) -> i64 {
|
1177 + | /* StructureGenerator.kt:168 */
|
734 1178 | self.range_long_query
|
1179 + | /* StructureGenerator.kt:166 */
|
735 1180 | }
|
1181 + | /* StructureGenerator.kt:231 */
|
736 1182 | #[allow(missing_docs)] // documentation missing in model
|
1183 + | /* StructureGenerator.kt:166 */
|
737 1184 | pub fn enum_string_query(&self) -> ::std::option::Option<&crate::model::EnumString> {
|
1185 + | /* StructureGenerator.kt:170 */
|
738 1186 | self.enum_string_query.as_ref()
|
1187 + | /* StructureGenerator.kt:166 */
|
739 1188 | }
|
1189 + | /* StructureGenerator.kt:231 */
|
740 1190 | #[allow(missing_docs)] // documentation missing in model
|
1191 + | /* StructureGenerator.kt:166 */
|
741 1192 | pub fn length_string_list_query(&self) -> ::std::option::Option<&[::std::string::String]> {
|
1193 + | /* StructureGenerator.kt:169 */
|
742 1194 | self.length_string_list_query.as_deref()
|
1195 + | /* StructureGenerator.kt:166 */
|
743 1196 | }
|
1197 + | /* StructureGenerator.kt:231 */
|
744 1198 | #[allow(missing_docs)] // documentation missing in model
|
1199 + | /* StructureGenerator.kt:166 */
|
745 1200 | pub fn length_list_pattern_string_query(
|
746 1201 | &self,
|
747 1202 | ) -> ::std::option::Option<&[::std::string::String]> {
|
1203 + | /* StructureGenerator.kt:169 */
|
748 1204 | self.length_list_pattern_string_query.as_deref()
|
1205 + | /* StructureGenerator.kt:166 */
|
749 1206 | }
|
1207 + | /* StructureGenerator.kt:231 */
|
750 1208 | #[allow(missing_docs)] // documentation missing in model
|
1209 + | /* StructureGenerator.kt:166 */
|
751 1210 | pub fn length_string_set_query(
|
752 1211 | &self,
|
753 1212 | ) -> ::std::option::Option<&::std::vec::Vec<::std::string::String>> {
|
1213 + | /* StructureGenerator.kt:170 */
|
754 1214 | self.length_string_set_query.as_ref()
|
1215 + | /* StructureGenerator.kt:166 */
|
755 1216 | }
|
1217 + | /* StructureGenerator.kt:231 */
|
756 1218 | #[allow(missing_docs)] // documentation missing in model
|
1219 + | /* StructureGenerator.kt:166 */
|
757 1220 | pub fn range_byte_list_query(&self) -> ::std::option::Option<&[i8]> {
|
1221 + | /* StructureGenerator.kt:169 */
|
758 1222 | self.range_byte_list_query.as_deref()
|
1223 + | /* StructureGenerator.kt:166 */
|
759 1224 | }
|
1225 + | /* StructureGenerator.kt:231 */
|
760 1226 | #[allow(missing_docs)] // documentation missing in model
|
1227 + | /* StructureGenerator.kt:166 */
|
761 1228 | pub fn range_short_list_query(&self) -> ::std::option::Option<&[i16]> {
|
1229 + | /* StructureGenerator.kt:169 */
|
762 1230 | self.range_short_list_query.as_deref()
|
1231 + | /* StructureGenerator.kt:166 */
|
763 1232 | }
|
1233 + | /* StructureGenerator.kt:231 */
|
764 1234 | #[allow(missing_docs)] // documentation missing in model
|
1235 + | /* StructureGenerator.kt:166 */
|
765 1236 | pub fn range_integer_list_query(&self) -> ::std::option::Option<&[i32]> {
|
1237 + | /* StructureGenerator.kt:169 */
|
766 1238 | self.range_integer_list_query.as_deref()
|
1239 + | /* StructureGenerator.kt:166 */
|
767 1240 | }
|
1241 + | /* StructureGenerator.kt:231 */
|
768 1242 | #[allow(missing_docs)] // documentation missing in model
|
1243 + | /* StructureGenerator.kt:166 */
|
769 1244 | pub fn range_long_list_query(&self) -> ::std::option::Option<&[i64]> {
|
1245 + | /* StructureGenerator.kt:169 */
|
770 1246 | self.range_long_list_query.as_deref()
|
1247 + | /* StructureGenerator.kt:166 */
|
771 1248 | }
|
1249 + | /* StructureGenerator.kt:231 */
|
772 1250 | #[allow(missing_docs)] // documentation missing in model
|
1251 + | /* StructureGenerator.kt:166 */
|
773 1252 | pub fn range_byte_set_query(&self) -> ::std::option::Option<&[i8]> {
|
1253 + | /* StructureGenerator.kt:169 */
|
774 1254 | self.range_byte_set_query.as_deref()
|
1255 + | /* StructureGenerator.kt:166 */
|
775 1256 | }
|
1257 + | /* StructureGenerator.kt:231 */
|
776 1258 | #[allow(missing_docs)] // documentation missing in model
|
1259 + | /* StructureGenerator.kt:166 */
|
777 1260 | pub fn range_short_set_query(&self) -> ::std::option::Option<&[i16]> {
|
1261 + | /* StructureGenerator.kt:169 */
|
778 1262 | self.range_short_set_query.as_deref()
|
1263 + | /* StructureGenerator.kt:166 */
|
779 1264 | }
|
1265 + | /* StructureGenerator.kt:231 */
|
780 1266 | #[allow(missing_docs)] // documentation missing in model
|
1267 + | /* StructureGenerator.kt:166 */
|
781 1268 | pub fn range_integer_set_query(&self) -> ::std::option::Option<&[i32]> {
|
1269 + | /* StructureGenerator.kt:169 */
|
782 1270 | self.range_integer_set_query.as_deref()
|
1271 + | /* StructureGenerator.kt:166 */
|
783 1272 | }
|
1273 + | /* StructureGenerator.kt:231 */
|
784 1274 | #[allow(missing_docs)] // documentation missing in model
|
1275 + | /* StructureGenerator.kt:166 */
|
785 1276 | pub fn range_long_set_query(&self) -> ::std::option::Option<&[i64]> {
|
1277 + | /* StructureGenerator.kt:169 */
|
786 1278 | self.range_long_set_query.as_deref()
|
1279 + | /* StructureGenerator.kt:166 */
|
787 1280 | }
|
1281 + | /* StructureGenerator.kt:231 */
|
788 1282 | #[allow(missing_docs)] // documentation missing in model
|
1283 + | /* StructureGenerator.kt:166 */
|
789 1284 | pub fn enum_string_list_query(&self) -> ::std::option::Option<&[crate::model::EnumString]> {
|
1285 + | /* StructureGenerator.kt:169 */
|
790 1286 | self.enum_string_list_query.as_deref()
|
1287 + | /* StructureGenerator.kt:166 */
|
791 1288 | }
|
1289 + | /* StructureGenerator.kt:135 */
|
792 1290 | }
|
1291 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
793 1292 | impl crate::constrained::Constrained for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
794 1293 | type Unconstrained =
|
795 1294 | crate::input::constrained_http_bound_shapes_operation_input_internal::Builder;
|
796 1295 | }
|
1296 + | /* ServerCodegenVisitor.kt:370 */
|
797 1297 | impl ConstrainedHttpBoundShapesOperationInput {
|
798 - | /// Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1298 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
1299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
799 1300 | pub fn builder() -> crate::input::constrained_http_bound_shapes_operation_input::Builder {
|
1301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
800 1302 | crate::input::constrained_http_bound_shapes_operation_input::Builder::default()
|
1303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
801 1304 | }
|
1305 + | /* ServerCodegenVisitor.kt:370 */
|
802 1306 | }
|
803 1307 |
|
1308 + | /* StructureGenerator.kt:197 */
|
804 1309 | #[allow(missing_docs)] // documentation missing in model
|
1310 + | /* RustType.kt:516 */
|
805 1311 | #[derive(
|
806 1312 | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
807 1313 | )]
|
808 - | pub struct ConstrainedShapesOnlyInOutputOperationInput {}
|
1314 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOnlyInOutputOperationInput {/* StructureGenerator.kt:201 */}
|
1315 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
809 1316 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
810 1317 | type Unconstrained =
|
811 1318 | crate::input::constrained_shapes_only_in_output_operation_input_internal::Builder;
|
812 1319 | }
|
1320 + | /* ServerCodegenVisitor.kt:370 */
|
813 1321 | impl ConstrainedShapesOnlyInOutputOperationInput {
|
814 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1322 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
1323 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
815 1324 | pub fn builder() -> crate::input::constrained_shapes_only_in_output_operation_input::Builder {
|
1325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
816 1326 | crate::input::constrained_shapes_only_in_output_operation_input::Builder::default()
|
1327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
817 1328 | }
|
1329 + | /* ServerCodegenVisitor.kt:370 */
|
818 1330 | }
|
819 1331 |
|
1332 + | /* StructureGenerator.kt:197 */
|
820 1333 | #[allow(missing_docs)] // documentation missing in model
|
1334 + | /* RustType.kt:516 */
|
821 1335 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
822 - | pub struct ConstrainedShapesOperationInput {
|
1336 + | pub /* StructureGenerator.kt:201 */ struct ConstrainedShapesOperationInput {
|
1337 + | /* StructureGenerator.kt:231 */
|
823 1338 | #[allow(missing_docs)] // documentation missing in model
|
824 1339 | pub con_a: crate::model::ConA,
|
1340 + | /* StructureGenerator.kt:201 */
|
825 1341 | }
|
1342 + | /* StructureGenerator.kt:135 */
|
826 1343 | impl ConstrainedShapesOperationInput {
|
1344 + | /* StructureGenerator.kt:231 */
|
827 1345 | #[allow(missing_docs)] // documentation missing in model
|
1346 + | /* StructureGenerator.kt:166 */
|
828 1347 | pub fn con_a(&self) -> &crate::model::ConA {
|
1348 + | /* StructureGenerator.kt:172 */
|
829 1349 | &self.con_a
|
1350 + | /* StructureGenerator.kt:166 */
|
830 1351 | }
|
1352 + | /* StructureGenerator.kt:135 */
|
831 1353 | }
|
1354 + | /* ServerStructureConstrainedTraitImpl.kt:21 */
|
832 1355 | impl crate::constrained::Constrained for crate::input::ConstrainedShapesOperationInput {
|
833 1356 | type Unconstrained = crate::input::constrained_shapes_operation_input_internal::Builder;
|
834 1357 | }
|
1358 + | /* ServerCodegenVisitor.kt:370 */
|
835 1359 | impl ConstrainedShapesOperationInput {
|
836 - | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1360 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:211 */Creates a new builder-style object to manufacture [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
1361 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
837 1362 | pub fn builder() -> crate::input::constrained_shapes_operation_input::Builder {
|
1363 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:213 */
|
838 1364 | crate::input::constrained_shapes_operation_input::Builder::default()
|
1365 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:212 */
|
839 1366 | }
|
1367 + | /* ServerCodegenVisitor.kt:370 */
|
840 1368 | }
|
841 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1369 + | /// /* ServerBuilderGenerator.kt:171 */See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
842 1370 | pub(crate) mod event_streams_operation_input_internal {
|
843 1371 |
|
1372 + | /* RustType.kt:516 */
|
844 1373 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
845 - | /// Holds one variant for each of the ways the builder can fail.
|
1374 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1375 + | /* RustType.kt:516 */
|
846 1376 | #[non_exhaustive]
|
1377 + | /* ServerBuilderConstraintViolations.kt:75 */
|
847 1378 | #[allow(clippy::enum_variant_names)]
|
848 1379 | pub(crate) enum ConstraintViolation {
|
849 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1380 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1381 + | /* ServerBuilderConstraintViolations.kt:143 */
|
850 1382 | MissingEvents,
|
1383 + | /* ServerBuilderConstraintViolations.kt:75 */
|
851 1384 | }
|
1385 + | /* ServerBuilderConstraintViolations.kt:117 */
|
852 1386 | impl ::std::fmt::Display for ConstraintViolation {
|
1387 + | /* ServerBuilderConstraintViolations.kt:118 */
|
853 1388 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1389 + | /* ServerBuilderConstraintViolations.kt:119 */
|
854 1390 | match self {
|
855 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
856 - | }
|
1391 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1392 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1393 + | /* ServerBuilderConstraintViolations.kt:118 */
|
857 1394 | }
|
1395 + | /* ServerBuilderConstraintViolations.kt:117 */
|
858 1396 | }
|
1397 + | /* ServerBuilderConstraintViolations.kt:84 */
|
859 1398 | impl ::std::error::Error for ConstraintViolation {}
|
1399 + | /* ServerBuilderConstraintViolations.kt:171 */
|
860 1400 | impl ConstraintViolation {
|
861 1401 | pub(crate) fn as_validation_exception_field(
|
862 1402 | self,
|
863 1403 | path: ::std::string::String,
|
864 1404 | ) -> crate::model::ValidationExceptionField {
|
865 1405 | match self {
|
866 1406 | ConstraintViolation::MissingEvents => crate::model::ValidationExceptionField {
|
867 1407 | message: format!("Value at '{}/events' failed to satisfy constraint: Member must not be null", path),
|
868 1408 | path: path + "/events",
|
869 1409 | },
|
870 1410 | }
|
871 1411 | }
|
872 1412 | }
|
1413 + | /* ServerBuilderGenerator.kt:234 */
|
873 1414 | impl ::std::convert::From<ConstraintViolation>
|
874 1415 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
875 1416 | {
|
876 1417 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
877 1418 | let first_validation_exception_field =
|
878 1419 | constraint_violation.as_validation_exception_field("".to_owned());
|
879 1420 | let validation_exception = crate::error::ValidationException {
|
880 1421 | message: format!(
|
881 1422 | "1 validation error detected. {}",
|
882 1423 | &first_validation_exception_field.message
|
883 1424 | ),
|
884 1425 | field_list: Some(vec![first_validation_exception_field]),
|
885 1426 | };
|
886 1427 | Self::ConstraintViolation(
|
887 1428 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
888 1429 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
889 1430 | )
|
890 1431 | }
|
891 1432 | }
|
1433 + | /* ServerBuilderGenerator.kt:244 */
|
892 1434 | impl ::std::convert::From<Builder>
|
893 1435 | for crate::constrained::MaybeConstrained<crate::input::EventStreamsOperationInput>
|
894 1436 | {
|
895 1437 | fn from(builder: Builder) -> Self {
|
896 1438 | Self::Unconstrained(builder)
|
897 1439 | }
|
898 1440 | }
|
1441 + | /* ServerBuilderGenerator.kt:446 */
|
899 1442 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
900 1443 | type Error = ConstraintViolation;
|
901 1444 |
|
902 1445 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
903 1446 | builder.build()
|
904 1447 | }
|
905 1448 | }
|
906 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1449 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1450 + | /* RustType.kt:516 */
|
907 1451 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1452 + | /* ServerBuilderGenerator.kt:211 */
|
908 1453 | pub(crate) struct Builder {
|
1454 + | /* ServerBuilderGenerator.kt:308 */
|
909 1455 | pub(crate) events: ::std::option::Option<
|
910 1456 | ::aws_smithy_http::event_stream::Receiver<
|
911 1457 | crate::model::Event,
|
912 1458 | crate::error::EventError,
|
913 1459 | >,
|
914 1460 | >,
|
1461 + | /* ServerBuilderGenerator.kt:211 */
|
915 1462 | }
|
1463 + | /* ServerBuilderGenerator.kt:215 */
|
916 1464 | impl Builder {
|
1465 + | /* ServerBuilderGenerator.kt:426 */
|
917 1466 | #[allow(missing_docs)] // documentation missing in model
|
1467 + | /* ServerBuilderGenerator.kt:428 */
|
918 1468 | pub(crate) fn set_events(
|
919 1469 | mut self,
|
920 1470 | input: impl ::std::convert::Into<
|
921 1471 | ::aws_smithy_http::event_stream::Receiver<
|
922 1472 | crate::model::Event,
|
923 1473 | crate::error::EventError,
|
924 1474 | >,
|
925 1475 | >,
|
926 1476 | ) -> Self {
|
1477 + | /* ServerBuilderGenerator.kt:429 */
|
927 1478 | self.events = Some(input.into());
|
928 1479 | self
|
1480 + | /* ServerBuilderGenerator.kt:428 */
|
929 1481 | }
|
930 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
931 - | ///
|
1482 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1483 + | /// /* ServerBuilderGenerator.kt:260 */
|
932 1484 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
933 1485 | ///
|
1486 + | /* ServerBuilderGenerator.kt:271 */
|
934 1487 | pub fn build(
|
935 1488 | self,
|
936 1489 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
937 1490 | self.build_enforcing_all_constraints()
|
938 1491 | }
|
1492 + | /* ServerBuilderGenerator.kt:283 */
|
939 1493 | fn build_enforcing_all_constraints(
|
940 1494 | self,
|
941 1495 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
942 - | Ok(crate::input::EventStreamsOperationInput {
|
943 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
944 - | })
|
1496 + | /* ServerBuilderGenerator.kt:287 */
|
1497 + | Ok(
|
1498 + | /* ServerBuilderGenerator.kt:542 */
|
1499 + | crate::input::EventStreamsOperationInput {
|
1500 + | /* ServerBuilderGenerator.kt:546 */
|
1501 + | events: self
|
1502 + | .events
|
1503 + | /* ServerBuilderGenerator.kt:569 */
|
1504 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
1505 + | /* ServerBuilderGenerator.kt:542 */
|
1506 + | }, /* ServerBuilderGenerator.kt:287 */
|
1507 + | )
|
1508 + | /* ServerBuilderGenerator.kt:283 */
|
945 1509 | }
|
1510 + | /* ServerBuilderGenerator.kt:215 */
|
946 1511 | }
|
1512 + |
|
1513 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
947 1514 | }
|
948 - | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1515 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
949 1516 | pub mod event_streams_operation_input {
|
950 1517 |
|
1518 + | /* RustType.kt:516 */
|
951 1519 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
952 - | /// Holds one variant for each of the ways the builder can fail.
|
953 - |
|
1520 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1521 + | /* ServerBuilderConstraintViolations.kt:75 */
|
954 1522 | #[allow(clippy::enum_variant_names)]
|
955 1523 | pub enum ConstraintViolation {
|
956 - | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1524 + | /// /* ServerBuilderConstraintViolations.kt:138 */`events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1525 + | /* ServerBuilderConstraintViolations.kt:143 */
|
957 1526 | MissingEvents,
|
1527 + | /* ServerBuilderConstraintViolations.kt:75 */
|
958 1528 | }
|
1529 + | /* ServerBuilderConstraintViolations.kt:117 */
|
959 1530 | impl ::std::fmt::Display for ConstraintViolation {
|
1531 + | /* ServerBuilderConstraintViolations.kt:118 */
|
960 1532 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1533 + | /* ServerBuilderConstraintViolations.kt:119 */
|
961 1534 | match self {
|
962 - | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
963 - | }
|
1535 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1536 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1537 + | /* ServerBuilderConstraintViolations.kt:118 */
|
964 1538 | }
|
1539 + | /* ServerBuilderConstraintViolations.kt:117 */
|
965 1540 | }
|
1541 + | /* ServerBuilderConstraintViolations.kt:84 */
|
966 1542 | impl ::std::error::Error for ConstraintViolation {}
|
1543 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
967 1544 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
968 1545 | type Error = ConstraintViolation;
|
969 1546 |
|
970 1547 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
971 1548 | builder.build()
|
972 1549 | }
|
973 1550 | }
|
974 - | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1551 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1552 + | /* RustType.kt:516 */
|
975 1553 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1554 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
976 1555 | pub struct Builder {
|
1556 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
977 1557 | pub(crate) events: ::std::option::Option<
|
978 1558 | ::aws_smithy_http::event_stream::Receiver<
|
979 1559 | crate::model::Event,
|
980 1560 | crate::error::EventError,
|
981 1561 | >,
|
982 1562 | >,
|
1563 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
983 1564 | }
|
1565 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
984 1566 | impl Builder {
|
1567 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
985 1568 | #[allow(missing_docs)] // documentation missing in model
|
1569 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
986 1570 | pub fn events(
|
987 1571 | mut self,
|
988 1572 | input: ::aws_smithy_http::event_stream::Receiver<
|
989 1573 | crate::model::Event,
|
990 1574 | crate::error::EventError,
|
991 1575 | >,
|
992 1576 | ) -> Self {
|
993 - | self.events = Some(input);
|
1577 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1578 + | self.events =
|
1579 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
1580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1581 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
1582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
994 1583 | self
|
1584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
995 1585 | }
|
996 - | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
997 - | ///
|
1586 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1587 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
998 1588 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if you do not provide a value for all non-`Option`al members.
|
999 1589 | ///
|
1590 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1000 1591 | pub fn build(
|
1001 1592 | self,
|
1002 1593 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1003 1594 | self.build_enforcing_required_and_enum_traits()
|
1004 1595 | }
|
1596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1005 1597 | fn build_enforcing_required_and_enum_traits(
|
1006 1598 | self,
|
1007 1599 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1008 - | Ok(crate::input::EventStreamsOperationInput {
|
1009 - | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1010 - | })
|
1600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
1601 + | Ok(
|
1602 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1603 + | crate::input::EventStreamsOperationInput {
|
1604 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1605 + | events: self
|
1606 + | .events
|
1607 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
1608 + | .ok_or(ConstraintViolation::MissingEvents)?,
|
1609 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1610 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
1611 + | )
|
1612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1011 1613 | }
|
1614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1012 1615 | }
|
1616 + |
|
1617 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1013 1618 | }
|
1014 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1619 + | /// /* ServerBuilderGenerator.kt:171 */See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1015 1620 | pub(crate) mod streaming_blob_operation_input_internal {
|
1016 1621 |
|
1622 + | /* ServerBuilderGenerator.kt:461 */
|
1017 1623 | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
1018 1624 | fn from(builder: Builder) -> Self {
|
1019 1625 | builder.build()
|
1020 1626 | }
|
1021 1627 | }
|
1022 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1628 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1629 + | /* RustType.kt:516 */
|
1023 1630 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1631 + | /* ServerBuilderGenerator.kt:211 */
|
1024 1632 | pub(crate) struct Builder {
|
1633 + | /* ServerBuilderGenerator.kt:308 */
|
1025 1634 | pub(crate) streaming_blob:
|
1026 1635 | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
1636 + | /* ServerBuilderGenerator.kt:211 */
|
1027 1637 | }
|
1638 + | /* ServerBuilderGenerator.kt:215 */
|
1028 1639 | impl Builder {
|
1640 + | /* ServerBuilderGenerator.kt:426 */
|
1029 1641 | #[allow(missing_docs)] // documentation missing in model
|
1642 + | /* ServerBuilderGenerator.kt:428 */
|
1030 1643 | pub(crate) fn set_streaming_blob(
|
1031 1644 | mut self,
|
1032 1645 | input: impl ::std::convert::Into<::aws_smithy_types::byte_stream::ByteStream>,
|
1033 1646 | ) -> Self {
|
1647 + | /* ServerBuilderGenerator.kt:429 */
|
1034 1648 | self.streaming_blob = Some(input.into());
|
1035 1649 | self
|
1650 + | /* ServerBuilderGenerator.kt:428 */
|
1036 1651 | }
|
1037 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1652 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1653 + | /* ServerBuilderGenerator.kt:271 */
|
1038 1654 | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
1039 1655 | self.build_enforcing_all_constraints()
|
1040 1656 | }
|
1657 + | /* ServerBuilderGenerator.kt:283 */
|
1041 1658 | fn build_enforcing_all_constraints(self) -> crate::input::StreamingBlobOperationInput {
|
1659 + | /* ServerBuilderGenerator.kt:542 */
|
1042 1660 | crate::input::StreamingBlobOperationInput {
|
1043 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1661 + | /* ServerBuilderGenerator.kt:546 */
|
1662 + | streaming_blob: self
|
1663 + | .streaming_blob
|
1664 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
1665 + | .unwrap_or_default(),
|
1666 + | /* ServerBuilderGenerator.kt:542 */
|
1044 1667 | }
|
1668 + | /* ServerBuilderGenerator.kt:283 */
|
1045 1669 | }
|
1670 + | /* ServerBuilderGenerator.kt:215 */
|
1046 1671 | }
|
1672 + |
|
1673 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1047 1674 | }
|
1048 - | /// See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1675 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1049 1676 | pub mod streaming_blob_operation_input {
|
1050 1677 |
|
1678 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1051 1679 | impl ::std::convert::From<Builder> for crate::input::StreamingBlobOperationInput {
|
1052 1680 | fn from(builder: Builder) -> Self {
|
1053 1681 | builder.build()
|
1054 1682 | }
|
1055 1683 | }
|
1056 - | /// A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1684 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1685 + | /* RustType.kt:516 */
|
1057 1686 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
1687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1058 1688 | pub struct Builder {
|
1689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1059 1690 | pub(crate) streaming_blob:
|
1060 1691 | ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
1692 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1061 1693 | }
|
1694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1062 1695 | impl Builder {
|
1696 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1063 1697 | #[allow(missing_docs)] // documentation missing in model
|
1698 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1064 1699 | pub fn streaming_blob(
|
1065 1700 | mut self,
|
1066 1701 | input: ::aws_smithy_types::byte_stream::ByteStream,
|
1067 1702 | ) -> Self {
|
1068 - | self.streaming_blob = Some(input);
|
1703 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1704 + | self.streaming_blob =
|
1705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
1706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
1708 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1069 1709 | self
|
1710 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1070 1711 | }
|
1071 - | /// Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1712 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput).
|
1713 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1072 1714 | pub fn build(self) -> crate::input::StreamingBlobOperationInput {
|
1073 1715 | self.build_enforcing_required_and_enum_traits()
|
1074 1716 | }
|
1717 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1075 1718 | fn build_enforcing_required_and_enum_traits(
|
1076 1719 | self,
|
1077 1720 | ) -> crate::input::StreamingBlobOperationInput {
|
1721 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1078 1722 | crate::input::StreamingBlobOperationInput {
|
1079 - | streaming_blob: self.streaming_blob.unwrap_or_default(),
|
1723 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1724 + | streaming_blob: self
|
1725 + | .streaming_blob
|
1726 + | /* ServerBuilderGeneratorCommon.kt:113 */
|
1727 + | .unwrap_or_default(),
|
1728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1080 1729 | }
|
1730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1081 1731 | }
|
1732 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1082 1733 | }
|
1734 + |
|
1735 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1083 1736 | }
|
1084 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1737 + | /// /* ServerBuilderGenerator.kt:171 */See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1085 1738 | pub(crate) mod non_streaming_blob_operation_input_internal {
|
1086 1739 |
|
1740 + | /* ServerBuilderGenerator.kt:461 */
|
1087 1741 | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
1088 1742 | fn from(builder: Builder) -> Self {
|
1089 1743 | builder.build()
|
1090 1744 | }
|
1091 1745 | }
|
1092 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1746 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1747 + | /* RustType.kt:516 */
|
1093 1748 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1749 + | /* ServerBuilderGenerator.kt:211 */
|
1094 1750 | pub(crate) struct Builder {
|
1751 + | /* ServerBuilderGenerator.kt:308 */
|
1095 1752 | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1753 + | /* ServerBuilderGenerator.kt:211 */
|
1096 1754 | }
|
1755 + | /* ServerBuilderGenerator.kt:215 */
|
1097 1756 | impl Builder {
|
1757 + | /* ServerBuilderGenerator.kt:426 */
|
1098 1758 | #[allow(missing_docs)] // documentation missing in model
|
1759 + | /* ServerBuilderGenerator.kt:428 */
|
1099 1760 | pub(crate) fn set_non_streaming_blob(
|
1100 1761 | mut self,
|
1101 1762 | input: Option<impl ::std::convert::Into<::aws_smithy_types::Blob>>,
|
1102 1763 | ) -> Self {
|
1764 + | /* ServerBuilderGenerator.kt:429 */
|
1103 1765 | self.non_streaming_blob = input.map(|v| v.into());
|
1104 1766 | self
|
1767 + | /* ServerBuilderGenerator.kt:428 */
|
1105 1768 | }
|
1106 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1769 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1770 + | /* ServerBuilderGenerator.kt:271 */
|
1107 1771 | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
1108 1772 | self.build_enforcing_all_constraints()
|
1109 1773 | }
|
1774 + | /* ServerBuilderGenerator.kt:283 */
|
1110 1775 | fn build_enforcing_all_constraints(self) -> crate::input::NonStreamingBlobOperationInput {
|
1776 + | /* ServerBuilderGenerator.kt:542 */
|
1111 1777 | crate::input::NonStreamingBlobOperationInput {
|
1778 + | /* ServerBuilderGenerator.kt:546 */
|
1112 1779 | non_streaming_blob: self.non_streaming_blob,
|
1780 + | /* ServerBuilderGenerator.kt:542 */
|
1113 1781 | }
|
1782 + | /* ServerBuilderGenerator.kt:283 */
|
1114 1783 | }
|
1784 + | /* ServerBuilderGenerator.kt:215 */
|
1115 1785 | }
|
1786 + |
|
1787 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1116 1788 | }
|
1117 - | /// See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1789 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1118 1790 | pub mod non_streaming_blob_operation_input {
|
1119 1791 |
|
1792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1120 1793 | impl ::std::convert::From<Builder> for crate::input::NonStreamingBlobOperationInput {
|
1121 1794 | fn from(builder: Builder) -> Self {
|
1122 1795 | builder.build()
|
1123 1796 | }
|
1124 1797 | }
|
1125 - | /// A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1798 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1799 + | /* RustType.kt:516 */
|
1126 1800 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1127 1802 | pub struct Builder {
|
1803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1128 1804 | pub(crate) non_streaming_blob: ::std::option::Option<::aws_smithy_types::Blob>,
|
1805 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1129 1806 | }
|
1807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1130 1808 | impl Builder {
|
1809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1131 1810 | #[allow(missing_docs)] // documentation missing in model
|
1811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1132 1812 | pub fn non_streaming_blob(
|
1133 1813 | mut self,
|
1134 1814 | input: ::std::option::Option<::aws_smithy_types::Blob>,
|
1135 1815 | ) -> Self {
|
1136 - | self.non_streaming_blob = input;
|
1816 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
1817 + | self.non_streaming_blob =
|
1818 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
1819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1137 1820 | self
|
1821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1138 1822 | }
|
1139 - | /// Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1823 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput).
|
1824 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1140 1825 | pub fn build(self) -> crate::input::NonStreamingBlobOperationInput {
|
1141 1826 | self.build_enforcing_required_and_enum_traits()
|
1142 1827 | }
|
1828 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1143 1829 | fn build_enforcing_required_and_enum_traits(
|
1144 1830 | self,
|
1145 1831 | ) -> crate::input::NonStreamingBlobOperationInput {
|
1832 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1146 1833 | crate::input::NonStreamingBlobOperationInput {
|
1834 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1147 1835 | non_streaming_blob: self.non_streaming_blob,
|
1836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1148 1837 | }
|
1838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1149 1839 | }
|
1840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1150 1841 | }
|
1842 + |
|
1843 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1151 1844 | }
|
1152 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1845 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1153 1846 | pub(crate) mod query_params_targeting_map_of_enum_string_operation_input_internal {
|
1154 1847 |
|
1848 + | /* RustType.kt:516 */
|
1155 1849 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1156 - | /// Holds one variant for each of the ways the builder can fail.
|
1850 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
1851 + | /* RustType.kt:516 */
|
1157 1852 | #[non_exhaustive]
|
1853 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1158 1854 | #[allow(clippy::enum_variant_names)]
|
1159 1855 | pub(crate) enum ConstraintViolation {
|
1160 - | /// Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1856 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`.
|
1857 + | /* RustType.kt:516 */
|
1161 1858 | #[doc(hidden)]
|
1859 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1162 1860 | MapOfEnumString(crate::model::map_of_enum_string_internal::ConstraintViolation),
|
1861 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1163 1862 | }
|
1863 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1164 1864 | impl ::std::fmt::Display for ConstraintViolation {
|
1865 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1165 1866 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1867 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1166 1868 | match self {
|
1167 - | ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1168 - | }
|
1869 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_enum_string` when building `QueryParamsTargetingMapOfEnumStringOperationInput`"),
|
1870 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
1871 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1169 1872 | }
|
1873 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1170 1874 | }
|
1875 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1171 1876 | impl ::std::error::Error for ConstraintViolation {}
|
1877 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1172 1878 | impl ConstraintViolation {
|
1173 1879 | pub(crate) fn as_validation_exception_field(
|
1174 1880 | self,
|
1175 1881 | path: ::std::string::String,
|
1176 1882 | ) -> crate::model::ValidationExceptionField {
|
1177 1883 | match self {
|
1178 1884 | ConstraintViolation::MapOfEnumString(inner) => {
|
1179 1885 | inner.as_validation_exception_field(path + "/mapOfEnumString")
|
1180 1886 | }
|
1181 1887 | }
|
1182 1888 | }
|
1183 1889 | }
|
1890 + | /* ServerBuilderGenerator.kt:234 */
|
1184 1891 | impl ::std::convert::From<ConstraintViolation>
|
1185 1892 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1186 1893 | {
|
1187 1894 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1188 1895 | let first_validation_exception_field =
|
1189 1896 | constraint_violation.as_validation_exception_field("".to_owned());
|
1190 1897 | let validation_exception = crate::error::ValidationException {
|
1191 1898 | message: format!(
|
1192 1899 | "1 validation error detected. {}",
|
1193 1900 | &first_validation_exception_field.message
|
1194 1901 | ),
|
1195 1902 | field_list: Some(vec![first_validation_exception_field]),
|
1196 1903 | };
|
1197 1904 | Self::ConstraintViolation(
|
1198 1905 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1199 1906 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1200 1907 | )
|
1201 1908 | }
|
1202 1909 | }
|
1910 + | /* ServerBuilderGenerator.kt:244 */
|
1203 1911 | impl ::std::convert::From<Builder>
|
1204 1912 | for crate::constrained::MaybeConstrained<
|
1205 1913 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1206 1914 | >
|
1207 1915 | {
|
1208 1916 | fn from(builder: Builder) -> Self {
|
1209 1917 | Self::Unconstrained(builder)
|
1210 1918 | }
|
1211 1919 | }
|
1920 + | /* ServerBuilderGenerator.kt:446 */
|
1212 1921 | impl ::std::convert::TryFrom<Builder>
|
1213 1922 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1214 1923 | {
|
1215 1924 | type Error = ConstraintViolation;
|
1216 1925 |
|
1217 1926 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1218 1927 | builder.build()
|
1219 1928 | }
|
1220 1929 | }
|
1221 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1930 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1931 + | /* RustType.kt:516 */
|
1222 1932 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1933 + | /* ServerBuilderGenerator.kt:211 */
|
1223 1934 | pub(crate) struct Builder {
|
1935 + | /* ServerBuilderGenerator.kt:308 */
|
1224 1936 | pub(crate) map_of_enum_string: ::std::option::Option<
|
1225 1937 | crate::constrained::MaybeConstrained<
|
1226 1938 | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
1227 1939 | >,
|
1228 1940 | >,
|
1941 + | /* ServerBuilderGenerator.kt:211 */
|
1229 1942 | }
|
1943 + | /* ServerBuilderGenerator.kt:215 */
|
1230 1944 | impl Builder {
|
1945 + | /* ServerBuilderGenerator.kt:426 */
|
1231 1946 | #[allow(missing_docs)] // documentation missing in model
|
1947 + | /* ServerBuilderGenerator.kt:428 */
|
1232 1948 | pub(crate) fn set_map_of_enum_string(
|
1233 1949 | mut self,
|
1234 1950 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained>>>,
|
1235 1951 | ) -> Self {
|
1952 + | /* ServerBuilderGenerator.kt:429 */
|
1236 1953 | self.map_of_enum_string = input.map(|v| v.into());
|
1237 1954 | self
|
1955 + | /* ServerBuilderGenerator.kt:428 */
|
1238 1956 | }
|
1239 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1240 - | ///
|
1957 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1958 + | /// /* ServerBuilderGenerator.kt:260 */
|
1241 1959 | /// The builder fails to construct a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1242 1960 | ///
|
1961 + | /* ServerBuilderGenerator.kt:271 */
|
1243 1962 | pub fn build(
|
1244 1963 | self,
|
1245 1964 | ) -> Result<
|
1246 1965 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1247 1966 | ConstraintViolation,
|
1248 1967 | > {
|
1249 1968 | self.build_enforcing_all_constraints()
|
1250 1969 | }
|
1970 + | /* ServerBuilderGenerator.kt:283 */
|
1251 1971 | fn build_enforcing_all_constraints(
|
1252 1972 | self,
|
1253 1973 | ) -> Result<
|
1254 1974 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
1255 1975 | ConstraintViolation,
|
1256 1976 | > {
|
1977 + | /* ServerBuilderGenerator.kt:287 */
|
1257 1978 | Ok(
|
1979 + | /* ServerBuilderGenerator.kt:542 */
|
1258 1980 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1981 + | /* ServerBuilderGenerator.kt:546 */
|
1259 1982 | map_of_enum_string: self
|
1260 1983 | .map_of_enum_string
|
1984 + | /* ServerBuilderGenerator.kt:602 */
|
1261 1985 | .map(|v| match v {
|
1262 1986 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1263 1987 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1264 1988 | })
|
1989 + | /* ServerBuilderGenerator.kt:614 */
|
1265 1990 | .map(|res| {
|
1266 1991 | res.map(|v| v.into())
|
1267 1992 | .map_err(ConstraintViolation::MapOfEnumString)
|
1268 1993 | })
|
1269 1994 | .transpose()?,
|
1270 - | },
|
1995 + | /* ServerBuilderGenerator.kt:542 */
|
1996 + | }, /* ServerBuilderGenerator.kt:287 */
|
1271 1997 | )
|
1998 + | /* ServerBuilderGenerator.kt:283 */
|
1272 1999 | }
|
2000 + | /* ServerBuilderGenerator.kt:215 */
|
1273 2001 | }
|
2002 + |
|
2003 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1274 2004 | }
|
1275 - | /// See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2005 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
1276 2006 | pub mod query_params_targeting_map_of_enum_string_operation_input {
|
1277 2007 |
|
2008 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1278 2009 | impl ::std::convert::From<Builder>
|
1279 2010 | for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
1280 2011 | {
|
1281 2012 | fn from(builder: Builder) -> Self {
|
1282 2013 | builder.build()
|
1283 2014 | }
|
1284 2015 | }
|
1285 - | /// A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2016 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2017 + | /* RustType.kt:516 */
|
1286 2018 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1287 2020 | pub struct Builder {
|
2021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1288 2022 | pub(crate) map_of_enum_string: ::std::option::Option<
|
1289 2023 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1290 2024 | >,
|
2025 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1291 2026 | }
|
2027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1292 2028 | impl Builder {
|
2029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1293 2030 | #[allow(missing_docs)] // documentation missing in model
|
2031 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1294 2032 | pub fn map_of_enum_string(
|
1295 2033 | mut self,
|
1296 2034 | input: ::std::option::Option<
|
1297 2035 | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
1298 2036 | >,
|
1299 2037 | ) -> Self {
|
1300 - | self.map_of_enum_string = input;
|
2038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2039 + | self.map_of_enum_string =
|
2040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1301 2042 | self
|
2043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1302 2044 | }
|
1303 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2045 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput).
|
2046 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1304 2047 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
1305 2048 | self.build_enforcing_required_and_enum_traits()
|
1306 2049 | }
|
2050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1307 2051 | fn build_enforcing_required_and_enum_traits(
|
1308 2052 | self,
|
1309 2053 | ) -> crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1310 2055 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput {
|
2056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1311 2057 | map_of_enum_string: self.map_of_enum_string,
|
2058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1312 2059 | }
|
2060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1313 2061 | }
|
2062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1314 2063 | }
|
2064 + |
|
2065 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1315 2066 | }
|
1316 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2067 + | /// /* ServerBuilderGenerator.kt:171 */See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1317 2068 | pub(crate) mod http_prefix_headers_targeting_length_map_operation_input_internal {
|
1318 2069 |
|
2070 + | /* RustType.kt:516 */
|
1319 2071 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1320 - | /// Holds one variant for each of the ways the builder can fail.
|
2072 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2073 + | /* RustType.kt:516 */
|
1321 2074 | #[non_exhaustive]
|
2075 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1322 2076 | #[allow(clippy::enum_variant_names)]
|
1323 2077 | pub(crate) enum ConstraintViolation {
|
1324 - | /// Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
2078 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`.
|
2079 + | /* RustType.kt:516 */
|
1325 2080 | #[doc(hidden)]
|
2081 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1326 2082 | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
2083 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1327 2084 | }
|
2085 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1328 2086 | impl ::std::fmt::Display for ConstraintViolation {
|
2087 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1329 2088 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2089 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1330 2090 | match self {
|
1331 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
1332 - | }
|
2091 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `HttpPrefixHeadersTargetingLengthMapOperationInput`"),
|
2092 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2093 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1333 2094 | }
|
2095 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1334 2096 | }
|
2097 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1335 2098 | impl ::std::error::Error for ConstraintViolation {}
|
2099 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1336 2100 | impl ConstraintViolation {
|
1337 2101 | pub(crate) fn as_validation_exception_field(
|
1338 2102 | self,
|
1339 2103 | path: ::std::string::String,
|
1340 2104 | ) -> crate::model::ValidationExceptionField {
|
1341 2105 | match self {
|
1342 2106 | ConstraintViolation::LengthMap(inner) => {
|
1343 2107 | inner.as_validation_exception_field(path + "/lengthMap")
|
1344 2108 | }
|
1345 2109 | }
|
1346 2110 | }
|
1347 2111 | }
|
2112 + | /* ServerBuilderGenerator.kt:234 */
|
1348 2113 | impl ::std::convert::From<ConstraintViolation>
|
1349 2114 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1350 2115 | {
|
1351 2116 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1352 2117 | let first_validation_exception_field =
|
1353 2118 | constraint_violation.as_validation_exception_field("".to_owned());
|
1354 2119 | let validation_exception = crate::error::ValidationException {
|
1355 2120 | message: format!(
|
1356 2121 | "1 validation error detected. {}",
|
1357 2122 | &first_validation_exception_field.message
|
1358 2123 | ),
|
1359 2124 | field_list: Some(vec![first_validation_exception_field]),
|
1360 2125 | };
|
1361 2126 | Self::ConstraintViolation(
|
1362 2127 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1363 2128 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1364 2129 | )
|
1365 2130 | }
|
1366 2131 | }
|
2132 + | /* ServerBuilderGenerator.kt:244 */
|
1367 2133 | impl ::std::convert::From<Builder>
|
1368 2134 | for crate::constrained::MaybeConstrained<
|
1369 2135 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1370 2136 | >
|
1371 2137 | {
|
1372 2138 | fn from(builder: Builder) -> Self {
|
1373 2139 | Self::Unconstrained(builder)
|
1374 2140 | }
|
1375 2141 | }
|
2142 + | /* ServerBuilderGenerator.kt:446 */
|
1376 2143 | impl ::std::convert::TryFrom<Builder>
|
1377 2144 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1378 2145 | {
|
1379 2146 | type Error = ConstraintViolation;
|
1380 2147 |
|
1381 2148 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1382 2149 | builder.build()
|
1383 2150 | }
|
1384 2151 | }
|
1385 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2152 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2153 + | /* RustType.kt:516 */
|
1386 2154 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2155 + | /* ServerBuilderGenerator.kt:211 */
|
1387 2156 | pub(crate) struct Builder {
|
2157 + | /* ServerBuilderGenerator.kt:308 */
|
1388 2158 | pub(crate) length_map:
|
1389 2159 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
2160 + | /* ServerBuilderGenerator.kt:211 */
|
1390 2161 | }
|
2162 + | /* ServerBuilderGenerator.kt:215 */
|
1391 2163 | impl Builder {
|
2164 + | /* ServerBuilderGenerator.kt:426 */
|
1392 2165 | #[allow(missing_docs)] // documentation missing in model
|
2166 + | /* ServerBuilderGenerator.kt:428 */
|
1393 2167 | pub(crate) fn set_length_map(
|
1394 2168 | mut self,
|
1395 2169 | input: Option<
|
1396 2170 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
1397 2171 | >,
|
1398 2172 | ) -> Self {
|
2173 + | /* ServerBuilderGenerator.kt:429 */
|
1399 2174 | self.length_map = input.map(|v| v.into());
|
1400 2175 | self
|
2176 + | /* ServerBuilderGenerator.kt:428 */
|
1401 2177 | }
|
1402 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1403 - | ///
|
2178 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2179 + | /// /* ServerBuilderGenerator.kt:260 */
|
1404 2180 | /// The builder fails to construct a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
1405 2181 | ///
|
2182 + | /* ServerBuilderGenerator.kt:271 */
|
1406 2183 | pub fn build(
|
1407 2184 | self,
|
1408 2185 | ) -> Result<
|
1409 2186 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1410 2187 | ConstraintViolation,
|
1411 2188 | > {
|
1412 2189 | self.build_enforcing_all_constraints()
|
1413 2190 | }
|
2191 + | /* ServerBuilderGenerator.kt:283 */
|
1414 2192 | fn build_enforcing_all_constraints(
|
1415 2193 | self,
|
1416 2194 | ) -> Result<
|
1417 2195 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
1418 2196 | ConstraintViolation,
|
1419 2197 | > {
|
2198 + | /* ServerBuilderGenerator.kt:287 */
|
1420 2199 | Ok(
|
2200 + | /* ServerBuilderGenerator.kt:542 */
|
1421 2201 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2202 + | /* ServerBuilderGenerator.kt:546 */
|
1422 2203 | length_map: self
|
1423 2204 | .length_map
|
2205 + | /* ServerBuilderGenerator.kt:602 */
|
1424 2206 | .map(|v| match v {
|
1425 2207 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1426 2208 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1427 2209 | })
|
2210 + | /* ServerBuilderGenerator.kt:614 */
|
1428 2211 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
1429 2212 | .transpose()?
|
2213 + | /* ServerBuilderGenerator.kt:630 */
|
1430 2214 | .map(|v: crate::model::ConBMap| v.into()),
|
1431 - | },
|
2215 + | /* ServerBuilderGenerator.kt:542 */
|
2216 + | }, /* ServerBuilderGenerator.kt:287 */
|
1432 2217 | )
|
2218 + | /* ServerBuilderGenerator.kt:283 */
|
1433 2219 | }
|
2220 + | /* ServerBuilderGenerator.kt:215 */
|
1434 2221 | }
|
2222 + |
|
2223 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1435 2224 | }
|
1436 - | /// See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2225 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
1437 2226 | pub mod http_prefix_headers_targeting_length_map_operation_input {
|
1438 2227 |
|
2228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1439 2229 | impl ::std::convert::From<Builder>
|
1440 2230 | for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
1441 2231 | {
|
1442 2232 | fn from(builder: Builder) -> Self {
|
1443 2233 | builder.build()
|
1444 2234 | }
|
1445 2235 | }
|
1446 - | /// A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2236 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2237 + | /* RustType.kt:516 */
|
1447 2238 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2239 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1448 2240 | pub struct Builder {
|
2241 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1449 2242 | pub(crate) length_map: ::std::option::Option<
|
1450 2243 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1451 2244 | >,
|
2245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1452 2246 | }
|
2247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1453 2248 | impl Builder {
|
2249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1454 2250 | #[allow(missing_docs)] // documentation missing in model
|
2251 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1455 2252 | pub fn length_map(
|
1456 2253 | mut self,
|
1457 2254 | input: ::std::option::Option<
|
1458 2255 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1459 2256 | >,
|
1460 2257 | ) -> Self {
|
1461 - | self.length_map = input;
|
2258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2259 + | self.length_map =
|
2260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2261 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1462 2262 | self
|
2263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1463 2264 | }
|
1464 - | /// Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2265 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput).
|
2266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1465 2267 | pub fn build(self) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
1466 2268 | self.build_enforcing_required_and_enum_traits()
|
1467 2269 | }
|
2270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1468 2271 | fn build_enforcing_required_and_enum_traits(
|
1469 2272 | self,
|
1470 2273 | ) -> crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2274 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1471 2275 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput {
|
2276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1472 2277 | length_map: self.length_map,
|
2278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1473 2279 | }
|
2280 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1474 2281 | }
|
2282 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1475 2283 | }
|
2284 + |
|
2285 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1476 2286 | }
|
1477 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2287 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1478 2288 | pub(crate) mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input_internal {
|
1479 2289 |
|
2290 + | /* RustType.kt:516 */
|
1480 2291 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1481 - | /// Holds one variant for each of the ways the builder can fail.
|
2292 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2293 + | /* RustType.kt:516 */
|
1482 2294 | #[non_exhaustive]
|
2295 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1483 2296 | #[allow(clippy::enum_variant_names)]
|
1484 2297 | pub(crate) enum ConstraintViolation {
|
1485 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2298 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`.
|
2299 + | /* RustType.kt:516 */
|
1486 2300 | #[doc(hidden)]
|
2301 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1487 2302 | MapOfLengthPatternString(
|
1488 2303 | crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation,
|
1489 2304 | ),
|
2305 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1490 2306 | }
|
2307 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1491 2308 | impl ::std::fmt::Display for ConstraintViolation {
|
2309 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1492 2310 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2311 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1493 2312 | match self {
|
1494 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
1495 - | }
|
2313 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`"),
|
2314 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2315 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1496 2316 | }
|
2317 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1497 2318 | }
|
2319 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1498 2320 | impl ::std::error::Error for ConstraintViolation {}
|
2321 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1499 2322 | impl ConstraintViolation {
|
1500 2323 | pub(crate) fn as_validation_exception_field(
|
1501 2324 | self,
|
1502 2325 | path: ::std::string::String,
|
1503 2326 | ) -> crate::model::ValidationExceptionField {
|
1504 2327 | match self {
|
1505 2328 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1506 2329 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1507 2330 | }
|
1508 2331 | }
|
1509 2332 | }
|
1510 2333 | }
|
2334 + | /* ServerBuilderGenerator.kt:234 */
|
1511 2335 | impl ::std::convert::From<ConstraintViolation>
|
1512 2336 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1513 2337 | {
|
1514 2338 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1515 2339 | let first_validation_exception_field =
|
1516 2340 | constraint_violation.as_validation_exception_field("".to_owned());
|
1517 2341 | let validation_exception = crate::error::ValidationException {
|
1518 2342 | message: format!(
|
1519 2343 | "1 validation error detected. {}",
|
1520 2344 | &first_validation_exception_field.message
|
1521 2345 | ),
|
1522 2346 | field_list: Some(vec![first_validation_exception_field]),
|
1523 2347 | };
|
1524 2348 | Self::ConstraintViolation(
|
1525 2349 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1526 2350 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1527 2351 | )
|
1528 2352 | }
|
1529 2353 | }
|
2354 + | /* ServerBuilderGenerator.kt:244 */
|
1530 2355 | impl ::std::convert::From<Builder>
|
1531 2356 | for crate::constrained::MaybeConstrained<
|
1532 2357 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1533 2358 | >
|
1534 2359 | {
|
1535 2360 | fn from(builder: Builder) -> Self {
|
1536 2361 | Self::Unconstrained(builder)
|
1537 2362 | }
|
1538 2363 | }
|
2364 + | /* ServerBuilderGenerator.kt:446 */
|
1539 2365 | impl ::std::convert::TryFrom<Builder>
|
1540 2366 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1541 2367 | {
|
1542 2368 | type Error = ConstraintViolation;
|
1543 2369 |
|
1544 2370 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1545 2371 | builder.build()
|
1546 2372 | }
|
1547 2373 | }
|
1548 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2374 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2375 + | /* RustType.kt:516 */
|
1549 2376 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2377 + | /* ServerBuilderGenerator.kt:211 */
|
1550 2378 | pub(crate) struct Builder {
|
1551 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>,
|
1552 - | }
|
2379 + | /* 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>>,
|
2380 + | /* ServerBuilderGenerator.kt:211 */}
|
2381 + | /* ServerBuilderGenerator.kt:215 */
|
1553 2382 | impl Builder {
|
2383 + | /* ServerBuilderGenerator.kt:426 */
|
1554 2384 | #[allow(missing_docs)] // documentation missing in model
|
2385 + | /* ServerBuilderGenerator.kt:428 */
|
1555 2386 | pub(crate) fn set_map_of_length_pattern_string(
|
1556 2387 | mut self,
|
1557 2388 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained>>>,
|
1558 2389 | ) -> Self {
|
2390 + | /* ServerBuilderGenerator.kt:429 */
|
1559 2391 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1560 2392 | self
|
2393 + | /* ServerBuilderGenerator.kt:428 */
|
1561 2394 | }
|
1562 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1563 - | ///
|
2395 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2396 + | /// /* ServerBuilderGenerator.kt:260 */
|
1564 2397 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1565 2398 | ///
|
2399 + | /* ServerBuilderGenerator.kt:271 */
|
1566 2400 | pub fn build(
|
1567 2401 | self,
|
1568 2402 | ) -> Result<
|
1569 2403 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1570 2404 | ConstraintViolation,
|
1571 2405 | > {
|
1572 2406 | self.build_enforcing_all_constraints()
|
1573 2407 | }
|
2408 + | /* ServerBuilderGenerator.kt:283 */
|
1574 2409 | fn build_enforcing_all_constraints(
|
1575 2410 | self,
|
1576 2411 | ) -> Result<
|
1577 2412 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
1578 2413 | ConstraintViolation,
|
1579 2414 | > {
|
2415 + | /* ServerBuilderGenerator.kt:287 */
|
1580 2416 | Ok(
|
2417 + | /* ServerBuilderGenerator.kt:542 */
|
1581 2418 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2419 + | /* ServerBuilderGenerator.kt:546 */
|
1582 2420 | map_of_length_pattern_string: self
|
1583 2421 | .map_of_length_pattern_string
|
2422 + | /* ServerBuilderGenerator.kt:602 */
|
1584 2423 | .map(|v| match v {
|
1585 2424 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1586 2425 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1587 2426 | })
|
2427 + | /* ServerBuilderGenerator.kt:614 */
|
1588 2428 | .map(|res| {
|
1589 2429 | res.map(|v| v.into())
|
1590 2430 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1591 2431 | })
|
1592 2432 | .transpose()?,
|
1593 - | },
|
2433 + | /* ServerBuilderGenerator.kt:542 */
|
2434 + | }, /* ServerBuilderGenerator.kt:287 */
|
1594 2435 | )
|
2436 + | /* ServerBuilderGenerator.kt:283 */
|
1595 2437 | }
|
2438 + | /* ServerBuilderGenerator.kt:215 */
|
1596 2439 | }
|
2440 + |
|
2441 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1597 2442 | }
|
1598 - | /// See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2443 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
1599 2444 | pub mod query_params_targeting_map_of_list_of_length_pattern_string_operation_input {
|
1600 2445 |
|
2446 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1601 2447 | impl ::std::convert::From<Builder>
|
1602 2448 | for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1603 2449 | {
|
1604 2450 | fn from(builder: Builder) -> Self {
|
1605 2451 | builder.build()
|
1606 2452 | }
|
1607 2453 | }
|
1608 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2454 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2455 + | /* RustType.kt:516 */
|
1609 2456 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1610 2458 | pub struct Builder {
|
2459 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1611 2460 | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1612 2461 | ::std::collections::HashMap<
|
1613 2462 | ::std::string::String,
|
1614 2463 | ::std::vec::Vec<::std::string::String>,
|
1615 2464 | >,
|
1616 2465 | >,
|
2466 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1617 2467 | }
|
2468 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1618 2469 | impl Builder {
|
2470 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1619 2471 | #[allow(missing_docs)] // documentation missing in model
|
2472 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1620 2473 | pub fn map_of_length_pattern_string(
|
1621 2474 | mut self,
|
1622 2475 | input: ::std::option::Option<
|
1623 2476 | ::std::collections::HashMap<
|
1624 2477 | ::std::string::String,
|
1625 2478 | ::std::vec::Vec<::std::string::String>,
|
1626 2479 | >,
|
1627 2480 | >,
|
1628 2481 | ) -> Self {
|
1629 - | self.map_of_length_pattern_string = input;
|
2482 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2483 + | self.map_of_length_pattern_string =
|
2484 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2485 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1630 2486 | self
|
2487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1631 2488 | }
|
1632 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2489 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput).
|
2490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1633 2491 | pub fn build(
|
1634 2492 | self,
|
1635 2493 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1636 2494 | {
|
1637 2495 | self.build_enforcing_required_and_enum_traits()
|
1638 2496 | }
|
2497 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1639 2498 | fn build_enforcing_required_and_enum_traits(
|
1640 2499 | self,
|
1641 2500 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
1642 2501 | {
|
2502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1643 2503 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput {
|
2504 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1644 2505 | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1645 2507 | }
|
2508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1646 2509 | }
|
2510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1647 2511 | }
|
2512 + |
|
2513 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1648 2514 | }
|
1649 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2515 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1650 2516 | pub(crate) mod query_params_targeting_map_of_length_pattern_string_operation_input_internal {
|
1651 2517 |
|
2518 + | /* RustType.kt:516 */
|
1652 2519 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1653 - | /// Holds one variant for each of the ways the builder can fail.
|
2520 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2521 + | /* RustType.kt:516 */
|
1654 2522 | #[non_exhaustive]
|
2523 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1655 2524 | #[allow(clippy::enum_variant_names)]
|
1656 2525 | pub(crate) enum ConstraintViolation {
|
1657 - | /// Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2526 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`.
|
2527 + | /* RustType.kt:516 */
|
1658 2528 | #[doc(hidden)]
|
2529 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1659 2530 | MapOfLengthPatternString(
|
1660 2531 | crate::model::map_of_length_pattern_string_internal::ConstraintViolation,
|
1661 2532 | ),
|
2533 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1662 2534 | }
|
2535 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1663 2536 | impl ::std::fmt::Display for ConstraintViolation {
|
2537 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1664 2538 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2539 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1665 2540 | match self {
|
1666 - | ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
1667 - | }
|
2541 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_pattern_string` when building `QueryParamsTargetingMapOfLengthPatternStringOperationInput`"),
|
2542 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2543 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1668 2544 | }
|
2545 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1669 2546 | }
|
2547 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1670 2548 | impl ::std::error::Error for ConstraintViolation {}
|
2549 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1671 2550 | impl ConstraintViolation {
|
1672 2551 | pub(crate) fn as_validation_exception_field(
|
1673 2552 | self,
|
1674 2553 | path: ::std::string::String,
|
1675 2554 | ) -> crate::model::ValidationExceptionField {
|
1676 2555 | match self {
|
1677 2556 | ConstraintViolation::MapOfLengthPatternString(inner) => {
|
1678 2557 | inner.as_validation_exception_field(path + "/mapOfLengthPatternString")
|
1679 2558 | }
|
1680 2559 | }
|
1681 2560 | }
|
1682 2561 | }
|
2562 + | /* ServerBuilderGenerator.kt:234 */
|
1683 2563 | impl ::std::convert::From<ConstraintViolation>
|
1684 2564 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1685 2565 | {
|
1686 2566 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1687 2567 | let first_validation_exception_field =
|
1688 2568 | constraint_violation.as_validation_exception_field("".to_owned());
|
1689 2569 | let validation_exception = crate::error::ValidationException {
|
1690 2570 | message: format!(
|
1691 2571 | "1 validation error detected. {}",
|
1692 2572 | &first_validation_exception_field.message
|
1693 2573 | ),
|
1694 2574 | field_list: Some(vec![first_validation_exception_field]),
|
1695 2575 | };
|
1696 2576 | Self::ConstraintViolation(
|
1697 2577 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1698 2578 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1699 2579 | )
|
1700 2580 | }
|
1701 2581 | }
|
2582 + | /* ServerBuilderGenerator.kt:244 */
|
1702 2583 | impl ::std::convert::From<Builder>
|
1703 2584 | for crate::constrained::MaybeConstrained<
|
1704 2585 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1705 2586 | >
|
1706 2587 | {
|
1707 2588 | fn from(builder: Builder) -> Self {
|
1708 2589 | Self::Unconstrained(builder)
|
1709 2590 | }
|
1710 2591 | }
|
2592 + | /* ServerBuilderGenerator.kt:446 */
|
1711 2593 | impl ::std::convert::TryFrom<Builder>
|
1712 2594 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1713 2595 | {
|
1714 2596 | type Error = ConstraintViolation;
|
1715 2597 |
|
1716 2598 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1717 2599 | builder.build()
|
1718 2600 | }
|
1719 2601 | }
|
1720 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2602 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2603 + | /* RustType.kt:516 */
|
1721 2604 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2605 + | /* ServerBuilderGenerator.kt:211 */
|
1722 2606 | pub(crate) struct Builder {
|
1723 - | pub(crate) map_of_length_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>,
|
1724 - | }
|
2607 + | /* 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>>,
|
2608 + | /* ServerBuilderGenerator.kt:211 */}
|
2609 + | /* ServerBuilderGenerator.kt:215 */
|
1725 2610 | impl Builder {
|
2611 + | /* ServerBuilderGenerator.kt:426 */
|
1726 2612 | #[allow(missing_docs)] // documentation missing in model
|
2613 + | /* ServerBuilderGenerator.kt:428 */
|
1727 2614 | pub(crate) fn set_map_of_length_pattern_string(
|
1728 2615 | mut self,
|
1729 2616 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained>>>,
|
1730 2617 | ) -> Self {
|
2618 + | /* ServerBuilderGenerator.kt:429 */
|
1731 2619 | self.map_of_length_pattern_string = input.map(|v| v.into());
|
1732 2620 | self
|
2621 + | /* ServerBuilderGenerator.kt:428 */
|
1733 2622 | }
|
1734 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1735 - | ///
|
2623 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2624 + | /// /* ServerBuilderGenerator.kt:260 */
|
1736 2625 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1737 2626 | ///
|
2627 + | /* ServerBuilderGenerator.kt:271 */
|
1738 2628 | pub fn build(
|
1739 2629 | self,
|
1740 2630 | ) -> Result<
|
1741 2631 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1742 2632 | ConstraintViolation,
|
1743 2633 | > {
|
1744 2634 | self.build_enforcing_all_constraints()
|
1745 2635 | }
|
2636 + | /* ServerBuilderGenerator.kt:283 */
|
1746 2637 | fn build_enforcing_all_constraints(
|
1747 2638 | self,
|
1748 2639 | ) -> Result<
|
1749 2640 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
1750 2641 | ConstraintViolation,
|
1751 2642 | > {
|
2643 + | /* ServerBuilderGenerator.kt:287 */
|
1752 2644 | Ok(
|
2645 + | /* ServerBuilderGenerator.kt:542 */
|
1753 2646 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2647 + | /* ServerBuilderGenerator.kt:546 */
|
1754 2648 | map_of_length_pattern_string: self
|
1755 2649 | .map_of_length_pattern_string
|
2650 + | /* ServerBuilderGenerator.kt:602 */
|
1756 2651 | .map(|v| match v {
|
1757 2652 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1758 2653 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1759 2654 | })
|
2655 + | /* ServerBuilderGenerator.kt:614 */
|
1760 2656 | .map(|res| {
|
1761 2657 | res.map(|v| v.into())
|
1762 2658 | .map_err(ConstraintViolation::MapOfLengthPatternString)
|
1763 2659 | })
|
1764 2660 | .transpose()?,
|
1765 - | },
|
2661 + | /* ServerBuilderGenerator.kt:542 */
|
2662 + | }, /* ServerBuilderGenerator.kt:287 */
|
1766 2663 | )
|
2664 + | /* ServerBuilderGenerator.kt:283 */
|
1767 2665 | }
|
2666 + | /* ServerBuilderGenerator.kt:215 */
|
1768 2667 | }
|
2668 + |
|
2669 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1769 2670 | }
|
1770 - | /// See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2671 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
1771 2672 | pub mod query_params_targeting_map_of_length_pattern_string_operation_input {
|
1772 2673 |
|
2674 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1773 2675 | impl ::std::convert::From<Builder>
|
1774 2676 | for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
1775 2677 | {
|
1776 2678 | fn from(builder: Builder) -> Self {
|
1777 2679 | builder.build()
|
1778 2680 | }
|
1779 2681 | }
|
1780 - | /// A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2682 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2683 + | /* RustType.kt:516 */
|
1781 2684 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2685 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1782 2686 | pub struct Builder {
|
2687 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1783 2688 | pub(crate) map_of_length_pattern_string: ::std::option::Option<
|
1784 2689 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1785 2690 | >,
|
2691 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1786 2692 | }
|
2693 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1787 2694 | impl Builder {
|
2695 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1788 2696 | #[allow(missing_docs)] // documentation missing in model
|
2697 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1789 2698 | pub fn map_of_length_pattern_string(
|
1790 2699 | mut self,
|
1791 2700 | input: ::std::option::Option<
|
1792 2701 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1793 2702 | >,
|
1794 2703 | ) -> Self {
|
1795 - | self.map_of_length_pattern_string = input;
|
2704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2705 + | self.map_of_length_pattern_string =
|
2706 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1796 2708 | self
|
2709 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1797 2710 | }
|
1798 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2711 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput).
|
2712 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1799 2713 | pub fn build(
|
1800 2714 | self,
|
1801 2715 | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
1802 2716 | self.build_enforcing_required_and_enum_traits()
|
1803 2717 | }
|
2718 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1804 2719 | fn build_enforcing_required_and_enum_traits(
|
1805 2720 | self,
|
1806 2721 | ) -> crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2722 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1807 2723 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput {
|
2724 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1808 2725 | map_of_length_pattern_string: self.map_of_length_pattern_string,
|
2726 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1809 2727 | }
|
2728 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1810 2729 | }
|
2730 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1811 2731 | }
|
2732 + |
|
2733 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1812 2734 | }
|
1813 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2735 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1814 2736 | pub(crate) mod query_params_targeting_map_of_list_of_pattern_string_operation_input_internal {
|
1815 2737 |
|
2738 + | /* RustType.kt:516 */
|
1816 2739 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1817 - | /// Holds one variant for each of the ways the builder can fail.
|
2740 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2741 + | /* RustType.kt:516 */
|
1818 2742 | #[non_exhaustive]
|
2743 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1819 2744 | #[allow(clippy::enum_variant_names)]
|
1820 2745 | pub(crate) enum ConstraintViolation {
|
1821 - | /// Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2746 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`.
|
2747 + | /* RustType.kt:516 */
|
1822 2748 | #[doc(hidden)]
|
2749 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1823 2750 | MapOfListOfPatternString(
|
1824 2751 | crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation,
|
1825 2752 | ),
|
2753 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1826 2754 | }
|
2755 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1827 2756 | impl ::std::fmt::Display for ConstraintViolation {
|
2757 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1828 2758 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2759 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1829 2760 | match self {
|
1830 - | ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
1831 - | }
|
2761 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_pattern_string` when building `QueryParamsTargetingMapOfListOfPatternStringOperationInput`"),
|
2762 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2763 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1832 2764 | }
|
2765 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1833 2766 | }
|
2767 + | /* ServerBuilderConstraintViolations.kt:84 */
|
1834 2768 | impl ::std::error::Error for ConstraintViolation {}
|
2769 + | /* ServerBuilderConstraintViolations.kt:171 */
|
1835 2770 | impl ConstraintViolation {
|
1836 2771 | pub(crate) fn as_validation_exception_field(
|
1837 2772 | self,
|
1838 2773 | path: ::std::string::String,
|
1839 2774 | ) -> crate::model::ValidationExceptionField {
|
1840 2775 | match self {
|
1841 2776 | ConstraintViolation::MapOfListOfPatternString(inner) => {
|
1842 2777 | inner.as_validation_exception_field(path + "/mapOfListOfPatternString")
|
1843 2778 | }
|
1844 2779 | }
|
1845 2780 | }
|
1846 2781 | }
|
2782 + | /* ServerBuilderGenerator.kt:234 */
|
1847 2783 | impl ::std::convert::From<ConstraintViolation>
|
1848 2784 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
1849 2785 | {
|
1850 2786 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
1851 2787 | let first_validation_exception_field =
|
1852 2788 | constraint_violation.as_validation_exception_field("".to_owned());
|
1853 2789 | let validation_exception = crate::error::ValidationException {
|
1854 2790 | message: format!(
|
1855 2791 | "1 validation error detected. {}",
|
1856 2792 | &first_validation_exception_field.message
|
1857 2793 | ),
|
1858 2794 | field_list: Some(vec![first_validation_exception_field]),
|
1859 2795 | };
|
1860 2796 | Self::ConstraintViolation(
|
1861 2797 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
1862 2798 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
1863 2799 | )
|
1864 2800 | }
|
1865 2801 | }
|
2802 + | /* ServerBuilderGenerator.kt:244 */
|
1866 2803 | impl ::std::convert::From<Builder>
|
1867 2804 | for crate::constrained::MaybeConstrained<
|
1868 2805 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1869 2806 | >
|
1870 2807 | {
|
1871 2808 | fn from(builder: Builder) -> Self {
|
1872 2809 | Self::Unconstrained(builder)
|
1873 2810 | }
|
1874 2811 | }
|
2812 + | /* ServerBuilderGenerator.kt:446 */
|
1875 2813 | impl ::std::convert::TryFrom<Builder>
|
1876 2814 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1877 2815 | {
|
1878 2816 | type Error = ConstraintViolation;
|
1879 2817 |
|
1880 2818 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1881 2819 | builder.build()
|
1882 2820 | }
|
1883 2821 | }
|
1884 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2822 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2823 + | /* RustType.kt:516 */
|
1885 2824 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2825 + | /* ServerBuilderGenerator.kt:211 */
|
1886 2826 | pub(crate) struct Builder {
|
1887 - | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>,
|
1888 - | }
|
2827 + | /* 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>>,
|
2828 + | /* ServerBuilderGenerator.kt:211 */}
|
2829 + | /* ServerBuilderGenerator.kt:215 */
|
1889 2830 | impl Builder {
|
2831 + | /* ServerBuilderGenerator.kt:426 */
|
1890 2832 | #[allow(missing_docs)] // documentation missing in model
|
2833 + | /* ServerBuilderGenerator.kt:428 */
|
1891 2834 | pub(crate) fn set_map_of_list_of_pattern_string(
|
1892 2835 | mut self,
|
1893 2836 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained>>>,
|
1894 2837 | ) -> Self {
|
2838 + | /* ServerBuilderGenerator.kt:429 */
|
1895 2839 | self.map_of_list_of_pattern_string = input.map(|v| v.into());
|
1896 2840 | self
|
2841 + | /* ServerBuilderGenerator.kt:428 */
|
1897 2842 | }
|
1898 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1899 - | ///
|
2843 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2844 + | /// /* ServerBuilderGenerator.kt:260 */
|
1900 2845 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
1901 2846 | ///
|
2847 + | /* ServerBuilderGenerator.kt:271 */
|
1902 2848 | pub fn build(
|
1903 2849 | self,
|
1904 2850 | ) -> Result<
|
1905 2851 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1906 2852 | ConstraintViolation,
|
1907 2853 | > {
|
1908 2854 | self.build_enforcing_all_constraints()
|
1909 2855 | }
|
2856 + | /* ServerBuilderGenerator.kt:283 */
|
1910 2857 | fn build_enforcing_all_constraints(
|
1911 2858 | self,
|
1912 2859 | ) -> Result<
|
1913 2860 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
1914 2861 | ConstraintViolation,
|
1915 2862 | > {
|
2863 + | /* ServerBuilderGenerator.kt:287 */
|
1916 2864 | Ok(
|
2865 + | /* ServerBuilderGenerator.kt:542 */
|
1917 2866 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2867 + | /* ServerBuilderGenerator.kt:546 */
|
1918 2868 | map_of_list_of_pattern_string: self
|
1919 2869 | .map_of_list_of_pattern_string
|
2870 + | /* ServerBuilderGenerator.kt:602 */
|
1920 2871 | .map(|v| match v {
|
1921 2872 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1922 2873 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1923 2874 | })
|
2875 + | /* ServerBuilderGenerator.kt:614 */
|
1924 2876 | .map(|res| {
|
1925 2877 | res.map(|v| v.into())
|
1926 2878 | .map_err(ConstraintViolation::MapOfListOfPatternString)
|
1927 2879 | })
|
1928 2880 | .transpose()?,
|
1929 - | },
|
2881 + | /* ServerBuilderGenerator.kt:542 */
|
2882 + | }, /* ServerBuilderGenerator.kt:287 */
|
1930 2883 | )
|
2884 + | /* ServerBuilderGenerator.kt:283 */
|
1931 2885 | }
|
2886 + | /* ServerBuilderGenerator.kt:215 */
|
1932 2887 | }
|
2888 + |
|
2889 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1933 2890 | }
|
1934 - | /// See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2891 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
1935 2892 | pub mod query_params_targeting_map_of_list_of_pattern_string_operation_input {
|
1936 2893 |
|
2894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
1937 2895 | impl ::std::convert::From<Builder>
|
1938 2896 | for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
1939 2897 | {
|
1940 2898 | fn from(builder: Builder) -> Self {
|
1941 2899 | builder.build()
|
1942 2900 | }
|
1943 2901 | }
|
1944 - | /// A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2902 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2903 + | /* RustType.kt:516 */
|
1945 2904 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1946 2906 | pub struct Builder {
|
2907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
1947 2908 | pub(crate) map_of_list_of_pattern_string: ::std::option::Option<
|
1948 2909 | ::std::collections::HashMap<
|
1949 2910 | ::std::string::String,
|
1950 2911 | ::std::vec::Vec<::std::string::String>,
|
1951 2912 | >,
|
1952 2913 | >,
|
2914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
1953 2915 | }
|
2916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1954 2917 | impl Builder {
|
2918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
1955 2919 | #[allow(missing_docs)] // documentation missing in model
|
2920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1956 2921 | pub fn map_of_list_of_pattern_string(
|
1957 2922 | mut self,
|
1958 2923 | input: ::std::option::Option<
|
1959 2924 | ::std::collections::HashMap<
|
1960 2925 | ::std::string::String,
|
1961 2926 | ::std::vec::Vec<::std::string::String>,
|
1962 2927 | >,
|
1963 2928 | >,
|
1964 2929 | ) -> Self {
|
1965 - | self.map_of_list_of_pattern_string = input;
|
2930 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
2931 + | self.map_of_list_of_pattern_string =
|
2932 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
2933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
1966 2934 | self
|
2935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
1967 2936 | }
|
1968 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2937 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput).
|
2938 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
1969 2939 | pub fn build(
|
1970 2940 | self,
|
1971 2941 | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
1972 2942 | self.build_enforcing_required_and_enum_traits()
|
1973 2943 | }
|
2944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1974 2945 | fn build_enforcing_required_and_enum_traits(
|
1975 2946 | self,
|
1976 2947 | ) -> crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1977 2949 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput {
|
2950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
1978 2951 | map_of_list_of_pattern_string: self.map_of_list_of_pattern_string,
|
2952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
1979 2953 | }
|
2954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
1980 2955 | }
|
2956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
1981 2957 | }
|
2958 + |
|
2959 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
1982 2960 | }
|
1983 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2961 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
1984 2962 | pub(crate) mod query_params_targeting_map_of_pattern_string_operation_input_internal {
|
1985 2963 |
|
2964 + | /* RustType.kt:516 */
|
1986 2965 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1987 - | /// Holds one variant for each of the ways the builder can fail.
|
2966 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
2967 + | /* RustType.kt:516 */
|
1988 2968 | #[non_exhaustive]
|
2969 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1989 2970 | #[allow(clippy::enum_variant_names)]
|
1990 2971 | pub(crate) enum ConstraintViolation {
|
1991 - | /// Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2972 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`.
|
2973 + | /* RustType.kt:516 */
|
1992 2974 | #[doc(hidden)]
|
2975 + | /* ServerBuilderConstraintViolations.kt:164 */
|
1993 2976 | MapOfPatternString(crate::model::map_of_pattern_string_internal::ConstraintViolation),
|
2977 + | /* ServerBuilderConstraintViolations.kt:75 */
|
1994 2978 | }
|
2979 + | /* ServerBuilderConstraintViolations.kt:117 */
|
1995 2980 | impl ::std::fmt::Display for ConstraintViolation {
|
2981 + | /* ServerBuilderConstraintViolations.kt:118 */
|
1996 2982 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2983 + | /* ServerBuilderConstraintViolations.kt:119 */
|
1997 2984 | match self {
|
1998 - | ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
1999 - | }
|
2985 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_pattern_string` when building `QueryParamsTargetingMapOfPatternStringOperationInput`"),
|
2986 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
2987 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2000 2988 | }
|
2989 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2001 2990 | }
|
2991 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2002 2992 | impl ::std::error::Error for ConstraintViolation {}
|
2993 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2003 2994 | impl ConstraintViolation {
|
2004 2995 | pub(crate) fn as_validation_exception_field(
|
2005 2996 | self,
|
2006 2997 | path: ::std::string::String,
|
2007 2998 | ) -> crate::model::ValidationExceptionField {
|
2008 2999 | match self {
|
2009 3000 | ConstraintViolation::MapOfPatternString(inner) => {
|
2010 3001 | inner.as_validation_exception_field(path + "/mapOfPatternString")
|
2011 3002 | }
|
2012 3003 | }
|
2013 3004 | }
|
2014 3005 | }
|
3006 + | /* ServerBuilderGenerator.kt:234 */
|
2015 3007 | impl ::std::convert::From<ConstraintViolation>
|
2016 3008 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2017 3009 | {
|
2018 3010 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2019 3011 | let first_validation_exception_field =
|
2020 3012 | constraint_violation.as_validation_exception_field("".to_owned());
|
2021 3013 | let validation_exception = crate::error::ValidationException {
|
2022 3014 | message: format!(
|
2023 3015 | "1 validation error detected. {}",
|
2024 3016 | &first_validation_exception_field.message
|
2025 3017 | ),
|
2026 3018 | field_list: Some(vec![first_validation_exception_field]),
|
2027 3019 | };
|
2028 3020 | Self::ConstraintViolation(
|
2029 3021 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2030 3022 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2031 3023 | )
|
2032 3024 | }
|
2033 3025 | }
|
3026 + | /* ServerBuilderGenerator.kt:244 */
|
2034 3027 | impl ::std::convert::From<Builder>
|
2035 3028 | for crate::constrained::MaybeConstrained<
|
2036 3029 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2037 3030 | >
|
2038 3031 | {
|
2039 3032 | fn from(builder: Builder) -> Self {
|
2040 3033 | Self::Unconstrained(builder)
|
2041 3034 | }
|
2042 3035 | }
|
3036 + | /* ServerBuilderGenerator.kt:446 */
|
2043 3037 | impl ::std::convert::TryFrom<Builder>
|
2044 3038 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
2045 3039 | {
|
2046 3040 | type Error = ConstraintViolation;
|
2047 3041 |
|
2048 3042 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2049 3043 | builder.build()
|
2050 3044 | }
|
2051 3045 | }
|
2052 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3046 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3047 + | /* RustType.kt:516 */
|
2053 3048 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3049 + | /* ServerBuilderGenerator.kt:211 */
|
2054 3050 | pub(crate) struct Builder {
|
2055 - | pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
2056 - | }
|
3051 + | /* ServerBuilderGenerator.kt:308 */pub(crate) map_of_pattern_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>,
|
3052 + | /* ServerBuilderGenerator.kt:211 */}
|
3053 + | /* ServerBuilderGenerator.kt:215 */
|
2057 3054 | impl Builder {
|
3055 + | /* ServerBuilderGenerator.kt:426 */
|
2058 3056 | #[allow(missing_docs)] // documentation missing in model
|
3057 + | /* ServerBuilderGenerator.kt:428 */
|
2059 3058 | pub(crate) fn set_map_of_pattern_string(
|
2060 3059 | mut self,
|
2061 3060 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained>>>,
|
2062 3061 | ) -> Self {
|
3062 + | /* ServerBuilderGenerator.kt:429 */
|
2063 3063 | self.map_of_pattern_string = input.map(|v| v.into());
|
2064 3064 | self
|
3065 + | /* ServerBuilderGenerator.kt:428 */
|
2065 3066 | }
|
2066 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2067 - | ///
|
3067 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3068 + | /// /* ServerBuilderGenerator.kt:260 */
|
2068 3069 | /// The builder fails to construct a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2069 3070 | ///
|
3071 + | /* ServerBuilderGenerator.kt:271 */
|
2070 3072 | pub fn build(
|
2071 3073 | self,
|
2072 3074 | ) -> Result<
|
2073 3075 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2074 3076 | ConstraintViolation,
|
2075 3077 | > {
|
2076 3078 | self.build_enforcing_all_constraints()
|
2077 3079 | }
|
3080 + | /* ServerBuilderGenerator.kt:283 */
|
2078 3081 | fn build_enforcing_all_constraints(
|
2079 3082 | self,
|
2080 3083 | ) -> Result<
|
2081 3084 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
2082 3085 | ConstraintViolation,
|
2083 3086 | > {
|
3087 + | /* ServerBuilderGenerator.kt:287 */
|
2084 3088 | Ok(
|
3089 + | /* ServerBuilderGenerator.kt:542 */
|
2085 3090 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3091 + | /* ServerBuilderGenerator.kt:546 */
|
2086 3092 | map_of_pattern_string: self
|
2087 3093 | .map_of_pattern_string
|
3094 + | /* ServerBuilderGenerator.kt:602 */
|
2088 3095 | .map(|v| match v {
|
2089 3096 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2090 3097 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2091 3098 | })
|
3099 + | /* ServerBuilderGenerator.kt:614 */
|
2092 3100 | .map(|res| {
|
2093 3101 | res.map(|v| v.into())
|
2094 3102 | .map_err(ConstraintViolation::MapOfPatternString)
|
2095 3103 | })
|
2096 3104 | .transpose()?,
|
2097 - | },
|
3105 + | /* ServerBuilderGenerator.kt:542 */
|
3106 + | }, /* ServerBuilderGenerator.kt:287 */
|
2098 3107 | )
|
3108 + | /* ServerBuilderGenerator.kt:283 */
|
2099 3109 | }
|
3110 + | /* ServerBuilderGenerator.kt:215 */
|
2100 3111 | }
|
3112 + |
|
3113 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2101 3114 | }
|
2102 - | /// See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3115 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
2103 3116 | pub mod query_params_targeting_map_of_pattern_string_operation_input {
|
2104 3117 |
|
3118 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2105 3119 | impl ::std::convert::From<Builder>
|
2106 3120 | for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
2107 3121 | {
|
2108 3122 | fn from(builder: Builder) -> Self {
|
2109 3123 | builder.build()
|
2110 3124 | }
|
2111 3125 | }
|
2112 - | /// A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3126 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3127 + | /* RustType.kt:516 */
|
2113 3128 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3129 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2114 3130 | pub struct Builder {
|
3131 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2115 3132 | pub(crate) map_of_pattern_string: ::std::option::Option<
|
2116 3133 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2117 3134 | >,
|
3135 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2118 3136 | }
|
3137 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2119 3138 | impl Builder {
|
3139 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2120 3140 | #[allow(missing_docs)] // documentation missing in model
|
3141 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2121 3142 | pub fn map_of_pattern_string(
|
2122 3143 | mut self,
|
2123 3144 | input: ::std::option::Option<
|
2124 3145 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2125 3146 | >,
|
2126 3147 | ) -> Self {
|
2127 - | self.map_of_pattern_string = input;
|
3148 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3149 + | self.map_of_pattern_string =
|
3150 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2128 3152 | self
|
3153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2129 3154 | }
|
2130 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3155 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput).
|
3156 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2131 3157 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
2132 3158 | self.build_enforcing_required_and_enum_traits()
|
2133 3159 | }
|
3160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2134 3161 | fn build_enforcing_required_and_enum_traits(
|
2135 3162 | self,
|
2136 3163 | ) -> crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3164 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2137 3165 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput {
|
3166 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2138 3167 | map_of_pattern_string: self.map_of_pattern_string,
|
3168 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2139 3169 | }
|
3170 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2140 3171 | }
|
3172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2141 3173 | }
|
3174 + |
|
3175 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2142 3176 | }
|
2143 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3177 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2144 3178 | pub(crate) mod query_params_targeting_map_of_list_of_enum_string_operation_input_internal {
|
2145 3179 |
|
3180 + | /* RustType.kt:516 */
|
2146 3181 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2147 - | /// Holds one variant for each of the ways the builder can fail.
|
3182 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3183 + | /* RustType.kt:516 */
|
2148 3184 | #[non_exhaustive]
|
3185 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2149 3186 | #[allow(clippy::enum_variant_names)]
|
2150 3187 | pub(crate) enum ConstraintViolation {
|
2151 - | /// Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
3188 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`.
|
3189 + | /* RustType.kt:516 */
|
2152 3190 | #[doc(hidden)]
|
3191 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2153 3192 | MapOfListOfEnumString(
|
2154 3193 | crate::model::map_of_list_of_enum_string_internal::ConstraintViolation,
|
2155 3194 | ),
|
3195 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2156 3196 | }
|
3197 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2157 3198 | impl ::std::fmt::Display for ConstraintViolation {
|
3199 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2158 3200 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3201 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2159 3202 | match self {
|
2160 - | ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
2161 - | }
|
3203 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfEnumString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_enum_string` when building `QueryParamsTargetingMapOfListOfEnumStringOperationInput`"),
|
3204 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3205 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2162 3206 | }
|
3207 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2163 3208 | }
|
3209 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2164 3210 | impl ::std::error::Error for ConstraintViolation {}
|
3211 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2165 3212 | impl ConstraintViolation {
|
2166 3213 | pub(crate) fn as_validation_exception_field(
|
2167 3214 | self,
|
2168 3215 | path: ::std::string::String,
|
2169 3216 | ) -> crate::model::ValidationExceptionField {
|
2170 3217 | match self {
|
2171 3218 | ConstraintViolation::MapOfListOfEnumString(inner) => {
|
2172 3219 | inner.as_validation_exception_field(path + "/mapOfListOfEnumString")
|
2173 3220 | }
|
2174 3221 | }
|
2175 3222 | }
|
2176 3223 | }
|
3224 + | /* ServerBuilderGenerator.kt:234 */
|
2177 3225 | impl ::std::convert::From<ConstraintViolation>
|
2178 3226 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2179 3227 | {
|
2180 3228 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2181 3229 | let first_validation_exception_field =
|
2182 3230 | constraint_violation.as_validation_exception_field("".to_owned());
|
2183 3231 | let validation_exception = crate::error::ValidationException {
|
2184 3232 | message: format!(
|
2185 3233 | "1 validation error detected. {}",
|
2186 3234 | &first_validation_exception_field.message
|
2187 3235 | ),
|
2188 3236 | field_list: Some(vec![first_validation_exception_field]),
|
2189 3237 | };
|
2190 3238 | Self::ConstraintViolation(
|
2191 3239 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2192 3240 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2193 3241 | )
|
2194 3242 | }
|
2195 3243 | }
|
3244 + | /* ServerBuilderGenerator.kt:244 */
|
2196 3245 | impl ::std::convert::From<Builder>
|
2197 3246 | for crate::constrained::MaybeConstrained<
|
2198 3247 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2199 3248 | >
|
2200 3249 | {
|
2201 3250 | fn from(builder: Builder) -> Self {
|
2202 3251 | Self::Unconstrained(builder)
|
2203 3252 | }
|
2204 3253 | }
|
3254 + | /* ServerBuilderGenerator.kt:446 */
|
2205 3255 | impl ::std::convert::TryFrom<Builder>
|
2206 3256 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
2207 3257 | {
|
2208 3258 | type Error = ConstraintViolation;
|
2209 3259 |
|
2210 3260 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2211 3261 | builder.build()
|
2212 3262 | }
|
2213 3263 | }
|
2214 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3264 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3265 + | /* RustType.kt:516 */
|
2215 3266 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3267 + | /* ServerBuilderGenerator.kt:211 */
|
2216 3268 | pub(crate) struct Builder {
|
2217 - | pub(crate) map_of_list_of_enum_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>,
|
2218 - | }
|
3269 + | /* 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>>,
|
3270 + | /* ServerBuilderGenerator.kt:211 */}
|
3271 + | /* ServerBuilderGenerator.kt:215 */
|
2219 3272 | impl Builder {
|
3273 + | /* ServerBuilderGenerator.kt:426 */
|
2220 3274 | #[allow(missing_docs)] // documentation missing in model
|
3275 + | /* ServerBuilderGenerator.kt:428 */
|
2221 3276 | pub(crate) fn set_map_of_list_of_enum_string(
|
2222 3277 | mut self,
|
2223 3278 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained>>>,
|
2224 3279 | ) -> Self {
|
3280 + | /* ServerBuilderGenerator.kt:429 */
|
2225 3281 | self.map_of_list_of_enum_string = input.map(|v| v.into());
|
2226 3282 | self
|
3283 + | /* ServerBuilderGenerator.kt:428 */
|
2227 3284 | }
|
2228 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2229 - | ///
|
3285 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3286 + | /// /* ServerBuilderGenerator.kt:260 */
|
2230 3287 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2231 3288 | ///
|
3289 + | /* ServerBuilderGenerator.kt:271 */
|
2232 3290 | pub fn build(
|
2233 3291 | self,
|
2234 3292 | ) -> Result<
|
2235 3293 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2236 3294 | ConstraintViolation,
|
2237 3295 | > {
|
2238 3296 | self.build_enforcing_all_constraints()
|
2239 3297 | }
|
3298 + | /* ServerBuilderGenerator.kt:283 */
|
2240 3299 | fn build_enforcing_all_constraints(
|
2241 3300 | self,
|
2242 3301 | ) -> Result<
|
2243 3302 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
2244 3303 | ConstraintViolation,
|
2245 3304 | > {
|
3305 + | /* ServerBuilderGenerator.kt:287 */
|
2246 3306 | Ok(
|
3307 + | /* ServerBuilderGenerator.kt:542 */
|
2247 3308 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3309 + | /* ServerBuilderGenerator.kt:546 */
|
2248 3310 | map_of_list_of_enum_string: self
|
2249 3311 | .map_of_list_of_enum_string
|
3312 + | /* ServerBuilderGenerator.kt:602 */
|
2250 3313 | .map(|v| match v {
|
2251 3314 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2252 3315 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2253 3316 | })
|
3317 + | /* ServerBuilderGenerator.kt:614 */
|
2254 3318 | .map(|res| {
|
2255 3319 | res.map(|v| v.into())
|
2256 3320 | .map_err(ConstraintViolation::MapOfListOfEnumString)
|
2257 3321 | })
|
2258 3322 | .transpose()?,
|
2259 - | },
|
3323 + | /* ServerBuilderGenerator.kt:542 */
|
3324 + | }, /* ServerBuilderGenerator.kt:287 */
|
2260 3325 | )
|
3326 + | /* ServerBuilderGenerator.kt:283 */
|
2261 3327 | }
|
3328 + | /* ServerBuilderGenerator.kt:215 */
|
2262 3329 | }
|
3330 + |
|
3331 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2263 3332 | }
|
2264 - | /// See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3333 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
2265 3334 | pub mod query_params_targeting_map_of_list_of_enum_string_operation_input {
|
2266 3335 |
|
3336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2267 3337 | impl ::std::convert::From<Builder>
|
2268 3338 | for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
2269 3339 | {
|
2270 3340 | fn from(builder: Builder) -> Self {
|
2271 3341 | builder.build()
|
2272 3342 | }
|
2273 3343 | }
|
2274 - | /// A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3344 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3345 + | /* RustType.kt:516 */
|
2275 3346 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3347 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2276 3348 | pub struct Builder {
|
3349 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2277 3350 | pub(crate) map_of_list_of_enum_string: ::std::option::Option<
|
2278 3351 | ::std::collections::HashMap<
|
2279 3352 | crate::model::EnumString,
|
2280 3353 | ::std::vec::Vec<crate::model::EnumString>,
|
2281 3354 | >,
|
2282 3355 | >,
|
3356 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2283 3357 | }
|
3358 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2284 3359 | impl Builder {
|
3360 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2285 3361 | #[allow(missing_docs)] // documentation missing in model
|
3362 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2286 3363 | pub fn map_of_list_of_enum_string(
|
2287 3364 | mut self,
|
2288 3365 | input: ::std::option::Option<
|
2289 3366 | ::std::collections::HashMap<
|
2290 3367 | crate::model::EnumString,
|
2291 3368 | ::std::vec::Vec<crate::model::EnumString>,
|
2292 3369 | >,
|
2293 3370 | >,
|
2294 3371 | ) -> Self {
|
2295 - | self.map_of_list_of_enum_string = input;
|
3372 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3373 + | self.map_of_list_of_enum_string =
|
3374 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3375 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2296 3376 | self
|
3377 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2297 3378 | }
|
2298 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3379 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput).
|
3380 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2299 3381 | pub fn build(
|
2300 3382 | self,
|
2301 3383 | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
2302 3384 | self.build_enforcing_required_and_enum_traits()
|
2303 3385 | }
|
3386 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2304 3387 | fn build_enforcing_required_and_enum_traits(
|
2305 3388 | self,
|
2306 3389 | ) -> crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3390 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2307 3391 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput {
|
3392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2308 3393 | map_of_list_of_enum_string: self.map_of_list_of_enum_string,
|
3394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2309 3395 | }
|
3396 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2310 3397 | }
|
3398 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2311 3399 | }
|
3400 + |
|
3401 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2312 3402 | }
|
2313 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3403 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2314 3404 | pub(crate) mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input_internal {
|
2315 3405 |
|
3406 + | /* RustType.kt:516 */
|
2316 3407 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2317 - | /// Holds one variant for each of the ways the builder can fail.
|
3408 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3409 + | /* RustType.kt:516 */
|
2318 3410 | #[non_exhaustive]
|
3411 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2319 3412 | #[allow(clippy::enum_variant_names)]
|
2320 3413 | pub(crate) enum ConstraintViolation {
|
2321 - | /// Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
3414 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`.
|
3415 + | /* RustType.kt:516 */
|
2322 3416 | #[doc(hidden)]
|
3417 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2323 3418 | MapOfLengthListOfPatternString(
|
2324 3419 | crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation,
|
2325 3420 | ),
|
3421 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2326 3422 | }
|
3423 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2327 3424 | impl ::std::fmt::Display for ConstraintViolation {
|
3425 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2328 3426 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3427 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2329 3428 | match self {
|
2330 - | ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
2331 - | }
|
3429 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthListOfPatternString(_) => write!(f, "constraint violation occurred building member `map_of_length_list_of_pattern_string` when building `QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`"),
|
3430 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3431 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2332 3432 | }
|
3433 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2333 3434 | }
|
3435 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2334 3436 | impl ::std::error::Error for ConstraintViolation {}
|
3437 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2335 3438 | impl ConstraintViolation {
|
2336 3439 | pub(crate) fn as_validation_exception_field(
|
2337 3440 | self,
|
2338 3441 | path: ::std::string::String,
|
2339 3442 | ) -> crate::model::ValidationExceptionField {
|
2340 3443 | match self {
|
2341 3444 | ConstraintViolation::MapOfLengthListOfPatternString(inner) => {
|
2342 3445 | inner.as_validation_exception_field(path + "/mapOfLengthListOfPatternString")
|
2343 3446 | }
|
2344 3447 | }
|
2345 3448 | }
|
2346 3449 | }
|
3450 + | /* ServerBuilderGenerator.kt:234 */
|
2347 3451 | impl ::std::convert::From<ConstraintViolation>
|
2348 3452 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2349 3453 | {
|
2350 3454 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2351 3455 | let first_validation_exception_field =
|
2352 3456 | constraint_violation.as_validation_exception_field("".to_owned());
|
2353 3457 | let validation_exception = crate::error::ValidationException {
|
2354 3458 | message: format!(
|
2355 3459 | "1 validation error detected. {}",
|
2356 3460 | &first_validation_exception_field.message
|
2357 3461 | ),
|
2358 3462 | field_list: Some(vec![first_validation_exception_field]),
|
2359 3463 | };
|
2360 3464 | Self::ConstraintViolation(
|
2361 3465 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2362 3466 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2363 3467 | )
|
2364 3468 | }
|
2365 3469 | }
|
3470 + | /* ServerBuilderGenerator.kt:244 */
|
2366 3471 | impl ::std::convert::From<Builder>
|
2367 3472 | for crate::constrained::MaybeConstrained<
|
2368 3473 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2369 3474 | >
|
2370 3475 | {
|
2371 3476 | fn from(builder: Builder) -> Self {
|
2372 3477 | Self::Unconstrained(builder)
|
2373 3478 | }
|
2374 3479 | }
|
3480 + | /* ServerBuilderGenerator.kt:446 */
|
2375 3481 | impl ::std::convert::TryFrom<Builder>
|
2376 3482 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2377 3483 | {
|
2378 3484 | type Error = ConstraintViolation;
|
2379 3485 |
|
2380 3486 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2381 3487 | builder.build()
|
2382 3488 | }
|
2383 3489 | }
|
2384 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3490 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3491 + | /* RustType.kt:516 */
|
2385 3492 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3493 + | /* ServerBuilderGenerator.kt:211 */
|
2386 3494 | pub(crate) struct Builder {
|
2387 - | 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>>,
|
2388 - | }
|
3495 + | /* 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>>,
|
3496 + | /* ServerBuilderGenerator.kt:211 */}
|
3497 + | /* ServerBuilderGenerator.kt:215 */
|
2389 3498 | impl Builder {
|
3499 + | /* ServerBuilderGenerator.kt:426 */
|
2390 3500 | #[allow(missing_docs)] // documentation missing in model
|
3501 + | /* ServerBuilderGenerator.kt:428 */
|
2391 3502 | pub(crate) fn set_map_of_length_list_of_pattern_string(
|
2392 3503 | mut self,
|
2393 3504 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained>>>,
|
2394 3505 | ) -> Self {
|
3506 + | /* ServerBuilderGenerator.kt:429 */
|
2395 3507 | self.map_of_length_list_of_pattern_string = input.map(|v| v.into());
|
2396 3508 | self
|
3509 + | /* ServerBuilderGenerator.kt:428 */
|
2397 3510 | }
|
2398 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2399 - | ///
|
3511 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3512 + | /// /* ServerBuilderGenerator.kt:260 */
|
2400 3513 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2401 3514 | ///
|
3515 + | /* ServerBuilderGenerator.kt:271 */
|
2402 3516 | pub fn build(
|
2403 3517 | self,
|
2404 3518 | ) -> Result<
|
2405 3519 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2406 3520 | ConstraintViolation,
|
2407 3521 | > {
|
2408 3522 | self.build_enforcing_all_constraints()
|
2409 3523 | }
|
3524 + | /* ServerBuilderGenerator.kt:283 */
|
2410 3525 | fn build_enforcing_all_constraints(
|
2411 3526 | self,
|
2412 3527 | ) -> Result<
|
2413 3528 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
2414 3529 | ConstraintViolation,
|
2415 3530 | > {
|
3531 + | /* ServerBuilderGenerator.kt:287 */
|
2416 3532 | Ok(
|
3533 + | /* ServerBuilderGenerator.kt:542 */
|
2417 3534 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3535 + | /* ServerBuilderGenerator.kt:546 */
|
2418 3536 | map_of_length_list_of_pattern_string: self
|
2419 3537 | .map_of_length_list_of_pattern_string
|
3538 + | /* ServerBuilderGenerator.kt:602 */
|
2420 3539 | .map(|v| match v {
|
2421 3540 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2422 3541 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2423 3542 | })
|
3543 + | /* ServerBuilderGenerator.kt:614 */
|
2424 3544 | .map(|res| {
|
2425 3545 | res.map(|v| v.into())
|
2426 3546 | .map_err(ConstraintViolation::MapOfLengthListOfPatternString)
|
2427 3547 | })
|
2428 3548 | .transpose()?,
|
2429 - | },
|
3549 + | /* ServerBuilderGenerator.kt:542 */
|
3550 + | }, /* ServerBuilderGenerator.kt:287 */
|
2430 3551 | )
|
3552 + | /* ServerBuilderGenerator.kt:283 */
|
2431 3553 | }
|
3554 + | /* ServerBuilderGenerator.kt:215 */
|
2432 3555 | }
|
3556 + |
|
3557 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2433 3558 | }
|
2434 - | /// See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3559 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
2435 3560 | pub mod query_params_targeting_map_of_length_list_of_pattern_string_operation_input {
|
2436 3561 |
|
3562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2437 3563 | impl ::std::convert::From<Builder>
|
2438 3564 | for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2439 3565 | {
|
2440 3566 | fn from(builder: Builder) -> Self {
|
2441 3567 | builder.build()
|
2442 3568 | }
|
2443 3569 | }
|
2444 - | /// A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3570 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3571 + | /* RustType.kt:516 */
|
2445 3572 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3573 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2446 3574 | pub struct Builder {
|
3575 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2447 3576 | pub(crate) map_of_length_list_of_pattern_string: ::std::option::Option<
|
2448 3577 | ::std::collections::HashMap<
|
2449 3578 | ::std::string::String,
|
2450 3579 | ::std::vec::Vec<::std::string::String>,
|
2451 3580 | >,
|
2452 3581 | >,
|
3582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2453 3583 | }
|
3584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2454 3585 | impl Builder {
|
3586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2455 3587 | #[allow(missing_docs)] // documentation missing in model
|
3588 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2456 3589 | pub fn map_of_length_list_of_pattern_string(
|
2457 3590 | mut self,
|
2458 3591 | input: ::std::option::Option<
|
2459 3592 | ::std::collections::HashMap<
|
2460 3593 | ::std::string::String,
|
2461 3594 | ::std::vec::Vec<::std::string::String>,
|
2462 3595 | >,
|
2463 3596 | >,
|
2464 3597 | ) -> Self {
|
2465 - | self.map_of_length_list_of_pattern_string = input;
|
3598 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3599 + | self.map_of_length_list_of_pattern_string =
|
3600 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2466 3602 | self
|
3603 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2467 3604 | }
|
2468 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3605 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput).
|
3606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2469 3607 | pub fn build(
|
2470 3608 | self,
|
2471 3609 | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2472 3610 | {
|
2473 3611 | self.build_enforcing_required_and_enum_traits()
|
2474 3612 | }
|
3613 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2475 3614 | fn build_enforcing_required_and_enum_traits(
|
2476 3615 | self,
|
2477 3616 | ) -> crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
2478 3617 | {
|
3618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2479 3619 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput {
|
3620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2480 3621 | map_of_length_list_of_pattern_string: self.map_of_length_list_of_pattern_string,
|
3622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2481 3623 | }
|
3624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2482 3625 | }
|
3626 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2483 3627 | }
|
3628 + |
|
3629 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2484 3630 | }
|
2485 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3631 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2486 3632 | pub(crate) mod query_params_targeting_map_of_set_of_length_string_operation_input_internal {
|
2487 3633 |
|
3634 + | /* RustType.kt:516 */
|
2488 3635 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2489 - | /// Holds one variant for each of the ways the builder can fail.
|
3636 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3637 + | /* RustType.kt:516 */
|
2490 3638 | #[non_exhaustive]
|
3639 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2491 3640 | #[allow(clippy::enum_variant_names)]
|
2492 3641 | pub(crate) enum ConstraintViolation {
|
2493 - | /// Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3642 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`.
|
3643 + | /* RustType.kt:516 */
|
2494 3644 | #[doc(hidden)]
|
3645 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2495 3646 | MapOfSetOfLengthString(
|
2496 3647 | crate::model::map_of_set_of_length_string_internal::ConstraintViolation,
|
2497 3648 | ),
|
3649 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2498 3650 | }
|
3651 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2499 3652 | impl ::std::fmt::Display for ConstraintViolation {
|
3653 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2500 3654 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3655 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2501 3656 | match self {
|
2502 - | ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
2503 - | }
|
3657 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfSetOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_set_of_length_string` when building `QueryParamsTargetingMapOfSetOfLengthStringOperationInput`"),
|
3658 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3659 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2504 3660 | }
|
3661 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2505 3662 | }
|
3663 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2506 3664 | impl ::std::error::Error for ConstraintViolation {}
|
3665 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2507 3666 | impl ConstraintViolation {
|
2508 3667 | pub(crate) fn as_validation_exception_field(
|
2509 3668 | self,
|
2510 3669 | path: ::std::string::String,
|
2511 3670 | ) -> crate::model::ValidationExceptionField {
|
2512 3671 | match self {
|
2513 3672 | ConstraintViolation::MapOfSetOfLengthString(inner) => {
|
2514 3673 | inner.as_validation_exception_field(path + "/mapOfSetOfLengthString")
|
2515 3674 | }
|
2516 3675 | }
|
2517 3676 | }
|
2518 3677 | }
|
3678 + | /* ServerBuilderGenerator.kt:234 */
|
2519 3679 | impl ::std::convert::From<ConstraintViolation>
|
2520 3680 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2521 3681 | {
|
2522 3682 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2523 3683 | let first_validation_exception_field =
|
2524 3684 | constraint_violation.as_validation_exception_field("".to_owned());
|
2525 3685 | let validation_exception = crate::error::ValidationException {
|
2526 3686 | message: format!(
|
2527 3687 | "1 validation error detected. {}",
|
2528 3688 | &first_validation_exception_field.message
|
2529 3689 | ),
|
2530 3690 | field_list: Some(vec![first_validation_exception_field]),
|
2531 3691 | };
|
2532 3692 | Self::ConstraintViolation(
|
2533 3693 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2534 3694 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2535 3695 | )
|
2536 3696 | }
|
2537 3697 | }
|
3698 + | /* ServerBuilderGenerator.kt:244 */
|
2538 3699 | impl ::std::convert::From<Builder>
|
2539 3700 | for crate::constrained::MaybeConstrained<
|
2540 3701 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2541 3702 | >
|
2542 3703 | {
|
2543 3704 | fn from(builder: Builder) -> Self {
|
2544 3705 | Self::Unconstrained(builder)
|
2545 3706 | }
|
2546 3707 | }
|
3708 + | /* ServerBuilderGenerator.kt:446 */
|
2547 3709 | impl ::std::convert::TryFrom<Builder>
|
2548 3710 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
2549 3711 | {
|
2550 3712 | type Error = ConstraintViolation;
|
2551 3713 |
|
2552 3714 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2553 3715 | builder.build()
|
2554 3716 | }
|
2555 3717 | }
|
2556 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3718 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3719 + | /* RustType.kt:516 */
|
2557 3720 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3721 + | /* ServerBuilderGenerator.kt:211 */
|
2558 3722 | pub(crate) struct Builder {
|
2559 - | pub(crate) map_of_set_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>,
|
2560 - | }
|
3723 + | /* 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>>,
|
3724 + | /* ServerBuilderGenerator.kt:211 */}
|
3725 + | /* ServerBuilderGenerator.kt:215 */
|
2561 3726 | impl Builder {
|
3727 + | /* ServerBuilderGenerator.kt:426 */
|
2562 3728 | #[allow(missing_docs)] // documentation missing in model
|
3729 + | /* ServerBuilderGenerator.kt:428 */
|
2563 3730 | pub(crate) fn set_map_of_set_of_length_string(
|
2564 3731 | mut self,
|
2565 3732 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained>>>,
|
2566 3733 | ) -> Self {
|
3734 + | /* ServerBuilderGenerator.kt:429 */
|
2567 3735 | self.map_of_set_of_length_string = input.map(|v| v.into());
|
2568 3736 | self
|
3737 + | /* ServerBuilderGenerator.kt:428 */
|
2569 3738 | }
|
2570 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2571 - | ///
|
3739 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3740 + | /// /* ServerBuilderGenerator.kt:260 */
|
2572 3741 | /// The builder fails to construct a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2573 3742 | ///
|
3743 + | /* ServerBuilderGenerator.kt:271 */
|
2574 3744 | pub fn build(
|
2575 3745 | self,
|
2576 3746 | ) -> Result<
|
2577 3747 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2578 3748 | ConstraintViolation,
|
2579 3749 | > {
|
2580 3750 | self.build_enforcing_all_constraints()
|
2581 3751 | }
|
3752 + | /* ServerBuilderGenerator.kt:283 */
|
2582 3753 | fn build_enforcing_all_constraints(
|
2583 3754 | self,
|
2584 3755 | ) -> Result<
|
2585 3756 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
2586 3757 | ConstraintViolation,
|
2587 3758 | > {
|
3759 + | /* ServerBuilderGenerator.kt:287 */
|
2588 3760 | Ok(
|
3761 + | /* ServerBuilderGenerator.kt:542 */
|
2589 3762 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3763 + | /* ServerBuilderGenerator.kt:546 */
|
2590 3764 | map_of_set_of_length_string: self
|
2591 3765 | .map_of_set_of_length_string
|
3766 + | /* ServerBuilderGenerator.kt:602 */
|
2592 3767 | .map(|v| match v {
|
2593 3768 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2594 3769 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2595 3770 | })
|
3771 + | /* ServerBuilderGenerator.kt:614 */
|
2596 3772 | .map(|res| {
|
2597 3773 | res.map(|v| v.into())
|
2598 3774 | .map_err(ConstraintViolation::MapOfSetOfLengthString)
|
2599 3775 | })
|
2600 3776 | .transpose()?,
|
2601 - | },
|
3777 + | /* ServerBuilderGenerator.kt:542 */
|
3778 + | }, /* ServerBuilderGenerator.kt:287 */
|
2602 3779 | )
|
3780 + | /* ServerBuilderGenerator.kt:283 */
|
2603 3781 | }
|
3782 + | /* ServerBuilderGenerator.kt:215 */
|
2604 3783 | }
|
3784 + |
|
3785 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2605 3786 | }
|
2606 - | /// See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3787 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
2607 3788 | pub mod query_params_targeting_map_of_set_of_length_string_operation_input {
|
2608 3789 |
|
3790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2609 3791 | impl ::std::convert::From<Builder>
|
2610 3792 | for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
2611 3793 | {
|
2612 3794 | fn from(builder: Builder) -> Self {
|
2613 3795 | builder.build()
|
2614 3796 | }
|
2615 3797 | }
|
2616 - | /// A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3798 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3799 + | /* RustType.kt:516 */
|
2617 3800 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2618 3802 | pub struct Builder {
|
3803 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2619 3804 | pub(crate) map_of_set_of_length_string: ::std::option::Option<
|
2620 3805 | ::std::collections::HashMap<
|
2621 3806 | ::std::string::String,
|
2622 3807 | ::std::vec::Vec<::std::string::String>,
|
2623 3808 | >,
|
2624 3809 | >,
|
3810 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2625 3811 | }
|
3812 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2626 3813 | impl Builder {
|
3814 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2627 3815 | #[allow(missing_docs)] // documentation missing in model
|
3816 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2628 3817 | pub fn map_of_set_of_length_string(
|
2629 3818 | mut self,
|
2630 3819 | input: ::std::option::Option<
|
2631 3820 | ::std::collections::HashMap<
|
2632 3821 | ::std::string::String,
|
2633 3822 | ::std::vec::Vec<::std::string::String>,
|
2634 3823 | >,
|
2635 3824 | >,
|
2636 3825 | ) -> Self {
|
2637 - | self.map_of_set_of_length_string = input;
|
3826 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
3827 + | self.map_of_set_of_length_string =
|
3828 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
3829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2638 3830 | self
|
3831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2639 3832 | }
|
2640 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3833 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput).
|
3834 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2641 3835 | pub fn build(
|
2642 3836 | self,
|
2643 3837 | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
2644 3838 | self.build_enforcing_required_and_enum_traits()
|
2645 3839 | }
|
3840 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2646 3841 | fn build_enforcing_required_and_enum_traits(
|
2647 3842 | self,
|
2648 3843 | ) -> crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3844 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2649 3845 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput {
|
3846 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2650 3847 | map_of_set_of_length_string: self.map_of_set_of_length_string,
|
3848 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2651 3849 | }
|
3850 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2652 3851 | }
|
3852 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2653 3853 | }
|
3854 + |
|
3855 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2654 3856 | }
|
2655 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3857 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2656 3858 | pub(crate) mod query_params_targeting_map_of_list_of_length_string_operation_input_internal {
|
2657 3859 |
|
3860 + | /* RustType.kt:516 */
|
2658 3861 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2659 - | /// Holds one variant for each of the ways the builder can fail.
|
3862 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
3863 + | /* RustType.kt:516 */
|
2660 3864 | #[non_exhaustive]
|
3865 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2661 3866 | #[allow(clippy::enum_variant_names)]
|
2662 3867 | pub(crate) enum ConstraintViolation {
|
2663 - | /// Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3868 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`.
|
3869 + | /* RustType.kt:516 */
|
2664 3870 | #[doc(hidden)]
|
3871 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2665 3872 | MapOfListOfLengthString(
|
2666 3873 | crate::model::map_of_list_of_length_string_internal::ConstraintViolation,
|
2667 3874 | ),
|
3875 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2668 3876 | }
|
3877 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2669 3878 | impl ::std::fmt::Display for ConstraintViolation {
|
3879 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2670 3880 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3881 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2671 3882 | match self {
|
2672 - | ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
2673 - | }
|
3883 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfListOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_list_of_length_string` when building `QueryParamsTargetingMapOfListOfLengthStringOperationInput`"),
|
3884 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
3885 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2674 3886 | }
|
3887 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2675 3888 | }
|
3889 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2676 3890 | impl ::std::error::Error for ConstraintViolation {}
|
3891 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2677 3892 | impl ConstraintViolation {
|
2678 3893 | pub(crate) fn as_validation_exception_field(
|
2679 3894 | self,
|
2680 3895 | path: ::std::string::String,
|
2681 3896 | ) -> crate::model::ValidationExceptionField {
|
2682 3897 | match self {
|
2683 3898 | ConstraintViolation::MapOfListOfLengthString(inner) => {
|
2684 3899 | inner.as_validation_exception_field(path + "/mapOfListOfLengthString")
|
2685 3900 | }
|
2686 3901 | }
|
2687 3902 | }
|
2688 3903 | }
|
3904 + | /* ServerBuilderGenerator.kt:234 */
|
2689 3905 | impl ::std::convert::From<ConstraintViolation>
|
2690 3906 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2691 3907 | {
|
2692 3908 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2693 3909 | let first_validation_exception_field =
|
2694 3910 | constraint_violation.as_validation_exception_field("".to_owned());
|
2695 3911 | let validation_exception = crate::error::ValidationException {
|
2696 3912 | message: format!(
|
2697 3913 | "1 validation error detected. {}",
|
2698 3914 | &first_validation_exception_field.message
|
2699 3915 | ),
|
2700 3916 | field_list: Some(vec![first_validation_exception_field]),
|
2701 3917 | };
|
2702 3918 | Self::ConstraintViolation(
|
2703 3919 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2704 3920 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2705 3921 | )
|
2706 3922 | }
|
2707 3923 | }
|
3924 + | /* ServerBuilderGenerator.kt:244 */
|
2708 3925 | impl ::std::convert::From<Builder>
|
2709 3926 | for crate::constrained::MaybeConstrained<
|
2710 3927 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2711 3928 | >
|
2712 3929 | {
|
2713 3930 | fn from(builder: Builder) -> Self {
|
2714 3931 | Self::Unconstrained(builder)
|
2715 3932 | }
|
2716 3933 | }
|
3934 + | /* ServerBuilderGenerator.kt:446 */
|
2717 3935 | impl ::std::convert::TryFrom<Builder>
|
2718 3936 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
2719 3937 | {
|
2720 3938 | type Error = ConstraintViolation;
|
2721 3939 |
|
2722 3940 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2723 3941 | builder.build()
|
2724 3942 | }
|
2725 3943 | }
|
2726 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3944 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3945 + | /* RustType.kt:516 */
|
2727 3946 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3947 + | /* ServerBuilderGenerator.kt:211 */
|
2728 3948 | pub(crate) struct Builder {
|
2729 - | pub(crate) map_of_list_of_length_string: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>,
|
2730 - | }
|
3949 + | /* 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>>,
|
3950 + | /* ServerBuilderGenerator.kt:211 */}
|
3951 + | /* ServerBuilderGenerator.kt:215 */
|
2731 3952 | impl Builder {
|
3953 + | /* ServerBuilderGenerator.kt:426 */
|
2732 3954 | #[allow(missing_docs)] // documentation missing in model
|
3955 + | /* ServerBuilderGenerator.kt:428 */
|
2733 3956 | pub(crate) fn set_map_of_list_of_length_string(
|
2734 3957 | mut self,
|
2735 3958 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained>>>,
|
2736 3959 | ) -> Self {
|
3960 + | /* ServerBuilderGenerator.kt:429 */
|
2737 3961 | self.map_of_list_of_length_string = input.map(|v| v.into());
|
2738 3962 | self
|
3963 + | /* ServerBuilderGenerator.kt:428 */
|
2739 3964 | }
|
2740 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2741 - | ///
|
3965 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
3966 + | /// /* ServerBuilderGenerator.kt:260 */
|
2742 3967 | /// The builder fails to construct a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2743 3968 | ///
|
3969 + | /* ServerBuilderGenerator.kt:271 */
|
2744 3970 | pub fn build(
|
2745 3971 | self,
|
2746 3972 | ) -> Result<
|
2747 3973 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2748 3974 | ConstraintViolation,
|
2749 3975 | > {
|
2750 3976 | self.build_enforcing_all_constraints()
|
2751 3977 | }
|
3978 + | /* ServerBuilderGenerator.kt:283 */
|
2752 3979 | fn build_enforcing_all_constraints(
|
2753 3980 | self,
|
2754 3981 | ) -> Result<
|
2755 3982 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
2756 3983 | ConstraintViolation,
|
2757 3984 | > {
|
3985 + | /* ServerBuilderGenerator.kt:287 */
|
2758 3986 | Ok(
|
3987 + | /* ServerBuilderGenerator.kt:542 */
|
2759 3988 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
3989 + | /* ServerBuilderGenerator.kt:546 */
|
2760 3990 | map_of_list_of_length_string: self
|
2761 3991 | .map_of_list_of_length_string
|
3992 + | /* ServerBuilderGenerator.kt:602 */
|
2762 3993 | .map(|v| match v {
|
2763 3994 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2764 3995 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2765 3996 | })
|
3997 + | /* ServerBuilderGenerator.kt:614 */
|
2766 3998 | .map(|res| {
|
2767 3999 | res.map(|v| v.into())
|
2768 4000 | .map_err(ConstraintViolation::MapOfListOfLengthString)
|
2769 4001 | })
|
2770 4002 | .transpose()?,
|
2771 - | },
|
4003 + | /* ServerBuilderGenerator.kt:542 */
|
4004 + | }, /* ServerBuilderGenerator.kt:287 */
|
2772 4005 | )
|
4006 + | /* ServerBuilderGenerator.kt:283 */
|
2773 4007 | }
|
4008 + | /* ServerBuilderGenerator.kt:215 */
|
2774 4009 | }
|
4010 + |
|
4011 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2775 4012 | }
|
2776 - | /// See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4013 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
2777 4014 | pub mod query_params_targeting_map_of_list_of_length_string_operation_input {
|
2778 4015 |
|
4016 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2779 4017 | impl ::std::convert::From<Builder>
|
2780 4018 | for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
2781 4019 | {
|
2782 4020 | fn from(builder: Builder) -> Self {
|
2783 4021 | builder.build()
|
2784 4022 | }
|
2785 4023 | }
|
2786 - | /// A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4024 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4025 + | /* RustType.kt:516 */
|
2787 4026 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4027 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2788 4028 | pub struct Builder {
|
4029 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2789 4030 | pub(crate) map_of_list_of_length_string: ::std::option::Option<
|
2790 4031 | ::std::collections::HashMap<
|
2791 4032 | ::std::string::String,
|
2792 4033 | ::std::vec::Vec<::std::string::String>,
|
2793 4034 | >,
|
2794 4035 | >,
|
4036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2795 4037 | }
|
4038 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2796 4039 | impl Builder {
|
4040 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2797 4041 | #[allow(missing_docs)] // documentation missing in model
|
4042 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2798 4043 | pub fn map_of_list_of_length_string(
|
2799 4044 | mut self,
|
2800 4045 | input: ::std::option::Option<
|
2801 4046 | ::std::collections::HashMap<
|
2802 4047 | ::std::string::String,
|
2803 4048 | ::std::vec::Vec<::std::string::String>,
|
2804 4049 | >,
|
2805 4050 | >,
|
2806 4051 | ) -> Self {
|
2807 - | self.map_of_list_of_length_string = input;
|
4052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4053 + | self.map_of_list_of_length_string =
|
4054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2808 4056 | self
|
4057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2809 4058 | }
|
2810 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4059 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput).
|
4060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2811 4061 | pub fn build(
|
2812 4062 | self,
|
2813 4063 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
2814 4064 | self.build_enforcing_required_and_enum_traits()
|
2815 4065 | }
|
4066 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2816 4067 | fn build_enforcing_required_and_enum_traits(
|
2817 4068 | self,
|
2818 4069 | ) -> crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2819 4071 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput {
|
4072 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2820 4073 | map_of_list_of_length_string: self.map_of_list_of_length_string,
|
4074 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2821 4075 | }
|
4076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2822 4077 | }
|
4078 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2823 4079 | }
|
4080 + |
|
4081 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2824 4082 | }
|
2825 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4083 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2826 4084 | pub(crate) mod query_params_targeting_map_of_length_string_operation_input_internal {
|
2827 4085 |
|
4086 + | /* RustType.kt:516 */
|
2828 4087 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2829 - | /// Holds one variant for each of the ways the builder can fail.
|
4088 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4089 + | /* RustType.kt:516 */
|
2830 4090 | #[non_exhaustive]
|
4091 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2831 4092 | #[allow(clippy::enum_variant_names)]
|
2832 4093 | pub(crate) enum ConstraintViolation {
|
2833 - | /// Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
4094 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`.
|
4095 + | /* RustType.kt:516 */
|
2834 4096 | #[doc(hidden)]
|
4097 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2835 4098 | MapOfLengthString(crate::model::map_of_length_string_internal::ConstraintViolation),
|
4099 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2836 4100 | }
|
4101 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2837 4102 | impl ::std::fmt::Display for ConstraintViolation {
|
4103 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2838 4104 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4105 + | /* ServerBuilderConstraintViolations.kt:119 */
|
2839 4106 | match self {
|
2840 - | ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
2841 - | }
|
4107 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MapOfLengthString(_) => write!(f, "constraint violation occurred building member `map_of_length_string` when building `QueryParamsTargetingMapOfLengthStringOperationInput`"),
|
4108 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4109 + | /* ServerBuilderConstraintViolations.kt:118 */
|
2842 4110 | }
|
4111 + | /* ServerBuilderConstraintViolations.kt:117 */
|
2843 4112 | }
|
4113 + | /* ServerBuilderConstraintViolations.kt:84 */
|
2844 4114 | impl ::std::error::Error for ConstraintViolation {}
|
4115 + | /* ServerBuilderConstraintViolations.kt:171 */
|
2845 4116 | impl ConstraintViolation {
|
2846 4117 | pub(crate) fn as_validation_exception_field(
|
2847 4118 | self,
|
2848 4119 | path: ::std::string::String,
|
2849 4120 | ) -> crate::model::ValidationExceptionField {
|
2850 4121 | match self {
|
2851 4122 | ConstraintViolation::MapOfLengthString(inner) => {
|
2852 4123 | inner.as_validation_exception_field(path + "/mapOfLengthString")
|
2853 4124 | }
|
2854 4125 | }
|
2855 4126 | }
|
2856 4127 | }
|
4128 + | /* ServerBuilderGenerator.kt:234 */
|
2857 4129 | impl ::std::convert::From<ConstraintViolation>
|
2858 4130 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
2859 4131 | {
|
2860 4132 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
2861 4133 | let first_validation_exception_field =
|
2862 4134 | constraint_violation.as_validation_exception_field("".to_owned());
|
2863 4135 | let validation_exception = crate::error::ValidationException {
|
2864 4136 | message: format!(
|
2865 4137 | "1 validation error detected. {}",
|
2866 4138 | &first_validation_exception_field.message
|
2867 4139 | ),
|
2868 4140 | field_list: Some(vec![first_validation_exception_field]),
|
2869 4141 | };
|
2870 4142 | Self::ConstraintViolation(
|
2871 4143 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
2872 4144 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
2873 4145 | )
|
2874 4146 | }
|
2875 4147 | }
|
4148 + | /* ServerBuilderGenerator.kt:244 */
|
2876 4149 | impl ::std::convert::From<Builder>
|
2877 4150 | for crate::constrained::MaybeConstrained<
|
2878 4151 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2879 4152 | >
|
2880 4153 | {
|
2881 4154 | fn from(builder: Builder) -> Self {
|
2882 4155 | Self::Unconstrained(builder)
|
2883 4156 | }
|
2884 4157 | }
|
4158 + | /* ServerBuilderGenerator.kt:446 */
|
2885 4159 | impl ::std::convert::TryFrom<Builder>
|
2886 4160 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
2887 4161 | {
|
2888 4162 | type Error = ConstraintViolation;
|
2889 4163 |
|
2890 4164 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2891 4165 | builder.build()
|
2892 4166 | }
|
2893 4167 | }
|
2894 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4168 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4169 + | /* RustType.kt:516 */
|
2895 4170 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4171 + | /* ServerBuilderGenerator.kt:211 */
|
2896 4172 | pub(crate) struct Builder {
|
4173 + | /* ServerBuilderGenerator.kt:308 */
|
2897 4174 | pub(crate) map_of_length_string: ::std::option::Option<
|
2898 4175 | crate::constrained::MaybeConstrained<
|
2899 4176 | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
2900 4177 | >,
|
2901 4178 | >,
|
4179 + | /* ServerBuilderGenerator.kt:211 */
|
2902 4180 | }
|
4181 + | /* ServerBuilderGenerator.kt:215 */
|
2903 4182 | impl Builder {
|
4183 + | /* ServerBuilderGenerator.kt:426 */
|
2904 4184 | #[allow(missing_docs)] // documentation missing in model
|
4185 + | /* ServerBuilderGenerator.kt:428 */
|
2905 4186 | pub(crate) fn set_map_of_length_string(
|
2906 4187 | mut self,
|
2907 4188 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>>,
|
2908 4189 | ) -> Self {
|
4190 + | /* ServerBuilderGenerator.kt:429 */
|
2909 4191 | self.map_of_length_string = input.map(|v| v.into());
|
2910 4192 | self
|
4193 + | /* ServerBuilderGenerator.kt:428 */
|
2911 4194 | }
|
2912 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2913 - | ///
|
4195 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4196 + | /// /* ServerBuilderGenerator.kt:260 */
|
2914 4197 | /// The builder fails to construct a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) if a [`ConstraintViolation`] occurs.
|
2915 4198 | ///
|
4199 + | /* ServerBuilderGenerator.kt:271 */
|
2916 4200 | pub fn build(
|
2917 4201 | self,
|
2918 4202 | ) -> Result<
|
2919 4203 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2920 4204 | ConstraintViolation,
|
2921 4205 | > {
|
2922 4206 | self.build_enforcing_all_constraints()
|
2923 4207 | }
|
4208 + | /* ServerBuilderGenerator.kt:283 */
|
2924 4209 | fn build_enforcing_all_constraints(
|
2925 4210 | self,
|
2926 4211 | ) -> Result<
|
2927 4212 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
2928 4213 | ConstraintViolation,
|
2929 4214 | > {
|
4215 + | /* ServerBuilderGenerator.kt:287 */
|
2930 4216 | Ok(
|
4217 + | /* ServerBuilderGenerator.kt:542 */
|
2931 4218 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4219 + | /* ServerBuilderGenerator.kt:546 */
|
2932 4220 | map_of_length_string: self
|
2933 4221 | .map_of_length_string
|
4222 + | /* ServerBuilderGenerator.kt:602 */
|
2934 4223 | .map(|v| match v {
|
2935 4224 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2936 4225 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2937 4226 | })
|
4227 + | /* ServerBuilderGenerator.kt:614 */
|
2938 4228 | .map(|res| {
|
2939 4229 | res.map(|v| v.into())
|
2940 4230 | .map_err(ConstraintViolation::MapOfLengthString)
|
2941 4231 | })
|
2942 4232 | .transpose()?,
|
2943 - | },
|
4233 + | /* ServerBuilderGenerator.kt:542 */
|
4234 + | }, /* ServerBuilderGenerator.kt:287 */
|
2944 4235 | )
|
4236 + | /* ServerBuilderGenerator.kt:283 */
|
2945 4237 | }
|
4238 + | /* ServerBuilderGenerator.kt:215 */
|
2946 4239 | }
|
4240 + |
|
4241 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2947 4242 | }
|
2948 - | /// See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4243 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
2949 4244 | pub mod query_params_targeting_map_of_length_string_operation_input {
|
2950 4245 |
|
4246 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
2951 4247 | impl ::std::convert::From<Builder>
|
2952 4248 | for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
2953 4249 | {
|
2954 4250 | fn from(builder: Builder) -> Self {
|
2955 4251 | builder.build()
|
2956 4252 | }
|
2957 4253 | }
|
2958 - | /// A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4254 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4255 + | /* RustType.kt:516 */
|
2959 4256 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2960 4258 | pub struct Builder {
|
4259 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
2961 4260 | pub(crate) map_of_length_string: ::std::option::Option<
|
2962 4261 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2963 4262 | >,
|
4263 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
2964 4264 | }
|
4265 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2965 4266 | impl Builder {
|
4267 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
2966 4268 | #[allow(missing_docs)] // documentation missing in model
|
4269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2967 4270 | pub fn map_of_length_string(
|
2968 4271 | mut self,
|
2969 4272 | input: ::std::option::Option<
|
2970 4273 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2971 4274 | >,
|
2972 4275 | ) -> Self {
|
2973 - | self.map_of_length_string = input;
|
4276 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4277 + | self.map_of_length_string =
|
4278 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
2974 4280 | self
|
4281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
2975 4282 | }
|
2976 - | /// Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4283 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput).
|
4284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
2977 4285 | pub fn build(self) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
2978 4286 | self.build_enforcing_required_and_enum_traits()
|
2979 4287 | }
|
4288 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2980 4289 | fn build_enforcing_required_and_enum_traits(
|
2981 4290 | self,
|
2982 4291 | ) -> crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2983 4293 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput {
|
4294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
2984 4295 | map_of_length_string: self.map_of_length_string,
|
4296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
2985 4297 | }
|
4298 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
2986 4299 | }
|
4300 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
2987 4301 | }
|
4302 + |
|
4303 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
2988 4304 | }
|
2989 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4305 + | /// /* ServerBuilderGenerator.kt:171 */See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
2990 4306 | pub(crate) mod query_params_targeting_length_map_operation_input_internal {
|
2991 4307 |
|
4308 + | /* RustType.kt:516 */
|
2992 4309 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2993 - | /// Holds one variant for each of the ways the builder can fail.
|
4310 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4311 + | /* RustType.kt:516 */
|
2994 4312 | #[non_exhaustive]
|
4313 + | /* ServerBuilderConstraintViolations.kt:75 */
|
2995 4314 | #[allow(clippy::enum_variant_names)]
|
2996 4315 | pub(crate) enum ConstraintViolation {
|
2997 - | /// Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4316 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`.
|
4317 + | /* RustType.kt:516 */
|
2998 4318 | #[doc(hidden)]
|
4319 + | /* ServerBuilderConstraintViolations.kt:164 */
|
2999 4320 | LengthMap(crate::model::con_b_map_internal::ConstraintViolation),
|
4321 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3000 4322 | }
|
4323 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3001 4324 | impl ::std::fmt::Display for ConstraintViolation {
|
4325 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3002 4326 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4327 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3003 4328 | match self {
|
3004 - | ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
3005 - | }
|
4329 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthMap(_) => write!(f, "constraint violation occurred building member `length_map` when building `QueryParamsTargetingLengthMapOperationInput`"),
|
4330 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4331 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3006 4332 | }
|
4333 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3007 4334 | }
|
4335 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3008 4336 | impl ::std::error::Error for ConstraintViolation {}
|
4337 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3009 4338 | impl ConstraintViolation {
|
3010 4339 | pub(crate) fn as_validation_exception_field(
|
3011 4340 | self,
|
3012 4341 | path: ::std::string::String,
|
3013 4342 | ) -> crate::model::ValidationExceptionField {
|
3014 4343 | match self {
|
3015 4344 | ConstraintViolation::LengthMap(inner) => {
|
3016 4345 | inner.as_validation_exception_field(path + "/lengthMap")
|
3017 4346 | }
|
3018 4347 | }
|
3019 4348 | }
|
3020 4349 | }
|
4350 + | /* ServerBuilderGenerator.kt:234 */
|
3021 4351 | impl ::std::convert::From<ConstraintViolation>
|
3022 4352 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3023 4353 | {
|
3024 4354 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3025 4355 | let first_validation_exception_field =
|
3026 4356 | constraint_violation.as_validation_exception_field("".to_owned());
|
3027 4357 | let validation_exception = crate::error::ValidationException {
|
3028 4358 | message: format!(
|
3029 4359 | "1 validation error detected. {}",
|
3030 4360 | &first_validation_exception_field.message
|
3031 4361 | ),
|
3032 4362 | field_list: Some(vec![first_validation_exception_field]),
|
3033 4363 | };
|
3034 4364 | Self::ConstraintViolation(
|
3035 4365 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3036 4366 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3037 4367 | )
|
3038 4368 | }
|
3039 4369 | }
|
4370 + | /* ServerBuilderGenerator.kt:244 */
|
3040 4371 | impl ::std::convert::From<Builder>
|
3041 4372 | for crate::constrained::MaybeConstrained<
|
3042 4373 | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
3043 4374 | >
|
3044 4375 | {
|
3045 4376 | fn from(builder: Builder) -> Self {
|
3046 4377 | Self::Unconstrained(builder)
|
3047 4378 | }
|
3048 4379 | }
|
4380 + | /* ServerBuilderGenerator.kt:446 */
|
3049 4381 | impl ::std::convert::TryFrom<Builder>
|
3050 4382 | for crate::input::QueryParamsTargetingLengthMapOperationInput
|
3051 4383 | {
|
3052 4384 | type Error = ConstraintViolation;
|
3053 4385 |
|
3054 4386 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3055 4387 | builder.build()
|
3056 4388 | }
|
3057 4389 | }
|
3058 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4390 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4391 + | /* RustType.kt:516 */
|
3059 4392 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4393 + | /* ServerBuilderGenerator.kt:211 */
|
3060 4394 | pub(crate) struct Builder {
|
4395 + | /* ServerBuilderGenerator.kt:308 */
|
3061 4396 | pub(crate) length_map:
|
3062 4397 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
4398 + | /* ServerBuilderGenerator.kt:211 */
|
3063 4399 | }
|
4400 + | /* ServerBuilderGenerator.kt:215 */
|
3064 4401 | impl Builder {
|
4402 + | /* ServerBuilderGenerator.kt:426 */
|
3065 4403 | #[allow(missing_docs)] // documentation missing in model
|
4404 + | /* ServerBuilderGenerator.kt:428 */
|
3066 4405 | pub(crate) fn set_length_map(
|
3067 4406 | mut self,
|
3068 4407 | input: Option<
|
3069 4408 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConBMap>>,
|
3070 4409 | >,
|
3071 4410 | ) -> Self {
|
4411 + | /* ServerBuilderGenerator.kt:429 */
|
3072 4412 | self.length_map = input.map(|v| v.into());
|
3073 4413 | self
|
4414 + | /* ServerBuilderGenerator.kt:428 */
|
3074 4415 | }
|
3075 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3076 - | ///
|
4416 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4417 + | /// /* ServerBuilderGenerator.kt:260 */
|
3077 4418 | /// The builder fails to construct a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) if a [`ConstraintViolation`] occurs.
|
3078 4419 | ///
|
4420 + | /* ServerBuilderGenerator.kt:271 */
|
3079 4421 | pub fn build(
|
3080 4422 | self,
|
3081 4423 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3082 4424 | {
|
3083 4425 | self.build_enforcing_all_constraints()
|
3084 4426 | }
|
4427 + | /* ServerBuilderGenerator.kt:283 */
|
3085 4428 | fn build_enforcing_all_constraints(
|
3086 4429 | self,
|
3087 4430 | ) -> Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ConstraintViolation>
|
3088 4431 | {
|
3089 - | Ok(crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4432 + | /* ServerBuilderGenerator.kt:287 */
|
4433 + | Ok(
|
4434 + | /* ServerBuilderGenerator.kt:542 */
|
4435 + | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4436 + | /* ServerBuilderGenerator.kt:546 */
|
3090 4437 | length_map: self
|
3091 4438 | .length_map
|
4439 + | /* ServerBuilderGenerator.kt:602 */
|
3092 4440 | .map(|v| match v {
|
3093 4441 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3094 4442 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3095 4443 | })
|
4444 + | /* ServerBuilderGenerator.kt:614 */
|
3096 4445 | .map(|res| res.map_err(ConstraintViolation::LengthMap))
|
3097 4446 | .transpose()?
|
4447 + | /* ServerBuilderGenerator.kt:630 */
|
3098 4448 | .map(|v: crate::model::ConBMap| v.into()),
|
3099 - | })
|
4449 + | /* ServerBuilderGenerator.kt:542 */
|
4450 + | }, /* ServerBuilderGenerator.kt:287 */
|
4451 + | )
|
4452 + | /* ServerBuilderGenerator.kt:283 */
|
3100 4453 | }
|
4454 + | /* ServerBuilderGenerator.kt:215 */
|
3101 4455 | }
|
4456 + |
|
4457 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3102 4458 | }
|
3103 - | /// See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4459 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
3104 4460 | pub mod query_params_targeting_length_map_operation_input {
|
3105 4461 |
|
4462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
3106 4463 | impl ::std::convert::From<Builder> for crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3107 4464 | fn from(builder: Builder) -> Self {
|
3108 4465 | builder.build()
|
3109 4466 | }
|
3110 4467 | }
|
3111 - | /// A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4468 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4469 + | /* RustType.kt:516 */
|
3112 4470 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3113 4472 | pub struct Builder {
|
4473 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3114 4474 | pub(crate) length_map: ::std::option::Option<
|
3115 4475 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3116 4476 | >,
|
4477 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3117 4478 | }
|
4479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3118 4480 | impl Builder {
|
4481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3119 4482 | #[allow(missing_docs)] // documentation missing in model
|
4483 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3120 4484 | pub fn length_map(
|
3121 4485 | mut self,
|
3122 4486 | input: ::std::option::Option<
|
3123 4487 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
3124 4488 | >,
|
3125 4489 | ) -> Self {
|
3126 - | self.length_map = input;
|
4490 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4491 + | self.length_map =
|
4492 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4493 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3127 4494 | self
|
4495 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3128 4496 | }
|
3129 - | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4497 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput).
|
4498 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3130 4499 | pub fn build(self) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
3131 4500 | self.build_enforcing_required_and_enum_traits()
|
3132 4501 | }
|
4502 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3133 4503 | fn build_enforcing_required_and_enum_traits(
|
3134 4504 | self,
|
3135 4505 | ) -> crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3136 4507 | crate::input::QueryParamsTargetingLengthMapOperationInput {
|
4508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3137 4509 | length_map: self.length_map,
|
4510 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3138 4511 | }
|
4512 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3139 4513 | }
|
4514 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3140 4515 | }
|
4516 + |
|
4517 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3141 4518 | }
|
3142 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4519 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3143 4520 | pub(crate) mod constrained_recursive_shapes_operation_input_internal {
|
3144 4521 |
|
4522 + | /* RustType.kt:516 */
|
3145 4523 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3146 - | /// Holds one variant for each of the ways the builder can fail.
|
4524 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4525 + | /* RustType.kt:516 */
|
3147 4526 | #[non_exhaustive]
|
4527 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3148 4528 | #[allow(clippy::enum_variant_names)]
|
3149 4529 | pub(crate) enum ConstraintViolation {
|
3150 - | /// Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
4530 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`.
|
4531 + | /* RustType.kt:516 */
|
3151 4532 | #[doc(hidden)]
|
4533 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3152 4534 | Nested(crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation),
|
3153 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4535 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4536 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3154 4537 | MissingRecursiveList,
|
3155 - | /// Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
4538 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`.
|
4539 + | /* RustType.kt:516 */
|
3156 4540 | #[doc(hidden)]
|
4541 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3157 4542 | RecursiveList(crate::model::recursive_list_internal::ConstraintViolation),
|
4543 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3158 4544 | }
|
4545 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3159 4546 | impl ::std::fmt::Display for ConstraintViolation {
|
4547 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3160 4548 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4549 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3161 4550 | match self {
|
3162 - | ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3163 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3164 - | ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
3165 - | }
|
4551 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::Nested(_) => write!(f, "constraint violation occurred building member `nested` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4552 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4553 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RecursiveList(_) => write!(f, "constraint violation occurred building member `recursive_list` when building `ConstrainedRecursiveShapesOperationInput`"),
|
4554 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4555 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3166 4556 | }
|
4557 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3167 4558 | }
|
4559 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3168 4560 | impl ::std::error::Error for ConstraintViolation {}
|
4561 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3169 4562 | impl ConstraintViolation {
|
3170 4563 | pub(crate) fn as_validation_exception_field(
|
3171 4564 | self,
|
3172 4565 | path: ::std::string::String,
|
3173 4566 | ) -> crate::model::ValidationExceptionField {
|
3174 4567 | match self {
|
3175 4568 | ConstraintViolation::Nested(inner) => inner.as_validation_exception_field(path + "/nested"),
|
3176 4569 | ConstraintViolation::MissingRecursiveList => crate::model::ValidationExceptionField {
|
3177 4570 | message: format!("Value at '{}/recursiveList' failed to satisfy constraint: Member must not be null", path),
|
3178 4571 | path: path + "/recursiveList",
|
3179 4572 | },
|
3180 4573 | ConstraintViolation::RecursiveList(inner) => inner.as_validation_exception_field(path + "/recursiveList"),
|
3181 4574 | }
|
3182 4575 | }
|
3183 4576 | }
|
4577 + | /* ServerBuilderGenerator.kt:234 */
|
3184 4578 | impl ::std::convert::From<ConstraintViolation>
|
3185 4579 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3186 4580 | {
|
3187 4581 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3188 4582 | let first_validation_exception_field =
|
3189 4583 | constraint_violation.as_validation_exception_field("".to_owned());
|
3190 4584 | let validation_exception = crate::error::ValidationException {
|
3191 4585 | message: format!(
|
3192 4586 | "1 validation error detected. {}",
|
3193 4587 | &first_validation_exception_field.message
|
3194 4588 | ),
|
3195 4589 | field_list: Some(vec![first_validation_exception_field]),
|
3196 4590 | };
|
3197 4591 | Self::ConstraintViolation(
|
3198 4592 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3199 4593 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3200 4594 | )
|
3201 4595 | }
|
3202 4596 | }
|
4597 + | /* ServerBuilderGenerator.kt:244 */
|
3203 4598 | impl ::std::convert::From<Builder>
|
3204 4599 | for crate::constrained::MaybeConstrained<
|
3205 4600 | crate::input::ConstrainedRecursiveShapesOperationInput,
|
3206 4601 | >
|
3207 4602 | {
|
3208 4603 | fn from(builder: Builder) -> Self {
|
3209 4604 | Self::Unconstrained(builder)
|
3210 4605 | }
|
3211 4606 | }
|
4607 + | /* ServerBuilderGenerator.kt:446 */
|
3212 4608 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3213 4609 | type Error = ConstraintViolation;
|
3214 4610 |
|
3215 4611 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3216 4612 | builder.build()
|
3217 4613 | }
|
3218 4614 | }
|
3219 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4615 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4616 + | /* RustType.kt:516 */
|
3220 4617 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4618 + | /* ServerBuilderGenerator.kt:211 */
|
3221 4619 | pub(crate) struct Builder {
|
4620 + | /* ServerBuilderGenerator.kt:308 */
|
3222 4621 | pub(crate) nested: ::std::option::Option<
|
3223 4622 | crate::constrained::MaybeConstrained<crate::model::RecursiveShapesInputOutputNested1>,
|
3224 4623 | >,
|
4624 + | /* ServerBuilderGenerator.kt:308 */
|
3225 4625 | pub(crate) recursive_list: ::std::option::Option<
|
3226 4626 | crate::constrained::MaybeConstrained<
|
3227 4627 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
3228 4628 | >,
|
3229 4629 | >,
|
4630 + | /* ServerBuilderGenerator.kt:211 */
|
3230 4631 | }
|
4632 + | /* ServerBuilderGenerator.kt:215 */
|
3231 4633 | impl Builder {
|
4634 + | /* ServerBuilderGenerator.kt:426 */
|
3232 4635 | #[allow(missing_docs)] // documentation missing in model
|
4636 + | /* ServerBuilderGenerator.kt:428 */
|
3233 4637 | pub(crate) fn set_nested(
|
3234 4638 | mut self,
|
3235 4639 | input: Option<
|
3236 4640 | impl ::std::convert::Into<
|
3237 4641 | crate::constrained::MaybeConstrained<
|
3238 4642 | crate::model::RecursiveShapesInputOutputNested1,
|
3239 4643 | >,
|
3240 4644 | >,
|
3241 4645 | >,
|
3242 4646 | ) -> Self {
|
4647 + | /* ServerBuilderGenerator.kt:429 */
|
3243 4648 | self.nested = input.map(|v| v.into());
|
3244 4649 | self
|
4650 + | /* ServerBuilderGenerator.kt:428 */
|
3245 4651 | }
|
4652 + | /* ServerBuilderGenerator.kt:426 */
|
3246 4653 | #[allow(missing_docs)] // documentation missing in model
|
4654 + | /* ServerBuilderGenerator.kt:428 */
|
3247 4655 | pub(crate) fn set_recursive_list(
|
3248 4656 | mut self,
|
3249 4657 | input: impl ::std::convert::Into<
|
3250 4658 | crate::constrained::MaybeConstrained<
|
3251 4659 | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
3252 4660 | >,
|
3253 4661 | >,
|
3254 4662 | ) -> Self {
|
4663 + | /* ServerBuilderGenerator.kt:429 */
|
3255 4664 | self.recursive_list = Some(input.into());
|
3256 4665 | self
|
4666 + | /* ServerBuilderGenerator.kt:428 */
|
3257 4667 | }
|
3258 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3259 - | ///
|
4668 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4669 + | /// /* ServerBuilderGenerator.kt:260 */
|
3260 4670 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
3261 4671 | ///
|
3262 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4672 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4673 + | /* ServerBuilderGenerator.kt:271 */
|
3263 4674 | pub fn build(
|
3264 4675 | self,
|
3265 4676 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3266 4677 | {
|
3267 4678 | self.build_enforcing_all_constraints()
|
3268 4679 | }
|
4680 + | /* ServerBuilderGenerator.kt:283 */
|
3269 4681 | fn build_enforcing_all_constraints(
|
3270 4682 | self,
|
3271 4683 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3272 4684 | {
|
3273 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4685 + | /* ServerBuilderGenerator.kt:287 */
|
4686 + | Ok(
|
4687 + | /* ServerBuilderGenerator.kt:542 */
|
4688 + | crate::input::ConstrainedRecursiveShapesOperationInput {
|
4689 + | /* ServerBuilderGenerator.kt:546 */
|
3274 4690 | nested: self
|
3275 4691 | .nested
|
4692 + | /* ServerBuilderGenerator.kt:602 */
|
3276 4693 | .map(|v| match v {
|
3277 4694 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3278 4695 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3279 4696 | })
|
4697 + | /* ServerBuilderGenerator.kt:614 */
|
3280 4698 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
3281 4699 | .transpose()?,
|
4700 + | /* ServerBuilderGenerator.kt:546 */
|
3282 4701 | recursive_list: self
|
3283 4702 | .recursive_list
|
4703 + | /* ServerBuilderGenerator.kt:602 */
|
3284 4704 | .map(|v| match v {
|
3285 4705 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3286 4706 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3287 4707 | })
|
4708 + | /* ServerBuilderGenerator.kt:614 */
|
3288 4709 | .map(|res| {
|
3289 4710 | res.map(|v| v.into())
|
3290 4711 | .map_err(ConstraintViolation::RecursiveList)
|
3291 4712 | })
|
3292 4713 | .transpose()?
|
4714 + | /* ServerBuilderGenerator.kt:569 */
|
3293 4715 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3294 - | })
|
4716 + | /* ServerBuilderGenerator.kt:542 */
|
4717 + | }, /* ServerBuilderGenerator.kt:287 */
|
4718 + | )
|
4719 + | /* ServerBuilderGenerator.kt:283 */
|
3295 4720 | }
|
4721 + | /* ServerBuilderGenerator.kt:215 */
|
3296 4722 | }
|
4723 + |
|
4724 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3297 4725 | }
|
3298 - | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4726 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3299 4727 | pub mod constrained_recursive_shapes_operation_input {
|
3300 4728 |
|
4729 + | /* RustType.kt:516 */
|
3301 4730 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3302 - | /// Holds one variant for each of the ways the builder can fail.
|
3303 - |
|
4731 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4732 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3304 4733 | #[allow(clippy::enum_variant_names)]
|
3305 4734 | pub enum ConstraintViolation {
|
3306 - | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4735 + | /// /* ServerBuilderConstraintViolations.kt:138 */`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4736 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3307 4737 | MissingRecursiveList,
|
4738 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3308 4739 | }
|
4740 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3309 4741 | impl ::std::fmt::Display for ConstraintViolation {
|
4742 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3310 4743 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4744 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3311 4745 | match self {
|
3312 - | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3313 - | }
|
4746 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4747 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4748 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3314 4749 | }
|
4750 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3315 4751 | }
|
4752 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3316 4753 | impl ::std::error::Error for ConstraintViolation {}
|
4754 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
3317 4755 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3318 4756 | type Error = ConstraintViolation;
|
3319 4757 |
|
3320 4758 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3321 4759 | builder.build()
|
3322 4760 | }
|
3323 4761 | }
|
3324 - | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4762 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4763 + | /* RustType.kt:516 */
|
3325 4764 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4765 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3326 4766 | pub struct Builder {
|
4767 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3327 4768 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4769 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3328 4770 | pub(crate) recursive_list:
|
3329 4771 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4772 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3330 4773 | }
|
4774 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3331 4775 | impl Builder {
|
4776 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3332 4777 | #[allow(missing_docs)] // documentation missing in model
|
4778 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3333 4779 | pub fn nested(
|
3334 4780 | mut self,
|
3335 4781 | input: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3336 4782 | ) -> Self {
|
3337 - | self.nested = input;
|
4783 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4784 + | self.nested =
|
4785 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4786 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3338 4787 | self
|
4788 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3339 4789 | }
|
4790 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3340 4791 | #[allow(missing_docs)] // documentation missing in model
|
4792 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3341 4793 | pub fn recursive_list(
|
3342 4794 | mut self,
|
3343 4795 | input: ::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>,
|
3344 4796 | ) -> Self {
|
3345 - | self.recursive_list = Some(input);
|
4797 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
4798 + | self.recursive_list =
|
4799 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
4800 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
4801 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
4802 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3346 4803 | self
|
4804 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3347 4805 | }
|
3348 - | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3349 - | ///
|
4806 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4807 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
3350 4808 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
3351 4809 | ///
|
4810 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3352 4811 | pub fn build(
|
3353 4812 | self,
|
3354 4813 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3355 4814 | {
|
3356 4815 | self.build_enforcing_required_and_enum_traits()
|
3357 4816 | }
|
4817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3358 4818 | fn build_enforcing_required_and_enum_traits(
|
3359 4819 | self,
|
3360 4820 | ) -> Result<crate::input::ConstrainedRecursiveShapesOperationInput, ConstraintViolation>
|
3361 4821 | {
|
3362 - | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4822 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
4823 + | Ok(
|
4824 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4825 + | crate::input::ConstrainedRecursiveShapesOperationInput {
|
4826 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3363 4827 | nested: self.nested,
|
4828 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3364 4829 | recursive_list: self
|
3365 4830 | .recursive_list
|
4831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3366 4832 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3367 - | })
|
4833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
4834 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
4835 + | )
|
4836 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3368 4837 | }
|
4838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3369 4839 | }
|
4840 + |
|
4841 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3370 4842 | }
|
3371 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4843 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3372 4844 | pub(crate) mod constrained_http_payload_bound_shape_operation_input_internal {
|
3373 4845 |
|
4846 + | /* RustType.kt:516 */
|
3374 4847 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3375 - | /// Holds one variant for each of the ways the builder can fail.
|
4848 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
4849 + | /* RustType.kt:516 */
|
3376 4850 | #[non_exhaustive]
|
4851 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3377 4852 | #[allow(clippy::enum_variant_names)]
|
3378 4853 | pub(crate) enum ConstraintViolation {
|
3379 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4854 + | /// /* ServerBuilderConstraintViolations.kt:138 */`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4855 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3380 4856 | MissingHttpPayloadBoundConstrainedShape,
|
3381 - | /// Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4857 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4858 + | /* RustType.kt:516 */
|
3382 4859 | #[doc(hidden)]
|
4860 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3383 4861 | HttpPayloadBoundConstrainedShape(crate::model::con_a_internal::ConstraintViolation),
|
4862 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3384 4863 | }
|
4864 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3385 4865 | impl ::std::fmt::Display for ConstraintViolation {
|
4866 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3386 4867 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4868 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3387 4869 | match self {
|
3388 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3389 - | ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3390 - | }
|
4870 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4871 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::HttpPayloadBoundConstrainedShape(_) => write!(f, "constraint violation occurred building member `http_payload_bound_constrained_shape` when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4872 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
4873 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3391 4874 | }
|
4875 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3392 4876 | }
|
4877 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3393 4878 | impl ::std::error::Error for ConstraintViolation {}
|
4879 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3394 4880 | impl ConstraintViolation {
|
3395 4881 | pub(crate) fn as_validation_exception_field(
|
3396 4882 | self,
|
3397 4883 | path: ::std::string::String,
|
3398 4884 | ) -> crate::model::ValidationExceptionField {
|
3399 4885 | match self {
|
3400 4886 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => crate::model::ValidationExceptionField {
|
3401 4887 | message: format!("Value at '{}/httpPayloadBoundConstrainedShape' failed to satisfy constraint: Member must not be null", path),
|
3402 4888 | path: path + "/httpPayloadBoundConstrainedShape",
|
3403 4889 | },
|
3404 4890 | ConstraintViolation::HttpPayloadBoundConstrainedShape(inner) => inner.as_validation_exception_field(path + "/httpPayloadBoundConstrainedShape"),
|
3405 4891 | }
|
3406 4892 | }
|
3407 4893 | }
|
4894 + | /* ServerBuilderGenerator.kt:234 */
|
3408 4895 | impl ::std::convert::From<ConstraintViolation>
|
3409 4896 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3410 4897 | {
|
3411 4898 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3412 4899 | let first_validation_exception_field =
|
3413 4900 | constraint_violation.as_validation_exception_field("".to_owned());
|
3414 4901 | let validation_exception = crate::error::ValidationException {
|
3415 4902 | message: format!(
|
3416 4903 | "1 validation error detected. {}",
|
3417 4904 | &first_validation_exception_field.message
|
3418 4905 | ),
|
3419 4906 | field_list: Some(vec![first_validation_exception_field]),
|
3420 4907 | };
|
3421 4908 | Self::ConstraintViolation(
|
3422 4909 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3423 4910 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3424 4911 | )
|
3425 4912 | }
|
3426 4913 | }
|
4914 + | /* ServerBuilderGenerator.kt:244 */
|
3427 4915 | impl ::std::convert::From<Builder>
|
3428 4916 | for crate::constrained::MaybeConstrained<
|
3429 4917 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
3430 4918 | >
|
3431 4919 | {
|
3432 4920 | fn from(builder: Builder) -> Self {
|
3433 4921 | Self::Unconstrained(builder)
|
3434 4922 | }
|
3435 4923 | }
|
4924 + | /* ServerBuilderGenerator.kt:446 */
|
3436 4925 | impl ::std::convert::TryFrom<Builder>
|
3437 4926 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
3438 4927 | {
|
3439 4928 | type Error = ConstraintViolation;
|
3440 4929 |
|
3441 4930 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3442 4931 | builder.build()
|
3443 4932 | }
|
3444 4933 | }
|
3445 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4934 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4935 + | /* RustType.kt:516 */
|
3446 4936 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4937 + | /* ServerBuilderGenerator.kt:211 */
|
3447 4938 | pub(crate) struct Builder {
|
4939 + | /* ServerBuilderGenerator.kt:308 */
|
3448 4940 | pub(crate) http_payload_bound_constrained_shape:
|
3449 4941 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
4942 + | /* ServerBuilderGenerator.kt:211 */
|
3450 4943 | }
|
4944 + | /* ServerBuilderGenerator.kt:215 */
|
3451 4945 | impl Builder {
|
4946 + | /* ServerBuilderGenerator.kt:426 */
|
3452 4947 | #[allow(missing_docs)] // documentation missing in model
|
4948 + | /* ServerBuilderGenerator.kt:428 */
|
3453 4949 | pub(crate) fn set_http_payload_bound_constrained_shape(
|
3454 4950 | mut self,
|
3455 4951 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
3456 4952 | ) -> Self {
|
4953 + | /* ServerBuilderGenerator.kt:429 */
|
3457 4954 | self.http_payload_bound_constrained_shape = Some(input.into());
|
3458 4955 | self
|
4956 + | /* ServerBuilderGenerator.kt:428 */
|
3459 4957 | }
|
3460 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3461 - | ///
|
4958 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4959 + | /// /* ServerBuilderGenerator.kt:260 */
|
3462 4960 | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if a [`ConstraintViolation`] occurs.
|
3463 4961 | ///
|
3464 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4962 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
4963 + | /* ServerBuilderGenerator.kt:271 */
|
3465 4964 | pub fn build(
|
3466 4965 | self,
|
3467 4966 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3468 4967 | {
|
3469 4968 | self.build_enforcing_all_constraints()
|
3470 4969 | }
|
4970 + | /* ServerBuilderGenerator.kt:283 */
|
3471 4971 | fn build_enforcing_all_constraints(
|
3472 4972 | self,
|
3473 4973 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3474 4974 | {
|
4975 + | /* ServerBuilderGenerator.kt:287 */
|
3475 4976 | Ok(
|
4977 + | /* ServerBuilderGenerator.kt:542 */
|
3476 4978 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4979 + | /* ServerBuilderGenerator.kt:546 */
|
3477 4980 | http_payload_bound_constrained_shape: self
|
3478 4981 | .http_payload_bound_constrained_shape
|
4982 + | /* ServerBuilderGenerator.kt:602 */
|
3479 4983 | .map(|v| match v {
|
3480 4984 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3481 4985 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3482 4986 | })
|
4987 + | /* ServerBuilderGenerator.kt:614 */
|
3483 4988 | .map(|res| {
|
3484 4989 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
3485 4990 | })
|
3486 4991 | .transpose()?
|
4992 + | /* ServerBuilderGenerator.kt:569 */
|
3487 4993 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3488 - | },
|
4994 + | /* ServerBuilderGenerator.kt:542 */
|
4995 + | }, /* ServerBuilderGenerator.kt:287 */
|
3489 4996 | )
|
4997 + | /* ServerBuilderGenerator.kt:283 */
|
3490 4998 | }
|
4999 + | /* ServerBuilderGenerator.kt:215 */
|
3491 5000 | }
|
5001 + |
|
5002 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3492 5003 | }
|
3493 - | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
5004 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3494 5005 | pub mod constrained_http_payload_bound_shape_operation_input {
|
3495 5006 |
|
5007 + | /* RustType.kt:516 */
|
3496 5008 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3497 - | /// Holds one variant for each of the ways the builder can fail.
|
3498 - |
|
5009 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5010 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3499 5011 | #[allow(clippy::enum_variant_names)]
|
3500 5012 | pub enum ConstraintViolation {
|
3501 - | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
5013 + | /// /* ServerBuilderConstraintViolations.kt:138 */`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
5014 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3502 5015 | MissingHttpPayloadBoundConstrainedShape,
|
5016 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3503 5017 | }
|
5018 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3504 5019 | impl ::std::fmt::Display for ConstraintViolation {
|
5020 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3505 5021 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5022 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3506 5023 | match self {
|
3507 - | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3508 - | }
|
5024 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
5025 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5026 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3509 5027 | }
|
5028 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3510 5029 | }
|
5030 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3511 5031 | impl ::std::error::Error for ConstraintViolation {}
|
5032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
3512 5033 | impl ::std::convert::TryFrom<Builder>
|
3513 5034 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
3514 5035 | {
|
3515 5036 | type Error = ConstraintViolation;
|
3516 5037 |
|
3517 5038 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3518 5039 | builder.build()
|
3519 5040 | }
|
3520 5041 | }
|
3521 - | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
5042 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
5043 + | /* RustType.kt:516 */
|
3522 5044 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3523 5046 | pub struct Builder {
|
5047 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
3524 5048 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
5049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
3525 5050 | }
|
5051 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3526 5052 | impl Builder {
|
5053 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
3527 5054 | #[allow(missing_docs)] // documentation missing in model
|
5055 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3528 5056 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
3529 - | self.http_payload_bound_constrained_shape = Some(input);
|
5057 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
5058 + | self.http_payload_bound_constrained_shape =
|
5059 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
5060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
5061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
5062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
3530 5063 | self
|
5064 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
3531 5065 | }
|
3532 - | /// Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3533 - | ///
|
5066 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
5067 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
3534 5068 | /// The builder fails to construct a [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) if you do not provide a value for all non-`Option`al members.
|
3535 5069 | ///
|
5070 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
3536 5071 | pub fn build(
|
3537 5072 | self,
|
3538 5073 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3539 5074 | {
|
3540 5075 | self.build_enforcing_required_and_enum_traits()
|
3541 5076 | }
|
5077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3542 5078 | fn build_enforcing_required_and_enum_traits(
|
3543 5079 | self,
|
3544 5080 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3545 5081 | {
|
5082 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3546 5083 | Ok(
|
5084 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
3547 5085 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
5086 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
3548 5087 | http_payload_bound_constrained_shape: self
|
3549 5088 | .http_payload_bound_constrained_shape
|
5089 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
3550 5090 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3551 - | },
|
5091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
5092 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
3552 5093 | )
|
5094 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
3553 5095 | }
|
5096 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
3554 5097 | }
|
5098 + |
|
5099 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
3555 5100 | }
|
3556 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5101 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
3557 5102 | pub(crate) mod constrained_http_bound_shapes_operation_input_internal {
|
3558 5103 |
|
5104 + | /* RustType.kt:516 */
|
3559 5105 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3560 - | /// Holds one variant for each of the ways the builder can fail.
|
5106 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
5107 + | /* RustType.kt:516 */
|
3561 5108 | #[non_exhaustive]
|
5109 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3562 5110 | #[allow(clippy::enum_variant_names)]
|
3563 5111 | pub(crate) enum ConstraintViolation {
|
3564 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5112 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5113 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3565 5114 | MissingLengthStringLabel,
|
3566 - | /// Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5115 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5116 + | /* RustType.kt:516 */
|
3567 5117 | #[doc(hidden)]
|
5118 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3568 5119 | LengthStringLabel(crate::model::length_string_internal::ConstraintViolation),
|
3569 - | /// Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5120 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5121 + | /* RustType.kt:516 */
|
3570 5122 | #[doc(hidden)]
|
5123 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3571 5124 | RangeIntegerLabel(crate::model::range_integer_internal::ConstraintViolation),
|
3572 - | /// Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5125 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5126 + | /* RustType.kt:516 */
|
3573 5127 | #[doc(hidden)]
|
5128 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3574 5129 | RangeShortLabel(crate::model::range_short_internal::ConstraintViolation),
|
3575 - | /// Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5130 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5131 + | /* RustType.kt:516 */
|
3576 5132 | #[doc(hidden)]
|
5133 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3577 5134 | RangeLongLabel(crate::model::range_long_internal::ConstraintViolation),
|
3578 - | /// Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5135 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5136 + | /* RustType.kt:516 */
|
3579 5137 | #[doc(hidden)]
|
5138 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3580 5139 | RangeByteLabel(crate::model::range_byte_internal::ConstraintViolation),
|
3581 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5140 + | /// /* ServerBuilderConstraintViolations.kt:138 */`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5141 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3582 5142 | MissingEnumStringLabel,
|
3583 - | /// Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5143 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5144 + | /* RustType.kt:516 */
|
3584 5145 | #[doc(hidden)]
|
5146 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3585 5147 | EnumStringLabel(crate::model::enum_string_internal::ConstraintViolation),
|
3586 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5148 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5149 + | /* ServerBuilderConstraintViolations.kt:143 */
|
3587 5150 | MissingLengthStringHeaderMap,
|
3588 - | /// Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5151 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5152 + | /* RustType.kt:516 */
|
3589 5153 | #[doc(hidden)]
|
5154 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3590 5155 | LengthStringHeaderMap(crate::model::map_of_length_string_internal::ConstraintViolation),
|
3591 - | /// Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5156 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5157 + | /* RustType.kt:516 */
|
3592 5158 | #[doc(hidden)]
|
5159 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3593 5160 | LengthStringHeader(crate::model::length_string_internal::ConstraintViolation),
|
3594 - | /// Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5161 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5162 + | /* RustType.kt:516 */
|
3595 5163 | #[doc(hidden)]
|
5164 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3596 5165 | RangeIntegerHeader(crate::model::range_integer_internal::ConstraintViolation),
|
3597 - | /// Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5166 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5167 + | /* RustType.kt:516 */
|
3598 5168 | #[doc(hidden)]
|
5169 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3599 5170 | RangeShortHeader(crate::model::range_short_internal::ConstraintViolation),
|
3600 - | /// Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5171 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5172 + | /* RustType.kt:516 */
|
3601 5173 | #[doc(hidden)]
|
5174 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3602 5175 | RangeLongHeader(crate::model::range_long_internal::ConstraintViolation),
|
3603 - | /// Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5176 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5177 + | /* RustType.kt:516 */
|
3604 5178 | #[doc(hidden)]
|
5179 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3605 5180 | RangeByteHeader(crate::model::range_byte_internal::ConstraintViolation),
|
3606 - | /// Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5181 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5182 + | /* RustType.kt:516 */
|
3607 5183 | #[doc(hidden)]
|
5184 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3608 5185 | LengthStringSetHeader(crate::model::set_of_length_string_internal::ConstraintViolation),
|
3609 - | /// Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5186 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5187 + | /* RustType.kt:516 */
|
3610 5188 | #[doc(hidden)]
|
5189 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3611 5190 | ListLengthStringHeader(crate::model::list_of_length_string_internal::ConstraintViolation),
|
3612 - | /// Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5191 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5192 + | /* RustType.kt:516 */
|
3613 5193 | #[doc(hidden)]
|
5194 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3614 5195 | LengthListPatternStringHeader(
|
3615 5196 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
3616 5197 | ),
|
3617 - | /// Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5198 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5199 + | /* RustType.kt:516 */
|
3618 5200 | #[doc(hidden)]
|
5201 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3619 5202 | LengthSetPatternStringHeader(
|
3620 5203 | crate::model::length_set_of_pattern_string_internal::ConstraintViolation,
|
3621 5204 | ),
|
3622 - | /// Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5205 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5206 + | /* RustType.kt:516 */
|
3623 5207 | #[doc(hidden)]
|
5208 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3624 5209 | RangeByteSetHeader(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
3625 - | /// Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5210 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5211 + | /* RustType.kt:516 */
|
3626 5212 | #[doc(hidden)]
|
5213 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3627 5214 | RangeShortSetHeader(crate::model::set_of_range_short_internal::ConstraintViolation),
|
3628 - | /// Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5215 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5216 + | /* RustType.kt:516 */
|
3629 5217 | #[doc(hidden)]
|
5218 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3630 5219 | RangeIntegerSetHeader(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
3631 - | /// Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5220 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5221 + | /* RustType.kt:516 */
|
3632 5222 | #[doc(hidden)]
|
5223 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3633 5224 | RangeLongSetHeader(crate::model::set_of_range_long_internal::ConstraintViolation),
|
3634 - | /// Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5225 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5226 + | /* RustType.kt:516 */
|
3635 5227 | #[doc(hidden)]
|
5228 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3636 5229 | RangeByteListHeader(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
3637 - | /// Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5230 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5231 + | /* RustType.kt:516 */
|
3638 5232 | #[doc(hidden)]
|
5233 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3639 5234 | RangeShortListHeader(crate::model::list_of_range_short_internal::ConstraintViolation),
|
3640 - | /// Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5235 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5236 + | /* RustType.kt:516 */
|
3641 5237 | #[doc(hidden)]
|
5238 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3642 5239 | RangeIntegerListHeader(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
3643 - | /// Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5240 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5241 + | /* RustType.kt:516 */
|
3644 5242 | #[doc(hidden)]
|
5243 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3645 5244 | RangeLongListHeader(crate::model::list_of_range_long_internal::ConstraintViolation),
|
3646 - | /// Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5245 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5246 + | /* RustType.kt:516 */
|
3647 5247 | #[doc(hidden)]
|
5248 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3648 5249 | LengthStringQuery(crate::model::length_string_internal::ConstraintViolation),
|
3649 - | /// Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5250 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5251 + | /* RustType.kt:516 */
|
3650 5252 | #[doc(hidden)]
|
5253 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3651 5254 | RangeByteQuery(crate::model::range_byte_internal::ConstraintViolation),
|
3652 - | /// Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5255 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5256 + | /* RustType.kt:516 */
|
3653 5257 | #[doc(hidden)]
|
5258 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3654 5259 | RangeShortQuery(crate::model::range_short_internal::ConstraintViolation),
|
3655 - | /// Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5260 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5261 + | /* RustType.kt:516 */
|
3656 5262 | #[doc(hidden)]
|
5263 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3657 5264 | RangeIntegerQuery(crate::model::range_integer_internal::ConstraintViolation),
|
3658 - | /// Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5265 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5266 + | /* RustType.kt:516 */
|
3659 5267 | #[doc(hidden)]
|
5268 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3660 5269 | RangeLongQuery(crate::model::range_long_internal::ConstraintViolation),
|
3661 - | /// Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5270 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5271 + | /* RustType.kt:516 */
|
3662 5272 | #[doc(hidden)]
|
5273 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3663 5274 | EnumStringQuery(crate::model::enum_string_internal::ConstraintViolation),
|
3664 - | /// Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5275 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5276 + | /* RustType.kt:516 */
|
3665 5277 | #[doc(hidden)]
|
5278 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3666 5279 | LengthStringListQuery(crate::model::list_of_length_string_internal::ConstraintViolation),
|
3667 - | /// Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5280 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5281 + | /* RustType.kt:516 */
|
3668 5282 | #[doc(hidden)]
|
5283 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3669 5284 | LengthListPatternStringQuery(
|
3670 5285 | crate::model::length_list_of_pattern_string_internal::ConstraintViolation,
|
3671 5286 | ),
|
3672 - | /// Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5287 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5288 + | /* RustType.kt:516 */
|
3673 5289 | #[doc(hidden)]
|
5290 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3674 5291 | LengthStringSetQuery(crate::model::set_of_length_string_internal::ConstraintViolation),
|
3675 - | /// Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5292 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5293 + | /* RustType.kt:516 */
|
3676 5294 | #[doc(hidden)]
|
5295 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3677 5296 | RangeByteListQuery(crate::model::list_of_range_byte_internal::ConstraintViolation),
|
3678 - | /// Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5297 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5298 + | /* RustType.kt:516 */
|
3679 5299 | #[doc(hidden)]
|
5300 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3680 5301 | RangeShortListQuery(crate::model::list_of_range_short_internal::ConstraintViolation),
|
3681 - | /// Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5302 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5303 + | /* RustType.kt:516 */
|
3682 5304 | #[doc(hidden)]
|
5305 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3683 5306 | RangeIntegerListQuery(crate::model::list_of_range_integer_internal::ConstraintViolation),
|
3684 - | /// Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5307 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5308 + | /* RustType.kt:516 */
|
3685 5309 | #[doc(hidden)]
|
5310 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3686 5311 | RangeLongListQuery(crate::model::list_of_range_long_internal::ConstraintViolation),
|
3687 - | /// Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5312 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5313 + | /* RustType.kt:516 */
|
3688 5314 | #[doc(hidden)]
|
5315 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3689 5316 | RangeByteSetQuery(crate::model::set_of_range_byte_internal::ConstraintViolation),
|
3690 - | /// Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5317 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5318 + | /* RustType.kt:516 */
|
3691 5319 | #[doc(hidden)]
|
5320 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3692 5321 | RangeShortSetQuery(crate::model::set_of_range_short_internal::ConstraintViolation),
|
3693 - | /// Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5322 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5323 + | /* RustType.kt:516 */
|
3694 5324 | #[doc(hidden)]
|
5325 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3695 5326 | RangeIntegerSetQuery(crate::model::set_of_range_integer_internal::ConstraintViolation),
|
3696 - | /// Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5327 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5328 + | /* RustType.kt:516 */
|
3697 5329 | #[doc(hidden)]
|
5330 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3698 5331 | RangeLongSetQuery(crate::model::set_of_range_long_internal::ConstraintViolation),
|
3699 - | /// Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5332 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`.
|
5333 + | /* RustType.kt:516 */
|
3700 5334 | #[doc(hidden)]
|
5335 + | /* ServerBuilderConstraintViolations.kt:164 */
|
3701 5336 | EnumStringListQuery(crate::model::list_of_enum_string_internal::ConstraintViolation),
|
5337 + | /* ServerBuilderConstraintViolations.kt:75 */
|
3702 5338 | }
|
5339 + | /* ServerBuilderConstraintViolations.kt:117 */
|
3703 5340 | impl ::std::fmt::Display for ConstraintViolation {
|
5341 + | /* ServerBuilderConstraintViolations.kt:118 */
|
3704 5342 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5343 + | /* ServerBuilderConstraintViolations.kt:119 */
|
3705 5344 | match self {
|
3706 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3707 - | ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3708 - | ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3709 - | ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3710 - | ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3711 - | ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3712 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3713 - | ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3714 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3715 - | ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3716 - | ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3717 - | ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3718 - | ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3719 - | ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3720 - | ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3721 - | ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3722 - | ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3723 - | ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3724 - | ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3725 - | ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3726 - | ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3727 - | ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3728 - | ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3729 - | ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3730 - | ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3731 - | ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3732 - | ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3733 - | ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3734 - | ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3735 - | ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3736 - | ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3737 - | ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3738 - | ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3739 - | ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3740 - | ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3741 - | ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3742 - | ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3743 - | ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3744 - | ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3745 - | ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3746 - | ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3747 - | ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3748 - | ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3749 - | ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3750 - | ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
3751 - | }
|
3752 - | }
|
3753 - | }
|
5345 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5346 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringLabel(_) => write!(f, "constraint violation occurred building member `length_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5347 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerLabel(_) => write!(f, "constraint violation occurred building member `range_integer_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5348 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortLabel(_) => write!(f, "constraint violation occurred building member `range_short_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5349 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongLabel(_) => write!(f, "constraint violation occurred building member `range_long_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5350 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteLabel(_) => write!(f, "constraint violation occurred building member `range_byte_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5351 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5352 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringLabel(_) => write!(f, "constraint violation occurred building member `enum_string_label` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5353 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5354 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeaderMap(_) => write!(f, "constraint violation occurred building member `length_string_header_map` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5355 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringHeader(_) => write!(f, "constraint violation occurred building member `length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5356 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerHeader(_) => write!(f, "constraint violation occurred building member `range_integer_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5357 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortHeader(_) => write!(f, "constraint violation occurred building member `range_short_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5358 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongHeader(_) => write!(f, "constraint violation occurred building member `range_long_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5359 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteHeader(_) => write!(f, "constraint violation occurred building member `range_byte_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5360 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetHeader(_) => write!(f, "constraint violation occurred building member `length_string_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5361 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ListLengthStringHeader(_) => write!(f, "constraint violation occurred building member `list_length_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5362 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5363 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthSetPatternStringHeader(_) => write!(f, "constraint violation occurred building member `length_set_pattern_string_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5364 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetHeader(_) => write!(f, "constraint violation occurred building member `range_byte_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5365 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetHeader(_) => write!(f, "constraint violation occurred building member `range_short_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5366 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetHeader(_) => write!(f, "constraint violation occurred building member `range_integer_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5367 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetHeader(_) => write!(f, "constraint violation occurred building member `range_long_set_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5368 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListHeader(_) => write!(f, "constraint violation occurred building member `range_byte_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5369 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListHeader(_) => write!(f, "constraint violation occurred building member `range_short_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5370 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListHeader(_) => write!(f, "constraint violation occurred building member `range_integer_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5371 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListHeader(_) => write!(f, "constraint violation occurred building member `range_long_list_header` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5372 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringQuery(_) => write!(f, "constraint violation occurred building member `length_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5373 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteQuery(_) => write!(f, "constraint violation occurred building member `range_byte_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5374 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortQuery(_) => write!(f, "constraint violation occurred building member `range_short_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5375 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerQuery(_) => write!(f, "constraint violation occurred building member `range_integer_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5376 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongQuery(_) => write!(f, "constraint violation occurred building member `range_long_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5377 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringQuery(_) => write!(f, "constraint violation occurred building member `enum_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5378 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringListQuery(_) => write!(f, "constraint violation occurred building member `length_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5379 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthListPatternStringQuery(_) => write!(f, "constraint violation occurred building member `length_list_pattern_string_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5380 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::LengthStringSetQuery(_) => write!(f, "constraint violation occurred building member `length_string_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5381 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteListQuery(_) => write!(f, "constraint violation occurred building member `range_byte_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5382 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortListQuery(_) => write!(f, "constraint violation occurred building member `range_short_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5383 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerListQuery(_) => write!(f, "constraint violation occurred building member `range_integer_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5384 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongListQuery(_) => write!(f, "constraint violation occurred building member `range_long_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5385 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeByteSetQuery(_) => write!(f, "constraint violation occurred building member `range_byte_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5386 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeShortSetQuery(_) => write!(f, "constraint violation occurred building member `range_short_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5387 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeIntegerSetQuery(_) => write!(f, "constraint violation occurred building member `range_integer_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5388 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::RangeLongSetQuery(_) => write!(f, "constraint violation occurred building member `range_long_set_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5389 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::EnumStringListQuery(_) => write!(f, "constraint violation occurred building member `enum_string_list_query` when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5390 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
5391 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5392 + | }
|
5393 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5394 + | }
|
5395 + | /* ServerBuilderConstraintViolations.kt:84 */
|
3754 5396 | impl ::std::error::Error for ConstraintViolation {}
|
5397 + | /* ServerBuilderConstraintViolations.kt:171 */
|
3755 5398 | impl ConstraintViolation {
|
3756 5399 | pub(crate) fn as_validation_exception_field(
|
3757 5400 | self,
|
3758 5401 | path: ::std::string::String,
|
3759 5402 | ) -> crate::model::ValidationExceptionField {
|
3760 5403 | match self {
|
3761 5404 | ConstraintViolation::MissingLengthStringLabel => crate::model::ValidationExceptionField {
|
3762 5405 | message: format!("Value at '{}/lengthStringLabel' failed to satisfy constraint: Member must not be null", path),
|
3763 5406 | path: path + "/lengthStringLabel",
|
3764 5407 | },
|
3808 5451 | ConstraintViolation::RangeIntegerListQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerListQuery"),
|
3809 5452 | ConstraintViolation::RangeLongListQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongListQuery"),
|
3810 5453 | ConstraintViolation::RangeByteSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeByteSetQuery"),
|
3811 5454 | ConstraintViolation::RangeShortSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeShortSetQuery"),
|
3812 5455 | ConstraintViolation::RangeIntegerSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeIntegerSetQuery"),
|
3813 5456 | ConstraintViolation::RangeLongSetQuery(inner) => inner.as_validation_exception_field(path + "/rangeLongSetQuery"),
|
3814 5457 | ConstraintViolation::EnumStringListQuery(inner) => inner.as_validation_exception_field(path + "/enumStringListQuery"),
|
3815 5458 | }
|
3816 5459 | }
|
3817 5460 | }
|
5461 + | /* ServerBuilderGenerator.kt:234 */
|
3818 5462 | impl ::std::convert::From<ConstraintViolation>
|
3819 5463 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
3820 5464 | {
|
3821 5465 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
3822 5466 | let first_validation_exception_field =
|
3823 5467 | constraint_violation.as_validation_exception_field("".to_owned());
|
3824 5468 | let validation_exception = crate::error::ValidationException {
|
3825 5469 | message: format!(
|
3826 5470 | "1 validation error detected. {}",
|
3827 5471 | &first_validation_exception_field.message
|
3828 5472 | ),
|
3829 5473 | field_list: Some(vec![first_validation_exception_field]),
|
3830 5474 | };
|
3831 5475 | Self::ConstraintViolation(
|
3832 5476 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
3833 5477 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
3834 5478 | )
|
3835 5479 | }
|
3836 5480 | }
|
5481 + | /* ServerBuilderGenerator.kt:244 */
|
3837 5482 | impl ::std::convert::From<Builder>
|
3838 5483 | for crate::constrained::MaybeConstrained<
|
3839 5484 | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
3840 5485 | >
|
3841 5486 | {
|
3842 5487 | fn from(builder: Builder) -> Self {
|
3843 5488 | Self::Unconstrained(builder)
|
3844 5489 | }
|
3845 5490 | }
|
5491 + | /* ServerBuilderGenerator.kt:446 */
|
3846 5492 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
3847 5493 | type Error = ConstraintViolation;
|
3848 5494 |
|
3849 5495 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3850 5496 | builder.build()
|
3851 5497 | }
|
3852 5498 | }
|
3853 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5499 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5500 + | /* RustType.kt:516 */
|
3854 5501 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5502 + | /* ServerBuilderGenerator.kt:211 */
|
3855 5503 | pub(crate) struct Builder {
|
3856 - | pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3857 - | pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3858 - | pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3859 - | pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3860 - | pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3861 - | pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3862 - | pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3863 - | pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3864 - | pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3865 - | pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3866 - | pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3867 - | pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3868 - | pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3869 - | pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3870 - | pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3871 - | pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
3872 - | pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3873 - | pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3874 - | pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3875 - | pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3876 - | pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3877 - | pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3878 - | pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3879 - | pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3880 - | pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
3881 - | pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3882 - | pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
3883 - | pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
3884 - | pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
3885 - | pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
3886 - | pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
3887 - | pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
3888 - | pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
3889 - | pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
3890 - | pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
3891 - | pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
3892 - | pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
3893 - | pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
3894 - | pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
3895 - | pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
3896 - | pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
3897 - | pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
3898 - | }
|
5504 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
5505 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
5506 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
5507 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
5508 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
5509 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_label: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
5510 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header_map: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
5511 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
5512 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
5513 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
5514 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
5515 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
5516 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
5517 + | /* ServerBuilderGenerator.kt:308 */pub(crate) list_length_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
5518 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
5519 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_set_pattern_string_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>>,
|
5520 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
5521 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
5522 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
5523 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
5524 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
5525 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
5526 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
5527 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_header: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
5528 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthString>>,
|
5529 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
5530 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeShort>>,
|
5531 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeInteger>>,
|
5532 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
5533 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::EnumString>>,
|
5534 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>,
|
5535 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_list_pattern_string_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>>,
|
5536 + | /* ServerBuilderGenerator.kt:308 */pub(crate) length_string_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>>,
|
5537 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>,
|
5538 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>,
|
5539 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>,
|
5540 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>,
|
5541 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_byte_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>>,
|
5542 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_short_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>>,
|
5543 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_integer_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>>,
|
5544 + | /* ServerBuilderGenerator.kt:308 */pub(crate) range_long_set_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>>,
|
5545 + | /* ServerBuilderGenerator.kt:308 */pub(crate) enum_string_list_query: ::std::option::Option<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>,
|
5546 + | /* ServerBuilderGenerator.kt:211 */}
|
5547 + | /* ServerBuilderGenerator.kt:215 */
|
3899 5548 | impl Builder {
|
5549 + | /* ServerBuilderGenerator.kt:426 */
|
3900 5550 | #[allow(missing_docs)] // documentation missing in model
|
5551 + | /* ServerBuilderGenerator.kt:428 */
|
3901 5552 | pub(crate) fn set_length_string_label(
|
3902 5553 | mut self,
|
3903 5554 | input: impl ::std::convert::Into<
|
3904 5555 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3905 5556 | >,
|
3906 5557 | ) -> Self {
|
5558 + | /* ServerBuilderGenerator.kt:429 */
|
3907 5559 | self.length_string_label = Some(input.into());
|
3908 5560 | self
|
5561 + | /* ServerBuilderGenerator.kt:428 */
|
3909 5562 | }
|
5563 + | /* ServerBuilderGenerator.kt:426 */
|
3910 5564 | #[allow(missing_docs)] // documentation missing in model
|
5565 + | /* ServerBuilderGenerator.kt:428 */
|
3911 5566 | pub(crate) fn set_range_integer_label(
|
3912 5567 | mut self,
|
3913 5568 | input: impl ::std::convert::Into<
|
3914 5569 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3915 5570 | >,
|
3916 5571 | ) -> Self {
|
5572 + | /* ServerBuilderGenerator.kt:429 */
|
3917 5573 | self.range_integer_label = Some(input.into());
|
3918 5574 | self
|
5575 + | /* ServerBuilderGenerator.kt:428 */
|
3919 5576 | }
|
5577 + | /* ServerBuilderGenerator.kt:426 */
|
3920 5578 | #[allow(missing_docs)] // documentation missing in model
|
5579 + | /* ServerBuilderGenerator.kt:428 */
|
3921 5580 | pub(crate) fn set_range_short_label(
|
3922 5581 | mut self,
|
3923 5582 | input: impl ::std::convert::Into<
|
3924 5583 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3925 5584 | >,
|
3926 5585 | ) -> Self {
|
5586 + | /* ServerBuilderGenerator.kt:429 */
|
3927 5587 | self.range_short_label = Some(input.into());
|
3928 5588 | self
|
5589 + | /* ServerBuilderGenerator.kt:428 */
|
3929 5590 | }
|
5591 + | /* ServerBuilderGenerator.kt:426 */
|
3930 5592 | #[allow(missing_docs)] // documentation missing in model
|
5593 + | /* ServerBuilderGenerator.kt:428 */
|
3931 5594 | pub(crate) fn set_range_long_label(
|
3932 5595 | mut self,
|
3933 5596 | input: impl ::std::convert::Into<
|
3934 5597 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
3935 5598 | >,
|
3936 5599 | ) -> Self {
|
5600 + | /* ServerBuilderGenerator.kt:429 */
|
3937 5601 | self.range_long_label = Some(input.into());
|
3938 5602 | self
|
5603 + | /* ServerBuilderGenerator.kt:428 */
|
3939 5604 | }
|
5605 + | /* ServerBuilderGenerator.kt:426 */
|
3940 5606 | #[allow(missing_docs)] // documentation missing in model
|
5607 + | /* ServerBuilderGenerator.kt:428 */
|
3941 5608 | pub(crate) fn set_range_byte_label(
|
3942 5609 | mut self,
|
3943 5610 | input: impl ::std::convert::Into<
|
3944 5611 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
3945 5612 | >,
|
3946 5613 | ) -> Self {
|
5614 + | /* ServerBuilderGenerator.kt:429 */
|
3947 5615 | self.range_byte_label = Some(input.into());
|
3948 5616 | self
|
5617 + | /* ServerBuilderGenerator.kt:428 */
|
3949 5618 | }
|
5619 + | /* ServerBuilderGenerator.kt:426 */
|
3950 5620 | #[allow(missing_docs)] // documentation missing in model
|
5621 + | /* ServerBuilderGenerator.kt:428 */
|
3951 5622 | pub(crate) fn set_enum_string_label(
|
3952 5623 | mut self,
|
3953 5624 | input: impl ::std::convert::Into<
|
3954 5625 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
3955 5626 | >,
|
3956 5627 | ) -> Self {
|
5628 + | /* ServerBuilderGenerator.kt:429 */
|
3957 5629 | self.enum_string_label = Some(input.into());
|
3958 5630 | self
|
5631 + | /* ServerBuilderGenerator.kt:428 */
|
3959 5632 | }
|
5633 + | /* ServerBuilderGenerator.kt:426 */
|
3960 5634 | #[allow(missing_docs)] // documentation missing in model
|
5635 + | /* ServerBuilderGenerator.kt:428 */
|
3961 5636 | pub(crate) fn set_length_string_header_map(
|
3962 5637 | mut self,
|
3963 5638 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained>>,
|
3964 5639 | ) -> Self {
|
5640 + | /* ServerBuilderGenerator.kt:429 */
|
3965 5641 | self.length_string_header_map = Some(input.into());
|
3966 5642 | self
|
5643 + | /* ServerBuilderGenerator.kt:428 */
|
3967 5644 | }
|
5645 + | /* ServerBuilderGenerator.kt:426 */
|
3968 5646 | #[allow(missing_docs)] // documentation missing in model
|
5647 + | /* ServerBuilderGenerator.kt:428 */
|
3969 5648 | pub(crate) fn set_length_string_header(
|
3970 5649 | mut self,
|
3971 5650 | input: Option<
|
3972 5651 | impl ::std::convert::Into<
|
3973 5652 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
3974 5653 | >,
|
3975 5654 | >,
|
3976 5655 | ) -> Self {
|
5656 + | /* ServerBuilderGenerator.kt:429 */
|
3977 5657 | self.length_string_header = input.map(|v| v.into());
|
3978 5658 | self
|
5659 + | /* ServerBuilderGenerator.kt:428 */
|
3979 5660 | }
|
5661 + | /* ServerBuilderGenerator.kt:426 */
|
3980 5662 | #[allow(missing_docs)] // documentation missing in model
|
5663 + | /* ServerBuilderGenerator.kt:428 */
|
3981 5664 | pub(crate) fn set_range_integer_header(
|
3982 5665 | mut self,
|
3983 5666 | input: impl ::std::convert::Into<
|
3984 5667 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
3985 5668 | >,
|
3986 5669 | ) -> Self {
|
5670 + | /* ServerBuilderGenerator.kt:429 */
|
3987 5671 | self.range_integer_header = Some(input.into());
|
3988 5672 | self
|
5673 + | /* ServerBuilderGenerator.kt:428 */
|
3989 5674 | }
|
5675 + | /* ServerBuilderGenerator.kt:426 */
|
3990 5676 | #[allow(missing_docs)] // documentation missing in model
|
5677 + | /* ServerBuilderGenerator.kt:428 */
|
3991 5678 | pub(crate) fn set_range_short_header(
|
3992 5679 | mut self,
|
3993 5680 | input: impl ::std::convert::Into<
|
3994 5681 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3995 5682 | >,
|
3996 5683 | ) -> Self {
|
5684 + | /* ServerBuilderGenerator.kt:429 */
|
3997 5685 | self.range_short_header = Some(input.into());
|
3998 5686 | self
|
5687 + | /* ServerBuilderGenerator.kt:428 */
|
3999 5688 | }
|
5689 + | /* ServerBuilderGenerator.kt:426 */
|
4000 5690 | #[allow(missing_docs)] // documentation missing in model
|
5691 + | /* ServerBuilderGenerator.kt:428 */
|
4001 5692 | pub(crate) fn set_range_long_header(
|
4002 5693 | mut self,
|
4003 5694 | input: impl ::std::convert::Into<
|
4004 5695 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4005 5696 | >,
|
4006 5697 | ) -> Self {
|
5698 + | /* ServerBuilderGenerator.kt:429 */
|
4007 5699 | self.range_long_header = Some(input.into());
|
4008 5700 | self
|
5701 + | /* ServerBuilderGenerator.kt:428 */
|
4009 5702 | }
|
5703 + | /* ServerBuilderGenerator.kt:426 */
|
4010 5704 | #[allow(missing_docs)] // documentation missing in model
|
5705 + | /* ServerBuilderGenerator.kt:428 */
|
4011 5706 | pub(crate) fn set_range_byte_header(
|
4012 5707 | mut self,
|
4013 5708 | input: impl ::std::convert::Into<
|
4014 5709 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4015 5710 | >,
|
4016 5711 | ) -> Self {
|
5712 + | /* ServerBuilderGenerator.kt:429 */
|
4017 5713 | self.range_byte_header = Some(input.into());
|
4018 5714 | self
|
5715 + | /* ServerBuilderGenerator.kt:428 */
|
4019 5716 | }
|
5717 + | /* ServerBuilderGenerator.kt:426 */
|
4020 5718 | #[allow(missing_docs)] // documentation missing in model
|
5719 + | /* ServerBuilderGenerator.kt:428 */
|
4021 5720 | pub(crate) fn set_length_string_set_header(
|
4022 5721 | mut self,
|
4023 5722 | input: Option<
|
4024 5723 | impl ::std::convert::Into<
|
4025 5724 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
4026 5725 | >,
|
4027 5726 | >,
|
4028 5727 | ) -> Self {
|
5728 + | /* ServerBuilderGenerator.kt:429 */
|
4029 5729 | self.length_string_set_header = input.map(|v| v.into());
|
4030 5730 | self
|
5731 + | /* ServerBuilderGenerator.kt:428 */
|
4031 5732 | }
|
5733 + | /* ServerBuilderGenerator.kt:426 */
|
4032 5734 | #[allow(missing_docs)] // documentation missing in model
|
5735 + | /* ServerBuilderGenerator.kt:428 */
|
4033 5736 | pub(crate) fn set_list_length_string_header(
|
4034 5737 | mut self,
|
4035 5738 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
4036 5739 | ) -> Self {
|
5740 + | /* ServerBuilderGenerator.kt:429 */
|
4037 5741 | self.list_length_string_header = input.map(|v| v.into());
|
4038 5742 | self
|
5743 + | /* ServerBuilderGenerator.kt:428 */
|
4039 5744 | }
|
5745 + | /* ServerBuilderGenerator.kt:426 */
|
4040 5746 | #[allow(missing_docs)] // documentation missing in model
|
5747 + | /* ServerBuilderGenerator.kt:428 */
|
4041 5748 | pub(crate) fn set_length_list_pattern_string_header(
|
4042 5749 | mut self,
|
4043 5750 | input: Option<
|
4044 5751 | impl ::std::convert::Into<
|
4045 5752 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
4046 5753 | >,
|
4047 5754 | >,
|
4048 5755 | ) -> Self {
|
5756 + | /* ServerBuilderGenerator.kt:429 */
|
4049 5757 | self.length_list_pattern_string_header = input.map(|v| v.into());
|
4050 5758 | self
|
5759 + | /* ServerBuilderGenerator.kt:428 */
|
4051 5760 | }
|
5761 + | /* ServerBuilderGenerator.kt:426 */
|
4052 5762 | #[allow(missing_docs)] // documentation missing in model
|
5763 + | /* ServerBuilderGenerator.kt:428 */
|
4053 5764 | pub(crate) fn set_length_set_pattern_string_header(
|
4054 5765 | mut self,
|
4055 5766 | input: Option<
|
4056 5767 | impl ::std::convert::Into<
|
4057 5768 | crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>,
|
4058 5769 | >,
|
4059 5770 | >,
|
4060 5771 | ) -> Self {
|
5772 + | /* ServerBuilderGenerator.kt:429 */
|
4061 5773 | self.length_set_pattern_string_header = input.map(|v| v.into());
|
4062 5774 | self
|
5775 + | /* ServerBuilderGenerator.kt:428 */
|
4063 5776 | }
|
5777 + | /* ServerBuilderGenerator.kt:426 */
|
4064 5778 | #[allow(missing_docs)] // documentation missing in model
|
5779 + | /* ServerBuilderGenerator.kt:428 */
|
4065 5780 | pub(crate) fn set_range_byte_set_header(
|
4066 5781 | mut self,
|
4067 5782 | input: Option<
|
4068 5783 | impl ::std::convert::Into<
|
4069 5784 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
4070 5785 | >,
|
4071 5786 | >,
|
4072 5787 | ) -> Self {
|
5788 + | /* ServerBuilderGenerator.kt:429 */
|
4073 5789 | self.range_byte_set_header = input.map(|v| v.into());
|
4074 5790 | self
|
5791 + | /* ServerBuilderGenerator.kt:428 */
|
4075 5792 | }
|
5793 + | /* ServerBuilderGenerator.kt:426 */
|
4076 5794 | #[allow(missing_docs)] // documentation missing in model
|
5795 + | /* ServerBuilderGenerator.kt:428 */
|
4077 5796 | pub(crate) fn set_range_short_set_header(
|
4078 5797 | mut self,
|
4079 5798 | input: Option<
|
4080 5799 | impl ::std::convert::Into<
|
4081 5800 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
4082 5801 | >,
|
4083 5802 | >,
|
4084 5803 | ) -> Self {
|
5804 + | /* ServerBuilderGenerator.kt:429 */
|
4085 5805 | self.range_short_set_header = input.map(|v| v.into());
|
4086 5806 | self
|
5807 + | /* ServerBuilderGenerator.kt:428 */
|
4087 5808 | }
|
5809 + | /* ServerBuilderGenerator.kt:426 */
|
4088 5810 | #[allow(missing_docs)] // documentation missing in model
|
5811 + | /* ServerBuilderGenerator.kt:428 */
|
4089 5812 | pub(crate) fn set_range_integer_set_header(
|
4090 5813 | mut self,
|
4091 5814 | input: Option<
|
4092 5815 | impl ::std::convert::Into<
|
4093 5816 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
4094 5817 | >,
|
4095 5818 | >,
|
4096 5819 | ) -> Self {
|
5820 + | /* ServerBuilderGenerator.kt:429 */
|
4097 5821 | self.range_integer_set_header = input.map(|v| v.into());
|
4098 5822 | self
|
5823 + | /* ServerBuilderGenerator.kt:428 */
|
4099 5824 | }
|
5825 + | /* ServerBuilderGenerator.kt:426 */
|
4100 5826 | #[allow(missing_docs)] // documentation missing in model
|
5827 + | /* ServerBuilderGenerator.kt:428 */
|
4101 5828 | pub(crate) fn set_range_long_set_header(
|
4102 5829 | mut self,
|
4103 5830 | input: Option<
|
4104 5831 | impl ::std::convert::Into<
|
4105 5832 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
4106 5833 | >,
|
4107 5834 | >,
|
4108 5835 | ) -> Self {
|
5836 + | /* ServerBuilderGenerator.kt:429 */
|
4109 5837 | self.range_long_set_header = input.map(|v| v.into());
|
4110 5838 | self
|
5839 + | /* ServerBuilderGenerator.kt:428 */
|
4111 5840 | }
|
5841 + | /* ServerBuilderGenerator.kt:426 */
|
4112 5842 | #[allow(missing_docs)] // documentation missing in model
|
5843 + | /* ServerBuilderGenerator.kt:428 */
|
4113 5844 | pub(crate) fn set_range_byte_list_header(
|
4114 5845 | mut self,
|
4115 5846 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
4116 5847 | ) -> Self {
|
5848 + | /* ServerBuilderGenerator.kt:429 */
|
4117 5849 | self.range_byte_list_header = input.map(|v| v.into());
|
4118 5850 | self
|
5851 + | /* ServerBuilderGenerator.kt:428 */
|
4119 5852 | }
|
5853 + | /* ServerBuilderGenerator.kt:426 */
|
4120 5854 | #[allow(missing_docs)] // documentation missing in model
|
5855 + | /* ServerBuilderGenerator.kt:428 */
|
4121 5856 | pub(crate) fn set_range_short_list_header(
|
4122 5857 | mut self,
|
4123 5858 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
4124 5859 | ) -> Self {
|
5860 + | /* ServerBuilderGenerator.kt:429 */
|
4125 5861 | self.range_short_list_header = input.map(|v| v.into());
|
4126 5862 | self
|
5863 + | /* ServerBuilderGenerator.kt:428 */
|
4127 5864 | }
|
5865 + | /* ServerBuilderGenerator.kt:426 */
|
4128 5866 | #[allow(missing_docs)] // documentation missing in model
|
5867 + | /* ServerBuilderGenerator.kt:428 */
|
4129 5868 | pub(crate) fn set_range_integer_list_header(
|
4130 5869 | mut self,
|
4131 5870 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4132 5871 | ) -> Self {
|
5872 + | /* ServerBuilderGenerator.kt:429 */
|
4133 5873 | self.range_integer_list_header = input.map(|v| v.into());
|
4134 5874 | self
|
5875 + | /* ServerBuilderGenerator.kt:428 */
|
4135 5876 | }
|
5877 + | /* ServerBuilderGenerator.kt:426 */
|
4136 5878 | #[allow(missing_docs)] // documentation missing in model
|
5879 + | /* ServerBuilderGenerator.kt:428 */
|
4137 5880 | pub(crate) fn set_range_long_list_header(
|
4138 5881 | mut self,
|
4139 5882 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
4140 5883 | ) -> Self {
|
5884 + | /* ServerBuilderGenerator.kt:429 */
|
4141 5885 | self.range_long_list_header = input.map(|v| v.into());
|
4142 5886 | self
|
5887 + | /* ServerBuilderGenerator.kt:428 */
|
4143 5888 | }
|
5889 + | /* ServerBuilderGenerator.kt:426 */
|
4144 5890 | #[allow(missing_docs)] // documentation missing in model
|
5891 + | /* ServerBuilderGenerator.kt:428 */
|
4145 5892 | pub(crate) fn set_length_string_query(
|
4146 5893 | mut self,
|
4147 5894 | input: Option<
|
4148 5895 | impl ::std::convert::Into<
|
4149 5896 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
4150 5897 | >,
|
4151 5898 | >,
|
4152 5899 | ) -> Self {
|
5900 + | /* ServerBuilderGenerator.kt:429 */
|
4153 5901 | self.length_string_query = input.map(|v| v.into());
|
4154 5902 | self
|
5903 + | /* ServerBuilderGenerator.kt:428 */
|
4155 5904 | }
|
5905 + | /* ServerBuilderGenerator.kt:426 */
|
4156 5906 | #[allow(missing_docs)] // documentation missing in model
|
5907 + | /* ServerBuilderGenerator.kt:428 */
|
4157 5908 | pub(crate) fn set_range_byte_query(
|
4158 5909 | mut self,
|
4159 5910 | input: impl ::std::convert::Into<
|
4160 5911 | crate::constrained::MaybeConstrained<crate::model::RangeByte>,
|
4161 5912 | >,
|
4162 5913 | ) -> Self {
|
5914 + | /* ServerBuilderGenerator.kt:429 */
|
4163 5915 | self.range_byte_query = Some(input.into());
|
4164 5916 | self
|
5917 + | /* ServerBuilderGenerator.kt:428 */
|
4165 5918 | }
|
5919 + | /* ServerBuilderGenerator.kt:426 */
|
4166 5920 | #[allow(missing_docs)] // documentation missing in model
|
5921 + | /* ServerBuilderGenerator.kt:428 */
|
4167 5922 | pub(crate) fn set_range_short_query(
|
4168 5923 | mut self,
|
4169 5924 | input: impl ::std::convert::Into<
|
4170 5925 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
4171 5926 | >,
|
4172 5927 | ) -> Self {
|
5928 + | /* ServerBuilderGenerator.kt:429 */
|
4173 5929 | self.range_short_query = Some(input.into());
|
4174 5930 | self
|
5931 + | /* ServerBuilderGenerator.kt:428 */
|
4175 5932 | }
|
5933 + | /* ServerBuilderGenerator.kt:426 */
|
4176 5934 | #[allow(missing_docs)] // documentation missing in model
|
5935 + | /* ServerBuilderGenerator.kt:428 */
|
4177 5936 | pub(crate) fn set_range_integer_query(
|
4178 5937 | mut self,
|
4179 5938 | input: impl ::std::convert::Into<
|
4180 5939 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4181 5940 | >,
|
4182 5941 | ) -> Self {
|
5942 + | /* ServerBuilderGenerator.kt:429 */
|
4183 5943 | self.range_integer_query = Some(input.into());
|
4184 5944 | self
|
5945 + | /* ServerBuilderGenerator.kt:428 */
|
4185 5946 | }
|
5947 + | /* ServerBuilderGenerator.kt:426 */
|
4186 5948 | #[allow(missing_docs)] // documentation missing in model
|
5949 + | /* ServerBuilderGenerator.kt:428 */
|
4187 5950 | pub(crate) fn set_range_long_query(
|
4188 5951 | mut self,
|
4189 5952 | input: impl ::std::convert::Into<
|
4190 5953 | crate::constrained::MaybeConstrained<crate::model::RangeLong>,
|
4191 5954 | >,
|
4192 5955 | ) -> Self {
|
5956 + | /* ServerBuilderGenerator.kt:429 */
|
4193 5957 | self.range_long_query = Some(input.into());
|
4194 5958 | self
|
5959 + | /* ServerBuilderGenerator.kt:428 */
|
4195 5960 | }
|
5961 + | /* ServerBuilderGenerator.kt:426 */
|
4196 5962 | #[allow(missing_docs)] // documentation missing in model
|
5963 + | /* ServerBuilderGenerator.kt:428 */
|
4197 5964 | pub(crate) fn set_enum_string_query(
|
4198 5965 | mut self,
|
4199 5966 | input: Option<
|
4200 5967 | impl ::std::convert::Into<
|
4201 5968 | crate::constrained::MaybeConstrained<crate::model::EnumString>,
|
4202 5969 | >,
|
4203 5970 | >,
|
4204 5971 | ) -> Self {
|
5972 + | /* ServerBuilderGenerator.kt:429 */
|
4205 5973 | self.enum_string_query = input.map(|v| v.into());
|
4206 5974 | self
|
5975 + | /* ServerBuilderGenerator.kt:428 */
|
4207 5976 | }
|
5977 + | /* ServerBuilderGenerator.kt:426 */
|
4208 5978 | #[allow(missing_docs)] // documentation missing in model
|
5979 + | /* ServerBuilderGenerator.kt:428 */
|
4209 5980 | pub(crate) fn set_length_string_list_query(
|
4210 5981 | mut self,
|
4211 5982 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>>>,
|
4212 5983 | ) -> Self {
|
5984 + | /* ServerBuilderGenerator.kt:429 */
|
4213 5985 | self.length_string_list_query = input.map(|v| v.into());
|
4214 5986 | self
|
5987 + | /* ServerBuilderGenerator.kt:428 */
|
4215 5988 | }
|
5989 + | /* ServerBuilderGenerator.kt:426 */
|
4216 5990 | #[allow(missing_docs)] // documentation missing in model
|
5991 + | /* ServerBuilderGenerator.kt:428 */
|
4217 5992 | pub(crate) fn set_length_list_pattern_string_query(
|
4218 5993 | mut self,
|
4219 5994 | input: Option<
|
4220 5995 | impl ::std::convert::Into<
|
4221 5996 | crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>,
|
4222 5997 | >,
|
4223 5998 | >,
|
4224 5999 | ) -> Self {
|
6000 + | /* ServerBuilderGenerator.kt:429 */
|
4225 6001 | self.length_list_pattern_string_query = input.map(|v| v.into());
|
4226 6002 | self
|
6003 + | /* ServerBuilderGenerator.kt:428 */
|
4227 6004 | }
|
6005 + | /* ServerBuilderGenerator.kt:426 */
|
4228 6006 | #[allow(missing_docs)] // documentation missing in model
|
6007 + | /* ServerBuilderGenerator.kt:428 */
|
4229 6008 | pub(crate) fn set_length_string_set_query(
|
4230 6009 | mut self,
|
4231 6010 | input: Option<
|
4232 6011 | impl ::std::convert::Into<
|
4233 6012 | crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>,
|
4234 6013 | >,
|
4235 6014 | >,
|
4236 6015 | ) -> Self {
|
6016 + | /* ServerBuilderGenerator.kt:429 */
|
4237 6017 | self.length_string_set_query = input.map(|v| v.into());
|
4238 6018 | self
|
6019 + | /* ServerBuilderGenerator.kt:428 */
|
4239 6020 | }
|
6021 + | /* ServerBuilderGenerator.kt:426 */
|
4240 6022 | #[allow(missing_docs)] // documentation missing in model
|
6023 + | /* ServerBuilderGenerator.kt:428 */
|
4241 6024 | pub(crate) fn set_range_byte_list_query(
|
4242 6025 | mut self,
|
4243 6026 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained>>>,
|
4244 6027 | ) -> Self {
|
6028 + | /* ServerBuilderGenerator.kt:429 */
|
4245 6029 | self.range_byte_list_query = input.map(|v| v.into());
|
4246 6030 | self
|
6031 + | /* ServerBuilderGenerator.kt:428 */
|
4247 6032 | }
|
6033 + | /* ServerBuilderGenerator.kt:426 */
|
4248 6034 | #[allow(missing_docs)] // documentation missing in model
|
6035 + | /* ServerBuilderGenerator.kt:428 */
|
4249 6036 | pub(crate) fn set_range_short_list_query(
|
4250 6037 | mut self,
|
4251 6038 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained>>>,
|
4252 6039 | ) -> Self {
|
6040 + | /* ServerBuilderGenerator.kt:429 */
|
4253 6041 | self.range_short_list_query = input.map(|v| v.into());
|
4254 6042 | self
|
6043 + | /* ServerBuilderGenerator.kt:428 */
|
4255 6044 | }
|
6045 + | /* ServerBuilderGenerator.kt:426 */
|
4256 6046 | #[allow(missing_docs)] // documentation missing in model
|
6047 + | /* ServerBuilderGenerator.kt:428 */
|
4257 6048 | pub(crate) fn set_range_integer_list_query(
|
4258 6049 | mut self,
|
4259 6050 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained>>>,
|
4260 6051 | ) -> Self {
|
6052 + | /* ServerBuilderGenerator.kt:429 */
|
4261 6053 | self.range_integer_list_query = input.map(|v| v.into());
|
4262 6054 | self
|
6055 + | /* ServerBuilderGenerator.kt:428 */
|
4263 6056 | }
|
6057 + | /* ServerBuilderGenerator.kt:426 */
|
4264 6058 | #[allow(missing_docs)] // documentation missing in model
|
6059 + | /* ServerBuilderGenerator.kt:428 */
|
4265 6060 | pub(crate) fn set_range_long_list_query(
|
4266 6061 | mut self,
|
4267 6062 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained>>>,
|
4268 6063 | ) -> Self {
|
6064 + | /* ServerBuilderGenerator.kt:429 */
|
4269 6065 | self.range_long_list_query = input.map(|v| v.into());
|
4270 6066 | self
|
6067 + | /* ServerBuilderGenerator.kt:428 */
|
4271 6068 | }
|
6069 + | /* ServerBuilderGenerator.kt:426 */
|
4272 6070 | #[allow(missing_docs)] // documentation missing in model
|
6071 + | /* ServerBuilderGenerator.kt:428 */
|
4273 6072 | pub(crate) fn set_range_byte_set_query(
|
4274 6073 | mut self,
|
4275 6074 | input: Option<
|
4276 6075 | impl ::std::convert::Into<
|
4277 6076 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>,
|
4278 6077 | >,
|
4279 6078 | >,
|
4280 6079 | ) -> Self {
|
6080 + | /* ServerBuilderGenerator.kt:429 */
|
4281 6081 | self.range_byte_set_query = input.map(|v| v.into());
|
4282 6082 | self
|
6083 + | /* ServerBuilderGenerator.kt:428 */
|
4283 6084 | }
|
6085 + | /* ServerBuilderGenerator.kt:426 */
|
4284 6086 | #[allow(missing_docs)] // documentation missing in model
|
6087 + | /* ServerBuilderGenerator.kt:428 */
|
4285 6088 | pub(crate) fn set_range_short_set_query(
|
4286 6089 | mut self,
|
4287 6090 | input: Option<
|
4288 6091 | impl ::std::convert::Into<
|
4289 6092 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>,
|
4290 6093 | >,
|
4291 6094 | >,
|
4292 6095 | ) -> Self {
|
6096 + | /* ServerBuilderGenerator.kt:429 */
|
4293 6097 | self.range_short_set_query = input.map(|v| v.into());
|
4294 6098 | self
|
6099 + | /* ServerBuilderGenerator.kt:428 */
|
4295 6100 | }
|
6101 + | /* ServerBuilderGenerator.kt:426 */
|
4296 6102 | #[allow(missing_docs)] // documentation missing in model
|
6103 + | /* ServerBuilderGenerator.kt:428 */
|
4297 6104 | pub(crate) fn set_range_integer_set_query(
|
4298 6105 | mut self,
|
4299 6106 | input: Option<
|
4300 6107 | impl ::std::convert::Into<
|
4301 6108 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>,
|
4302 6109 | >,
|
4303 6110 | >,
|
4304 6111 | ) -> Self {
|
6112 + | /* ServerBuilderGenerator.kt:429 */
|
4305 6113 | self.range_integer_set_query = input.map(|v| v.into());
|
4306 6114 | self
|
6115 + | /* ServerBuilderGenerator.kt:428 */
|
4307 6116 | }
|
6117 + | /* ServerBuilderGenerator.kt:426 */
|
4308 6118 | #[allow(missing_docs)] // documentation missing in model
|
6119 + | /* ServerBuilderGenerator.kt:428 */
|
4309 6120 | pub(crate) fn set_range_long_set_query(
|
4310 6121 | mut self,
|
4311 6122 | input: Option<
|
4312 6123 | impl ::std::convert::Into<
|
4313 6124 | crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>,
|
4314 6125 | >,
|
4315 6126 | >,
|
4316 6127 | ) -> Self {
|
6128 + | /* ServerBuilderGenerator.kt:429 */
|
4317 6129 | self.range_long_set_query = input.map(|v| v.into());
|
4318 6130 | self
|
6131 + | /* ServerBuilderGenerator.kt:428 */
|
4319 6132 | }
|
6133 + | /* ServerBuilderGenerator.kt:426 */
|
4320 6134 | #[allow(missing_docs)] // documentation missing in model
|
6135 + | /* ServerBuilderGenerator.kt:428 */
|
4321 6136 | pub(crate) fn set_enum_string_list_query(
|
4322 6137 | mut self,
|
4323 6138 | input: Option<impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>>>,
|
4324 6139 | ) -> Self {
|
6140 + | /* ServerBuilderGenerator.kt:429 */
|
4325 6141 | self.enum_string_list_query = input.map(|v| v.into());
|
4326 6142 | self
|
6143 + | /* ServerBuilderGenerator.kt:428 */
|
4327 6144 | }
|
4328 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4329 - | ///
|
6145 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6146 + | /// /* ServerBuilderGenerator.kt:260 */
|
4330 6147 | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
4331 6148 | ///
|
4332 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6149 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6150 + | /* ServerBuilderGenerator.kt:271 */
|
4333 6151 | pub fn build(
|
4334 6152 | self,
|
4335 6153 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4336 6154 | {
|
4337 6155 | self.build_enforcing_all_constraints()
|
4338 6156 | }
|
6157 + | /* ServerBuilderGenerator.kt:283 */
|
4339 6158 | fn build_enforcing_all_constraints(
|
4340 6159 | self,
|
4341 6160 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
4342 6161 | {
|
4343 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
6162 + | /* ServerBuilderGenerator.kt:287 */
|
6163 + | Ok(
|
6164 + | /* ServerBuilderGenerator.kt:542 */
|
6165 + | crate::input::ConstrainedHttpBoundShapesOperationInput {
|
6166 + | /* ServerBuilderGenerator.kt:546 */
|
4344 6167 | length_string_label: self
|
4345 6168 | .length_string_label
|
6169 + | /* ServerBuilderGenerator.kt:602 */
|
4346 6170 | .map(|v| match v {
|
4347 6171 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4348 6172 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4349 6173 | })
|
6174 + | /* ServerBuilderGenerator.kt:614 */
|
4350 6175 | .map(|res| res.map_err(ConstraintViolation::LengthStringLabel))
|
4351 6176 | .transpose()?
|
6177 + | /* ServerBuilderGenerator.kt:630 */
|
4352 6178 | .map(|v: crate::model::LengthString| v.into())
|
6179 + | /* ServerBuilderGenerator.kt:569 */
|
4353 6180 | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
6181 + | /* ServerBuilderGenerator.kt:546 */
|
4354 6182 | range_integer_label: self
|
4355 6183 | .range_integer_label
|
6184 + | /* ServerBuilderGenerator.kt:602 */
|
4356 6185 | .map(|v| match v {
|
4357 6186 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4358 6187 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4359 6188 | })
|
6189 + | /* ServerBuilderGenerator.kt:614 */
|
4360 6190 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerLabel))
|
4361 6191 | .transpose()?
|
6192 + | /* ServerBuilderGenerator.kt:630 */
|
4362 6193 | .map(|v: crate::model::RangeInteger| v.into())
|
6194 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4363 6195 | .unwrap_or(0i32),
|
6196 + | /* ServerBuilderGenerator.kt:546 */
|
4364 6197 | range_short_label: self
|
4365 6198 | .range_short_label
|
6199 + | /* ServerBuilderGenerator.kt:602 */
|
4366 6200 | .map(|v| match v {
|
4367 6201 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4368 6202 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4369 6203 | })
|
6204 + | /* ServerBuilderGenerator.kt:614 */
|
4370 6205 | .map(|res| res.map_err(ConstraintViolation::RangeShortLabel))
|
4371 6206 | .transpose()?
|
6207 + | /* ServerBuilderGenerator.kt:630 */
|
4372 6208 | .map(|v: crate::model::RangeShort| v.into())
|
6209 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4373 6210 | .unwrap_or(0i16),
|
6211 + | /* ServerBuilderGenerator.kt:546 */
|
4374 6212 | range_long_label: self
|
4375 6213 | .range_long_label
|
6214 + | /* ServerBuilderGenerator.kt:602 */
|
4376 6215 | .map(|v| match v {
|
4377 6216 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4378 6217 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4379 6218 | })
|
6219 + | /* ServerBuilderGenerator.kt:614 */
|
4380 6220 | .map(|res| res.map_err(ConstraintViolation::RangeLongLabel))
|
4381 6221 | .transpose()?
|
6222 + | /* ServerBuilderGenerator.kt:630 */
|
4382 6223 | .map(|v: crate::model::RangeLong| v.into())
|
6224 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4383 6225 | .unwrap_or(0i64),
|
6226 + | /* ServerBuilderGenerator.kt:546 */
|
4384 6227 | range_byte_label: self
|
4385 6228 | .range_byte_label
|
6229 + | /* ServerBuilderGenerator.kt:602 */
|
4386 6230 | .map(|v| match v {
|
4387 6231 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4388 6232 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4389 6233 | })
|
6234 + | /* ServerBuilderGenerator.kt:614 */
|
4390 6235 | .map(|res| res.map_err(ConstraintViolation::RangeByteLabel))
|
4391 6236 | .transpose()?
|
6237 + | /* ServerBuilderGenerator.kt:630 */
|
4392 6238 | .map(|v: crate::model::RangeByte| v.into())
|
6239 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4393 6240 | .unwrap_or(0i8),
|
6241 + | /* ServerBuilderGenerator.kt:546 */
|
4394 6242 | enum_string_label: self
|
4395 6243 | .enum_string_label
|
6244 + | /* ServerBuilderGenerator.kt:602 */
|
4396 6245 | .map(|v| match v {
|
4397 6246 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4398 6247 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4399 6248 | })
|
6249 + | /* ServerBuilderGenerator.kt:614 */
|
4400 6250 | .map(|res| res.map_err(ConstraintViolation::EnumStringLabel))
|
4401 6251 | .transpose()?
|
6252 + | /* ServerBuilderGenerator.kt:569 */
|
4402 6253 | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
6254 + | /* ServerBuilderGenerator.kt:546 */
|
4403 6255 | length_string_header_map: self
|
4404 6256 | .length_string_header_map
|
6257 + | /* ServerBuilderGenerator.kt:602 */
|
4405 6258 | .map(|v| match v {
|
4406 6259 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4407 6260 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4408 6261 | })
|
6262 + | /* ServerBuilderGenerator.kt:614 */
|
4409 6263 | .map(|res| {
|
4410 6264 | res.map(|v| v.into())
|
4411 6265 | .map_err(ConstraintViolation::LengthStringHeaderMap)
|
4412 6266 | })
|
4413 6267 | .transpose()?
|
6268 + | /* ServerBuilderGenerator.kt:569 */
|
4414 6269 | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
6270 + | /* ServerBuilderGenerator.kt:546 */
|
4415 6271 | length_string_header: self
|
4416 6272 | .length_string_header
|
6273 + | /* ServerBuilderGenerator.kt:602 */
|
4417 6274 | .map(|v| match v {
|
4418 6275 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4419 6276 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4420 6277 | })
|
6278 + | /* ServerBuilderGenerator.kt:614 */
|
4421 6279 | .map(|res| res.map_err(ConstraintViolation::LengthStringHeader))
|
4422 6280 | .transpose()?
|
6281 + | /* ServerBuilderGenerator.kt:630 */
|
4423 6282 | .map(|v: crate::model::LengthString| v.into()),
|
6283 + | /* ServerBuilderGenerator.kt:546 */
|
4424 6284 | range_integer_header: self
|
4425 6285 | .range_integer_header
|
6286 + | /* ServerBuilderGenerator.kt:602 */
|
4426 6287 | .map(|v| match v {
|
4427 6288 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4428 6289 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4429 6290 | })
|
6291 + | /* ServerBuilderGenerator.kt:614 */
|
4430 6292 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerHeader))
|
4431 6293 | .transpose()?
|
6294 + | /* ServerBuilderGenerator.kt:630 */
|
4432 6295 | .map(|v: crate::model::RangeInteger| v.into())
|
6296 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4433 6297 | .unwrap_or(0i32),
|
6298 + | /* ServerBuilderGenerator.kt:546 */
|
4434 6299 | range_short_header: self
|
4435 6300 | .range_short_header
|
6301 + | /* ServerBuilderGenerator.kt:602 */
|
4436 6302 | .map(|v| match v {
|
4437 6303 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4438 6304 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4439 6305 | })
|
6306 + | /* ServerBuilderGenerator.kt:614 */
|
4440 6307 | .map(|res| res.map_err(ConstraintViolation::RangeShortHeader))
|
4441 6308 | .transpose()?
|
6309 + | /* ServerBuilderGenerator.kt:630 */
|
4442 6310 | .map(|v: crate::model::RangeShort| v.into())
|
6311 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4443 6312 | .unwrap_or(0i16),
|
6313 + | /* ServerBuilderGenerator.kt:546 */
|
4444 6314 | range_long_header: self
|
4445 6315 | .range_long_header
|
6316 + | /* ServerBuilderGenerator.kt:602 */
|
4446 6317 | .map(|v| match v {
|
4447 6318 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4448 6319 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4449 6320 | })
|
6321 + | /* ServerBuilderGenerator.kt:614 */
|
4450 6322 | .map(|res| res.map_err(ConstraintViolation::RangeLongHeader))
|
4451 6323 | .transpose()?
|
6324 + | /* ServerBuilderGenerator.kt:630 */
|
4452 6325 | .map(|v: crate::model::RangeLong| v.into())
|
6326 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4453 6327 | .unwrap_or(0i64),
|
6328 + | /* ServerBuilderGenerator.kt:546 */
|
4454 6329 | range_byte_header: self
|
4455 6330 | .range_byte_header
|
6331 + | /* ServerBuilderGenerator.kt:602 */
|
4456 6332 | .map(|v| match v {
|
4457 6333 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4458 6334 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4459 6335 | })
|
6336 + | /* ServerBuilderGenerator.kt:614 */
|
4460 6337 | .map(|res| res.map_err(ConstraintViolation::RangeByteHeader))
|
4461 6338 | .transpose()?
|
6339 + | /* ServerBuilderGenerator.kt:630 */
|
4462 6340 | .map(|v: crate::model::RangeByte| v.into())
|
6341 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4463 6342 | .unwrap_or(0i8),
|
6343 + | /* ServerBuilderGenerator.kt:546 */
|
4464 6344 | length_string_set_header: self
|
4465 6345 | .length_string_set_header
|
6346 + | /* ServerBuilderGenerator.kt:602 */
|
4466 6347 | .map(|v| match v {
|
4467 6348 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4468 6349 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4469 6350 | })
|
6351 + | /* ServerBuilderGenerator.kt:614 */
|
4470 6352 | .map(|res| res.map_err(ConstraintViolation::LengthStringSetHeader))
|
4471 6353 | .transpose()?
|
6354 + | /* ServerBuilderGenerator.kt:630 */
|
4472 6355 | .map(|v: crate::model::SetOfLengthString| v.into()),
|
6356 + | /* ServerBuilderGenerator.kt:546 */
|
4473 6357 | list_length_string_header: self
|
4474 6358 | .list_length_string_header
|
6359 + | /* ServerBuilderGenerator.kt:602 */
|
4475 6360 | .map(|v| match v {
|
4476 6361 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4477 6362 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4478 6363 | })
|
6364 + | /* ServerBuilderGenerator.kt:614 */
|
4479 6365 | .map(|res| {
|
4480 6366 | res.map(|v| v.into())
|
4481 6367 | .map_err(ConstraintViolation::ListLengthStringHeader)
|
4482 6368 | })
|
4483 6369 | .transpose()?,
|
6370 + | /* ServerBuilderGenerator.kt:546 */
|
4484 6371 | length_list_pattern_string_header: self
|
4485 6372 | .length_list_pattern_string_header
|
6373 + | /* ServerBuilderGenerator.kt:602 */
|
4486 6374 | .map(|v| match v {
|
4487 6375 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4488 6376 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4489 6377 | })
|
6378 + | /* ServerBuilderGenerator.kt:614 */
|
4490 6379 | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringHeader))
|
4491 6380 | .transpose()?
|
6381 + | /* ServerBuilderGenerator.kt:630 */
|
4492 6382 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
6383 + | /* ServerBuilderGenerator.kt:546 */
|
4493 6384 | length_set_pattern_string_header: self
|
4494 6385 | .length_set_pattern_string_header
|
6386 + | /* ServerBuilderGenerator.kt:602 */
|
4495 6387 | .map(|v| match v {
|
4496 6388 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4497 6389 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4498 6390 | })
|
6391 + | /* ServerBuilderGenerator.kt:614 */
|
4499 6392 | .map(|res| res.map_err(ConstraintViolation::LengthSetPatternStringHeader))
|
4500 6393 | .transpose()?
|
6394 + | /* ServerBuilderGenerator.kt:630 */
|
4501 6395 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
6396 + | /* ServerBuilderGenerator.kt:546 */
|
4502 6397 | range_byte_set_header: self
|
4503 6398 | .range_byte_set_header
|
6399 + | /* ServerBuilderGenerator.kt:602 */
|
4504 6400 | .map(|v| match v {
|
4505 6401 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4506 6402 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4507 6403 | })
|
6404 + | /* ServerBuilderGenerator.kt:614 */
|
4508 6405 | .map(|res| res.map_err(ConstraintViolation::RangeByteSetHeader))
|
4509 6406 | .transpose()?
|
6407 + | /* ServerBuilderGenerator.kt:630 */
|
4510 6408 | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
6409 + | /* ServerBuilderGenerator.kt:546 */
|
4511 6410 | range_short_set_header: self
|
4512 6411 | .range_short_set_header
|
6412 + | /* ServerBuilderGenerator.kt:602 */
|
4513 6413 | .map(|v| match v {
|
4514 6414 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4515 6415 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4516 6416 | })
|
6417 + | /* ServerBuilderGenerator.kt:614 */
|
4517 6418 | .map(|res| res.map_err(ConstraintViolation::RangeShortSetHeader))
|
4518 6419 | .transpose()?
|
6420 + | /* ServerBuilderGenerator.kt:630 */
|
4519 6421 | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
6422 + | /* ServerBuilderGenerator.kt:546 */
|
4520 6423 | range_integer_set_header: self
|
4521 6424 | .range_integer_set_header
|
6425 + | /* ServerBuilderGenerator.kt:602 */
|
4522 6426 | .map(|v| match v {
|
4523 6427 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4524 6428 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4525 6429 | })
|
6430 + | /* ServerBuilderGenerator.kt:614 */
|
4526 6431 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetHeader))
|
4527 6432 | .transpose()?
|
6433 + | /* ServerBuilderGenerator.kt:630 */
|
4528 6434 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
6435 + | /* ServerBuilderGenerator.kt:546 */
|
4529 6436 | range_long_set_header: self
|
4530 6437 | .range_long_set_header
|
6438 + | /* ServerBuilderGenerator.kt:602 */
|
4531 6439 | .map(|v| match v {
|
4532 6440 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4533 6441 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4534 6442 | })
|
6443 + | /* ServerBuilderGenerator.kt:614 */
|
4535 6444 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetHeader))
|
4536 6445 | .transpose()?
|
6446 + | /* ServerBuilderGenerator.kt:630 */
|
4537 6447 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
6448 + | /* ServerBuilderGenerator.kt:546 */
|
4538 6449 | range_byte_list_header: self
|
4539 6450 | .range_byte_list_header
|
6451 + | /* ServerBuilderGenerator.kt:602 */
|
4540 6452 | .map(|v| match v {
|
4541 6453 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4542 6454 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4543 6455 | })
|
6456 + | /* ServerBuilderGenerator.kt:614 */
|
4544 6457 | .map(|res| {
|
4545 6458 | res.map(|v| v.into())
|
4546 6459 | .map_err(ConstraintViolation::RangeByteListHeader)
|
4547 6460 | })
|
4548 6461 | .transpose()?,
|
6462 + | /* ServerBuilderGenerator.kt:546 */
|
4549 6463 | range_short_list_header: self
|
4550 6464 | .range_short_list_header
|
6465 + | /* ServerBuilderGenerator.kt:602 */
|
4551 6466 | .map(|v| match v {
|
4552 6467 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4553 6468 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4554 6469 | })
|
6470 + | /* ServerBuilderGenerator.kt:614 */
|
4555 6471 | .map(|res| {
|
4556 6472 | res.map(|v| v.into())
|
4557 6473 | .map_err(ConstraintViolation::RangeShortListHeader)
|
4558 6474 | })
|
4559 6475 | .transpose()?,
|
6476 + | /* ServerBuilderGenerator.kt:546 */
|
4560 6477 | range_integer_list_header: self
|
4561 6478 | .range_integer_list_header
|
6479 + | /* ServerBuilderGenerator.kt:602 */
|
4562 6480 | .map(|v| match v {
|
4563 6481 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4564 6482 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4565 6483 | })
|
6484 + | /* ServerBuilderGenerator.kt:614 */
|
4566 6485 | .map(|res| {
|
4567 6486 | res.map(|v| v.into())
|
4568 6487 | .map_err(ConstraintViolation::RangeIntegerListHeader)
|
4569 6488 | })
|
4570 6489 | .transpose()?,
|
6490 + | /* ServerBuilderGenerator.kt:546 */
|
4571 6491 | range_long_list_header: self
|
4572 6492 | .range_long_list_header
|
6493 + | /* ServerBuilderGenerator.kt:602 */
|
4573 6494 | .map(|v| match v {
|
4574 6495 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4575 6496 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4576 6497 | })
|
6498 + | /* ServerBuilderGenerator.kt:614 */
|
4577 6499 | .map(|res| {
|
4578 6500 | res.map(|v| v.into())
|
4579 6501 | .map_err(ConstraintViolation::RangeLongListHeader)
|
4580 6502 | })
|
4581 6503 | .transpose()?,
|
6504 + | /* ServerBuilderGenerator.kt:546 */
|
4582 6505 | length_string_query: self
|
4583 6506 | .length_string_query
|
6507 + | /* ServerBuilderGenerator.kt:602 */
|
4584 6508 | .map(|v| match v {
|
4585 6509 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4586 6510 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4587 6511 | })
|
6512 + | /* ServerBuilderGenerator.kt:614 */
|
4588 6513 | .map(|res| res.map_err(ConstraintViolation::LengthStringQuery))
|
4589 6514 | .transpose()?
|
6515 + | /* ServerBuilderGenerator.kt:630 */
|
4590 6516 | .map(|v: crate::model::LengthString| v.into()),
|
6517 + | /* ServerBuilderGenerator.kt:546 */
|
4591 6518 | range_byte_query: self
|
4592 6519 | .range_byte_query
|
6520 + | /* ServerBuilderGenerator.kt:602 */
|
4593 6521 | .map(|v| match v {
|
4594 6522 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4595 6523 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4596 6524 | })
|
6525 + | /* ServerBuilderGenerator.kt:614 */
|
4597 6526 | .map(|res| res.map_err(ConstraintViolation::RangeByteQuery))
|
4598 6527 | .transpose()?
|
6528 + | /* ServerBuilderGenerator.kt:630 */
|
4599 6529 | .map(|v: crate::model::RangeByte| v.into())
|
6530 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4600 6531 | .unwrap_or(0i8),
|
6532 + | /* ServerBuilderGenerator.kt:546 */
|
4601 6533 | range_short_query: self
|
4602 6534 | .range_short_query
|
6535 + | /* ServerBuilderGenerator.kt:602 */
|
4603 6536 | .map(|v| match v {
|
4604 6537 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4605 6538 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4606 6539 | })
|
6540 + | /* ServerBuilderGenerator.kt:614 */
|
4607 6541 | .map(|res| res.map_err(ConstraintViolation::RangeShortQuery))
|
4608 6542 | .transpose()?
|
6543 + | /* ServerBuilderGenerator.kt:630 */
|
4609 6544 | .map(|v: crate::model::RangeShort| v.into())
|
6545 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4610 6546 | .unwrap_or(0i16),
|
6547 + | /* ServerBuilderGenerator.kt:546 */
|
4611 6548 | range_integer_query: self
|
4612 6549 | .range_integer_query
|
6550 + | /* ServerBuilderGenerator.kt:602 */
|
4613 6551 | .map(|v| match v {
|
4614 6552 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4615 6553 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4616 6554 | })
|
6555 + | /* ServerBuilderGenerator.kt:614 */
|
4617 6556 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerQuery))
|
4618 6557 | .transpose()?
|
6558 + | /* ServerBuilderGenerator.kt:630 */
|
4619 6559 | .map(|v: crate::model::RangeInteger| v.into())
|
6560 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4620 6561 | .unwrap_or(0i32),
|
6562 + | /* ServerBuilderGenerator.kt:546 */
|
4621 6563 | range_long_query: self
|
4622 6564 | .range_long_query
|
6565 + | /* ServerBuilderGenerator.kt:602 */
|
4623 6566 | .map(|v| match v {
|
4624 6567 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4625 6568 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4626 6569 | })
|
6570 + | /* ServerBuilderGenerator.kt:614 */
|
4627 6571 | .map(|res| res.map_err(ConstraintViolation::RangeLongQuery))
|
4628 6572 | .transpose()?
|
6573 + | /* ServerBuilderGenerator.kt:630 */
|
4629 6574 | .map(|v: crate::model::RangeLong| v.into())
|
6575 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
4630 6576 | .unwrap_or(0i64),
|
6577 + | /* ServerBuilderGenerator.kt:546 */
|
4631 6578 | enum_string_query: self
|
4632 6579 | .enum_string_query
|
6580 + | /* ServerBuilderGenerator.kt:602 */
|
4633 6581 | .map(|v| match v {
|
4634 6582 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4635 6583 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4636 6584 | })
|
6585 + | /* ServerBuilderGenerator.kt:614 */
|
4637 6586 | .map(|res| res.map_err(ConstraintViolation::EnumStringQuery))
|
4638 6587 | .transpose()?,
|
6588 + | /* ServerBuilderGenerator.kt:546 */
|
4639 6589 | length_string_list_query: self
|
4640 6590 | .length_string_list_query
|
6591 + | /* ServerBuilderGenerator.kt:602 */
|
4641 6592 | .map(|v| match v {
|
4642 6593 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4643 6594 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4644 6595 | })
|
6596 + | /* ServerBuilderGenerator.kt:614 */
|
4645 6597 | .map(|res| {
|
4646 6598 | res.map(|v| v.into())
|
4647 6599 | .map_err(ConstraintViolation::LengthStringListQuery)
|
4648 6600 | })
|
4649 6601 | .transpose()?,
|
6602 + | /* ServerBuilderGenerator.kt:546 */
|
4650 6603 | length_list_pattern_string_query: self
|
4651 6604 | .length_list_pattern_string_query
|
6605 + | /* ServerBuilderGenerator.kt:602 */
|
4652 6606 | .map(|v| match v {
|
4653 6607 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4654 6608 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4655 6609 | })
|
6610 + | /* ServerBuilderGenerator.kt:614 */
|
4656 6611 | .map(|res| res.map_err(ConstraintViolation::LengthListPatternStringQuery))
|
4657 6612 | .transpose()?
|
6613 + | /* ServerBuilderGenerator.kt:630 */
|
4658 6614 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
6615 + | /* ServerBuilderGenerator.kt:546 */
|
4659 6616 | length_string_set_query: self
|
4660 6617 | .length_string_set_query
|
6618 + | /* ServerBuilderGenerator.kt:602 */
|
4661 6619 | .map(|v| match v {
|
4662 6620 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4663 6621 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4664 6622 | })
|
6623 + | /* ServerBuilderGenerator.kt:614 */
|
4665 6624 | .map(|res| res.map_err(ConstraintViolation::LengthStringSetQuery))
|
4666 6625 | .transpose()?
|
6626 + | /* ServerBuilderGenerator.kt:630 */
|
4667 6627 | .map(|v: crate::model::SetOfLengthString| v.into()),
|
6628 + | /* ServerBuilderGenerator.kt:546 */
|
4668 6629 | range_byte_list_query: self
|
4669 6630 | .range_byte_list_query
|
6631 + | /* ServerBuilderGenerator.kt:602 */
|
4670 6632 | .map(|v| match v {
|
4671 6633 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4672 6634 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4673 6635 | })
|
6636 + | /* ServerBuilderGenerator.kt:614 */
|
4674 6637 | .map(|res| {
|
4675 6638 | res.map(|v| v.into())
|
4676 6639 | .map_err(ConstraintViolation::RangeByteListQuery)
|
4677 6640 | })
|
4678 6641 | .transpose()?,
|
6642 + | /* ServerBuilderGenerator.kt:546 */
|
4679 6643 | range_short_list_query: self
|
4680 6644 | .range_short_list_query
|
6645 + | /* ServerBuilderGenerator.kt:602 */
|
4681 6646 | .map(|v| match v {
|
4682 6647 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4683 6648 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4684 6649 | })
|
6650 + | /* ServerBuilderGenerator.kt:614 */
|
4685 6651 | .map(|res| {
|
4686 6652 | res.map(|v| v.into())
|
4687 6653 | .map_err(ConstraintViolation::RangeShortListQuery)
|
4688 6654 | })
|
4689 6655 | .transpose()?,
|
6656 + | /* ServerBuilderGenerator.kt:546 */
|
4690 6657 | range_integer_list_query: self
|
4691 6658 | .range_integer_list_query
|
6659 + | /* ServerBuilderGenerator.kt:602 */
|
4692 6660 | .map(|v| match v {
|
4693 6661 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4694 6662 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4695 6663 | })
|
6664 + | /* ServerBuilderGenerator.kt:614 */
|
4696 6665 | .map(|res| {
|
4697 6666 | res.map(|v| v.into())
|
4698 6667 | .map_err(ConstraintViolation::RangeIntegerListQuery)
|
4699 6668 | })
|
4700 6669 | .transpose()?,
|
6670 + | /* ServerBuilderGenerator.kt:546 */
|
4701 6671 | range_long_list_query: self
|
4702 6672 | .range_long_list_query
|
6673 + | /* ServerBuilderGenerator.kt:602 */
|
4703 6674 | .map(|v| match v {
|
4704 6675 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4705 6676 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4706 6677 | })
|
6678 + | /* ServerBuilderGenerator.kt:614 */
|
4707 6679 | .map(|res| {
|
4708 6680 | res.map(|v| v.into())
|
4709 6681 | .map_err(ConstraintViolation::RangeLongListQuery)
|
4710 6682 | })
|
4711 6683 | .transpose()?,
|
6684 + | /* ServerBuilderGenerator.kt:546 */
|
4712 6685 | range_byte_set_query: self
|
4713 6686 | .range_byte_set_query
|
6687 + | /* ServerBuilderGenerator.kt:602 */
|
4714 6688 | .map(|v| match v {
|
4715 6689 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4716 6690 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4717 6691 | })
|
6692 + | /* ServerBuilderGenerator.kt:614 */
|
4718 6693 | .map(|res| res.map_err(ConstraintViolation::RangeByteSetQuery))
|
4719 6694 | .transpose()?
|
6695 + | /* ServerBuilderGenerator.kt:630 */
|
4720 6696 | .map(|v: crate::model::SetOfRangeByte| v.into()),
|
6697 + | /* ServerBuilderGenerator.kt:546 */
|
4721 6698 | range_short_set_query: self
|
4722 6699 | .range_short_set_query
|
6700 + | /* ServerBuilderGenerator.kt:602 */
|
4723 6701 | .map(|v| match v {
|
4724 6702 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4725 6703 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4726 6704 | })
|
6705 + | /* ServerBuilderGenerator.kt:614 */
|
4727 6706 | .map(|res| res.map_err(ConstraintViolation::RangeShortSetQuery))
|
4728 6707 | .transpose()?
|
6708 + | /* ServerBuilderGenerator.kt:630 */
|
4729 6709 | .map(|v: crate::model::SetOfRangeShort| v.into()),
|
6710 + | /* ServerBuilderGenerator.kt:546 */
|
4730 6711 | range_integer_set_query: self
|
4731 6712 | .range_integer_set_query
|
6713 + | /* ServerBuilderGenerator.kt:602 */
|
4732 6714 | .map(|v| match v {
|
4733 6715 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4734 6716 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4735 6717 | })
|
6718 + | /* ServerBuilderGenerator.kt:614 */
|
4736 6719 | .map(|res| res.map_err(ConstraintViolation::RangeIntegerSetQuery))
|
4737 6720 | .transpose()?
|
6721 + | /* ServerBuilderGenerator.kt:630 */
|
4738 6722 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
6723 + | /* ServerBuilderGenerator.kt:546 */
|
4739 6724 | range_long_set_query: self
|
4740 6725 | .range_long_set_query
|
6726 + | /* ServerBuilderGenerator.kt:602 */
|
4741 6727 | .map(|v| match v {
|
4742 6728 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4743 6729 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4744 6730 | })
|
6731 + | /* ServerBuilderGenerator.kt:614 */
|
4745 6732 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
4746 6733 | .transpose()?
|
6734 + | /* ServerBuilderGenerator.kt:630 */
|
4747 6735 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
6736 + | /* ServerBuilderGenerator.kt:546 */
|
4748 6737 | enum_string_list_query: self
|
4749 6738 | .enum_string_list_query
|
6739 + | /* ServerBuilderGenerator.kt:602 */
|
4750 6740 | .map(|v| match v {
|
4751 6741 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4752 6742 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4753 6743 | })
|
6744 + | /* ServerBuilderGenerator.kt:614 */
|
4754 6745 | .map(|res| {
|
4755 6746 | res.map(|v| v.into())
|
4756 6747 | .map_err(ConstraintViolation::EnumStringListQuery)
|
4757 6748 | })
|
4758 6749 | .transpose()?,
|
4759 - | })
|
6750 + | /* ServerBuilderGenerator.kt:542 */
|
6751 + | }, /* ServerBuilderGenerator.kt:287 */
|
6752 + | )
|
6753 + | /* ServerBuilderGenerator.kt:283 */
|
4760 6754 | }
|
6755 + | /* ServerBuilderGenerator.kt:215 */
|
4761 6756 | }
|
6757 + |
|
6758 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
4762 6759 | }
|
4763 - | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6760 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4764 6761 | pub mod constrained_http_bound_shapes_operation_input {
|
4765 6762 |
|
6763 + | /* RustType.kt:516 */
|
4766 6764 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4767 - | /// Holds one variant for each of the ways the builder can fail.
|
4768 - |
|
6765 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
6766 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4769 6767 | #[allow(clippy::enum_variant_names)]
|
4770 6768 | pub enum ConstraintViolation {
|
4771 - | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6769 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6770 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4772 6771 | MissingLengthStringLabel,
|
4773 - | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6772 + | /// /* ServerBuilderConstraintViolations.kt:138 */`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6773 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4774 6774 | MissingEnumStringLabel,
|
4775 - | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6775 + | /// /* ServerBuilderConstraintViolations.kt:138 */`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
6776 + | /* ServerBuilderConstraintViolations.kt:143 */
|
4776 6777 | MissingLengthStringHeaderMap,
|
6778 + | /* ServerBuilderConstraintViolations.kt:75 */
|
4777 6779 | }
|
6780 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4778 6781 | impl ::std::fmt::Display for ConstraintViolation {
|
6782 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4779 6783 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6784 + | /* ServerBuilderConstraintViolations.kt:119 */
|
4780 6785 | match self {
|
4781 - | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4782 - | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4783 - | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4784 - | }
|
6786 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6787 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6788 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
6789 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
6790 + | /* ServerBuilderConstraintViolations.kt:118 */
|
4785 6791 | }
|
6792 + | /* ServerBuilderConstraintViolations.kt:117 */
|
4786 6793 | }
|
6794 + | /* ServerBuilderConstraintViolations.kt:84 */
|
4787 6795 | impl ::std::error::Error for ConstraintViolation {}
|
6796 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
4788 6797 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4789 6798 | type Error = ConstraintViolation;
|
4790 6799 |
|
4791 6800 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4792 6801 | builder.build()
|
4793 6802 | }
|
4794 6803 | }
|
4795 - | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6804 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
6805 + | /* RustType.kt:516 */
|
4796 6806 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6807 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4797 6808 | pub struct Builder {
|
6809 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4798 6810 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
6811 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4799 6812 | pub(crate) range_integer_label: ::std::option::Option<i32>,
|
6813 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4800 6814 | pub(crate) range_short_label: ::std::option::Option<i16>,
|
6815 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4801 6816 | pub(crate) range_long_label: ::std::option::Option<i64>,
|
6817 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4802 6818 | pub(crate) range_byte_label: ::std::option::Option<i8>,
|
6819 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4803 6820 | pub(crate) enum_string_label: ::std::option::Option<crate::model::EnumString>,
|
6821 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4804 6822 | pub(crate) length_string_header_map: ::std::option::Option<
|
4805 6823 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4806 6824 | >,
|
6825 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4807 6826 | pub(crate) length_string_header: ::std::option::Option<::std::string::String>,
|
6827 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4808 6828 | pub(crate) range_integer_header: ::std::option::Option<i32>,
|
6829 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4809 6830 | pub(crate) range_short_header: ::std::option::Option<i16>,
|
6831 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4810 6832 | pub(crate) range_long_header: ::std::option::Option<i64>,
|
6833 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4811 6834 | pub(crate) range_byte_header: ::std::option::Option<i8>,
|
6835 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4812 6836 | pub(crate) length_string_set_header:
|
4813 6837 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6838 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4814 6839 | pub(crate) list_length_string_header:
|
4815 6840 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6841 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4816 6842 | pub(crate) length_list_pattern_string_header:
|
4817 6843 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6844 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4818 6845 | pub(crate) length_set_pattern_string_header:
|
4819 6846 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6847 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4820 6848 | pub(crate) range_byte_set_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
6849 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4821 6850 | pub(crate) range_short_set_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
6851 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4822 6852 | pub(crate) range_integer_set_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
6853 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4823 6854 | pub(crate) range_long_set_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
6855 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4824 6856 | pub(crate) range_byte_list_header: ::std::option::Option<::std::vec::Vec<i8>>,
|
6857 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4825 6858 | pub(crate) range_short_list_header: ::std::option::Option<::std::vec::Vec<i16>>,
|
6859 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4826 6860 | pub(crate) range_integer_list_header: ::std::option::Option<::std::vec::Vec<i32>>,
|
6861 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4827 6862 | pub(crate) range_long_list_header: ::std::option::Option<::std::vec::Vec<i64>>,
|
6863 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4828 6864 | pub(crate) length_string_query: ::std::option::Option<::std::string::String>,
|
6865 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4829 6866 | pub(crate) range_byte_query: ::std::option::Option<i8>,
|
6867 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4830 6868 | pub(crate) range_short_query: ::std::option::Option<i16>,
|
6869 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4831 6870 | pub(crate) range_integer_query: ::std::option::Option<i32>,
|
6871 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4832 6872 | pub(crate) range_long_query: ::std::option::Option<i64>,
|
6873 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4833 6874 | pub(crate) enum_string_query: ::std::option::Option<crate::model::EnumString>,
|
6875 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4834 6876 | pub(crate) length_string_list_query:
|
4835 6877 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6878 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4836 6879 | pub(crate) length_list_pattern_string_query:
|
4837 6880 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6881 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4838 6882 | pub(crate) length_string_set_query:
|
4839 6883 | ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
6884 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4840 6885 | pub(crate) range_byte_list_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
6886 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4841 6887 | pub(crate) range_short_list_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
6888 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4842 6889 | pub(crate) range_integer_list_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
6890 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4843 6891 | pub(crate) range_long_list_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
6892 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4844 6893 | pub(crate) range_byte_set_query: ::std::option::Option<::std::vec::Vec<i8>>,
|
6894 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4845 6895 | pub(crate) range_short_set_query: ::std::option::Option<::std::vec::Vec<i16>>,
|
6896 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4846 6897 | pub(crate) range_integer_set_query: ::std::option::Option<::std::vec::Vec<i32>>,
|
6898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4847 6899 | pub(crate) range_long_set_query: ::std::option::Option<::std::vec::Vec<i64>>,
|
6900 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
4848 6901 | pub(crate) enum_string_list_query:
|
4849 6902 | ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
6903 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
4850 6904 | }
|
6905 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
4851 6906 | impl Builder {
|
6907 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4852 6908 | #[allow(missing_docs)] // documentation missing in model
|
6909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4853 6910 | pub fn length_string_label(mut self, input: ::std::string::String) -> Self {
|
4854 - | self.length_string_label = Some(input);
|
6911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6912 + | self.length_string_label =
|
6913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6914 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6916 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4855 6917 | self
|
6918 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4856 6919 | }
|
6920 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4857 6921 | #[allow(missing_docs)] // documentation missing in model
|
6922 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4858 6923 | pub fn range_integer_label(mut self, input: i32) -> Self {
|
4859 - | self.range_integer_label = Some(input);
|
6924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6925 + | self.range_integer_label =
|
6926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6927 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6929 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4860 6930 | self
|
6931 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4861 6932 | }
|
6933 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4862 6934 | #[allow(missing_docs)] // documentation missing in model
|
6935 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4863 6936 | pub fn range_short_label(mut self, input: i16) -> Self {
|
4864 - | self.range_short_label = Some(input);
|
6937 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6938 + | self.range_short_label =
|
6939 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6941 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6942 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4865 6943 | self
|
6944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4866 6945 | }
|
6946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4867 6947 | #[allow(missing_docs)] // documentation missing in model
|
6948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4868 6949 | pub fn range_long_label(mut self, input: i64) -> Self {
|
4869 - | self.range_long_label = Some(input);
|
6950 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6951 + | self.range_long_label =
|
6952 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6954 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6955 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4870 6956 | self
|
6957 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4871 6958 | }
|
6959 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4872 6960 | #[allow(missing_docs)] // documentation missing in model
|
6961 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4873 6962 | pub fn range_byte_label(mut self, input: i8) -> Self {
|
4874 - | self.range_byte_label = Some(input);
|
6963 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6964 + | self.range_byte_label =
|
6965 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6966 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6967 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6968 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4875 6969 | self
|
6970 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4876 6971 | }
|
6972 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4877 6973 | #[allow(missing_docs)] // documentation missing in model
|
6974 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4878 6975 | pub fn enum_string_label(mut self, input: crate::model::EnumString) -> Self {
|
4879 - | self.enum_string_label = Some(input);
|
6976 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6977 + | self.enum_string_label =
|
6978 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6979 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6980 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6981 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4880 6982 | self
|
6983 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4881 6984 | }
|
6985 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4882 6986 | #[allow(missing_docs)] // documentation missing in model
|
6987 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4883 6988 | pub fn length_string_header_map(
|
4884 6989 | mut self,
|
4885 6990 | input: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
4886 6991 | ) -> Self {
|
4887 - | self.length_string_header_map = Some(input);
|
6992 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
6993 + | self.length_string_header_map =
|
6994 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
6995 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
6996 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
6997 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4888 6998 | self
|
6999 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4889 7000 | }
|
7001 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4890 7002 | #[allow(missing_docs)] // documentation missing in model
|
7003 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4891 7004 | pub fn length_string_header(
|
4892 7005 | mut self,
|
4893 7006 | input: ::std::option::Option<::std::string::String>,
|
4894 7007 | ) -> Self {
|
4895 - | self.length_string_header = input;
|
7008 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7009 + | self.length_string_header =
|
7010 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7011 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4896 7012 | self
|
7013 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4897 7014 | }
|
7015 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4898 7016 | #[allow(missing_docs)] // documentation missing in model
|
7017 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4899 7018 | pub fn range_integer_header(mut self, input: i32) -> Self {
|
4900 - | self.range_integer_header = Some(input);
|
7019 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7020 + | self.range_integer_header =
|
7021 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7022 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7023 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7024 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4901 7025 | self
|
7026 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4902 7027 | }
|
7028 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4903 7029 | #[allow(missing_docs)] // documentation missing in model
|
7030 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4904 7031 | pub fn range_short_header(mut self, input: i16) -> Self {
|
4905 - | self.range_short_header = Some(input);
|
7032 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7033 + | self.range_short_header =
|
7034 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7035 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7036 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7037 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4906 7038 | self
|
7039 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4907 7040 | }
|
7041 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4908 7042 | #[allow(missing_docs)] // documentation missing in model
|
7043 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4909 7044 | pub fn range_long_header(mut self, input: i64) -> Self {
|
4910 - | self.range_long_header = Some(input);
|
7045 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7046 + | self.range_long_header =
|
7047 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7048 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7049 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7050 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4911 7051 | self
|
7052 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4912 7053 | }
|
7054 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4913 7055 | #[allow(missing_docs)] // documentation missing in model
|
7056 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4914 7057 | pub fn range_byte_header(mut self, input: i8) -> Self {
|
4915 - | self.range_byte_header = Some(input);
|
7058 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7059 + | self.range_byte_header =
|
7060 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7061 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7062 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7063 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4916 7064 | self
|
7065 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4917 7066 | }
|
7067 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4918 7068 | #[allow(missing_docs)] // documentation missing in model
|
7069 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4919 7070 | pub fn length_string_set_header(
|
4920 7071 | mut self,
|
4921 7072 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4922 7073 | ) -> Self {
|
4923 - | self.length_string_set_header = input;
|
7074 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7075 + | self.length_string_set_header =
|
7076 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7077 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4924 7078 | self
|
7079 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4925 7080 | }
|
7081 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4926 7082 | #[allow(missing_docs)] // documentation missing in model
|
7083 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4927 7084 | pub fn list_length_string_header(
|
4928 7085 | mut self,
|
4929 7086 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4930 7087 | ) -> Self {
|
4931 - | self.list_length_string_header = input;
|
7088 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7089 + | self.list_length_string_header =
|
7090 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7091 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4932 7092 | self
|
7093 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4933 7094 | }
|
7095 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4934 7096 | #[allow(missing_docs)] // documentation missing in model
|
7097 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4935 7098 | pub fn length_list_pattern_string_header(
|
4936 7099 | mut self,
|
4937 7100 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4938 7101 | ) -> Self {
|
4939 - | self.length_list_pattern_string_header = input;
|
7102 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7103 + | self.length_list_pattern_string_header =
|
7104 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7105 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4940 7106 | self
|
7107 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4941 7108 | }
|
7109 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4942 7110 | #[allow(missing_docs)] // documentation missing in model
|
7111 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4943 7112 | pub fn length_set_pattern_string_header(
|
4944 7113 | mut self,
|
4945 7114 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
4946 7115 | ) -> Self {
|
4947 - | self.length_set_pattern_string_header = input;
|
7116 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7117 + | self.length_set_pattern_string_header =
|
7118 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7119 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4948 7120 | self
|
7121 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4949 7122 | }
|
7123 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4950 7124 | #[allow(missing_docs)] // documentation missing in model
|
7125 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4951 7126 | pub fn range_byte_set_header(
|
4952 7127 | mut self,
|
4953 7128 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
4954 7129 | ) -> Self {
|
4955 - | self.range_byte_set_header = input;
|
7130 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7131 + | self.range_byte_set_header =
|
7132 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7133 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4956 7134 | self
|
7135 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4957 7136 | }
|
7137 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4958 7138 | #[allow(missing_docs)] // documentation missing in model
|
7139 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4959 7140 | pub fn range_short_set_header(
|
4960 7141 | mut self,
|
4961 7142 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
4962 7143 | ) -> Self {
|
4963 - | self.range_short_set_header = input;
|
7144 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7145 + | self.range_short_set_header =
|
7146 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7147 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4964 7148 | self
|
7149 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4965 7150 | }
|
7151 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4966 7152 | #[allow(missing_docs)] // documentation missing in model
|
7153 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4967 7154 | pub fn range_integer_set_header(
|
4968 7155 | mut self,
|
4969 7156 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
4970 7157 | ) -> Self {
|
4971 - | self.range_integer_set_header = input;
|
7158 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7159 + | self.range_integer_set_header =
|
7160 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7161 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4972 7162 | self
|
7163 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4973 7164 | }
|
7165 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4974 7166 | #[allow(missing_docs)] // documentation missing in model
|
7167 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4975 7168 | pub fn range_long_set_header(
|
4976 7169 | mut self,
|
4977 7170 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
4978 7171 | ) -> Self {
|
4979 - | self.range_long_set_header = input;
|
7172 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7173 + | self.range_long_set_header =
|
7174 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7175 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4980 7176 | self
|
7177 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4981 7178 | }
|
7179 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4982 7180 | #[allow(missing_docs)] // documentation missing in model
|
7181 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4983 7182 | pub fn range_byte_list_header(
|
4984 7183 | mut self,
|
4985 7184 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
4986 7185 | ) -> Self {
|
4987 - | self.range_byte_list_header = input;
|
7186 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7187 + | self.range_byte_list_header =
|
7188 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7189 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4988 7190 | self
|
7191 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4989 7192 | }
|
7193 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4990 7194 | #[allow(missing_docs)] // documentation missing in model
|
7195 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4991 7196 | pub fn range_short_list_header(
|
4992 7197 | mut self,
|
4993 7198 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
4994 7199 | ) -> Self {
|
4995 - | self.range_short_list_header = input;
|
7200 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7201 + | self.range_short_list_header =
|
7202 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7203 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
4996 7204 | self
|
7205 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4997 7206 | }
|
7207 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
4998 7208 | #[allow(missing_docs)] // documentation missing in model
|
7209 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
4999 7210 | pub fn range_integer_list_header(
|
5000 7211 | mut self,
|
5001 7212 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5002 7213 | ) -> Self {
|
5003 - | self.range_integer_list_header = input;
|
7214 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7215 + | self.range_integer_list_header =
|
7216 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7217 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5004 7218 | self
|
7219 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5005 7220 | }
|
7221 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5006 7222 | #[allow(missing_docs)] // documentation missing in model
|
7223 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5007 7224 | pub fn range_long_list_header(
|
5008 7225 | mut self,
|
5009 7226 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5010 7227 | ) -> Self {
|
5011 - | self.range_long_list_header = input;
|
7228 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7229 + | self.range_long_list_header =
|
7230 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7231 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5012 7232 | self
|
7233 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5013 7234 | }
|
7235 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5014 7236 | #[allow(missing_docs)] // documentation missing in model
|
7237 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5015 7238 | pub fn length_string_query(
|
5016 7239 | mut self,
|
5017 7240 | input: ::std::option::Option<::std::string::String>,
|
5018 7241 | ) -> Self {
|
5019 - | self.length_string_query = input;
|
7242 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7243 + | self.length_string_query =
|
7244 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7245 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5020 7246 | self
|
7247 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5021 7248 | }
|
7249 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5022 7250 | #[allow(missing_docs)] // documentation missing in model
|
7251 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5023 7252 | pub fn range_byte_query(mut self, input: i8) -> Self {
|
5024 - | self.range_byte_query = Some(input);
|
7253 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7254 + | self.range_byte_query =
|
7255 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7256 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7257 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7258 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5025 7259 | self
|
7260 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5026 7261 | }
|
7262 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5027 7263 | #[allow(missing_docs)] // documentation missing in model
|
7264 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5028 7265 | pub fn range_short_query(mut self, input: i16) -> Self {
|
5029 - | self.range_short_query = Some(input);
|
7266 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7267 + | self.range_short_query =
|
7268 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7269 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7270 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7271 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5030 7272 | self
|
7273 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5031 7274 | }
|
7275 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5032 7276 | #[allow(missing_docs)] // documentation missing in model
|
7277 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5033 7278 | pub fn range_integer_query(mut self, input: i32) -> Self {
|
5034 - | self.range_integer_query = Some(input);
|
7279 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7280 + | self.range_integer_query =
|
7281 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7282 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7283 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7284 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5035 7285 | self
|
7286 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5036 7287 | }
|
7288 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5037 7289 | #[allow(missing_docs)] // documentation missing in model
|
7290 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5038 7291 | pub fn range_long_query(mut self, input: i64) -> Self {
|
5039 - | self.range_long_query = Some(input);
|
7292 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7293 + | self.range_long_query =
|
7294 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7295 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7296 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7297 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5040 7298 | self
|
7299 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5041 7300 | }
|
7301 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5042 7302 | #[allow(missing_docs)] // documentation missing in model
|
7303 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5043 7304 | pub fn enum_string_query(
|
5044 7305 | mut self,
|
5045 7306 | input: ::std::option::Option<crate::model::EnumString>,
|
5046 7307 | ) -> Self {
|
5047 - | self.enum_string_query = input;
|
7308 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7309 + | self.enum_string_query =
|
7310 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7311 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5048 7312 | self
|
7313 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5049 7314 | }
|
7315 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5050 7316 | #[allow(missing_docs)] // documentation missing in model
|
7317 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5051 7318 | pub fn length_string_list_query(
|
5052 7319 | mut self,
|
5053 7320 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5054 7321 | ) -> Self {
|
5055 - | self.length_string_list_query = input;
|
7322 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7323 + | self.length_string_list_query =
|
7324 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7325 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5056 7326 | self
|
7327 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5057 7328 | }
|
7329 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5058 7330 | #[allow(missing_docs)] // documentation missing in model
|
7331 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5059 7332 | pub fn length_list_pattern_string_query(
|
5060 7333 | mut self,
|
5061 7334 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5062 7335 | ) -> Self {
|
5063 - | self.length_list_pattern_string_query = input;
|
7336 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7337 + | self.length_list_pattern_string_query =
|
7338 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7339 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5064 7340 | self
|
7341 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5065 7342 | }
|
7343 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5066 7344 | #[allow(missing_docs)] // documentation missing in model
|
7345 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5067 7346 | pub fn length_string_set_query(
|
5068 7347 | mut self,
|
5069 7348 | input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
5070 7349 | ) -> Self {
|
5071 - | self.length_string_set_query = input;
|
7350 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7351 + | self.length_string_set_query =
|
7352 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7353 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5072 7354 | self
|
7355 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5073 7356 | }
|
7357 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5074 7358 | #[allow(missing_docs)] // documentation missing in model
|
7359 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5075 7360 | pub fn range_byte_list_query(
|
5076 7361 | mut self,
|
5077 7362 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5078 7363 | ) -> Self {
|
5079 - | self.range_byte_list_query = input;
|
7364 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7365 + | self.range_byte_list_query =
|
7366 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7367 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5080 7368 | self
|
7369 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5081 7370 | }
|
7371 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5082 7372 | #[allow(missing_docs)] // documentation missing in model
|
7373 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5083 7374 | pub fn range_short_list_query(
|
5084 7375 | mut self,
|
5085 7376 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5086 7377 | ) -> Self {
|
5087 - | self.range_short_list_query = input;
|
7378 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7379 + | self.range_short_list_query =
|
7380 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7381 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5088 7382 | self
|
7383 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5089 7384 | }
|
7385 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5090 7386 | #[allow(missing_docs)] // documentation missing in model
|
7387 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5091 7388 | pub fn range_integer_list_query(
|
5092 7389 | mut self,
|
5093 7390 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5094 7391 | ) -> Self {
|
5095 - | self.range_integer_list_query = input;
|
7392 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7393 + | self.range_integer_list_query =
|
7394 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7395 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5096 7396 | self
|
7397 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5097 7398 | }
|
7399 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5098 7400 | #[allow(missing_docs)] // documentation missing in model
|
7401 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5099 7402 | pub fn range_long_list_query(
|
5100 7403 | mut self,
|
5101 7404 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5102 7405 | ) -> Self {
|
5103 - | self.range_long_list_query = input;
|
7406 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7407 + | self.range_long_list_query =
|
7408 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7409 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5104 7410 | self
|
7411 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5105 7412 | }
|
7413 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5106 7414 | #[allow(missing_docs)] // documentation missing in model
|
7415 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5107 7416 | pub fn range_byte_set_query(
|
5108 7417 | mut self,
|
5109 7418 | input: ::std::option::Option<::std::vec::Vec<i8>>,
|
5110 7419 | ) -> Self {
|
5111 - | self.range_byte_set_query = input;
|
7420 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7421 + | self.range_byte_set_query =
|
7422 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7423 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5112 7424 | self
|
7425 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5113 7426 | }
|
7427 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5114 7428 | #[allow(missing_docs)] // documentation missing in model
|
7429 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5115 7430 | pub fn range_short_set_query(
|
5116 7431 | mut self,
|
5117 7432 | input: ::std::option::Option<::std::vec::Vec<i16>>,
|
5118 7433 | ) -> Self {
|
5119 - | self.range_short_set_query = input;
|
7434 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7435 + | self.range_short_set_query =
|
7436 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7437 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5120 7438 | self
|
7439 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5121 7440 | }
|
7441 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5122 7442 | #[allow(missing_docs)] // documentation missing in model
|
7443 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5123 7444 | pub fn range_integer_set_query(
|
5124 7445 | mut self,
|
5125 7446 | input: ::std::option::Option<::std::vec::Vec<i32>>,
|
5126 7447 | ) -> Self {
|
5127 - | self.range_integer_set_query = input;
|
7448 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7449 + | self.range_integer_set_query =
|
7450 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7451 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5128 7452 | self
|
7453 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5129 7454 | }
|
7455 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5130 7456 | #[allow(missing_docs)] // documentation missing in model
|
7457 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5131 7458 | pub fn range_long_set_query(
|
5132 7459 | mut self,
|
5133 7460 | input: ::std::option::Option<::std::vec::Vec<i64>>,
|
5134 7461 | ) -> Self {
|
5135 - | self.range_long_set_query = input;
|
7462 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7463 + | self.range_long_set_query =
|
7464 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7465 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5136 7466 | self
|
7467 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5137 7468 | }
|
7469 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5138 7470 | #[allow(missing_docs)] // documentation missing in model
|
7471 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5139 7472 | pub fn enum_string_list_query(
|
5140 7473 | mut self,
|
5141 7474 | input: ::std::option::Option<::std::vec::Vec<crate::model::EnumString>>,
|
5142 7475 | ) -> Self {
|
5143 - | self.enum_string_list_query = input;
|
7476 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7477 + | self.enum_string_list_query =
|
7478 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7479 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5144 7480 | self
|
7481 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5145 7482 | }
|
5146 - | /// Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5147 - | ///
|
7483 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
7484 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
5148 7485 | /// The builder fails to construct a [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
5149 7486 | ///
|
7487 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
5150 7488 | pub fn build(
|
5151 7489 | self,
|
5152 7490 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5153 7491 | {
|
5154 7492 | self.build_enforcing_required_and_enum_traits()
|
5155 7493 | }
|
7494 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5156 7495 | fn build_enforcing_required_and_enum_traits(
|
5157 7496 | self,
|
5158 7497 | ) -> Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ConstraintViolation>
|
5159 7498 | {
|
5160 - | Ok(crate::input::ConstrainedHttpBoundShapesOperationInput {
|
7499 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
7500 + | Ok(
|
7501 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7502 + | crate::input::ConstrainedHttpBoundShapesOperationInput {
|
7503 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5161 7504 | length_string_label: self
|
5162 7505 | .length_string_label
|
7506 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5163 7507 | .ok_or(ConstraintViolation::MissingLengthStringLabel)?,
|
5164 - | range_integer_label: self.range_integer_label.unwrap_or(0i32),
|
5165 - | range_short_label: self.range_short_label.unwrap_or(0i16),
|
5166 - | range_long_label: self.range_long_label.unwrap_or(0i64),
|
5167 - | range_byte_label: self.range_byte_label.unwrap_or(0i8),
|
7508 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7509 + | range_integer_label: self
|
7510 + | .range_integer_label
|
7511 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7512 + | .unwrap_or(0i32),
|
7513 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7514 + | range_short_label: self
|
7515 + | .range_short_label
|
7516 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7517 + | .unwrap_or(0i16),
|
7518 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7519 + | range_long_label: self
|
7520 + | .range_long_label
|
7521 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7522 + | .unwrap_or(0i64),
|
7523 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7524 + | range_byte_label: self
|
7525 + | .range_byte_label
|
7526 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7527 + | .unwrap_or(0i8),
|
7528 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5168 7529 | enum_string_label: self
|
5169 7530 | .enum_string_label
|
7531 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5170 7532 | .ok_or(ConstraintViolation::MissingEnumStringLabel)?,
|
7533 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5171 7534 | length_string_header_map: self
|
5172 7535 | .length_string_header_map
|
7536 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
5173 7537 | .ok_or(ConstraintViolation::MissingLengthStringHeaderMap)?,
|
7538 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5174 7539 | length_string_header: self.length_string_header,
|
5175 - | range_integer_header: self.range_integer_header.unwrap_or(0i32),
|
5176 - | range_short_header: self.range_short_header.unwrap_or(0i16),
|
5177 - | range_long_header: self.range_long_header.unwrap_or(0i64),
|
5178 - | range_byte_header: self.range_byte_header.unwrap_or(0i8),
|
7540 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7541 + | range_integer_header: self
|
7542 + | .range_integer_header
|
7543 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7544 + | .unwrap_or(0i32),
|
7545 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7546 + | range_short_header: self
|
7547 + | .range_short_header
|
7548 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7549 + | .unwrap_or(0i16),
|
7550 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7551 + | range_long_header: self
|
7552 + | .range_long_header
|
7553 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7554 + | .unwrap_or(0i64),
|
7555 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7556 + | range_byte_header: self
|
7557 + | .range_byte_header
|
7558 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7559 + | .unwrap_or(0i8),
|
7560 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5179 7561 | length_string_set_header: self.length_string_set_header,
|
7562 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5180 7563 | list_length_string_header: self.list_length_string_header,
|
7564 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5181 7565 | length_list_pattern_string_header: self.length_list_pattern_string_header,
|
7566 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5182 7567 | length_set_pattern_string_header: self.length_set_pattern_string_header,
|
7568 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5183 7569 | range_byte_set_header: self.range_byte_set_header,
|
7570 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5184 7571 | range_short_set_header: self.range_short_set_header,
|
7572 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5185 7573 | range_integer_set_header: self.range_integer_set_header,
|
7574 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5186 7575 | range_long_set_header: self.range_long_set_header,
|
7576 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5187 7577 | range_byte_list_header: self.range_byte_list_header,
|
7578 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5188 7579 | range_short_list_header: self.range_short_list_header,
|
7580 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5189 7581 | range_integer_list_header: self.range_integer_list_header,
|
7582 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5190 7583 | range_long_list_header: self.range_long_list_header,
|
7584 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5191 7585 | length_string_query: self.length_string_query,
|
5192 - | range_byte_query: self.range_byte_query.unwrap_or(0i8),
|
5193 - | range_short_query: self.range_short_query.unwrap_or(0i16),
|
5194 - | range_integer_query: self.range_integer_query.unwrap_or(0i32),
|
5195 - | range_long_query: self.range_long_query.unwrap_or(0i64),
|
7586 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7587 + | range_byte_query: self
|
7588 + | .range_byte_query
|
7589 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7590 + | .unwrap_or(0i8),
|
7591 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7592 + | range_short_query: self
|
7593 + | .range_short_query
|
7594 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7595 + | .unwrap_or(0i16),
|
7596 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7597 + | range_integer_query: self
|
7598 + | .range_integer_query
|
7599 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7600 + | .unwrap_or(0i32),
|
7601 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7602 + | range_long_query: self
|
7603 + | .range_long_query
|
7604 + | /* ServerBuilderGeneratorCommon.kt:135 */
|
7605 + | .unwrap_or(0i64),
|
7606 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5196 7607 | enum_string_query: self.enum_string_query,
|
7608 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5197 7609 | length_string_list_query: self.length_string_list_query,
|
7610 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5198 7611 | length_list_pattern_string_query: self.length_list_pattern_string_query,
|
7612 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5199 7613 | length_string_set_query: self.length_string_set_query,
|
7614 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5200 7615 | range_byte_list_query: self.range_byte_list_query,
|
7616 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5201 7617 | range_short_list_query: self.range_short_list_query,
|
7618 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5202 7619 | range_integer_list_query: self.range_integer_list_query,
|
7620 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5203 7621 | range_long_list_query: self.range_long_list_query,
|
7622 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5204 7623 | range_byte_set_query: self.range_byte_set_query,
|
7624 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5205 7625 | range_short_set_query: self.range_short_set_query,
|
7626 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5206 7627 | range_integer_set_query: self.range_integer_set_query,
|
7628 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5207 7629 | range_long_set_query: self.range_long_set_query,
|
7630 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
5208 7631 | enum_string_list_query: self.enum_string_list_query,
|
5209 - | })
|
7632 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7633 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
7634 + | )
|
7635 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5210 7636 | }
|
7637 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5211 7638 | }
|
7639 + |
|
7640 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5212 7641 | }
|
5213 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7642 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5214 7643 | pub(crate) mod constrained_shapes_only_in_output_operation_input_internal {
|
5215 7644 |
|
7645 + | /* ServerBuilderGenerator.kt:461 */
|
5216 7646 | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5217 7647 | fn from(builder: Builder) -> Self {
|
5218 7648 | builder.build()
|
5219 7649 | }
|
5220 7650 | }
|
5221 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7651 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7652 + | /* RustType.kt:516 */
|
5222 7653 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5223 - | pub(crate) struct Builder {}
|
7654 + | /* ServerBuilderGenerator.kt:211 */
|
7655 + | pub(crate) struct Builder {/* ServerBuilderGenerator.kt:211 */}
|
7656 + | /* ServerBuilderGenerator.kt:215 */
|
5224 7657 | impl Builder {
|
5225 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7658 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7659 + | /* ServerBuilderGenerator.kt:271 */
|
5226 7660 | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5227 7661 | self.build_enforcing_all_constraints()
|
5228 7662 | }
|
7663 + | /* ServerBuilderGenerator.kt:283 */
|
5229 7664 | fn build_enforcing_all_constraints(
|
5230 7665 | self,
|
5231 7666 | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5232 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
7667 + | /* ServerBuilderGenerator.kt:542 */
|
7668 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
7669 + | /* ServerBuilderGenerator.kt:542 */}
|
7670 + | /* ServerBuilderGenerator.kt:283 */
|
5233 7671 | }
|
7672 + | /* ServerBuilderGenerator.kt:215 */
|
5234 7673 | }
|
7674 + |
|
7675 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5235 7676 | }
|
5236 - | /// See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7677 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
5237 7678 | pub mod constrained_shapes_only_in_output_operation_input {
|
5238 7679 |
|
7680 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:269 */
|
5239 7681 | impl ::std::convert::From<Builder> for crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5240 7682 | fn from(builder: Builder) -> Self {
|
5241 7683 | builder.build()
|
5242 7684 | }
|
5243 7685 | }
|
5244 - | /// A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7686 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7687 + | /* RustType.kt:516 */
|
5245 7688 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5246 - | pub struct Builder {}
|
7689 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
7690 + | pub struct Builder {/* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */}
|
7691 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5247 7692 | impl Builder {
|
5248 - | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7693 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput).
|
7694 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
5249 7695 | pub fn build(self) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5250 7696 | self.build_enforcing_required_and_enum_traits()
|
5251 7697 | }
|
7698 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5252 7699 | fn build_enforcing_required_and_enum_traits(
|
5253 7700 | self,
|
5254 7701 | ) -> crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
5255 - | crate::input::ConstrainedShapesOnlyInOutputOperationInput {}
|
7702 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7703 + | crate::input::ConstrainedShapesOnlyInOutputOperationInput {
|
7704 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */}
|
7705 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5256 7706 | }
|
7707 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5257 7708 | }
|
7709 + |
|
7710 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5258 7711 | }
|
5259 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7712 + | /// /* ServerBuilderGenerator.kt:171 */See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5260 7713 | pub(crate) mod constrained_shapes_operation_input_internal {
|
5261 7714 |
|
7715 + | /* RustType.kt:516 */
|
5262 7716 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5263 - | /// Holds one variant for each of the ways the builder can fail.
|
7717 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7718 + | /* RustType.kt:516 */
|
5264 7719 | #[non_exhaustive]
|
7720 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5265 7721 | #[allow(clippy::enum_variant_names)]
|
5266 7722 | pub(crate) enum ConstraintViolation {
|
5267 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
7723 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
7724 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5268 7725 | MissingConA,
|
5269 - | /// Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
7726 + | /// /* ServerBuilderConstraintViolations.kt:158 */Constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`.
|
7727 + | /* RustType.kt:516 */
|
5270 7728 | #[doc(hidden)]
|
7729 + | /* ServerBuilderConstraintViolations.kt:164 */
|
5271 7730 | ConA(crate::model::con_a_internal::ConstraintViolation),
|
7731 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5272 7732 | }
|
7733 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5273 7734 | impl ::std::fmt::Display for ConstraintViolation {
|
7735 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5274 7736 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7737 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5275 7738 | match self {
|
5276 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
5277 - | ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
5278 - | }
|
7739 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
7740 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::ConA(_) => write!(f, "constraint violation occurred building member `con_a` when building `ConstrainedShapesOperationInput`"),
|
7741 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7742 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5279 7743 | }
|
7744 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5280 7745 | }
|
7746 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5281 7747 | impl ::std::error::Error for ConstraintViolation {}
|
7748 + | /* ServerBuilderConstraintViolations.kt:171 */
|
5282 7749 | impl ConstraintViolation {
|
5283 7750 | pub(crate) fn as_validation_exception_field(
|
5284 7751 | self,
|
5285 7752 | path: ::std::string::String,
|
5286 7753 | ) -> crate::model::ValidationExceptionField {
|
5287 7754 | match self {
|
5288 7755 | ConstraintViolation::MissingConA => crate::model::ValidationExceptionField {
|
5289 7756 | message: format!(
|
5290 7757 | "Value at '{}/conA' failed to satisfy constraint: Member must not be null",
|
5291 7758 | path
|
5292 7759 | ),
|
5293 7760 | path: path + "/conA",
|
5294 7761 | },
|
5295 7762 | ConstraintViolation::ConA(inner) => {
|
5296 7763 | inner.as_validation_exception_field(path + "/conA")
|
5297 7764 | }
|
5298 7765 | }
|
5299 7766 | }
|
5300 7767 | }
|
7768 + | /* ServerBuilderGenerator.kt:234 */
|
5301 7769 | impl ::std::convert::From<ConstraintViolation>
|
5302 7770 | for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
|
5303 7771 | {
|
5304 7772 | fn from(constraint_violation: ConstraintViolation) -> Self {
|
5305 7773 | let first_validation_exception_field =
|
5306 7774 | constraint_violation.as_validation_exception_field("".to_owned());
|
5307 7775 | let validation_exception = crate::error::ValidationException {
|
5308 7776 | message: format!(
|
5309 7777 | "1 validation error detected. {}",
|
5310 7778 | &first_validation_exception_field.message
|
5311 7779 | ),
|
5312 7780 | field_list: Some(vec![first_validation_exception_field]),
|
5313 7781 | };
|
5314 7782 | Self::ConstraintViolation(
|
5315 7783 | crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception)
|
5316 7784 | .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
|
5317 7785 | )
|
5318 7786 | }
|
5319 7787 | }
|
7788 + | /* ServerBuilderGenerator.kt:244 */
|
5320 7789 | impl ::std::convert::From<Builder>
|
5321 7790 | for crate::constrained::MaybeConstrained<crate::input::ConstrainedShapesOperationInput>
|
5322 7791 | {
|
5323 7792 | fn from(builder: Builder) -> Self {
|
5324 7793 | Self::Unconstrained(builder)
|
5325 7794 | }
|
5326 7795 | }
|
7796 + | /* ServerBuilderGenerator.kt:446 */
|
5327 7797 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
5328 7798 | type Error = ConstraintViolation;
|
5329 7799 |
|
5330 7800 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5331 7801 | builder.build()
|
5332 7802 | }
|
5333 7803 | }
|
5334 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7804 + | /// /* ServerBuilderGenerator.kt:201 */A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7805 + | /* RustType.kt:516 */
|
5335 7806 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7807 + | /* ServerBuilderGenerator.kt:211 */
|
5336 7808 | pub(crate) struct Builder {
|
7809 + | /* ServerBuilderGenerator.kt:308 */
|
5337 7810 | pub(crate) con_a:
|
5338 7811 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
7812 + | /* ServerBuilderGenerator.kt:211 */
|
5339 7813 | }
|
7814 + | /* ServerBuilderGenerator.kt:215 */
|
5340 7815 | impl Builder {
|
7816 + | /* ServerBuilderGenerator.kt:426 */
|
5341 7817 | #[allow(missing_docs)] // documentation missing in model
|
7818 + | /* ServerBuilderGenerator.kt:428 */
|
5342 7819 | pub(crate) fn set_con_a(
|
5343 7820 | mut self,
|
5344 7821 | input: impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ConA>>,
|
5345 7822 | ) -> Self {
|
7823 + | /* ServerBuilderGenerator.kt:429 */
|
5346 7824 | self.con_a = Some(input.into());
|
5347 7825 | self
|
7826 + | /* ServerBuilderGenerator.kt:428 */
|
5348 7827 | }
|
5349 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5350 - | ///
|
7828 + | /// /* ServerBuilderGenerator.kt:258 */Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7829 + | /// /* ServerBuilderGenerator.kt:260 */
|
5351 7830 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
5352 7831 | ///
|
5353 - | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
7832 + | /// /* ServerBuilderGenerator.kt:268 */If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
7833 + | /* ServerBuilderGenerator.kt:271 */
|
5354 7834 | pub fn build(
|
5355 7835 | self,
|
5356 7836 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5357 7837 | self.build_enforcing_all_constraints()
|
5358 7838 | }
|
7839 + | /* ServerBuilderGenerator.kt:283 */
|
5359 7840 | fn build_enforcing_all_constraints(
|
5360 7841 | self,
|
5361 7842 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5362 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
7843 + | /* ServerBuilderGenerator.kt:287 */
|
7844 + | Ok(
|
7845 + | /* ServerBuilderGenerator.kt:542 */
|
7846 + | crate::input::ConstrainedShapesOperationInput {
|
7847 + | /* ServerBuilderGenerator.kt:546 */
|
5363 7848 | con_a: self
|
5364 7849 | .con_a
|
7850 + | /* ServerBuilderGenerator.kt:602 */
|
5365 7851 | .map(|v| match v {
|
5366 7852 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5367 7853 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5368 7854 | })
|
7855 + | /* ServerBuilderGenerator.kt:614 */
|
5369 7856 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
5370 7857 | .transpose()?
|
7858 + | /* ServerBuilderGenerator.kt:569 */
|
5371 7859 | .ok_or(ConstraintViolation::MissingConA)?,
|
5372 - | })
|
7860 + | /* ServerBuilderGenerator.kt:542 */
|
7861 + | }, /* ServerBuilderGenerator.kt:287 */
|
7862 + | )
|
7863 + | /* ServerBuilderGenerator.kt:283 */
|
5373 7864 | }
|
7865 + | /* ServerBuilderGenerator.kt:215 */
|
5374 7866 | }
|
7867 + |
|
7868 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5375 7869 | }
|
5376 - | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7870 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:110 */See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5377 7871 | pub mod constrained_shapes_operation_input {
|
5378 7872 |
|
7873 + | /* RustType.kt:516 */
|
5379 7874 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5380 - | /// Holds one variant for each of the ways the builder can fail.
|
5381 - |
|
7875 + | /// /* ServerBuilderConstraintViolations.kt:72 */Holds one variant for each of the ways the builder can fail.
|
7876 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5382 7877 | #[allow(clippy::enum_variant_names)]
|
5383 7878 | pub enum ConstraintViolation {
|
5384 - | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
7879 + | /// /* ServerBuilderConstraintViolations.kt:138 */`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
7880 + | /* ServerBuilderConstraintViolations.kt:143 */
|
5385 7881 | MissingConA,
|
7882 + | /* ServerBuilderConstraintViolations.kt:75 */
|
5386 7883 | }
|
7884 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5387 7885 | impl ::std::fmt::Display for ConstraintViolation {
|
7886 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5388 7887 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7888 + | /* ServerBuilderConstraintViolations.kt:119 */
|
5389 7889 | match self {
|
5390 - | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
5391 - | }
|
7890 + | /* ServerBuilderConstraintViolations.kt:127 */ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
7891 + | /* ServerBuilderConstraintViolations.kt:119 */}
|
7892 + | /* ServerBuilderConstraintViolations.kt:118 */
|
5392 7893 | }
|
7894 + | /* ServerBuilderConstraintViolations.kt:117 */
|
5393 7895 | }
|
7896 + | /* ServerBuilderConstraintViolations.kt:84 */
|
5394 7897 | impl ::std::error::Error for ConstraintViolation {}
|
7898 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:254 */
|
5395 7899 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
5396 7900 | type Error = ConstraintViolation;
|
5397 7901 |
|
5398 7902 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5399 7903 | builder.build()
|
5400 7904 | }
|
5401 7905 | }
|
5402 - | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7906 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:130 */A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7907 + | /* RustType.kt:516 */
|
5403 7908 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7909 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5404 7910 | pub struct Builder {
|
7911 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:225 */
|
5405 7912 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
7913 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:137 */
|
5406 7914 | }
|
7915 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5407 7916 | impl Builder {
|
7917 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:241 */
|
5408 7918 | #[allow(missing_docs)] // documentation missing in model
|
7919 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5409 7920 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
5410 - | self.con_a = Some(input);
|
7921 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */
|
7922 + | self.con_a =
|
7923 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */Some(
|
7924 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:247 */input
|
7925 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:246 */)
|
7926 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:245 */;
|
5411 7927 | self
|
7928 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:244 */
|
5412 7929 | }
|
5413 - | /// Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5414 - | ///
|
7930 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:150 */Consumes the builder and constructs a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
7931 + | /// /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:152 */
|
5415 7932 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if you do not provide a value for all non-`Option`al members.
|
5416 7933 | ///
|
7934 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:159 */
|
5417 7935 | pub fn build(
|
5418 7936 | self,
|
5419 7937 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5420 7938 | self.build_enforcing_required_and_enum_traits()
|
5421 7939 | }
|
7940 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5422 7941 | fn build_enforcing_required_and_enum_traits(
|
5423 7942 | self,
|
5424 7943 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5425 - | Ok(crate::input::ConstrainedShapesOperationInput {
|
5426 - | con_a: self.con_a.ok_or(ConstraintViolation::MissingConA)?,
|
5427 - | })
|
7944 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
7945 + | Ok(
|
7946 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7947 + | crate::input::ConstrainedShapesOperationInput {
|
7948 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:186 */
|
7949 + | con_a: self
|
7950 + | .con_a
|
7951 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:202 */
|
7952 + | .ok_or(ConstraintViolation::MissingConA)?,
|
7953 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:182 */
|
7954 + | }, /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:175 */
|
7955 + | )
|
7956 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:171 */
|
5428 7957 | }
|
7958 + | /* ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt:141 */
|
5429 7959 | }
|
7960 + |
|
7961 + | /* RustCrateInlineModuleComposingWriter.kt:299 */
|
5430 7962 | }
|